@strapi/plugin-users-permissions 5.4.1 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{index-pmesAsoW.js → index-6xS_NVnz.js} +21 -14
- package/dist/_chunks/{index-pmesAsoW.js.map → index-6xS_NVnz.js.map} +1 -1
- package/dist/_chunks/{index-ZbIIl-VI.js → index-7urCw5UD.js} +3 -4
- package/dist/_chunks/{index-ZbIIl-VI.js.map → index-7urCw5UD.js.map} +1 -1
- package/dist/_chunks/{index-Cyk9nN3J.mjs → index-AVbfDpH6.mjs} +2 -2
- package/dist/_chunks/{index-Cyk9nN3J.mjs.map → index-AVbfDpH6.mjs.map} +1 -1
- package/dist/_chunks/{index-zaVC_4Mw.mjs → index-BLaxSWbC.mjs} +3 -3
- package/dist/_chunks/{index-zaVC_4Mw.mjs.map → index-BLaxSWbC.mjs.map} +1 -1
- package/dist/_chunks/{index-DNKYHd4J.mjs → index-BReXSOfU.mjs} +2 -2
- package/dist/_chunks/{index-DNKYHd4J.mjs.map → index-BReXSOfU.mjs.map} +1 -1
- package/dist/_chunks/{index-kMqoQ8VX.mjs → index-BYBVysRS.mjs} +3 -3
- package/dist/_chunks/{index-kMqoQ8VX.mjs.map → index-BYBVysRS.mjs.map} +1 -1
- package/dist/_chunks/{index-Cl7wdD8l.js → index-CCAQw4t9.js} +5 -6
- package/dist/_chunks/{index-Cl7wdD8l.js.map → index-CCAQw4t9.js.map} +1 -1
- package/dist/_chunks/{index-C5MSODBR.mjs → index-CvQ-xY7a.mjs} +21 -14
- package/dist/_chunks/{index-C5MSODBR.mjs.map → index-CvQ-xY7a.mjs.map} +1 -1
- package/dist/_chunks/{index-BtapqMRC.js → index-CzxZzlFc.js} +8 -9
- package/dist/_chunks/{index-BtapqMRC.js.map → index-CzxZzlFc.js.map} +1 -1
- package/dist/_chunks/{index-D_1N-X9K.js → index-Dz5Q1Yft.js} +3 -4
- package/dist/_chunks/{index-D_1N-X9K.js.map → index-Dz5Q1Yft.js.map} +1 -1
- package/dist/_chunks/{index-CQ0jOkIC-DAZ1lfuF.mjs → index-UBwCyQ_3-AADEvpEo.mjs} +235 -356
- package/dist/_chunks/index-UBwCyQ_3-AADEvpEo.mjs.map +1 -0
- package/dist/_chunks/{index-CQ0jOkIC-C4oUQUND.js → index-UBwCyQ_3-lG3F5mWr.js} +236 -358
- package/dist/_chunks/index-UBwCyQ_3-lG3F5mWr.js.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +7 -7
- package/server/graphql/types/index.js +1 -0
- package/server/graphql/types/me.js +1 -0
- package/server/graphql/types/user-input.js +20 -0
- package/dist/_chunks/index-CQ0jOkIC-C4oUQUND.js.map +0 -1
- package/dist/_chunks/index-CQ0jOkIC-DAZ1lfuF.mjs.map +0 -1
|
@@ -32,8 +32,7 @@ function getDefaultExportFromCjs(x) {
|
|
|
32
32
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
33
33
|
}
|
|
34
34
|
function getAugmentedNamespace(n) {
|
|
35
|
-
if (n.__esModule)
|
|
36
|
-
return n;
|
|
35
|
+
if (n.__esModule) return n;
|
|
37
36
|
var f2 = n.default;
|
|
38
37
|
if (typeof f2 == "function") {
|
|
39
38
|
var a2 = function a3() {
|
|
@@ -43,8 +42,7 @@ function getAugmentedNamespace(n) {
|
|
|
43
42
|
return f2.apply(this, arguments);
|
|
44
43
|
};
|
|
45
44
|
a2.prototype = f2.prototype;
|
|
46
|
-
} else
|
|
47
|
-
a2 = {};
|
|
45
|
+
} else a2 = {};
|
|
48
46
|
Object.defineProperty(a2, "__esModule", { value: true });
|
|
49
47
|
Object.keys(n).forEach(function(k) {
|
|
50
48
|
var d2 = Object.getOwnPropertyDescriptor(n, k);
|
|
@@ -127,11 +125,12 @@ var hasSymbols$1 = function hasNativeSymbols() {
|
|
|
127
125
|
return hasSymbolSham();
|
|
128
126
|
};
|
|
129
127
|
var test$1 = {
|
|
128
|
+
__proto__: null,
|
|
130
129
|
foo: {}
|
|
131
130
|
};
|
|
132
131
|
var $Object = Object;
|
|
133
132
|
var hasProto$1 = function hasProto() {
|
|
134
|
-
return { __proto__: test$1 }.foo === test$1.foo && !(
|
|
133
|
+
return { __proto__: test$1 }.foo === test$1.foo && !(test$1 instanceof $Object);
|
|
135
134
|
};
|
|
136
135
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
137
136
|
var toStr$1 = Object.prototype.toString;
|
|
@@ -518,8 +517,7 @@ var callBind$1 = { exports: {} };
|
|
|
518
517
|
var esDefineProperty;
|
|
519
518
|
var hasRequiredEsDefineProperty;
|
|
520
519
|
function requireEsDefineProperty() {
|
|
521
|
-
if (hasRequiredEsDefineProperty)
|
|
522
|
-
return esDefineProperty;
|
|
520
|
+
if (hasRequiredEsDefineProperty) return esDefineProperty;
|
|
523
521
|
hasRequiredEsDefineProperty = 1;
|
|
524
522
|
var GetIntrinsic3 = getIntrinsic;
|
|
525
523
|
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
@@ -1988,8 +1986,7 @@ var ActionTypes = {
|
|
|
1988
1986
|
}
|
|
1989
1987
|
};
|
|
1990
1988
|
function isPlainObject$3(obj) {
|
|
1991
|
-
if (typeof obj !== "object" || obj === null)
|
|
1992
|
-
return false;
|
|
1989
|
+
if (typeof obj !== "object" || obj === null) return false;
|
|
1993
1990
|
var proto = obj;
|
|
1994
1991
|
while (Object.getPrototypeOf(proto) !== null) {
|
|
1995
1992
|
proto = Object.getPrototypeOf(proto);
|
|
@@ -1997,10 +1994,8 @@ function isPlainObject$3(obj) {
|
|
|
1997
1994
|
return Object.getPrototypeOf(obj) === proto;
|
|
1998
1995
|
}
|
|
1999
1996
|
function miniKindOf(val) {
|
|
2000
|
-
if (val === void 0)
|
|
2001
|
-
|
|
2002
|
-
if (val === null)
|
|
2003
|
-
return "null";
|
|
1997
|
+
if (val === void 0) return "undefined";
|
|
1998
|
+
if (val === null) return "null";
|
|
2004
1999
|
var type2 = typeof val;
|
|
2005
2000
|
switch (type2) {
|
|
2006
2001
|
case "boolean":
|
|
@@ -2011,12 +2006,9 @@ function miniKindOf(val) {
|
|
|
2011
2006
|
return type2;
|
|
2012
2007
|
}
|
|
2013
2008
|
}
|
|
2014
|
-
if (Array.isArray(val))
|
|
2015
|
-
|
|
2016
|
-
if (
|
|
2017
|
-
return "date";
|
|
2018
|
-
if (isError(val))
|
|
2019
|
-
return "error";
|
|
2009
|
+
if (Array.isArray(val)) return "array";
|
|
2010
|
+
if (isDate$1(val)) return "date";
|
|
2011
|
+
if (isError(val)) return "error";
|
|
2020
2012
|
var constructorName = ctorName(val);
|
|
2021
2013
|
switch (constructorName) {
|
|
2022
2014
|
case "Symbol":
|
|
@@ -2036,8 +2028,7 @@ function isError(val) {
|
|
|
2036
2028
|
return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
|
|
2037
2029
|
}
|
|
2038
2030
|
function isDate$1(val) {
|
|
2039
|
-
if (val instanceof Date)
|
|
2040
|
-
return true;
|
|
2031
|
+
if (val instanceof Date) return true;
|
|
2041
2032
|
return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
|
|
2042
2033
|
}
|
|
2043
2034
|
function kindOf$1(val) {
|
|
@@ -2071,8 +2062,7 @@ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, une
|
|
|
2071
2062
|
unexpectedKeys.forEach(function(key) {
|
|
2072
2063
|
unexpectedKeyCache[key] = true;
|
|
2073
2064
|
});
|
|
2074
|
-
if (action && action.type === ActionTypes.REPLACE)
|
|
2075
|
-
return;
|
|
2065
|
+
if (action && action.type === ActionTypes.REPLACE) return;
|
|
2076
2066
|
if (unexpectedKeys.length > 0) {
|
|
2077
2067
|
return "Unexpected " + (unexpectedKeys.length > 1 ? "keys" : "key") + " " + ('"' + unexpectedKeys.join('", "') + '" found in ' + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ('"' + reducerKeys.join('", "') + '". Unexpected keys will be ignored.');
|
|
2078
2068
|
}
|
|
@@ -2332,9 +2322,7 @@ var __extends = /* @__PURE__ */ function() {
|
|
|
2332
2322
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b2) {
|
|
2333
2323
|
d3.__proto__ = b2;
|
|
2334
2324
|
} || function(d3, b2) {
|
|
2335
|
-
for (var p in b2)
|
|
2336
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
2337
|
-
d3[p] = b2[p];
|
|
2325
|
+
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d3[p] = b2[p];
|
|
2338
2326
|
};
|
|
2339
2327
|
return extendStatics(d2, b);
|
|
2340
2328
|
};
|
|
@@ -2350,8 +2338,7 @@ var __extends = /* @__PURE__ */ function() {
|
|
|
2350
2338
|
}();
|
|
2351
2339
|
var __generator$1 = function(thisArg, body) {
|
|
2352
2340
|
var _ = { label: 0, sent: function() {
|
|
2353
|
-
if (t[0] & 1)
|
|
2354
|
-
throw t[1];
|
|
2341
|
+
if (t[0] & 1) throw t[1];
|
|
2355
2342
|
return t[1];
|
|
2356
2343
|
}, trys: [], ops: [] }, f2, y, t, g;
|
|
2357
2344
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
@@ -2363,64 +2350,58 @@ var __generator$1 = function(thisArg, body) {
|
|
|
2363
2350
|
};
|
|
2364
2351
|
}
|
|
2365
2352
|
function step(op) {
|
|
2366
|
-
if (f2)
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2353
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
2354
|
+
while (_) try {
|
|
2355
|
+
if (f2 = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
2356
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
2357
|
+
switch (op[0]) {
|
|
2358
|
+
case 0:
|
|
2359
|
+
case 1:
|
|
2360
|
+
t = op;
|
|
2361
|
+
break;
|
|
2362
|
+
case 4:
|
|
2363
|
+
_.label++;
|
|
2364
|
+
return { value: op[1], done: false };
|
|
2365
|
+
case 5:
|
|
2366
|
+
_.label++;
|
|
2367
|
+
y = op[1];
|
|
2368
|
+
op = [0];
|
|
2369
|
+
continue;
|
|
2370
|
+
case 7:
|
|
2371
|
+
op = _.ops.pop();
|
|
2372
|
+
_.trys.pop();
|
|
2373
|
+
continue;
|
|
2374
|
+
default:
|
|
2375
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
2376
|
+
_ = 0;
|
|
2377
|
+
continue;
|
|
2378
|
+
}
|
|
2379
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
2380
|
+
_.label = op[1];
|
|
2381
|
+
break;
|
|
2382
|
+
}
|
|
2383
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
2384
|
+
_.label = t[1];
|
|
2377
2385
|
t = op;
|
|
2378
2386
|
break;
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
op = _.ops.pop();
|
|
2389
|
-
_.trys.pop();
|
|
2390
|
-
continue;
|
|
2391
|
-
default:
|
|
2392
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
2393
|
-
_ = 0;
|
|
2394
|
-
continue;
|
|
2395
|
-
}
|
|
2396
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
2397
|
-
_.label = op[1];
|
|
2398
|
-
break;
|
|
2399
|
-
}
|
|
2400
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
2401
|
-
_.label = t[1];
|
|
2402
|
-
t = op;
|
|
2403
|
-
break;
|
|
2404
|
-
}
|
|
2405
|
-
if (t && _.label < t[2]) {
|
|
2406
|
-
_.label = t[2];
|
|
2407
|
-
_.ops.push(op);
|
|
2408
|
-
break;
|
|
2409
|
-
}
|
|
2410
|
-
if (t[2])
|
|
2411
|
-
_.ops.pop();
|
|
2412
|
-
_.trys.pop();
|
|
2413
|
-
continue;
|
|
2414
|
-
}
|
|
2415
|
-
op = body.call(thisArg, _);
|
|
2416
|
-
} catch (e) {
|
|
2417
|
-
op = [6, e];
|
|
2418
|
-
y = 0;
|
|
2419
|
-
} finally {
|
|
2420
|
-
f2 = t = 0;
|
|
2387
|
+
}
|
|
2388
|
+
if (t && _.label < t[2]) {
|
|
2389
|
+
_.label = t[2];
|
|
2390
|
+
_.ops.push(op);
|
|
2391
|
+
break;
|
|
2392
|
+
}
|
|
2393
|
+
if (t[2]) _.ops.pop();
|
|
2394
|
+
_.trys.pop();
|
|
2395
|
+
continue;
|
|
2421
2396
|
}
|
|
2422
|
-
|
|
2423
|
-
|
|
2397
|
+
op = body.call(thisArg, _);
|
|
2398
|
+
} catch (e) {
|
|
2399
|
+
op = [6, e];
|
|
2400
|
+
y = 0;
|
|
2401
|
+
} finally {
|
|
2402
|
+
f2 = t = 0;
|
|
2403
|
+
}
|
|
2404
|
+
if (op[0] & 5) throw op[1];
|
|
2424
2405
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
2425
2406
|
}
|
|
2426
2407
|
};
|
|
@@ -2931,8 +2912,7 @@ var createAsyncThunk = function() {
|
|
|
2931
2912
|
case 0:
|
|
2932
2913
|
_c.trys.push([0, 4, , 5]);
|
|
2933
2914
|
conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState, extra });
|
|
2934
|
-
if (!isThenable$1(conditionResult))
|
|
2935
|
-
return [3, 2];
|
|
2915
|
+
if (!isThenable$1(conditionResult)) return [3, 2];
|
|
2936
2916
|
return [4, conditionResult];
|
|
2937
2917
|
case 1:
|
|
2938
2918
|
conditionResult = _c.sent();
|
|
@@ -3201,8 +3181,7 @@ typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "un
|
|
|
3201
3181
|
enableES5();
|
|
3202
3182
|
var __generator = function(thisArg, body) {
|
|
3203
3183
|
var _ = { label: 0, sent: function() {
|
|
3204
|
-
if (t[0] & 1)
|
|
3205
|
-
throw t[1];
|
|
3184
|
+
if (t[0] & 1) throw t[1];
|
|
3206
3185
|
return t[1];
|
|
3207
3186
|
}, trys: [], ops: [] }, f2, y, t, g;
|
|
3208
3187
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
@@ -3214,64 +3193,58 @@ var __generator = function(thisArg, body) {
|
|
|
3214
3193
|
};
|
|
3215
3194
|
}
|
|
3216
3195
|
function step(op) {
|
|
3217
|
-
if (f2)
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3196
|
+
if (f2) throw new TypeError("Generator is already executing.");
|
|
3197
|
+
while (_) try {
|
|
3198
|
+
if (f2 = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
3199
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
3200
|
+
switch (op[0]) {
|
|
3201
|
+
case 0:
|
|
3202
|
+
case 1:
|
|
3203
|
+
t = op;
|
|
3204
|
+
break;
|
|
3205
|
+
case 4:
|
|
3206
|
+
_.label++;
|
|
3207
|
+
return { value: op[1], done: false };
|
|
3208
|
+
case 5:
|
|
3209
|
+
_.label++;
|
|
3210
|
+
y = op[1];
|
|
3211
|
+
op = [0];
|
|
3212
|
+
continue;
|
|
3213
|
+
case 7:
|
|
3214
|
+
op = _.ops.pop();
|
|
3215
|
+
_.trys.pop();
|
|
3216
|
+
continue;
|
|
3217
|
+
default:
|
|
3218
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3219
|
+
_ = 0;
|
|
3220
|
+
continue;
|
|
3221
|
+
}
|
|
3222
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
3223
|
+
_.label = op[1];
|
|
3224
|
+
break;
|
|
3225
|
+
}
|
|
3226
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
3227
|
+
_.label = t[1];
|
|
3228
3228
|
t = op;
|
|
3229
3229
|
break;
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
op = _.ops.pop();
|
|
3240
|
-
_.trys.pop();
|
|
3241
|
-
continue;
|
|
3242
|
-
default:
|
|
3243
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3244
|
-
_ = 0;
|
|
3245
|
-
continue;
|
|
3246
|
-
}
|
|
3247
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
3248
|
-
_.label = op[1];
|
|
3249
|
-
break;
|
|
3250
|
-
}
|
|
3251
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
3252
|
-
_.label = t[1];
|
|
3253
|
-
t = op;
|
|
3254
|
-
break;
|
|
3255
|
-
}
|
|
3256
|
-
if (t && _.label < t[2]) {
|
|
3257
|
-
_.label = t[2];
|
|
3258
|
-
_.ops.push(op);
|
|
3259
|
-
break;
|
|
3260
|
-
}
|
|
3261
|
-
if (t[2])
|
|
3262
|
-
_.ops.pop();
|
|
3263
|
-
_.trys.pop();
|
|
3264
|
-
continue;
|
|
3265
|
-
}
|
|
3266
|
-
op = body.call(thisArg, _);
|
|
3267
|
-
} catch (e) {
|
|
3268
|
-
op = [6, e];
|
|
3269
|
-
y = 0;
|
|
3270
|
-
} finally {
|
|
3271
|
-
f2 = t = 0;
|
|
3230
|
+
}
|
|
3231
|
+
if (t && _.label < t[2]) {
|
|
3232
|
+
_.label = t[2];
|
|
3233
|
+
_.ops.push(op);
|
|
3234
|
+
break;
|
|
3235
|
+
}
|
|
3236
|
+
if (t[2]) _.ops.pop();
|
|
3237
|
+
_.trys.pop();
|
|
3238
|
+
continue;
|
|
3272
3239
|
}
|
|
3273
|
-
|
|
3274
|
-
|
|
3240
|
+
op = body.call(thisArg, _);
|
|
3241
|
+
} catch (e) {
|
|
3242
|
+
op = [6, e];
|
|
3243
|
+
y = 0;
|
|
3244
|
+
} finally {
|
|
3245
|
+
f2 = t = 0;
|
|
3246
|
+
}
|
|
3247
|
+
if (op[0] & 5) throw op[1];
|
|
3275
3248
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
3276
3249
|
}
|
|
3277
3250
|
};
|
|
@@ -3737,13 +3710,11 @@ function buildThunks(_j) {
|
|
|
3737
3710
|
forced: arg.type === "query" ? isForcedQuery(arg, getState()) : void 0
|
|
3738
3711
|
};
|
|
3739
3712
|
forceQueryFn = arg.type === "query" ? arg[forceQueryFnSymbol] : void 0;
|
|
3740
|
-
if (!forceQueryFn)
|
|
3741
|
-
return [3, 2];
|
|
3713
|
+
if (!forceQueryFn) return [3, 2];
|
|
3742
3714
|
result = forceQueryFn();
|
|
3743
3715
|
return [3, 6];
|
|
3744
3716
|
case 2:
|
|
3745
|
-
if (!endpointDefinition.query)
|
|
3746
|
-
return [3, 4];
|
|
3717
|
+
if (!endpointDefinition.query) return [3, 4];
|
|
3747
3718
|
return [4, baseQuery(endpointDefinition.query(arg.originalArgs), baseQueryApi_1, endpointDefinition.extraOptions)];
|
|
3748
3719
|
case 3:
|
|
3749
3720
|
result = _r.sent();
|
|
@@ -3795,8 +3766,7 @@ function buildThunks(_j) {
|
|
|
3795
3766
|
case 8:
|
|
3796
3767
|
error_1 = _r.sent();
|
|
3797
3768
|
catchedError = error_1;
|
|
3798
|
-
if (!(catchedError instanceof HandledError))
|
|
3799
|
-
return [3, 12];
|
|
3769
|
+
if (!(catchedError instanceof HandledError)) return [3, 12];
|
|
3800
3770
|
transformErrorResponse = defaultTransformResponse;
|
|
3801
3771
|
if (endpointDefinition.query && endpointDefinition.transformErrorResponse) {
|
|
3802
3772
|
transformErrorResponse = endpointDefinition.transformErrorResponse;
|
|
@@ -4035,8 +4005,7 @@ function buildSlice(_j) {
|
|
|
4035
4005
|
}).addCase(queryThunk.rejected, function(draft, _j2) {
|
|
4036
4006
|
var _k2 = _j2.meta, condition = _k2.condition, arg = _k2.arg, requestId = _k2.requestId, error = _j2.error, payload = _j2.payload;
|
|
4037
4007
|
updateQuerySubstateIfExists(draft, arg.queryCacheKey, function(substate) {
|
|
4038
|
-
if (condition)
|
|
4039
|
-
;
|
|
4008
|
+
if (condition) ;
|
|
4040
4009
|
else {
|
|
4041
4010
|
if (substate.requestId !== requestId)
|
|
4042
4011
|
return;
|
|
@@ -5661,6 +5630,9 @@ const getFetchClient = (defaultOptions = {}) => {
|
|
|
5661
5630
|
};
|
|
5662
5631
|
const paramsSerializer = (params) => (url) => {
|
|
5663
5632
|
if (params) {
|
|
5633
|
+
if (typeof params === "string") {
|
|
5634
|
+
return `${url}?${params}`;
|
|
5635
|
+
}
|
|
5664
5636
|
const serializedParams = qs__default.stringify(params, { encode: false });
|
|
5665
5637
|
return `${url}?${serializedParams}`;
|
|
5666
5638
|
}
|
|
@@ -5980,8 +5952,7 @@ function findKey(obj, key) {
|
|
|
5980
5952
|
return null;
|
|
5981
5953
|
}
|
|
5982
5954
|
const _global = (() => {
|
|
5983
|
-
if (typeof globalThis !== "undefined")
|
|
5984
|
-
return globalThis;
|
|
5955
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
5985
5956
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
5986
5957
|
})();
|
|
5987
5958
|
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
@@ -6035,8 +6006,7 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
|
6035
6006
|
let prop;
|
|
6036
6007
|
const merged = {};
|
|
6037
6008
|
destObj = destObj || {};
|
|
6038
|
-
if (sourceObj == null)
|
|
6039
|
-
return destObj;
|
|
6009
|
+
if (sourceObj == null) return destObj;
|
|
6040
6010
|
do {
|
|
6041
6011
|
props = Object.getOwnPropertyNames(sourceObj);
|
|
6042
6012
|
i = props.length;
|
|
@@ -6061,13 +6031,10 @@ const endsWith = (str, searchString, position) => {
|
|
|
6061
6031
|
return lastIndex !== -1 && lastIndex === position;
|
|
6062
6032
|
};
|
|
6063
6033
|
const toArray = (thing) => {
|
|
6064
|
-
if (!thing)
|
|
6065
|
-
|
|
6066
|
-
if (isArray(thing))
|
|
6067
|
-
return thing;
|
|
6034
|
+
if (!thing) return null;
|
|
6035
|
+
if (isArray(thing)) return thing;
|
|
6068
6036
|
let i = thing.length;
|
|
6069
|
-
if (!isNumber(i))
|
|
6070
|
-
return null;
|
|
6037
|
+
if (!isNumber(i)) return null;
|
|
6071
6038
|
const arr = new Array(i);
|
|
6072
6039
|
while (i-- > 0) {
|
|
6073
6040
|
arr[i] = thing[i];
|
|
@@ -6124,8 +6091,7 @@ const freezeMethods = (obj) => {
|
|
|
6124
6091
|
return false;
|
|
6125
6092
|
}
|
|
6126
6093
|
const value = obj[name];
|
|
6127
|
-
if (!isFunction(value))
|
|
6128
|
-
return;
|
|
6094
|
+
if (!isFunction(value)) return;
|
|
6129
6095
|
descriptor.enumerable = false;
|
|
6130
6096
|
if ("writable" in descriptor) {
|
|
6131
6097
|
descriptor.writable = false;
|
|
@@ -6352,8 +6318,7 @@ function removeBrackets(key) {
|
|
|
6352
6318
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
6353
6319
|
}
|
|
6354
6320
|
function renderKey(path, key, dots) {
|
|
6355
|
-
if (!path)
|
|
6356
|
-
return key;
|
|
6321
|
+
if (!path) return key;
|
|
6357
6322
|
return path.concat(key).map(function each(token, i) {
|
|
6358
6323
|
token = removeBrackets(token);
|
|
6359
6324
|
return !dots && i ? "[" + token + "]" : token;
|
|
@@ -6387,8 +6352,7 @@ function toFormData(obj, formData, options) {
|
|
|
6387
6352
|
throw new TypeError("visitor must be a function");
|
|
6388
6353
|
}
|
|
6389
6354
|
function convertValue(value) {
|
|
6390
|
-
if (value === null)
|
|
6391
|
-
return "";
|
|
6355
|
+
if (value === null) return "";
|
|
6392
6356
|
if (utils$1.isDate(value)) {
|
|
6393
6357
|
return value.toISOString();
|
|
6394
6358
|
}
|
|
@@ -6431,8 +6395,7 @@ function toFormData(obj, formData, options) {
|
|
|
6431
6395
|
isVisitable
|
|
6432
6396
|
});
|
|
6433
6397
|
function build(value, path) {
|
|
6434
|
-
if (utils$1.isUndefined(value))
|
|
6435
|
-
return;
|
|
6398
|
+
if (utils$1.isUndefined(value)) return;
|
|
6436
6399
|
if (stack.indexOf(value) !== -1) {
|
|
6437
6400
|
throw Error("Circular reference detected in " + path.join("."));
|
|
6438
6401
|
}
|
|
@@ -6640,8 +6603,7 @@ function arrayToObject2(arr) {
|
|
|
6640
6603
|
function formDataToJSON(formData) {
|
|
6641
6604
|
function buildPath(path, value, target, index) {
|
|
6642
6605
|
let name = path[index++];
|
|
6643
|
-
if (name === "__proto__")
|
|
6644
|
-
return true;
|
|
6606
|
+
if (name === "__proto__") return true;
|
|
6645
6607
|
const isNumericKey = Number.isFinite(+name);
|
|
6646
6608
|
const isLast = index >= path.length;
|
|
6647
6609
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
@@ -6682,7 +6644,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
6682
6644
|
}
|
|
6683
6645
|
}
|
|
6684
6646
|
}
|
|
6685
|
-
return (
|
|
6647
|
+
return (0, JSON.stringify)(rawValue);
|
|
6686
6648
|
}
|
|
6687
6649
|
const defaults = {
|
|
6688
6650
|
transitional: transitionalDefaults,
|
|
@@ -6847,8 +6809,7 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
|
6847
6809
|
if (isHeaderNameFilter) {
|
|
6848
6810
|
value = header;
|
|
6849
6811
|
}
|
|
6850
|
-
if (!utils$1.isString(value))
|
|
6851
|
-
return;
|
|
6812
|
+
if (!utils$1.isString(value)) return;
|
|
6852
6813
|
if (utils$1.isString(filter2)) {
|
|
6853
6814
|
return value.indexOf(filter2) !== -1;
|
|
6854
6815
|
}
|
|
@@ -7526,7 +7487,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
7526
7487
|
};
|
|
7527
7488
|
const streamChunk = function* (chunk, chunkSize) {
|
|
7528
7489
|
let len = chunk.byteLength;
|
|
7529
|
-
if (
|
|
7490
|
+
if (len < chunkSize) {
|
|
7530
7491
|
yield chunk;
|
|
7531
7492
|
return;
|
|
7532
7493
|
}
|
|
@@ -8065,8 +8026,7 @@ class CancelToken {
|
|
|
8065
8026
|
});
|
|
8066
8027
|
const token = this;
|
|
8067
8028
|
this.promise.then((cancel) => {
|
|
8068
|
-
if (!token._listeners)
|
|
8069
|
-
return;
|
|
8029
|
+
if (!token._listeners) return;
|
|
8070
8030
|
let i = token._listeners.length;
|
|
8071
8031
|
while (i-- > 0) {
|
|
8072
8032
|
token._listeners[i](cancel);
|
|
@@ -8260,41 +8220,32 @@ var scheduler_production_min = {};
|
|
|
8260
8220
|
*/
|
|
8261
8221
|
var hasRequiredScheduler_production_min;
|
|
8262
8222
|
function requireScheduler_production_min() {
|
|
8263
|
-
if (hasRequiredScheduler_production_min)
|
|
8264
|
-
return scheduler_production_min;
|
|
8223
|
+
if (hasRequiredScheduler_production_min) return scheduler_production_min;
|
|
8265
8224
|
hasRequiredScheduler_production_min = 1;
|
|
8266
8225
|
(function(exports) {
|
|
8267
8226
|
function f2(a2, b) {
|
|
8268
8227
|
var c = a2.length;
|
|
8269
8228
|
a2.push(b);
|
|
8270
|
-
a:
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
else
|
|
8276
|
-
break a;
|
|
8277
|
-
}
|
|
8229
|
+
a: for (; 0 < c; ) {
|
|
8230
|
+
var d2 = c - 1 >>> 1, e = a2[d2];
|
|
8231
|
+
if (0 < g(e, b)) a2[d2] = b, a2[c] = e, c = d2;
|
|
8232
|
+
else break a;
|
|
8233
|
+
}
|
|
8278
8234
|
}
|
|
8279
8235
|
function h2(a2) {
|
|
8280
8236
|
return 0 === a2.length ? null : a2[0];
|
|
8281
8237
|
}
|
|
8282
8238
|
function k(a2) {
|
|
8283
|
-
if (0 === a2.length)
|
|
8284
|
-
return null;
|
|
8239
|
+
if (0 === a2.length) return null;
|
|
8285
8240
|
var b = a2[0], c = a2.pop();
|
|
8286
8241
|
if (c !== b) {
|
|
8287
8242
|
a2[0] = c;
|
|
8288
|
-
a:
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
a2[d2] = x, a2[n] = c, d2 = n;
|
|
8295
|
-
else
|
|
8296
|
-
break a;
|
|
8297
|
-
}
|
|
8243
|
+
a: for (var d2 = 0, e = a2.length, w = e >>> 1; d2 < w; ) {
|
|
8244
|
+
var m = 2 * (d2 + 1) - 1, C = a2[m], n = m + 1, x = a2[n];
|
|
8245
|
+
if (0 > g(C, c)) n < e && 0 > g(x, C) ? (a2[d2] = x, a2[n] = c, d2 = n) : (a2[d2] = C, a2[m] = c, d2 = m);
|
|
8246
|
+
else if (n < e && 0 > g(x, c)) a2[d2] = x, a2[n] = c, d2 = n;
|
|
8247
|
+
else break a;
|
|
8248
|
+
}
|
|
8298
8249
|
}
|
|
8299
8250
|
return b;
|
|
8300
8251
|
}
|
|
@@ -8317,25 +8268,20 @@ function requireScheduler_production_min() {
|
|
|
8317
8268
|
"undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
8318
8269
|
function G(a2) {
|
|
8319
8270
|
for (var b = h2(t); null !== b; ) {
|
|
8320
|
-
if (null === b.callback)
|
|
8321
|
-
|
|
8322
|
-
else
|
|
8323
|
-
k(t), b.sortIndex = b.expirationTime, f2(r, b);
|
|
8324
|
-
else
|
|
8325
|
-
break;
|
|
8271
|
+
if (null === b.callback) k(t);
|
|
8272
|
+
else if (b.startTime <= a2) k(t), b.sortIndex = b.expirationTime, f2(r, b);
|
|
8273
|
+
else break;
|
|
8326
8274
|
b = h2(t);
|
|
8327
8275
|
}
|
|
8328
8276
|
}
|
|
8329
8277
|
function H(a2) {
|
|
8330
8278
|
B = false;
|
|
8331
8279
|
G(a2);
|
|
8332
|
-
if (!A)
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
null !== b && K(H, b.startTime - a2);
|
|
8338
|
-
}
|
|
8280
|
+
if (!A) if (null !== h2(r)) A = true, I(J);
|
|
8281
|
+
else {
|
|
8282
|
+
var b = h2(t);
|
|
8283
|
+
null !== b && K(H, b.startTime - a2);
|
|
8284
|
+
}
|
|
8339
8285
|
}
|
|
8340
8286
|
function J(a2, b) {
|
|
8341
8287
|
A = false;
|
|
@@ -8353,12 +8299,10 @@ function requireScheduler_production_min() {
|
|
|
8353
8299
|
b = exports.unstable_now();
|
|
8354
8300
|
"function" === typeof e ? v2.callback = e : v2 === h2(r) && k(r);
|
|
8355
8301
|
G(b);
|
|
8356
|
-
} else
|
|
8357
|
-
k(r);
|
|
8302
|
+
} else k(r);
|
|
8358
8303
|
v2 = h2(r);
|
|
8359
8304
|
}
|
|
8360
|
-
if (null !== v2)
|
|
8361
|
-
var w = true;
|
|
8305
|
+
if (null !== v2) var w = true;
|
|
8362
8306
|
else {
|
|
8363
8307
|
var m = h2(t);
|
|
8364
8308
|
null !== m && K(H, m.startTime - b);
|
|
@@ -8383,24 +8327,21 @@ function requireScheduler_production_min() {
|
|
|
8383
8327
|
} finally {
|
|
8384
8328
|
b ? S() : (N = false, O = null);
|
|
8385
8329
|
}
|
|
8386
|
-
} else
|
|
8387
|
-
N = false;
|
|
8330
|
+
} else N = false;
|
|
8388
8331
|
}
|
|
8389
8332
|
var S;
|
|
8390
|
-
if ("function" === typeof F)
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
};
|
|
8333
|
+
if ("function" === typeof F) S = function() {
|
|
8334
|
+
F(R);
|
|
8335
|
+
};
|
|
8394
8336
|
else if ("undefined" !== typeof MessageChannel) {
|
|
8395
8337
|
var T = new MessageChannel(), U = T.port2;
|
|
8396
8338
|
T.port1.onmessage = R;
|
|
8397
8339
|
S = function() {
|
|
8398
8340
|
U.postMessage(null);
|
|
8399
8341
|
};
|
|
8400
|
-
} else
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
};
|
|
8342
|
+
} else S = function() {
|
|
8343
|
+
D(R, 0);
|
|
8344
|
+
};
|
|
8404
8345
|
function I(a2) {
|
|
8405
8346
|
O = a2;
|
|
8406
8347
|
N || (N = true, S());
|
|
@@ -8524,8 +8465,7 @@ var scheduler_development = {};
|
|
|
8524
8465
|
*/
|
|
8525
8466
|
var hasRequiredScheduler_development;
|
|
8526
8467
|
function requireScheduler_development() {
|
|
8527
|
-
if (hasRequiredScheduler_development)
|
|
8528
|
-
return scheduler_development;
|
|
8468
|
+
if (hasRequiredScheduler_development) return scheduler_development;
|
|
8529
8469
|
hasRequiredScheduler_development = 1;
|
|
8530
8470
|
(function(exports) {
|
|
8531
8471
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -8680,8 +8620,7 @@ function requireScheduler_development() {
|
|
|
8680
8620
|
var previousPriorityLevel = currentPriorityLevel;
|
|
8681
8621
|
try {
|
|
8682
8622
|
var currentTime;
|
|
8683
|
-
if (enableProfiling)
|
|
8684
|
-
;
|
|
8623
|
+
if (enableProfiling) ;
|
|
8685
8624
|
else {
|
|
8686
8625
|
return workLoop(hasTimeRemaining, initialTime2);
|
|
8687
8626
|
}
|
|
@@ -9004,19 +8943,14 @@ function E(r) {
|
|
|
9004
8943
|
}
|
|
9005
8944
|
function h(e, n) {
|
|
9006
8945
|
const o = useContext(e)[d];
|
|
9007
|
-
if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o)
|
|
9008
|
-
throw new Error("useContextSelector requires special context");
|
|
8946
|
+
if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o) throw new Error("useContextSelector requires special context");
|
|
9009
8947
|
const { v: { current: c }, n: { current: u }, l: s } = o, i = n(c), [p, l] = useReducer((e2, r) => {
|
|
9010
|
-
if (!r)
|
|
9011
|
-
|
|
9012
|
-
if (
|
|
9013
|
-
throw r.p;
|
|
9014
|
-
if (r.n === u)
|
|
9015
|
-
return Object.is(e2[1], i) ? e2 : [c, i];
|
|
8948
|
+
if (!r) return [c, i];
|
|
8949
|
+
if ("p" in r) throw r.p;
|
|
8950
|
+
if (r.n === u) return Object.is(e2[1], i) ? e2 : [c, i];
|
|
9016
8951
|
try {
|
|
9017
8952
|
if ("v" in r) {
|
|
9018
|
-
if (Object.is(e2[0], r.v))
|
|
9019
|
-
return e2;
|
|
8953
|
+
if (Object.is(e2[0], r.v)) return e2;
|
|
9020
8954
|
const t = n(r.v);
|
|
9021
8955
|
return Object.is(e2[1], t) ? e2 : [r.v, t];
|
|
9022
8956
|
}
|
|
@@ -9575,10 +9509,8 @@ function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
|
|
|
9575
9509
|
year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
|
|
9576
9510
|
let y1 = year - 1;
|
|
9577
9511
|
let monthOffset = -2;
|
|
9578
|
-
if (month <= 2)
|
|
9579
|
-
|
|
9580
|
-
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
|
|
9581
|
-
monthOffset = -1;
|
|
9512
|
+
if (month <= 2) monthOffset = 0;
|
|
9513
|
+
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
|
|
9582
9514
|
return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
|
|
9583
9515
|
}
|
|
9584
9516
|
function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
|
|
@@ -9643,10 +9575,8 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
|
|
|
9643
9575
|
let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
|
|
9644
9576
|
let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
|
|
9645
9577
|
let leapAdj = 2;
|
|
9646
|
-
if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1))
|
|
9647
|
-
|
|
9648
|
-
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
|
|
9649
|
-
leapAdj = 1;
|
|
9578
|
+
if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
|
|
9579
|
+
else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
|
|
9650
9580
|
let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
|
|
9651
9581
|
let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
|
|
9652
9582
|
return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
|
|
@@ -9698,8 +9628,7 @@ function $14e0f24ef4ac5c92$var$timeToMs(a2) {
|
|
|
9698
9628
|
}
|
|
9699
9629
|
let $14e0f24ef4ac5c92$var$localTimeZone = null;
|
|
9700
9630
|
function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
|
|
9701
|
-
if ($14e0f24ef4ac5c92$var$localTimeZone == null)
|
|
9702
|
-
$14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9631
|
+
if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9703
9632
|
return $14e0f24ef4ac5c92$var$localTimeZone;
|
|
9704
9633
|
}
|
|
9705
9634
|
function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
|
|
@@ -9714,10 +9643,8 @@ function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, se
|
|
|
9714
9643
|
return date.getTime();
|
|
9715
9644
|
}
|
|
9716
9645
|
function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
|
|
9717
|
-
if (timeZone === "UTC")
|
|
9718
|
-
|
|
9719
|
-
if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2())
|
|
9720
|
-
return new Date(ms).getTimezoneOffset() * -6e4;
|
|
9646
|
+
if (timeZone === "UTC") return 0;
|
|
9647
|
+
if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) return new Date(ms).getTimezoneOffset() * -6e4;
|
|
9721
9648
|
let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
|
|
9722
9649
|
let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
|
|
9723
9650
|
return utc - Math.floor(ms / 1e3) * 1e3;
|
|
@@ -9741,9 +9668,7 @@ function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
|
|
|
9741
9668
|
}
|
|
9742
9669
|
let parts = formatter.formatToParts(new Date(ms));
|
|
9743
9670
|
let namedParts = {};
|
|
9744
|
-
for (let part of parts)
|
|
9745
|
-
if (part.type !== "literal")
|
|
9746
|
-
namedParts[part.type] = part.value;
|
|
9671
|
+
for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
|
|
9747
9672
|
return {
|
|
9748
9673
|
// Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
|
|
9749
9674
|
year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
|
|
@@ -9770,8 +9695,7 @@ function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
|
|
|
9770
9695
|
}
|
|
9771
9696
|
function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
|
|
9772
9697
|
let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
|
|
9773
|
-
if (timeZone === "UTC")
|
|
9774
|
-
return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
|
|
9698
|
+
if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
|
|
9775
9699
|
if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
|
|
9776
9700
|
dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
9777
9701
|
let date2 = /* @__PURE__ */ new Date();
|
|
@@ -9784,18 +9708,16 @@ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguatio
|
|
|
9784
9708
|
let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
|
|
9785
9709
|
let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
|
|
9786
9710
|
let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
|
|
9787
|
-
if (valid.length === 1)
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
throw new RangeError("Multiple possible absolute times found");
|
|
9798
|
-
}
|
|
9711
|
+
if (valid.length === 1) return valid[0];
|
|
9712
|
+
if (valid.length > 1) switch (disambiguation) {
|
|
9713
|
+
case "compatible":
|
|
9714
|
+
case "earlier":
|
|
9715
|
+
return valid[0];
|
|
9716
|
+
case "later":
|
|
9717
|
+
return valid[valid.length - 1];
|
|
9718
|
+
case "reject":
|
|
9719
|
+
throw new RangeError("Multiple possible absolute times found");
|
|
9720
|
+
}
|
|
9799
9721
|
switch (disambiguation) {
|
|
9800
9722
|
case "earlier":
|
|
9801
9723
|
return Math.min(ms - offsetBefore, ms - offsetAfter);
|
|
@@ -9826,17 +9748,13 @@ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
|
|
|
9826
9748
|
}
|
|
9827
9749
|
function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
|
|
9828
9750
|
let hour = 0, minute = 0, second = 0, millisecond = 0;
|
|
9829
|
-
if ("timeZone" in date)
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
return date;
|
|
9833
|
-
if (time)
|
|
9834
|
-
({ hour, minute, second, millisecond } = time);
|
|
9751
|
+
if ("timeZone" in date) ({ hour, minute, second, millisecond } = date);
|
|
9752
|
+
else if ("hour" in date && !time) return date;
|
|
9753
|
+
if (time) ({ hour, minute, second, millisecond } = time);
|
|
9835
9754
|
return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
|
|
9836
9755
|
}
|
|
9837
9756
|
function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
|
|
9838
|
-
if (date.calendar.identifier === calendar.identifier)
|
|
9839
|
-
return date;
|
|
9757
|
+
if (date.calendar.identifier === calendar.identifier) return date;
|
|
9840
9758
|
let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
|
|
9841
9759
|
let copy = date.copy();
|
|
9842
9760
|
copy.calendar = calendar;
|
|
@@ -9849,8 +9767,7 @@ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
|
|
|
9849
9767
|
}
|
|
9850
9768
|
function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
|
|
9851
9769
|
if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
|
|
9852
|
-
if (date.timeZone === timeZone)
|
|
9853
|
-
return date;
|
|
9770
|
+
if (date.timeZone === timeZone) return date;
|
|
9854
9771
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
9855
9772
|
}
|
|
9856
9773
|
let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
|
|
@@ -9869,8 +9786,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9869
9786
|
let mutableDate = date.copy();
|
|
9870
9787
|
let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
|
|
9871
9788
|
$735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
|
|
9872
|
-
if (mutableDate.calendar.balanceYearMonth)
|
|
9873
|
-
mutableDate.calendar.balanceYearMonth(mutableDate, date);
|
|
9789
|
+
if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
|
|
9874
9790
|
mutableDate.month += duration.months || 0;
|
|
9875
9791
|
$735220c2d4774dd3$var$balanceYearMonth(mutableDate);
|
|
9876
9792
|
$735220c2d4774dd3$var$constrainMonthDay(mutableDate);
|
|
@@ -9878,8 +9794,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9878
9794
|
mutableDate.day += duration.days || 0;
|
|
9879
9795
|
mutableDate.day += days;
|
|
9880
9796
|
$735220c2d4774dd3$var$balanceDay(mutableDate);
|
|
9881
|
-
if (mutableDate.calendar.balanceDate)
|
|
9882
|
-
mutableDate.calendar.balanceDate(mutableDate);
|
|
9797
|
+
if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
|
|
9883
9798
|
if (mutableDate.year < 1) {
|
|
9884
9799
|
mutableDate.year = 1;
|
|
9885
9800
|
mutableDate.month = 1;
|
|
@@ -9907,8 +9822,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
|
|
|
9907
9822
|
}
|
|
9908
9823
|
function $735220c2d4774dd3$var$addYears(date, years) {
|
|
9909
9824
|
var _date_calendar_isInverseEra, _date_calendar;
|
|
9910
|
-
if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date))
|
|
9911
|
-
years = -years;
|
|
9825
|
+
if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date)) years = -years;
|
|
9912
9826
|
date.year += years;
|
|
9913
9827
|
}
|
|
9914
9828
|
function $735220c2d4774dd3$var$balanceYearMonth(date) {
|
|
@@ -9939,16 +9853,13 @@ function $735220c2d4774dd3$var$constrainMonthDay(date) {
|
|
|
9939
9853
|
date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
|
|
9940
9854
|
}
|
|
9941
9855
|
function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
|
|
9942
|
-
if (date.calendar.constrainDate)
|
|
9943
|
-
date.calendar.constrainDate(date);
|
|
9856
|
+
if (date.calendar.constrainDate) date.calendar.constrainDate(date);
|
|
9944
9857
|
date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
|
|
9945
9858
|
$735220c2d4774dd3$var$constrainMonthDay(date);
|
|
9946
9859
|
}
|
|
9947
9860
|
function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
|
|
9948
9861
|
let inverseDuration = {};
|
|
9949
|
-
for (let key in duration)
|
|
9950
|
-
if (typeof duration[key] === "number")
|
|
9951
|
-
inverseDuration[key] = -duration[key];
|
|
9862
|
+
for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
|
|
9952
9863
|
return inverseDuration;
|
|
9953
9864
|
}
|
|
9954
9865
|
function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
|
|
@@ -9956,27 +9867,19 @@ function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
|
|
|
9956
9867
|
}
|
|
9957
9868
|
function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
|
|
9958
9869
|
let mutableDate = date.copy();
|
|
9959
|
-
if (fields.era != null)
|
|
9960
|
-
|
|
9961
|
-
if (fields.
|
|
9962
|
-
|
|
9963
|
-
if (fields.month != null)
|
|
9964
|
-
mutableDate.month = fields.month;
|
|
9965
|
-
if (fields.day != null)
|
|
9966
|
-
mutableDate.day = fields.day;
|
|
9870
|
+
if (fields.era != null) mutableDate.era = fields.era;
|
|
9871
|
+
if (fields.year != null) mutableDate.year = fields.year;
|
|
9872
|
+
if (fields.month != null) mutableDate.month = fields.month;
|
|
9873
|
+
if (fields.day != null) mutableDate.day = fields.day;
|
|
9967
9874
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
|
|
9968
9875
|
return mutableDate;
|
|
9969
9876
|
}
|
|
9970
9877
|
function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
|
|
9971
9878
|
let mutableValue = value.copy();
|
|
9972
|
-
if (fields.hour != null)
|
|
9973
|
-
|
|
9974
|
-
if (fields.
|
|
9975
|
-
|
|
9976
|
-
if (fields.second != null)
|
|
9977
|
-
mutableValue.second = fields.second;
|
|
9978
|
-
if (fields.millisecond != null)
|
|
9979
|
-
mutableValue.millisecond = fields.millisecond;
|
|
9879
|
+
if (fields.hour != null) mutableValue.hour = fields.hour;
|
|
9880
|
+
if (fields.minute != null) mutableValue.minute = fields.minute;
|
|
9881
|
+
if (fields.second != null) mutableValue.second = fields.second;
|
|
9882
|
+
if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
|
|
9980
9883
|
$735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
|
|
9981
9884
|
return mutableValue;
|
|
9982
9885
|
}
|
|
@@ -9999,8 +9902,7 @@ function $735220c2d4774dd3$export$7555de1e070510cb(time) {
|
|
|
9999
9902
|
}
|
|
10000
9903
|
function $735220c2d4774dd3$var$nonNegativeMod(a2, b) {
|
|
10001
9904
|
let result = a2 % b;
|
|
10002
|
-
if (result < 0)
|
|
10003
|
-
result += b;
|
|
9905
|
+
if (result < 0) result += b;
|
|
10004
9906
|
return result;
|
|
10005
9907
|
}
|
|
10006
9908
|
function $735220c2d4774dd3$var$addTimeFields(time, duration) {
|
|
@@ -10016,8 +9918,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10016
9918
|
case "era": {
|
|
10017
9919
|
let eras = value.calendar.getEras();
|
|
10018
9920
|
let eraIndex = eras.indexOf(value.era);
|
|
10019
|
-
if (eraIndex < 0)
|
|
10020
|
-
throw new Error("Invalid era: " + value.era);
|
|
9921
|
+
if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
|
|
10021
9922
|
eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
|
|
10022
9923
|
mutable.era = eras[eraIndex];
|
|
10023
9924
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
|
|
@@ -10025,13 +9926,10 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10025
9926
|
}
|
|
10026
9927
|
case "year":
|
|
10027
9928
|
var _mutable_calendar_isInverseEra, _mutable_calendar;
|
|
10028
|
-
if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable))
|
|
10029
|
-
amount = -amount;
|
|
9929
|
+
if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable)) amount = -amount;
|
|
10030
9930
|
mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
|
|
10031
|
-
if (mutable.year === -Infinity)
|
|
10032
|
-
|
|
10033
|
-
if (mutable.calendar.balanceYearMonth)
|
|
10034
|
-
mutable.calendar.balanceYearMonth(mutable, value);
|
|
9931
|
+
if (mutable.year === -Infinity) mutable.year = 1;
|
|
9932
|
+
if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
|
|
10035
9933
|
break;
|
|
10036
9934
|
case "month":
|
|
10037
9935
|
mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
|
|
@@ -10042,8 +9940,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
|
|
|
10042
9940
|
default:
|
|
10043
9941
|
throw new Error("Unsupported field " + field);
|
|
10044
9942
|
}
|
|
10045
|
-
if (value.calendar.balanceDate)
|
|
10046
|
-
value.calendar.balanceDate(mutable);
|
|
9943
|
+
if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
|
|
10047
9944
|
$735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
|
|
10048
9945
|
return mutable;
|
|
10049
9946
|
}
|
|
@@ -10079,21 +9976,15 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
|
|
|
10079
9976
|
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max2, round = false) {
|
|
10080
9977
|
if (round) {
|
|
10081
9978
|
value += Math.sign(amount);
|
|
10082
|
-
if (value < min)
|
|
10083
|
-
value = max2;
|
|
9979
|
+
if (value < min) value = max2;
|
|
10084
9980
|
let div = Math.abs(amount);
|
|
10085
|
-
if (amount > 0)
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
value = Math.floor(value / div) * div;
|
|
10089
|
-
if (value > max2)
|
|
10090
|
-
value = min;
|
|
9981
|
+
if (amount > 0) value = Math.ceil(value / div) * div;
|
|
9982
|
+
else value = Math.floor(value / div) * div;
|
|
9983
|
+
if (value > max2) value = min;
|
|
10091
9984
|
} else {
|
|
10092
9985
|
value += amount;
|
|
10093
|
-
if (value < min)
|
|
10094
|
-
|
|
10095
|
-
else if (value > max2)
|
|
10096
|
-
value = min + (value - max2 - 1);
|
|
9986
|
+
if (value < min) value = max2 - (min - value - 1);
|
|
9987
|
+
else if (value > max2) value = min + (value - max2 - 1);
|
|
10097
9988
|
}
|
|
10098
9989
|
return value;
|
|
10099
9990
|
}
|
|
@@ -10169,27 +10060,23 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
10169
10060
|
function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
|
|
10170
10061
|
let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
|
|
10171
10062
|
let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
|
|
10172
|
-
if (res.compare(plainDateTime) === 0)
|
|
10173
|
-
return dateTime;
|
|
10063
|
+
if (res.compare(plainDateTime) === 0) return dateTime;
|
|
10174
10064
|
let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
|
|
10175
10065
|
return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
|
|
10176
10066
|
}
|
|
10177
10067
|
const $fae977aafc393c5c$var$ABSOLUTE_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
|
|
10178
10068
|
function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
|
|
10179
10069
|
let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);
|
|
10180
|
-
if (!m)
|
|
10181
|
-
throw new Error("Invalid ISO 8601 date time string: " + value);
|
|
10070
|
+
if (!m) throw new Error("Invalid ISO 8601 date time string: " + value);
|
|
10182
10071
|
let date = new $35ea8db9cb2ccb90$export$d3b7288e7994edea($fae977aafc393c5c$var$parseNumber(m[1], 1, 9999), $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, timeZone, 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1e3 : 0);
|
|
10183
10072
|
date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
|
|
10184
10073
|
var _m_;
|
|
10185
|
-
if (m[8])
|
|
10186
|
-
date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 36e5 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : "0", 0, 59) * 6e4;
|
|
10074
|
+
if (m[8]) date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 36e5 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : "0", 0, 59) * 6e4;
|
|
10187
10075
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
10188
10076
|
}
|
|
10189
10077
|
function $fae977aafc393c5c$var$parseNumber(value, min, max2) {
|
|
10190
10078
|
let val = Number(value);
|
|
10191
|
-
if (val < min || val > max2)
|
|
10192
|
-
throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
|
|
10079
|
+
if (val < min || val > max2) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max2}`);
|
|
10193
10080
|
return val;
|
|
10194
10081
|
}
|
|
10195
10082
|
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
@@ -10224,8 +10111,7 @@ function _class_private_field_init(obj, privateMap, value) {
|
|
|
10224
10111
|
function $35ea8db9cb2ccb90$var$shiftArgs(args) {
|
|
10225
10112
|
let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
|
|
10226
10113
|
let era;
|
|
10227
|
-
if (typeof args[0] === "string")
|
|
10228
|
-
era = args.shift();
|
|
10114
|
+
if (typeof args[0] === "string") era = args.shift();
|
|
10229
10115
|
else {
|
|
10230
10116
|
let eras = calendar.getEras();
|
|
10231
10117
|
era = eras[eras.length - 1];
|
|
@@ -10245,10 +10131,8 @@ var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
|
|
|
10245
10131
|
class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
|
|
10246
10132
|
/** Returns a copy of this date. */
|
|
10247
10133
|
copy() {
|
|
10248
|
-
if (this.era)
|
|
10249
|
-
|
|
10250
|
-
else
|
|
10251
|
-
return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
10134
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
|
|
10135
|
+
else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
10252
10136
|
}
|
|
10253
10137
|
/** Returns a new `CalendarDate` with the given duration added to it. */
|
|
10254
10138
|
add(duration) {
|
|
@@ -10299,10 +10183,8 @@ var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
|
|
|
10299
10183
|
class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
|
|
10300
10184
|
/** Returns a copy of this date. */
|
|
10301
10185
|
copy() {
|
|
10302
|
-
if (this.era)
|
|
10303
|
-
|
|
10304
|
-
else
|
|
10305
|
-
return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10186
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10187
|
+
else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
10306
10188
|
}
|
|
10307
10189
|
/** Returns a new `CalendarDateTime` with the given duration added to it. */
|
|
10308
10190
|
add(duration) {
|
|
@@ -10342,8 +10224,7 @@ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
|
|
|
10342
10224
|
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
|
|
10343
10225
|
compare(b) {
|
|
10344
10226
|
let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
|
|
10345
|
-
if (res === 0)
|
|
10346
|
-
return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
|
|
10227
|
+
if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
|
|
10347
10228
|
return res;
|
|
10348
10229
|
}
|
|
10349
10230
|
constructor(...args) {
|
|
@@ -10368,10 +10249,8 @@ var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
|
|
|
10368
10249
|
class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
|
|
10369
10250
|
/** Returns a copy of this date. */
|
|
10370
10251
|
copy() {
|
|
10371
|
-
if (this.era)
|
|
10372
|
-
|
|
10373
|
-
else
|
|
10374
|
-
return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
10252
|
+
if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
10253
|
+
else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
10375
10254
|
}
|
|
10376
10255
|
/** Returns a new `ZonedDateTime` with the given duration added to it. */
|
|
10377
10256
|
add(duration) {
|
|
@@ -11999,4 +11878,4 @@ export {
|
|
|
11999
11878
|
Layouts as L,
|
|
12000
11879
|
useTracking as u
|
|
12001
11880
|
};
|
|
12002
|
-
//# sourceMappingURL=index-
|
|
11881
|
+
//# sourceMappingURL=index-UBwCyQ_3-AADEvpEo.mjs.map
|