@digipair/skill-imap 0.117.6 → 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 +289 -94
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8195,7 +8195,7 @@ function _create_class$v(Constructor, protoProps, staticProps) {
|
|
|
8195
8195
|
if (staticProps) _defineProperties$v(Constructor, staticProps);
|
|
8196
8196
|
return Constructor;
|
|
8197
8197
|
}
|
|
8198
|
-
function _define_property$
|
|
8198
|
+
function _define_property$5(obj, key, value) {
|
|
8199
8199
|
if (key in obj) {
|
|
8200
8200
|
Object.defineProperty(obj, key, {
|
|
8201
8201
|
value: value,
|
|
@@ -8270,7 +8270,7 @@ function _non_iterable_rest$5() {
|
|
|
8270
8270
|
function _non_iterable_spread$6() {
|
|
8271
8271
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8272
8272
|
}
|
|
8273
|
-
function _object_spread$
|
|
8273
|
+
function _object_spread$3(target) {
|
|
8274
8274
|
for(var i = 1; i < arguments.length; i++){
|
|
8275
8275
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8276
8276
|
var ownKeys = Object.keys(source);
|
|
@@ -8280,12 +8280,12 @@ function _object_spread$2(target) {
|
|
|
8280
8280
|
}));
|
|
8281
8281
|
}
|
|
8282
8282
|
ownKeys.forEach(function(key) {
|
|
8283
|
-
_define_property$
|
|
8283
|
+
_define_property$5(target, key, source[key]);
|
|
8284
8284
|
});
|
|
8285
8285
|
}
|
|
8286
8286
|
return target;
|
|
8287
8287
|
}
|
|
8288
|
-
function ownKeys$
|
|
8288
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
8289
8289
|
var keys = Object.keys(object);
|
|
8290
8290
|
if (Object.getOwnPropertySymbols) {
|
|
8291
8291
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8293,12 +8293,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
8293
8293
|
}
|
|
8294
8294
|
return keys;
|
|
8295
8295
|
}
|
|
8296
|
-
function _object_spread_props$
|
|
8296
|
+
function _object_spread_props$2(target, source) {
|
|
8297
8297
|
source = source != null ? source : {};
|
|
8298
8298
|
if (Object.getOwnPropertyDescriptors) {
|
|
8299
8299
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8300
8300
|
} else {
|
|
8301
|
-
ownKeys$
|
|
8301
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
8302
8302
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8303
8303
|
});
|
|
8304
8304
|
}
|
|
@@ -9169,7 +9169,7 @@ function getCachedWeekInfo(locString) {
|
|
|
9169
9169
|
data = "getWeekInfo" in locale ? locale.getWeekInfo() : locale.weekInfo;
|
|
9170
9170
|
// minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86
|
|
9171
9171
|
if (!("minimalDays" in data)) {
|
|
9172
|
-
data = _object_spread$
|
|
9172
|
+
data = _object_spread$3({}, fallbackWeekSettings, data);
|
|
9173
9173
|
}
|
|
9174
9174
|
weekInfoCache.set(locString, data);
|
|
9175
9175
|
}
|
|
@@ -9276,7 +9276,7 @@ function supportsFastNumbers(loc) {
|
|
|
9276
9276
|
"floor"
|
|
9277
9277
|
]);
|
|
9278
9278
|
if (!forceSimple || Object.keys(otherOpts).length > 0) {
|
|
9279
|
-
var intlOpts = _object_spread$
|
|
9279
|
+
var intlOpts = _object_spread$3({
|
|
9280
9280
|
useGrouping: false
|
|
9281
9281
|
}, opts);
|
|
9282
9282
|
if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
|
|
@@ -9346,7 +9346,7 @@ function supportsFastNumbers(loc) {
|
|
|
9346
9346
|
});
|
|
9347
9347
|
this.originalZone = dt.zone;
|
|
9348
9348
|
}
|
|
9349
|
-
var intlOpts = _object_spread$
|
|
9349
|
+
var intlOpts = _object_spread$3({}, this.opts);
|
|
9350
9350
|
intlOpts.timeZone = intlOpts.timeZone || z;
|
|
9351
9351
|
this.dtf = getCachedDTF(intl, intlOpts);
|
|
9352
9352
|
}
|
|
@@ -9377,7 +9377,7 @@ function supportsFastNumbers(loc) {
|
|
|
9377
9377
|
locale: _this.dt.locale,
|
|
9378
9378
|
format: _this.opts.timeZoneName
|
|
9379
9379
|
});
|
|
9380
|
-
return _object_spread_props$
|
|
9380
|
+
return _object_spread_props$2(_object_spread$3({}, part), {
|
|
9381
9381
|
value: offsetName
|
|
9382
9382
|
});
|
|
9383
9383
|
} else {
|
|
@@ -9402,7 +9402,7 @@ function supportsFastNumbers(loc) {
|
|
|
9402
9402
|
*/ var PolyRelFormatter = /*#__PURE__*/ function() {
|
|
9403
9403
|
function PolyRelFormatter(intl, isEnglish, opts) {
|
|
9404
9404
|
_class_call_check$A(this, PolyRelFormatter);
|
|
9405
|
-
this.opts = _object_spread$
|
|
9405
|
+
this.opts = _object_spread$3({
|
|
9406
9406
|
style: "long"
|
|
9407
9407
|
}, opts);
|
|
9408
9408
|
if (!isEnglish && hasRelative()) {
|
|
@@ -9497,7 +9497,7 @@ var fallbackWeekSettings = {
|
|
|
9497
9497
|
key: "redefaultToEN",
|
|
9498
9498
|
value: function redefaultToEN() {
|
|
9499
9499
|
var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
9500
|
-
return this.clone(_object_spread_props$
|
|
9500
|
+
return this.clone(_object_spread_props$2(_object_spread$3({}, alts), {
|
|
9501
9501
|
defaultToEN: true
|
|
9502
9502
|
}));
|
|
9503
9503
|
}
|
|
@@ -9506,7 +9506,7 @@ var fallbackWeekSettings = {
|
|
|
9506
9506
|
key: "redefaultToSystem",
|
|
9507
9507
|
value: function redefaultToSystem() {
|
|
9508
9508
|
var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
9509
|
-
return this.clone(_object_spread_props$
|
|
9509
|
+
return this.clone(_object_spread_props$2(_object_spread$3({}, alts), {
|
|
9510
9510
|
defaultToEN: false
|
|
9511
9511
|
}));
|
|
9512
9512
|
}
|
|
@@ -10385,7 +10385,7 @@ function isoWeekdayToLocal(isoWeekday, startOfWeek) {
|
|
|
10385
10385
|
} else {
|
|
10386
10386
|
weekYear = year;
|
|
10387
10387
|
}
|
|
10388
|
-
return _object_spread$
|
|
10388
|
+
return _object_spread$3({
|
|
10389
10389
|
weekYear: weekYear,
|
|
10390
10390
|
weekNumber: weekNumber,
|
|
10391
10391
|
weekday: weekday
|
|
@@ -10405,7 +10405,7 @@ function weekToGregorian(weekData) {
|
|
|
10405
10405
|
year = weekYear;
|
|
10406
10406
|
}
|
|
10407
10407
|
var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
|
|
10408
|
-
return _object_spread$
|
|
10408
|
+
return _object_spread$3({
|
|
10409
10409
|
year: year,
|
|
10410
10410
|
month: month,
|
|
10411
10411
|
day: day
|
|
@@ -10414,7 +10414,7 @@ function weekToGregorian(weekData) {
|
|
|
10414
10414
|
function gregorianToOrdinal(gregData) {
|
|
10415
10415
|
var year = gregData.year, month = gregData.month, day = gregData.day;
|
|
10416
10416
|
var ordinal = computeOrdinal(year, month, day);
|
|
10417
|
-
return _object_spread$
|
|
10417
|
+
return _object_spread$3({
|
|
10418
10418
|
year: year,
|
|
10419
10419
|
ordinal: ordinal
|
|
10420
10420
|
}, timeObject(gregData));
|
|
@@ -10422,7 +10422,7 @@ function gregorianToOrdinal(gregData) {
|
|
|
10422
10422
|
function ordinalToGregorian(ordinalData) {
|
|
10423
10423
|
var year = ordinalData.year, ordinal = ordinalData.ordinal;
|
|
10424
10424
|
var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
|
|
10425
|
-
return _object_spread$
|
|
10425
|
+
return _object_spread$3({
|
|
10426
10426
|
year: year,
|
|
10427
10427
|
month: month,
|
|
10428
10428
|
day: day
|
|
@@ -10718,7 +10718,7 @@ function parseZoneInfo(ts, offsetFormat, locale) {
|
|
|
10718
10718
|
if (timeZone) {
|
|
10719
10719
|
intlOpts.timeZone = timeZone;
|
|
10720
10720
|
}
|
|
10721
|
-
var modified = _object_spread$
|
|
10721
|
+
var modified = _object_spread$3({
|
|
10722
10722
|
timeZoneName: offsetFormat
|
|
10723
10723
|
}, intlOpts);
|
|
10724
10724
|
var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function(m) {
|
|
@@ -11077,7 +11077,7 @@ var macroTokenToFormatOpts = {
|
|
|
11077
11077
|
if (this.systemLoc === null) {
|
|
11078
11078
|
this.systemLoc = this.loc.redefaultToSystem();
|
|
11079
11079
|
}
|
|
11080
|
-
var df = this.systemLoc.dtFormatter(dt, _object_spread$
|
|
11080
|
+
var df = this.systemLoc.dtFormatter(dt, _object_spread$3({}, this.opts, opts));
|
|
11081
11081
|
return df.format();
|
|
11082
11082
|
}
|
|
11083
11083
|
},
|
|
@@ -11085,7 +11085,7 @@ var macroTokenToFormatOpts = {
|
|
|
11085
11085
|
key: "dtFormatter",
|
|
11086
11086
|
value: function dtFormatter(dt) {
|
|
11087
11087
|
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
11088
|
-
return this.loc.dtFormatter(dt, _object_spread$
|
|
11088
|
+
return this.loc.dtFormatter(dt, _object_spread$3({}, this.opts, opts));
|
|
11089
11089
|
}
|
|
11090
11090
|
},
|
|
11091
11091
|
{
|
|
@@ -11121,7 +11121,7 @@ var macroTokenToFormatOpts = {
|
|
|
11121
11121
|
if (this.opts.forceSimple) {
|
|
11122
11122
|
return padStart(n, p);
|
|
11123
11123
|
}
|
|
11124
|
-
var opts = _object_spread$
|
|
11124
|
+
var opts = _object_spread$3({}, this.opts);
|
|
11125
11125
|
if (p > 0) {
|
|
11126
11126
|
opts.padTo = p;
|
|
11127
11127
|
}
|
|
@@ -11537,7 +11537,7 @@ function combineExtractors() {
|
|
|
11537
11537
|
var _param = _sliced_to_array$5(param, 3), mergedVals = _param[0], mergedZone = _param[1], cursor = _param[2];
|
|
11538
11538
|
var _ex = _sliced_to_array$5(ex(m, cursor), 3), val = _ex[0], zone = _ex[1], next = _ex[2];
|
|
11539
11539
|
return [
|
|
11540
|
-
_object_spread$
|
|
11540
|
+
_object_spread$3({}, mergedVals, val),
|
|
11541
11541
|
zone || mergedZone,
|
|
11542
11542
|
next
|
|
11543
11543
|
];
|
|
@@ -11848,7 +11848,7 @@ var lowOrderMatrix = {
|
|
|
11848
11848
|
seconds: {
|
|
11849
11849
|
milliseconds: 1000
|
|
11850
11850
|
}
|
|
11851
|
-
}, casualMatrix = _object_spread$
|
|
11851
|
+
}, casualMatrix = _object_spread$3({
|
|
11852
11852
|
years: {
|
|
11853
11853
|
quarters: 4,
|
|
11854
11854
|
months: 12,
|
|
@@ -11876,7 +11876,7 @@ var lowOrderMatrix = {
|
|
|
11876
11876
|
seconds: 30 * 24 * 60 * 60,
|
|
11877
11877
|
milliseconds: 30 * 24 * 60 * 60 * 1000
|
|
11878
11878
|
}
|
|
11879
|
-
}, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$
|
|
11879
|
+
}, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$3({
|
|
11880
11880
|
years: {
|
|
11881
11881
|
quarters: 4,
|
|
11882
11882
|
months: 12,
|
|
@@ -11923,7 +11923,7 @@ function clone$1(dur, alts) {
|
|
|
11923
11923
|
var clear = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
11924
11924
|
// deep merge for vals
|
|
11925
11925
|
var conf = {
|
|
11926
|
-
values: clear ? alts.values : _object_spread$
|
|
11926
|
+
values: clear ? alts.values : _object_spread$3({}, dur.values, alts.values || {}),
|
|
11927
11927
|
loc: dur.loc.clone(alts.loc),
|
|
11928
11928
|
conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,
|
|
11929
11929
|
matrix: alts.matrix || dur.matrix
|
|
@@ -12122,7 +12122,7 @@ function removeZeroes(vals) {
|
|
|
12122
12122
|
value: function toFormat(fmt) {
|
|
12123
12123
|
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12124
12124
|
// reverse-compat since 1.2; we always round down now, never up, and we do it by default
|
|
12125
|
-
var fmtOpts = _object_spread_props$
|
|
12125
|
+
var fmtOpts = _object_spread_props$2(_object_spread$3({}, opts), {
|
|
12126
12126
|
floor: opts.round !== false && opts.floor !== false
|
|
12127
12127
|
});
|
|
12128
12128
|
return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
|
|
@@ -12155,7 +12155,7 @@ function removeZeroes(vals) {
|
|
|
12155
12155
|
if (isUndefined$2(val) || val === 0 && !showZeros) {
|
|
12156
12156
|
return null;
|
|
12157
12157
|
}
|
|
12158
|
-
return _this.loc.numberFormatter(_object_spread_props$
|
|
12158
|
+
return _this.loc.numberFormatter(_object_spread_props$2(_object_spread$3({
|
|
12159
12159
|
style: "unit",
|
|
12160
12160
|
unitDisplay: "long"
|
|
12161
12161
|
}, opts), {
|
|
@@ -12164,7 +12164,7 @@ function removeZeroes(vals) {
|
|
|
12164
12164
|
}).filter(function(n) {
|
|
12165
12165
|
return n;
|
|
12166
12166
|
});
|
|
12167
|
-
return this.loc.listFormatter(_object_spread$
|
|
12167
|
+
return this.loc.listFormatter(_object_spread$3({
|
|
12168
12168
|
type: "conjunction",
|
|
12169
12169
|
style: opts.listStyle || "narrow"
|
|
12170
12170
|
}, opts)).format(l);
|
|
@@ -12178,7 +12178,7 @@ function removeZeroes(vals) {
|
|
|
12178
12178
|
*/ key: "toObject",
|
|
12179
12179
|
value: function toObject() {
|
|
12180
12180
|
if (!this.isValid) return {};
|
|
12181
|
-
return _object_spread$
|
|
12181
|
+
return _object_spread$3({}, this.values);
|
|
12182
12182
|
}
|
|
12183
12183
|
},
|
|
12184
12184
|
{
|
|
@@ -12231,7 +12231,7 @@ function removeZeroes(vals) {
|
|
|
12231
12231
|
if (!this.isValid) return null;
|
|
12232
12232
|
var millis = this.toMillis();
|
|
12233
12233
|
if (millis < 0 || millis >= 86400000) return null;
|
|
12234
|
-
opts = _object_spread_props$
|
|
12234
|
+
opts = _object_spread_props$2(_object_spread$3({
|
|
12235
12235
|
suppressMilliseconds: false,
|
|
12236
12236
|
suppressSeconds: false,
|
|
12237
12237
|
includePrefix: false,
|
|
@@ -12402,7 +12402,7 @@ function removeZeroes(vals) {
|
|
|
12402
12402
|
*/ key: "set",
|
|
12403
12403
|
value: function set(values) {
|
|
12404
12404
|
if (!this.isValid) return this;
|
|
12405
|
-
var mixed = _object_spread$
|
|
12405
|
+
var mixed = _object_spread$3({}, this.values, normalizeObject(values, Duration.normalizeUnit));
|
|
12406
12406
|
return clone$1(this, {
|
|
12407
12407
|
values: mixed
|
|
12408
12408
|
});
|
|
@@ -14013,7 +14013,7 @@ function diff(earlier, later, units, opts) {
|
|
|
14013
14013
|
});
|
|
14014
14014
|
if (lowerOrderUnits.length === 0) {
|
|
14015
14015
|
if (highWater < later) {
|
|
14016
|
-
highWater = cursor.plus(_define_property$
|
|
14016
|
+
highWater = cursor.plus(_define_property$5({}, lowestOrder, 1));
|
|
14017
14017
|
}
|
|
14018
14018
|
if (highWater !== cursor) {
|
|
14019
14019
|
results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);
|
|
@@ -14573,7 +14573,7 @@ function clone$2(inst, alts) {
|
|
|
14573
14573
|
loc: inst.loc,
|
|
14574
14574
|
invalid: inst.invalid
|
|
14575
14575
|
};
|
|
14576
|
-
return new DateTime(_object_spread_props$
|
|
14576
|
+
return new DateTime(_object_spread_props$2(_object_spread$3({}, current, alts), {
|
|
14577
14577
|
old: current
|
|
14578
14578
|
}));
|
|
14579
14579
|
}
|
|
@@ -14627,7 +14627,7 @@ function objToTS(obj, offset, zone) {
|
|
|
14627
14627
|
}
|
|
14628
14628
|
// create a new DT instance by adding a duration, adjusting for DSTs
|
|
14629
14629
|
function adjustTime(inst, dur) {
|
|
14630
|
-
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$
|
|
14630
|
+
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(_object_spread$3({}, inst.c), {
|
|
14631
14631
|
year: year,
|
|
14632
14632
|
month: month,
|
|
14633
14633
|
day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7
|
|
@@ -14658,7 +14658,7 @@ function adjustTime(inst, dur) {
|
|
|
14658
14658
|
function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
|
|
14659
14659
|
var setZone = opts.setZone, zone = opts.zone;
|
|
14660
14660
|
if (parsed && Object.keys(parsed).length !== 0 || parsedZone) {
|
|
14661
|
-
var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$
|
|
14661
|
+
var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$2(_object_spread$3({}, opts), {
|
|
14662
14662
|
zone: interpretationZone,
|
|
14663
14663
|
specificOffset: specificOffset
|
|
14664
14664
|
}));
|
|
@@ -15678,11 +15678,11 @@ function lastOpts(argList) {
|
|
|
15678
15678
|
}
|
|
15679
15679
|
var mixed;
|
|
15680
15680
|
if (settingWeekStuff) {
|
|
15681
|
-
mixed = weekToGregorian(_object_spread$
|
|
15681
|
+
mixed = weekToGregorian(_object_spread$3({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
|
|
15682
15682
|
} else if (!isUndefined$2(normalized.ordinal)) {
|
|
15683
|
-
mixed = ordinalToGregorian(_object_spread$
|
|
15683
|
+
mixed = ordinalToGregorian(_object_spread$3({}, gregorianToOrdinal(this.c), normalized));
|
|
15684
15684
|
} else {
|
|
15685
|
-
mixed = _object_spread$
|
|
15685
|
+
mixed = _object_spread$3({}, this.toObject(), normalized);
|
|
15686
15686
|
// if we didn't set the day but we ended up on an overflow date,
|
|
15687
15687
|
// use the last day of the right month
|
|
15688
15688
|
if (isUndefined$2(normalized.day)) {
|
|
@@ -15801,7 +15801,7 @@ function lastOpts(argList) {
|
|
|
15801
15801
|
* @return {DateTime}
|
|
15802
15802
|
*/ key: "endOf",
|
|
15803
15803
|
value: function endOf(unit, opts) {
|
|
15804
|
-
return this.isValid ? this.plus(_define_property$
|
|
15804
|
+
return this.isValid ? this.plus(_define_property$5({}, unit, 1)).startOf(unit, opts).minus(1) : this;
|
|
15805
15805
|
}
|
|
15806
15806
|
},
|
|
15807
15807
|
{
|
|
@@ -16129,7 +16129,7 @@ function lastOpts(argList) {
|
|
|
16129
16129
|
value: function toObject() {
|
|
16130
16130
|
var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
16131
16131
|
if (!this.isValid) return {};
|
|
16132
|
-
var base = _object_spread$
|
|
16132
|
+
var base = _object_spread$3({}, this.c);
|
|
16133
16133
|
if (opts.includeConfig) {
|
|
16134
16134
|
base.outputCalendar = this.outputCalendar;
|
|
16135
16135
|
base.numberingSystem = this.loc.numberingSystem;
|
|
@@ -16169,7 +16169,7 @@ function lastOpts(argList) {
|
|
|
16169
16169
|
if (!this.isValid || !otherDateTime.isValid) {
|
|
16170
16170
|
return Duration.invalid("created by diffing an invalid DateTime");
|
|
16171
16171
|
}
|
|
16172
|
-
var durOpts = _object_spread$
|
|
16172
|
+
var durOpts = _object_spread$3({
|
|
16173
16173
|
locale: this.locale,
|
|
16174
16174
|
numberingSystem: this.numberingSystem
|
|
16175
16175
|
}, opts);
|
|
@@ -16273,7 +16273,7 @@ function lastOpts(argList) {
|
|
|
16273
16273
|
units = options.unit;
|
|
16274
16274
|
unit = undefined;
|
|
16275
16275
|
}
|
|
16276
|
-
return diffRelative(base, this.plus(padding), _object_spread_props$
|
|
16276
|
+
return diffRelative(base, this.plus(padding), _object_spread_props$2(_object_spread$3({}, options), {
|
|
16277
16277
|
numeric: "always",
|
|
16278
16278
|
units: units,
|
|
16279
16279
|
unit: unit
|
|
@@ -16299,7 +16299,7 @@ function lastOpts(argList) {
|
|
|
16299
16299
|
if (!this.isValid) return null;
|
|
16300
16300
|
return diffRelative(options.base || DateTime.fromObject({}, {
|
|
16301
16301
|
zone: this.zone
|
|
16302
|
-
}), this, _object_spread_props$
|
|
16302
|
+
}), this, _object_spread_props$2(_object_spread$3({}, options), {
|
|
16303
16303
|
numeric: "auto",
|
|
16304
16304
|
units: [
|
|
16305
16305
|
"years",
|
|
@@ -22567,7 +22567,7 @@ function _create_class$r(Constructor, protoProps, staticProps) {
|
|
|
22567
22567
|
if (staticProps) _defineProperties$r(Constructor, staticProps);
|
|
22568
22568
|
return Constructor;
|
|
22569
22569
|
}
|
|
22570
|
-
function _define_property$
|
|
22570
|
+
function _define_property$4(obj, key, value) {
|
|
22571
22571
|
if (key in obj) {
|
|
22572
22572
|
Object.defineProperty(obj, key, {
|
|
22573
22573
|
value: value,
|
|
@@ -22620,7 +22620,7 @@ function _non_iterable_rest$2() {
|
|
|
22620
22620
|
function _non_iterable_spread$4() {
|
|
22621
22621
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22622
22622
|
}
|
|
22623
|
-
function _object_spread$
|
|
22623
|
+
function _object_spread$2(target) {
|
|
22624
22624
|
for(var i = 1; i < arguments.length; i++){
|
|
22625
22625
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
22626
22626
|
var ownKeys = Object.keys(source);
|
|
@@ -22630,12 +22630,12 @@ function _object_spread$1(target) {
|
|
|
22630
22630
|
}));
|
|
22631
22631
|
}
|
|
22632
22632
|
ownKeys.forEach(function(key) {
|
|
22633
|
-
_define_property$
|
|
22633
|
+
_define_property$4(target, key, source[key]);
|
|
22634
22634
|
});
|
|
22635
22635
|
}
|
|
22636
22636
|
return target;
|
|
22637
22637
|
}
|
|
22638
|
-
function ownKeys(object, enumerableOnly) {
|
|
22638
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
22639
22639
|
var keys = Object.keys(object);
|
|
22640
22640
|
if (Object.getOwnPropertySymbols) {
|
|
22641
22641
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -22643,12 +22643,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
22643
22643
|
}
|
|
22644
22644
|
return keys;
|
|
22645
22645
|
}
|
|
22646
|
-
function _object_spread_props(target, source) {
|
|
22646
|
+
function _object_spread_props$1(target, source) {
|
|
22647
22647
|
source = source != null ? source : {};
|
|
22648
22648
|
if (Object.getOwnPropertyDescriptors) {
|
|
22649
22649
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
22650
22650
|
} else {
|
|
22651
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
22651
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
22652
22652
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
22653
22653
|
});
|
|
22654
22654
|
}
|
|
@@ -22841,14 +22841,14 @@ function indent(str, spaces) {
|
|
|
22841
22841
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22842
22842
|
// match is required
|
|
22843
22843
|
if (!match) {
|
|
22844
|
-
return
|
|
22844
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22845
22845
|
v: nextMatch1
|
|
22846
22846
|
};
|
|
22847
22847
|
}
|
|
22848
22848
|
var token = match.token, offset = match.offset;
|
|
22849
22849
|
i1 += offset;
|
|
22850
22850
|
if (token === ' ') {
|
|
22851
|
-
return
|
|
22851
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22852
22852
|
}
|
|
22853
22853
|
tokens1 = _to_consumable_array$4(tokens1).concat([
|
|
22854
22854
|
token
|
|
@@ -22867,7 +22867,7 @@ function indent(str, spaces) {
|
|
|
22867
22867
|
if (contextKeys.some(function(el) {
|
|
22868
22868
|
return el.startsWith(name);
|
|
22869
22869
|
})) {
|
|
22870
|
-
return
|
|
22870
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22871
22871
|
}
|
|
22872
22872
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22873
22873
|
return el === name;
|
|
@@ -22886,9 +22886,9 @@ function indent(str, spaces) {
|
|
|
22886
22886
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22887
22887
|
return el.startsWith(name);
|
|
22888
22888
|
})) {
|
|
22889
|
-
return
|
|
22889
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22890
22890
|
}
|
|
22891
|
-
return
|
|
22891
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22892
22892
|
v: nextMatch1
|
|
22893
22893
|
};
|
|
22894
22894
|
};
|
|
@@ -22900,7 +22900,7 @@ function indent(str, spaces) {
|
|
|
22900
22900
|
}
|
|
22901
22901
|
}
|
|
22902
22902
|
var _obj;
|
|
22903
|
-
var identifiersMap = (_obj = {}, _define_property$
|
|
22903
|
+
var identifiersMap = (_obj = {}, _define_property$4(_obj, identifier, 'identifier'), _define_property$4(_obj, nameIdentifier, 'nameIdentifier'), _obj);
|
|
22904
22904
|
var identifiers = new ExternalTokenizer(function(input, stack) {
|
|
22905
22905
|
LOG_PARSE_DEBUG && console.log('%s: T <identifier | nameIdentifier>', input.pos);
|
|
22906
22906
|
var nameMatch = parseName(input, stack.context);
|
|
@@ -22949,11 +22949,11 @@ var insertSemicolon = new ExternalTokenizer(function(input, stack) {
|
|
|
22949
22949
|
}
|
|
22950
22950
|
});
|
|
22951
22951
|
var _obj1;
|
|
22952
|
-
var prefixedContextStarts = (_obj1 = {}, _define_property$
|
|
22952
|
+
var prefixedContextStarts = (_obj1 = {}, _define_property$4(_obj1, functionInvocationStart, 'FunctionInvocation'), _define_property$4(_obj1, filterExpressionStart, 'FilterExpression'), _define_property$4(_obj1, pathExpressionStart, 'PathExpression'), _obj1);
|
|
22953
22953
|
var _obj2;
|
|
22954
|
-
var contextStarts = (_obj2 = {}, _define_property$
|
|
22954
|
+
var contextStarts = (_obj2 = {}, _define_property$4(_obj2, contextStart, 'Context'), _define_property$4(_obj2, functionDefinitionStart, 'FunctionDefinition'), _define_property$4(_obj2, forExpressionStart, 'ForExpression'), _define_property$4(_obj2, listStart, 'List'), _define_property$4(_obj2, ifExpressionStart, 'IfExpression'), _define_property$4(_obj2, quantifiedExpressionStart, 'QuantifiedExpression'), _obj2);
|
|
22955
22955
|
var _obj3;
|
|
22956
|
-
var contextEnds = (_obj3 = {}, _define_property$
|
|
22956
|
+
var contextEnds = (_obj3 = {}, _define_property$4(_obj3, Context, 'Context'), _define_property$4(_obj3, FunctionDefinition, 'FunctionDefinition'), _define_property$4(_obj3, ForExpression, 'ForExpression'), _define_property$4(_obj3, List, 'List'), _define_property$4(_obj3, IfExpression, 'IfExpression'), _define_property$4(_obj3, QuantifiedExpression, 'QuantifiedExpression'), _define_property$4(_obj3, PathExpression, 'PathExpression'), _define_property$4(_obj3, FunctionInvocation, 'FunctionInvocation'), _define_property$4(_obj3, FilterExpression, 'FilterExpression'), _define_property$4(_obj3, ArithmeticExpression, 'ArithmeticExpression'), _obj3);
|
|
22957
22957
|
/**
|
|
22958
22958
|
* A simple producer that retrievs a value from
|
|
22959
22959
|
* a given context. Used to lazily take things.
|
|
@@ -23041,7 +23041,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
|
23041
23041
|
*/ key: "set",
|
|
23042
23042
|
value: function set(key, value) {
|
|
23043
23043
|
var constructor = /** @type { typeof VariableContext } */ this.constructor;
|
|
23044
|
-
return constructor.of(_object_spread_props(_object_spread$
|
|
23044
|
+
return constructor.of(_object_spread_props$1(_object_spread$2({}, this.value), _define_property$4({}, key, value)));
|
|
23045
23045
|
}
|
|
23046
23046
|
},
|
|
23047
23047
|
{
|
|
@@ -23105,7 +23105,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
|
23105
23105
|
if ((typeof context === "undefined" ? "undefined" : _type_of$z(context)) !== 'object') {
|
|
23106
23106
|
return {};
|
|
23107
23107
|
}
|
|
23108
|
-
return _object_spread$
|
|
23108
|
+
return _object_spread$2({}, context);
|
|
23109
23109
|
}
|
|
23110
23110
|
},
|
|
23111
23111
|
{
|
|
@@ -23123,13 +23123,13 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
|
23123
23123
|
return reduce$1(this.__unwrap(other), function(merged, value, key) {
|
|
23124
23124
|
if (_instanceof$f(value, ValueProducer)) {
|
|
23125
23125
|
// keep value producers in tact
|
|
23126
|
-
return _object_spread_props(_object_spread$
|
|
23126
|
+
return _object_spread_props$1(_object_spread$2({}, merged), _define_property$4({}, key, value));
|
|
23127
23127
|
}
|
|
23128
23128
|
value = _this.__unwrap(value);
|
|
23129
23129
|
if (has$2(merged, key)) {
|
|
23130
23130
|
value = _this.__merge(_this.__unwrap(merged[key]), value);
|
|
23131
23131
|
}
|
|
23132
|
-
return _object_spread_props(_object_spread$
|
|
23132
|
+
return _object_spread_props$1(_object_spread$2({}, merged), _define_property$4({}, key, value));
|
|
23133
23133
|
}, this.__unwrap(context));
|
|
23134
23134
|
}
|
|
23135
23135
|
}
|
|
@@ -23348,7 +23348,7 @@ var Variables = /*#__PURE__*/ function() {
|
|
|
23348
23348
|
*/ key: "assign",
|
|
23349
23349
|
value: function assign() {
|
|
23350
23350
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
23351
|
-
return Variables.of(_object_spread$
|
|
23351
|
+
return Variables.of(_object_spread$2({}, this, options));
|
|
23352
23352
|
}
|
|
23353
23353
|
},
|
|
23354
23354
|
{
|
|
@@ -23363,7 +23363,7 @@ var Variables = /*#__PURE__*/ function() {
|
|
|
23363
23363
|
context: this.context,
|
|
23364
23364
|
parent: this.parent
|
|
23365
23365
|
};
|
|
23366
|
-
return Variables.of(_object_spread$
|
|
23366
|
+
return Variables.of(_object_spread$2({}, defaultOptions, options));
|
|
23367
23367
|
}
|
|
23368
23368
|
}
|
|
23369
23369
|
], [
|
|
@@ -23846,7 +23846,7 @@ function _create_class$q(Constructor, protoProps, staticProps) {
|
|
|
23846
23846
|
if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
|
|
23847
23847
|
return Constructor;
|
|
23848
23848
|
}
|
|
23849
|
-
function _define_property$
|
|
23849
|
+
function _define_property$3(obj, key, value) {
|
|
23850
23850
|
if (key in obj) {
|
|
23851
23851
|
Object.defineProperty(obj, key, {
|
|
23852
23852
|
value: value,
|
|
@@ -25153,7 +25153,7 @@ var builtins = {
|
|
|
25153
25153
|
if (key in context) {
|
|
25154
25154
|
return FALSE;
|
|
25155
25155
|
}
|
|
25156
|
-
return Object.assign(Object.assign({}, context), _define_property$
|
|
25156
|
+
return Object.assign(Object.assign({}, context), _define_property$3({}, entry.key, entry.value));
|
|
25157
25157
|
}, {});
|
|
25158
25158
|
if (context === FALSE) {
|
|
25159
25159
|
return null;
|
|
@@ -25206,7 +25206,7 @@ var builtins = {
|
|
|
25206
25206
|
return null;
|
|
25207
25207
|
}
|
|
25208
25208
|
}
|
|
25209
|
-
return Object.assign(Object.assign({}, context), _define_property$
|
|
25209
|
+
return Object.assign(Object.assign({}, context), _define_property$3({}, key, value));
|
|
25210
25210
|
}
|
|
25211
25211
|
function matches(a, b) {
|
|
25212
25212
|
return a === b;
|
|
@@ -25933,7 +25933,7 @@ function evalNode(node, input, args) {
|
|
|
25933
25933
|
return function(context) {
|
|
25934
25934
|
return args.slice(1, -1).reduce(function(obj, arg) {
|
|
25935
25935
|
var _arg = _sliced_to_array$1(arg(Object.assign(Object.assign({}, context), obj)), 2), key = _arg[0], value = _arg[1];
|
|
25936
|
-
return Object.assign(Object.assign({}, obj), _define_property$
|
|
25936
|
+
return Object.assign(Object.assign({}, obj), _define_property$3({}, key, value));
|
|
25937
25937
|
}, {});
|
|
25938
25938
|
};
|
|
25939
25939
|
case 'FunctionBody':
|
|
@@ -26430,7 +26430,7 @@ function extractValue(context, prop, _target) {
|
|
|
26430
26430
|
'range'
|
|
26431
26431
|
].includes(getType(target))) {
|
|
26432
26432
|
return target.map(function(t) {
|
|
26433
|
-
return _define_property$
|
|
26433
|
+
return _define_property$3({}, prop, t);
|
|
26434
26434
|
});
|
|
26435
26435
|
}
|
|
26436
26436
|
return null;
|
|
@@ -42894,7 +42894,7 @@ function _class_call_check$1(instance, Constructor) {
|
|
|
42894
42894
|
throw new TypeError("Cannot call a class as a function");
|
|
42895
42895
|
}
|
|
42896
42896
|
}
|
|
42897
|
-
function _define_property$
|
|
42897
|
+
function _define_property$2(obj, key, value) {
|
|
42898
42898
|
if (key in obj) {
|
|
42899
42899
|
Object.defineProperty(obj, key, {
|
|
42900
42900
|
value: value,
|
|
@@ -42974,7 +42974,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
42974
42974
|
_class_call_check$1(this, CelParser);
|
|
42975
42975
|
var _this;
|
|
42976
42976
|
_this = _super.call(this, allTokens);
|
|
42977
|
-
_define_property$
|
|
42977
|
+
_define_property$2(_assert_this_initialized$1(_this), "expr", _this.RULE('expr', function() {
|
|
42978
42978
|
_this.SUBRULE(_this.conditionalOr, {
|
|
42979
42979
|
LABEL: 'conditionalOr'
|
|
42980
42980
|
});
|
|
@@ -42989,7 +42989,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
42989
42989
|
});
|
|
42990
42990
|
});
|
|
42991
42991
|
}));
|
|
42992
|
-
_define_property$
|
|
42992
|
+
_define_property$2(_assert_this_initialized$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
|
|
42993
42993
|
_this.SUBRULE(_this.relation, {
|
|
42994
42994
|
LABEL: 'lhs'
|
|
42995
42995
|
});
|
|
@@ -43000,7 +43000,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43000
43000
|
});
|
|
43001
43001
|
});
|
|
43002
43002
|
}));
|
|
43003
|
-
_define_property$
|
|
43003
|
+
_define_property$2(_assert_this_initialized$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
|
|
43004
43004
|
_this.SUBRULE(_this.conditionalAnd, {
|
|
43005
43005
|
LABEL: 'lhs'
|
|
43006
43006
|
});
|
|
@@ -43011,7 +43011,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43011
43011
|
});
|
|
43012
43012
|
});
|
|
43013
43013
|
}));
|
|
43014
|
-
_define_property$
|
|
43014
|
+
_define_property$2(_assert_this_initialized$1(_this), "relation", _this.RULE('relation', function() {
|
|
43015
43015
|
_this.SUBRULE(_this.addition, {
|
|
43016
43016
|
LABEL: 'lhs'
|
|
43017
43017
|
});
|
|
@@ -43022,7 +43022,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43022
43022
|
});
|
|
43023
43023
|
});
|
|
43024
43024
|
}));
|
|
43025
|
-
_define_property$
|
|
43025
|
+
_define_property$2(_assert_this_initialized$1(_this), "addition", _this.RULE('addition', function() {
|
|
43026
43026
|
_this.SUBRULE(_this.multiplication, {
|
|
43027
43027
|
LABEL: 'lhs'
|
|
43028
43028
|
});
|
|
@@ -43033,7 +43033,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43033
43033
|
});
|
|
43034
43034
|
});
|
|
43035
43035
|
}));
|
|
43036
|
-
_define_property$
|
|
43036
|
+
_define_property$2(_assert_this_initialized$1(_this), "multiplication", _this.RULE('multiplication', function() {
|
|
43037
43037
|
_this.SUBRULE(_this.unaryExpression, {
|
|
43038
43038
|
LABEL: 'lhs'
|
|
43039
43039
|
});
|
|
@@ -43044,13 +43044,13 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43044
43044
|
});
|
|
43045
43045
|
});
|
|
43046
43046
|
}));
|
|
43047
|
-
_define_property$
|
|
43047
|
+
_define_property$2(_assert_this_initialized$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
|
|
43048
43048
|
_this.MANY(function() {
|
|
43049
43049
|
_this.CONSUME(UnaryOperator);
|
|
43050
43050
|
});
|
|
43051
43051
|
_this.SUBRULE(_this.atomicExpression);
|
|
43052
43052
|
}));
|
|
43053
|
-
_define_property$
|
|
43053
|
+
_define_property$2(_assert_this_initialized$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
|
|
43054
43054
|
_this.CONSUME(OpenParenthesis, {
|
|
43055
43055
|
LABEL: 'open'
|
|
43056
43056
|
});
|
|
@@ -43059,7 +43059,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43059
43059
|
LABEL: 'close'
|
|
43060
43060
|
});
|
|
43061
43061
|
}));
|
|
43062
|
-
_define_property$
|
|
43062
|
+
_define_property$2(_assert_this_initialized$1(_this), "listExpression", _this.RULE('listExpression', function() {
|
|
43063
43063
|
_this.CONSUME(OpenBracket);
|
|
43064
43064
|
_this.OPTION(function() {
|
|
43065
43065
|
_this.SUBRULE(_this.expr, {
|
|
@@ -43079,7 +43079,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43079
43079
|
});
|
|
43080
43080
|
});
|
|
43081
43081
|
}));
|
|
43082
|
-
_define_property$
|
|
43082
|
+
_define_property$2(_assert_this_initialized$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
|
|
43083
43083
|
_this.CONSUME(OpenCurlyBracket);
|
|
43084
43084
|
_this.MANY(function() {
|
|
43085
43085
|
_this.SUBRULE(_this.mapKeyValues, {
|
|
@@ -43104,7 +43104,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43104
43104
|
]);
|
|
43105
43105
|
});
|
|
43106
43106
|
}));
|
|
43107
|
-
_define_property$
|
|
43107
|
+
_define_property$2(_assert_this_initialized$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
|
|
43108
43108
|
_this.SUBRULE(_this.expr, {
|
|
43109
43109
|
LABEL: 'key'
|
|
43110
43110
|
});
|
|
@@ -43116,7 +43116,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43116
43116
|
_this.CONSUME(Comma);
|
|
43117
43117
|
});
|
|
43118
43118
|
}));
|
|
43119
|
-
_define_property$
|
|
43119
|
+
_define_property$2(_assert_this_initialized$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
|
|
43120
43120
|
_this.CONSUME(Identifier);
|
|
43121
43121
|
_this.CONSUME(OpenParenthesis);
|
|
43122
43122
|
_this.OPTION(function() {
|
|
@@ -43132,7 +43132,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43132
43132
|
});
|
|
43133
43133
|
_this.CONSUME(CloseParenthesis);
|
|
43134
43134
|
}));
|
|
43135
|
-
_define_property$
|
|
43135
|
+
_define_property$2(_assert_this_initialized$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
|
|
43136
43136
|
_this.CONSUME(Identifier);
|
|
43137
43137
|
_this.MANY(function() {
|
|
43138
43138
|
_this.OR([
|
|
@@ -43151,7 +43151,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43151
43151
|
]);
|
|
43152
43152
|
});
|
|
43153
43153
|
}));
|
|
43154
|
-
_define_property$
|
|
43154
|
+
_define_property$2(_assert_this_initialized$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
|
|
43155
43155
|
_this.CONSUME(Dot);
|
|
43156
43156
|
_this.CONSUME(Identifier);
|
|
43157
43157
|
// Optional method call with arguments (for collection macros)
|
|
@@ -43171,12 +43171,12 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43171
43171
|
_this.CONSUME(CloseParenthesis);
|
|
43172
43172
|
});
|
|
43173
43173
|
}));
|
|
43174
|
-
_define_property$
|
|
43174
|
+
_define_property$2(_assert_this_initialized$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
|
|
43175
43175
|
_this.CONSUME(OpenBracket);
|
|
43176
43176
|
_this.SUBRULE(_this.expr);
|
|
43177
43177
|
_this.CONSUME(CloseBracket);
|
|
43178
43178
|
}));
|
|
43179
|
-
_define_property$
|
|
43179
|
+
_define_property$2(_assert_this_initialized$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
|
|
43180
43180
|
_this.OR([
|
|
43181
43181
|
{
|
|
43182
43182
|
ALT: function() {
|
|
@@ -43285,7 +43285,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
43285
43285
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
43286
43286
|
return Constructor;
|
|
43287
43287
|
}
|
|
43288
|
-
function _define_property(obj, key, value) {
|
|
43288
|
+
function _define_property$1(obj, key, value) {
|
|
43289
43289
|
if (key in obj) {
|
|
43290
43290
|
Object.defineProperty(obj, key, {
|
|
43291
43291
|
value: value,
|
|
@@ -43357,7 +43357,7 @@ function _non_iterable_rest() {
|
|
|
43357
43357
|
function _non_iterable_spread() {
|
|
43358
43358
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
43359
43359
|
}
|
|
43360
|
-
function _object_spread(target) {
|
|
43360
|
+
function _object_spread$1(target) {
|
|
43361
43361
|
for(var i = 1; i < arguments.length; i++){
|
|
43362
43362
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
43363
43363
|
var ownKeys = Object.keys(source);
|
|
@@ -43367,7 +43367,7 @@ function _object_spread(target) {
|
|
|
43367
43367
|
}));
|
|
43368
43368
|
}
|
|
43369
43369
|
ownKeys.forEach(function(key) {
|
|
43370
|
-
_define_property(target, key, source[key]);
|
|
43370
|
+
_define_property$1(target, key, source[key]);
|
|
43371
43371
|
});
|
|
43372
43372
|
}
|
|
43373
43373
|
return target;
|
|
@@ -43453,13 +43453,13 @@ var CelVisitor = /*#__PURE__*/ function(BaseCelVisitor) {
|
|
|
43453
43453
|
_class_call_check(this, CelVisitor);
|
|
43454
43454
|
var _this;
|
|
43455
43455
|
_this = _super.call(this);
|
|
43456
|
-
_define_property(_assert_this_initialized(_this), "context", void 0);
|
|
43456
|
+
_define_property$1(_assert_this_initialized(_this), "context", void 0);
|
|
43457
43457
|
/**
|
|
43458
43458
|
* Tracks the current mode of the visitor to handle special cases.
|
|
43459
|
-
*/ _define_property(_assert_this_initialized(_this), "mode", Mode.normal);
|
|
43460
|
-
_define_property(_assert_this_initialized(_this), "functions", void 0);
|
|
43459
|
+
*/ _define_property$1(_assert_this_initialized(_this), "mode", Mode.normal);
|
|
43460
|
+
_define_property$1(_assert_this_initialized(_this), "functions", void 0);
|
|
43461
43461
|
_this.context = context || {};
|
|
43462
|
-
_this.functions = _object_spread({}, defaultFunctions, functions || {});
|
|
43462
|
+
_this.functions = _object_spread$1({}, defaultFunctions, functions || {});
|
|
43463
43463
|
_this.validateVisitor();
|
|
43464
43464
|
return _this;
|
|
43465
43465
|
}
|
|
@@ -44200,6 +44200,198 @@ function evaluate(expression, context, functions) {
|
|
|
44200
44200
|
}
|
|
44201
44201
|
return toAstVisitorInstance.visit(result.cst);
|
|
44202
44202
|
}
|
|
44203
|
+
// Latin-1 Supplement
|
|
44204
|
+
// upper case ranges
|
|
44205
|
+
// [À-ÖØ-ß]
|
|
44206
|
+
// lower case ranges
|
|
44207
|
+
// [à-öø-ÿ]
|
|
44208
|
+
var magicSplit = /^[a-zà-öø-ÿа-я]+|[A-ZÀ-ÖØ-ßА-Я][a-zà-öø-ÿа-я]+|[a-zà-öø-ÿа-я]+|[0-9]+|[A-ZÀ-ÖØ-ßА-Я]+(?![a-zà-öø-ÿа-я])/g;
|
|
44209
|
+
var spaceSplit = /\S+/g;
|
|
44210
|
+
/**
|
|
44211
|
+
* A string.matchAll function that will return an array of "string parts" and the indexes at which it split each part
|
|
44212
|
+
*/ function getPartsAndIndexes(string, splitRegex) {
|
|
44213
|
+
var result = {
|
|
44214
|
+
parts: [],
|
|
44215
|
+
prefixes: []
|
|
44216
|
+
};
|
|
44217
|
+
var matches = string.matchAll(splitRegex);
|
|
44218
|
+
var lastWordEndIndex = 0;
|
|
44219
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
44220
|
+
try {
|
|
44221
|
+
for(var _iterator = matches[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
44222
|
+
var match = _step.value;
|
|
44223
|
+
if (typeof match.index !== 'number') continue;
|
|
44224
|
+
var word = match[0];
|
|
44225
|
+
result.parts.push(word);
|
|
44226
|
+
var prefix = string.slice(lastWordEndIndex, match.index).trim();
|
|
44227
|
+
result.prefixes.push(prefix);
|
|
44228
|
+
lastWordEndIndex = match.index + word.length;
|
|
44229
|
+
}
|
|
44230
|
+
} catch (err) {
|
|
44231
|
+
_didIteratorError = true;
|
|
44232
|
+
_iteratorError = err;
|
|
44233
|
+
} finally{
|
|
44234
|
+
try {
|
|
44235
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
44236
|
+
_iterator.return();
|
|
44237
|
+
}
|
|
44238
|
+
} finally{
|
|
44239
|
+
if (_didIteratorError) {
|
|
44240
|
+
throw _iteratorError;
|
|
44241
|
+
}
|
|
44242
|
+
}
|
|
44243
|
+
}
|
|
44244
|
+
var tail = string.slice(lastWordEndIndex).trim();
|
|
44245
|
+
if (tail) {
|
|
44246
|
+
result.parts.push('');
|
|
44247
|
+
result.prefixes.push(tail);
|
|
44248
|
+
}
|
|
44249
|
+
return result;
|
|
44250
|
+
}
|
|
44251
|
+
/**
|
|
44252
|
+
* A function that splits a string on words and returns an array of words.
|
|
44253
|
+
* - It can prefix each word with a given character
|
|
44254
|
+
* - It can strip or keep special characters, this affects the logic for adding a prefix as well
|
|
44255
|
+
*/ function splitAndPrefix(string, options) {
|
|
44256
|
+
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;
|
|
44257
|
+
var normalString = string.trim().normalize('NFC');
|
|
44258
|
+
var hasSpaces = normalString.includes(' ');
|
|
44259
|
+
var split = hasSpaces ? spaceSplit : magicSplit;
|
|
44260
|
+
var partsAndIndexes = getPartsAndIndexes(normalString, split);
|
|
44261
|
+
return partsAndIndexes.parts.map(function(_part, i) {
|
|
44262
|
+
var foundPrefix = partsAndIndexes.prefixes[i] || '';
|
|
44263
|
+
var part = _part;
|
|
44264
|
+
if (keepSpecialCharacters === false) {
|
|
44265
|
+
if (keep) {
|
|
44266
|
+
part = part.normalize('NFD').replace(new RegExp("[^a-zA-Z\xd8\xdf\xf80-9".concat(keep.join(''), "]"), 'g'), '');
|
|
44267
|
+
}
|
|
44268
|
+
if (!keep) {
|
|
44269
|
+
part = part.normalize('NFD').replace(/[^a-zA-ZØßø0-9]/g, '');
|
|
44270
|
+
foundPrefix = '';
|
|
44271
|
+
}
|
|
44272
|
+
}
|
|
44273
|
+
if (keep && foundPrefix) {
|
|
44274
|
+
foundPrefix = foundPrefix.replace(new RegExp("[^".concat(keep.join(''), "]"), 'g'), '');
|
|
44275
|
+
}
|
|
44276
|
+
// the first word doesn't need a prefix, so only return the found prefix
|
|
44277
|
+
if (i === 0) {
|
|
44278
|
+
// console.log(`foundPrefix → `, foundPrefix)
|
|
44279
|
+
return foundPrefix + part;
|
|
44280
|
+
}
|
|
44281
|
+
if (!foundPrefix && !part) return '';
|
|
44282
|
+
if (!hasSpaces) {
|
|
44283
|
+
// return the found prefix OR fall back to a given prefix
|
|
44284
|
+
return (foundPrefix || prefix) + part;
|
|
44285
|
+
}
|
|
44286
|
+
// space based sentence was split on spaces, so only return found prefixes
|
|
44287
|
+
if (!foundPrefix && prefix.match(/\s/)) {
|
|
44288
|
+
// in this case we have no more found prefix, it was trimmed, but we're looking to add a space
|
|
44289
|
+
// so let's return that space
|
|
44290
|
+
return ' ' + part;
|
|
44291
|
+
}
|
|
44292
|
+
return (foundPrefix || prefix) + part;
|
|
44293
|
+
}).filter(Boolean);
|
|
44294
|
+
}
|
|
44295
|
+
/**
|
|
44296
|
+
* Capitalises a single word
|
|
44297
|
+
* @returns the word with the first character in uppercase and the rest in lowercase
|
|
44298
|
+
*/ function capitaliseWord(string) {
|
|
44299
|
+
var match = string.matchAll(magicSplit).next().value;
|
|
44300
|
+
var firstLetterIndex = match ? match.index : 0;
|
|
44301
|
+
return string.slice(0, firstLetterIndex + 1).toUpperCase() + string.slice(firstLetterIndex + 1).toLowerCase();
|
|
44302
|
+
}
|
|
44303
|
+
function _define_property(obj, key, value) {
|
|
44304
|
+
if (key in obj) {
|
|
44305
|
+
Object.defineProperty(obj, key, {
|
|
44306
|
+
value: value,
|
|
44307
|
+
enumerable: true,
|
|
44308
|
+
configurable: true,
|
|
44309
|
+
writable: true
|
|
44310
|
+
});
|
|
44311
|
+
} else {
|
|
44312
|
+
obj[key] = value;
|
|
44313
|
+
}
|
|
44314
|
+
return obj;
|
|
44315
|
+
}
|
|
44316
|
+
function _object_spread(target) {
|
|
44317
|
+
for(var i = 1; i < arguments.length; i++){
|
|
44318
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
44319
|
+
var ownKeys = Object.keys(source);
|
|
44320
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
44321
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
44322
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
44323
|
+
}));
|
|
44324
|
+
}
|
|
44325
|
+
ownKeys.forEach(function(key) {
|
|
44326
|
+
_define_property(target, key, source[key]);
|
|
44327
|
+
});
|
|
44328
|
+
}
|
|
44329
|
+
return target;
|
|
44330
|
+
}
|
|
44331
|
+
function ownKeys(object, enumerableOnly) {
|
|
44332
|
+
var keys = Object.keys(object);
|
|
44333
|
+
if (Object.getOwnPropertySymbols) {
|
|
44334
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
44335
|
+
keys.push.apply(keys, symbols);
|
|
44336
|
+
}
|
|
44337
|
+
return keys;
|
|
44338
|
+
}
|
|
44339
|
+
function _object_spread_props(target, source) {
|
|
44340
|
+
source = source != null ? source : {};
|
|
44341
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
44342
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
44343
|
+
} else {
|
|
44344
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
44345
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44346
|
+
});
|
|
44347
|
+
}
|
|
44348
|
+
return target;
|
|
44349
|
+
}
|
|
44350
|
+
/**
|
|
44351
|
+
* # 🐪 camelCase
|
|
44352
|
+
* converts a string to camelCase
|
|
44353
|
+
* - first lowercase then all capitalised
|
|
44354
|
+
* - *strips away* special characters by default
|
|
44355
|
+
*
|
|
44356
|
+
* @example
|
|
44357
|
+
* camelCase('$catDog') === 'catDog'
|
|
44358
|
+
* @example
|
|
44359
|
+
* camelCase('$catDog', { keepSpecialCharacters: true }) === '$catDog'
|
|
44360
|
+
*/ function camelCase(string, options) {
|
|
44361
|
+
return splitAndPrefix(string, options).reduce(function(result, word, index) {
|
|
44362
|
+
return index === 0 || !(word[0] || '').match(magicSplit) ? result + word.toLowerCase() : result + capitaliseWord(word);
|
|
44363
|
+
}, '');
|
|
44364
|
+
}
|
|
44365
|
+
/**
|
|
44366
|
+
* # 🥙 kebab-case
|
|
44367
|
+
* converts a string to kebab-case
|
|
44368
|
+
* - hyphenated lowercase
|
|
44369
|
+
* - *strips away* special characters by default
|
|
44370
|
+
*
|
|
44371
|
+
* @example
|
|
44372
|
+
* kebabCase('$catDog') === 'cat-dog'
|
|
44373
|
+
* @example
|
|
44374
|
+
* kebabCase('$catDog', { keepSpecialCharacters: true }) === '$cat-dog'
|
|
44375
|
+
*/ function kebabCase(string, options) {
|
|
44376
|
+
return splitAndPrefix(string, _object_spread_props(_object_spread({}, options), {
|
|
44377
|
+
prefix: '-'
|
|
44378
|
+
})).join('').toLowerCase();
|
|
44379
|
+
}
|
|
44380
|
+
/**
|
|
44381
|
+
* # 🐍 snake_case
|
|
44382
|
+
* converts a string to snake_case
|
|
44383
|
+
* - underscored lowercase
|
|
44384
|
+
* - *strips away* special characters by default
|
|
44385
|
+
*
|
|
44386
|
+
* @example
|
|
44387
|
+
* snakeCase('$catDog') === 'cat_dog'
|
|
44388
|
+
* @example
|
|
44389
|
+
* snakeCase('$catDog', { keepSpecialCharacters: true }) === '$cat_dog'
|
|
44390
|
+
*/ function snakeCase(string, options) {
|
|
44391
|
+
return splitAndPrefix(string, _object_spread_props(_object_spread({}, options), {
|
|
44392
|
+
prefix: '_'
|
|
44393
|
+
})).join('').toLowerCase();
|
|
44394
|
+
}
|
|
44203
44395
|
const Handlebars = handlebars_min || HandlebarsNamespace;
|
|
44204
44396
|
Handlebars.registerHelper('JSONstringify', function(value) {
|
|
44205
44397
|
return JSON.stringify(value);
|
|
@@ -44214,7 +44406,10 @@ const DIGIPAIR_FUNCTIONS = {
|
|
|
44214
44406
|
encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
|
|
44215
44407
|
decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
|
|
44216
44408
|
JSONparse: (value)=>JSON.parse(value),
|
|
44217
|
-
JSONstringify: (value)=>JSON.stringify(value)
|
|
44409
|
+
JSONstringify: (value)=>JSON.stringify(value),
|
|
44410
|
+
camelCase: (value)=>camelCase(value),
|
|
44411
|
+
kebabCase: (value)=>kebabCase(value),
|
|
44412
|
+
snakeCase: (value)=>snakeCase(value)
|
|
44218
44413
|
};
|
|
44219
44414
|
const globalInstance = typeof window === 'undefined' ? global : window;
|
|
44220
44415
|
const _config = globalInstance.__DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__ ?? {
|