@jeffusion/bungee-core 4.1.0 → 4.3.0
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/master.js +3506 -206
- package/dist/worker.js +3199 -1862
- package/package.json +2 -2
package/dist/master.js
CHANGED
|
@@ -16341,7 +16341,43 @@ function uniqueServiceName(preferredName, existingNames) {
|
|
|
16341
16341
|
}
|
|
16342
16342
|
function moveRouteConfigToService(route, service, routeIndex, changes) {
|
|
16343
16343
|
if (route.failover && !service.failover) {
|
|
16344
|
-
|
|
16344
|
+
const failover = route.failover;
|
|
16345
|
+
if (isPlainRecord(failover.health_check) && !service.health_check) {
|
|
16346
|
+
service.health_check = failover.health_check;
|
|
16347
|
+
changes.push({
|
|
16348
|
+
type: "move",
|
|
16349
|
+
path: `routes.${routeIndex}.failover.health_check`,
|
|
16350
|
+
from: `routes.${routeIndex}.failover.health_check`,
|
|
16351
|
+
to: `services.${service.name}.health_check`,
|
|
16352
|
+
message: `Extracted health_check from failover to service "${service.name}" top-level`
|
|
16353
|
+
});
|
|
16354
|
+
delete failover.health_check;
|
|
16355
|
+
}
|
|
16356
|
+
if (failover.passive_health?.auto_enable_on_active_health_check !== undefined) {
|
|
16357
|
+
if (service.health_check) {
|
|
16358
|
+
service.health_check.auto_enable_on_active_health_check = failover.passive_health.auto_enable_on_active_health_check;
|
|
16359
|
+
changes.push({
|
|
16360
|
+
type: "move",
|
|
16361
|
+
path: `routes.${routeIndex}.failover.passive_health.auto_enable_on_active_health_check`,
|
|
16362
|
+
from: "failover.passive_health.auto_enable_on_active_health_check",
|
|
16363
|
+
to: `services.${service.name}.health_check.auto_enable_on_active_health_check`,
|
|
16364
|
+
message: `Moved auto_enable_on_active_health_check from passive_health to health_check`
|
|
16365
|
+
});
|
|
16366
|
+
}
|
|
16367
|
+
delete failover.passive_health.auto_enable_on_active_health_check;
|
|
16368
|
+
}
|
|
16369
|
+
if (failover.recovery?.probe_interval_ms !== undefined) {
|
|
16370
|
+
failover.recovery.backoff_base_ms = failover.recovery.probe_interval_ms;
|
|
16371
|
+
delete failover.recovery.probe_interval_ms;
|
|
16372
|
+
changes.push({
|
|
16373
|
+
type: "rename",
|
|
16374
|
+
path: `routes.${routeIndex}.failover.recovery.probe_interval_ms`,
|
|
16375
|
+
from: "probe_interval_ms",
|
|
16376
|
+
to: "backoff_base_ms",
|
|
16377
|
+
message: `Renamed probe_interval_ms to backoff_base_ms (semantics: exponential backoff base)`
|
|
16378
|
+
});
|
|
16379
|
+
}
|
|
16380
|
+
service.failover = failover;
|
|
16345
16381
|
changes.push({
|
|
16346
16382
|
type: "move",
|
|
16347
16383
|
path: `routes.${routeIndex}.failover`,
|
|
@@ -16350,151 +16386,3415 @@ function moveRouteConfigToService(route, service, routeIndex, changes) {
|
|
|
16350
16386
|
message: `Moved route failover to service "${service.name}"`
|
|
16351
16387
|
});
|
|
16352
16388
|
}
|
|
16353
|
-
if (route.sticky_session && !service.
|
|
16354
|
-
|
|
16355
|
-
|
|
16356
|
-
|
|
16357
|
-
|
|
16358
|
-
|
|
16359
|
-
|
|
16360
|
-
|
|
16389
|
+
if (route.sticky_session && !service.load_balancing) {
|
|
16390
|
+
const key_expression = route.sticky_session.key_expression;
|
|
16391
|
+
service.load_balancing = {
|
|
16392
|
+
policy: "consistent_hash",
|
|
16393
|
+
...key_expression ? { hash_policy: { expression: key_expression } } : {}
|
|
16394
|
+
};
|
|
16395
|
+
changes.push({
|
|
16396
|
+
type: "move",
|
|
16397
|
+
path: `routes.${routeIndex}.sticky_session`,
|
|
16398
|
+
from: `routes.${routeIndex}.sticky_session`,
|
|
16399
|
+
to: `services.${service.name}.load_balancing`,
|
|
16400
|
+
message: `Migrated route sticky_session to service "${service.name}" as load_balancing.policy=consistent_hash`
|
|
16401
|
+
});
|
|
16402
|
+
}
|
|
16403
|
+
if (route.failover) {
|
|
16404
|
+
delete route.failover;
|
|
16405
|
+
}
|
|
16406
|
+
if (route.sticky_session) {
|
|
16407
|
+
delete route.sticky_session;
|
|
16408
|
+
}
|
|
16409
|
+
}
|
|
16410
|
+
var v3ToV4Migration;
|
|
16411
|
+
var init_v3_to_v4 = __esm(() => {
|
|
16412
|
+
v3ToV4Migration = {
|
|
16413
|
+
fromVersion: 3,
|
|
16414
|
+
toVersion: 4,
|
|
16415
|
+
description: "Move failover and migrate sticky_session to load_balancing.consistent_hash on services",
|
|
16416
|
+
migrate(input) {
|
|
16417
|
+
const config = cloneJson(input);
|
|
16418
|
+
if (!isPlainRecord(config)) {
|
|
16419
|
+
throw new Error("Config must be an object");
|
|
16420
|
+
}
|
|
16421
|
+
const changes = [];
|
|
16422
|
+
const warnings = [];
|
|
16423
|
+
const routes = Array.isArray(config.routes) ? config.routes : [];
|
|
16424
|
+
const services = Array.isArray(config.services) ? config.services : [];
|
|
16425
|
+
const serviceNames = new Set(services.map((service) => service.name));
|
|
16426
|
+
for (let routeIndex = 0;routeIndex < routes.length; routeIndex++) {
|
|
16427
|
+
const route = routes[routeIndex];
|
|
16428
|
+
if (!isPlainRecord(route)) {
|
|
16429
|
+
continue;
|
|
16430
|
+
}
|
|
16431
|
+
const hasRouteFailover = route.failover !== undefined;
|
|
16432
|
+
const hasRouteStickySession = route.sticky_session !== undefined;
|
|
16433
|
+
if (!hasRouteFailover && !hasRouteStickySession) {
|
|
16434
|
+
continue;
|
|
16435
|
+
}
|
|
16436
|
+
if (route.service) {
|
|
16437
|
+
let service2 = services.find((candidate) => candidate.name === route.service);
|
|
16438
|
+
if (!service2) {
|
|
16439
|
+
const routeEndpoints2 = route.endpoints ?? [];
|
|
16440
|
+
service2 = {
|
|
16441
|
+
name: route.service,
|
|
16442
|
+
endpoints: routeEndpoints2
|
|
16443
|
+
};
|
|
16444
|
+
services.push(service2);
|
|
16445
|
+
serviceNames.add(service2.name);
|
|
16446
|
+
changes.push({
|
|
16447
|
+
type: "move",
|
|
16448
|
+
path: `routes.${routeIndex}.service`,
|
|
16449
|
+
to: `services.${service2.name}`,
|
|
16450
|
+
message: `Created missing service "${service2.name}" for route "${route.path}"`
|
|
16451
|
+
});
|
|
16452
|
+
}
|
|
16453
|
+
moveRouteConfigToService(route, service2, routeIndex, changes);
|
|
16454
|
+
continue;
|
|
16455
|
+
}
|
|
16456
|
+
const serviceName = uniqueServiceName(serviceNameFromPath(route.path), serviceNames);
|
|
16457
|
+
const routeEndpoints = route.endpoints ?? [];
|
|
16458
|
+
const failover = route.failover;
|
|
16459
|
+
const extractedHealthCheck = isPlainRecord(failover?.health_check) ? failover.health_check : undefined;
|
|
16460
|
+
if (extractedHealthCheck) {
|
|
16461
|
+
delete failover.health_check;
|
|
16462
|
+
}
|
|
16463
|
+
if (failover?.recovery?.probe_interval_ms !== undefined) {
|
|
16464
|
+
failover.recovery.backoff_base_ms = failover.recovery.probe_interval_ms;
|
|
16465
|
+
delete failover.recovery.probe_interval_ms;
|
|
16466
|
+
}
|
|
16467
|
+
const service = {
|
|
16468
|
+
name: serviceName,
|
|
16469
|
+
endpoints: routeEndpoints,
|
|
16470
|
+
...failover && { failover },
|
|
16471
|
+
...extractedHealthCheck && { health_check: extractedHealthCheck },
|
|
16472
|
+
...route.sticky_session && {
|
|
16473
|
+
load_balancing: {
|
|
16474
|
+
policy: "consistent_hash",
|
|
16475
|
+
...route.sticky_session.key_expression ? { hash_policy: { expression: route.sticky_session.key_expression } } : {}
|
|
16476
|
+
}
|
|
16477
|
+
}
|
|
16478
|
+
};
|
|
16479
|
+
services.push(service);
|
|
16480
|
+
route.service = serviceName;
|
|
16481
|
+
delete route.endpoints;
|
|
16482
|
+
changes.push({
|
|
16483
|
+
type: "move",
|
|
16484
|
+
path: `routes.${routeIndex}`,
|
|
16485
|
+
from: `routes.${routeIndex}.endpoints/failover/sticky_session`,
|
|
16486
|
+
to: `services.${serviceName}`,
|
|
16487
|
+
message: `Created service "${serviceName}" from route "${route.path}" (sticky_session migrated to load_balancing${extractedHealthCheck ? ", health_check extracted" : ""})`
|
|
16488
|
+
});
|
|
16489
|
+
moveRouteConfigToService(route, service, routeIndex, changes);
|
|
16490
|
+
}
|
|
16491
|
+
if (services.length > 0) {
|
|
16492
|
+
config.services = services;
|
|
16493
|
+
}
|
|
16494
|
+
config.config_version = 4;
|
|
16495
|
+
return {
|
|
16496
|
+
config: cleanupEmptyObjects(config),
|
|
16497
|
+
changes,
|
|
16498
|
+
warnings
|
|
16499
|
+
};
|
|
16500
|
+
}
|
|
16501
|
+
};
|
|
16502
|
+
});
|
|
16503
|
+
|
|
16504
|
+
// src/config-migrations/index.ts
|
|
16505
|
+
var CONFIG_MIGRATIONS;
|
|
16506
|
+
var init_config_migrations = __esm(() => {
|
|
16507
|
+
init_v1_to_v2();
|
|
16508
|
+
init_v2_to_v3();
|
|
16509
|
+
init_v3_to_v4();
|
|
16510
|
+
CONFIG_MIGRATIONS = [
|
|
16511
|
+
v1ToV2Migration,
|
|
16512
|
+
v2ToV3Migration,
|
|
16513
|
+
v3ToV4Migration
|
|
16514
|
+
];
|
|
16515
|
+
});
|
|
16516
|
+
|
|
16517
|
+
// src/config-migrations/migrate-config.ts
|
|
16518
|
+
function buildMigrationMap(migrations2) {
|
|
16519
|
+
return new Map(migrations2.map((migration4) => [migration4.fromVersion, migration4]));
|
|
16520
|
+
}
|
|
16521
|
+
function migrateConfigToLatest(rawConfig) {
|
|
16522
|
+
const migrationMap = buildMigrationMap(CONFIG_MIGRATIONS);
|
|
16523
|
+
const originalVersion = detectConfigVersion(rawConfig);
|
|
16524
|
+
let currentVersion = originalVersion;
|
|
16525
|
+
let workingConfig = cloneJson(rawConfig);
|
|
16526
|
+
const changes = [];
|
|
16527
|
+
const warnings = [];
|
|
16528
|
+
while (currentVersion < LATEST_CONFIG_VERSION) {
|
|
16529
|
+
const migration4 = migrationMap.get(currentVersion);
|
|
16530
|
+
if (!migration4) {
|
|
16531
|
+
throw new Error(`No config migration registered from version ${currentVersion}`);
|
|
16532
|
+
}
|
|
16533
|
+
const result = migration4.migrate(workingConfig);
|
|
16534
|
+
workingConfig = result.config;
|
|
16535
|
+
changes.push(...result.changes);
|
|
16536
|
+
warnings.push(...result.warnings);
|
|
16537
|
+
currentVersion = migration4.toVersion;
|
|
16538
|
+
}
|
|
16539
|
+
if (!isPlainRecord(workingConfig)) {
|
|
16540
|
+
throw new Error("Migrated config must be an object");
|
|
16541
|
+
}
|
|
16542
|
+
workingConfig.config_version = LATEST_CONFIG_VERSION;
|
|
16543
|
+
return {
|
|
16544
|
+
config: workingConfig,
|
|
16545
|
+
originalVersion,
|
|
16546
|
+
finalVersion: LATEST_CONFIG_VERSION,
|
|
16547
|
+
changes,
|
|
16548
|
+
warnings
|
|
16549
|
+
};
|
|
16550
|
+
}
|
|
16551
|
+
var init_migrate_config = __esm(() => {
|
|
16552
|
+
init_config_migrations();
|
|
16553
|
+
});
|
|
16554
|
+
|
|
16555
|
+
// src/compat/legacy-plugin-adapter.ts
|
|
16556
|
+
class LegacyCompatAdapter {
|
|
16557
|
+
static adaptConfig(config) {
|
|
16558
|
+
if (!config.services)
|
|
16559
|
+
return config;
|
|
16560
|
+
return {
|
|
16561
|
+
...config,
|
|
16562
|
+
services: config.services.map((service) => ({
|
|
16563
|
+
...service,
|
|
16564
|
+
plugins: service.plugins ?? []
|
|
16565
|
+
}))
|
|
16566
|
+
};
|
|
16567
|
+
}
|
|
16568
|
+
static adaptInterceptResult(result) {
|
|
16569
|
+
if (result === undefined)
|
|
16570
|
+
return;
|
|
16571
|
+
if (result instanceof Response) {
|
|
16572
|
+
return { action: "respond", response: result };
|
|
16573
|
+
}
|
|
16574
|
+
return result;
|
|
16575
|
+
}
|
|
16576
|
+
}
|
|
16577
|
+
|
|
16578
|
+
// ../../node_modules/lodash-es/_listCacheClear.js
|
|
16579
|
+
function listCacheClear() {
|
|
16580
|
+
this.__data__ = [];
|
|
16581
|
+
this.size = 0;
|
|
16582
|
+
}
|
|
16583
|
+
var _listCacheClear_default;
|
|
16584
|
+
var init__listCacheClear = __esm(() => {
|
|
16585
|
+
_listCacheClear_default = listCacheClear;
|
|
16586
|
+
});
|
|
16587
|
+
|
|
16588
|
+
// ../../node_modules/lodash-es/eq.js
|
|
16589
|
+
function eq(value, other) {
|
|
16590
|
+
return value === other || value !== value && other !== other;
|
|
16591
|
+
}
|
|
16592
|
+
var eq_default;
|
|
16593
|
+
var init_eq = __esm(() => {
|
|
16594
|
+
eq_default = eq;
|
|
16595
|
+
});
|
|
16596
|
+
|
|
16597
|
+
// ../../node_modules/lodash-es/_assocIndexOf.js
|
|
16598
|
+
function assocIndexOf(array, key) {
|
|
16599
|
+
var length = array.length;
|
|
16600
|
+
while (length--) {
|
|
16601
|
+
if (eq_default(array[length][0], key)) {
|
|
16602
|
+
return length;
|
|
16603
|
+
}
|
|
16604
|
+
}
|
|
16605
|
+
return -1;
|
|
16606
|
+
}
|
|
16607
|
+
var _assocIndexOf_default;
|
|
16608
|
+
var init__assocIndexOf = __esm(() => {
|
|
16609
|
+
init_eq();
|
|
16610
|
+
_assocIndexOf_default = assocIndexOf;
|
|
16611
|
+
});
|
|
16612
|
+
|
|
16613
|
+
// ../../node_modules/lodash-es/_listCacheDelete.js
|
|
16614
|
+
function listCacheDelete(key) {
|
|
16615
|
+
var data = this.__data__, index = _assocIndexOf_default(data, key);
|
|
16616
|
+
if (index < 0) {
|
|
16617
|
+
return false;
|
|
16618
|
+
}
|
|
16619
|
+
var lastIndex = data.length - 1;
|
|
16620
|
+
if (index == lastIndex) {
|
|
16621
|
+
data.pop();
|
|
16622
|
+
} else {
|
|
16623
|
+
splice.call(data, index, 1);
|
|
16624
|
+
}
|
|
16625
|
+
--this.size;
|
|
16626
|
+
return true;
|
|
16627
|
+
}
|
|
16628
|
+
var arrayProto, splice, _listCacheDelete_default;
|
|
16629
|
+
var init__listCacheDelete = __esm(() => {
|
|
16630
|
+
init__assocIndexOf();
|
|
16631
|
+
arrayProto = Array.prototype;
|
|
16632
|
+
splice = arrayProto.splice;
|
|
16633
|
+
_listCacheDelete_default = listCacheDelete;
|
|
16634
|
+
});
|
|
16635
|
+
|
|
16636
|
+
// ../../node_modules/lodash-es/_listCacheGet.js
|
|
16637
|
+
function listCacheGet(key) {
|
|
16638
|
+
var data = this.__data__, index = _assocIndexOf_default(data, key);
|
|
16639
|
+
return index < 0 ? undefined : data[index][1];
|
|
16640
|
+
}
|
|
16641
|
+
var _listCacheGet_default;
|
|
16642
|
+
var init__listCacheGet = __esm(() => {
|
|
16643
|
+
init__assocIndexOf();
|
|
16644
|
+
_listCacheGet_default = listCacheGet;
|
|
16645
|
+
});
|
|
16646
|
+
|
|
16647
|
+
// ../../node_modules/lodash-es/_listCacheHas.js
|
|
16648
|
+
function listCacheHas(key) {
|
|
16649
|
+
return _assocIndexOf_default(this.__data__, key) > -1;
|
|
16650
|
+
}
|
|
16651
|
+
var _listCacheHas_default;
|
|
16652
|
+
var init__listCacheHas = __esm(() => {
|
|
16653
|
+
init__assocIndexOf();
|
|
16654
|
+
_listCacheHas_default = listCacheHas;
|
|
16655
|
+
});
|
|
16656
|
+
|
|
16657
|
+
// ../../node_modules/lodash-es/_listCacheSet.js
|
|
16658
|
+
function listCacheSet(key, value) {
|
|
16659
|
+
var data = this.__data__, index = _assocIndexOf_default(data, key);
|
|
16660
|
+
if (index < 0) {
|
|
16661
|
+
++this.size;
|
|
16662
|
+
data.push([key, value]);
|
|
16663
|
+
} else {
|
|
16664
|
+
data[index][1] = value;
|
|
16665
|
+
}
|
|
16666
|
+
return this;
|
|
16667
|
+
}
|
|
16668
|
+
var _listCacheSet_default;
|
|
16669
|
+
var init__listCacheSet = __esm(() => {
|
|
16670
|
+
init__assocIndexOf();
|
|
16671
|
+
_listCacheSet_default = listCacheSet;
|
|
16672
|
+
});
|
|
16673
|
+
|
|
16674
|
+
// ../../node_modules/lodash-es/_ListCache.js
|
|
16675
|
+
function ListCache(entries) {
|
|
16676
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
16677
|
+
this.clear();
|
|
16678
|
+
while (++index < length) {
|
|
16679
|
+
var entry = entries[index];
|
|
16680
|
+
this.set(entry[0], entry[1]);
|
|
16681
|
+
}
|
|
16682
|
+
}
|
|
16683
|
+
var _ListCache_default;
|
|
16684
|
+
var init__ListCache = __esm(() => {
|
|
16685
|
+
init__listCacheClear();
|
|
16686
|
+
init__listCacheDelete();
|
|
16687
|
+
init__listCacheGet();
|
|
16688
|
+
init__listCacheHas();
|
|
16689
|
+
init__listCacheSet();
|
|
16690
|
+
ListCache.prototype.clear = _listCacheClear_default;
|
|
16691
|
+
ListCache.prototype["delete"] = _listCacheDelete_default;
|
|
16692
|
+
ListCache.prototype.get = _listCacheGet_default;
|
|
16693
|
+
ListCache.prototype.has = _listCacheHas_default;
|
|
16694
|
+
ListCache.prototype.set = _listCacheSet_default;
|
|
16695
|
+
_ListCache_default = ListCache;
|
|
16696
|
+
});
|
|
16697
|
+
|
|
16698
|
+
// ../../node_modules/lodash-es/_stackClear.js
|
|
16699
|
+
function stackClear() {
|
|
16700
|
+
this.__data__ = new _ListCache_default;
|
|
16701
|
+
this.size = 0;
|
|
16702
|
+
}
|
|
16703
|
+
var _stackClear_default;
|
|
16704
|
+
var init__stackClear = __esm(() => {
|
|
16705
|
+
init__ListCache();
|
|
16706
|
+
_stackClear_default = stackClear;
|
|
16707
|
+
});
|
|
16708
|
+
|
|
16709
|
+
// ../../node_modules/lodash-es/_stackDelete.js
|
|
16710
|
+
function stackDelete(key) {
|
|
16711
|
+
var data = this.__data__, result = data["delete"](key);
|
|
16712
|
+
this.size = data.size;
|
|
16713
|
+
return result;
|
|
16714
|
+
}
|
|
16715
|
+
var _stackDelete_default;
|
|
16716
|
+
var init__stackDelete = __esm(() => {
|
|
16717
|
+
_stackDelete_default = stackDelete;
|
|
16718
|
+
});
|
|
16719
|
+
|
|
16720
|
+
// ../../node_modules/lodash-es/_stackGet.js
|
|
16721
|
+
function stackGet(key) {
|
|
16722
|
+
return this.__data__.get(key);
|
|
16723
|
+
}
|
|
16724
|
+
var _stackGet_default;
|
|
16725
|
+
var init__stackGet = __esm(() => {
|
|
16726
|
+
_stackGet_default = stackGet;
|
|
16727
|
+
});
|
|
16728
|
+
|
|
16729
|
+
// ../../node_modules/lodash-es/_stackHas.js
|
|
16730
|
+
function stackHas(key) {
|
|
16731
|
+
return this.__data__.has(key);
|
|
16732
|
+
}
|
|
16733
|
+
var _stackHas_default;
|
|
16734
|
+
var init__stackHas = __esm(() => {
|
|
16735
|
+
_stackHas_default = stackHas;
|
|
16736
|
+
});
|
|
16737
|
+
|
|
16738
|
+
// ../../node_modules/lodash-es/_freeGlobal.js
|
|
16739
|
+
var freeGlobal, _freeGlobal_default;
|
|
16740
|
+
var init__freeGlobal = __esm(() => {
|
|
16741
|
+
freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
16742
|
+
_freeGlobal_default = freeGlobal;
|
|
16743
|
+
});
|
|
16744
|
+
|
|
16745
|
+
// ../../node_modules/lodash-es/_root.js
|
|
16746
|
+
var freeSelf, root, _root_default;
|
|
16747
|
+
var init__root = __esm(() => {
|
|
16748
|
+
init__freeGlobal();
|
|
16749
|
+
freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
16750
|
+
root = _freeGlobal_default || freeSelf || Function("return this")();
|
|
16751
|
+
_root_default = root;
|
|
16752
|
+
});
|
|
16753
|
+
|
|
16754
|
+
// ../../node_modules/lodash-es/_Symbol.js
|
|
16755
|
+
var Symbol2, _Symbol_default;
|
|
16756
|
+
var init__Symbol = __esm(() => {
|
|
16757
|
+
init__root();
|
|
16758
|
+
Symbol2 = _root_default.Symbol;
|
|
16759
|
+
_Symbol_default = Symbol2;
|
|
16760
|
+
});
|
|
16761
|
+
|
|
16762
|
+
// ../../node_modules/lodash-es/_getRawTag.js
|
|
16763
|
+
function getRawTag(value) {
|
|
16764
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
16765
|
+
try {
|
|
16766
|
+
value[symToStringTag] = undefined;
|
|
16767
|
+
var unmasked = true;
|
|
16768
|
+
} catch (e) {}
|
|
16769
|
+
var result = nativeObjectToString.call(value);
|
|
16770
|
+
if (unmasked) {
|
|
16771
|
+
if (isOwn) {
|
|
16772
|
+
value[symToStringTag] = tag;
|
|
16773
|
+
} else {
|
|
16774
|
+
delete value[symToStringTag];
|
|
16775
|
+
}
|
|
16776
|
+
}
|
|
16777
|
+
return result;
|
|
16778
|
+
}
|
|
16779
|
+
var objectProto, hasOwnProperty, nativeObjectToString, symToStringTag, _getRawTag_default;
|
|
16780
|
+
var init__getRawTag = __esm(() => {
|
|
16781
|
+
init__Symbol();
|
|
16782
|
+
objectProto = Object.prototype;
|
|
16783
|
+
hasOwnProperty = objectProto.hasOwnProperty;
|
|
16784
|
+
nativeObjectToString = objectProto.toString;
|
|
16785
|
+
symToStringTag = _Symbol_default ? _Symbol_default.toStringTag : undefined;
|
|
16786
|
+
_getRawTag_default = getRawTag;
|
|
16787
|
+
});
|
|
16788
|
+
|
|
16789
|
+
// ../../node_modules/lodash-es/_objectToString.js
|
|
16790
|
+
function objectToString(value) {
|
|
16791
|
+
return nativeObjectToString2.call(value);
|
|
16792
|
+
}
|
|
16793
|
+
var objectProto2, nativeObjectToString2, _objectToString_default;
|
|
16794
|
+
var init__objectToString = __esm(() => {
|
|
16795
|
+
objectProto2 = Object.prototype;
|
|
16796
|
+
nativeObjectToString2 = objectProto2.toString;
|
|
16797
|
+
_objectToString_default = objectToString;
|
|
16798
|
+
});
|
|
16799
|
+
|
|
16800
|
+
// ../../node_modules/lodash-es/_baseGetTag.js
|
|
16801
|
+
function baseGetTag(value) {
|
|
16802
|
+
if (value == null) {
|
|
16803
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
16804
|
+
}
|
|
16805
|
+
return symToStringTag2 && symToStringTag2 in Object(value) ? _getRawTag_default(value) : _objectToString_default(value);
|
|
16806
|
+
}
|
|
16807
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag2, _baseGetTag_default;
|
|
16808
|
+
var init__baseGetTag = __esm(() => {
|
|
16809
|
+
init__Symbol();
|
|
16810
|
+
init__getRawTag();
|
|
16811
|
+
init__objectToString();
|
|
16812
|
+
symToStringTag2 = _Symbol_default ? _Symbol_default.toStringTag : undefined;
|
|
16813
|
+
_baseGetTag_default = baseGetTag;
|
|
16814
|
+
});
|
|
16815
|
+
|
|
16816
|
+
// ../../node_modules/lodash-es/isObject.js
|
|
16817
|
+
function isObject(value) {
|
|
16818
|
+
var type = typeof value;
|
|
16819
|
+
return value != null && (type == "object" || type == "function");
|
|
16820
|
+
}
|
|
16821
|
+
var isObject_default;
|
|
16822
|
+
var init_isObject = __esm(() => {
|
|
16823
|
+
isObject_default = isObject;
|
|
16824
|
+
});
|
|
16825
|
+
|
|
16826
|
+
// ../../node_modules/lodash-es/isFunction.js
|
|
16827
|
+
function isFunction(value) {
|
|
16828
|
+
if (!isObject_default(value)) {
|
|
16829
|
+
return false;
|
|
16830
|
+
}
|
|
16831
|
+
var tag = _baseGetTag_default(value);
|
|
16832
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
16833
|
+
}
|
|
16834
|
+
var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]", isFunction_default;
|
|
16835
|
+
var init_isFunction = __esm(() => {
|
|
16836
|
+
init__baseGetTag();
|
|
16837
|
+
init_isObject();
|
|
16838
|
+
isFunction_default = isFunction;
|
|
16839
|
+
});
|
|
16840
|
+
|
|
16841
|
+
// ../../node_modules/lodash-es/_coreJsData.js
|
|
16842
|
+
var coreJsData, _coreJsData_default;
|
|
16843
|
+
var init__coreJsData = __esm(() => {
|
|
16844
|
+
init__root();
|
|
16845
|
+
coreJsData = _root_default["__core-js_shared__"];
|
|
16846
|
+
_coreJsData_default = coreJsData;
|
|
16847
|
+
});
|
|
16848
|
+
|
|
16849
|
+
// ../../node_modules/lodash-es/_isMasked.js
|
|
16850
|
+
function isMasked(func) {
|
|
16851
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
16852
|
+
}
|
|
16853
|
+
var maskSrcKey, _isMasked_default;
|
|
16854
|
+
var init__isMasked = __esm(() => {
|
|
16855
|
+
init__coreJsData();
|
|
16856
|
+
maskSrcKey = function() {
|
|
16857
|
+
var uid = /[^.]+$/.exec(_coreJsData_default && _coreJsData_default.keys && _coreJsData_default.keys.IE_PROTO || "");
|
|
16858
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
16859
|
+
}();
|
|
16860
|
+
_isMasked_default = isMasked;
|
|
16861
|
+
});
|
|
16862
|
+
|
|
16863
|
+
// ../../node_modules/lodash-es/_toSource.js
|
|
16864
|
+
function toSource(func) {
|
|
16865
|
+
if (func != null) {
|
|
16866
|
+
try {
|
|
16867
|
+
return funcToString.call(func);
|
|
16868
|
+
} catch (e) {}
|
|
16869
|
+
try {
|
|
16870
|
+
return func + "";
|
|
16871
|
+
} catch (e) {}
|
|
16872
|
+
}
|
|
16873
|
+
return "";
|
|
16874
|
+
}
|
|
16875
|
+
var funcProto, funcToString, _toSource_default;
|
|
16876
|
+
var init__toSource = __esm(() => {
|
|
16877
|
+
funcProto = Function.prototype;
|
|
16878
|
+
funcToString = funcProto.toString;
|
|
16879
|
+
_toSource_default = toSource;
|
|
16880
|
+
});
|
|
16881
|
+
|
|
16882
|
+
// ../../node_modules/lodash-es/_baseIsNative.js
|
|
16883
|
+
function baseIsNative(value) {
|
|
16884
|
+
if (!isObject_default(value) || _isMasked_default(value)) {
|
|
16885
|
+
return false;
|
|
16886
|
+
}
|
|
16887
|
+
var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
|
|
16888
|
+
return pattern.test(_toSource_default(value));
|
|
16889
|
+
}
|
|
16890
|
+
var reRegExpChar, reIsHostCtor, funcProto2, objectProto3, funcToString2, hasOwnProperty2, reIsNative, _baseIsNative_default;
|
|
16891
|
+
var init__baseIsNative = __esm(() => {
|
|
16892
|
+
init_isFunction();
|
|
16893
|
+
init__isMasked();
|
|
16894
|
+
init_isObject();
|
|
16895
|
+
init__toSource();
|
|
16896
|
+
reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
16897
|
+
reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
16898
|
+
funcProto2 = Function.prototype;
|
|
16899
|
+
objectProto3 = Object.prototype;
|
|
16900
|
+
funcToString2 = funcProto2.toString;
|
|
16901
|
+
hasOwnProperty2 = objectProto3.hasOwnProperty;
|
|
16902
|
+
reIsNative = RegExp("^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
16903
|
+
_baseIsNative_default = baseIsNative;
|
|
16904
|
+
});
|
|
16905
|
+
|
|
16906
|
+
// ../../node_modules/lodash-es/_getValue.js
|
|
16907
|
+
function getValue(object, key) {
|
|
16908
|
+
return object == null ? undefined : object[key];
|
|
16909
|
+
}
|
|
16910
|
+
var _getValue_default;
|
|
16911
|
+
var init__getValue = __esm(() => {
|
|
16912
|
+
_getValue_default = getValue;
|
|
16913
|
+
});
|
|
16914
|
+
|
|
16915
|
+
// ../../node_modules/lodash-es/_getNative.js
|
|
16916
|
+
function getNative(object, key) {
|
|
16917
|
+
var value = _getValue_default(object, key);
|
|
16918
|
+
return _baseIsNative_default(value) ? value : undefined;
|
|
16919
|
+
}
|
|
16920
|
+
var _getNative_default;
|
|
16921
|
+
var init__getNative = __esm(() => {
|
|
16922
|
+
init__baseIsNative();
|
|
16923
|
+
init__getValue();
|
|
16924
|
+
_getNative_default = getNative;
|
|
16925
|
+
});
|
|
16926
|
+
|
|
16927
|
+
// ../../node_modules/lodash-es/_Map.js
|
|
16928
|
+
var Map2, _Map_default;
|
|
16929
|
+
var init__Map = __esm(() => {
|
|
16930
|
+
init__getNative();
|
|
16931
|
+
init__root();
|
|
16932
|
+
Map2 = _getNative_default(_root_default, "Map");
|
|
16933
|
+
_Map_default = Map2;
|
|
16934
|
+
});
|
|
16935
|
+
|
|
16936
|
+
// ../../node_modules/lodash-es/_nativeCreate.js
|
|
16937
|
+
var nativeCreate, _nativeCreate_default;
|
|
16938
|
+
var init__nativeCreate = __esm(() => {
|
|
16939
|
+
init__getNative();
|
|
16940
|
+
nativeCreate = _getNative_default(Object, "create");
|
|
16941
|
+
_nativeCreate_default = nativeCreate;
|
|
16942
|
+
});
|
|
16943
|
+
|
|
16944
|
+
// ../../node_modules/lodash-es/_hashClear.js
|
|
16945
|
+
function hashClear() {
|
|
16946
|
+
this.__data__ = _nativeCreate_default ? _nativeCreate_default(null) : {};
|
|
16947
|
+
this.size = 0;
|
|
16948
|
+
}
|
|
16949
|
+
var _hashClear_default;
|
|
16950
|
+
var init__hashClear = __esm(() => {
|
|
16951
|
+
init__nativeCreate();
|
|
16952
|
+
_hashClear_default = hashClear;
|
|
16953
|
+
});
|
|
16954
|
+
|
|
16955
|
+
// ../../node_modules/lodash-es/_hashDelete.js
|
|
16956
|
+
function hashDelete(key) {
|
|
16957
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
16958
|
+
this.size -= result ? 1 : 0;
|
|
16959
|
+
return result;
|
|
16960
|
+
}
|
|
16961
|
+
var _hashDelete_default;
|
|
16962
|
+
var init__hashDelete = __esm(() => {
|
|
16963
|
+
_hashDelete_default = hashDelete;
|
|
16964
|
+
});
|
|
16965
|
+
|
|
16966
|
+
// ../../node_modules/lodash-es/_hashGet.js
|
|
16967
|
+
function hashGet(key) {
|
|
16968
|
+
var data = this.__data__;
|
|
16969
|
+
if (_nativeCreate_default) {
|
|
16970
|
+
var result = data[key];
|
|
16971
|
+
return result === HASH_UNDEFINED ? undefined : result;
|
|
16972
|
+
}
|
|
16973
|
+
return hasOwnProperty3.call(data, key) ? data[key] : undefined;
|
|
16974
|
+
}
|
|
16975
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto4, hasOwnProperty3, _hashGet_default;
|
|
16976
|
+
var init__hashGet = __esm(() => {
|
|
16977
|
+
init__nativeCreate();
|
|
16978
|
+
objectProto4 = Object.prototype;
|
|
16979
|
+
hasOwnProperty3 = objectProto4.hasOwnProperty;
|
|
16980
|
+
_hashGet_default = hashGet;
|
|
16981
|
+
});
|
|
16982
|
+
|
|
16983
|
+
// ../../node_modules/lodash-es/_hashHas.js
|
|
16984
|
+
function hashHas(key) {
|
|
16985
|
+
var data = this.__data__;
|
|
16986
|
+
return _nativeCreate_default ? data[key] !== undefined : hasOwnProperty4.call(data, key);
|
|
16987
|
+
}
|
|
16988
|
+
var objectProto5, hasOwnProperty4, _hashHas_default;
|
|
16989
|
+
var init__hashHas = __esm(() => {
|
|
16990
|
+
init__nativeCreate();
|
|
16991
|
+
objectProto5 = Object.prototype;
|
|
16992
|
+
hasOwnProperty4 = objectProto5.hasOwnProperty;
|
|
16993
|
+
_hashHas_default = hashHas;
|
|
16994
|
+
});
|
|
16995
|
+
|
|
16996
|
+
// ../../node_modules/lodash-es/_hashSet.js
|
|
16997
|
+
function hashSet(key, value) {
|
|
16998
|
+
var data = this.__data__;
|
|
16999
|
+
this.size += this.has(key) ? 0 : 1;
|
|
17000
|
+
data[key] = _nativeCreate_default && value === undefined ? HASH_UNDEFINED2 : value;
|
|
17001
|
+
return this;
|
|
17002
|
+
}
|
|
17003
|
+
var HASH_UNDEFINED2 = "__lodash_hash_undefined__", _hashSet_default;
|
|
17004
|
+
var init__hashSet = __esm(() => {
|
|
17005
|
+
init__nativeCreate();
|
|
17006
|
+
_hashSet_default = hashSet;
|
|
17007
|
+
});
|
|
17008
|
+
|
|
17009
|
+
// ../../node_modules/lodash-es/_Hash.js
|
|
17010
|
+
function Hash(entries) {
|
|
17011
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
17012
|
+
this.clear();
|
|
17013
|
+
while (++index < length) {
|
|
17014
|
+
var entry = entries[index];
|
|
17015
|
+
this.set(entry[0], entry[1]);
|
|
17016
|
+
}
|
|
17017
|
+
}
|
|
17018
|
+
var _Hash_default;
|
|
17019
|
+
var init__Hash = __esm(() => {
|
|
17020
|
+
init__hashClear();
|
|
17021
|
+
init__hashDelete();
|
|
17022
|
+
init__hashGet();
|
|
17023
|
+
init__hashHas();
|
|
17024
|
+
init__hashSet();
|
|
17025
|
+
Hash.prototype.clear = _hashClear_default;
|
|
17026
|
+
Hash.prototype["delete"] = _hashDelete_default;
|
|
17027
|
+
Hash.prototype.get = _hashGet_default;
|
|
17028
|
+
Hash.prototype.has = _hashHas_default;
|
|
17029
|
+
Hash.prototype.set = _hashSet_default;
|
|
17030
|
+
_Hash_default = Hash;
|
|
17031
|
+
});
|
|
17032
|
+
|
|
17033
|
+
// ../../node_modules/lodash-es/_mapCacheClear.js
|
|
17034
|
+
function mapCacheClear() {
|
|
17035
|
+
this.size = 0;
|
|
17036
|
+
this.__data__ = {
|
|
17037
|
+
hash: new _Hash_default,
|
|
17038
|
+
map: new (_Map_default || _ListCache_default),
|
|
17039
|
+
string: new _Hash_default
|
|
17040
|
+
};
|
|
17041
|
+
}
|
|
17042
|
+
var _mapCacheClear_default;
|
|
17043
|
+
var init__mapCacheClear = __esm(() => {
|
|
17044
|
+
init__Hash();
|
|
17045
|
+
init__ListCache();
|
|
17046
|
+
init__Map();
|
|
17047
|
+
_mapCacheClear_default = mapCacheClear;
|
|
17048
|
+
});
|
|
17049
|
+
|
|
17050
|
+
// ../../node_modules/lodash-es/_isKeyable.js
|
|
17051
|
+
function isKeyable(value) {
|
|
17052
|
+
var type = typeof value;
|
|
17053
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
17054
|
+
}
|
|
17055
|
+
var _isKeyable_default;
|
|
17056
|
+
var init__isKeyable = __esm(() => {
|
|
17057
|
+
_isKeyable_default = isKeyable;
|
|
17058
|
+
});
|
|
17059
|
+
|
|
17060
|
+
// ../../node_modules/lodash-es/_getMapData.js
|
|
17061
|
+
function getMapData(map, key) {
|
|
17062
|
+
var data = map.__data__;
|
|
17063
|
+
return _isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
17064
|
+
}
|
|
17065
|
+
var _getMapData_default;
|
|
17066
|
+
var init__getMapData = __esm(() => {
|
|
17067
|
+
init__isKeyable();
|
|
17068
|
+
_getMapData_default = getMapData;
|
|
17069
|
+
});
|
|
17070
|
+
|
|
17071
|
+
// ../../node_modules/lodash-es/_mapCacheDelete.js
|
|
17072
|
+
function mapCacheDelete(key) {
|
|
17073
|
+
var result = _getMapData_default(this, key)["delete"](key);
|
|
17074
|
+
this.size -= result ? 1 : 0;
|
|
17075
|
+
return result;
|
|
17076
|
+
}
|
|
17077
|
+
var _mapCacheDelete_default;
|
|
17078
|
+
var init__mapCacheDelete = __esm(() => {
|
|
17079
|
+
init__getMapData();
|
|
17080
|
+
_mapCacheDelete_default = mapCacheDelete;
|
|
17081
|
+
});
|
|
17082
|
+
|
|
17083
|
+
// ../../node_modules/lodash-es/_mapCacheGet.js
|
|
17084
|
+
function mapCacheGet(key) {
|
|
17085
|
+
return _getMapData_default(this, key).get(key);
|
|
17086
|
+
}
|
|
17087
|
+
var _mapCacheGet_default;
|
|
17088
|
+
var init__mapCacheGet = __esm(() => {
|
|
17089
|
+
init__getMapData();
|
|
17090
|
+
_mapCacheGet_default = mapCacheGet;
|
|
17091
|
+
});
|
|
17092
|
+
|
|
17093
|
+
// ../../node_modules/lodash-es/_mapCacheHas.js
|
|
17094
|
+
function mapCacheHas(key) {
|
|
17095
|
+
return _getMapData_default(this, key).has(key);
|
|
17096
|
+
}
|
|
17097
|
+
var _mapCacheHas_default;
|
|
17098
|
+
var init__mapCacheHas = __esm(() => {
|
|
17099
|
+
init__getMapData();
|
|
17100
|
+
_mapCacheHas_default = mapCacheHas;
|
|
17101
|
+
});
|
|
17102
|
+
|
|
17103
|
+
// ../../node_modules/lodash-es/_mapCacheSet.js
|
|
17104
|
+
function mapCacheSet(key, value) {
|
|
17105
|
+
var data = _getMapData_default(this, key), size = data.size;
|
|
17106
|
+
data.set(key, value);
|
|
17107
|
+
this.size += data.size == size ? 0 : 1;
|
|
17108
|
+
return this;
|
|
17109
|
+
}
|
|
17110
|
+
var _mapCacheSet_default;
|
|
17111
|
+
var init__mapCacheSet = __esm(() => {
|
|
17112
|
+
init__getMapData();
|
|
17113
|
+
_mapCacheSet_default = mapCacheSet;
|
|
17114
|
+
});
|
|
17115
|
+
|
|
17116
|
+
// ../../node_modules/lodash-es/_MapCache.js
|
|
17117
|
+
function MapCache(entries) {
|
|
17118
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
17119
|
+
this.clear();
|
|
17120
|
+
while (++index < length) {
|
|
17121
|
+
var entry = entries[index];
|
|
17122
|
+
this.set(entry[0], entry[1]);
|
|
17123
|
+
}
|
|
17124
|
+
}
|
|
17125
|
+
var _MapCache_default;
|
|
17126
|
+
var init__MapCache = __esm(() => {
|
|
17127
|
+
init__mapCacheClear();
|
|
17128
|
+
init__mapCacheDelete();
|
|
17129
|
+
init__mapCacheGet();
|
|
17130
|
+
init__mapCacheHas();
|
|
17131
|
+
init__mapCacheSet();
|
|
17132
|
+
MapCache.prototype.clear = _mapCacheClear_default;
|
|
17133
|
+
MapCache.prototype["delete"] = _mapCacheDelete_default;
|
|
17134
|
+
MapCache.prototype.get = _mapCacheGet_default;
|
|
17135
|
+
MapCache.prototype.has = _mapCacheHas_default;
|
|
17136
|
+
MapCache.prototype.set = _mapCacheSet_default;
|
|
17137
|
+
_MapCache_default = MapCache;
|
|
17138
|
+
});
|
|
17139
|
+
|
|
17140
|
+
// ../../node_modules/lodash-es/_stackSet.js
|
|
17141
|
+
function stackSet(key, value) {
|
|
17142
|
+
var data = this.__data__;
|
|
17143
|
+
if (data instanceof _ListCache_default) {
|
|
17144
|
+
var pairs = data.__data__;
|
|
17145
|
+
if (!_Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
17146
|
+
pairs.push([key, value]);
|
|
17147
|
+
this.size = ++data.size;
|
|
17148
|
+
return this;
|
|
17149
|
+
}
|
|
17150
|
+
data = this.__data__ = new _MapCache_default(pairs);
|
|
17151
|
+
}
|
|
17152
|
+
data.set(key, value);
|
|
17153
|
+
this.size = data.size;
|
|
17154
|
+
return this;
|
|
17155
|
+
}
|
|
17156
|
+
var LARGE_ARRAY_SIZE = 200, _stackSet_default;
|
|
17157
|
+
var init__stackSet = __esm(() => {
|
|
17158
|
+
init__ListCache();
|
|
17159
|
+
init__Map();
|
|
17160
|
+
init__MapCache();
|
|
17161
|
+
_stackSet_default = stackSet;
|
|
17162
|
+
});
|
|
17163
|
+
|
|
17164
|
+
// ../../node_modules/lodash-es/_Stack.js
|
|
17165
|
+
function Stack(entries) {
|
|
17166
|
+
var data = this.__data__ = new _ListCache_default(entries);
|
|
17167
|
+
this.size = data.size;
|
|
17168
|
+
}
|
|
17169
|
+
var _Stack_default;
|
|
17170
|
+
var init__Stack = __esm(() => {
|
|
17171
|
+
init__ListCache();
|
|
17172
|
+
init__stackClear();
|
|
17173
|
+
init__stackDelete();
|
|
17174
|
+
init__stackGet();
|
|
17175
|
+
init__stackHas();
|
|
17176
|
+
init__stackSet();
|
|
17177
|
+
Stack.prototype.clear = _stackClear_default;
|
|
17178
|
+
Stack.prototype["delete"] = _stackDelete_default;
|
|
17179
|
+
Stack.prototype.get = _stackGet_default;
|
|
17180
|
+
Stack.prototype.has = _stackHas_default;
|
|
17181
|
+
Stack.prototype.set = _stackSet_default;
|
|
17182
|
+
_Stack_default = Stack;
|
|
17183
|
+
});
|
|
17184
|
+
|
|
17185
|
+
// ../../node_modules/lodash-es/_setCacheAdd.js
|
|
17186
|
+
function setCacheAdd(value) {
|
|
17187
|
+
this.__data__.set(value, HASH_UNDEFINED3);
|
|
17188
|
+
return this;
|
|
17189
|
+
}
|
|
17190
|
+
var HASH_UNDEFINED3 = "__lodash_hash_undefined__", _setCacheAdd_default;
|
|
17191
|
+
var init__setCacheAdd = __esm(() => {
|
|
17192
|
+
_setCacheAdd_default = setCacheAdd;
|
|
17193
|
+
});
|
|
17194
|
+
|
|
17195
|
+
// ../../node_modules/lodash-es/_setCacheHas.js
|
|
17196
|
+
function setCacheHas(value) {
|
|
17197
|
+
return this.__data__.has(value);
|
|
17198
|
+
}
|
|
17199
|
+
var _setCacheHas_default;
|
|
17200
|
+
var init__setCacheHas = __esm(() => {
|
|
17201
|
+
_setCacheHas_default = setCacheHas;
|
|
17202
|
+
});
|
|
17203
|
+
|
|
17204
|
+
// ../../node_modules/lodash-es/_SetCache.js
|
|
17205
|
+
function SetCache(values) {
|
|
17206
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
17207
|
+
this.__data__ = new _MapCache_default;
|
|
17208
|
+
while (++index < length) {
|
|
17209
|
+
this.add(values[index]);
|
|
17210
|
+
}
|
|
17211
|
+
}
|
|
17212
|
+
var _SetCache_default;
|
|
17213
|
+
var init__SetCache = __esm(() => {
|
|
17214
|
+
init__MapCache();
|
|
17215
|
+
init__setCacheAdd();
|
|
17216
|
+
init__setCacheHas();
|
|
17217
|
+
SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd_default;
|
|
17218
|
+
SetCache.prototype.has = _setCacheHas_default;
|
|
17219
|
+
_SetCache_default = SetCache;
|
|
17220
|
+
});
|
|
17221
|
+
|
|
17222
|
+
// ../../node_modules/lodash-es/_arraySome.js
|
|
17223
|
+
function arraySome(array, predicate) {
|
|
17224
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
17225
|
+
while (++index < length) {
|
|
17226
|
+
if (predicate(array[index], index, array)) {
|
|
17227
|
+
return true;
|
|
17228
|
+
}
|
|
17229
|
+
}
|
|
17230
|
+
return false;
|
|
17231
|
+
}
|
|
17232
|
+
var _arraySome_default;
|
|
17233
|
+
var init__arraySome = __esm(() => {
|
|
17234
|
+
_arraySome_default = arraySome;
|
|
17235
|
+
});
|
|
17236
|
+
|
|
17237
|
+
// ../../node_modules/lodash-es/_cacheHas.js
|
|
17238
|
+
function cacheHas(cache, key) {
|
|
17239
|
+
return cache.has(key);
|
|
17240
|
+
}
|
|
17241
|
+
var _cacheHas_default;
|
|
17242
|
+
var init__cacheHas = __esm(() => {
|
|
17243
|
+
_cacheHas_default = cacheHas;
|
|
17244
|
+
});
|
|
17245
|
+
|
|
17246
|
+
// ../../node_modules/lodash-es/_equalArrays.js
|
|
17247
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
17248
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
17249
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
17250
|
+
return false;
|
|
17251
|
+
}
|
|
17252
|
+
var arrStacked = stack.get(array);
|
|
17253
|
+
var othStacked = stack.get(other);
|
|
17254
|
+
if (arrStacked && othStacked) {
|
|
17255
|
+
return arrStacked == other && othStacked == array;
|
|
17256
|
+
}
|
|
17257
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new _SetCache_default : undefined;
|
|
17258
|
+
stack.set(array, other);
|
|
17259
|
+
stack.set(other, array);
|
|
17260
|
+
while (++index < arrLength) {
|
|
17261
|
+
var arrValue = array[index], othValue = other[index];
|
|
17262
|
+
if (customizer) {
|
|
17263
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
17264
|
+
}
|
|
17265
|
+
if (compared !== undefined) {
|
|
17266
|
+
if (compared) {
|
|
17267
|
+
continue;
|
|
17268
|
+
}
|
|
17269
|
+
result = false;
|
|
17270
|
+
break;
|
|
17271
|
+
}
|
|
17272
|
+
if (seen) {
|
|
17273
|
+
if (!_arraySome_default(other, function(othValue2, othIndex) {
|
|
17274
|
+
if (!_cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
17275
|
+
return seen.push(othIndex);
|
|
17276
|
+
}
|
|
17277
|
+
})) {
|
|
17278
|
+
result = false;
|
|
17279
|
+
break;
|
|
17280
|
+
}
|
|
17281
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
17282
|
+
result = false;
|
|
17283
|
+
break;
|
|
17284
|
+
}
|
|
17285
|
+
}
|
|
17286
|
+
stack["delete"](array);
|
|
17287
|
+
stack["delete"](other);
|
|
17288
|
+
return result;
|
|
17289
|
+
}
|
|
17290
|
+
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2, _equalArrays_default;
|
|
17291
|
+
var init__equalArrays = __esm(() => {
|
|
17292
|
+
init__SetCache();
|
|
17293
|
+
init__arraySome();
|
|
17294
|
+
init__cacheHas();
|
|
17295
|
+
_equalArrays_default = equalArrays;
|
|
17296
|
+
});
|
|
17297
|
+
|
|
17298
|
+
// ../../node_modules/lodash-es/_Uint8Array.js
|
|
17299
|
+
var Uint8Array2, _Uint8Array_default;
|
|
17300
|
+
var init__Uint8Array = __esm(() => {
|
|
17301
|
+
init__root();
|
|
17302
|
+
Uint8Array2 = _root_default.Uint8Array;
|
|
17303
|
+
_Uint8Array_default = Uint8Array2;
|
|
17304
|
+
});
|
|
17305
|
+
|
|
17306
|
+
// ../../node_modules/lodash-es/_mapToArray.js
|
|
17307
|
+
function mapToArray(map) {
|
|
17308
|
+
var index = -1, result = Array(map.size);
|
|
17309
|
+
map.forEach(function(value, key) {
|
|
17310
|
+
result[++index] = [key, value];
|
|
17311
|
+
});
|
|
17312
|
+
return result;
|
|
17313
|
+
}
|
|
17314
|
+
var _mapToArray_default;
|
|
17315
|
+
var init__mapToArray = __esm(() => {
|
|
17316
|
+
_mapToArray_default = mapToArray;
|
|
17317
|
+
});
|
|
17318
|
+
|
|
17319
|
+
// ../../node_modules/lodash-es/_setToArray.js
|
|
17320
|
+
function setToArray(set) {
|
|
17321
|
+
var index = -1, result = Array(set.size);
|
|
17322
|
+
set.forEach(function(value) {
|
|
17323
|
+
result[++index] = value;
|
|
17324
|
+
});
|
|
17325
|
+
return result;
|
|
17326
|
+
}
|
|
17327
|
+
var _setToArray_default;
|
|
17328
|
+
var init__setToArray = __esm(() => {
|
|
17329
|
+
_setToArray_default = setToArray;
|
|
17330
|
+
});
|
|
17331
|
+
|
|
17332
|
+
// ../../node_modules/lodash-es/_equalByTag.js
|
|
17333
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
17334
|
+
switch (tag) {
|
|
17335
|
+
case dataViewTag:
|
|
17336
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
17337
|
+
return false;
|
|
17338
|
+
}
|
|
17339
|
+
object = object.buffer;
|
|
17340
|
+
other = other.buffer;
|
|
17341
|
+
case arrayBufferTag:
|
|
17342
|
+
if (object.byteLength != other.byteLength || !equalFunc(new _Uint8Array_default(object), new _Uint8Array_default(other))) {
|
|
17343
|
+
return false;
|
|
17344
|
+
}
|
|
17345
|
+
return true;
|
|
17346
|
+
case boolTag:
|
|
17347
|
+
case dateTag:
|
|
17348
|
+
case numberTag:
|
|
17349
|
+
return eq_default(+object, +other);
|
|
17350
|
+
case errorTag:
|
|
17351
|
+
return object.name == other.name && object.message == other.message;
|
|
17352
|
+
case regexpTag:
|
|
17353
|
+
case stringTag:
|
|
17354
|
+
return object == other + "";
|
|
17355
|
+
case mapTag:
|
|
17356
|
+
var convert = _mapToArray_default;
|
|
17357
|
+
case setTag:
|
|
17358
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG2;
|
|
17359
|
+
convert || (convert = _setToArray_default);
|
|
17360
|
+
if (object.size != other.size && !isPartial) {
|
|
17361
|
+
return false;
|
|
17362
|
+
}
|
|
17363
|
+
var stacked = stack.get(object);
|
|
17364
|
+
if (stacked) {
|
|
17365
|
+
return stacked == other;
|
|
17366
|
+
}
|
|
17367
|
+
bitmask |= COMPARE_UNORDERED_FLAG2;
|
|
17368
|
+
stack.set(object, other);
|
|
17369
|
+
var result = _equalArrays_default(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
17370
|
+
stack["delete"](object);
|
|
17371
|
+
return result;
|
|
17372
|
+
case symbolTag:
|
|
17373
|
+
if (symbolValueOf) {
|
|
17374
|
+
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
17375
|
+
}
|
|
17376
|
+
}
|
|
17377
|
+
return false;
|
|
17378
|
+
}
|
|
17379
|
+
var COMPARE_PARTIAL_FLAG2 = 1, COMPARE_UNORDERED_FLAG2 = 2, boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", symbolProto, symbolValueOf, _equalByTag_default;
|
|
17380
|
+
var init__equalByTag = __esm(() => {
|
|
17381
|
+
init__Symbol();
|
|
17382
|
+
init__Uint8Array();
|
|
17383
|
+
init_eq();
|
|
17384
|
+
init__equalArrays();
|
|
17385
|
+
init__mapToArray();
|
|
17386
|
+
init__setToArray();
|
|
17387
|
+
symbolProto = _Symbol_default ? _Symbol_default.prototype : undefined;
|
|
17388
|
+
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
17389
|
+
_equalByTag_default = equalByTag;
|
|
17390
|
+
});
|
|
17391
|
+
|
|
17392
|
+
// ../../node_modules/lodash-es/_arrayPush.js
|
|
17393
|
+
function arrayPush(array, values) {
|
|
17394
|
+
var index = -1, length = values.length, offset = array.length;
|
|
17395
|
+
while (++index < length) {
|
|
17396
|
+
array[offset + index] = values[index];
|
|
17397
|
+
}
|
|
17398
|
+
return array;
|
|
17399
|
+
}
|
|
17400
|
+
var _arrayPush_default;
|
|
17401
|
+
var init__arrayPush = __esm(() => {
|
|
17402
|
+
_arrayPush_default = arrayPush;
|
|
17403
|
+
});
|
|
17404
|
+
|
|
17405
|
+
// ../../node_modules/lodash-es/isArray.js
|
|
17406
|
+
var isArray, isArray_default;
|
|
17407
|
+
var init_isArray = __esm(() => {
|
|
17408
|
+
isArray = Array.isArray;
|
|
17409
|
+
isArray_default = isArray;
|
|
17410
|
+
});
|
|
17411
|
+
|
|
17412
|
+
// ../../node_modules/lodash-es/_baseGetAllKeys.js
|
|
17413
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
17414
|
+
var result = keysFunc(object);
|
|
17415
|
+
return isArray_default(object) ? result : _arrayPush_default(result, symbolsFunc(object));
|
|
17416
|
+
}
|
|
17417
|
+
var _baseGetAllKeys_default;
|
|
17418
|
+
var init__baseGetAllKeys = __esm(() => {
|
|
17419
|
+
init__arrayPush();
|
|
17420
|
+
init_isArray();
|
|
17421
|
+
_baseGetAllKeys_default = baseGetAllKeys;
|
|
17422
|
+
});
|
|
17423
|
+
|
|
17424
|
+
// ../../node_modules/lodash-es/_arrayFilter.js
|
|
17425
|
+
function arrayFilter(array, predicate) {
|
|
17426
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
17427
|
+
while (++index < length) {
|
|
17428
|
+
var value = array[index];
|
|
17429
|
+
if (predicate(value, index, array)) {
|
|
17430
|
+
result[resIndex++] = value;
|
|
17431
|
+
}
|
|
17432
|
+
}
|
|
17433
|
+
return result;
|
|
17434
|
+
}
|
|
17435
|
+
var _arrayFilter_default;
|
|
17436
|
+
var init__arrayFilter = __esm(() => {
|
|
17437
|
+
_arrayFilter_default = arrayFilter;
|
|
17438
|
+
});
|
|
17439
|
+
|
|
17440
|
+
// ../../node_modules/lodash-es/stubArray.js
|
|
17441
|
+
function stubArray() {
|
|
17442
|
+
return [];
|
|
17443
|
+
}
|
|
17444
|
+
var stubArray_default;
|
|
17445
|
+
var init_stubArray = __esm(() => {
|
|
17446
|
+
stubArray_default = stubArray;
|
|
17447
|
+
});
|
|
17448
|
+
|
|
17449
|
+
// ../../node_modules/lodash-es/_getSymbols.js
|
|
17450
|
+
var objectProto6, propertyIsEnumerable, nativeGetSymbols, getSymbols, _getSymbols_default;
|
|
17451
|
+
var init__getSymbols = __esm(() => {
|
|
17452
|
+
init__arrayFilter();
|
|
17453
|
+
init_stubArray();
|
|
17454
|
+
objectProto6 = Object.prototype;
|
|
17455
|
+
propertyIsEnumerable = objectProto6.propertyIsEnumerable;
|
|
17456
|
+
nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
17457
|
+
getSymbols = !nativeGetSymbols ? stubArray_default : function(object) {
|
|
17458
|
+
if (object == null) {
|
|
17459
|
+
return [];
|
|
17460
|
+
}
|
|
17461
|
+
object = Object(object);
|
|
17462
|
+
return _arrayFilter_default(nativeGetSymbols(object), function(symbol) {
|
|
17463
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
17464
|
+
});
|
|
17465
|
+
};
|
|
17466
|
+
_getSymbols_default = getSymbols;
|
|
17467
|
+
});
|
|
17468
|
+
|
|
17469
|
+
// ../../node_modules/lodash-es/_baseTimes.js
|
|
17470
|
+
function baseTimes(n, iteratee) {
|
|
17471
|
+
var index = -1, result = Array(n);
|
|
17472
|
+
while (++index < n) {
|
|
17473
|
+
result[index] = iteratee(index);
|
|
17474
|
+
}
|
|
17475
|
+
return result;
|
|
17476
|
+
}
|
|
17477
|
+
var _baseTimes_default;
|
|
17478
|
+
var init__baseTimes = __esm(() => {
|
|
17479
|
+
_baseTimes_default = baseTimes;
|
|
17480
|
+
});
|
|
17481
|
+
|
|
17482
|
+
// ../../node_modules/lodash-es/isObjectLike.js
|
|
17483
|
+
function isObjectLike(value) {
|
|
17484
|
+
return value != null && typeof value == "object";
|
|
17485
|
+
}
|
|
17486
|
+
var isObjectLike_default;
|
|
17487
|
+
var init_isObjectLike = __esm(() => {
|
|
17488
|
+
isObjectLike_default = isObjectLike;
|
|
17489
|
+
});
|
|
17490
|
+
|
|
17491
|
+
// ../../node_modules/lodash-es/_baseIsArguments.js
|
|
17492
|
+
function baseIsArguments(value) {
|
|
17493
|
+
return isObjectLike_default(value) && _baseGetTag_default(value) == argsTag;
|
|
17494
|
+
}
|
|
17495
|
+
var argsTag = "[object Arguments]", _baseIsArguments_default;
|
|
17496
|
+
var init__baseIsArguments = __esm(() => {
|
|
17497
|
+
init__baseGetTag();
|
|
17498
|
+
init_isObjectLike();
|
|
17499
|
+
_baseIsArguments_default = baseIsArguments;
|
|
17500
|
+
});
|
|
17501
|
+
|
|
17502
|
+
// ../../node_modules/lodash-es/isArguments.js
|
|
17503
|
+
var objectProto7, hasOwnProperty5, propertyIsEnumerable2, isArguments, isArguments_default;
|
|
17504
|
+
var init_isArguments = __esm(() => {
|
|
17505
|
+
init__baseIsArguments();
|
|
17506
|
+
init_isObjectLike();
|
|
17507
|
+
objectProto7 = Object.prototype;
|
|
17508
|
+
hasOwnProperty5 = objectProto7.hasOwnProperty;
|
|
17509
|
+
propertyIsEnumerable2 = objectProto7.propertyIsEnumerable;
|
|
17510
|
+
isArguments = _baseIsArguments_default(function() {
|
|
17511
|
+
return arguments;
|
|
17512
|
+
}()) ? _baseIsArguments_default : function(value) {
|
|
17513
|
+
return isObjectLike_default(value) && hasOwnProperty5.call(value, "callee") && !propertyIsEnumerable2.call(value, "callee");
|
|
17514
|
+
};
|
|
17515
|
+
isArguments_default = isArguments;
|
|
17516
|
+
});
|
|
17517
|
+
|
|
17518
|
+
// ../../node_modules/lodash-es/stubFalse.js
|
|
17519
|
+
function stubFalse() {
|
|
17520
|
+
return false;
|
|
17521
|
+
}
|
|
17522
|
+
var stubFalse_default;
|
|
17523
|
+
var init_stubFalse = __esm(() => {
|
|
17524
|
+
stubFalse_default = stubFalse;
|
|
17525
|
+
});
|
|
17526
|
+
|
|
17527
|
+
// ../../node_modules/lodash-es/isBuffer.js
|
|
17528
|
+
var exports_isBuffer = {};
|
|
17529
|
+
__export(exports_isBuffer, {
|
|
17530
|
+
default: () => isBuffer_default
|
|
17531
|
+
});
|
|
17532
|
+
var freeExports, freeModule, moduleExports, Buffer2, nativeIsBuffer, isBuffer, isBuffer_default;
|
|
17533
|
+
var init_isBuffer = __esm(() => {
|
|
17534
|
+
init__root();
|
|
17535
|
+
init_stubFalse();
|
|
17536
|
+
freeExports = typeof exports_isBuffer == "object" && exports_isBuffer && !exports_isBuffer.nodeType && exports_isBuffer;
|
|
17537
|
+
freeModule = freeExports && typeof module_isBuffer == "object" && module_isBuffer && !module_isBuffer.nodeType && module_isBuffer;
|
|
17538
|
+
moduleExports = freeModule && freeModule.exports === freeExports;
|
|
17539
|
+
Buffer2 = moduleExports ? _root_default.Buffer : undefined;
|
|
17540
|
+
nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined;
|
|
17541
|
+
isBuffer = nativeIsBuffer || stubFalse_default;
|
|
17542
|
+
isBuffer_default = isBuffer;
|
|
17543
|
+
});
|
|
17544
|
+
|
|
17545
|
+
// ../../node_modules/lodash-es/_isIndex.js
|
|
17546
|
+
function isIndex(value, length) {
|
|
17547
|
+
var type = typeof value;
|
|
17548
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
17549
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
17550
|
+
}
|
|
17551
|
+
var MAX_SAFE_INTEGER = 9007199254740991, reIsUint, _isIndex_default;
|
|
17552
|
+
var init__isIndex = __esm(() => {
|
|
17553
|
+
reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
17554
|
+
_isIndex_default = isIndex;
|
|
17555
|
+
});
|
|
17556
|
+
|
|
17557
|
+
// ../../node_modules/lodash-es/isLength.js
|
|
17558
|
+
function isLength(value) {
|
|
17559
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
|
|
17560
|
+
}
|
|
17561
|
+
var MAX_SAFE_INTEGER2 = 9007199254740991, isLength_default;
|
|
17562
|
+
var init_isLength = __esm(() => {
|
|
17563
|
+
isLength_default = isLength;
|
|
17564
|
+
});
|
|
17565
|
+
|
|
17566
|
+
// ../../node_modules/lodash-es/_baseIsTypedArray.js
|
|
17567
|
+
function baseIsTypedArray(value) {
|
|
17568
|
+
return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[_baseGetTag_default(value)];
|
|
17569
|
+
}
|
|
17570
|
+
var argsTag2 = "[object Arguments]", arrayTag = "[object Array]", boolTag2 = "[object Boolean]", dateTag2 = "[object Date]", errorTag2 = "[object Error]", funcTag2 = "[object Function]", mapTag2 = "[object Map]", numberTag2 = "[object Number]", objectTag = "[object Object]", regexpTag2 = "[object RegExp]", setTag2 = "[object Set]", stringTag2 = "[object String]", weakMapTag = "[object WeakMap]", arrayBufferTag2 = "[object ArrayBuffer]", dataViewTag2 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]", typedArrayTags, _baseIsTypedArray_default;
|
|
17571
|
+
var init__baseIsTypedArray = __esm(() => {
|
|
17572
|
+
init__baseGetTag();
|
|
17573
|
+
init_isLength();
|
|
17574
|
+
init_isObjectLike();
|
|
17575
|
+
typedArrayTags = {};
|
|
17576
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
17577
|
+
typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag2] = typedArrayTags[boolTag2] = typedArrayTags[dataViewTag2] = typedArrayTags[dateTag2] = typedArrayTags[errorTag2] = typedArrayTags[funcTag2] = typedArrayTags[mapTag2] = typedArrayTags[numberTag2] = typedArrayTags[objectTag] = typedArrayTags[regexpTag2] = typedArrayTags[setTag2] = typedArrayTags[stringTag2] = typedArrayTags[weakMapTag] = false;
|
|
17578
|
+
_baseIsTypedArray_default = baseIsTypedArray;
|
|
17579
|
+
});
|
|
17580
|
+
|
|
17581
|
+
// ../../node_modules/lodash-es/_baseUnary.js
|
|
17582
|
+
function baseUnary(func) {
|
|
17583
|
+
return function(value) {
|
|
17584
|
+
return func(value);
|
|
17585
|
+
};
|
|
17586
|
+
}
|
|
17587
|
+
var _baseUnary_default;
|
|
17588
|
+
var init__baseUnary = __esm(() => {
|
|
17589
|
+
_baseUnary_default = baseUnary;
|
|
17590
|
+
});
|
|
17591
|
+
|
|
17592
|
+
// ../../node_modules/lodash-es/_nodeUtil.js
|
|
17593
|
+
var exports__nodeUtil = {};
|
|
17594
|
+
__export(exports__nodeUtil, {
|
|
17595
|
+
default: () => _nodeUtil_default
|
|
17596
|
+
});
|
|
17597
|
+
var freeExports2, freeModule2, moduleExports2, freeProcess, nodeUtil, _nodeUtil_default;
|
|
17598
|
+
var init__nodeUtil = __esm(() => {
|
|
17599
|
+
init__freeGlobal();
|
|
17600
|
+
freeExports2 = typeof exports__nodeUtil == "object" && exports__nodeUtil && !exports__nodeUtil.nodeType && exports__nodeUtil;
|
|
17601
|
+
freeModule2 = freeExports2 && typeof module__nodeUtil == "object" && module__nodeUtil && !module__nodeUtil.nodeType && module__nodeUtil;
|
|
17602
|
+
moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
|
17603
|
+
freeProcess = moduleExports2 && _freeGlobal_default.process;
|
|
17604
|
+
nodeUtil = function() {
|
|
17605
|
+
try {
|
|
17606
|
+
var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
|
|
17607
|
+
if (types) {
|
|
17608
|
+
return types;
|
|
17609
|
+
}
|
|
17610
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
17611
|
+
} catch (e) {}
|
|
17612
|
+
}();
|
|
17613
|
+
_nodeUtil_default = nodeUtil;
|
|
17614
|
+
});
|
|
17615
|
+
|
|
17616
|
+
// ../../node_modules/lodash-es/isTypedArray.js
|
|
17617
|
+
var nodeIsTypedArray, isTypedArray, isTypedArray_default;
|
|
17618
|
+
var init_isTypedArray = __esm(() => {
|
|
17619
|
+
init__baseIsTypedArray();
|
|
17620
|
+
init__baseUnary();
|
|
17621
|
+
init__nodeUtil();
|
|
17622
|
+
nodeIsTypedArray = _nodeUtil_default && _nodeUtil_default.isTypedArray;
|
|
17623
|
+
isTypedArray = nodeIsTypedArray ? _baseUnary_default(nodeIsTypedArray) : _baseIsTypedArray_default;
|
|
17624
|
+
isTypedArray_default = isTypedArray;
|
|
17625
|
+
});
|
|
17626
|
+
|
|
17627
|
+
// ../../node_modules/lodash-es/_arrayLikeKeys.js
|
|
17628
|
+
function arrayLikeKeys(value, inherited) {
|
|
17629
|
+
var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? _baseTimes_default(value.length, String) : [], length = result.length;
|
|
17630
|
+
for (var key in value) {
|
|
17631
|
+
if ((inherited || hasOwnProperty6.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || _isIndex_default(key, length)))) {
|
|
17632
|
+
result.push(key);
|
|
17633
|
+
}
|
|
17634
|
+
}
|
|
17635
|
+
return result;
|
|
17636
|
+
}
|
|
17637
|
+
var objectProto8, hasOwnProperty6, _arrayLikeKeys_default;
|
|
17638
|
+
var init__arrayLikeKeys = __esm(() => {
|
|
17639
|
+
init__baseTimes();
|
|
17640
|
+
init_isArguments();
|
|
17641
|
+
init_isArray();
|
|
17642
|
+
init_isBuffer();
|
|
17643
|
+
init__isIndex();
|
|
17644
|
+
init_isTypedArray();
|
|
17645
|
+
objectProto8 = Object.prototype;
|
|
17646
|
+
hasOwnProperty6 = objectProto8.hasOwnProperty;
|
|
17647
|
+
_arrayLikeKeys_default = arrayLikeKeys;
|
|
17648
|
+
});
|
|
17649
|
+
|
|
17650
|
+
// ../../node_modules/lodash-es/_isPrototype.js
|
|
17651
|
+
function isPrototype(value) {
|
|
17652
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto9;
|
|
17653
|
+
return value === proto;
|
|
17654
|
+
}
|
|
17655
|
+
var objectProto9, _isPrototype_default;
|
|
17656
|
+
var init__isPrototype = __esm(() => {
|
|
17657
|
+
objectProto9 = Object.prototype;
|
|
17658
|
+
_isPrototype_default = isPrototype;
|
|
17659
|
+
});
|
|
17660
|
+
|
|
17661
|
+
// ../../node_modules/lodash-es/_overArg.js
|
|
17662
|
+
function overArg(func, transform) {
|
|
17663
|
+
return function(arg) {
|
|
17664
|
+
return func(transform(arg));
|
|
17665
|
+
};
|
|
17666
|
+
}
|
|
17667
|
+
var _overArg_default;
|
|
17668
|
+
var init__overArg = __esm(() => {
|
|
17669
|
+
_overArg_default = overArg;
|
|
17670
|
+
});
|
|
17671
|
+
|
|
17672
|
+
// ../../node_modules/lodash-es/_nativeKeys.js
|
|
17673
|
+
var nativeKeys, _nativeKeys_default;
|
|
17674
|
+
var init__nativeKeys = __esm(() => {
|
|
17675
|
+
init__overArg();
|
|
17676
|
+
nativeKeys = _overArg_default(Object.keys, Object);
|
|
17677
|
+
_nativeKeys_default = nativeKeys;
|
|
17678
|
+
});
|
|
17679
|
+
|
|
17680
|
+
// ../../node_modules/lodash-es/_baseKeys.js
|
|
17681
|
+
function baseKeys(object) {
|
|
17682
|
+
if (!_isPrototype_default(object)) {
|
|
17683
|
+
return _nativeKeys_default(object);
|
|
17684
|
+
}
|
|
17685
|
+
var result = [];
|
|
17686
|
+
for (var key in Object(object)) {
|
|
17687
|
+
if (hasOwnProperty7.call(object, key) && key != "constructor") {
|
|
17688
|
+
result.push(key);
|
|
17689
|
+
}
|
|
17690
|
+
}
|
|
17691
|
+
return result;
|
|
17692
|
+
}
|
|
17693
|
+
var objectProto10, hasOwnProperty7, _baseKeys_default;
|
|
17694
|
+
var init__baseKeys = __esm(() => {
|
|
17695
|
+
init__isPrototype();
|
|
17696
|
+
init__nativeKeys();
|
|
17697
|
+
objectProto10 = Object.prototype;
|
|
17698
|
+
hasOwnProperty7 = objectProto10.hasOwnProperty;
|
|
17699
|
+
_baseKeys_default = baseKeys;
|
|
17700
|
+
});
|
|
17701
|
+
|
|
17702
|
+
// ../../node_modules/lodash-es/isArrayLike.js
|
|
17703
|
+
function isArrayLike(value) {
|
|
17704
|
+
return value != null && isLength_default(value.length) && !isFunction_default(value);
|
|
17705
|
+
}
|
|
17706
|
+
var isArrayLike_default;
|
|
17707
|
+
var init_isArrayLike = __esm(() => {
|
|
17708
|
+
init_isFunction();
|
|
17709
|
+
init_isLength();
|
|
17710
|
+
isArrayLike_default = isArrayLike;
|
|
17711
|
+
});
|
|
17712
|
+
|
|
17713
|
+
// ../../node_modules/lodash-es/keys.js
|
|
17714
|
+
function keys(object) {
|
|
17715
|
+
return isArrayLike_default(object) ? _arrayLikeKeys_default(object) : _baseKeys_default(object);
|
|
17716
|
+
}
|
|
17717
|
+
var keys_default;
|
|
17718
|
+
var init_keys = __esm(() => {
|
|
17719
|
+
init__arrayLikeKeys();
|
|
17720
|
+
init__baseKeys();
|
|
17721
|
+
init_isArrayLike();
|
|
17722
|
+
keys_default = keys;
|
|
17723
|
+
});
|
|
17724
|
+
|
|
17725
|
+
// ../../node_modules/lodash-es/_getAllKeys.js
|
|
17726
|
+
function getAllKeys(object) {
|
|
17727
|
+
return _baseGetAllKeys_default(object, keys_default, _getSymbols_default);
|
|
17728
|
+
}
|
|
17729
|
+
var _getAllKeys_default;
|
|
17730
|
+
var init__getAllKeys = __esm(() => {
|
|
17731
|
+
init__baseGetAllKeys();
|
|
17732
|
+
init__getSymbols();
|
|
17733
|
+
init_keys();
|
|
17734
|
+
_getAllKeys_default = getAllKeys;
|
|
17735
|
+
});
|
|
17736
|
+
|
|
17737
|
+
// ../../node_modules/lodash-es/_equalObjects.js
|
|
17738
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
17739
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = _getAllKeys_default(object), objLength = objProps.length, othProps = _getAllKeys_default(other), othLength = othProps.length;
|
|
17740
|
+
if (objLength != othLength && !isPartial) {
|
|
17741
|
+
return false;
|
|
17742
|
+
}
|
|
17743
|
+
var index = objLength;
|
|
17744
|
+
while (index--) {
|
|
17745
|
+
var key = objProps[index];
|
|
17746
|
+
if (!(isPartial ? key in other : hasOwnProperty8.call(other, key))) {
|
|
17747
|
+
return false;
|
|
17748
|
+
}
|
|
17749
|
+
}
|
|
17750
|
+
var objStacked = stack.get(object);
|
|
17751
|
+
var othStacked = stack.get(other);
|
|
17752
|
+
if (objStacked && othStacked) {
|
|
17753
|
+
return objStacked == other && othStacked == object;
|
|
17754
|
+
}
|
|
17755
|
+
var result = true;
|
|
17756
|
+
stack.set(object, other);
|
|
17757
|
+
stack.set(other, object);
|
|
17758
|
+
var skipCtor = isPartial;
|
|
17759
|
+
while (++index < objLength) {
|
|
17760
|
+
key = objProps[index];
|
|
17761
|
+
var objValue = object[key], othValue = other[key];
|
|
17762
|
+
if (customizer) {
|
|
17763
|
+
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
17764
|
+
}
|
|
17765
|
+
if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
17766
|
+
result = false;
|
|
17767
|
+
break;
|
|
17768
|
+
}
|
|
17769
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
17770
|
+
}
|
|
17771
|
+
if (result && !skipCtor) {
|
|
17772
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
17773
|
+
if (objCtor != othCtor && (("constructor" in object) && ("constructor" in other)) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
17774
|
+
result = false;
|
|
17775
|
+
}
|
|
17776
|
+
}
|
|
17777
|
+
stack["delete"](object);
|
|
17778
|
+
stack["delete"](other);
|
|
17779
|
+
return result;
|
|
17780
|
+
}
|
|
17781
|
+
var COMPARE_PARTIAL_FLAG3 = 1, objectProto11, hasOwnProperty8, _equalObjects_default;
|
|
17782
|
+
var init__equalObjects = __esm(() => {
|
|
17783
|
+
init__getAllKeys();
|
|
17784
|
+
objectProto11 = Object.prototype;
|
|
17785
|
+
hasOwnProperty8 = objectProto11.hasOwnProperty;
|
|
17786
|
+
_equalObjects_default = equalObjects;
|
|
17787
|
+
});
|
|
17788
|
+
|
|
17789
|
+
// ../../node_modules/lodash-es/_DataView.js
|
|
17790
|
+
var DataView, _DataView_default;
|
|
17791
|
+
var init__DataView = __esm(() => {
|
|
17792
|
+
init__getNative();
|
|
17793
|
+
init__root();
|
|
17794
|
+
DataView = _getNative_default(_root_default, "DataView");
|
|
17795
|
+
_DataView_default = DataView;
|
|
17796
|
+
});
|
|
17797
|
+
|
|
17798
|
+
// ../../node_modules/lodash-es/_Promise.js
|
|
17799
|
+
var Promise2, _Promise_default;
|
|
17800
|
+
var init__Promise = __esm(() => {
|
|
17801
|
+
init__getNative();
|
|
17802
|
+
init__root();
|
|
17803
|
+
Promise2 = _getNative_default(_root_default, "Promise");
|
|
17804
|
+
_Promise_default = Promise2;
|
|
17805
|
+
});
|
|
17806
|
+
|
|
17807
|
+
// ../../node_modules/lodash-es/_Set.js
|
|
17808
|
+
var Set2, _Set_default;
|
|
17809
|
+
var init__Set = __esm(() => {
|
|
17810
|
+
init__getNative();
|
|
17811
|
+
init__root();
|
|
17812
|
+
Set2 = _getNative_default(_root_default, "Set");
|
|
17813
|
+
_Set_default = Set2;
|
|
17814
|
+
});
|
|
17815
|
+
|
|
17816
|
+
// ../../node_modules/lodash-es/_WeakMap.js
|
|
17817
|
+
var WeakMap2, _WeakMap_default;
|
|
17818
|
+
var init__WeakMap = __esm(() => {
|
|
17819
|
+
init__getNative();
|
|
17820
|
+
init__root();
|
|
17821
|
+
WeakMap2 = _getNative_default(_root_default, "WeakMap");
|
|
17822
|
+
_WeakMap_default = WeakMap2;
|
|
17823
|
+
});
|
|
17824
|
+
|
|
17825
|
+
// ../../node_modules/lodash-es/_getTag.js
|
|
17826
|
+
var mapTag3 = "[object Map]", objectTag2 = "[object Object]", promiseTag = "[object Promise]", setTag3 = "[object Set]", weakMapTag2 = "[object WeakMap]", dataViewTag3 = "[object DataView]", dataViewCtorString, mapCtorString, promiseCtorString, setCtorString, weakMapCtorString, getTag, _getTag_default;
|
|
17827
|
+
var init__getTag = __esm(() => {
|
|
17828
|
+
init__DataView();
|
|
17829
|
+
init__Map();
|
|
17830
|
+
init__Promise();
|
|
17831
|
+
init__Set();
|
|
17832
|
+
init__WeakMap();
|
|
17833
|
+
init__baseGetTag();
|
|
17834
|
+
init__toSource();
|
|
17835
|
+
dataViewCtorString = _toSource_default(_DataView_default);
|
|
17836
|
+
mapCtorString = _toSource_default(_Map_default);
|
|
17837
|
+
promiseCtorString = _toSource_default(_Promise_default);
|
|
17838
|
+
setCtorString = _toSource_default(_Set_default);
|
|
17839
|
+
weakMapCtorString = _toSource_default(_WeakMap_default);
|
|
17840
|
+
getTag = _baseGetTag_default;
|
|
17841
|
+
if (_DataView_default && getTag(new _DataView_default(new ArrayBuffer(1))) != dataViewTag3 || _Map_default && getTag(new _Map_default) != mapTag3 || _Promise_default && getTag(_Promise_default.resolve()) != promiseTag || _Set_default && getTag(new _Set_default) != setTag3 || _WeakMap_default && getTag(new _WeakMap_default) != weakMapTag2) {
|
|
17842
|
+
getTag = function(value) {
|
|
17843
|
+
var result = _baseGetTag_default(value), Ctor = result == objectTag2 ? value.constructor : undefined, ctorString = Ctor ? _toSource_default(Ctor) : "";
|
|
17844
|
+
if (ctorString) {
|
|
17845
|
+
switch (ctorString) {
|
|
17846
|
+
case dataViewCtorString:
|
|
17847
|
+
return dataViewTag3;
|
|
17848
|
+
case mapCtorString:
|
|
17849
|
+
return mapTag3;
|
|
17850
|
+
case promiseCtorString:
|
|
17851
|
+
return promiseTag;
|
|
17852
|
+
case setCtorString:
|
|
17853
|
+
return setTag3;
|
|
17854
|
+
case weakMapCtorString:
|
|
17855
|
+
return weakMapTag2;
|
|
17856
|
+
}
|
|
17857
|
+
}
|
|
17858
|
+
return result;
|
|
17859
|
+
};
|
|
17860
|
+
}
|
|
17861
|
+
_getTag_default = getTag;
|
|
17862
|
+
});
|
|
17863
|
+
|
|
17864
|
+
// ../../node_modules/lodash-es/_baseIsEqualDeep.js
|
|
17865
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
17866
|
+
var objIsArr = isArray_default(object), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag2 : _getTag_default(object), othTag = othIsArr ? arrayTag2 : _getTag_default(other);
|
|
17867
|
+
objTag = objTag == argsTag3 ? objectTag3 : objTag;
|
|
17868
|
+
othTag = othTag == argsTag3 ? objectTag3 : othTag;
|
|
17869
|
+
var objIsObj = objTag == objectTag3, othIsObj = othTag == objectTag3, isSameTag = objTag == othTag;
|
|
17870
|
+
if (isSameTag && isBuffer_default(object)) {
|
|
17871
|
+
if (!isBuffer_default(other)) {
|
|
17872
|
+
return false;
|
|
17873
|
+
}
|
|
17874
|
+
objIsArr = true;
|
|
17875
|
+
objIsObj = false;
|
|
17876
|
+
}
|
|
17877
|
+
if (isSameTag && !objIsObj) {
|
|
17878
|
+
stack || (stack = new _Stack_default);
|
|
17879
|
+
return objIsArr || isTypedArray_default(object) ? _equalArrays_default(object, other, bitmask, customizer, equalFunc, stack) : _equalByTag_default(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
17880
|
+
}
|
|
17881
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG4)) {
|
|
17882
|
+
var objIsWrapped = objIsObj && hasOwnProperty9.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty9.call(other, "__wrapped__");
|
|
17883
|
+
if (objIsWrapped || othIsWrapped) {
|
|
17884
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
17885
|
+
stack || (stack = new _Stack_default);
|
|
17886
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
17887
|
+
}
|
|
17888
|
+
}
|
|
17889
|
+
if (!isSameTag) {
|
|
17890
|
+
return false;
|
|
17891
|
+
}
|
|
17892
|
+
stack || (stack = new _Stack_default);
|
|
17893
|
+
return _equalObjects_default(object, other, bitmask, customizer, equalFunc, stack);
|
|
17894
|
+
}
|
|
17895
|
+
var COMPARE_PARTIAL_FLAG4 = 1, argsTag3 = "[object Arguments]", arrayTag2 = "[object Array]", objectTag3 = "[object Object]", objectProto12, hasOwnProperty9, _baseIsEqualDeep_default;
|
|
17896
|
+
var init__baseIsEqualDeep = __esm(() => {
|
|
17897
|
+
init__Stack();
|
|
17898
|
+
init__equalArrays();
|
|
17899
|
+
init__equalByTag();
|
|
17900
|
+
init__equalObjects();
|
|
17901
|
+
init__getTag();
|
|
17902
|
+
init_isArray();
|
|
17903
|
+
init_isBuffer();
|
|
17904
|
+
init_isTypedArray();
|
|
17905
|
+
objectProto12 = Object.prototype;
|
|
17906
|
+
hasOwnProperty9 = objectProto12.hasOwnProperty;
|
|
17907
|
+
_baseIsEqualDeep_default = baseIsEqualDeep;
|
|
17908
|
+
});
|
|
17909
|
+
|
|
17910
|
+
// ../../node_modules/lodash-es/_baseIsEqual.js
|
|
17911
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
17912
|
+
if (value === other) {
|
|
17913
|
+
return true;
|
|
17914
|
+
}
|
|
17915
|
+
if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) {
|
|
17916
|
+
return value !== value && other !== other;
|
|
17917
|
+
}
|
|
17918
|
+
return _baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
17919
|
+
}
|
|
17920
|
+
var _baseIsEqual_default;
|
|
17921
|
+
var init__baseIsEqual = __esm(() => {
|
|
17922
|
+
init__baseIsEqualDeep();
|
|
17923
|
+
init_isObjectLike();
|
|
17924
|
+
_baseIsEqual_default = baseIsEqual;
|
|
17925
|
+
});
|
|
17926
|
+
|
|
17927
|
+
// ../../node_modules/lodash-es/_baseIsMatch.js
|
|
17928
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
17929
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
17930
|
+
if (object == null) {
|
|
17931
|
+
return !length;
|
|
17932
|
+
}
|
|
17933
|
+
object = Object(object);
|
|
17934
|
+
while (index--) {
|
|
17935
|
+
var data = matchData[index];
|
|
17936
|
+
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
17937
|
+
return false;
|
|
17938
|
+
}
|
|
17939
|
+
}
|
|
17940
|
+
while (++index < length) {
|
|
17941
|
+
data = matchData[index];
|
|
17942
|
+
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
17943
|
+
if (noCustomizer && data[2]) {
|
|
17944
|
+
if (objValue === undefined && !(key in object)) {
|
|
17945
|
+
return false;
|
|
17946
|
+
}
|
|
17947
|
+
} else {
|
|
17948
|
+
var stack = new _Stack_default;
|
|
17949
|
+
if (customizer) {
|
|
17950
|
+
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
17951
|
+
}
|
|
17952
|
+
if (!(result === undefined ? _baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result)) {
|
|
17953
|
+
return false;
|
|
17954
|
+
}
|
|
17955
|
+
}
|
|
17956
|
+
}
|
|
17957
|
+
return true;
|
|
17958
|
+
}
|
|
17959
|
+
var COMPARE_PARTIAL_FLAG5 = 1, COMPARE_UNORDERED_FLAG3 = 2, _baseIsMatch_default;
|
|
17960
|
+
var init__baseIsMatch = __esm(() => {
|
|
17961
|
+
init__Stack();
|
|
17962
|
+
init__baseIsEqual();
|
|
17963
|
+
_baseIsMatch_default = baseIsMatch;
|
|
17964
|
+
});
|
|
17965
|
+
|
|
17966
|
+
// ../../node_modules/lodash-es/_isStrictComparable.js
|
|
17967
|
+
function isStrictComparable(value) {
|
|
17968
|
+
return value === value && !isObject_default(value);
|
|
17969
|
+
}
|
|
17970
|
+
var _isStrictComparable_default;
|
|
17971
|
+
var init__isStrictComparable = __esm(() => {
|
|
17972
|
+
init_isObject();
|
|
17973
|
+
_isStrictComparable_default = isStrictComparable;
|
|
17974
|
+
});
|
|
17975
|
+
|
|
17976
|
+
// ../../node_modules/lodash-es/_getMatchData.js
|
|
17977
|
+
function getMatchData(object) {
|
|
17978
|
+
var result = keys_default(object), length = result.length;
|
|
17979
|
+
while (length--) {
|
|
17980
|
+
var key = result[length], value = object[key];
|
|
17981
|
+
result[length] = [key, value, _isStrictComparable_default(value)];
|
|
17982
|
+
}
|
|
17983
|
+
return result;
|
|
17984
|
+
}
|
|
17985
|
+
var _getMatchData_default;
|
|
17986
|
+
var init__getMatchData = __esm(() => {
|
|
17987
|
+
init__isStrictComparable();
|
|
17988
|
+
init_keys();
|
|
17989
|
+
_getMatchData_default = getMatchData;
|
|
17990
|
+
});
|
|
17991
|
+
|
|
17992
|
+
// ../../node_modules/lodash-es/_matchesStrictComparable.js
|
|
17993
|
+
function matchesStrictComparable(key, srcValue) {
|
|
17994
|
+
return function(object) {
|
|
17995
|
+
if (object == null) {
|
|
17996
|
+
return false;
|
|
17997
|
+
}
|
|
17998
|
+
return object[key] === srcValue && (srcValue !== undefined || (key in Object(object)));
|
|
17999
|
+
};
|
|
18000
|
+
}
|
|
18001
|
+
var _matchesStrictComparable_default;
|
|
18002
|
+
var init__matchesStrictComparable = __esm(() => {
|
|
18003
|
+
_matchesStrictComparable_default = matchesStrictComparable;
|
|
18004
|
+
});
|
|
18005
|
+
|
|
18006
|
+
// ../../node_modules/lodash-es/_baseMatches.js
|
|
18007
|
+
function baseMatches(source) {
|
|
18008
|
+
var matchData = _getMatchData_default(source);
|
|
18009
|
+
if (matchData.length == 1 && matchData[0][2]) {
|
|
18010
|
+
return _matchesStrictComparable_default(matchData[0][0], matchData[0][1]);
|
|
18011
|
+
}
|
|
18012
|
+
return function(object) {
|
|
18013
|
+
return object === source || _baseIsMatch_default(object, source, matchData);
|
|
18014
|
+
};
|
|
18015
|
+
}
|
|
18016
|
+
var _baseMatches_default;
|
|
18017
|
+
var init__baseMatches = __esm(() => {
|
|
18018
|
+
init__baseIsMatch();
|
|
18019
|
+
init__getMatchData();
|
|
18020
|
+
init__matchesStrictComparable();
|
|
18021
|
+
_baseMatches_default = baseMatches;
|
|
18022
|
+
});
|
|
18023
|
+
|
|
18024
|
+
// ../../node_modules/lodash-es/isSymbol.js
|
|
18025
|
+
function isSymbol(value) {
|
|
18026
|
+
return typeof value == "symbol" || isObjectLike_default(value) && _baseGetTag_default(value) == symbolTag2;
|
|
18027
|
+
}
|
|
18028
|
+
var symbolTag2 = "[object Symbol]", isSymbol_default;
|
|
18029
|
+
var init_isSymbol = __esm(() => {
|
|
18030
|
+
init__baseGetTag();
|
|
18031
|
+
init_isObjectLike();
|
|
18032
|
+
isSymbol_default = isSymbol;
|
|
18033
|
+
});
|
|
18034
|
+
|
|
18035
|
+
// ../../node_modules/lodash-es/_isKey.js
|
|
18036
|
+
function isKey(value, object) {
|
|
18037
|
+
if (isArray_default(value)) {
|
|
18038
|
+
return false;
|
|
18039
|
+
}
|
|
18040
|
+
var type = typeof value;
|
|
18041
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol_default(value)) {
|
|
18042
|
+
return true;
|
|
18043
|
+
}
|
|
18044
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
18045
|
+
}
|
|
18046
|
+
var reIsDeepProp, reIsPlainProp, _isKey_default;
|
|
18047
|
+
var init__isKey = __esm(() => {
|
|
18048
|
+
init_isArray();
|
|
18049
|
+
init_isSymbol();
|
|
18050
|
+
reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
18051
|
+
reIsPlainProp = /^\w*$/;
|
|
18052
|
+
_isKey_default = isKey;
|
|
18053
|
+
});
|
|
18054
|
+
|
|
18055
|
+
// ../../node_modules/lodash-es/memoize.js
|
|
18056
|
+
function memoize(func, resolver) {
|
|
18057
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
18058
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
18059
|
+
}
|
|
18060
|
+
var memoized = function() {
|
|
18061
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
18062
|
+
if (cache.has(key)) {
|
|
18063
|
+
return cache.get(key);
|
|
18064
|
+
}
|
|
18065
|
+
var result = func.apply(this, args);
|
|
18066
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
18067
|
+
return result;
|
|
18068
|
+
};
|
|
18069
|
+
memoized.cache = new (memoize.Cache || _MapCache_default);
|
|
18070
|
+
return memoized;
|
|
18071
|
+
}
|
|
18072
|
+
var FUNC_ERROR_TEXT = "Expected a function", memoize_default;
|
|
18073
|
+
var init_memoize = __esm(() => {
|
|
18074
|
+
init__MapCache();
|
|
18075
|
+
memoize.Cache = _MapCache_default;
|
|
18076
|
+
memoize_default = memoize;
|
|
18077
|
+
});
|
|
18078
|
+
|
|
18079
|
+
// ../../node_modules/lodash-es/_memoizeCapped.js
|
|
18080
|
+
function memoizeCapped(func) {
|
|
18081
|
+
var result = memoize_default(func, function(key) {
|
|
18082
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
18083
|
+
cache.clear();
|
|
18084
|
+
}
|
|
18085
|
+
return key;
|
|
18086
|
+
});
|
|
18087
|
+
var cache = result.cache;
|
|
18088
|
+
return result;
|
|
18089
|
+
}
|
|
18090
|
+
var MAX_MEMOIZE_SIZE = 500, _memoizeCapped_default;
|
|
18091
|
+
var init__memoizeCapped = __esm(() => {
|
|
18092
|
+
init_memoize();
|
|
18093
|
+
_memoizeCapped_default = memoizeCapped;
|
|
18094
|
+
});
|
|
18095
|
+
|
|
18096
|
+
// ../../node_modules/lodash-es/_stringToPath.js
|
|
18097
|
+
var rePropName, reEscapeChar, stringToPath, _stringToPath_default;
|
|
18098
|
+
var init__stringToPath = __esm(() => {
|
|
18099
|
+
init__memoizeCapped();
|
|
18100
|
+
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
18101
|
+
reEscapeChar = /\\(\\)?/g;
|
|
18102
|
+
stringToPath = _memoizeCapped_default(function(string) {
|
|
18103
|
+
var result = [];
|
|
18104
|
+
if (string.charCodeAt(0) === 46) {
|
|
18105
|
+
result.push("");
|
|
18106
|
+
}
|
|
18107
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
18108
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
18109
|
+
});
|
|
18110
|
+
return result;
|
|
18111
|
+
});
|
|
18112
|
+
_stringToPath_default = stringToPath;
|
|
18113
|
+
});
|
|
18114
|
+
|
|
18115
|
+
// ../../node_modules/lodash-es/_arrayMap.js
|
|
18116
|
+
function arrayMap(array, iteratee) {
|
|
18117
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
18118
|
+
while (++index < length) {
|
|
18119
|
+
result[index] = iteratee(array[index], index, array);
|
|
18120
|
+
}
|
|
18121
|
+
return result;
|
|
18122
|
+
}
|
|
18123
|
+
var _arrayMap_default;
|
|
18124
|
+
var init__arrayMap = __esm(() => {
|
|
18125
|
+
_arrayMap_default = arrayMap;
|
|
18126
|
+
});
|
|
18127
|
+
|
|
18128
|
+
// ../../node_modules/lodash-es/_baseToString.js
|
|
18129
|
+
function baseToString(value) {
|
|
18130
|
+
if (typeof value == "string") {
|
|
18131
|
+
return value;
|
|
18132
|
+
}
|
|
18133
|
+
if (isArray_default(value)) {
|
|
18134
|
+
return _arrayMap_default(value, baseToString) + "";
|
|
18135
|
+
}
|
|
18136
|
+
if (isSymbol_default(value)) {
|
|
18137
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
18138
|
+
}
|
|
18139
|
+
var result = value + "";
|
|
18140
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
18141
|
+
}
|
|
18142
|
+
var INFINITY, symbolProto2, symbolToString, _baseToString_default;
|
|
18143
|
+
var init__baseToString = __esm(() => {
|
|
18144
|
+
init__Symbol();
|
|
18145
|
+
init__arrayMap();
|
|
18146
|
+
init_isArray();
|
|
18147
|
+
init_isSymbol();
|
|
18148
|
+
INFINITY = 1 / 0;
|
|
18149
|
+
symbolProto2 = _Symbol_default ? _Symbol_default.prototype : undefined;
|
|
18150
|
+
symbolToString = symbolProto2 ? symbolProto2.toString : undefined;
|
|
18151
|
+
_baseToString_default = baseToString;
|
|
18152
|
+
});
|
|
18153
|
+
|
|
18154
|
+
// ../../node_modules/lodash-es/toString.js
|
|
18155
|
+
function toString(value) {
|
|
18156
|
+
return value == null ? "" : _baseToString_default(value);
|
|
18157
|
+
}
|
|
18158
|
+
var toString_default;
|
|
18159
|
+
var init_toString = __esm(() => {
|
|
18160
|
+
init__baseToString();
|
|
18161
|
+
toString_default = toString;
|
|
18162
|
+
});
|
|
18163
|
+
|
|
18164
|
+
// ../../node_modules/lodash-es/_castPath.js
|
|
18165
|
+
function castPath(value, object) {
|
|
18166
|
+
if (isArray_default(value)) {
|
|
18167
|
+
return value;
|
|
18168
|
+
}
|
|
18169
|
+
return _isKey_default(value, object) ? [value] : _stringToPath_default(toString_default(value));
|
|
18170
|
+
}
|
|
18171
|
+
var _castPath_default;
|
|
18172
|
+
var init__castPath = __esm(() => {
|
|
18173
|
+
init_isArray();
|
|
18174
|
+
init__isKey();
|
|
18175
|
+
init__stringToPath();
|
|
18176
|
+
init_toString();
|
|
18177
|
+
_castPath_default = castPath;
|
|
18178
|
+
});
|
|
18179
|
+
|
|
18180
|
+
// ../../node_modules/lodash-es/_toKey.js
|
|
18181
|
+
function toKey(value) {
|
|
18182
|
+
if (typeof value == "string" || isSymbol_default(value)) {
|
|
18183
|
+
return value;
|
|
18184
|
+
}
|
|
18185
|
+
var result = value + "";
|
|
18186
|
+
return result == "0" && 1 / value == -INFINITY2 ? "-0" : result;
|
|
18187
|
+
}
|
|
18188
|
+
var INFINITY2, _toKey_default;
|
|
18189
|
+
var init__toKey = __esm(() => {
|
|
18190
|
+
init_isSymbol();
|
|
18191
|
+
INFINITY2 = 1 / 0;
|
|
18192
|
+
_toKey_default = toKey;
|
|
18193
|
+
});
|
|
18194
|
+
|
|
18195
|
+
// ../../node_modules/lodash-es/_baseGet.js
|
|
18196
|
+
function baseGet(object, path6) {
|
|
18197
|
+
path6 = _castPath_default(path6, object);
|
|
18198
|
+
var index = 0, length = path6.length;
|
|
18199
|
+
while (object != null && index < length) {
|
|
18200
|
+
object = object[_toKey_default(path6[index++])];
|
|
18201
|
+
}
|
|
18202
|
+
return index && index == length ? object : undefined;
|
|
18203
|
+
}
|
|
18204
|
+
var _baseGet_default;
|
|
18205
|
+
var init__baseGet = __esm(() => {
|
|
18206
|
+
init__castPath();
|
|
18207
|
+
init__toKey();
|
|
18208
|
+
_baseGet_default = baseGet;
|
|
18209
|
+
});
|
|
18210
|
+
|
|
18211
|
+
// ../../node_modules/lodash-es/get.js
|
|
18212
|
+
function get(object, path6, defaultValue) {
|
|
18213
|
+
var result = object == null ? undefined : _baseGet_default(object, path6);
|
|
18214
|
+
return result === undefined ? defaultValue : result;
|
|
18215
|
+
}
|
|
18216
|
+
var get_default;
|
|
18217
|
+
var init_get = __esm(() => {
|
|
18218
|
+
init__baseGet();
|
|
18219
|
+
get_default = get;
|
|
18220
|
+
});
|
|
18221
|
+
|
|
18222
|
+
// ../../node_modules/lodash-es/_baseHasIn.js
|
|
18223
|
+
function baseHasIn(object, key) {
|
|
18224
|
+
return object != null && key in Object(object);
|
|
18225
|
+
}
|
|
18226
|
+
var _baseHasIn_default;
|
|
18227
|
+
var init__baseHasIn = __esm(() => {
|
|
18228
|
+
_baseHasIn_default = baseHasIn;
|
|
18229
|
+
});
|
|
18230
|
+
|
|
18231
|
+
// ../../node_modules/lodash-es/_hasPath.js
|
|
18232
|
+
function hasPath(object, path6, hasFunc) {
|
|
18233
|
+
path6 = _castPath_default(path6, object);
|
|
18234
|
+
var index = -1, length = path6.length, result = false;
|
|
18235
|
+
while (++index < length) {
|
|
18236
|
+
var key = _toKey_default(path6[index]);
|
|
18237
|
+
if (!(result = object != null && hasFunc(object, key))) {
|
|
18238
|
+
break;
|
|
18239
|
+
}
|
|
18240
|
+
object = object[key];
|
|
18241
|
+
}
|
|
18242
|
+
if (result || ++index != length) {
|
|
18243
|
+
return result;
|
|
18244
|
+
}
|
|
18245
|
+
length = object == null ? 0 : object.length;
|
|
18246
|
+
return !!length && isLength_default(length) && _isIndex_default(key, length) && (isArray_default(object) || isArguments_default(object));
|
|
18247
|
+
}
|
|
18248
|
+
var _hasPath_default;
|
|
18249
|
+
var init__hasPath = __esm(() => {
|
|
18250
|
+
init__castPath();
|
|
18251
|
+
init_isArguments();
|
|
18252
|
+
init_isArray();
|
|
18253
|
+
init__isIndex();
|
|
18254
|
+
init_isLength();
|
|
18255
|
+
init__toKey();
|
|
18256
|
+
_hasPath_default = hasPath;
|
|
18257
|
+
});
|
|
18258
|
+
|
|
18259
|
+
// ../../node_modules/lodash-es/hasIn.js
|
|
18260
|
+
function hasIn(object, path6) {
|
|
18261
|
+
return object != null && _hasPath_default(object, path6, _baseHasIn_default);
|
|
18262
|
+
}
|
|
18263
|
+
var hasIn_default;
|
|
18264
|
+
var init_hasIn = __esm(() => {
|
|
18265
|
+
init__baseHasIn();
|
|
18266
|
+
init__hasPath();
|
|
18267
|
+
hasIn_default = hasIn;
|
|
18268
|
+
});
|
|
18269
|
+
|
|
18270
|
+
// ../../node_modules/lodash-es/_baseMatchesProperty.js
|
|
18271
|
+
function baseMatchesProperty(path6, srcValue) {
|
|
18272
|
+
if (_isKey_default(path6) && _isStrictComparable_default(srcValue)) {
|
|
18273
|
+
return _matchesStrictComparable_default(_toKey_default(path6), srcValue);
|
|
18274
|
+
}
|
|
18275
|
+
return function(object) {
|
|
18276
|
+
var objValue = get_default(object, path6);
|
|
18277
|
+
return objValue === undefined && objValue === srcValue ? hasIn_default(object, path6) : _baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
|
|
18278
|
+
};
|
|
18279
|
+
}
|
|
18280
|
+
var COMPARE_PARTIAL_FLAG6 = 1, COMPARE_UNORDERED_FLAG4 = 2, _baseMatchesProperty_default;
|
|
18281
|
+
var init__baseMatchesProperty = __esm(() => {
|
|
18282
|
+
init__baseIsEqual();
|
|
18283
|
+
init_get();
|
|
18284
|
+
init_hasIn();
|
|
18285
|
+
init__isKey();
|
|
18286
|
+
init__isStrictComparable();
|
|
18287
|
+
init__matchesStrictComparable();
|
|
18288
|
+
init__toKey();
|
|
18289
|
+
_baseMatchesProperty_default = baseMatchesProperty;
|
|
18290
|
+
});
|
|
18291
|
+
|
|
18292
|
+
// ../../node_modules/lodash-es/identity.js
|
|
18293
|
+
function identity(value) {
|
|
18294
|
+
return value;
|
|
18295
|
+
}
|
|
18296
|
+
var identity_default;
|
|
18297
|
+
var init_identity = __esm(() => {
|
|
18298
|
+
identity_default = identity;
|
|
18299
|
+
});
|
|
18300
|
+
|
|
18301
|
+
// ../../node_modules/lodash-es/_baseProperty.js
|
|
18302
|
+
function baseProperty(key) {
|
|
18303
|
+
return function(object) {
|
|
18304
|
+
return object == null ? undefined : object[key];
|
|
18305
|
+
};
|
|
18306
|
+
}
|
|
18307
|
+
var _baseProperty_default;
|
|
18308
|
+
var init__baseProperty = __esm(() => {
|
|
18309
|
+
_baseProperty_default = baseProperty;
|
|
18310
|
+
});
|
|
18311
|
+
|
|
18312
|
+
// ../../node_modules/lodash-es/_basePropertyDeep.js
|
|
18313
|
+
function basePropertyDeep(path6) {
|
|
18314
|
+
return function(object) {
|
|
18315
|
+
return _baseGet_default(object, path6);
|
|
18316
|
+
};
|
|
18317
|
+
}
|
|
18318
|
+
var _basePropertyDeep_default;
|
|
18319
|
+
var init__basePropertyDeep = __esm(() => {
|
|
18320
|
+
init__baseGet();
|
|
18321
|
+
_basePropertyDeep_default = basePropertyDeep;
|
|
18322
|
+
});
|
|
18323
|
+
|
|
18324
|
+
// ../../node_modules/lodash-es/property.js
|
|
18325
|
+
function property(path6) {
|
|
18326
|
+
return _isKey_default(path6) ? _baseProperty_default(_toKey_default(path6)) : _basePropertyDeep_default(path6);
|
|
18327
|
+
}
|
|
18328
|
+
var property_default;
|
|
18329
|
+
var init_property = __esm(() => {
|
|
18330
|
+
init__baseProperty();
|
|
18331
|
+
init__basePropertyDeep();
|
|
18332
|
+
init__isKey();
|
|
18333
|
+
init__toKey();
|
|
18334
|
+
property_default = property;
|
|
18335
|
+
});
|
|
18336
|
+
|
|
18337
|
+
// ../../node_modules/lodash-es/_baseIteratee.js
|
|
18338
|
+
function baseIteratee(value) {
|
|
18339
|
+
if (typeof value == "function") {
|
|
18340
|
+
return value;
|
|
18341
|
+
}
|
|
18342
|
+
if (value == null) {
|
|
18343
|
+
return identity_default;
|
|
18344
|
+
}
|
|
18345
|
+
if (typeof value == "object") {
|
|
18346
|
+
return isArray_default(value) ? _baseMatchesProperty_default(value[0], value[1]) : _baseMatches_default(value);
|
|
18347
|
+
}
|
|
18348
|
+
return property_default(value);
|
|
18349
|
+
}
|
|
18350
|
+
var _baseIteratee_default;
|
|
18351
|
+
var init__baseIteratee = __esm(() => {
|
|
18352
|
+
init__baseMatches();
|
|
18353
|
+
init__baseMatchesProperty();
|
|
18354
|
+
init_identity();
|
|
18355
|
+
init_isArray();
|
|
18356
|
+
init_property();
|
|
18357
|
+
_baseIteratee_default = baseIteratee;
|
|
18358
|
+
});
|
|
18359
|
+
|
|
18360
|
+
// ../../node_modules/lodash-es/_createFind.js
|
|
18361
|
+
function createFind(findIndexFunc) {
|
|
18362
|
+
return function(collection, predicate, fromIndex) {
|
|
18363
|
+
var iterable = Object(collection);
|
|
18364
|
+
if (!isArrayLike_default(collection)) {
|
|
18365
|
+
var iteratee = _baseIteratee_default(predicate, 3);
|
|
18366
|
+
collection = keys_default(collection);
|
|
18367
|
+
predicate = function(key) {
|
|
18368
|
+
return iteratee(iterable[key], key, iterable);
|
|
18369
|
+
};
|
|
18370
|
+
}
|
|
18371
|
+
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
18372
|
+
return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
|
|
18373
|
+
};
|
|
18374
|
+
}
|
|
18375
|
+
var _createFind_default;
|
|
18376
|
+
var init__createFind = __esm(() => {
|
|
18377
|
+
init__baseIteratee();
|
|
18378
|
+
init_isArrayLike();
|
|
18379
|
+
init_keys();
|
|
18380
|
+
_createFind_default = createFind;
|
|
18381
|
+
});
|
|
18382
|
+
|
|
18383
|
+
// ../../node_modules/lodash-es/_baseFindIndex.js
|
|
18384
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
18385
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
18386
|
+
while (fromRight ? index-- : ++index < length) {
|
|
18387
|
+
if (predicate(array[index], index, array)) {
|
|
18388
|
+
return index;
|
|
18389
|
+
}
|
|
18390
|
+
}
|
|
18391
|
+
return -1;
|
|
18392
|
+
}
|
|
18393
|
+
var _baseFindIndex_default;
|
|
18394
|
+
var init__baseFindIndex = __esm(() => {
|
|
18395
|
+
_baseFindIndex_default = baseFindIndex;
|
|
18396
|
+
});
|
|
18397
|
+
|
|
18398
|
+
// ../../node_modules/lodash-es/_trimmedEndIndex.js
|
|
18399
|
+
function trimmedEndIndex(string) {
|
|
18400
|
+
var index = string.length;
|
|
18401
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
18402
|
+
return index;
|
|
18403
|
+
}
|
|
18404
|
+
var reWhitespace, _trimmedEndIndex_default;
|
|
18405
|
+
var init__trimmedEndIndex = __esm(() => {
|
|
18406
|
+
reWhitespace = /\s/;
|
|
18407
|
+
_trimmedEndIndex_default = trimmedEndIndex;
|
|
18408
|
+
});
|
|
18409
|
+
|
|
18410
|
+
// ../../node_modules/lodash-es/_baseTrim.js
|
|
18411
|
+
function baseTrim(string) {
|
|
18412
|
+
return string ? string.slice(0, _trimmedEndIndex_default(string) + 1).replace(reTrimStart, "") : string;
|
|
18413
|
+
}
|
|
18414
|
+
var reTrimStart, _baseTrim_default;
|
|
18415
|
+
var init__baseTrim = __esm(() => {
|
|
18416
|
+
init__trimmedEndIndex();
|
|
18417
|
+
reTrimStart = /^\s+/;
|
|
18418
|
+
_baseTrim_default = baseTrim;
|
|
18419
|
+
});
|
|
18420
|
+
|
|
18421
|
+
// ../../node_modules/lodash-es/toNumber.js
|
|
18422
|
+
function toNumber(value) {
|
|
18423
|
+
if (typeof value == "number") {
|
|
18424
|
+
return value;
|
|
18425
|
+
}
|
|
18426
|
+
if (isSymbol_default(value)) {
|
|
18427
|
+
return NAN;
|
|
18428
|
+
}
|
|
18429
|
+
if (isObject_default(value)) {
|
|
18430
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
18431
|
+
value = isObject_default(other) ? other + "" : other;
|
|
18432
|
+
}
|
|
18433
|
+
if (typeof value != "string") {
|
|
18434
|
+
return value === 0 ? value : +value;
|
|
18435
|
+
}
|
|
18436
|
+
value = _baseTrim_default(value);
|
|
18437
|
+
var isBinary = reIsBinary.test(value);
|
|
18438
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
18439
|
+
}
|
|
18440
|
+
var NAN, reIsBadHex, reIsBinary, reIsOctal, freeParseInt, toNumber_default;
|
|
18441
|
+
var init_toNumber = __esm(() => {
|
|
18442
|
+
init__baseTrim();
|
|
18443
|
+
init_isObject();
|
|
18444
|
+
init_isSymbol();
|
|
18445
|
+
NAN = 0 / 0;
|
|
18446
|
+
reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
18447
|
+
reIsBinary = /^0b[01]+$/i;
|
|
18448
|
+
reIsOctal = /^0o[0-7]+$/i;
|
|
18449
|
+
freeParseInt = parseInt;
|
|
18450
|
+
toNumber_default = toNumber;
|
|
18451
|
+
});
|
|
18452
|
+
|
|
18453
|
+
// ../../node_modules/lodash-es/toFinite.js
|
|
18454
|
+
function toFinite(value) {
|
|
18455
|
+
if (!value) {
|
|
18456
|
+
return value === 0 ? value : 0;
|
|
18457
|
+
}
|
|
18458
|
+
value = toNumber_default(value);
|
|
18459
|
+
if (value === INFINITY3 || value === -INFINITY3) {
|
|
18460
|
+
var sign = value < 0 ? -1 : 1;
|
|
18461
|
+
return sign * MAX_INTEGER;
|
|
18462
|
+
}
|
|
18463
|
+
return value === value ? value : 0;
|
|
18464
|
+
}
|
|
18465
|
+
var INFINITY3, MAX_INTEGER = 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, toFinite_default;
|
|
18466
|
+
var init_toFinite = __esm(() => {
|
|
18467
|
+
init_toNumber();
|
|
18468
|
+
INFINITY3 = 1 / 0;
|
|
18469
|
+
toFinite_default = toFinite;
|
|
18470
|
+
});
|
|
18471
|
+
|
|
18472
|
+
// ../../node_modules/lodash-es/toInteger.js
|
|
18473
|
+
function toInteger(value) {
|
|
18474
|
+
var result = toFinite_default(value), remainder = result % 1;
|
|
18475
|
+
return result === result ? remainder ? result - remainder : result : 0;
|
|
18476
|
+
}
|
|
18477
|
+
var toInteger_default;
|
|
18478
|
+
var init_toInteger = __esm(() => {
|
|
18479
|
+
init_toFinite();
|
|
18480
|
+
toInteger_default = toInteger;
|
|
18481
|
+
});
|
|
18482
|
+
|
|
18483
|
+
// ../../node_modules/lodash-es/findIndex.js
|
|
18484
|
+
function findIndex(array, predicate, fromIndex) {
|
|
18485
|
+
var length = array == null ? 0 : array.length;
|
|
18486
|
+
if (!length) {
|
|
18487
|
+
return -1;
|
|
18488
|
+
}
|
|
18489
|
+
var index = fromIndex == null ? 0 : toInteger_default(fromIndex);
|
|
18490
|
+
if (index < 0) {
|
|
18491
|
+
index = nativeMax(length + index, 0);
|
|
18492
|
+
}
|
|
18493
|
+
return _baseFindIndex_default(array, _baseIteratee_default(predicate, 3), index);
|
|
18494
|
+
}
|
|
18495
|
+
var nativeMax, findIndex_default;
|
|
18496
|
+
var init_findIndex = __esm(() => {
|
|
18497
|
+
init__baseFindIndex();
|
|
18498
|
+
init__baseIteratee();
|
|
18499
|
+
init_toInteger();
|
|
18500
|
+
nativeMax = Math.max;
|
|
18501
|
+
findIndex_default = findIndex;
|
|
18502
|
+
});
|
|
18503
|
+
|
|
18504
|
+
// ../../node_modules/lodash-es/find.js
|
|
18505
|
+
var find, find_default;
|
|
18506
|
+
var init_find = __esm(() => {
|
|
18507
|
+
init__createFind();
|
|
18508
|
+
init_findIndex();
|
|
18509
|
+
find = _createFind_default(findIndex_default);
|
|
18510
|
+
find_default = find;
|
|
18511
|
+
});
|
|
18512
|
+
|
|
18513
|
+
// ../../node_modules/lodash-es/_arrayEach.js
|
|
18514
|
+
function arrayEach(array, iteratee) {
|
|
18515
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
18516
|
+
while (++index < length) {
|
|
18517
|
+
if (iteratee(array[index], index, array) === false) {
|
|
18518
|
+
break;
|
|
18519
|
+
}
|
|
18520
|
+
}
|
|
18521
|
+
return array;
|
|
18522
|
+
}
|
|
18523
|
+
var _arrayEach_default;
|
|
18524
|
+
var init__arrayEach = __esm(() => {
|
|
18525
|
+
_arrayEach_default = arrayEach;
|
|
18526
|
+
});
|
|
18527
|
+
|
|
18528
|
+
// ../../node_modules/lodash-es/_createBaseFor.js
|
|
18529
|
+
function createBaseFor(fromRight) {
|
|
18530
|
+
return function(object, iteratee, keysFunc) {
|
|
18531
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
18532
|
+
while (length--) {
|
|
18533
|
+
var key = props[fromRight ? length : ++index];
|
|
18534
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
18535
|
+
break;
|
|
18536
|
+
}
|
|
18537
|
+
}
|
|
18538
|
+
return object;
|
|
18539
|
+
};
|
|
18540
|
+
}
|
|
18541
|
+
var _createBaseFor_default;
|
|
18542
|
+
var init__createBaseFor = __esm(() => {
|
|
18543
|
+
_createBaseFor_default = createBaseFor;
|
|
18544
|
+
});
|
|
18545
|
+
|
|
18546
|
+
// ../../node_modules/lodash-es/_baseFor.js
|
|
18547
|
+
var baseFor, _baseFor_default;
|
|
18548
|
+
var init__baseFor = __esm(() => {
|
|
18549
|
+
init__createBaseFor();
|
|
18550
|
+
baseFor = _createBaseFor_default();
|
|
18551
|
+
_baseFor_default = baseFor;
|
|
18552
|
+
});
|
|
18553
|
+
|
|
18554
|
+
// ../../node_modules/lodash-es/_baseForOwn.js
|
|
18555
|
+
function baseForOwn(object, iteratee) {
|
|
18556
|
+
return object && _baseFor_default(object, iteratee, keys_default);
|
|
18557
|
+
}
|
|
18558
|
+
var _baseForOwn_default;
|
|
18559
|
+
var init__baseForOwn = __esm(() => {
|
|
18560
|
+
init__baseFor();
|
|
18561
|
+
init_keys();
|
|
18562
|
+
_baseForOwn_default = baseForOwn;
|
|
18563
|
+
});
|
|
18564
|
+
|
|
18565
|
+
// ../../node_modules/lodash-es/_createBaseEach.js
|
|
18566
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
18567
|
+
return function(collection, iteratee) {
|
|
18568
|
+
if (collection == null) {
|
|
18569
|
+
return collection;
|
|
18570
|
+
}
|
|
18571
|
+
if (!isArrayLike_default(collection)) {
|
|
18572
|
+
return eachFunc(collection, iteratee);
|
|
18573
|
+
}
|
|
18574
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
18575
|
+
while (fromRight ? index-- : ++index < length) {
|
|
18576
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
|
18577
|
+
break;
|
|
18578
|
+
}
|
|
18579
|
+
}
|
|
18580
|
+
return collection;
|
|
18581
|
+
};
|
|
18582
|
+
}
|
|
18583
|
+
var _createBaseEach_default;
|
|
18584
|
+
var init__createBaseEach = __esm(() => {
|
|
18585
|
+
init_isArrayLike();
|
|
18586
|
+
_createBaseEach_default = createBaseEach;
|
|
18587
|
+
});
|
|
18588
|
+
|
|
18589
|
+
// ../../node_modules/lodash-es/_baseEach.js
|
|
18590
|
+
var baseEach, _baseEach_default;
|
|
18591
|
+
var init__baseEach = __esm(() => {
|
|
18592
|
+
init__baseForOwn();
|
|
18593
|
+
init__createBaseEach();
|
|
18594
|
+
baseEach = _createBaseEach_default(_baseForOwn_default);
|
|
18595
|
+
_baseEach_default = baseEach;
|
|
18596
|
+
});
|
|
18597
|
+
|
|
18598
|
+
// ../../node_modules/lodash-es/_castFunction.js
|
|
18599
|
+
function castFunction(value) {
|
|
18600
|
+
return typeof value == "function" ? value : identity_default;
|
|
18601
|
+
}
|
|
18602
|
+
var _castFunction_default;
|
|
18603
|
+
var init__castFunction = __esm(() => {
|
|
18604
|
+
init_identity();
|
|
18605
|
+
_castFunction_default = castFunction;
|
|
18606
|
+
});
|
|
18607
|
+
|
|
18608
|
+
// ../../node_modules/lodash-es/forEach.js
|
|
18609
|
+
function forEach(collection, iteratee) {
|
|
18610
|
+
var func = isArray_default(collection) ? _arrayEach_default : _baseEach_default;
|
|
18611
|
+
return func(collection, _castFunction_default(iteratee));
|
|
18612
|
+
}
|
|
18613
|
+
var forEach_default;
|
|
18614
|
+
var init_forEach = __esm(() => {
|
|
18615
|
+
init__arrayEach();
|
|
18616
|
+
init__baseEach();
|
|
18617
|
+
init__castFunction();
|
|
18618
|
+
init_isArray();
|
|
18619
|
+
forEach_default = forEach;
|
|
18620
|
+
});
|
|
18621
|
+
|
|
18622
|
+
// ../../node_modules/lodash-es/isEmpty.js
|
|
18623
|
+
function isEmpty(value) {
|
|
18624
|
+
if (value == null) {
|
|
18625
|
+
return true;
|
|
18626
|
+
}
|
|
18627
|
+
if (isArrayLike_default(value) && (isArray_default(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer_default(value) || isTypedArray_default(value) || isArguments_default(value))) {
|
|
18628
|
+
return !value.length;
|
|
18629
|
+
}
|
|
18630
|
+
var tag = _getTag_default(value);
|
|
18631
|
+
if (tag == mapTag4 || tag == setTag4) {
|
|
18632
|
+
return !value.size;
|
|
18633
|
+
}
|
|
18634
|
+
if (_isPrototype_default(value)) {
|
|
18635
|
+
return !_baseKeys_default(value).length;
|
|
18636
|
+
}
|
|
18637
|
+
for (var key in value) {
|
|
18638
|
+
if (hasOwnProperty10.call(value, key)) {
|
|
18639
|
+
return false;
|
|
18640
|
+
}
|
|
18641
|
+
}
|
|
18642
|
+
return true;
|
|
18643
|
+
}
|
|
18644
|
+
var mapTag4 = "[object Map]", setTag4 = "[object Set]", objectProto13, hasOwnProperty10, isEmpty_default;
|
|
18645
|
+
var init_isEmpty = __esm(() => {
|
|
18646
|
+
init__baseKeys();
|
|
18647
|
+
init__getTag();
|
|
18648
|
+
init_isArguments();
|
|
18649
|
+
init_isArray();
|
|
18650
|
+
init_isArrayLike();
|
|
18651
|
+
init_isBuffer();
|
|
18652
|
+
init__isPrototype();
|
|
18653
|
+
init_isTypedArray();
|
|
18654
|
+
objectProto13 = Object.prototype;
|
|
18655
|
+
hasOwnProperty10 = objectProto13.hasOwnProperty;
|
|
18656
|
+
isEmpty_default = isEmpty;
|
|
18657
|
+
});
|
|
18658
|
+
|
|
18659
|
+
// ../../node_modules/lodash-es/_baseMap.js
|
|
18660
|
+
function baseMap(collection, iteratee) {
|
|
18661
|
+
var index = -1, result = isArrayLike_default(collection) ? Array(collection.length) : [];
|
|
18662
|
+
_baseEach_default(collection, function(value, key, collection2) {
|
|
18663
|
+
result[++index] = iteratee(value, key, collection2);
|
|
18664
|
+
});
|
|
18665
|
+
return result;
|
|
18666
|
+
}
|
|
18667
|
+
var _baseMap_default;
|
|
18668
|
+
var init__baseMap = __esm(() => {
|
|
18669
|
+
init__baseEach();
|
|
18670
|
+
init_isArrayLike();
|
|
18671
|
+
_baseMap_default = baseMap;
|
|
18672
|
+
});
|
|
18673
|
+
|
|
18674
|
+
// ../../node_modules/lodash-es/map.js
|
|
18675
|
+
function map(collection, iteratee) {
|
|
18676
|
+
var func = isArray_default(collection) ? _arrayMap_default : _baseMap_default;
|
|
18677
|
+
return func(collection, _baseIteratee_default(iteratee, 3));
|
|
18678
|
+
}
|
|
18679
|
+
var map_default;
|
|
18680
|
+
var init_map = __esm(() => {
|
|
18681
|
+
init__arrayMap();
|
|
18682
|
+
init__baseIteratee();
|
|
18683
|
+
init__baseMap();
|
|
18684
|
+
init_isArray();
|
|
18685
|
+
map_default = map;
|
|
18686
|
+
});
|
|
18687
|
+
|
|
18688
|
+
// ../../node_modules/lodash-es/_defineProperty.js
|
|
18689
|
+
var defineProperty, _defineProperty_default;
|
|
18690
|
+
var init__defineProperty = __esm(() => {
|
|
18691
|
+
init__getNative();
|
|
18692
|
+
defineProperty = function() {
|
|
18693
|
+
try {
|
|
18694
|
+
var func = _getNative_default(Object, "defineProperty");
|
|
18695
|
+
func({}, "", {});
|
|
18696
|
+
return func;
|
|
18697
|
+
} catch (e) {}
|
|
18698
|
+
}();
|
|
18699
|
+
_defineProperty_default = defineProperty;
|
|
18700
|
+
});
|
|
18701
|
+
|
|
18702
|
+
// ../../node_modules/lodash-es/_baseAssignValue.js
|
|
18703
|
+
function baseAssignValue(object, key, value) {
|
|
18704
|
+
if (key == "__proto__" && _defineProperty_default) {
|
|
18705
|
+
_defineProperty_default(object, key, {
|
|
18706
|
+
configurable: true,
|
|
18707
|
+
enumerable: true,
|
|
18708
|
+
value,
|
|
18709
|
+
writable: true
|
|
18710
|
+
});
|
|
18711
|
+
} else {
|
|
18712
|
+
object[key] = value;
|
|
18713
|
+
}
|
|
18714
|
+
}
|
|
18715
|
+
var _baseAssignValue_default;
|
|
18716
|
+
var init__baseAssignValue = __esm(() => {
|
|
18717
|
+
init__defineProperty();
|
|
18718
|
+
_baseAssignValue_default = baseAssignValue;
|
|
18719
|
+
});
|
|
18720
|
+
|
|
18721
|
+
// ../../node_modules/lodash-es/_assignMergeValue.js
|
|
18722
|
+
function assignMergeValue(object, key, value) {
|
|
18723
|
+
if (value !== undefined && !eq_default(object[key], value) || value === undefined && !(key in object)) {
|
|
18724
|
+
_baseAssignValue_default(object, key, value);
|
|
18725
|
+
}
|
|
18726
|
+
}
|
|
18727
|
+
var _assignMergeValue_default;
|
|
18728
|
+
var init__assignMergeValue = __esm(() => {
|
|
18729
|
+
init__baseAssignValue();
|
|
18730
|
+
init_eq();
|
|
18731
|
+
_assignMergeValue_default = assignMergeValue;
|
|
18732
|
+
});
|
|
18733
|
+
|
|
18734
|
+
// ../../node_modules/lodash-es/_cloneBuffer.js
|
|
18735
|
+
var exports__cloneBuffer = {};
|
|
18736
|
+
__export(exports__cloneBuffer, {
|
|
18737
|
+
default: () => _cloneBuffer_default
|
|
18738
|
+
});
|
|
18739
|
+
function cloneBuffer(buffer, isDeep) {
|
|
18740
|
+
if (isDeep) {
|
|
18741
|
+
return buffer.slice();
|
|
18742
|
+
}
|
|
18743
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
18744
|
+
buffer.copy(result);
|
|
18745
|
+
return result;
|
|
18746
|
+
}
|
|
18747
|
+
var freeExports3, freeModule3, moduleExports3, Buffer3, allocUnsafe, _cloneBuffer_default;
|
|
18748
|
+
var init__cloneBuffer = __esm(() => {
|
|
18749
|
+
init__root();
|
|
18750
|
+
freeExports3 = typeof exports__cloneBuffer == "object" && exports__cloneBuffer && !exports__cloneBuffer.nodeType && exports__cloneBuffer;
|
|
18751
|
+
freeModule3 = freeExports3 && typeof module__cloneBuffer == "object" && module__cloneBuffer && !module__cloneBuffer.nodeType && module__cloneBuffer;
|
|
18752
|
+
moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
|
|
18753
|
+
Buffer3 = moduleExports3 ? _root_default.Buffer : undefined;
|
|
18754
|
+
allocUnsafe = Buffer3 ? Buffer3.allocUnsafe : undefined;
|
|
18755
|
+
_cloneBuffer_default = cloneBuffer;
|
|
18756
|
+
});
|
|
18757
|
+
|
|
18758
|
+
// ../../node_modules/lodash-es/_cloneArrayBuffer.js
|
|
18759
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
18760
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
18761
|
+
new _Uint8Array_default(result).set(new _Uint8Array_default(arrayBuffer));
|
|
18762
|
+
return result;
|
|
18763
|
+
}
|
|
18764
|
+
var _cloneArrayBuffer_default;
|
|
18765
|
+
var init__cloneArrayBuffer = __esm(() => {
|
|
18766
|
+
init__Uint8Array();
|
|
18767
|
+
_cloneArrayBuffer_default = cloneArrayBuffer;
|
|
18768
|
+
});
|
|
18769
|
+
|
|
18770
|
+
// ../../node_modules/lodash-es/_cloneTypedArray.js
|
|
18771
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
18772
|
+
var buffer = isDeep ? _cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
|
|
18773
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
18774
|
+
}
|
|
18775
|
+
var _cloneTypedArray_default;
|
|
18776
|
+
var init__cloneTypedArray = __esm(() => {
|
|
18777
|
+
init__cloneArrayBuffer();
|
|
18778
|
+
_cloneTypedArray_default = cloneTypedArray;
|
|
18779
|
+
});
|
|
18780
|
+
|
|
18781
|
+
// ../../node_modules/lodash-es/_copyArray.js
|
|
18782
|
+
function copyArray(source, array) {
|
|
18783
|
+
var index = -1, length = source.length;
|
|
18784
|
+
array || (array = Array(length));
|
|
18785
|
+
while (++index < length) {
|
|
18786
|
+
array[index] = source[index];
|
|
18787
|
+
}
|
|
18788
|
+
return array;
|
|
18789
|
+
}
|
|
18790
|
+
var _copyArray_default;
|
|
18791
|
+
var init__copyArray = __esm(() => {
|
|
18792
|
+
_copyArray_default = copyArray;
|
|
18793
|
+
});
|
|
18794
|
+
|
|
18795
|
+
// ../../node_modules/lodash-es/_baseCreate.js
|
|
18796
|
+
var objectCreate, baseCreate, _baseCreate_default;
|
|
18797
|
+
var init__baseCreate = __esm(() => {
|
|
18798
|
+
init_isObject();
|
|
18799
|
+
objectCreate = Object.create;
|
|
18800
|
+
baseCreate = function() {
|
|
18801
|
+
function object() {}
|
|
18802
|
+
return function(proto) {
|
|
18803
|
+
if (!isObject_default(proto)) {
|
|
18804
|
+
return {};
|
|
18805
|
+
}
|
|
18806
|
+
if (objectCreate) {
|
|
18807
|
+
return objectCreate(proto);
|
|
18808
|
+
}
|
|
18809
|
+
object.prototype = proto;
|
|
18810
|
+
var result = new object;
|
|
18811
|
+
object.prototype = undefined;
|
|
18812
|
+
return result;
|
|
18813
|
+
};
|
|
18814
|
+
}();
|
|
18815
|
+
_baseCreate_default = baseCreate;
|
|
18816
|
+
});
|
|
18817
|
+
|
|
18818
|
+
// ../../node_modules/lodash-es/_getPrototype.js
|
|
18819
|
+
var getPrototype, _getPrototype_default;
|
|
18820
|
+
var init__getPrototype = __esm(() => {
|
|
18821
|
+
init__overArg();
|
|
18822
|
+
getPrototype = _overArg_default(Object.getPrototypeOf, Object);
|
|
18823
|
+
_getPrototype_default = getPrototype;
|
|
18824
|
+
});
|
|
18825
|
+
|
|
18826
|
+
// ../../node_modules/lodash-es/_initCloneObject.js
|
|
18827
|
+
function initCloneObject(object) {
|
|
18828
|
+
return typeof object.constructor == "function" && !_isPrototype_default(object) ? _baseCreate_default(_getPrototype_default(object)) : {};
|
|
18829
|
+
}
|
|
18830
|
+
var _initCloneObject_default;
|
|
18831
|
+
var init__initCloneObject = __esm(() => {
|
|
18832
|
+
init__baseCreate();
|
|
18833
|
+
init__getPrototype();
|
|
18834
|
+
init__isPrototype();
|
|
18835
|
+
_initCloneObject_default = initCloneObject;
|
|
18836
|
+
});
|
|
18837
|
+
|
|
18838
|
+
// ../../node_modules/lodash-es/isArrayLikeObject.js
|
|
18839
|
+
function isArrayLikeObject(value) {
|
|
18840
|
+
return isObjectLike_default(value) && isArrayLike_default(value);
|
|
18841
|
+
}
|
|
18842
|
+
var isArrayLikeObject_default;
|
|
18843
|
+
var init_isArrayLikeObject = __esm(() => {
|
|
18844
|
+
init_isArrayLike();
|
|
18845
|
+
init_isObjectLike();
|
|
18846
|
+
isArrayLikeObject_default = isArrayLikeObject;
|
|
18847
|
+
});
|
|
18848
|
+
|
|
18849
|
+
// ../../node_modules/lodash-es/isPlainObject.js
|
|
18850
|
+
function isPlainObject2(value) {
|
|
18851
|
+
if (!isObjectLike_default(value) || _baseGetTag_default(value) != objectTag4) {
|
|
18852
|
+
return false;
|
|
18853
|
+
}
|
|
18854
|
+
var proto = _getPrototype_default(value);
|
|
18855
|
+
if (proto === null) {
|
|
18856
|
+
return true;
|
|
18857
|
+
}
|
|
18858
|
+
var Ctor = hasOwnProperty11.call(proto, "constructor") && proto.constructor;
|
|
18859
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
|
|
18860
|
+
}
|
|
18861
|
+
var objectTag4 = "[object Object]", funcProto3, objectProto14, funcToString3, hasOwnProperty11, objectCtorString, isPlainObject_default;
|
|
18862
|
+
var init_isPlainObject = __esm(() => {
|
|
18863
|
+
init__baseGetTag();
|
|
18864
|
+
init__getPrototype();
|
|
18865
|
+
init_isObjectLike();
|
|
18866
|
+
funcProto3 = Function.prototype;
|
|
18867
|
+
objectProto14 = Object.prototype;
|
|
18868
|
+
funcToString3 = funcProto3.toString;
|
|
18869
|
+
hasOwnProperty11 = objectProto14.hasOwnProperty;
|
|
18870
|
+
objectCtorString = funcToString3.call(Object);
|
|
18871
|
+
isPlainObject_default = isPlainObject2;
|
|
18872
|
+
});
|
|
18873
|
+
|
|
18874
|
+
// ../../node_modules/lodash-es/_safeGet.js
|
|
18875
|
+
function safeGet(object, key) {
|
|
18876
|
+
if (key === "constructor" && typeof object[key] === "function") {
|
|
18877
|
+
return;
|
|
18878
|
+
}
|
|
18879
|
+
if (key == "__proto__") {
|
|
18880
|
+
return;
|
|
18881
|
+
}
|
|
18882
|
+
return object[key];
|
|
18883
|
+
}
|
|
18884
|
+
var _safeGet_default;
|
|
18885
|
+
var init__safeGet = __esm(() => {
|
|
18886
|
+
_safeGet_default = safeGet;
|
|
18887
|
+
});
|
|
18888
|
+
|
|
18889
|
+
// ../../node_modules/lodash-es/_assignValue.js
|
|
18890
|
+
function assignValue(object, key, value) {
|
|
18891
|
+
var objValue = object[key];
|
|
18892
|
+
if (!(hasOwnProperty12.call(object, key) && eq_default(objValue, value)) || value === undefined && !(key in object)) {
|
|
18893
|
+
_baseAssignValue_default(object, key, value);
|
|
18894
|
+
}
|
|
18895
|
+
}
|
|
18896
|
+
var objectProto15, hasOwnProperty12, _assignValue_default;
|
|
18897
|
+
var init__assignValue = __esm(() => {
|
|
18898
|
+
init__baseAssignValue();
|
|
18899
|
+
init_eq();
|
|
18900
|
+
objectProto15 = Object.prototype;
|
|
18901
|
+
hasOwnProperty12 = objectProto15.hasOwnProperty;
|
|
18902
|
+
_assignValue_default = assignValue;
|
|
18903
|
+
});
|
|
18904
|
+
|
|
18905
|
+
// ../../node_modules/lodash-es/_copyObject.js
|
|
18906
|
+
function copyObject(source, props, object, customizer) {
|
|
18907
|
+
var isNew = !object;
|
|
18908
|
+
object || (object = {});
|
|
18909
|
+
var index = -1, length = props.length;
|
|
18910
|
+
while (++index < length) {
|
|
18911
|
+
var key = props[index];
|
|
18912
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;
|
|
18913
|
+
if (newValue === undefined) {
|
|
18914
|
+
newValue = source[key];
|
|
18915
|
+
}
|
|
18916
|
+
if (isNew) {
|
|
18917
|
+
_baseAssignValue_default(object, key, newValue);
|
|
18918
|
+
} else {
|
|
18919
|
+
_assignValue_default(object, key, newValue);
|
|
18920
|
+
}
|
|
18921
|
+
}
|
|
18922
|
+
return object;
|
|
18923
|
+
}
|
|
18924
|
+
var _copyObject_default;
|
|
18925
|
+
var init__copyObject = __esm(() => {
|
|
18926
|
+
init__assignValue();
|
|
18927
|
+
init__baseAssignValue();
|
|
18928
|
+
_copyObject_default = copyObject;
|
|
18929
|
+
});
|
|
18930
|
+
|
|
18931
|
+
// ../../node_modules/lodash-es/_nativeKeysIn.js
|
|
18932
|
+
function nativeKeysIn(object) {
|
|
18933
|
+
var result = [];
|
|
18934
|
+
if (object != null) {
|
|
18935
|
+
for (var key in Object(object)) {
|
|
18936
|
+
result.push(key);
|
|
18937
|
+
}
|
|
18938
|
+
}
|
|
18939
|
+
return result;
|
|
18940
|
+
}
|
|
18941
|
+
var _nativeKeysIn_default;
|
|
18942
|
+
var init__nativeKeysIn = __esm(() => {
|
|
18943
|
+
_nativeKeysIn_default = nativeKeysIn;
|
|
18944
|
+
});
|
|
18945
|
+
|
|
18946
|
+
// ../../node_modules/lodash-es/_baseKeysIn.js
|
|
18947
|
+
function baseKeysIn(object) {
|
|
18948
|
+
if (!isObject_default(object)) {
|
|
18949
|
+
return _nativeKeysIn_default(object);
|
|
18950
|
+
}
|
|
18951
|
+
var isProto = _isPrototype_default(object), result = [];
|
|
18952
|
+
for (var key in object) {
|
|
18953
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty13.call(object, key)))) {
|
|
18954
|
+
result.push(key);
|
|
18955
|
+
}
|
|
18956
|
+
}
|
|
18957
|
+
return result;
|
|
18958
|
+
}
|
|
18959
|
+
var objectProto16, hasOwnProperty13, _baseKeysIn_default;
|
|
18960
|
+
var init__baseKeysIn = __esm(() => {
|
|
18961
|
+
init_isObject();
|
|
18962
|
+
init__isPrototype();
|
|
18963
|
+
init__nativeKeysIn();
|
|
18964
|
+
objectProto16 = Object.prototype;
|
|
18965
|
+
hasOwnProperty13 = objectProto16.hasOwnProperty;
|
|
18966
|
+
_baseKeysIn_default = baseKeysIn;
|
|
18967
|
+
});
|
|
18968
|
+
|
|
18969
|
+
// ../../node_modules/lodash-es/keysIn.js
|
|
18970
|
+
function keysIn(object) {
|
|
18971
|
+
return isArrayLike_default(object) ? _arrayLikeKeys_default(object, true) : _baseKeysIn_default(object);
|
|
18972
|
+
}
|
|
18973
|
+
var keysIn_default;
|
|
18974
|
+
var init_keysIn = __esm(() => {
|
|
18975
|
+
init__arrayLikeKeys();
|
|
18976
|
+
init__baseKeysIn();
|
|
18977
|
+
init_isArrayLike();
|
|
18978
|
+
keysIn_default = keysIn;
|
|
18979
|
+
});
|
|
18980
|
+
|
|
18981
|
+
// ../../node_modules/lodash-es/toPlainObject.js
|
|
18982
|
+
function toPlainObject(value) {
|
|
18983
|
+
return _copyObject_default(value, keysIn_default(value));
|
|
18984
|
+
}
|
|
18985
|
+
var toPlainObject_default;
|
|
18986
|
+
var init_toPlainObject = __esm(() => {
|
|
18987
|
+
init__copyObject();
|
|
18988
|
+
init_keysIn();
|
|
18989
|
+
toPlainObject_default = toPlainObject;
|
|
18990
|
+
});
|
|
18991
|
+
|
|
18992
|
+
// ../../node_modules/lodash-es/_baseMergeDeep.js
|
|
18993
|
+
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
18994
|
+
var objValue = _safeGet_default(object, key), srcValue = _safeGet_default(source, key), stacked = stack.get(srcValue);
|
|
18995
|
+
if (stacked) {
|
|
18996
|
+
_assignMergeValue_default(object, key, stacked);
|
|
18997
|
+
return;
|
|
18998
|
+
}
|
|
18999
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined;
|
|
19000
|
+
var isCommon = newValue === undefined;
|
|
19001
|
+
if (isCommon) {
|
|
19002
|
+
var isArr = isArray_default(srcValue), isBuff = !isArr && isBuffer_default(srcValue), isTyped = !isArr && !isBuff && isTypedArray_default(srcValue);
|
|
19003
|
+
newValue = srcValue;
|
|
19004
|
+
if (isArr || isBuff || isTyped) {
|
|
19005
|
+
if (isArray_default(objValue)) {
|
|
19006
|
+
newValue = objValue;
|
|
19007
|
+
} else if (isArrayLikeObject_default(objValue)) {
|
|
19008
|
+
newValue = _copyArray_default(objValue);
|
|
19009
|
+
} else if (isBuff) {
|
|
19010
|
+
isCommon = false;
|
|
19011
|
+
newValue = _cloneBuffer_default(srcValue, true);
|
|
19012
|
+
} else if (isTyped) {
|
|
19013
|
+
isCommon = false;
|
|
19014
|
+
newValue = _cloneTypedArray_default(srcValue, true);
|
|
19015
|
+
} else {
|
|
19016
|
+
newValue = [];
|
|
19017
|
+
}
|
|
19018
|
+
} else if (isPlainObject_default(srcValue) || isArguments_default(srcValue)) {
|
|
19019
|
+
newValue = objValue;
|
|
19020
|
+
if (isArguments_default(objValue)) {
|
|
19021
|
+
newValue = toPlainObject_default(objValue);
|
|
19022
|
+
} else if (!isObject_default(objValue) || isFunction_default(objValue)) {
|
|
19023
|
+
newValue = _initCloneObject_default(srcValue);
|
|
19024
|
+
}
|
|
19025
|
+
} else {
|
|
19026
|
+
isCommon = false;
|
|
19027
|
+
}
|
|
19028
|
+
}
|
|
19029
|
+
if (isCommon) {
|
|
19030
|
+
stack.set(srcValue, newValue);
|
|
19031
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
19032
|
+
stack["delete"](srcValue);
|
|
19033
|
+
}
|
|
19034
|
+
_assignMergeValue_default(object, key, newValue);
|
|
19035
|
+
}
|
|
19036
|
+
var _baseMergeDeep_default;
|
|
19037
|
+
var init__baseMergeDeep = __esm(() => {
|
|
19038
|
+
init__assignMergeValue();
|
|
19039
|
+
init__cloneBuffer();
|
|
19040
|
+
init__cloneTypedArray();
|
|
19041
|
+
init__copyArray();
|
|
19042
|
+
init__initCloneObject();
|
|
19043
|
+
init_isArguments();
|
|
19044
|
+
init_isArray();
|
|
19045
|
+
init_isArrayLikeObject();
|
|
19046
|
+
init_isBuffer();
|
|
19047
|
+
init_isFunction();
|
|
19048
|
+
init_isObject();
|
|
19049
|
+
init_isPlainObject();
|
|
19050
|
+
init_isTypedArray();
|
|
19051
|
+
init__safeGet();
|
|
19052
|
+
init_toPlainObject();
|
|
19053
|
+
_baseMergeDeep_default = baseMergeDeep;
|
|
19054
|
+
});
|
|
19055
|
+
|
|
19056
|
+
// ../../node_modules/lodash-es/_baseMerge.js
|
|
19057
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
19058
|
+
if (object === source) {
|
|
19059
|
+
return;
|
|
19060
|
+
}
|
|
19061
|
+
_baseFor_default(source, function(srcValue, key) {
|
|
19062
|
+
stack || (stack = new _Stack_default);
|
|
19063
|
+
if (isObject_default(srcValue)) {
|
|
19064
|
+
_baseMergeDeep_default(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
19065
|
+
} else {
|
|
19066
|
+
var newValue = customizer ? customizer(_safeGet_default(object, key), srcValue, key + "", object, source, stack) : undefined;
|
|
19067
|
+
if (newValue === undefined) {
|
|
19068
|
+
newValue = srcValue;
|
|
19069
|
+
}
|
|
19070
|
+
_assignMergeValue_default(object, key, newValue);
|
|
19071
|
+
}
|
|
19072
|
+
}, keysIn_default);
|
|
19073
|
+
}
|
|
19074
|
+
var _baseMerge_default;
|
|
19075
|
+
var init__baseMerge = __esm(() => {
|
|
19076
|
+
init__Stack();
|
|
19077
|
+
init__assignMergeValue();
|
|
19078
|
+
init__baseFor();
|
|
19079
|
+
init__baseMergeDeep();
|
|
19080
|
+
init_isObject();
|
|
19081
|
+
init_keysIn();
|
|
19082
|
+
init__safeGet();
|
|
19083
|
+
_baseMerge_default = baseMerge;
|
|
19084
|
+
});
|
|
19085
|
+
|
|
19086
|
+
// ../../node_modules/lodash-es/_apply.js
|
|
19087
|
+
function apply(func, thisArg, args) {
|
|
19088
|
+
switch (args.length) {
|
|
19089
|
+
case 0:
|
|
19090
|
+
return func.call(thisArg);
|
|
19091
|
+
case 1:
|
|
19092
|
+
return func.call(thisArg, args[0]);
|
|
19093
|
+
case 2:
|
|
19094
|
+
return func.call(thisArg, args[0], args[1]);
|
|
19095
|
+
case 3:
|
|
19096
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
19097
|
+
}
|
|
19098
|
+
return func.apply(thisArg, args);
|
|
19099
|
+
}
|
|
19100
|
+
var _apply_default;
|
|
19101
|
+
var init__apply = __esm(() => {
|
|
19102
|
+
_apply_default = apply;
|
|
19103
|
+
});
|
|
19104
|
+
|
|
19105
|
+
// ../../node_modules/lodash-es/_overRest.js
|
|
19106
|
+
function overRest(func, start, transform) {
|
|
19107
|
+
start = nativeMax2(start === undefined ? func.length - 1 : start, 0);
|
|
19108
|
+
return function() {
|
|
19109
|
+
var args = arguments, index = -1, length = nativeMax2(args.length - start, 0), array = Array(length);
|
|
19110
|
+
while (++index < length) {
|
|
19111
|
+
array[index] = args[start + index];
|
|
19112
|
+
}
|
|
19113
|
+
index = -1;
|
|
19114
|
+
var otherArgs = Array(start + 1);
|
|
19115
|
+
while (++index < start) {
|
|
19116
|
+
otherArgs[index] = args[index];
|
|
19117
|
+
}
|
|
19118
|
+
otherArgs[start] = transform(array);
|
|
19119
|
+
return _apply_default(func, this, otherArgs);
|
|
19120
|
+
};
|
|
19121
|
+
}
|
|
19122
|
+
var nativeMax2, _overRest_default;
|
|
19123
|
+
var init__overRest = __esm(() => {
|
|
19124
|
+
init__apply();
|
|
19125
|
+
nativeMax2 = Math.max;
|
|
19126
|
+
_overRest_default = overRest;
|
|
19127
|
+
});
|
|
19128
|
+
|
|
19129
|
+
// ../../node_modules/lodash-es/constant.js
|
|
19130
|
+
function constant(value) {
|
|
19131
|
+
return function() {
|
|
19132
|
+
return value;
|
|
19133
|
+
};
|
|
19134
|
+
}
|
|
19135
|
+
var constant_default;
|
|
19136
|
+
var init_constant = __esm(() => {
|
|
19137
|
+
constant_default = constant;
|
|
19138
|
+
});
|
|
19139
|
+
|
|
19140
|
+
// ../../node_modules/lodash-es/_baseSetToString.js
|
|
19141
|
+
var baseSetToString, _baseSetToString_default;
|
|
19142
|
+
var init__baseSetToString = __esm(() => {
|
|
19143
|
+
init_constant();
|
|
19144
|
+
init__defineProperty();
|
|
19145
|
+
init_identity();
|
|
19146
|
+
baseSetToString = !_defineProperty_default ? identity_default : function(func, string) {
|
|
19147
|
+
return _defineProperty_default(func, "toString", {
|
|
19148
|
+
configurable: true,
|
|
19149
|
+
enumerable: false,
|
|
19150
|
+
value: constant_default(string),
|
|
19151
|
+
writable: true
|
|
19152
|
+
});
|
|
19153
|
+
};
|
|
19154
|
+
_baseSetToString_default = baseSetToString;
|
|
19155
|
+
});
|
|
19156
|
+
|
|
19157
|
+
// ../../node_modules/lodash-es/_shortOut.js
|
|
19158
|
+
function shortOut(func) {
|
|
19159
|
+
var count = 0, lastCalled = 0;
|
|
19160
|
+
return function() {
|
|
19161
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
19162
|
+
lastCalled = stamp;
|
|
19163
|
+
if (remaining > 0) {
|
|
19164
|
+
if (++count >= HOT_COUNT) {
|
|
19165
|
+
return arguments[0];
|
|
19166
|
+
}
|
|
19167
|
+
} else {
|
|
19168
|
+
count = 0;
|
|
19169
|
+
}
|
|
19170
|
+
return func.apply(undefined, arguments);
|
|
19171
|
+
};
|
|
19172
|
+
}
|
|
19173
|
+
var HOT_COUNT = 800, HOT_SPAN = 16, nativeNow, _shortOut_default;
|
|
19174
|
+
var init__shortOut = __esm(() => {
|
|
19175
|
+
nativeNow = Date.now;
|
|
19176
|
+
_shortOut_default = shortOut;
|
|
19177
|
+
});
|
|
19178
|
+
|
|
19179
|
+
// ../../node_modules/lodash-es/_setToString.js
|
|
19180
|
+
var setToString, _setToString_default;
|
|
19181
|
+
var init__setToString = __esm(() => {
|
|
19182
|
+
init__baseSetToString();
|
|
19183
|
+
init__shortOut();
|
|
19184
|
+
setToString = _shortOut_default(_baseSetToString_default);
|
|
19185
|
+
_setToString_default = setToString;
|
|
19186
|
+
});
|
|
19187
|
+
|
|
19188
|
+
// ../../node_modules/lodash-es/_baseRest.js
|
|
19189
|
+
function baseRest(func, start) {
|
|
19190
|
+
return _setToString_default(_overRest_default(func, start, identity_default), func + "");
|
|
19191
|
+
}
|
|
19192
|
+
var _baseRest_default;
|
|
19193
|
+
var init__baseRest = __esm(() => {
|
|
19194
|
+
init_identity();
|
|
19195
|
+
init__overRest();
|
|
19196
|
+
init__setToString();
|
|
19197
|
+
_baseRest_default = baseRest;
|
|
19198
|
+
});
|
|
19199
|
+
|
|
19200
|
+
// ../../node_modules/lodash-es/_isIterateeCall.js
|
|
19201
|
+
function isIterateeCall(value, index, object) {
|
|
19202
|
+
if (!isObject_default(object)) {
|
|
19203
|
+
return false;
|
|
19204
|
+
}
|
|
19205
|
+
var type = typeof index;
|
|
19206
|
+
if (type == "number" ? isArrayLike_default(object) && _isIndex_default(index, object.length) : type == "string" && (index in object)) {
|
|
19207
|
+
return eq_default(object[index], value);
|
|
19208
|
+
}
|
|
19209
|
+
return false;
|
|
19210
|
+
}
|
|
19211
|
+
var _isIterateeCall_default;
|
|
19212
|
+
var init__isIterateeCall = __esm(() => {
|
|
19213
|
+
init_eq();
|
|
19214
|
+
init_isArrayLike();
|
|
19215
|
+
init__isIndex();
|
|
19216
|
+
init_isObject();
|
|
19217
|
+
_isIterateeCall_default = isIterateeCall;
|
|
19218
|
+
});
|
|
19219
|
+
|
|
19220
|
+
// ../../node_modules/lodash-es/_createAssigner.js
|
|
19221
|
+
function createAssigner(assigner) {
|
|
19222
|
+
return _baseRest_default(function(object, sources) {
|
|
19223
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined;
|
|
19224
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined;
|
|
19225
|
+
if (guard && _isIterateeCall_default(sources[0], sources[1], guard)) {
|
|
19226
|
+
customizer = length < 3 ? undefined : customizer;
|
|
19227
|
+
length = 1;
|
|
19228
|
+
}
|
|
19229
|
+
object = Object(object);
|
|
19230
|
+
while (++index < length) {
|
|
19231
|
+
var source = sources[index];
|
|
19232
|
+
if (source) {
|
|
19233
|
+
assigner(object, source, index, customizer);
|
|
19234
|
+
}
|
|
19235
|
+
}
|
|
19236
|
+
return object;
|
|
19237
|
+
});
|
|
19238
|
+
}
|
|
19239
|
+
var _createAssigner_default;
|
|
19240
|
+
var init__createAssigner = __esm(() => {
|
|
19241
|
+
init__baseRest();
|
|
19242
|
+
init__isIterateeCall();
|
|
19243
|
+
_createAssigner_default = createAssigner;
|
|
19244
|
+
});
|
|
19245
|
+
|
|
19246
|
+
// ../../node_modules/lodash-es/mergeWith.js
|
|
19247
|
+
var mergeWith, mergeWith_default;
|
|
19248
|
+
var init_mergeWith = __esm(() => {
|
|
19249
|
+
init__baseMerge();
|
|
19250
|
+
init__createAssigner();
|
|
19251
|
+
mergeWith = _createAssigner_default(function(object, source, srcIndex, customizer) {
|
|
19252
|
+
_baseMerge_default(object, source, srcIndex, customizer);
|
|
19253
|
+
});
|
|
19254
|
+
mergeWith_default = mergeWith;
|
|
19255
|
+
});
|
|
19256
|
+
|
|
19257
|
+
// ../../node_modules/lodash-es/_isFlattenable.js
|
|
19258
|
+
function isFlattenable(value) {
|
|
19259
|
+
return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
19260
|
+
}
|
|
19261
|
+
var spreadableSymbol, _isFlattenable_default;
|
|
19262
|
+
var init__isFlattenable = __esm(() => {
|
|
19263
|
+
init__Symbol();
|
|
19264
|
+
init_isArguments();
|
|
19265
|
+
init_isArray();
|
|
19266
|
+
spreadableSymbol = _Symbol_default ? _Symbol_default.isConcatSpreadable : undefined;
|
|
19267
|
+
_isFlattenable_default = isFlattenable;
|
|
19268
|
+
});
|
|
19269
|
+
|
|
19270
|
+
// ../../node_modules/lodash-es/_baseFlatten.js
|
|
19271
|
+
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
19272
|
+
var index = -1, length = array.length;
|
|
19273
|
+
predicate || (predicate = _isFlattenable_default);
|
|
19274
|
+
result || (result = []);
|
|
19275
|
+
while (++index < length) {
|
|
19276
|
+
var value = array[index];
|
|
19277
|
+
if (depth > 0 && predicate(value)) {
|
|
19278
|
+
if (depth > 1) {
|
|
19279
|
+
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
19280
|
+
} else {
|
|
19281
|
+
_arrayPush_default(result, value);
|
|
19282
|
+
}
|
|
19283
|
+
} else if (!isStrict) {
|
|
19284
|
+
result[result.length] = value;
|
|
19285
|
+
}
|
|
19286
|
+
}
|
|
19287
|
+
return result;
|
|
19288
|
+
}
|
|
19289
|
+
var _baseFlatten_default;
|
|
19290
|
+
var init__baseFlatten = __esm(() => {
|
|
19291
|
+
init__arrayPush();
|
|
19292
|
+
init__isFlattenable();
|
|
19293
|
+
_baseFlatten_default = baseFlatten;
|
|
19294
|
+
});
|
|
19295
|
+
|
|
19296
|
+
// ../../node_modules/lodash-es/_baseSortBy.js
|
|
19297
|
+
function baseSortBy(array, comparer) {
|
|
19298
|
+
var length = array.length;
|
|
19299
|
+
array.sort(comparer);
|
|
19300
|
+
while (length--) {
|
|
19301
|
+
array[length] = array[length].value;
|
|
19302
|
+
}
|
|
19303
|
+
return array;
|
|
19304
|
+
}
|
|
19305
|
+
var _baseSortBy_default;
|
|
19306
|
+
var init__baseSortBy = __esm(() => {
|
|
19307
|
+
_baseSortBy_default = baseSortBy;
|
|
19308
|
+
});
|
|
19309
|
+
|
|
19310
|
+
// ../../node_modules/lodash-es/_compareAscending.js
|
|
19311
|
+
function compareAscending(value, other) {
|
|
19312
|
+
if (value !== other) {
|
|
19313
|
+
var valIsDefined = value !== undefined, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol_default(value);
|
|
19314
|
+
var othIsDefined = other !== undefined, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol_default(other);
|
|
19315
|
+
if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
|
|
19316
|
+
return 1;
|
|
19317
|
+
}
|
|
19318
|
+
if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) {
|
|
19319
|
+
return -1;
|
|
19320
|
+
}
|
|
19321
|
+
}
|
|
19322
|
+
return 0;
|
|
19323
|
+
}
|
|
19324
|
+
var _compareAscending_default;
|
|
19325
|
+
var init__compareAscending = __esm(() => {
|
|
19326
|
+
init_isSymbol();
|
|
19327
|
+
_compareAscending_default = compareAscending;
|
|
19328
|
+
});
|
|
19329
|
+
|
|
19330
|
+
// ../../node_modules/lodash-es/_compareMultiple.js
|
|
19331
|
+
function compareMultiple(object, other, orders) {
|
|
19332
|
+
var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
19333
|
+
while (++index < length) {
|
|
19334
|
+
var result = _compareAscending_default(objCriteria[index], othCriteria[index]);
|
|
19335
|
+
if (result) {
|
|
19336
|
+
if (index >= ordersLength) {
|
|
19337
|
+
return result;
|
|
19338
|
+
}
|
|
19339
|
+
var order = orders[index];
|
|
19340
|
+
return result * (order == "desc" ? -1 : 1);
|
|
19341
|
+
}
|
|
19342
|
+
}
|
|
19343
|
+
return object.index - other.index;
|
|
19344
|
+
}
|
|
19345
|
+
var _compareMultiple_default;
|
|
19346
|
+
var init__compareMultiple = __esm(() => {
|
|
19347
|
+
init__compareAscending();
|
|
19348
|
+
_compareMultiple_default = compareMultiple;
|
|
19349
|
+
});
|
|
19350
|
+
|
|
19351
|
+
// ../../node_modules/lodash-es/_baseOrderBy.js
|
|
19352
|
+
function baseOrderBy(collection, iteratees, orders) {
|
|
19353
|
+
if (iteratees.length) {
|
|
19354
|
+
iteratees = _arrayMap_default(iteratees, function(iteratee) {
|
|
19355
|
+
if (isArray_default(iteratee)) {
|
|
19356
|
+
return function(value) {
|
|
19357
|
+
return _baseGet_default(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
19358
|
+
};
|
|
19359
|
+
}
|
|
19360
|
+
return iteratee;
|
|
19361
|
+
});
|
|
19362
|
+
} else {
|
|
19363
|
+
iteratees = [identity_default];
|
|
19364
|
+
}
|
|
19365
|
+
var index = -1;
|
|
19366
|
+
iteratees = _arrayMap_default(iteratees, _baseUnary_default(_baseIteratee_default));
|
|
19367
|
+
var result = _baseMap_default(collection, function(value, key, collection2) {
|
|
19368
|
+
var criteria = _arrayMap_default(iteratees, function(iteratee) {
|
|
19369
|
+
return iteratee(value);
|
|
16361
19370
|
});
|
|
19371
|
+
return { criteria, index: ++index, value };
|
|
19372
|
+
});
|
|
19373
|
+
return _baseSortBy_default(result, function(object, other) {
|
|
19374
|
+
return _compareMultiple_default(object, other, orders);
|
|
19375
|
+
});
|
|
19376
|
+
}
|
|
19377
|
+
var _baseOrderBy_default;
|
|
19378
|
+
var init__baseOrderBy = __esm(() => {
|
|
19379
|
+
init__arrayMap();
|
|
19380
|
+
init__baseGet();
|
|
19381
|
+
init__baseIteratee();
|
|
19382
|
+
init__baseMap();
|
|
19383
|
+
init__baseSortBy();
|
|
19384
|
+
init__baseUnary();
|
|
19385
|
+
init__compareMultiple();
|
|
19386
|
+
init_identity();
|
|
19387
|
+
init_isArray();
|
|
19388
|
+
_baseOrderBy_default = baseOrderBy;
|
|
19389
|
+
});
|
|
19390
|
+
|
|
19391
|
+
// ../../node_modules/lodash-es/sortBy.js
|
|
19392
|
+
var sortBy, sortBy_default;
|
|
19393
|
+
var init_sortBy = __esm(() => {
|
|
19394
|
+
init__baseFlatten();
|
|
19395
|
+
init__baseOrderBy();
|
|
19396
|
+
init__baseRest();
|
|
19397
|
+
init__isIterateeCall();
|
|
19398
|
+
sortBy = _baseRest_default(function(collection, iteratees) {
|
|
19399
|
+
if (collection == null) {
|
|
19400
|
+
return [];
|
|
19401
|
+
}
|
|
19402
|
+
var length = iteratees.length;
|
|
19403
|
+
if (length > 1 && _isIterateeCall_default(collection, iteratees[0], iteratees[1])) {
|
|
19404
|
+
iteratees = [];
|
|
19405
|
+
} else if (length > 2 && _isIterateeCall_default(iteratees[0], iteratees[1], iteratees[2])) {
|
|
19406
|
+
iteratees = [iteratees[0]];
|
|
19407
|
+
}
|
|
19408
|
+
return _baseOrderBy_default(collection, _baseFlatten_default(iteratees, 1), []);
|
|
19409
|
+
});
|
|
19410
|
+
sortBy_default = sortBy;
|
|
19411
|
+
});
|
|
19412
|
+
|
|
19413
|
+
// ../../node_modules/lodash-es/lodash.js
|
|
19414
|
+
var init_lodash = __esm(() => {
|
|
19415
|
+
init_find();
|
|
19416
|
+
init_forEach();
|
|
19417
|
+
init_get();
|
|
19418
|
+
init_isArray();
|
|
19419
|
+
init_isEmpty();
|
|
19420
|
+
init_map();
|
|
19421
|
+
init_mergeWith();
|
|
19422
|
+
init_sortBy();
|
|
19423
|
+
});
|
|
19424
|
+
|
|
19425
|
+
// src/expression-engine.ts
|
|
19426
|
+
import { createHash, randomUUID } from "crypto";
|
|
19427
|
+
|
|
19428
|
+
class SafeEvaluator {
|
|
19429
|
+
context;
|
|
19430
|
+
functions;
|
|
19431
|
+
constructor(context) {
|
|
19432
|
+
this.context = context;
|
|
19433
|
+
this.functions = {
|
|
19434
|
+
...builtinFunctions,
|
|
19435
|
+
Math,
|
|
19436
|
+
Date,
|
|
19437
|
+
JSON,
|
|
19438
|
+
parseInt,
|
|
19439
|
+
parseFloat,
|
|
19440
|
+
isNaN,
|
|
19441
|
+
isFinite,
|
|
19442
|
+
encodeURIComponent,
|
|
19443
|
+
decodeURIComponent
|
|
19444
|
+
};
|
|
16362
19445
|
}
|
|
16363
|
-
|
|
16364
|
-
|
|
19446
|
+
evaluate(expression) {
|
|
19447
|
+
try {
|
|
19448
|
+
const safeContext = {
|
|
19449
|
+
headers: this.context.headers,
|
|
19450
|
+
body: this.context.body,
|
|
19451
|
+
url: this.context.url,
|
|
19452
|
+
method: this.context.method,
|
|
19453
|
+
env: this.context.env,
|
|
19454
|
+
stream: this.context.stream,
|
|
19455
|
+
...this.functions
|
|
19456
|
+
};
|
|
19457
|
+
if (expression.includes("process.exit") || expression.includes("require(") || expression.includes("eval(") || expression.includes("Function(")) {
|
|
19458
|
+
throw new Error("Dangerous function call detected");
|
|
19459
|
+
}
|
|
19460
|
+
const func = new Function(...Object.keys(safeContext), `"use strict"; return (${expression});`);
|
|
19461
|
+
return func(...Object.values(safeContext));
|
|
19462
|
+
} catch (error) {
|
|
19463
|
+
throw new Error(`Expression evaluation failed: ${error.message}`);
|
|
19464
|
+
}
|
|
16365
19465
|
}
|
|
16366
|
-
|
|
16367
|
-
|
|
19466
|
+
}
|
|
19467
|
+
function evaluateExpression(expression, context) {
|
|
19468
|
+
try {
|
|
19469
|
+
const evaluator = new SafeEvaluator(context);
|
|
19470
|
+
const result = evaluator.evaluate(expression);
|
|
19471
|
+
return result;
|
|
19472
|
+
} catch (error) {
|
|
19473
|
+
if (!isTestEnvironment) {
|
|
19474
|
+
logger.error({ expression, error }, "Failed to evaluate expression");
|
|
19475
|
+
}
|
|
19476
|
+
throw error;
|
|
16368
19477
|
}
|
|
16369
19478
|
}
|
|
16370
|
-
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
|
|
16377
|
-
|
|
16378
|
-
if (
|
|
16379
|
-
|
|
19479
|
+
function processDynamicValue(value, context) {
|
|
19480
|
+
const _recursiveProcess = (currentValue) => {
|
|
19481
|
+
if (typeof currentValue === "string") {
|
|
19482
|
+
const expressionRegex = /\{\{(.+?)\}\}/g;
|
|
19483
|
+
const matches = Array.from(currentValue.matchAll(expressionRegex));
|
|
19484
|
+
if (matches.length === 0) {
|
|
19485
|
+
return currentValue;
|
|
19486
|
+
}
|
|
19487
|
+
if (matches.length === 1 && matches[0][0] === currentValue) {
|
|
19488
|
+
return evaluateExpression(matches[0][1], context);
|
|
19489
|
+
}
|
|
19490
|
+
let result = currentValue;
|
|
19491
|
+
for (const match of matches) {
|
|
19492
|
+
const [fullMatch, expression] = match;
|
|
19493
|
+
try {
|
|
19494
|
+
const evaluated = evaluateExpression(expression, context);
|
|
19495
|
+
result = result.replace(fullMatch, String(evaluated));
|
|
19496
|
+
} catch (error) {
|
|
19497
|
+
if (!isTestEnvironment) {
|
|
19498
|
+
logger.warn({ expression, error }, "Expression evaluation failed in template string");
|
|
19499
|
+
}
|
|
19500
|
+
}
|
|
16380
19501
|
}
|
|
16381
|
-
|
|
16382
|
-
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
const
|
|
16386
|
-
for (
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
continue;
|
|
19502
|
+
return result;
|
|
19503
|
+
} else if (Array.isArray(currentValue)) {
|
|
19504
|
+
return currentValue.map((item) => _recursiveProcess(item));
|
|
19505
|
+
} else if (typeof currentValue === "object" && currentValue !== null) {
|
|
19506
|
+
const newObj = {};
|
|
19507
|
+
for (const key in currentValue) {
|
|
19508
|
+
if (Object.prototype.hasOwnProperty.call(currentValue, key)) {
|
|
19509
|
+
newObj[key] = _recursiveProcess(currentValue[key]);
|
|
16390
19510
|
}
|
|
16391
|
-
|
|
16392
|
-
|
|
16393
|
-
|
|
16394
|
-
|
|
19511
|
+
}
|
|
19512
|
+
return newObj;
|
|
19513
|
+
}
|
|
19514
|
+
return currentValue;
|
|
19515
|
+
};
|
|
19516
|
+
return _recursiveProcess(value);
|
|
19517
|
+
}
|
|
19518
|
+
var isTestEnvironment, builtinFunctions, expressionCache;
|
|
19519
|
+
var init_expression_engine = __esm(() => {
|
|
19520
|
+
init_logger();
|
|
19521
|
+
isTestEnvironment = typeof globalThis.describe !== "undefined";
|
|
19522
|
+
builtinFunctions = {
|
|
19523
|
+
uuid: () => randomUUID(),
|
|
19524
|
+
now: () => Date.now(),
|
|
19525
|
+
randomInt: (min, max) => Math.floor(Math.random() * (max - min + 1)) + min,
|
|
19526
|
+
base64encode: (str) => Buffer.from(str).toString("base64"),
|
|
19527
|
+
base64decode: (str) => Buffer.from(str, "base64").toString(),
|
|
19528
|
+
md5: (str) => createHash("md5").update(str).digest("hex"),
|
|
19529
|
+
sha256: (str) => createHash("sha256").update(str).digest("hex"),
|
|
19530
|
+
parseJWT: (token) => {
|
|
19531
|
+
try {
|
|
19532
|
+
if (!token || typeof token !== "string") {
|
|
19533
|
+
throw new Error("Invalid token type");
|
|
16395
19534
|
}
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
-
services.push(service2);
|
|
16405
|
-
serviceNames.add(service2.name);
|
|
16406
|
-
changes.push({
|
|
16407
|
-
type: "move",
|
|
16408
|
-
path: `routes.${routeIndex}.service`,
|
|
16409
|
-
to: `services.${service2.name}`,
|
|
16410
|
-
message: `Created missing service "${service2.name}" for route "${route.path}"`
|
|
16411
|
-
});
|
|
16412
|
-
}
|
|
16413
|
-
moveRouteConfigToService(route, service2, routeIndex, changes);
|
|
16414
|
-
continue;
|
|
19535
|
+
const payload = token.split(".")[1];
|
|
19536
|
+
if (!payload)
|
|
19537
|
+
throw new Error("Invalid JWT format");
|
|
19538
|
+
return JSON.parse(Buffer.from(payload, "base64").toString());
|
|
19539
|
+
} catch (error) {
|
|
19540
|
+
const tokenPreview = typeof token === "string" ? token.substring(0, 20) + "..." : "invalid";
|
|
19541
|
+
if (!isTestEnvironment) {
|
|
19542
|
+
logger.warn({ token: tokenPreview, error }, "Failed to parse JWT");
|
|
16415
19543
|
}
|
|
16416
|
-
|
|
16417
|
-
const routeEndpoints = route.endpoints ?? [];
|
|
16418
|
-
const service = {
|
|
16419
|
-
name: serviceName,
|
|
16420
|
-
endpoints: routeEndpoints,
|
|
16421
|
-
...route.failover && { failover: route.failover },
|
|
16422
|
-
...route.sticky_session && { sticky_session: route.sticky_session }
|
|
16423
|
-
};
|
|
16424
|
-
services.push(service);
|
|
16425
|
-
route.service = serviceName;
|
|
16426
|
-
delete route.endpoints;
|
|
16427
|
-
changes.push({
|
|
16428
|
-
type: "move",
|
|
16429
|
-
path: `routes.${routeIndex}`,
|
|
16430
|
-
from: `routes.${routeIndex}.endpoints/failover/sticky_session`,
|
|
16431
|
-
to: `services.${serviceName}`,
|
|
16432
|
-
message: `Created service "${serviceName}" from route "${route.path}"`
|
|
16433
|
-
});
|
|
16434
|
-
moveRouteConfigToService(route, service, routeIndex, changes);
|
|
16435
|
-
}
|
|
16436
|
-
if (services.length > 0) {
|
|
16437
|
-
config.services = services;
|
|
19544
|
+
return {};
|
|
16438
19545
|
}
|
|
16439
|
-
|
|
16440
|
-
|
|
16441
|
-
|
|
16442
|
-
|
|
16443
|
-
|
|
19546
|
+
},
|
|
19547
|
+
jsonParse: (str) => JSON.parse(str),
|
|
19548
|
+
jsonStringify: (obj) => JSON.stringify(obj),
|
|
19549
|
+
encrypt: (str, method = "base64") => {
|
|
19550
|
+
if (method === "base64")
|
|
19551
|
+
return Buffer.from(str).toString("base64");
|
|
19552
|
+
return str;
|
|
19553
|
+
},
|
|
19554
|
+
first: (arr) => arr?.[0],
|
|
19555
|
+
last: (arr) => arr?.[arr.length - 1],
|
|
19556
|
+
length: (obj) => obj?.length || Object.keys(obj || {}).length,
|
|
19557
|
+
keys: (obj) => Object.keys(obj || {}),
|
|
19558
|
+
values: (obj) => Object.values(obj || {}),
|
|
19559
|
+
trim: (str) => str?.trim(),
|
|
19560
|
+
toLowerCase: (str) => str?.toLowerCase(),
|
|
19561
|
+
toUpperCase: (str) => str?.toUpperCase(),
|
|
19562
|
+
split: (str, delimiter) => str?.split(delimiter) || [],
|
|
19563
|
+
replace: (str, search, replacement) => str?.replace(search, replacement),
|
|
19564
|
+
isString: (val) => typeof val === "string",
|
|
19565
|
+
isNumber: (val) => typeof val === "number",
|
|
19566
|
+
isObject: (val) => typeof val === "object" && val !== null,
|
|
19567
|
+
isArray: (val) => Array.isArray(val),
|
|
19568
|
+
deepClean: (obj, fieldsToRemove = ["$schema", "additionalProperties", "title"]) => {
|
|
19569
|
+
if (!obj || typeof obj !== "object")
|
|
19570
|
+
return obj;
|
|
19571
|
+
const clean = (current) => {
|
|
19572
|
+
if (Array.isArray(current)) {
|
|
19573
|
+
return current.map(clean);
|
|
19574
|
+
}
|
|
19575
|
+
if (current && typeof current === "object") {
|
|
19576
|
+
const cleaned = {};
|
|
19577
|
+
for (const [key, value] of Object.entries(current)) {
|
|
19578
|
+
if (fieldsToRemove.includes(key)) {
|
|
19579
|
+
continue;
|
|
19580
|
+
}
|
|
19581
|
+
cleaned[key] = clean(value);
|
|
19582
|
+
}
|
|
19583
|
+
return cleaned;
|
|
19584
|
+
}
|
|
19585
|
+
return current;
|
|
16444
19586
|
};
|
|
19587
|
+
return clean(obj);
|
|
16445
19588
|
}
|
|
16446
19589
|
};
|
|
19590
|
+
expressionCache = new Map;
|
|
16447
19591
|
});
|
|
16448
19592
|
|
|
16449
|
-
// src/
|
|
16450
|
-
|
|
16451
|
-
|
|
16452
|
-
|
|
16453
|
-
|
|
16454
|
-
|
|
16455
|
-
|
|
16456
|
-
|
|
16457
|
-
|
|
16458
|
-
|
|
16459
|
-
|
|
19593
|
+
// src/worker/rules/modifier.ts
|
|
19594
|
+
function deepMergeRules(base, override) {
|
|
19595
|
+
const customizer = (objValue, srcValue) => {
|
|
19596
|
+
if (isArray_default(objValue)) {
|
|
19597
|
+
return [...new Set([...objValue, ...srcValue])];
|
|
19598
|
+
}
|
|
19599
|
+
};
|
|
19600
|
+
return mergeWith_default({}, base, override, customizer);
|
|
19601
|
+
}
|
|
19602
|
+
async function applyBodyRules(body, rules, context, requestLog) {
|
|
19603
|
+
let modifiedBody = structuredClone(body);
|
|
19604
|
+
logger.debug({ request: requestLog, phase: "before", body: modifiedBody }, "Body before applying rules");
|
|
19605
|
+
if (rules) {
|
|
19606
|
+
const processAndSet = (key, value, action) => {
|
|
19607
|
+
try {
|
|
19608
|
+
const processedValue = processDynamicValue(value, context);
|
|
19609
|
+
if (processedValue !== undefined) {
|
|
19610
|
+
modifiedBody[key] = processedValue;
|
|
19611
|
+
logger.debug({ request: requestLog, body: { key, value: processedValue } }, `Applied body '${action}' rule`);
|
|
19612
|
+
} else {
|
|
19613
|
+
logger.debug({ request: requestLog, body: { key } }, `Skipped body '${action}' rule (undefined result)`);
|
|
19614
|
+
}
|
|
19615
|
+
} catch (err) {
|
|
19616
|
+
logger.error({ request: requestLog, body: { key }, err }, `Failed to process body '${action}' rule`);
|
|
19617
|
+
}
|
|
19618
|
+
};
|
|
19619
|
+
if (rules.add) {
|
|
19620
|
+
forEach_default(rules.add, (value, key) => {
|
|
19621
|
+
processAndSet(key, value, "add");
|
|
19622
|
+
});
|
|
19623
|
+
}
|
|
19624
|
+
if (rules.replace) {
|
|
19625
|
+
forEach_default(rules.replace, (value, key) => {
|
|
19626
|
+
if (key in modifiedBody || rules.add && key in rules.add) {
|
|
19627
|
+
processAndSet(key, value, "replace");
|
|
19628
|
+
}
|
|
19629
|
+
});
|
|
19630
|
+
}
|
|
19631
|
+
if (rules.default) {
|
|
19632
|
+
forEach_default(rules.default, (value, key) => {
|
|
19633
|
+
if (modifiedBody[key] === undefined) {
|
|
19634
|
+
processAndSet(key, value, "default");
|
|
19635
|
+
}
|
|
19636
|
+
});
|
|
19637
|
+
}
|
|
19638
|
+
if (rules.remove) {
|
|
19639
|
+
for (const key of rules.remove) {
|
|
19640
|
+
const wasAdded = rules.add && key in rules.add;
|
|
19641
|
+
const wasReplaced = rules.replace && key in rules.replace;
|
|
19642
|
+
if (!wasAdded && !wasReplaced) {
|
|
19643
|
+
delete modifiedBody[key];
|
|
19644
|
+
logger.debug({ request: requestLog, body: { key } }, "Removed body field");
|
|
19645
|
+
}
|
|
19646
|
+
}
|
|
19647
|
+
}
|
|
19648
|
+
}
|
|
19649
|
+
if (modifiedBody.__multi_events && Array.isArray(modifiedBody.__multi_events)) {
|
|
19650
|
+
logger.debug({ request: requestLog, eventCount: modifiedBody.__multi_events.length }, "Returning multiple events");
|
|
19651
|
+
return modifiedBody.__multi_events;
|
|
19652
|
+
}
|
|
19653
|
+
logger.debug({ request: requestLog, phase: "after", body: modifiedBody }, "Body after applying rules");
|
|
19654
|
+
return modifiedBody;
|
|
19655
|
+
}
|
|
19656
|
+
function applyQueryRules(searchParams, rules, context, requestLog) {
|
|
19657
|
+
const modified = new URLSearchParams(searchParams);
|
|
19658
|
+
if (rules) {
|
|
19659
|
+
if (rules.add) {
|
|
19660
|
+
forEach_default(rules.add, (value, key) => {
|
|
19661
|
+
const processed = processDynamicValue(value, context);
|
|
19662
|
+
if (processed !== undefined) {
|
|
19663
|
+
modified.set(key, String(processed));
|
|
19664
|
+
logger.debug({ request: requestLog, query: { key, value: processed } }, "Applied query 'add' rule");
|
|
19665
|
+
}
|
|
19666
|
+
});
|
|
19667
|
+
}
|
|
19668
|
+
if (rules.replace) {
|
|
19669
|
+
forEach_default(rules.replace, (value, key) => {
|
|
19670
|
+
if (modified.has(key) || rules.add && key in rules.add) {
|
|
19671
|
+
const processed = processDynamicValue(value, context);
|
|
19672
|
+
if (processed !== undefined) {
|
|
19673
|
+
modified.set(key, String(processed));
|
|
19674
|
+
logger.debug({ request: requestLog, query: { key, value: processed } }, "Applied query 'replace' rule");
|
|
19675
|
+
}
|
|
19676
|
+
}
|
|
19677
|
+
});
|
|
19678
|
+
}
|
|
19679
|
+
if (rules.default) {
|
|
19680
|
+
forEach_default(rules.default, (value, key) => {
|
|
19681
|
+
if (!modified.has(key)) {
|
|
19682
|
+
const processed = processDynamicValue(value, context);
|
|
19683
|
+
if (processed !== undefined) {
|
|
19684
|
+
modified.set(key, String(processed));
|
|
19685
|
+
logger.debug({ request: requestLog, query: { key, value: processed } }, "Applied query 'default' rule");
|
|
19686
|
+
}
|
|
19687
|
+
}
|
|
19688
|
+
});
|
|
19689
|
+
}
|
|
19690
|
+
if (rules.remove) {
|
|
19691
|
+
for (const key of rules.remove) {
|
|
19692
|
+
const wasAdded = rules.add && key in rules.add;
|
|
19693
|
+
const wasReplaced = rules.replace && key in rules.replace;
|
|
19694
|
+
if (!wasAdded && !wasReplaced) {
|
|
19695
|
+
modified.delete(key);
|
|
19696
|
+
logger.debug({ request: requestLog, query: { key } }, "Removed query parameter");
|
|
19697
|
+
}
|
|
19698
|
+
}
|
|
19699
|
+
}
|
|
19700
|
+
}
|
|
19701
|
+
return modified;
|
|
19702
|
+
}
|
|
19703
|
+
var init_modifier = __esm(() => {
|
|
19704
|
+
init_lodash();
|
|
19705
|
+
init_logger();
|
|
19706
|
+
init_expression_engine();
|
|
16460
19707
|
});
|
|
16461
19708
|
|
|
16462
|
-
// src/
|
|
16463
|
-
function
|
|
16464
|
-
return
|
|
19709
|
+
// src/utils/endpoint-resolver.ts
|
|
19710
|
+
function pluginName(plugin) {
|
|
19711
|
+
return typeof plugin === "string" ? plugin : plugin.name;
|
|
16465
19712
|
}
|
|
16466
|
-
function
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
-
|
|
16470
|
-
|
|
16471
|
-
const
|
|
16472
|
-
const
|
|
16473
|
-
|
|
16474
|
-
|
|
16475
|
-
|
|
16476
|
-
|
|
19713
|
+
function mergePluginArrays(basePlugins, overridePlugins) {
|
|
19714
|
+
if (basePlugins === undefined && overridePlugins === undefined) {
|
|
19715
|
+
return;
|
|
19716
|
+
}
|
|
19717
|
+
const merged = [...basePlugins ?? []];
|
|
19718
|
+
const indexByName = new Map;
|
|
19719
|
+
for (const [index, plugin] of merged.entries()) {
|
|
19720
|
+
indexByName.set(pluginName(plugin), index);
|
|
19721
|
+
}
|
|
19722
|
+
for (const plugin of overridePlugins ?? []) {
|
|
19723
|
+
const name = pluginName(plugin);
|
|
19724
|
+
const existingIndex = indexByName.get(name);
|
|
19725
|
+
if (existingIndex === undefined) {
|
|
19726
|
+
indexByName.set(name, merged.length);
|
|
19727
|
+
merged.push(plugin);
|
|
19728
|
+
} else {
|
|
19729
|
+
merged[existingIndex] = plugin;
|
|
16477
19730
|
}
|
|
16478
|
-
const result = migration4.migrate(workingConfig);
|
|
16479
|
-
workingConfig = result.config;
|
|
16480
|
-
changes.push(...result.changes);
|
|
16481
|
-
warnings.push(...result.warnings);
|
|
16482
|
-
currentVersion = migration4.toVersion;
|
|
16483
19731
|
}
|
|
16484
|
-
|
|
16485
|
-
|
|
19732
|
+
return merged;
|
|
19733
|
+
}
|
|
19734
|
+
function extractModificationRules(endpoint) {
|
|
19735
|
+
const rules = {};
|
|
19736
|
+
if (endpoint.headers !== undefined) {
|
|
19737
|
+
rules.headers = endpoint.headers;
|
|
16486
19738
|
}
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
};
|
|
19739
|
+
if (endpoint.body !== undefined) {
|
|
19740
|
+
rules.body = endpoint.body;
|
|
19741
|
+
}
|
|
19742
|
+
if (endpoint.query !== undefined) {
|
|
19743
|
+
rules.query = endpoint.query;
|
|
19744
|
+
}
|
|
19745
|
+
return rules;
|
|
16495
19746
|
}
|
|
16496
|
-
|
|
16497
|
-
|
|
19747
|
+
function applyModificationRules(endpoint, rules) {
|
|
19748
|
+
const merged = { ...endpoint };
|
|
19749
|
+
if (rules.headers !== undefined) {
|
|
19750
|
+
merged.headers = rules.headers;
|
|
19751
|
+
} else {
|
|
19752
|
+
delete merged.headers;
|
|
19753
|
+
}
|
|
19754
|
+
if (rules.body !== undefined) {
|
|
19755
|
+
merged.body = rules.body;
|
|
19756
|
+
} else {
|
|
19757
|
+
delete merged.body;
|
|
19758
|
+
}
|
|
19759
|
+
if (rules.query !== undefined) {
|
|
19760
|
+
merged.query = rules.query;
|
|
19761
|
+
} else {
|
|
19762
|
+
delete merged.query;
|
|
19763
|
+
}
|
|
19764
|
+
return merged;
|
|
19765
|
+
}
|
|
19766
|
+
function deepMergeEndpoint(base, override) {
|
|
19767
|
+
const plugins = mergePluginArrays(base.plugins, override.plugins);
|
|
19768
|
+
const rules = deepMergeRules(extractModificationRules(base), extractModificationRules(override));
|
|
19769
|
+
const merged = applyModificationRules({ ...base, ...override }, rules);
|
|
19770
|
+
if (plugins !== undefined) {
|
|
19771
|
+
merged.plugins = plugins;
|
|
19772
|
+
} else {
|
|
19773
|
+
delete merged.plugins;
|
|
19774
|
+
}
|
|
19775
|
+
return merged;
|
|
19776
|
+
}
|
|
19777
|
+
function resolveEffectiveRouteEndpoints(route, services) {
|
|
19778
|
+
const service = route.service ? services?.find((candidate) => candidate.name === route.service) : undefined;
|
|
19779
|
+
if (!service) {
|
|
19780
|
+
return route.endpoints ?? [];
|
|
19781
|
+
}
|
|
19782
|
+
const merged = [...service.endpoints];
|
|
19783
|
+
for (const endpoint of route.endpoints ?? []) {
|
|
19784
|
+
const existingIndex = merged.findIndex((candidate) => candidate.target === endpoint.target);
|
|
19785
|
+
if (existingIndex >= 0) {
|
|
19786
|
+
merged[existingIndex] = deepMergeEndpoint(merged[existingIndex], endpoint);
|
|
19787
|
+
} else {
|
|
19788
|
+
merged.push(endpoint);
|
|
19789
|
+
}
|
|
19790
|
+
}
|
|
19791
|
+
return merged;
|
|
19792
|
+
}
|
|
19793
|
+
function resolveRouteService(config, route) {
|
|
19794
|
+
return route.service ? config.services?.find((service) => service.name === route.service) : undefined;
|
|
19795
|
+
}
|
|
19796
|
+
var init_endpoint_resolver = __esm(() => {
|
|
19797
|
+
init_modifier();
|
|
16498
19798
|
});
|
|
16499
19799
|
|
|
16500
19800
|
// src/config.ts
|
|
@@ -16507,28 +19807,9 @@ function ensurePositiveNumber(value, field, context) {
|
|
|
16507
19807
|
}
|
|
16508
19808
|
return value;
|
|
16509
19809
|
}
|
|
16510
|
-
function resolveRouteEndpoints(route, services) {
|
|
16511
|
-
if (route.service) {
|
|
16512
|
-
const svc = services?.find((s) => s.name === route.service);
|
|
16513
|
-
if (!svc) {
|
|
16514
|
-
logger.error(`Route "${route.path}" references unknown service "${route.service}".`);
|
|
16515
|
-
process.exit(1);
|
|
16516
|
-
}
|
|
16517
|
-
return svc.endpoints;
|
|
16518
|
-
}
|
|
16519
|
-
const routeEndpoints = route.endpoints ?? [];
|
|
16520
|
-
if (routeEndpoints.length > 0) {
|
|
16521
|
-
return routeEndpoints;
|
|
16522
|
-
}
|
|
16523
|
-
if (route.direct_response?.enabled || route.redirect?.enabled || route.response_rules?.some((rule) => rule.enabled)) {
|
|
16524
|
-
return [];
|
|
16525
|
-
}
|
|
16526
|
-
logger.error(`Route "${route.path}" must have "endpoints", "service", "response_rules", "direct_response", or "redirect" defined.`);
|
|
16527
|
-
process.exit(1);
|
|
16528
|
-
}
|
|
16529
19810
|
function normalizeRouteConfig(route, services) {
|
|
16530
19811
|
route.timeouts ??= {};
|
|
16531
|
-
const endpoints =
|
|
19812
|
+
const endpoints = resolveEffectiveRouteEndpoints(route, services);
|
|
16532
19813
|
route.endpoints = endpoints;
|
|
16533
19814
|
for (const endpoint of endpoints) {
|
|
16534
19815
|
if (endpoint.weight === undefined) {
|
|
@@ -16540,21 +19821,29 @@ function normalizeRouteConfig(route, services) {
|
|
|
16540
19821
|
}
|
|
16541
19822
|
return route;
|
|
16542
19823
|
}
|
|
16543
|
-
function
|
|
16544
|
-
|
|
19824
|
+
function validateLoadBalancing(service) {
|
|
19825
|
+
const lb = service.load_balancing;
|
|
19826
|
+
if (!lb)
|
|
16545
19827
|
return;
|
|
16546
|
-
|
|
16547
|
-
if (
|
|
16548
|
-
logger.error(`Invalid
|
|
16549
|
-
process.exit(1);
|
|
16550
|
-
}
|
|
16551
|
-
if (service.sticky_session.enabled !== undefined && typeof service.sticky_session.enabled !== "boolean") {
|
|
16552
|
-
logger.error(`Invalid sticky_session.enabled in service "${service.name}". sticky_session.enabled must be a boolean.`);
|
|
19828
|
+
const validPolicies = ["weighted_random", "round_robin", "least_requests", "consistent_hash"];
|
|
19829
|
+
if (!validPolicies.includes(lb.policy)) {
|
|
19830
|
+
logger.error(`Invalid load_balancing.policy "${lb.policy}" in service "${service.name}". Must be one of: ${validPolicies.join(", ")}`);
|
|
16553
19831
|
process.exit(1);
|
|
16554
19832
|
}
|
|
16555
|
-
if (
|
|
16556
|
-
|
|
16557
|
-
|
|
19833
|
+
if (lb.policy === "consistent_hash") {
|
|
19834
|
+
const hp = lb.hash_policy;
|
|
19835
|
+
if (!hp || !hp.header && !hp.expression) {
|
|
19836
|
+
logger.error(`Service "${service.name}" with policy=consistent_hash requires hash_policy with at least one of header or expression.`);
|
|
19837
|
+
process.exit(1);
|
|
19838
|
+
}
|
|
19839
|
+
if (hp.header !== undefined && typeof hp.header !== "string") {
|
|
19840
|
+
logger.error(`Invalid load_balancing.hash_policy.header in service "${service.name}". Must be a string.`);
|
|
19841
|
+
process.exit(1);
|
|
19842
|
+
}
|
|
19843
|
+
if (hp.expression !== undefined && typeof hp.expression !== "string") {
|
|
19844
|
+
logger.error(`Invalid load_balancing.hash_policy.expression in service "${service.name}". Must be a string.`);
|
|
19845
|
+
process.exit(1);
|
|
19846
|
+
}
|
|
16558
19847
|
}
|
|
16559
19848
|
}
|
|
16560
19849
|
function validateFailoverConfig(service) {
|
|
@@ -16569,8 +19858,8 @@ function validateFailoverConfig(service) {
|
|
|
16569
19858
|
if (service.endpoints.length < 2 && failover.enabled) {
|
|
16570
19859
|
logger.warn(`Service "${service.name}" has failover enabled but less than 2 endpoints. Failover will not be active.`);
|
|
16571
19860
|
}
|
|
16572
|
-
if (failover.recovery?.
|
|
16573
|
-
ensurePositiveNumber(failover.recovery.
|
|
19861
|
+
if (failover.recovery?.backoff_base_ms !== undefined) {
|
|
19862
|
+
ensurePositiveNumber(failover.recovery.backoff_base_ms, "failover.recovery.backoff_base_ms", `service "${service.name}"`);
|
|
16574
19863
|
}
|
|
16575
19864
|
if (failover.recovery?.probe_timeout_ms !== undefined) {
|
|
16576
19865
|
ensurePositiveNumber(failover.recovery.probe_timeout_ms, "failover.recovery.probe_timeout_ms", `service "${service.name}"`);
|
|
@@ -16584,10 +19873,6 @@ function validateFailoverConfig(service) {
|
|
|
16584
19873
|
if (failover.passive_health?.auto_disable_threshold !== undefined) {
|
|
16585
19874
|
ensurePositiveNumber(failover.passive_health.auto_disable_threshold, "failover.passive_health.auto_disable_threshold", `service "${service.name}"`);
|
|
16586
19875
|
}
|
|
16587
|
-
if (failover.passive_health?.auto_enable_on_active_health_check !== undefined && typeof failover.passive_health.auto_enable_on_active_health_check !== "boolean") {
|
|
16588
|
-
logger.error(`Invalid failover.passive_health.auto_enable_on_active_health_check in service "${service.name}". It must be a boolean.`);
|
|
16589
|
-
process.exit(1);
|
|
16590
|
-
}
|
|
16591
19876
|
if (failover.slow_start) {
|
|
16592
19877
|
if (typeof failover.slow_start.enabled !== "boolean") {
|
|
16593
19878
|
logger.error(`Invalid failover.slow_start.enabled in service "${service.name}". It must be a boolean.`);
|
|
@@ -16604,23 +19889,26 @@ function validateFailoverConfig(service) {
|
|
|
16604
19889
|
}
|
|
16605
19890
|
}
|
|
16606
19891
|
}
|
|
16607
|
-
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
|
|
16614
|
-
|
|
16615
|
-
|
|
16616
|
-
|
|
16617
|
-
}
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
}
|
|
19892
|
+
}
|
|
19893
|
+
function validateServiceHealthCheck(service) {
|
|
19894
|
+
const hc = service.health_check;
|
|
19895
|
+
if (!hc)
|
|
19896
|
+
return;
|
|
19897
|
+
if (typeof hc.enabled !== "boolean") {
|
|
19898
|
+
logger.error(`Invalid health_check.enabled in service "${service.name}". It must be a boolean.`);
|
|
19899
|
+
process.exit(1);
|
|
19900
|
+
}
|
|
19901
|
+
if (hc.interval_ms !== undefined)
|
|
19902
|
+
ensurePositiveNumber(hc.interval_ms, "health_check.interval_ms", `service "${service.name}"`);
|
|
19903
|
+
if (hc.timeout_ms !== undefined)
|
|
19904
|
+
ensurePositiveNumber(hc.timeout_ms, "health_check.timeout_ms", `service "${service.name}"`);
|
|
19905
|
+
if (hc.unhealthy_threshold !== undefined)
|
|
19906
|
+
ensurePositiveNumber(hc.unhealthy_threshold, "health_check.unhealthy_threshold", `service "${service.name}"`);
|
|
19907
|
+
if (hc.healthy_threshold !== undefined)
|
|
19908
|
+
ensurePositiveNumber(hc.healthy_threshold, "health_check.healthy_threshold", `service "${service.name}"`);
|
|
19909
|
+
if (hc.auto_enable_on_active_health_check !== undefined && typeof hc.auto_enable_on_active_health_check !== "boolean") {
|
|
19910
|
+
logger.error(`Invalid health_check.auto_enable_on_active_health_check in service "${service.name}". It must be a boolean.`);
|
|
19911
|
+
process.exit(1);
|
|
16624
19912
|
}
|
|
16625
19913
|
}
|
|
16626
19914
|
function validateAuthConfig(authConfig, context) {
|
|
@@ -16669,10 +19957,23 @@ function validateServices(services) {
|
|
|
16669
19957
|
process.exit(1);
|
|
16670
19958
|
}
|
|
16671
19959
|
}
|
|
16672
|
-
|
|
19960
|
+
validateLoadBalancing(service);
|
|
16673
19961
|
validateFailoverConfig(service);
|
|
19962
|
+
validateServiceTimeouts(service);
|
|
19963
|
+
validateServiceHealthCheck(service);
|
|
16674
19964
|
}
|
|
16675
19965
|
}
|
|
19966
|
+
function validateServiceTimeouts(service) {
|
|
19967
|
+
const t = service.timeouts;
|
|
19968
|
+
if (!t)
|
|
19969
|
+
return;
|
|
19970
|
+
if (t.connect_ms !== undefined)
|
|
19971
|
+
ensurePositiveNumber(t.connect_ms, "timeouts.connect_ms", `service "${service.name}"`);
|
|
19972
|
+
if (t.send_ms !== undefined)
|
|
19973
|
+
ensurePositiveNumber(t.send_ms, "timeouts.send_ms", `service "${service.name}"`);
|
|
19974
|
+
if (t.read_ms !== undefined)
|
|
19975
|
+
ensurePositiveNumber(t.read_ms, "timeouts.read_ms", `service "${service.name}"`);
|
|
19976
|
+
}
|
|
16676
19977
|
function validateAndNormalizeConfig(config) {
|
|
16677
19978
|
if (!config.routes || !Array.isArray(config.routes)) {
|
|
16678
19979
|
logger.error('Error: "routes" is not defined or not an array in config.json.');
|
|
@@ -16694,8 +19995,8 @@ function validateAndNormalizeConfig(config) {
|
|
|
16694
19995
|
logger.error(`Route for path "${route.path}" must have "endpoints", "service", "response_rules", "direct_response", or "redirect" defined.`);
|
|
16695
19996
|
process.exit(1);
|
|
16696
19997
|
}
|
|
16697
|
-
if (hasServiceRef
|
|
16698
|
-
const svc = config.services
|
|
19998
|
+
if (hasServiceRef) {
|
|
19999
|
+
const svc = config.services?.find((s) => s.name === route.service);
|
|
16699
20000
|
if (!svc) {
|
|
16700
20001
|
logger.error(`Route "${route.path}" references unknown service "${route.service}".`);
|
|
16701
20002
|
process.exit(1);
|
|
@@ -16705,13 +20006,10 @@ function validateAndNormalizeConfig(config) {
|
|
|
16705
20006
|
validateAuthConfig(route.auth, `route "${route.path}"`);
|
|
16706
20007
|
}
|
|
16707
20008
|
normalizeRouteConfig(route, config.services);
|
|
16708
|
-
if (route.timeouts?.connect_ms !== undefined) {
|
|
16709
|
-
ensurePositiveNumber(route.timeouts.connect_ms, "timeouts.connect_ms", `route "${route.path}"`);
|
|
16710
|
-
}
|
|
16711
20009
|
if (route.timeouts?.request_ms !== undefined) {
|
|
16712
20010
|
ensurePositiveNumber(route.timeouts.request_ms, "timeouts.request_ms", `route "${route.path}"`);
|
|
16713
20011
|
}
|
|
16714
|
-
const endpoints =
|
|
20012
|
+
const endpoints = resolveEffectiveRouteEndpoints(route, config.services);
|
|
16715
20013
|
if (endpoints.length > 0) {
|
|
16716
20014
|
let total_weight = 0;
|
|
16717
20015
|
for (const endpoint of endpoints) {
|
|
@@ -16821,7 +20119,8 @@ async function loadConfig(configPath) {
|
|
|
16821
20119
|
changeCount: migrated.changes.length
|
|
16822
20120
|
}, "Config migrated to latest version in memory");
|
|
16823
20121
|
}
|
|
16824
|
-
|
|
20122
|
+
const adapted = LegacyCompatAdapter.adaptConfig(migrated.config);
|
|
20123
|
+
return validateAndNormalizeConfig(adapted);
|
|
16825
20124
|
} catch (error) {
|
|
16826
20125
|
logger.fatal({ error }, "Failed to load or parse config.json. Please ensure it exists and is valid JSON.");
|
|
16827
20126
|
process.exit(1);
|
|
@@ -16830,6 +20129,7 @@ async function loadConfig(configPath) {
|
|
|
16830
20129
|
var init_config = __esm(() => {
|
|
16831
20130
|
init_logger();
|
|
16832
20131
|
init_migrate_config();
|
|
20132
|
+
init_endpoint_resolver();
|
|
16833
20133
|
});
|
|
16834
20134
|
|
|
16835
20135
|
// src/plugin-storage-cleanup.ts
|
|
@@ -16998,7 +20298,7 @@ var init_plugin_storage_cleanup = __esm(() => {
|
|
|
16998
20298
|
// src/plugin-permissions.ts
|
|
16999
20299
|
class PluginPermissionManager {
|
|
17000
20300
|
permissions = new Map;
|
|
17001
|
-
registerPlugin(
|
|
20301
|
+
registerPlugin(pluginName2, metadata) {
|
|
17002
20302
|
const permissions = new Set;
|
|
17003
20303
|
permissions.add("storage" /* STORAGE */);
|
|
17004
20304
|
if (metadata.permissions && Array.isArray(metadata.permissions)) {
|
|
@@ -17046,25 +20346,25 @@ class PluginPermissionManager {
|
|
|
17046
20346
|
permissions.add("ui:forms" /* UI_FORMS */);
|
|
17047
20347
|
permissions.add("ui:modals" /* UI_MODALS */);
|
|
17048
20348
|
}
|
|
17049
|
-
this.permissions.set(
|
|
17050
|
-
logger.debug({ pluginName, permissions: Array.from(permissions) }, "Registered plugin permissions");
|
|
20349
|
+
this.permissions.set(pluginName2, permissions);
|
|
20350
|
+
logger.debug({ pluginName: pluginName2, permissions: Array.from(permissions) }, "Registered plugin permissions");
|
|
17051
20351
|
}
|
|
17052
|
-
hasPermission(
|
|
17053
|
-
const perms = this.permissions.get(
|
|
20352
|
+
hasPermission(pluginName2, permission) {
|
|
20353
|
+
const perms = this.permissions.get(pluginName2);
|
|
17054
20354
|
if (!perms) {
|
|
17055
|
-
logger.warn({ pluginName, permission }, "Plugin not registered in permission manager");
|
|
20355
|
+
logger.warn({ pluginName: pluginName2, permission }, "Plugin not registered in permission manager");
|
|
17056
20356
|
return false;
|
|
17057
20357
|
}
|
|
17058
20358
|
return perms.has(permission);
|
|
17059
20359
|
}
|
|
17060
|
-
hasPermissions(
|
|
17061
|
-
return requiredPermissions.every((perm) => this.hasPermission(
|
|
20360
|
+
hasPermissions(pluginName2, requiredPermissions) {
|
|
20361
|
+
return requiredPermissions.every((perm) => this.hasPermission(pluginName2, perm));
|
|
17062
20362
|
}
|
|
17063
|
-
getPermissions(
|
|
17064
|
-
return this.permissions.get(
|
|
20363
|
+
getPermissions(pluginName2) {
|
|
20364
|
+
return this.permissions.get(pluginName2) || new Set;
|
|
17065
20365
|
}
|
|
17066
|
-
getSandboxAttributes(
|
|
17067
|
-
const perms = this.permissions.get(
|
|
20366
|
+
getSandboxAttributes(pluginName2) {
|
|
20367
|
+
const perms = this.permissions.get(pluginName2);
|
|
17068
20368
|
if (!perms) {
|
|
17069
20369
|
return "allow-scripts";
|
|
17070
20370
|
}
|
|
@@ -17080,8 +20380,8 @@ class PluginPermissionManager {
|
|
|
17080
20380
|
}
|
|
17081
20381
|
return Array.from(sandboxAttrs).join(" ");
|
|
17082
20382
|
}
|
|
17083
|
-
getCSP(
|
|
17084
|
-
const perms = this.permissions.get(
|
|
20383
|
+
getCSP(pluginName2) {
|
|
20384
|
+
const perms = this.permissions.get(pluginName2);
|
|
17085
20385
|
if (!perms) {
|
|
17086
20386
|
return "default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'";
|
|
17087
20387
|
}
|
|
@@ -17101,7 +20401,7 @@ class PluginPermissionManager {
|
|
|
17101
20401
|
cspDirectives.push("base-uri 'self'");
|
|
17102
20402
|
return cspDirectives.join("; ");
|
|
17103
20403
|
}
|
|
17104
|
-
canAccessAPI(
|
|
20404
|
+
canAccessAPI(pluginName2, apiPath) {
|
|
17105
20405
|
const apiPermissionMap = {
|
|
17106
20406
|
"/api/plugins": "api:plugins" /* API_PLUGINS */,
|
|
17107
20407
|
"/api/routes": "api:routes" /* API_ROUTES */,
|
|
@@ -17109,14 +20409,14 @@ class PluginPermissionManager {
|
|
|
17109
20409
|
};
|
|
17110
20410
|
for (const [prefix, permission] of Object.entries(apiPermissionMap)) {
|
|
17111
20411
|
if (apiPath.startsWith(prefix)) {
|
|
17112
|
-
return this.hasPermission(
|
|
20412
|
+
return this.hasPermission(pluginName2, permission);
|
|
17113
20413
|
}
|
|
17114
20414
|
}
|
|
17115
20415
|
return true;
|
|
17116
20416
|
}
|
|
17117
|
-
unregisterPlugin(
|
|
17118
|
-
this.permissions.delete(
|
|
17119
|
-
logger.debug({ pluginName }, "Unregistered plugin permissions");
|
|
20417
|
+
unregisterPlugin(pluginName2) {
|
|
20418
|
+
this.permissions.delete(pluginName2);
|
|
20419
|
+
logger.debug({ pluginName: pluginName2 }, "Unregistered plugin permissions");
|
|
17120
20420
|
}
|
|
17121
20421
|
clear() {
|
|
17122
20422
|
this.permissions.clear();
|