@digipair/skill-llm 0.117.7 → 0.117.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +497 -299
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { snakeCase as snakeCase$1, kebabCase, camelCase as camelCase$1 } from 'case-anything/dist/index.js';
|
|
2
|
-
|
|
3
1
|
function _mergeNamespaces(n, m) {
|
|
4
2
|
m.forEach(function(e) {
|
|
5
3
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
@@ -8194,7 +8192,7 @@ function _create_class$v$1(Constructor, protoProps, staticProps) {
|
|
|
8194
8192
|
if (staticProps) _defineProperties$v$1(Constructor, staticProps);
|
|
8195
8193
|
return Constructor;
|
|
8196
8194
|
}
|
|
8197
|
-
function _define_property$
|
|
8195
|
+
function _define_property$5$1(obj, key, value) {
|
|
8198
8196
|
if (key in obj) {
|
|
8199
8197
|
Object.defineProperty(obj, key, {
|
|
8200
8198
|
value: value,
|
|
@@ -8269,7 +8267,7 @@ function _non_iterable_rest$5$1() {
|
|
|
8269
8267
|
function _non_iterable_spread$6$1() {
|
|
8270
8268
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8271
8269
|
}
|
|
8272
|
-
function _object_spread$
|
|
8270
|
+
function _object_spread$3$1(target) {
|
|
8273
8271
|
for(var i = 1; i < arguments.length; i++){
|
|
8274
8272
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8275
8273
|
var ownKeys = Object.keys(source);
|
|
@@ -8279,12 +8277,12 @@ function _object_spread$2$1(target) {
|
|
|
8279
8277
|
}));
|
|
8280
8278
|
}
|
|
8281
8279
|
ownKeys.forEach(function(key) {
|
|
8282
|
-
_define_property$
|
|
8280
|
+
_define_property$5$1(target, key, source[key]);
|
|
8283
8281
|
});
|
|
8284
8282
|
}
|
|
8285
8283
|
return target;
|
|
8286
8284
|
}
|
|
8287
|
-
function ownKeys$
|
|
8285
|
+
function ownKeys$2$1(object, enumerableOnly) {
|
|
8288
8286
|
var keys = Object.keys(object);
|
|
8289
8287
|
if (Object.getOwnPropertySymbols) {
|
|
8290
8288
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8292,12 +8290,12 @@ function ownKeys$1$1(object, enumerableOnly) {
|
|
|
8292
8290
|
}
|
|
8293
8291
|
return keys;
|
|
8294
8292
|
}
|
|
8295
|
-
function _object_spread_props$
|
|
8293
|
+
function _object_spread_props$2$1(target, source) {
|
|
8296
8294
|
source = source != null ? source : {};
|
|
8297
8295
|
if (Object.getOwnPropertyDescriptors) {
|
|
8298
8296
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8299
8297
|
} else {
|
|
8300
|
-
ownKeys$
|
|
8298
|
+
ownKeys$2$1(Object(source)).forEach(function(key) {
|
|
8301
8299
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8302
8300
|
});
|
|
8303
8301
|
}
|
|
@@ -9168,7 +9166,7 @@ function getCachedWeekInfo(locString) {
|
|
|
9168
9166
|
data = "getWeekInfo" in locale ? locale.getWeekInfo() : locale.weekInfo;
|
|
9169
9167
|
// minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86
|
|
9170
9168
|
if (!("minimalDays" in data)) {
|
|
9171
|
-
data = _object_spread$
|
|
9169
|
+
data = _object_spread$3$1({}, fallbackWeekSettings, data);
|
|
9172
9170
|
}
|
|
9173
9171
|
weekInfoCache.set(locString, data);
|
|
9174
9172
|
}
|
|
@@ -9275,7 +9273,7 @@ function supportsFastNumbers(loc) {
|
|
|
9275
9273
|
"floor"
|
|
9276
9274
|
]);
|
|
9277
9275
|
if (!forceSimple || Object.keys(otherOpts).length > 0) {
|
|
9278
|
-
var intlOpts = _object_spread$
|
|
9276
|
+
var intlOpts = _object_spread$3$1({
|
|
9279
9277
|
useGrouping: false
|
|
9280
9278
|
}, opts);
|
|
9281
9279
|
if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
|
|
@@ -9345,7 +9343,7 @@ function supportsFastNumbers(loc) {
|
|
|
9345
9343
|
});
|
|
9346
9344
|
this.originalZone = dt.zone;
|
|
9347
9345
|
}
|
|
9348
|
-
var intlOpts = _object_spread$
|
|
9346
|
+
var intlOpts = _object_spread$3$1({}, this.opts);
|
|
9349
9347
|
intlOpts.timeZone = intlOpts.timeZone || z;
|
|
9350
9348
|
this.dtf = getCachedDTF(intl, intlOpts);
|
|
9351
9349
|
}
|
|
@@ -9376,7 +9374,7 @@ function supportsFastNumbers(loc) {
|
|
|
9376
9374
|
locale: _this.dt.locale,
|
|
9377
9375
|
format: _this.opts.timeZoneName
|
|
9378
9376
|
});
|
|
9379
|
-
return _object_spread_props$
|
|
9377
|
+
return _object_spread_props$2$1(_object_spread$3$1({}, part), {
|
|
9380
9378
|
value: offsetName
|
|
9381
9379
|
});
|
|
9382
9380
|
} else {
|
|
@@ -9401,7 +9399,7 @@ function supportsFastNumbers(loc) {
|
|
|
9401
9399
|
*/ var PolyRelFormatter = /*#__PURE__*/ function() {
|
|
9402
9400
|
function PolyRelFormatter(intl, isEnglish, opts) {
|
|
9403
9401
|
_class_call_check$A$1(this, PolyRelFormatter);
|
|
9404
|
-
this.opts = _object_spread$
|
|
9402
|
+
this.opts = _object_spread$3$1({
|
|
9405
9403
|
style: "long"
|
|
9406
9404
|
}, opts);
|
|
9407
9405
|
if (!isEnglish && hasRelative()) {
|
|
@@ -9496,7 +9494,7 @@ var fallbackWeekSettings = {
|
|
|
9496
9494
|
key: "redefaultToEN",
|
|
9497
9495
|
value: function redefaultToEN() {
|
|
9498
9496
|
var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
9499
|
-
return this.clone(_object_spread_props$
|
|
9497
|
+
return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
|
|
9500
9498
|
defaultToEN: true
|
|
9501
9499
|
}));
|
|
9502
9500
|
}
|
|
@@ -9505,7 +9503,7 @@ var fallbackWeekSettings = {
|
|
|
9505
9503
|
key: "redefaultToSystem",
|
|
9506
9504
|
value: function redefaultToSystem() {
|
|
9507
9505
|
var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
9508
|
-
return this.clone(_object_spread_props$
|
|
9506
|
+
return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
|
|
9509
9507
|
defaultToEN: false
|
|
9510
9508
|
}));
|
|
9511
9509
|
}
|
|
@@ -10384,7 +10382,7 @@ function isoWeekdayToLocal(isoWeekday, startOfWeek) {
|
|
|
10384
10382
|
} else {
|
|
10385
10383
|
weekYear = year;
|
|
10386
10384
|
}
|
|
10387
|
-
return _object_spread$
|
|
10385
|
+
return _object_spread$3$1({
|
|
10388
10386
|
weekYear: weekYear,
|
|
10389
10387
|
weekNumber: weekNumber,
|
|
10390
10388
|
weekday: weekday
|
|
@@ -10404,7 +10402,7 @@ function weekToGregorian(weekData) {
|
|
|
10404
10402
|
year = weekYear;
|
|
10405
10403
|
}
|
|
10406
10404
|
var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
|
|
10407
|
-
return _object_spread$
|
|
10405
|
+
return _object_spread$3$1({
|
|
10408
10406
|
year: year,
|
|
10409
10407
|
month: month,
|
|
10410
10408
|
day: day
|
|
@@ -10413,7 +10411,7 @@ function weekToGregorian(weekData) {
|
|
|
10413
10411
|
function gregorianToOrdinal(gregData) {
|
|
10414
10412
|
var year = gregData.year, month = gregData.month, day = gregData.day;
|
|
10415
10413
|
var ordinal = computeOrdinal(year, month, day);
|
|
10416
|
-
return _object_spread$
|
|
10414
|
+
return _object_spread$3$1({
|
|
10417
10415
|
year: year,
|
|
10418
10416
|
ordinal: ordinal
|
|
10419
10417
|
}, timeObject(gregData));
|
|
@@ -10421,7 +10419,7 @@ function gregorianToOrdinal(gregData) {
|
|
|
10421
10419
|
function ordinalToGregorian(ordinalData) {
|
|
10422
10420
|
var year = ordinalData.year, ordinal = ordinalData.ordinal;
|
|
10423
10421
|
var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
|
|
10424
|
-
return _object_spread$
|
|
10422
|
+
return _object_spread$3$1({
|
|
10425
10423
|
year: year,
|
|
10426
10424
|
month: month,
|
|
10427
10425
|
day: day
|
|
@@ -10717,7 +10715,7 @@ function parseZoneInfo(ts, offsetFormat, locale) {
|
|
|
10717
10715
|
if (timeZone) {
|
|
10718
10716
|
intlOpts.timeZone = timeZone;
|
|
10719
10717
|
}
|
|
10720
|
-
var modified = _object_spread$
|
|
10718
|
+
var modified = _object_spread$3$1({
|
|
10721
10719
|
timeZoneName: offsetFormat
|
|
10722
10720
|
}, intlOpts);
|
|
10723
10721
|
var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function(m) {
|
|
@@ -11076,7 +11074,7 @@ var macroTokenToFormatOpts = {
|
|
|
11076
11074
|
if (this.systemLoc === null) {
|
|
11077
11075
|
this.systemLoc = this.loc.redefaultToSystem();
|
|
11078
11076
|
}
|
|
11079
|
-
var df = this.systemLoc.dtFormatter(dt, _object_spread$
|
|
11077
|
+
var df = this.systemLoc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
|
|
11080
11078
|
return df.format();
|
|
11081
11079
|
}
|
|
11082
11080
|
},
|
|
@@ -11084,7 +11082,7 @@ var macroTokenToFormatOpts = {
|
|
|
11084
11082
|
key: "dtFormatter",
|
|
11085
11083
|
value: function dtFormatter(dt) {
|
|
11086
11084
|
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
11087
|
-
return this.loc.dtFormatter(dt, _object_spread$
|
|
11085
|
+
return this.loc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
|
|
11088
11086
|
}
|
|
11089
11087
|
},
|
|
11090
11088
|
{
|
|
@@ -11120,7 +11118,7 @@ var macroTokenToFormatOpts = {
|
|
|
11120
11118
|
if (this.opts.forceSimple) {
|
|
11121
11119
|
return padStart(n, p);
|
|
11122
11120
|
}
|
|
11123
|
-
var opts = _object_spread$
|
|
11121
|
+
var opts = _object_spread$3$1({}, this.opts);
|
|
11124
11122
|
if (p > 0) {
|
|
11125
11123
|
opts.padTo = p;
|
|
11126
11124
|
}
|
|
@@ -11536,7 +11534,7 @@ function combineExtractors() {
|
|
|
11536
11534
|
var _param = _sliced_to_array$5$1(param, 3), mergedVals = _param[0], mergedZone = _param[1], cursor = _param[2];
|
|
11537
11535
|
var _ex = _sliced_to_array$5$1(ex(m, cursor), 3), val = _ex[0], zone = _ex[1], next = _ex[2];
|
|
11538
11536
|
return [
|
|
11539
|
-
_object_spread$
|
|
11537
|
+
_object_spread$3$1({}, mergedVals, val),
|
|
11540
11538
|
zone || mergedZone,
|
|
11541
11539
|
next
|
|
11542
11540
|
];
|
|
@@ -11847,7 +11845,7 @@ var lowOrderMatrix = {
|
|
|
11847
11845
|
seconds: {
|
|
11848
11846
|
milliseconds: 1000
|
|
11849
11847
|
}
|
|
11850
|
-
}, casualMatrix = _object_spread$
|
|
11848
|
+
}, casualMatrix = _object_spread$3$1({
|
|
11851
11849
|
years: {
|
|
11852
11850
|
quarters: 4,
|
|
11853
11851
|
months: 12,
|
|
@@ -11875,7 +11873,7 @@ var lowOrderMatrix = {
|
|
|
11875
11873
|
seconds: 30 * 24 * 60 * 60,
|
|
11876
11874
|
milliseconds: 30 * 24 * 60 * 60 * 1000
|
|
11877
11875
|
}
|
|
11878
|
-
}, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$
|
|
11876
|
+
}, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$3$1({
|
|
11879
11877
|
years: {
|
|
11880
11878
|
quarters: 4,
|
|
11881
11879
|
months: 12,
|
|
@@ -11922,7 +11920,7 @@ function clone$1$1(dur, alts) {
|
|
|
11922
11920
|
var clear = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
11923
11921
|
// deep merge for vals
|
|
11924
11922
|
var conf = {
|
|
11925
|
-
values: clear ? alts.values : _object_spread$
|
|
11923
|
+
values: clear ? alts.values : _object_spread$3$1({}, dur.values, alts.values || {}),
|
|
11926
11924
|
loc: dur.loc.clone(alts.loc),
|
|
11927
11925
|
conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,
|
|
11928
11926
|
matrix: alts.matrix || dur.matrix
|
|
@@ -12121,7 +12119,7 @@ function removeZeroes(vals) {
|
|
|
12121
12119
|
value: function toFormat(fmt) {
|
|
12122
12120
|
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12123
12121
|
// reverse-compat since 1.2; we always round down now, never up, and we do it by default
|
|
12124
|
-
var fmtOpts = _object_spread_props$
|
|
12122
|
+
var fmtOpts = _object_spread_props$2$1(_object_spread$3$1({}, opts), {
|
|
12125
12123
|
floor: opts.round !== false && opts.floor !== false
|
|
12126
12124
|
});
|
|
12127
12125
|
return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
|
|
@@ -12154,7 +12152,7 @@ function removeZeroes(vals) {
|
|
|
12154
12152
|
if (isUndefined$2(val) || val === 0 && !showZeros) {
|
|
12155
12153
|
return null;
|
|
12156
12154
|
}
|
|
12157
|
-
return _this.loc.numberFormatter(_object_spread_props$
|
|
12155
|
+
return _this.loc.numberFormatter(_object_spread_props$2$1(_object_spread$3$1({
|
|
12158
12156
|
style: "unit",
|
|
12159
12157
|
unitDisplay: "long"
|
|
12160
12158
|
}, opts), {
|
|
@@ -12163,7 +12161,7 @@ function removeZeroes(vals) {
|
|
|
12163
12161
|
}).filter(function(n) {
|
|
12164
12162
|
return n;
|
|
12165
12163
|
});
|
|
12166
|
-
return this.loc.listFormatter(_object_spread$
|
|
12164
|
+
return this.loc.listFormatter(_object_spread$3$1({
|
|
12167
12165
|
type: "conjunction",
|
|
12168
12166
|
style: opts.listStyle || "narrow"
|
|
12169
12167
|
}, opts)).format(l);
|
|
@@ -12177,7 +12175,7 @@ function removeZeroes(vals) {
|
|
|
12177
12175
|
*/ key: "toObject",
|
|
12178
12176
|
value: function toObject() {
|
|
12179
12177
|
if (!this.isValid) return {};
|
|
12180
|
-
return _object_spread$
|
|
12178
|
+
return _object_spread$3$1({}, this.values);
|
|
12181
12179
|
}
|
|
12182
12180
|
},
|
|
12183
12181
|
{
|
|
@@ -12230,7 +12228,7 @@ function removeZeroes(vals) {
|
|
|
12230
12228
|
if (!this.isValid) return null;
|
|
12231
12229
|
var millis = this.toMillis();
|
|
12232
12230
|
if (millis < 0 || millis >= 86400000) return null;
|
|
12233
|
-
opts = _object_spread_props$
|
|
12231
|
+
opts = _object_spread_props$2$1(_object_spread$3$1({
|
|
12234
12232
|
suppressMilliseconds: false,
|
|
12235
12233
|
suppressSeconds: false,
|
|
12236
12234
|
includePrefix: false,
|
|
@@ -12401,7 +12399,7 @@ function removeZeroes(vals) {
|
|
|
12401
12399
|
*/ key: "set",
|
|
12402
12400
|
value: function set(values) {
|
|
12403
12401
|
if (!this.isValid) return this;
|
|
12404
|
-
var mixed = _object_spread$
|
|
12402
|
+
var mixed = _object_spread$3$1({}, this.values, normalizeObject(values, Duration.normalizeUnit));
|
|
12405
12403
|
return clone$1$1(this, {
|
|
12406
12404
|
values: mixed
|
|
12407
12405
|
});
|
|
@@ -14012,7 +14010,7 @@ function diff(earlier, later, units, opts) {
|
|
|
14012
14010
|
});
|
|
14013
14011
|
if (lowerOrderUnits.length === 0) {
|
|
14014
14012
|
if (highWater < later) {
|
|
14015
|
-
highWater = cursor.plus(_define_property$
|
|
14013
|
+
highWater = cursor.plus(_define_property$5$1({}, lowestOrder, 1));
|
|
14016
14014
|
}
|
|
14017
14015
|
if (highWater !== cursor) {
|
|
14018
14016
|
results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);
|
|
@@ -14572,7 +14570,7 @@ function clone$2(inst, alts) {
|
|
|
14572
14570
|
loc: inst.loc,
|
|
14573
14571
|
invalid: inst.invalid
|
|
14574
14572
|
};
|
|
14575
|
-
return new DateTime(_object_spread_props$
|
|
14573
|
+
return new DateTime(_object_spread_props$2$1(_object_spread$3$1({}, current, alts), {
|
|
14576
14574
|
old: current
|
|
14577
14575
|
}));
|
|
14578
14576
|
}
|
|
@@ -14626,7 +14624,7 @@ function objToTS(obj, offset, zone) {
|
|
|
14626
14624
|
}
|
|
14627
14625
|
// create a new DT instance by adding a duration, adjusting for DSTs
|
|
14628
14626
|
function adjustTime(inst, dur) {
|
|
14629
|
-
var oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c = _object_spread_props$
|
|
14627
|
+
var oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c = _object_spread_props$2$1(_object_spread$3$1({}, inst.c), {
|
|
14630
14628
|
year: year,
|
|
14631
14629
|
month: month,
|
|
14632
14630
|
day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7
|
|
@@ -14657,7 +14655,7 @@ function adjustTime(inst, dur) {
|
|
|
14657
14655
|
function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
|
|
14658
14656
|
var setZone = opts.setZone, zone = opts.zone;
|
|
14659
14657
|
if (parsed && Object.keys(parsed).length !== 0 || parsedZone) {
|
|
14660
|
-
var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$
|
|
14658
|
+
var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$2$1(_object_spread$3$1({}, opts), {
|
|
14661
14659
|
zone: interpretationZone,
|
|
14662
14660
|
specificOffset: specificOffset
|
|
14663
14661
|
}));
|
|
@@ -15677,11 +15675,11 @@ function lastOpts(argList) {
|
|
|
15677
15675
|
}
|
|
15678
15676
|
var mixed;
|
|
15679
15677
|
if (settingWeekStuff) {
|
|
15680
|
-
mixed = weekToGregorian(_object_spread$
|
|
15678
|
+
mixed = weekToGregorian(_object_spread$3$1({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
|
|
15681
15679
|
} else if (!isUndefined$2(normalized.ordinal)) {
|
|
15682
|
-
mixed = ordinalToGregorian(_object_spread$
|
|
15680
|
+
mixed = ordinalToGregorian(_object_spread$3$1({}, gregorianToOrdinal(this.c), normalized));
|
|
15683
15681
|
} else {
|
|
15684
|
-
mixed = _object_spread$
|
|
15682
|
+
mixed = _object_spread$3$1({}, this.toObject(), normalized);
|
|
15685
15683
|
// if we didn't set the day but we ended up on an overflow date,
|
|
15686
15684
|
// use the last day of the right month
|
|
15687
15685
|
if (isUndefined$2(normalized.day)) {
|
|
@@ -15800,7 +15798,7 @@ function lastOpts(argList) {
|
|
|
15800
15798
|
* @return {DateTime}
|
|
15801
15799
|
*/ key: "endOf",
|
|
15802
15800
|
value: function endOf(unit, opts) {
|
|
15803
|
-
return this.isValid ? this.plus(_define_property$
|
|
15801
|
+
return this.isValid ? this.plus(_define_property$5$1({}, unit, 1)).startOf(unit, opts).minus(1) : this;
|
|
15804
15802
|
}
|
|
15805
15803
|
},
|
|
15806
15804
|
{
|
|
@@ -16128,7 +16126,7 @@ function lastOpts(argList) {
|
|
|
16128
16126
|
value: function toObject() {
|
|
16129
16127
|
var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
16130
16128
|
if (!this.isValid) return {};
|
|
16131
|
-
var base = _object_spread$
|
|
16129
|
+
var base = _object_spread$3$1({}, this.c);
|
|
16132
16130
|
if (opts.includeConfig) {
|
|
16133
16131
|
base.outputCalendar = this.outputCalendar;
|
|
16134
16132
|
base.numberingSystem = this.loc.numberingSystem;
|
|
@@ -16168,7 +16166,7 @@ function lastOpts(argList) {
|
|
|
16168
16166
|
if (!this.isValid || !otherDateTime.isValid) {
|
|
16169
16167
|
return Duration.invalid("created by diffing an invalid DateTime");
|
|
16170
16168
|
}
|
|
16171
|
-
var durOpts = _object_spread$
|
|
16169
|
+
var durOpts = _object_spread$3$1({
|
|
16172
16170
|
locale: this.locale,
|
|
16173
16171
|
numberingSystem: this.numberingSystem
|
|
16174
16172
|
}, opts);
|
|
@@ -16272,7 +16270,7 @@ function lastOpts(argList) {
|
|
|
16272
16270
|
units = options.unit;
|
|
16273
16271
|
unit = undefined;
|
|
16274
16272
|
}
|
|
16275
|
-
return diffRelative(base, this.plus(padding), _object_spread_props$
|
|
16273
|
+
return diffRelative(base, this.plus(padding), _object_spread_props$2$1(_object_spread$3$1({}, options), {
|
|
16276
16274
|
numeric: "always",
|
|
16277
16275
|
units: units,
|
|
16278
16276
|
unit: unit
|
|
@@ -16298,7 +16296,7 @@ function lastOpts(argList) {
|
|
|
16298
16296
|
if (!this.isValid) return null;
|
|
16299
16297
|
return diffRelative(options.base || DateTime.fromObject({}, {
|
|
16300
16298
|
zone: this.zone
|
|
16301
|
-
}), this, _object_spread_props$
|
|
16299
|
+
}), this, _object_spread_props$2$1(_object_spread$3$1({}, options), {
|
|
16302
16300
|
numeric: "auto",
|
|
16303
16301
|
units: [
|
|
16304
16302
|
"years",
|
|
@@ -22566,7 +22564,7 @@ function _create_class$r$1(Constructor, protoProps, staticProps) {
|
|
|
22566
22564
|
if (staticProps) _defineProperties$r$1(Constructor, staticProps);
|
|
22567
22565
|
return Constructor;
|
|
22568
22566
|
}
|
|
22569
|
-
function _define_property$
|
|
22567
|
+
function _define_property$4$1(obj, key, value) {
|
|
22570
22568
|
if (key in obj) {
|
|
22571
22569
|
Object.defineProperty(obj, key, {
|
|
22572
22570
|
value: value,
|
|
@@ -22619,7 +22617,7 @@ function _non_iterable_rest$2$1() {
|
|
|
22619
22617
|
function _non_iterable_spread$4$1() {
|
|
22620
22618
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22621
22619
|
}
|
|
22622
|
-
function _object_spread$
|
|
22620
|
+
function _object_spread$2$1(target) {
|
|
22623
22621
|
for(var i = 1; i < arguments.length; i++){
|
|
22624
22622
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
22625
22623
|
var ownKeys = Object.keys(source);
|
|
@@ -22629,12 +22627,12 @@ function _object_spread$1$1(target) {
|
|
|
22629
22627
|
}));
|
|
22630
22628
|
}
|
|
22631
22629
|
ownKeys.forEach(function(key) {
|
|
22632
|
-
_define_property$
|
|
22630
|
+
_define_property$4$1(target, key, source[key]);
|
|
22633
22631
|
});
|
|
22634
22632
|
}
|
|
22635
22633
|
return target;
|
|
22636
22634
|
}
|
|
22637
|
-
function ownKeys$
|
|
22635
|
+
function ownKeys$1$1(object, enumerableOnly) {
|
|
22638
22636
|
var keys = Object.keys(object);
|
|
22639
22637
|
if (Object.getOwnPropertySymbols) {
|
|
22640
22638
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -22642,12 +22640,12 @@ function ownKeys$O(object, enumerableOnly) {
|
|
|
22642
22640
|
}
|
|
22643
22641
|
return keys;
|
|
22644
22642
|
}
|
|
22645
|
-
function _object_spread_props$
|
|
22643
|
+
function _object_spread_props$1$1(target, source) {
|
|
22646
22644
|
source = source != null ? source : {};
|
|
22647
22645
|
if (Object.getOwnPropertyDescriptors) {
|
|
22648
22646
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
22649
22647
|
} else {
|
|
22650
|
-
ownKeys$
|
|
22648
|
+
ownKeys$1$1(Object(source)).forEach(function(key) {
|
|
22651
22649
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
22652
22650
|
});
|
|
22653
22651
|
}
|
|
@@ -22840,14 +22838,14 @@ function indent(str, spaces) {
|
|
|
22840
22838
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22841
22839
|
// match is required
|
|
22842
22840
|
if (!match) {
|
|
22843
|
-
return
|
|
22841
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22844
22842
|
v: nextMatch1
|
|
22845
22843
|
};
|
|
22846
22844
|
}
|
|
22847
22845
|
var token = match.token, offset = match.offset;
|
|
22848
22846
|
i1 += offset;
|
|
22849
22847
|
if (token === ' ') {
|
|
22850
|
-
return
|
|
22848
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22851
22849
|
}
|
|
22852
22850
|
tokens1 = _to_consumable_array$4$1(tokens1).concat([
|
|
22853
22851
|
token
|
|
@@ -22866,7 +22864,7 @@ function indent(str, spaces) {
|
|
|
22866
22864
|
if (contextKeys.some(function(el) {
|
|
22867
22865
|
return el.startsWith(name);
|
|
22868
22866
|
})) {
|
|
22869
|
-
return
|
|
22867
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22870
22868
|
}
|
|
22871
22869
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22872
22870
|
return el === name;
|
|
@@ -22885,9 +22883,9 @@ function indent(str, spaces) {
|
|
|
22885
22883
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22886
22884
|
return el.startsWith(name);
|
|
22887
22885
|
})) {
|
|
22888
|
-
return
|
|
22886
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22889
22887
|
}
|
|
22890
|
-
return
|
|
22888
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22891
22889
|
v: nextMatch1
|
|
22892
22890
|
};
|
|
22893
22891
|
};
|
|
@@ -22899,7 +22897,7 @@ function indent(str, spaces) {
|
|
|
22899
22897
|
}
|
|
22900
22898
|
}
|
|
22901
22899
|
var _obj;
|
|
22902
|
-
var identifiersMap = (_obj = {}, _define_property$
|
|
22900
|
+
var identifiersMap = (_obj = {}, _define_property$4$1(_obj, identifier, 'identifier'), _define_property$4$1(_obj, nameIdentifier, 'nameIdentifier'), _obj);
|
|
22903
22901
|
var identifiers$2 = new ExternalTokenizer(function(input, stack) {
|
|
22904
22902
|
LOG_PARSE_DEBUG && console.log('%s: T <identifier | nameIdentifier>', input.pos);
|
|
22905
22903
|
var nameMatch = parseName(input, stack.context);
|
|
@@ -22948,11 +22946,11 @@ var insertSemicolon = new ExternalTokenizer(function(input, stack) {
|
|
|
22948
22946
|
}
|
|
22949
22947
|
});
|
|
22950
22948
|
var _obj1;
|
|
22951
|
-
var prefixedContextStarts = (_obj1 = {}, _define_property$
|
|
22949
|
+
var prefixedContextStarts = (_obj1 = {}, _define_property$4$1(_obj1, functionInvocationStart, 'FunctionInvocation'), _define_property$4$1(_obj1, filterExpressionStart, 'FilterExpression'), _define_property$4$1(_obj1, pathExpressionStart, 'PathExpression'), _obj1);
|
|
22952
22950
|
var _obj2;
|
|
22953
|
-
var contextStarts = (_obj2 = {}, _define_property$
|
|
22951
|
+
var contextStarts = (_obj2 = {}, _define_property$4$1(_obj2, contextStart, 'Context'), _define_property$4$1(_obj2, functionDefinitionStart, 'FunctionDefinition'), _define_property$4$1(_obj2, forExpressionStart, 'ForExpression'), _define_property$4$1(_obj2, listStart, 'List'), _define_property$4$1(_obj2, ifExpressionStart, 'IfExpression'), _define_property$4$1(_obj2, quantifiedExpressionStart, 'QuantifiedExpression'), _obj2);
|
|
22954
22952
|
var _obj3;
|
|
22955
|
-
var contextEnds = (_obj3 = {}, _define_property$
|
|
22953
|
+
var contextEnds = (_obj3 = {}, _define_property$4$1(_obj3, Context$1, 'Context'), _define_property$4$1(_obj3, FunctionDefinition, 'FunctionDefinition'), _define_property$4$1(_obj3, ForExpression, 'ForExpression'), _define_property$4$1(_obj3, List, 'List'), _define_property$4$1(_obj3, IfExpression, 'IfExpression'), _define_property$4$1(_obj3, QuantifiedExpression, 'QuantifiedExpression'), _define_property$4$1(_obj3, PathExpression, 'PathExpression'), _define_property$4$1(_obj3, FunctionInvocation, 'FunctionInvocation'), _define_property$4$1(_obj3, FilterExpression, 'FilterExpression'), _define_property$4$1(_obj3, ArithmeticExpression, 'ArithmeticExpression'), _obj3);
|
|
22956
22954
|
/**
|
|
22957
22955
|
* A simple producer that retrievs a value from
|
|
22958
22956
|
* a given context. Used to lazily take things.
|
|
@@ -23040,7 +23038,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
|
23040
23038
|
*/ key: "set",
|
|
23041
23039
|
value: function set(key, value) {
|
|
23042
23040
|
var constructor = /** @type { typeof VariableContext } */ this.constructor;
|
|
23043
|
-
return constructor.of(_object_spread_props$
|
|
23041
|
+
return constructor.of(_object_spread_props$1$1(_object_spread$2$1({}, this.value), _define_property$4$1({}, key, value)));
|
|
23044
23042
|
}
|
|
23045
23043
|
},
|
|
23046
23044
|
{
|
|
@@ -23104,7 +23102,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
|
23104
23102
|
if ((typeof context === "undefined" ? "undefined" : _type_of$z$1(context)) !== 'object') {
|
|
23105
23103
|
return {};
|
|
23106
23104
|
}
|
|
23107
|
-
return _object_spread$
|
|
23105
|
+
return _object_spread$2$1({}, context);
|
|
23108
23106
|
}
|
|
23109
23107
|
},
|
|
23110
23108
|
{
|
|
@@ -23122,13 +23120,13 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
|
23122
23120
|
return reduce$1(this.__unwrap(other), function(merged, value, key) {
|
|
23123
23121
|
if (_instanceof$f$1(value, ValueProducer)) {
|
|
23124
23122
|
// keep value producers in tact
|
|
23125
|
-
return _object_spread_props$
|
|
23123
|
+
return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
|
|
23126
23124
|
}
|
|
23127
23125
|
value = _this.__unwrap(value);
|
|
23128
23126
|
if (has$2(merged, key)) {
|
|
23129
23127
|
value = _this.__merge(_this.__unwrap(merged[key]), value);
|
|
23130
23128
|
}
|
|
23131
|
-
return _object_spread_props$
|
|
23129
|
+
return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
|
|
23132
23130
|
}, this.__unwrap(context));
|
|
23133
23131
|
}
|
|
23134
23132
|
}
|
|
@@ -23347,7 +23345,7 @@ var Variables = /*#__PURE__*/ function() {
|
|
|
23347
23345
|
*/ key: "assign",
|
|
23348
23346
|
value: function assign() {
|
|
23349
23347
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
23350
|
-
return Variables.of(_object_spread$
|
|
23348
|
+
return Variables.of(_object_spread$2$1({}, this, options));
|
|
23351
23349
|
}
|
|
23352
23350
|
},
|
|
23353
23351
|
{
|
|
@@ -23362,7 +23360,7 @@ var Variables = /*#__PURE__*/ function() {
|
|
|
23362
23360
|
context: this.context,
|
|
23363
23361
|
parent: this.parent
|
|
23364
23362
|
};
|
|
23365
|
-
return Variables.of(_object_spread$
|
|
23363
|
+
return Variables.of(_object_spread$2$1({}, defaultOptions, options));
|
|
23366
23364
|
}
|
|
23367
23365
|
}
|
|
23368
23366
|
], [
|
|
@@ -23845,7 +23843,7 @@ function _create_class$q$1(Constructor, protoProps, staticProps) {
|
|
|
23845
23843
|
if (protoProps) _defineProperties$q$1(Constructor.prototype, protoProps);
|
|
23846
23844
|
return Constructor;
|
|
23847
23845
|
}
|
|
23848
|
-
function _define_property$
|
|
23846
|
+
function _define_property$3$1(obj, key, value) {
|
|
23849
23847
|
if (key in obj) {
|
|
23850
23848
|
Object.defineProperty(obj, key, {
|
|
23851
23849
|
value: value,
|
|
@@ -25152,7 +25150,7 @@ var builtins = {
|
|
|
25152
25150
|
if (key in context) {
|
|
25153
25151
|
return FALSE;
|
|
25154
25152
|
}
|
|
25155
|
-
return Object.assign(Object.assign({}, context), _define_property$
|
|
25153
|
+
return Object.assign(Object.assign({}, context), _define_property$3$1({}, entry.key, entry.value));
|
|
25156
25154
|
}, {});
|
|
25157
25155
|
if (context === FALSE) {
|
|
25158
25156
|
return null;
|
|
@@ -25205,7 +25203,7 @@ var builtins = {
|
|
|
25205
25203
|
return null;
|
|
25206
25204
|
}
|
|
25207
25205
|
}
|
|
25208
|
-
return Object.assign(Object.assign({}, context), _define_property$
|
|
25206
|
+
return Object.assign(Object.assign({}, context), _define_property$3$1({}, key, value));
|
|
25209
25207
|
}
|
|
25210
25208
|
function matches(a, b) {
|
|
25211
25209
|
return a === b;
|
|
@@ -25932,7 +25930,7 @@ function evalNode(node, input, args) {
|
|
|
25932
25930
|
return function(context) {
|
|
25933
25931
|
return args.slice(1, -1).reduce(function(obj, arg) {
|
|
25934
25932
|
var _arg = _sliced_to_array$1$1(arg(Object.assign(Object.assign({}, context), obj)), 2), key = _arg[0], value = _arg[1];
|
|
25935
|
-
return Object.assign(Object.assign({}, obj), _define_property$
|
|
25933
|
+
return Object.assign(Object.assign({}, obj), _define_property$3$1({}, key, value));
|
|
25936
25934
|
}, {});
|
|
25937
25935
|
};
|
|
25938
25936
|
case 'FunctionBody':
|
|
@@ -26429,7 +26427,7 @@ function extractValue(context, prop, _target) {
|
|
|
26429
26427
|
'range'
|
|
26430
26428
|
].includes(getType(target))) {
|
|
26431
26429
|
return target.map(function(t) {
|
|
26432
|
-
return _define_property$
|
|
26430
|
+
return _define_property$3$1({}, prop, t);
|
|
26433
26431
|
});
|
|
26434
26432
|
}
|
|
26435
26433
|
return null;
|
|
@@ -42893,7 +42891,7 @@ function _class_call_check$1$1(instance, Constructor) {
|
|
|
42893
42891
|
throw new TypeError("Cannot call a class as a function");
|
|
42894
42892
|
}
|
|
42895
42893
|
}
|
|
42896
|
-
function _define_property$
|
|
42894
|
+
function _define_property$2$1(obj, key, value) {
|
|
42897
42895
|
if (key in obj) {
|
|
42898
42896
|
Object.defineProperty(obj, key, {
|
|
42899
42897
|
value: value,
|
|
@@ -42973,7 +42971,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
42973
42971
|
_class_call_check$1$1(this, CelParser);
|
|
42974
42972
|
var _this;
|
|
42975
42973
|
_this = _super.call(this, allTokens);
|
|
42976
|
-
_define_property$
|
|
42974
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "expr", _this.RULE('expr', function() {
|
|
42977
42975
|
_this.SUBRULE(_this.conditionalOr, {
|
|
42978
42976
|
LABEL: 'conditionalOr'
|
|
42979
42977
|
});
|
|
@@ -42988,7 +42986,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
42988
42986
|
});
|
|
42989
42987
|
});
|
|
42990
42988
|
}));
|
|
42991
|
-
_define_property$
|
|
42989
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
|
|
42992
42990
|
_this.SUBRULE(_this.relation, {
|
|
42993
42991
|
LABEL: 'lhs'
|
|
42994
42992
|
});
|
|
@@ -42999,7 +42997,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
42999
42997
|
});
|
|
43000
42998
|
});
|
|
43001
42999
|
}));
|
|
43002
|
-
_define_property$
|
|
43000
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
|
|
43003
43001
|
_this.SUBRULE(_this.conditionalAnd, {
|
|
43004
43002
|
LABEL: 'lhs'
|
|
43005
43003
|
});
|
|
@@ -43010,7 +43008,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43010
43008
|
});
|
|
43011
43009
|
});
|
|
43012
43010
|
}));
|
|
43013
|
-
_define_property$
|
|
43011
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "relation", _this.RULE('relation', function() {
|
|
43014
43012
|
_this.SUBRULE(_this.addition, {
|
|
43015
43013
|
LABEL: 'lhs'
|
|
43016
43014
|
});
|
|
@@ -43021,7 +43019,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43021
43019
|
});
|
|
43022
43020
|
});
|
|
43023
43021
|
}));
|
|
43024
|
-
_define_property$
|
|
43022
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "addition", _this.RULE('addition', function() {
|
|
43025
43023
|
_this.SUBRULE(_this.multiplication, {
|
|
43026
43024
|
LABEL: 'lhs'
|
|
43027
43025
|
});
|
|
@@ -43032,7 +43030,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43032
43030
|
});
|
|
43033
43031
|
});
|
|
43034
43032
|
}));
|
|
43035
|
-
_define_property$
|
|
43033
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "multiplication", _this.RULE('multiplication', function() {
|
|
43036
43034
|
_this.SUBRULE(_this.unaryExpression, {
|
|
43037
43035
|
LABEL: 'lhs'
|
|
43038
43036
|
});
|
|
@@ -43043,13 +43041,13 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43043
43041
|
});
|
|
43044
43042
|
});
|
|
43045
43043
|
}));
|
|
43046
|
-
_define_property$
|
|
43044
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
|
|
43047
43045
|
_this.MANY(function() {
|
|
43048
43046
|
_this.CONSUME(UnaryOperator);
|
|
43049
43047
|
});
|
|
43050
43048
|
_this.SUBRULE(_this.atomicExpression);
|
|
43051
43049
|
}));
|
|
43052
|
-
_define_property$
|
|
43050
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
|
|
43053
43051
|
_this.CONSUME(OpenParenthesis, {
|
|
43054
43052
|
LABEL: 'open'
|
|
43055
43053
|
});
|
|
@@ -43058,7 +43056,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43058
43056
|
LABEL: 'close'
|
|
43059
43057
|
});
|
|
43060
43058
|
}));
|
|
43061
|
-
_define_property$
|
|
43059
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "listExpression", _this.RULE('listExpression', function() {
|
|
43062
43060
|
_this.CONSUME(OpenBracket);
|
|
43063
43061
|
_this.OPTION(function() {
|
|
43064
43062
|
_this.SUBRULE(_this.expr, {
|
|
@@ -43078,7 +43076,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43078
43076
|
});
|
|
43079
43077
|
});
|
|
43080
43078
|
}));
|
|
43081
|
-
_define_property$
|
|
43079
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
|
|
43082
43080
|
_this.CONSUME(OpenCurlyBracket);
|
|
43083
43081
|
_this.MANY(function() {
|
|
43084
43082
|
_this.SUBRULE(_this.mapKeyValues, {
|
|
@@ -43103,7 +43101,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43103
43101
|
]);
|
|
43104
43102
|
});
|
|
43105
43103
|
}));
|
|
43106
|
-
_define_property$
|
|
43104
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
|
|
43107
43105
|
_this.SUBRULE(_this.expr, {
|
|
43108
43106
|
LABEL: 'key'
|
|
43109
43107
|
});
|
|
@@ -43115,7 +43113,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43115
43113
|
_this.CONSUME(Comma);
|
|
43116
43114
|
});
|
|
43117
43115
|
}));
|
|
43118
|
-
_define_property$
|
|
43116
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
|
|
43119
43117
|
_this.CONSUME(Identifier);
|
|
43120
43118
|
_this.CONSUME(OpenParenthesis);
|
|
43121
43119
|
_this.OPTION(function() {
|
|
@@ -43131,7 +43129,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43131
43129
|
});
|
|
43132
43130
|
_this.CONSUME(CloseParenthesis);
|
|
43133
43131
|
}));
|
|
43134
|
-
_define_property$
|
|
43132
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
|
|
43135
43133
|
_this.CONSUME(Identifier);
|
|
43136
43134
|
_this.MANY(function() {
|
|
43137
43135
|
_this.OR([
|
|
@@ -43150,7 +43148,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43150
43148
|
]);
|
|
43151
43149
|
});
|
|
43152
43150
|
}));
|
|
43153
|
-
_define_property$
|
|
43151
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
|
|
43154
43152
|
_this.CONSUME(Dot);
|
|
43155
43153
|
_this.CONSUME(Identifier);
|
|
43156
43154
|
// Optional method call with arguments (for collection macros)
|
|
@@ -43170,12 +43168,12 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43170
43168
|
_this.CONSUME(CloseParenthesis);
|
|
43171
43169
|
});
|
|
43172
43170
|
}));
|
|
43173
|
-
_define_property$
|
|
43171
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
|
|
43174
43172
|
_this.CONSUME(OpenBracket);
|
|
43175
43173
|
_this.SUBRULE(_this.expr);
|
|
43176
43174
|
_this.CONSUME(CloseBracket);
|
|
43177
43175
|
}));
|
|
43178
|
-
_define_property$
|
|
43176
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
|
|
43179
43177
|
_this.OR([
|
|
43180
43178
|
{
|
|
43181
43179
|
ALT: function() {
|
|
@@ -43266,12 +43264,12 @@ function _assert_this_initialized$I(self1) {
|
|
|
43266
43264
|
}
|
|
43267
43265
|
return self1;
|
|
43268
43266
|
}
|
|
43269
|
-
function _class_call_check
|
|
43267
|
+
function _class_call_check$$(instance, Constructor) {
|
|
43270
43268
|
if (!(instance instanceof Constructor)) {
|
|
43271
43269
|
throw new TypeError("Cannot call a class as a function");
|
|
43272
43270
|
}
|
|
43273
43271
|
}
|
|
43274
|
-
function _defineProperties$
|
|
43272
|
+
function _defineProperties$U(target, props) {
|
|
43275
43273
|
for(var i = 0; i < props.length; i++){
|
|
43276
43274
|
var descriptor = props[i];
|
|
43277
43275
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -43280,11 +43278,11 @@ function _defineProperties$V(target, props) {
|
|
|
43280
43278
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
43281
43279
|
}
|
|
43282
43280
|
}
|
|
43283
|
-
function _create_class$
|
|
43284
|
-
if (protoProps) _defineProperties$
|
|
43281
|
+
function _create_class$U(Constructor, protoProps, staticProps) {
|
|
43282
|
+
if (protoProps) _defineProperties$U(Constructor.prototype, protoProps);
|
|
43285
43283
|
return Constructor;
|
|
43286
43284
|
}
|
|
43287
|
-
function _define_property$
|
|
43285
|
+
function _define_property$1$1(obj, key, value) {
|
|
43288
43286
|
if (key in obj) {
|
|
43289
43287
|
Object.defineProperty(obj, key, {
|
|
43290
43288
|
value: value,
|
|
@@ -43356,7 +43354,7 @@ function _non_iterable_rest$s() {
|
|
|
43356
43354
|
function _non_iterable_spread$T() {
|
|
43357
43355
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
43358
43356
|
}
|
|
43359
|
-
function _object_spread$
|
|
43357
|
+
function _object_spread$1$1(target) {
|
|
43360
43358
|
for(var i = 1; i < arguments.length; i++){
|
|
43361
43359
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
43362
43360
|
var ownKeys = Object.keys(source);
|
|
@@ -43366,7 +43364,7 @@ function _object_spread$16(target) {
|
|
|
43366
43364
|
}));
|
|
43367
43365
|
}
|
|
43368
43366
|
ownKeys.forEach(function(key) {
|
|
43369
|
-
_define_property$
|
|
43367
|
+
_define_property$1$1(target, key, source[key]);
|
|
43370
43368
|
});
|
|
43371
43369
|
}
|
|
43372
43370
|
return target;
|
|
@@ -43449,20 +43447,20 @@ var CelVisitor = /*#__PURE__*/ function(BaseCelVisitor) {
|
|
|
43449
43447
|
_inherits$I(CelVisitor, BaseCelVisitor);
|
|
43450
43448
|
var _super = _create_super$I(CelVisitor);
|
|
43451
43449
|
function CelVisitor(context, functions) {
|
|
43452
|
-
_class_call_check
|
|
43450
|
+
_class_call_check$$(this, CelVisitor);
|
|
43453
43451
|
var _this;
|
|
43454
43452
|
_this = _super.call(this);
|
|
43455
|
-
_define_property$
|
|
43453
|
+
_define_property$1$1(_assert_this_initialized$I(_this), "context", void 0);
|
|
43456
43454
|
/**
|
|
43457
43455
|
* Tracks the current mode of the visitor to handle special cases.
|
|
43458
|
-
*/ _define_property$
|
|
43459
|
-
_define_property$
|
|
43456
|
+
*/ _define_property$1$1(_assert_this_initialized$I(_this), "mode", Mode.normal);
|
|
43457
|
+
_define_property$1$1(_assert_this_initialized$I(_this), "functions", void 0);
|
|
43460
43458
|
_this.context = context || {};
|
|
43461
|
-
_this.functions = _object_spread$
|
|
43459
|
+
_this.functions = _object_spread$1$1({}, defaultFunctions, functions || {});
|
|
43462
43460
|
_this.validateVisitor();
|
|
43463
43461
|
return _this;
|
|
43464
43462
|
}
|
|
43465
|
-
_create_class$
|
|
43463
|
+
_create_class$U(CelVisitor, [
|
|
43466
43464
|
{
|
|
43467
43465
|
/**
|
|
43468
43466
|
* Checks if the given identifier is a collection macro.
|
|
@@ -44199,6 +44197,198 @@ function evaluate(expression, context, functions) {
|
|
|
44199
44197
|
}
|
|
44200
44198
|
return toAstVisitorInstance.visit(result.cst);
|
|
44201
44199
|
}
|
|
44200
|
+
// Latin-1 Supplement
|
|
44201
|
+
// upper case ranges
|
|
44202
|
+
// [À-ÖØ-ß]
|
|
44203
|
+
// lower case ranges
|
|
44204
|
+
// [à-öø-ÿ]
|
|
44205
|
+
var magicSplit = /^[a-zà-öø-ÿа-я]+|[A-ZÀ-ÖØ-ßА-Я][a-zà-öø-ÿа-я]+|[a-zà-öø-ÿа-я]+|[0-9]+|[A-ZÀ-ÖØ-ßА-Я]+(?![a-zà-öø-ÿа-я])/g;
|
|
44206
|
+
var spaceSplit = /\S+/g;
|
|
44207
|
+
/**
|
|
44208
|
+
* A string.matchAll function that will return an array of "string parts" and the indexes at which it split each part
|
|
44209
|
+
*/ function getPartsAndIndexes(string, splitRegex) {
|
|
44210
|
+
var result = {
|
|
44211
|
+
parts: [],
|
|
44212
|
+
prefixes: []
|
|
44213
|
+
};
|
|
44214
|
+
var matches = string.matchAll(splitRegex);
|
|
44215
|
+
var lastWordEndIndex = 0;
|
|
44216
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
44217
|
+
try {
|
|
44218
|
+
for(var _iterator = matches[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
44219
|
+
var match = _step.value;
|
|
44220
|
+
if (typeof match.index !== 'number') continue;
|
|
44221
|
+
var word = match[0];
|
|
44222
|
+
result.parts.push(word);
|
|
44223
|
+
var prefix = string.slice(lastWordEndIndex, match.index).trim();
|
|
44224
|
+
result.prefixes.push(prefix);
|
|
44225
|
+
lastWordEndIndex = match.index + word.length;
|
|
44226
|
+
}
|
|
44227
|
+
} catch (err) {
|
|
44228
|
+
_didIteratorError = true;
|
|
44229
|
+
_iteratorError = err;
|
|
44230
|
+
} finally{
|
|
44231
|
+
try {
|
|
44232
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
44233
|
+
_iterator.return();
|
|
44234
|
+
}
|
|
44235
|
+
} finally{
|
|
44236
|
+
if (_didIteratorError) {
|
|
44237
|
+
throw _iteratorError;
|
|
44238
|
+
}
|
|
44239
|
+
}
|
|
44240
|
+
}
|
|
44241
|
+
var tail = string.slice(lastWordEndIndex).trim();
|
|
44242
|
+
if (tail) {
|
|
44243
|
+
result.parts.push('');
|
|
44244
|
+
result.prefixes.push(tail);
|
|
44245
|
+
}
|
|
44246
|
+
return result;
|
|
44247
|
+
}
|
|
44248
|
+
/**
|
|
44249
|
+
* A function that splits a string on words and returns an array of words.
|
|
44250
|
+
* - It can prefix each word with a given character
|
|
44251
|
+
* - It can strip or keep special characters, this affects the logic for adding a prefix as well
|
|
44252
|
+
*/ function splitAndPrefix(string, options) {
|
|
44253
|
+
var _ref = options || {}, _ref_keepSpecialCharacters = _ref.keepSpecialCharacters, keepSpecialCharacters = _ref_keepSpecialCharacters === void 0 ? false : _ref_keepSpecialCharacters, keep = _ref.keep, _ref_prefix = _ref.prefix, prefix = _ref_prefix === void 0 ? '' : _ref_prefix;
|
|
44254
|
+
var normalString = string.trim().normalize('NFC');
|
|
44255
|
+
var hasSpaces = normalString.includes(' ');
|
|
44256
|
+
var split = hasSpaces ? spaceSplit : magicSplit;
|
|
44257
|
+
var partsAndIndexes = getPartsAndIndexes(normalString, split);
|
|
44258
|
+
return partsAndIndexes.parts.map(function(_part, i) {
|
|
44259
|
+
var foundPrefix = partsAndIndexes.prefixes[i] || '';
|
|
44260
|
+
var part = _part;
|
|
44261
|
+
if (keepSpecialCharacters === false) {
|
|
44262
|
+
if (keep) {
|
|
44263
|
+
part = part.normalize('NFD').replace(new RegExp("[^a-zA-Z\xd8\xdf\xf80-9".concat(keep.join(''), "]"), 'g'), '');
|
|
44264
|
+
}
|
|
44265
|
+
if (!keep) {
|
|
44266
|
+
part = part.normalize('NFD').replace(/[^a-zA-ZØßø0-9]/g, '');
|
|
44267
|
+
foundPrefix = '';
|
|
44268
|
+
}
|
|
44269
|
+
}
|
|
44270
|
+
if (keep && foundPrefix) {
|
|
44271
|
+
foundPrefix = foundPrefix.replace(new RegExp("[^".concat(keep.join(''), "]"), 'g'), '');
|
|
44272
|
+
}
|
|
44273
|
+
// the first word doesn't need a prefix, so only return the found prefix
|
|
44274
|
+
if (i === 0) {
|
|
44275
|
+
// console.log(`foundPrefix → `, foundPrefix)
|
|
44276
|
+
return foundPrefix + part;
|
|
44277
|
+
}
|
|
44278
|
+
if (!foundPrefix && !part) return '';
|
|
44279
|
+
if (!hasSpaces) {
|
|
44280
|
+
// return the found prefix OR fall back to a given prefix
|
|
44281
|
+
return (foundPrefix || prefix) + part;
|
|
44282
|
+
}
|
|
44283
|
+
// space based sentence was split on spaces, so only return found prefixes
|
|
44284
|
+
if (!foundPrefix && prefix.match(/\s/)) {
|
|
44285
|
+
// in this case we have no more found prefix, it was trimmed, but we're looking to add a space
|
|
44286
|
+
// so let's return that space
|
|
44287
|
+
return ' ' + part;
|
|
44288
|
+
}
|
|
44289
|
+
return (foundPrefix || prefix) + part;
|
|
44290
|
+
}).filter(Boolean);
|
|
44291
|
+
}
|
|
44292
|
+
/**
|
|
44293
|
+
* Capitalises a single word
|
|
44294
|
+
* @returns the word with the first character in uppercase and the rest in lowercase
|
|
44295
|
+
*/ function capitaliseWord(string) {
|
|
44296
|
+
var match = string.matchAll(magicSplit).next().value;
|
|
44297
|
+
var firstLetterIndex = match ? match.index : 0;
|
|
44298
|
+
return string.slice(0, firstLetterIndex + 1).toUpperCase() + string.slice(firstLetterIndex + 1).toLowerCase();
|
|
44299
|
+
}
|
|
44300
|
+
function _define_property$1m(obj, key, value) {
|
|
44301
|
+
if (key in obj) {
|
|
44302
|
+
Object.defineProperty(obj, key, {
|
|
44303
|
+
value: value,
|
|
44304
|
+
enumerable: true,
|
|
44305
|
+
configurable: true,
|
|
44306
|
+
writable: true
|
|
44307
|
+
});
|
|
44308
|
+
} else {
|
|
44309
|
+
obj[key] = value;
|
|
44310
|
+
}
|
|
44311
|
+
return obj;
|
|
44312
|
+
}
|
|
44313
|
+
function _object_spread$16(target) {
|
|
44314
|
+
for(var i = 1; i < arguments.length; i++){
|
|
44315
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
44316
|
+
var ownKeys = Object.keys(source);
|
|
44317
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
44318
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
44319
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
44320
|
+
}));
|
|
44321
|
+
}
|
|
44322
|
+
ownKeys.forEach(function(key) {
|
|
44323
|
+
_define_property$1m(target, key, source[key]);
|
|
44324
|
+
});
|
|
44325
|
+
}
|
|
44326
|
+
return target;
|
|
44327
|
+
}
|
|
44328
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
44329
|
+
var keys = Object.keys(object);
|
|
44330
|
+
if (Object.getOwnPropertySymbols) {
|
|
44331
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
44332
|
+
keys.push.apply(keys, symbols);
|
|
44333
|
+
}
|
|
44334
|
+
return keys;
|
|
44335
|
+
}
|
|
44336
|
+
function _object_spread_props$O(target, source) {
|
|
44337
|
+
source = source != null ? source : {};
|
|
44338
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
44339
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
44340
|
+
} else {
|
|
44341
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
44342
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44343
|
+
});
|
|
44344
|
+
}
|
|
44345
|
+
return target;
|
|
44346
|
+
}
|
|
44347
|
+
/**
|
|
44348
|
+
* # 🐪 camelCase
|
|
44349
|
+
* converts a string to camelCase
|
|
44350
|
+
* - first lowercase then all capitalised
|
|
44351
|
+
* - *strips away* special characters by default
|
|
44352
|
+
*
|
|
44353
|
+
* @example
|
|
44354
|
+
* camelCase('$catDog') === 'catDog'
|
|
44355
|
+
* @example
|
|
44356
|
+
* camelCase('$catDog', { keepSpecialCharacters: true }) === '$catDog'
|
|
44357
|
+
*/ function camelCase$1(string, options) {
|
|
44358
|
+
return splitAndPrefix(string, options).reduce(function(result, word, index) {
|
|
44359
|
+
return index === 0 || !(word[0] || '').match(magicSplit) ? result + word.toLowerCase() : result + capitaliseWord(word);
|
|
44360
|
+
}, '');
|
|
44361
|
+
}
|
|
44362
|
+
/**
|
|
44363
|
+
* # 🥙 kebab-case
|
|
44364
|
+
* converts a string to kebab-case
|
|
44365
|
+
* - hyphenated lowercase
|
|
44366
|
+
* - *strips away* special characters by default
|
|
44367
|
+
*
|
|
44368
|
+
* @example
|
|
44369
|
+
* kebabCase('$catDog') === 'cat-dog'
|
|
44370
|
+
* @example
|
|
44371
|
+
* kebabCase('$catDog', { keepSpecialCharacters: true }) === '$cat-dog'
|
|
44372
|
+
*/ function kebabCase(string, options) {
|
|
44373
|
+
return splitAndPrefix(string, _object_spread_props$O(_object_spread$16({}, options), {
|
|
44374
|
+
prefix: '-'
|
|
44375
|
+
})).join('').toLowerCase();
|
|
44376
|
+
}
|
|
44377
|
+
/**
|
|
44378
|
+
* # 🐍 snake_case
|
|
44379
|
+
* converts a string to snake_case
|
|
44380
|
+
* - underscored lowercase
|
|
44381
|
+
* - *strips away* special characters by default
|
|
44382
|
+
*
|
|
44383
|
+
* @example
|
|
44384
|
+
* snakeCase('$catDog') === 'cat_dog'
|
|
44385
|
+
* @example
|
|
44386
|
+
* snakeCase('$catDog', { keepSpecialCharacters: true }) === '$cat_dog'
|
|
44387
|
+
*/ function snakeCase$1(string, options) {
|
|
44388
|
+
return splitAndPrefix(string, _object_spread_props$O(_object_spread$16({}, options), {
|
|
44389
|
+
prefix: '_'
|
|
44390
|
+
})).join('').toLowerCase();
|
|
44391
|
+
}
|
|
44202
44392
|
const Handlebars = handlebars_min || HandlebarsNamespace;
|
|
44203
44393
|
Handlebars.registerHelper('JSONstringify', function(value) {
|
|
44204
44394
|
return JSON.stringify(value);
|
|
@@ -44723,12 +44913,12 @@ function _array_with_holes$r(arr) {
|
|
|
44723
44913
|
function _array_without_holes$S(arr) {
|
|
44724
44914
|
if (Array.isArray(arr)) return _array_like_to_array$11(arr);
|
|
44725
44915
|
}
|
|
44726
|
-
function _class_call_check
|
|
44916
|
+
function _class_call_check$_(instance, Constructor) {
|
|
44727
44917
|
if (!(instance instanceof Constructor)) {
|
|
44728
44918
|
throw new TypeError("Cannot call a class as a function");
|
|
44729
44919
|
}
|
|
44730
44920
|
}
|
|
44731
|
-
function _defineProperties$
|
|
44921
|
+
function _defineProperties$T(target, props) {
|
|
44732
44922
|
for(var i = 0; i < props.length; i++){
|
|
44733
44923
|
var descriptor = props[i];
|
|
44734
44924
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -44737,9 +44927,9 @@ function _defineProperties$U(target, props) {
|
|
|
44737
44927
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
44738
44928
|
}
|
|
44739
44929
|
}
|
|
44740
|
-
function _create_class$
|
|
44741
|
-
if (protoProps) _defineProperties$
|
|
44742
|
-
if (staticProps) _defineProperties$
|
|
44930
|
+
function _create_class$T(Constructor, protoProps, staticProps) {
|
|
44931
|
+
if (protoProps) _defineProperties$T(Constructor.prototype, protoProps);
|
|
44932
|
+
if (staticProps) _defineProperties$T(Constructor, staticProps);
|
|
44743
44933
|
return Constructor;
|
|
44744
44934
|
}
|
|
44745
44935
|
function _define_property$1k(obj, key, value) {
|
|
@@ -44913,7 +45103,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
44913
45103
|
for(var _len = arguments.length, _args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
44914
45104
|
_args[_key - 1] = arguments[_key];
|
|
44915
45105
|
}
|
|
44916
|
-
_class_call_check
|
|
45106
|
+
_class_call_check$_(this, Serializable);
|
|
44917
45107
|
_define_property$1k(this, "lc_serializable", false);
|
|
44918
45108
|
_define_property$1k(this, "lc_kwargs", void 0);
|
|
44919
45109
|
if (this.lc_serializable_keys !== void 0) this.lc_kwargs = Object.fromEntries(Object.entries(kwargs || {}).filter(function(param) {
|
|
@@ -44923,7 +45113,7 @@ var Serializable = /*#__PURE__*/ function() {
|
|
|
44923
45113
|
}));
|
|
44924
45114
|
else this.lc_kwargs = kwargs !== null && kwargs !== void 0 ? kwargs : {};
|
|
44925
45115
|
}
|
|
44926
|
-
_create_class$
|
|
45116
|
+
_create_class$T(Serializable, [
|
|
44927
45117
|
{
|
|
44928
45118
|
key: "lc_id",
|
|
44929
45119
|
get: /**
|
|
@@ -47382,12 +47572,12 @@ function _assert_this_initialized$H(self) {
|
|
|
47382
47572
|
}
|
|
47383
47573
|
return self;
|
|
47384
47574
|
}
|
|
47385
|
-
function _class_call_check$
|
|
47575
|
+
function _class_call_check$Z(instance, Constructor) {
|
|
47386
47576
|
if (!(instance instanceof Constructor)) {
|
|
47387
47577
|
throw new TypeError("Cannot call a class as a function");
|
|
47388
47578
|
}
|
|
47389
47579
|
}
|
|
47390
|
-
function _defineProperties$
|
|
47580
|
+
function _defineProperties$S(target, props) {
|
|
47391
47581
|
for(var i = 0; i < props.length; i++){
|
|
47392
47582
|
var descriptor = props[i];
|
|
47393
47583
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -47396,9 +47586,9 @@ function _defineProperties$T(target, props) {
|
|
|
47396
47586
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
47397
47587
|
}
|
|
47398
47588
|
}
|
|
47399
|
-
function _create_class$
|
|
47400
|
-
if (protoProps) _defineProperties$
|
|
47401
|
-
if (staticProps) _defineProperties$
|
|
47589
|
+
function _create_class$S(Constructor, protoProps, staticProps) {
|
|
47590
|
+
if (protoProps) _defineProperties$S(Constructor.prototype, protoProps);
|
|
47591
|
+
if (staticProps) _defineProperties$S(Constructor, staticProps);
|
|
47402
47592
|
return Constructor;
|
|
47403
47593
|
}
|
|
47404
47594
|
function _define_property$1h(obj, key, value) {
|
|
@@ -47654,7 +47844,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
47654
47844
|
_inherits$H(_class, Serializable);
|
|
47655
47845
|
var _super = _create_super$H(_class);
|
|
47656
47846
|
function _class(arg) {
|
|
47657
|
-
_class_call_check$
|
|
47847
|
+
_class_call_check$Z(this, _class);
|
|
47658
47848
|
var _this;
|
|
47659
47849
|
var fields = typeof arg === "string" || Array.isArray(arg) ? {
|
|
47660
47850
|
content: arg
|
|
@@ -47691,7 +47881,7 @@ function stringifyWithDepthLimit(obj, depthLimit) {
|
|
|
47691
47881
|
_this.id = fields.id;
|
|
47692
47882
|
return _this;
|
|
47693
47883
|
}
|
|
47694
|
-
_create_class$
|
|
47884
|
+
_create_class$S(_class, [
|
|
47695
47885
|
{
|
|
47696
47886
|
key: "lc_aliases",
|
|
47697
47887
|
get: function get() {
|
|
@@ -47927,10 +48117,10 @@ function _mergeObj(left, right) {
|
|
|
47927
48117
|
_inherits$H(BaseMessageChunk, BaseMessage);
|
|
47928
48118
|
var _super = _create_super$H(BaseMessageChunk);
|
|
47929
48119
|
function BaseMessageChunk() {
|
|
47930
|
-
_class_call_check$
|
|
48120
|
+
_class_call_check$Z(this, BaseMessageChunk);
|
|
47931
48121
|
return _super.apply(this, arguments);
|
|
47932
48122
|
}
|
|
47933
|
-
_create_class$
|
|
48123
|
+
_create_class$S(BaseMessageChunk, null, [
|
|
47934
48124
|
{
|
|
47935
48125
|
key: "isInstance",
|
|
47936
48126
|
value: function isInstance(obj) {
|
|
@@ -48032,12 +48222,12 @@ function _assert_this_initialized$G(self) {
|
|
|
48032
48222
|
}
|
|
48033
48223
|
return self;
|
|
48034
48224
|
}
|
|
48035
|
-
function _class_call_check$
|
|
48225
|
+
function _class_call_check$Y(instance, Constructor) {
|
|
48036
48226
|
if (!(instance instanceof Constructor)) {
|
|
48037
48227
|
throw new TypeError("Cannot call a class as a function");
|
|
48038
48228
|
}
|
|
48039
48229
|
}
|
|
48040
|
-
function _defineProperties$
|
|
48230
|
+
function _defineProperties$R(target, props) {
|
|
48041
48231
|
for(var i = 0; i < props.length; i++){
|
|
48042
48232
|
var descriptor = props[i];
|
|
48043
48233
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -48046,9 +48236,9 @@ function _defineProperties$S(target, props) {
|
|
|
48046
48236
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
48047
48237
|
}
|
|
48048
48238
|
}
|
|
48049
|
-
function _create_class$
|
|
48050
|
-
if (protoProps) _defineProperties$
|
|
48051
|
-
if (staticProps) _defineProperties$
|
|
48239
|
+
function _create_class$R(Constructor, protoProps, staticProps) {
|
|
48240
|
+
if (protoProps) _defineProperties$R(Constructor.prototype, protoProps);
|
|
48241
|
+
if (staticProps) _defineProperties$R(Constructor, staticProps);
|
|
48052
48242
|
return Constructor;
|
|
48053
48243
|
}
|
|
48054
48244
|
function _define_property$1f(obj, key, value) {
|
|
@@ -48212,7 +48402,7 @@ function isDirectToolOutput(x) {
|
|
|
48212
48402
|
_inherits$G(ToolMessage, BaseMessage);
|
|
48213
48403
|
var _super = _create_super$G(ToolMessage);
|
|
48214
48404
|
function ToolMessage(fields, tool_call_id, name) {
|
|
48215
|
-
_class_call_check$
|
|
48405
|
+
_class_call_check$Y(this, ToolMessage);
|
|
48216
48406
|
var _this;
|
|
48217
48407
|
var toolMessageFields = typeof fields === "string" || Array.isArray(fields) ? {
|
|
48218
48408
|
content: fields,
|
|
@@ -48241,7 +48431,7 @@ function isDirectToolOutput(x) {
|
|
|
48241
48431
|
_this.metadata = toolMessageFields.metadata;
|
|
48242
48432
|
return _this;
|
|
48243
48433
|
}
|
|
48244
|
-
_create_class$
|
|
48434
|
+
_create_class$R(ToolMessage, [
|
|
48245
48435
|
{
|
|
48246
48436
|
key: "lc_aliases",
|
|
48247
48437
|
get: function get() {
|
|
@@ -48282,7 +48472,7 @@ function isDirectToolOutput(x) {
|
|
|
48282
48472
|
_inherits$G(ToolMessageChunk, BaseMessageChunk);
|
|
48283
48473
|
var _super = _create_super$G(ToolMessageChunk);
|
|
48284
48474
|
function ToolMessageChunk(fields) {
|
|
48285
|
-
_class_call_check$
|
|
48475
|
+
_class_call_check$Y(this, ToolMessageChunk);
|
|
48286
48476
|
var _this;
|
|
48287
48477
|
_this = _super.call(this, fields);
|
|
48288
48478
|
_define_property$1f(_assert_this_initialized$G(_this), "type", "tool");
|
|
@@ -48303,7 +48493,7 @@ function isDirectToolOutput(x) {
|
|
|
48303
48493
|
_this.status = fields.status;
|
|
48304
48494
|
return _this;
|
|
48305
48495
|
}
|
|
48306
|
-
_create_class$
|
|
48496
|
+
_create_class$R(ToolMessageChunk, [
|
|
48307
48497
|
{
|
|
48308
48498
|
key: "concat",
|
|
48309
48499
|
value: function concat(chunk) {
|
|
@@ -49696,12 +49886,12 @@ function _assert_this_initialized$F(self) {
|
|
|
49696
49886
|
}
|
|
49697
49887
|
return self;
|
|
49698
49888
|
}
|
|
49699
|
-
function _class_call_check$
|
|
49889
|
+
function _class_call_check$X(instance, Constructor) {
|
|
49700
49890
|
if (!(instance instanceof Constructor)) {
|
|
49701
49891
|
throw new TypeError("Cannot call a class as a function");
|
|
49702
49892
|
}
|
|
49703
49893
|
}
|
|
49704
|
-
function _defineProperties$
|
|
49894
|
+
function _defineProperties$Q(target, props) {
|
|
49705
49895
|
for(var i = 0; i < props.length; i++){
|
|
49706
49896
|
var descriptor = props[i];
|
|
49707
49897
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -49710,9 +49900,9 @@ function _defineProperties$R(target, props) {
|
|
|
49710
49900
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
49711
49901
|
}
|
|
49712
49902
|
}
|
|
49713
|
-
function _create_class$
|
|
49714
|
-
if (protoProps) _defineProperties$
|
|
49715
|
-
if (staticProps) _defineProperties$
|
|
49903
|
+
function _create_class$Q(Constructor, protoProps, staticProps) {
|
|
49904
|
+
if (protoProps) _defineProperties$Q(Constructor.prototype, protoProps);
|
|
49905
|
+
if (staticProps) _defineProperties$Q(Constructor, staticProps);
|
|
49716
49906
|
return Constructor;
|
|
49717
49907
|
}
|
|
49718
49908
|
function _define_property$1d(obj, key, value) {
|
|
@@ -49897,7 +50087,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
49897
50087
|
_inherits$F(AIMessage, BaseMessage);
|
|
49898
50088
|
var _super = _create_super$F(AIMessage);
|
|
49899
50089
|
function AIMessage(fields) {
|
|
49900
|
-
_class_call_check$
|
|
50090
|
+
_class_call_check$X(this, AIMessage);
|
|
49901
50091
|
var _this;
|
|
49902
50092
|
var initParams;
|
|
49903
50093
|
if (typeof fields === "string" || Array.isArray(fields)) initParams = {
|
|
@@ -49978,7 +50168,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
49978
50168
|
_this.usage_metadata = initParams.usage_metadata;
|
|
49979
50169
|
return _this;
|
|
49980
50170
|
}
|
|
49981
|
-
_create_class$
|
|
50171
|
+
_create_class$Q(AIMessage, [
|
|
49982
50172
|
{
|
|
49983
50173
|
key: "lc_aliases",
|
|
49984
50174
|
get: function get() {
|
|
@@ -50059,7 +50249,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
50059
50249
|
_inherits$F(AIMessageChunk, BaseMessageChunk);
|
|
50060
50250
|
var _super = _create_super$F(AIMessageChunk);
|
|
50061
50251
|
function AIMessageChunk(fields) {
|
|
50062
|
-
_class_call_check$
|
|
50252
|
+
_class_call_check$X(this, AIMessageChunk);
|
|
50063
50253
|
var _this;
|
|
50064
50254
|
var initParams;
|
|
50065
50255
|
var _fields_tool_calls;
|
|
@@ -50161,7 +50351,7 @@ var AIMessage = /*#__PURE__*/ function(BaseMessage) {
|
|
|
50161
50351
|
_this.usage_metadata = initParams.usage_metadata;
|
|
50162
50352
|
return _this;
|
|
50163
50353
|
}
|
|
50164
|
-
_create_class$
|
|
50354
|
+
_create_class$Q(AIMessageChunk, [
|
|
50165
50355
|
{
|
|
50166
50356
|
key: "lc_aliases",
|
|
50167
50357
|
get: function get() {
|
|
@@ -50272,12 +50462,12 @@ function _assert_this_initialized$E(self) {
|
|
|
50272
50462
|
}
|
|
50273
50463
|
return self;
|
|
50274
50464
|
}
|
|
50275
|
-
function _class_call_check$
|
|
50465
|
+
function _class_call_check$W(instance, Constructor) {
|
|
50276
50466
|
if (!(instance instanceof Constructor)) {
|
|
50277
50467
|
throw new TypeError("Cannot call a class as a function");
|
|
50278
50468
|
}
|
|
50279
50469
|
}
|
|
50280
|
-
function _defineProperties$
|
|
50470
|
+
function _defineProperties$P(target, props) {
|
|
50281
50471
|
for(var i = 0; i < props.length; i++){
|
|
50282
50472
|
var descriptor = props[i];
|
|
50283
50473
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -50286,9 +50476,9 @@ function _defineProperties$Q(target, props) {
|
|
|
50286
50476
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
50287
50477
|
}
|
|
50288
50478
|
}
|
|
50289
|
-
function _create_class$
|
|
50290
|
-
if (protoProps) _defineProperties$
|
|
50291
|
-
if (staticProps) _defineProperties$
|
|
50479
|
+
function _create_class$P(Constructor, protoProps, staticProps) {
|
|
50480
|
+
if (protoProps) _defineProperties$P(Constructor.prototype, protoProps);
|
|
50481
|
+
if (staticProps) _defineProperties$P(Constructor, staticProps);
|
|
50292
50482
|
return Constructor;
|
|
50293
50483
|
}
|
|
50294
50484
|
function _define_property$1c(obj, key, value) {
|
|
@@ -50428,7 +50618,7 @@ function _create_super$E(Derived) {
|
|
|
50428
50618
|
_inherits$E(ChatMessage, BaseMessage);
|
|
50429
50619
|
var _super = _create_super$E(ChatMessage);
|
|
50430
50620
|
function ChatMessage(fields, role) {
|
|
50431
|
-
_class_call_check$
|
|
50621
|
+
_class_call_check$W(this, ChatMessage);
|
|
50432
50622
|
var _this;
|
|
50433
50623
|
if (typeof fields === "string" || Array.isArray(fields)) fields = {
|
|
50434
50624
|
content: fields,
|
|
@@ -50440,7 +50630,7 @@ function _create_super$E(Derived) {
|
|
|
50440
50630
|
_this.role = fields.role;
|
|
50441
50631
|
return _this;
|
|
50442
50632
|
}
|
|
50443
|
-
_create_class$
|
|
50633
|
+
_create_class$P(ChatMessage, [
|
|
50444
50634
|
{
|
|
50445
50635
|
key: "_printableFields",
|
|
50446
50636
|
get: function get() {
|
|
@@ -50478,7 +50668,7 @@ function _create_super$E(Derived) {
|
|
|
50478
50668
|
_inherits$E(ChatMessageChunk, BaseMessageChunk);
|
|
50479
50669
|
var _super = _create_super$E(ChatMessageChunk);
|
|
50480
50670
|
function ChatMessageChunk(fields, role) {
|
|
50481
|
-
_class_call_check$
|
|
50671
|
+
_class_call_check$W(this, ChatMessageChunk);
|
|
50482
50672
|
var _this;
|
|
50483
50673
|
if (typeof fields === "string" || Array.isArray(fields)) fields = {
|
|
50484
50674
|
content: fields,
|
|
@@ -50490,7 +50680,7 @@ function _create_super$E(Derived) {
|
|
|
50490
50680
|
_this.role = fields.role;
|
|
50491
50681
|
return _this;
|
|
50492
50682
|
}
|
|
50493
|
-
_create_class$
|
|
50683
|
+
_create_class$P(ChatMessageChunk, [
|
|
50494
50684
|
{
|
|
50495
50685
|
key: "concat",
|
|
50496
50686
|
value: function concat(chunk) {
|
|
@@ -50546,12 +50736,12 @@ function _assert_this_initialized$D(self) {
|
|
|
50546
50736
|
}
|
|
50547
50737
|
return self;
|
|
50548
50738
|
}
|
|
50549
|
-
function _class_call_check$
|
|
50739
|
+
function _class_call_check$V(instance, Constructor) {
|
|
50550
50740
|
if (!(instance instanceof Constructor)) {
|
|
50551
50741
|
throw new TypeError("Cannot call a class as a function");
|
|
50552
50742
|
}
|
|
50553
50743
|
}
|
|
50554
|
-
function _defineProperties$
|
|
50744
|
+
function _defineProperties$O(target, props) {
|
|
50555
50745
|
for(var i = 0; i < props.length; i++){
|
|
50556
50746
|
var descriptor = props[i];
|
|
50557
50747
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -50560,9 +50750,9 @@ function _defineProperties$P(target, props) {
|
|
|
50560
50750
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
50561
50751
|
}
|
|
50562
50752
|
}
|
|
50563
|
-
function _create_class$
|
|
50564
|
-
if (protoProps) _defineProperties$
|
|
50565
|
-
if (staticProps) _defineProperties$
|
|
50753
|
+
function _create_class$O(Constructor, protoProps, staticProps) {
|
|
50754
|
+
if (protoProps) _defineProperties$O(Constructor.prototype, protoProps);
|
|
50755
|
+
if (staticProps) _defineProperties$O(Constructor, staticProps);
|
|
50566
50756
|
return Constructor;
|
|
50567
50757
|
}
|
|
50568
50758
|
function _define_property$1b(obj, key, value) {
|
|
@@ -50645,7 +50835,7 @@ function _create_super$D(Derived) {
|
|
|
50645
50835
|
_inherits$D(FunctionMessage, BaseMessage);
|
|
50646
50836
|
var _super = _create_super$D(FunctionMessage);
|
|
50647
50837
|
function FunctionMessage(fields) {
|
|
50648
|
-
_class_call_check$
|
|
50838
|
+
_class_call_check$V(this, FunctionMessage);
|
|
50649
50839
|
var _this;
|
|
50650
50840
|
_this = _super.call(this, fields);
|
|
50651
50841
|
_define_property$1b(_assert_this_initialized$D(_this), "type", "function");
|
|
@@ -50653,7 +50843,7 @@ function _create_super$D(Derived) {
|
|
|
50653
50843
|
_this.name = fields.name;
|
|
50654
50844
|
return _this;
|
|
50655
50845
|
}
|
|
50656
|
-
_create_class$
|
|
50846
|
+
_create_class$O(FunctionMessage, null, [
|
|
50657
50847
|
{
|
|
50658
50848
|
key: "lc_name",
|
|
50659
50849
|
value: function lc_name() {
|
|
@@ -50670,13 +50860,13 @@ function _create_super$D(Derived) {
|
|
|
50670
50860
|
_inherits$D(FunctionMessageChunk, BaseMessageChunk);
|
|
50671
50861
|
var _super = _create_super$D(FunctionMessageChunk);
|
|
50672
50862
|
function FunctionMessageChunk() {
|
|
50673
|
-
_class_call_check$
|
|
50863
|
+
_class_call_check$V(this, FunctionMessageChunk);
|
|
50674
50864
|
var _this;
|
|
50675
50865
|
_this = _super.apply(this, arguments);
|
|
50676
50866
|
_define_property$1b(_assert_this_initialized$D(_this), "type", "function");
|
|
50677
50867
|
return _this;
|
|
50678
50868
|
}
|
|
50679
|
-
_create_class$
|
|
50869
|
+
_create_class$O(FunctionMessageChunk, [
|
|
50680
50870
|
{
|
|
50681
50871
|
key: "concat",
|
|
50682
50872
|
value: function concat(chunk) {
|
|
@@ -50714,12 +50904,12 @@ function _assert_this_initialized$C(self) {
|
|
|
50714
50904
|
}
|
|
50715
50905
|
return self;
|
|
50716
50906
|
}
|
|
50717
|
-
function _class_call_check$
|
|
50907
|
+
function _class_call_check$U(instance, Constructor) {
|
|
50718
50908
|
if (!(instance instanceof Constructor)) {
|
|
50719
50909
|
throw new TypeError("Cannot call a class as a function");
|
|
50720
50910
|
}
|
|
50721
50911
|
}
|
|
50722
|
-
function _defineProperties$
|
|
50912
|
+
function _defineProperties$N(target, props) {
|
|
50723
50913
|
for(var i = 0; i < props.length; i++){
|
|
50724
50914
|
var descriptor = props[i];
|
|
50725
50915
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -50728,9 +50918,9 @@ function _defineProperties$O(target, props) {
|
|
|
50728
50918
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
50729
50919
|
}
|
|
50730
50920
|
}
|
|
50731
|
-
function _create_class$
|
|
50732
|
-
if (protoProps) _defineProperties$
|
|
50733
|
-
if (staticProps) _defineProperties$
|
|
50921
|
+
function _create_class$N(Constructor, protoProps, staticProps) {
|
|
50922
|
+
if (protoProps) _defineProperties$N(Constructor.prototype, protoProps);
|
|
50923
|
+
if (staticProps) _defineProperties$N(Constructor, staticProps);
|
|
50734
50924
|
return Constructor;
|
|
50735
50925
|
}
|
|
50736
50926
|
function _define_property$1a(obj, key, value) {
|
|
@@ -50836,13 +51026,13 @@ function _create_super$C(Derived) {
|
|
|
50836
51026
|
_inherits$C(HumanMessage, BaseMessage);
|
|
50837
51027
|
var _super = _create_super$C(HumanMessage);
|
|
50838
51028
|
function HumanMessage(fields) {
|
|
50839
|
-
_class_call_check$
|
|
51029
|
+
_class_call_check$U(this, HumanMessage);
|
|
50840
51030
|
var _this;
|
|
50841
51031
|
_this = _super.call(this, fields);
|
|
50842
51032
|
_define_property$1a(_assert_this_initialized$C(_this), "type", "human");
|
|
50843
51033
|
return _this;
|
|
50844
51034
|
}
|
|
50845
|
-
_create_class$
|
|
51035
|
+
_create_class$N(HumanMessage, null, [
|
|
50846
51036
|
{
|
|
50847
51037
|
key: "lc_name",
|
|
50848
51038
|
value: function lc_name() {
|
|
@@ -50865,13 +51055,13 @@ function _create_super$C(Derived) {
|
|
|
50865
51055
|
_inherits$C(HumanMessageChunk, BaseMessageChunk);
|
|
50866
51056
|
var _super = _create_super$C(HumanMessageChunk);
|
|
50867
51057
|
function HumanMessageChunk(fields) {
|
|
50868
|
-
_class_call_check$
|
|
51058
|
+
_class_call_check$U(this, HumanMessageChunk);
|
|
50869
51059
|
var _this;
|
|
50870
51060
|
_this = _super.call(this, fields);
|
|
50871
51061
|
_define_property$1a(_assert_this_initialized$C(_this), "type", "human");
|
|
50872
51062
|
return _this;
|
|
50873
51063
|
}
|
|
50874
|
-
_create_class$
|
|
51064
|
+
_create_class$N(HumanMessageChunk, [
|
|
50875
51065
|
{
|
|
50876
51066
|
key: "concat",
|
|
50877
51067
|
value: function concat(chunk) {
|
|
@@ -50918,12 +51108,12 @@ function _assert_this_initialized$B(self) {
|
|
|
50918
51108
|
}
|
|
50919
51109
|
return self;
|
|
50920
51110
|
}
|
|
50921
|
-
function _class_call_check$
|
|
51111
|
+
function _class_call_check$T(instance, Constructor) {
|
|
50922
51112
|
if (!(instance instanceof Constructor)) {
|
|
50923
51113
|
throw new TypeError("Cannot call a class as a function");
|
|
50924
51114
|
}
|
|
50925
51115
|
}
|
|
50926
|
-
function _defineProperties$
|
|
51116
|
+
function _defineProperties$M(target, props) {
|
|
50927
51117
|
for(var i = 0; i < props.length; i++){
|
|
50928
51118
|
var descriptor = props[i];
|
|
50929
51119
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -50932,9 +51122,9 @@ function _defineProperties$N(target, props) {
|
|
|
50932
51122
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
50933
51123
|
}
|
|
50934
51124
|
}
|
|
50935
|
-
function _create_class$
|
|
50936
|
-
if (protoProps) _defineProperties$
|
|
50937
|
-
if (staticProps) _defineProperties$
|
|
51125
|
+
function _create_class$M(Constructor, protoProps, staticProps) {
|
|
51126
|
+
if (protoProps) _defineProperties$M(Constructor.prototype, protoProps);
|
|
51127
|
+
if (staticProps) _defineProperties$M(Constructor, staticProps);
|
|
50938
51128
|
return Constructor;
|
|
50939
51129
|
}
|
|
50940
51130
|
function _define_property$19(obj, key, value) {
|
|
@@ -51040,13 +51230,13 @@ function _create_super$B(Derived) {
|
|
|
51040
51230
|
_inherits$B(SystemMessage, BaseMessage);
|
|
51041
51231
|
var _super = _create_super$B(SystemMessage);
|
|
51042
51232
|
function SystemMessage(fields) {
|
|
51043
|
-
_class_call_check$
|
|
51233
|
+
_class_call_check$T(this, SystemMessage);
|
|
51044
51234
|
var _this;
|
|
51045
51235
|
_this = _super.call(this, fields);
|
|
51046
51236
|
_define_property$19(_assert_this_initialized$B(_this), "type", "system");
|
|
51047
51237
|
return _this;
|
|
51048
51238
|
}
|
|
51049
|
-
_create_class$
|
|
51239
|
+
_create_class$M(SystemMessage, null, [
|
|
51050
51240
|
{
|
|
51051
51241
|
key: "lc_name",
|
|
51052
51242
|
value: function lc_name() {
|
|
@@ -51069,13 +51259,13 @@ function _create_super$B(Derived) {
|
|
|
51069
51259
|
_inherits$B(SystemMessageChunk, BaseMessageChunk);
|
|
51070
51260
|
var _super = _create_super$B(SystemMessageChunk);
|
|
51071
51261
|
function SystemMessageChunk(fields) {
|
|
51072
|
-
_class_call_check$
|
|
51262
|
+
_class_call_check$T(this, SystemMessageChunk);
|
|
51073
51263
|
var _this;
|
|
51074
51264
|
_this = _super.call(this, fields);
|
|
51075
51265
|
_define_property$19(_assert_this_initialized$B(_this), "type", "system");
|
|
51076
51266
|
return _this;
|
|
51077
51267
|
}
|
|
51078
|
-
_create_class$
|
|
51268
|
+
_create_class$M(SystemMessageChunk, [
|
|
51079
51269
|
{
|
|
51080
51270
|
key: "concat",
|
|
51081
51271
|
value: function concat(chunk) {
|
|
@@ -51122,12 +51312,12 @@ function _assert_this_initialized$A(self) {
|
|
|
51122
51312
|
}
|
|
51123
51313
|
return self;
|
|
51124
51314
|
}
|
|
51125
|
-
function _class_call_check$
|
|
51315
|
+
function _class_call_check$S(instance, Constructor) {
|
|
51126
51316
|
if (!(instance instanceof Constructor)) {
|
|
51127
51317
|
throw new TypeError("Cannot call a class as a function");
|
|
51128
51318
|
}
|
|
51129
51319
|
}
|
|
51130
|
-
function _defineProperties$
|
|
51320
|
+
function _defineProperties$L(target, props) {
|
|
51131
51321
|
for(var i = 0; i < props.length; i++){
|
|
51132
51322
|
var descriptor = props[i];
|
|
51133
51323
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -51136,9 +51326,9 @@ function _defineProperties$M(target, props) {
|
|
|
51136
51326
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
51137
51327
|
}
|
|
51138
51328
|
}
|
|
51139
|
-
function _create_class$
|
|
51140
|
-
if (protoProps) _defineProperties$
|
|
51141
|
-
if (staticProps) _defineProperties$
|
|
51329
|
+
function _create_class$L(Constructor, protoProps, staticProps) {
|
|
51330
|
+
if (protoProps) _defineProperties$L(Constructor.prototype, protoProps);
|
|
51331
|
+
if (staticProps) _defineProperties$L(Constructor, staticProps);
|
|
51142
51332
|
return Constructor;
|
|
51143
51333
|
}
|
|
51144
51334
|
function _define_property$18(obj, key, value) {
|
|
@@ -51278,7 +51468,7 @@ function _create_super$A(Derived) {
|
|
|
51278
51468
|
_inherits$A(RemoveMessage, BaseMessage);
|
|
51279
51469
|
var _super = _create_super$A(RemoveMessage);
|
|
51280
51470
|
function RemoveMessage(fields) {
|
|
51281
|
-
_class_call_check$
|
|
51471
|
+
_class_call_check$S(this, RemoveMessage);
|
|
51282
51472
|
var _this;
|
|
51283
51473
|
_this = _super.call(this, _object_spread_props$I(_object_spread$X({}, fields), {
|
|
51284
51474
|
content: []
|
|
@@ -51290,7 +51480,7 @@ function _create_super$A(Derived) {
|
|
|
51290
51480
|
_this.id = fields.id;
|
|
51291
51481
|
return _this;
|
|
51292
51482
|
}
|
|
51293
|
-
_create_class$
|
|
51483
|
+
_create_class$L(RemoveMessage, [
|
|
51294
51484
|
{
|
|
51295
51485
|
key: "_printableFields",
|
|
51296
51486
|
get: function get() {
|
|
@@ -51324,7 +51514,7 @@ function _assert_this_initialized$z(self) {
|
|
|
51324
51514
|
}
|
|
51325
51515
|
return self;
|
|
51326
51516
|
}
|
|
51327
|
-
function _class_call_check$
|
|
51517
|
+
function _class_call_check$R(instance, Constructor) {
|
|
51328
51518
|
if (!(instance instanceof Constructor)) {
|
|
51329
51519
|
throw new TypeError("Cannot call a class as a function");
|
|
51330
51520
|
}
|
|
@@ -51459,7 +51649,7 @@ function _isToolCall(toolCall) {
|
|
|
51459
51649
|
_inherits$z(ToolInputParsingException, Error1);
|
|
51460
51650
|
var _super = _create_super$z(ToolInputParsingException);
|
|
51461
51651
|
function ToolInputParsingException(message, output) {
|
|
51462
|
-
_class_call_check$
|
|
51652
|
+
_class_call_check$R(this, ToolInputParsingException);
|
|
51463
51653
|
var _this;
|
|
51464
51654
|
_this = _super.call(this, message);
|
|
51465
51655
|
_define_property$17(_assert_this_initialized$z(_this), "output", void 0);
|
|
@@ -52153,12 +52343,12 @@ function _assert_this_initialized$y(self) {
|
|
|
52153
52343
|
}
|
|
52154
52344
|
return self;
|
|
52155
52345
|
}
|
|
52156
|
-
function _class_call_check$
|
|
52346
|
+
function _class_call_check$Q(instance, Constructor) {
|
|
52157
52347
|
if (!(instance instanceof Constructor)) {
|
|
52158
52348
|
throw new TypeError("Cannot call a class as a function");
|
|
52159
52349
|
}
|
|
52160
52350
|
}
|
|
52161
|
-
function _defineProperties$
|
|
52351
|
+
function _defineProperties$K(target, props) {
|
|
52162
52352
|
for(var i = 0; i < props.length; i++){
|
|
52163
52353
|
var descriptor = props[i];
|
|
52164
52354
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -52167,9 +52357,9 @@ function _defineProperties$L(target, props) {
|
|
|
52167
52357
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
52168
52358
|
}
|
|
52169
52359
|
}
|
|
52170
|
-
function _create_class$
|
|
52171
|
-
if (protoProps) _defineProperties$
|
|
52172
|
-
if (staticProps) _defineProperties$
|
|
52360
|
+
function _create_class$K(Constructor, protoProps, staticProps) {
|
|
52361
|
+
if (protoProps) _defineProperties$K(Constructor.prototype, protoProps);
|
|
52362
|
+
if (staticProps) _defineProperties$K(Constructor, staticProps);
|
|
52173
52363
|
return Constructor;
|
|
52174
52364
|
}
|
|
52175
52365
|
function _define_property$15(obj, key, value) {
|
|
@@ -52280,7 +52470,7 @@ __export(base_exports$1, {
|
|
|
52280
52470
|
* overridden in derived classes to handle various events during the
|
|
52281
52471
|
* execution of a LangChain application.
|
|
52282
52472
|
*/ var BaseCallbackHandlerMethodsClass = function BaseCallbackHandlerMethodsClass() {
|
|
52283
|
-
_class_call_check$
|
|
52473
|
+
_class_call_check$Q(this, BaseCallbackHandlerMethodsClass);
|
|
52284
52474
|
};
|
|
52285
52475
|
function callbackHandlerPrefersStreaming(x) {
|
|
52286
52476
|
return "lc_prefer_streaming" in x && x.lc_prefer_streaming;
|
|
@@ -52294,7 +52484,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
52294
52484
|
_inherits$y(BaseCallbackHandler1, BaseCallbackHandlerMethodsClass);
|
|
52295
52485
|
var _super = _create_super$y(BaseCallbackHandler1);
|
|
52296
52486
|
function BaseCallbackHandler1(input) {
|
|
52297
|
-
_class_call_check$
|
|
52487
|
+
_class_call_check$Q(this, BaseCallbackHandler1);
|
|
52298
52488
|
var _this;
|
|
52299
52489
|
_this = _super.call(this);
|
|
52300
52490
|
_define_property$15(_assert_this_initialized$y(_this), "lc_serializable", false);
|
|
@@ -52325,7 +52515,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
52325
52515
|
}
|
|
52326
52516
|
return _this;
|
|
52327
52517
|
}
|
|
52328
|
-
_create_class$
|
|
52518
|
+
_create_class$K(BaseCallbackHandler1, [
|
|
52329
52519
|
{
|
|
52330
52520
|
key: "lc_namespace",
|
|
52331
52521
|
get: function get() {
|
|
@@ -52407,7 +52597,7 @@ function callbackHandlerPrefersStreaming(x) {
|
|
|
52407
52597
|
_inherits$y(Handler, BaseCallbackHandler);
|
|
52408
52598
|
var _super = _create_super$y(Handler);
|
|
52409
52599
|
function Handler() {
|
|
52410
|
-
_class_call_check$
|
|
52600
|
+
_class_call_check$Q(this, Handler);
|
|
52411
52601
|
var _this;
|
|
52412
52602
|
_this = _super.call(this);
|
|
52413
52603
|
_define_property$15(_assert_this_initialized$y(_this), "name", v4());
|
|
@@ -53007,12 +53197,12 @@ function getOtelEnabled() {
|
|
|
53007
53197
|
}
|
|
53008
53198
|
|
|
53009
53199
|
// Should not import any OTEL packages to avoid pulling in optional deps.
|
|
53010
|
-
function _class_call_check$
|
|
53200
|
+
function _class_call_check$P(instance, Constructor) {
|
|
53011
53201
|
if (!(instance instanceof Constructor)) {
|
|
53012
53202
|
throw new TypeError("Cannot call a class as a function");
|
|
53013
53203
|
}
|
|
53014
53204
|
}
|
|
53015
|
-
function _defineProperties$
|
|
53205
|
+
function _defineProperties$J(target, props) {
|
|
53016
53206
|
for(var i = 0; i < props.length; i++){
|
|
53017
53207
|
var descriptor = props[i];
|
|
53018
53208
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -53021,13 +53211,13 @@ function _defineProperties$K(target, props) {
|
|
|
53021
53211
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
53022
53212
|
}
|
|
53023
53213
|
}
|
|
53024
|
-
function _create_class$
|
|
53025
|
-
if (protoProps) _defineProperties$
|
|
53214
|
+
function _create_class$J(Constructor, protoProps, staticProps) {
|
|
53215
|
+
if (protoProps) _defineProperties$J(Constructor.prototype, protoProps);
|
|
53026
53216
|
return Constructor;
|
|
53027
53217
|
}
|
|
53028
53218
|
var MockTracer = /*#__PURE__*/ function() {
|
|
53029
53219
|
function MockTracer() {
|
|
53030
|
-
_class_call_check$
|
|
53220
|
+
_class_call_check$P(this, MockTracer);
|
|
53031
53221
|
Object.defineProperty(this, "hasWarned", {
|
|
53032
53222
|
enumerable: true,
|
|
53033
53223
|
configurable: true,
|
|
@@ -53035,7 +53225,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
53035
53225
|
value: false
|
|
53036
53226
|
});
|
|
53037
53227
|
}
|
|
53038
|
-
_create_class$
|
|
53228
|
+
_create_class$J(MockTracer, [
|
|
53039
53229
|
{
|
|
53040
53230
|
key: "startActiveSpan",
|
|
53041
53231
|
value: function startActiveSpan(_name) {
|
|
@@ -53069,7 +53259,7 @@ var MockTracer = /*#__PURE__*/ function() {
|
|
|
53069
53259
|
}();
|
|
53070
53260
|
var MockOTELTrace = /*#__PURE__*/ function() {
|
|
53071
53261
|
function MockOTELTrace() {
|
|
53072
|
-
_class_call_check$
|
|
53262
|
+
_class_call_check$P(this, MockOTELTrace);
|
|
53073
53263
|
Object.defineProperty(this, "mockTracer", {
|
|
53074
53264
|
enumerable: true,
|
|
53075
53265
|
configurable: true,
|
|
@@ -53077,7 +53267,7 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
53077
53267
|
value: new MockTracer()
|
|
53078
53268
|
});
|
|
53079
53269
|
}
|
|
53080
|
-
_create_class$
|
|
53270
|
+
_create_class$J(MockOTELTrace, [
|
|
53081
53271
|
{
|
|
53082
53272
|
key: "getTracer",
|
|
53083
53273
|
value: function getTracer(_name, _version) {
|
|
@@ -53125,9 +53315,9 @@ var MockOTELTrace = /*#__PURE__*/ function() {
|
|
|
53125
53315
|
}();
|
|
53126
53316
|
var MockOTELContext = /*#__PURE__*/ function() {
|
|
53127
53317
|
function MockOTELContext() {
|
|
53128
|
-
_class_call_check$
|
|
53318
|
+
_class_call_check$P(this, MockOTELContext);
|
|
53129
53319
|
}
|
|
53130
|
-
_create_class$
|
|
53320
|
+
_create_class$J(MockOTELContext, [
|
|
53131
53321
|
{
|
|
53132
53322
|
key: "active",
|
|
53133
53323
|
value: function active() {
|
|
@@ -53150,9 +53340,9 @@ var mockOTELTrace = new MockOTELTrace();
|
|
|
53150
53340
|
var mockOTELContext = new MockOTELContext();
|
|
53151
53341
|
var OTELProvider = /*#__PURE__*/ function() {
|
|
53152
53342
|
function OTELProvider() {
|
|
53153
|
-
_class_call_check$
|
|
53343
|
+
_class_call_check$P(this, OTELProvider);
|
|
53154
53344
|
}
|
|
53155
|
-
_create_class$
|
|
53345
|
+
_create_class$J(OTELProvider, [
|
|
53156
53346
|
{
|
|
53157
53347
|
key: "getTraceInstance",
|
|
53158
53348
|
value: function getTraceInstance() {
|
|
@@ -53229,12 +53419,12 @@ function _array_like_to_array$T(arr, len) {
|
|
|
53229
53419
|
function _array_with_holes$k(arr) {
|
|
53230
53420
|
if (Array.isArray(arr)) return arr;
|
|
53231
53421
|
}
|
|
53232
|
-
function _class_call_check$
|
|
53422
|
+
function _class_call_check$O(instance, Constructor) {
|
|
53233
53423
|
if (!(instance instanceof Constructor)) {
|
|
53234
53424
|
throw new TypeError("Cannot call a class as a function");
|
|
53235
53425
|
}
|
|
53236
53426
|
}
|
|
53237
|
-
function _defineProperties$
|
|
53427
|
+
function _defineProperties$I(target, props) {
|
|
53238
53428
|
for(var i = 0; i < props.length; i++){
|
|
53239
53429
|
var descriptor = props[i];
|
|
53240
53430
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -53243,8 +53433,8 @@ function _defineProperties$J(target, props) {
|
|
|
53243
53433
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
53244
53434
|
}
|
|
53245
53435
|
}
|
|
53246
|
-
function _create_class$
|
|
53247
|
-
if (protoProps) _defineProperties$
|
|
53436
|
+
function _create_class$I(Constructor, protoProps, staticProps) {
|
|
53437
|
+
if (protoProps) _defineProperties$I(Constructor.prototype, protoProps);
|
|
53248
53438
|
return Constructor;
|
|
53249
53439
|
}
|
|
53250
53440
|
function _iterable_to_array_limit$j(arr, i) {
|
|
@@ -53301,7 +53491,7 @@ function getOperationName(runType) {
|
|
|
53301
53491
|
}
|
|
53302
53492
|
var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
53303
53493
|
function LangSmithToOTELTranslator() {
|
|
53304
|
-
_class_call_check$
|
|
53494
|
+
_class_call_check$O(this, LangSmithToOTELTranslator);
|
|
53305
53495
|
Object.defineProperty(this, "spans", {
|
|
53306
53496
|
enumerable: true,
|
|
53307
53497
|
configurable: true,
|
|
@@ -53309,7 +53499,7 @@ var LangSmithToOTELTranslator = /*#__PURE__*/ function() {
|
|
|
53309
53499
|
value: new Map()
|
|
53310
53500
|
});
|
|
53311
53501
|
}
|
|
53312
|
-
_create_class$
|
|
53502
|
+
_create_class$I(LangSmithToOTELTranslator, [
|
|
53313
53503
|
{
|
|
53314
53504
|
key: "exportBatch",
|
|
53315
53505
|
value: function exportBatch(operations, otelContextMap) {
|
|
@@ -54048,7 +54238,7 @@ function _async_to_generator$E(fn) {
|
|
|
54048
54238
|
});
|
|
54049
54239
|
};
|
|
54050
54240
|
}
|
|
54051
|
-
function _class_call_check$
|
|
54241
|
+
function _class_call_check$N(instance, Constructor) {
|
|
54052
54242
|
if (!(instance instanceof Constructor)) {
|
|
54053
54243
|
throw new TypeError("Cannot call a class as a function");
|
|
54054
54244
|
}
|
|
@@ -54300,7 +54490,7 @@ var AbortError = /*#__PURE__*/ function(Error1) {
|
|
|
54300
54490
|
_inherits$x(AbortError, Error1);
|
|
54301
54491
|
var _super = _create_super$x(AbortError);
|
|
54302
54492
|
function AbortError(message) {
|
|
54303
|
-
_class_call_check$
|
|
54493
|
+
_class_call_check$N(this, AbortError);
|
|
54304
54494
|
var _this;
|
|
54305
54495
|
_this = _super.call(this);
|
|
54306
54496
|
if (_instanceof$n(message, Error)) {
|
|
@@ -54756,7 +54946,7 @@ function _assert_this_initialized$w(self) {
|
|
|
54756
54946
|
}
|
|
54757
54947
|
return self;
|
|
54758
54948
|
}
|
|
54759
|
-
function _class_call_check$
|
|
54949
|
+
function _class_call_check$M(instance, Constructor) {
|
|
54760
54950
|
if (!(instance instanceof Constructor)) {
|
|
54761
54951
|
throw new TypeError("Cannot call a class as a function");
|
|
54762
54952
|
}
|
|
@@ -54879,7 +55069,7 @@ var TimeoutError = /*#__PURE__*/ function(Error1) {
|
|
|
54879
55069
|
_inherits$w(TimeoutError, Error1);
|
|
54880
55070
|
var _super = _create_super$w(TimeoutError);
|
|
54881
55071
|
function TimeoutError(message) {
|
|
54882
|
-
_class_call_check$
|
|
55072
|
+
_class_call_check$M(this, TimeoutError);
|
|
54883
55073
|
var _this;
|
|
54884
55074
|
_this = _super.call(this, message);
|
|
54885
55075
|
_this.name = 'TimeoutError';
|
|
@@ -54952,12 +55142,12 @@ function lowerBound(array, value, comparator) {
|
|
|
54952
55142
|
}
|
|
54953
55143
|
lowerBound$1.default = lowerBound;
|
|
54954
55144
|
|
|
54955
|
-
function _class_call_check$
|
|
55145
|
+
function _class_call_check$L(instance, Constructor) {
|
|
54956
55146
|
if (!(instance instanceof Constructor)) {
|
|
54957
55147
|
throw new TypeError("Cannot call a class as a function");
|
|
54958
55148
|
}
|
|
54959
55149
|
}
|
|
54960
|
-
function _defineProperties$
|
|
55150
|
+
function _defineProperties$H(target, props) {
|
|
54961
55151
|
for(var i = 0; i < props.length; i++){
|
|
54962
55152
|
var descriptor = props[i];
|
|
54963
55153
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -54966,8 +55156,8 @@ function _defineProperties$I(target, props) {
|
|
|
54966
55156
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
54967
55157
|
}
|
|
54968
55158
|
}
|
|
54969
|
-
function _create_class$
|
|
54970
|
-
if (protoProps) _defineProperties$
|
|
55159
|
+
function _create_class$H(Constructor, protoProps, staticProps) {
|
|
55160
|
+
if (protoProps) _defineProperties$H(Constructor.prototype, protoProps);
|
|
54971
55161
|
return Constructor;
|
|
54972
55162
|
}
|
|
54973
55163
|
Object.defineProperty(priorityQueue, "__esModule", {
|
|
@@ -54976,10 +55166,10 @@ Object.defineProperty(priorityQueue, "__esModule", {
|
|
|
54976
55166
|
var lower_bound_1 = lowerBound$1;
|
|
54977
55167
|
var PriorityQueue = /*#__PURE__*/ function() {
|
|
54978
55168
|
function PriorityQueue() {
|
|
54979
|
-
_class_call_check$
|
|
55169
|
+
_class_call_check$L(this, PriorityQueue);
|
|
54980
55170
|
this._queue = [];
|
|
54981
55171
|
}
|
|
54982
|
-
_create_class$
|
|
55172
|
+
_create_class$H(PriorityQueue, [
|
|
54983
55173
|
{
|
|
54984
55174
|
key: "enqueue",
|
|
54985
55175
|
value: function enqueue(run, options) {
|
|
@@ -55063,12 +55253,12 @@ function _async_to_generator$D(fn) {
|
|
|
55063
55253
|
});
|
|
55064
55254
|
};
|
|
55065
55255
|
}
|
|
55066
|
-
function _class_call_check$
|
|
55256
|
+
function _class_call_check$K(instance, Constructor) {
|
|
55067
55257
|
if (!(instance instanceof Constructor)) {
|
|
55068
55258
|
throw new TypeError("Cannot call a class as a function");
|
|
55069
55259
|
}
|
|
55070
55260
|
}
|
|
55071
|
-
function _defineProperties$
|
|
55261
|
+
function _defineProperties$G(target, props) {
|
|
55072
55262
|
for(var i = 0; i < props.length; i++){
|
|
55073
55263
|
var descriptor = props[i];
|
|
55074
55264
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -55077,8 +55267,8 @@ function _defineProperties$H(target, props) {
|
|
|
55077
55267
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
55078
55268
|
}
|
|
55079
55269
|
}
|
|
55080
|
-
function _create_class$
|
|
55081
|
-
if (protoProps) _defineProperties$
|
|
55270
|
+
function _create_class$G(Constructor, protoProps, staticProps) {
|
|
55271
|
+
if (protoProps) _defineProperties$G(Constructor.prototype, protoProps);
|
|
55082
55272
|
return Constructor;
|
|
55083
55273
|
}
|
|
55084
55274
|
function _get_prototype_of$v(o) {
|
|
@@ -55251,7 +55441,7 @@ Promise queue with concurrency control.
|
|
|
55251
55441
|
_inherits$v(PQueue, EventEmitter);
|
|
55252
55442
|
var _super = _create_super$v(PQueue);
|
|
55253
55443
|
function PQueue(options) {
|
|
55254
|
-
_class_call_check$
|
|
55444
|
+
_class_call_check$K(this, PQueue);
|
|
55255
55445
|
var _this;
|
|
55256
55446
|
var _a, _b, _c, _d;
|
|
55257
55447
|
_this = _super.call(this);
|
|
@@ -55287,7 +55477,7 @@ Promise queue with concurrency control.
|
|
|
55287
55477
|
_this._isPaused = options.autoStart === false;
|
|
55288
55478
|
return _this;
|
|
55289
55479
|
}
|
|
55290
|
-
_create_class$
|
|
55480
|
+
_create_class$G(PQueue, [
|
|
55291
55481
|
{
|
|
55292
55482
|
key: "_doesIntervalAllowAnother",
|
|
55293
55483
|
get: function get() {
|
|
@@ -55710,12 +55900,12 @@ function _async_to_generator$C(fn) {
|
|
|
55710
55900
|
});
|
|
55711
55901
|
};
|
|
55712
55902
|
}
|
|
55713
|
-
function _class_call_check$
|
|
55903
|
+
function _class_call_check$J(instance, Constructor) {
|
|
55714
55904
|
if (!(instance instanceof Constructor)) {
|
|
55715
55905
|
throw new TypeError("Cannot call a class as a function");
|
|
55716
55906
|
}
|
|
55717
55907
|
}
|
|
55718
|
-
function _defineProperties$
|
|
55908
|
+
function _defineProperties$F(target, props) {
|
|
55719
55909
|
for(var i = 0; i < props.length; i++){
|
|
55720
55910
|
var descriptor = props[i];
|
|
55721
55911
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -55724,8 +55914,8 @@ function _defineProperties$G(target, props) {
|
|
|
55724
55914
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
55725
55915
|
}
|
|
55726
55916
|
}
|
|
55727
|
-
function _create_class$
|
|
55728
|
-
if (protoProps) _defineProperties$
|
|
55917
|
+
function _create_class$F(Constructor, protoProps, staticProps) {
|
|
55918
|
+
if (protoProps) _defineProperties$F(Constructor.prototype, protoProps);
|
|
55729
55919
|
return Constructor;
|
|
55730
55920
|
}
|
|
55731
55921
|
function _instanceof$l(left, right) {
|
|
@@ -55868,7 +56058,7 @@ var STATUS_RETRYABLE = [
|
|
|
55868
56058
|
* exponential backoff between each attempt.
|
|
55869
56059
|
*/ var AsyncCaller$1 = /*#__PURE__*/ function() {
|
|
55870
56060
|
function AsyncCaller(params) {
|
|
55871
|
-
_class_call_check$
|
|
56061
|
+
_class_call_check$J(this, AsyncCaller);
|
|
55872
56062
|
Object.defineProperty(this, "maxConcurrency", {
|
|
55873
56063
|
enumerable: true,
|
|
55874
56064
|
configurable: true,
|
|
@@ -55910,7 +56100,7 @@ var STATUS_RETRYABLE = [
|
|
|
55910
56100
|
}
|
|
55911
56101
|
this.onFailedResponseHook = params === null || params === void 0 ? void 0 : params.onFailedResponseHook;
|
|
55912
56102
|
}
|
|
55913
|
-
_create_class$
|
|
56103
|
+
_create_class$F(AsyncCaller, [
|
|
55914
56104
|
{
|
|
55915
56105
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
55916
56106
|
key: "call",
|
|
@@ -56405,12 +56595,12 @@ var identifiers$1 = {
|
|
|
56405
56595
|
rcompareIdentifiers: rcompareIdentifiers
|
|
56406
56596
|
};
|
|
56407
56597
|
|
|
56408
|
-
function _class_call_check$
|
|
56598
|
+
function _class_call_check$I(instance, Constructor) {
|
|
56409
56599
|
if (!(instance instanceof Constructor)) {
|
|
56410
56600
|
throw new TypeError("Cannot call a class as a function");
|
|
56411
56601
|
}
|
|
56412
56602
|
}
|
|
56413
|
-
function _defineProperties$
|
|
56603
|
+
function _defineProperties$E(target, props) {
|
|
56414
56604
|
for(var i = 0; i < props.length; i++){
|
|
56415
56605
|
var descriptor = props[i];
|
|
56416
56606
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -56419,8 +56609,8 @@ function _defineProperties$F(target, props) {
|
|
|
56419
56609
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
56420
56610
|
}
|
|
56421
56611
|
}
|
|
56422
|
-
function _create_class$
|
|
56423
|
-
if (protoProps) _defineProperties$
|
|
56612
|
+
function _create_class$E(Constructor, protoProps, staticProps) {
|
|
56613
|
+
if (protoProps) _defineProperties$E(Constructor.prototype, protoProps);
|
|
56424
56614
|
return Constructor;
|
|
56425
56615
|
}
|
|
56426
56616
|
function _instanceof$k(left, right) {
|
|
@@ -56441,7 +56631,7 @@ var parseOptions = parseOptions_1;
|
|
|
56441
56631
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
56442
56632
|
var SemVer$1 = /*#__PURE__*/ function() {
|
|
56443
56633
|
function SemVer(version, options) {
|
|
56444
|
-
_class_call_check$
|
|
56634
|
+
_class_call_check$I(this, SemVer);
|
|
56445
56635
|
options = parseOptions(options);
|
|
56446
56636
|
if (_instanceof$k(version, SemVer)) {
|
|
56447
56637
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -56496,7 +56686,7 @@ var SemVer$1 = /*#__PURE__*/ function() {
|
|
|
56496
56686
|
this.build = m[5] ? m[5].split('.') : [];
|
|
56497
56687
|
this.format();
|
|
56498
56688
|
}
|
|
56499
|
-
_create_class$
|
|
56689
|
+
_create_class$E(SemVer, [
|
|
56500
56690
|
{
|
|
56501
56691
|
key: "format",
|
|
56502
56692
|
value: function format() {
|
|
@@ -56854,70 +57044,78 @@ var cmp_1 = cmp;
|
|
|
56854
57044
|
|
|
56855
57045
|
var _require = reExports; _require.safeRe; _require.t;
|
|
56856
57046
|
|
|
56857
|
-
|
|
56858
|
-
|
|
56859
|
-
|
|
56860
|
-
|
|
56861
|
-
|
|
56862
|
-
|
|
56863
|
-
|
|
56864
|
-
|
|
56865
|
-
|
|
56866
|
-
|
|
56867
|
-
|
|
56868
|
-
|
|
56869
|
-
|
|
56870
|
-
|
|
56871
|
-
|
|
56872
|
-
|
|
56873
|
-
|
|
57047
|
+
var lrucache;
|
|
57048
|
+
var hasRequiredLrucache;
|
|
57049
|
+
|
|
57050
|
+
function requireLrucache () {
|
|
57051
|
+
if (hasRequiredLrucache) return lrucache;
|
|
57052
|
+
hasRequiredLrucache = 1;
|
|
57053
|
+
function _class_call_check(instance, Constructor) {
|
|
57054
|
+
if (!(instance instanceof Constructor)) {
|
|
57055
|
+
throw new TypeError("Cannot call a class as a function");
|
|
57056
|
+
}
|
|
57057
|
+
}
|
|
57058
|
+
function _defineProperties(target, props) {
|
|
57059
|
+
for(var i = 0; i < props.length; i++){
|
|
57060
|
+
var descriptor = props[i];
|
|
57061
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
57062
|
+
descriptor.configurable = true;
|
|
57063
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
57064
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
57065
|
+
}
|
|
57066
|
+
}
|
|
57067
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
57068
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
57069
|
+
return Constructor;
|
|
57070
|
+
}
|
|
57071
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
57072
|
+
function LRUCache() {
|
|
57073
|
+
_class_call_check(this, LRUCache);
|
|
57074
|
+
this.max = 1000;
|
|
57075
|
+
this.map = new Map();
|
|
57076
|
+
}
|
|
57077
|
+
_create_class(LRUCache, [
|
|
57078
|
+
{
|
|
57079
|
+
key: "get",
|
|
57080
|
+
value: function get(key) {
|
|
57081
|
+
var value = this.map.get(key);
|
|
57082
|
+
if (value === undefined) {
|
|
57083
|
+
return undefined;
|
|
57084
|
+
} else {
|
|
57085
|
+
// Remove the key from the map and add it to the end
|
|
57086
|
+
this.map.delete(key);
|
|
57087
|
+
this.map.set(key, value);
|
|
57088
|
+
return value;
|
|
57089
|
+
}
|
|
57090
|
+
}
|
|
57091
|
+
},
|
|
57092
|
+
{
|
|
57093
|
+
key: "delete",
|
|
57094
|
+
value: function _delete(key) {
|
|
57095
|
+
return this.map.delete(key);
|
|
57096
|
+
}
|
|
57097
|
+
},
|
|
57098
|
+
{
|
|
57099
|
+
key: "set",
|
|
57100
|
+
value: function set(key, value) {
|
|
57101
|
+
var deleted = this.delete(key);
|
|
57102
|
+
if (!deleted && value !== undefined) {
|
|
57103
|
+
// If cache is full, delete the least recently used item
|
|
57104
|
+
if (this.map.size >= this.max) {
|
|
57105
|
+
var firstKey = this.map.keys().next().value;
|
|
57106
|
+
this.delete(firstKey);
|
|
57107
|
+
}
|
|
57108
|
+
this.map.set(key, value);
|
|
57109
|
+
}
|
|
57110
|
+
return this;
|
|
57111
|
+
}
|
|
57112
|
+
}
|
|
57113
|
+
]);
|
|
57114
|
+
return LRUCache;
|
|
57115
|
+
}();
|
|
57116
|
+
lrucache = LRUCache;
|
|
57117
|
+
return lrucache;
|
|
56874
57118
|
}
|
|
56875
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
56876
|
-
function LRUCache() {
|
|
56877
|
-
_class_call_check$I(this, LRUCache);
|
|
56878
|
-
this.max = 1000;
|
|
56879
|
-
this.map = new Map();
|
|
56880
|
-
}
|
|
56881
|
-
_create_class$E(LRUCache, [
|
|
56882
|
-
{
|
|
56883
|
-
key: "get",
|
|
56884
|
-
value: function get(key) {
|
|
56885
|
-
var value = this.map.get(key);
|
|
56886
|
-
if (value === undefined) {
|
|
56887
|
-
return undefined;
|
|
56888
|
-
} else {
|
|
56889
|
-
// Remove the key from the map and add it to the end
|
|
56890
|
-
this.map.delete(key);
|
|
56891
|
-
this.map.set(key, value);
|
|
56892
|
-
return value;
|
|
56893
|
-
}
|
|
56894
|
-
}
|
|
56895
|
-
},
|
|
56896
|
-
{
|
|
56897
|
-
key: "delete",
|
|
56898
|
-
value: function _delete(key) {
|
|
56899
|
-
return this.map.delete(key);
|
|
56900
|
-
}
|
|
56901
|
-
},
|
|
56902
|
-
{
|
|
56903
|
-
key: "set",
|
|
56904
|
-
value: function set(key, value) {
|
|
56905
|
-
var deleted = this.delete(key);
|
|
56906
|
-
if (!deleted && value !== undefined) {
|
|
56907
|
-
// If cache is full, delete the least recently used item
|
|
56908
|
-
if (this.map.size >= this.max) {
|
|
56909
|
-
var firstKey = this.map.keys().next().value;
|
|
56910
|
-
this.delete(firstKey);
|
|
56911
|
-
}
|
|
56912
|
-
this.map.set(key, value);
|
|
56913
|
-
}
|
|
56914
|
-
return this;
|
|
56915
|
-
}
|
|
56916
|
-
}
|
|
56917
|
-
]);
|
|
56918
|
-
return LRUCache;
|
|
56919
|
-
}();
|
|
56920
|
-
var lrucache = LRUCache;
|
|
56921
57119
|
|
|
56922
57120
|
var range;
|
|
56923
57121
|
var hasRequiredRange;
|
|
@@ -57221,7 +57419,7 @@ function requireRange () {
|
|
|
57221
57419
|
return Range;
|
|
57222
57420
|
}();
|
|
57223
57421
|
range = Range;
|
|
57224
|
-
var LRU =
|
|
57422
|
+
var LRU = requireLrucache();
|
|
57225
57423
|
var cache = new LRU();
|
|
57226
57424
|
var parseOptions = parseOptions_1;
|
|
57227
57425
|
var Comparator = requireComparator();
|