@strapi/plugin-users-permissions 5.4.2 → 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.
Files changed (30) hide show
  1. package/dist/_chunks/{index-Bzdgm3YY.js → index-6xS_NVnz.js} +21 -14
  2. package/dist/_chunks/{index-Bzdgm3YY.js.map → index-6xS_NVnz.js.map} +1 -1
  3. package/dist/_chunks/{index-CH7DTQRg.js → index-7urCw5UD.js} +3 -4
  4. package/dist/_chunks/{index-CH7DTQRg.js.map → index-7urCw5UD.js.map} +1 -1
  5. package/dist/_chunks/{index-YiI4HHBF.mjs → index-AVbfDpH6.mjs} +2 -2
  6. package/dist/_chunks/{index-YiI4HHBF.mjs.map → index-AVbfDpH6.mjs.map} +1 -1
  7. package/dist/_chunks/{index-og30lh2q.mjs → index-BLaxSWbC.mjs} +3 -3
  8. package/dist/_chunks/{index-og30lh2q.mjs.map → index-BLaxSWbC.mjs.map} +1 -1
  9. package/dist/_chunks/{index-DQjBkqk6.mjs → index-BReXSOfU.mjs} +2 -2
  10. package/dist/_chunks/{index-DQjBkqk6.mjs.map → index-BReXSOfU.mjs.map} +1 -1
  11. package/dist/_chunks/{index-rj9z5xOr.mjs → index-BYBVysRS.mjs} +3 -3
  12. package/dist/_chunks/{index-rj9z5xOr.mjs.map → index-BYBVysRS.mjs.map} +1 -1
  13. package/dist/_chunks/{index-DS3khL98.js → index-CCAQw4t9.js} +5 -6
  14. package/dist/_chunks/{index-DS3khL98.js.map → index-CCAQw4t9.js.map} +1 -1
  15. package/dist/_chunks/{index-Dby0-3V3.mjs → index-CvQ-xY7a.mjs} +21 -14
  16. package/dist/_chunks/{index-Dby0-3V3.mjs.map → index-CvQ-xY7a.mjs.map} +1 -1
  17. package/dist/_chunks/{index-DkLfQU9x.js → index-CzxZzlFc.js} +8 -9
  18. package/dist/_chunks/{index-DkLfQU9x.js.map → index-CzxZzlFc.js.map} +1 -1
  19. package/dist/_chunks/{index-B31GwOBY.js → index-Dz5Q1Yft.js} +3 -4
  20. package/dist/_chunks/{index-B31GwOBY.js.map → index-Dz5Q1Yft.js.map} +1 -1
  21. package/dist/_chunks/{index-BnX71_B4-BeiPUoDw.mjs → index-UBwCyQ_3-AADEvpEo.mjs} +232 -356
  22. package/dist/_chunks/index-UBwCyQ_3-AADEvpEo.mjs.map +1 -0
  23. package/dist/_chunks/{index-BnX71_B4-BwTVUy-u.js → index-UBwCyQ_3-lG3F5mWr.js} +233 -358
  24. package/dist/_chunks/index-UBwCyQ_3-lG3F5mWr.js.map +1 -0
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +1 -1
  27. package/package.json +7 -7
  28. package/server/graphql/types/me.js +1 -0
  29. package/dist/_chunks/index-BnX71_B4-BeiPUoDw.mjs.map +0 -1
  30. package/dist/_chunks/index-BnX71_B4-BwTVUy-u.js.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 && !({ __proto__: null } instanceof $Object);
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
- return "undefined";
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
- return "array";
2016
- if (isDate$1(val))
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
- throw new TypeError("Generator is already executing.");
2368
- while (_)
2369
- try {
2370
- 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)
2371
- return t;
2372
- if (y = 0, t)
2373
- op = [op[0] & 2, t.value];
2374
- switch (op[0]) {
2375
- case 0:
2376
- case 1:
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
- case 4:
2380
- _.label++;
2381
- return { value: op[1], done: false };
2382
- case 5:
2383
- _.label++;
2384
- y = op[1];
2385
- op = [0];
2386
- continue;
2387
- case 7:
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
- if (op[0] & 5)
2423
- throw op[1];
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
- throw new TypeError("Generator is already executing.");
3219
- while (_)
3220
- try {
3221
- 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)
3222
- return t;
3223
- if (y = 0, t)
3224
- op = [op[0] & 2, t.value];
3225
- switch (op[0]) {
3226
- case 0:
3227
- case 1:
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
- case 4:
3231
- _.label++;
3232
- return { value: op[1], done: false };
3233
- case 5:
3234
- _.label++;
3235
- y = op[1];
3236
- op = [0];
3237
- continue;
3238
- case 7:
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
- if (op[0] & 5)
3274
- throw op[1];
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;
@@ -5983,8 +5952,7 @@ function findKey(obj, key) {
5983
5952
  return null;
5984
5953
  }
5985
5954
  const _global = (() => {
5986
- if (typeof globalThis !== "undefined")
5987
- return globalThis;
5955
+ if (typeof globalThis !== "undefined") return globalThis;
5988
5956
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
5989
5957
  })();
5990
5958
  const isContextDefined = (context) => !isUndefined(context) && context !== _global;
@@ -6038,8 +6006,7 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
6038
6006
  let prop;
6039
6007
  const merged = {};
6040
6008
  destObj = destObj || {};
6041
- if (sourceObj == null)
6042
- return destObj;
6009
+ if (sourceObj == null) return destObj;
6043
6010
  do {
6044
6011
  props = Object.getOwnPropertyNames(sourceObj);
6045
6012
  i = props.length;
@@ -6064,13 +6031,10 @@ const endsWith = (str, searchString, position) => {
6064
6031
  return lastIndex !== -1 && lastIndex === position;
6065
6032
  };
6066
6033
  const toArray = (thing) => {
6067
- if (!thing)
6068
- return null;
6069
- if (isArray(thing))
6070
- return thing;
6034
+ if (!thing) return null;
6035
+ if (isArray(thing)) return thing;
6071
6036
  let i = thing.length;
6072
- if (!isNumber(i))
6073
- return null;
6037
+ if (!isNumber(i)) return null;
6074
6038
  const arr = new Array(i);
6075
6039
  while (i-- > 0) {
6076
6040
  arr[i] = thing[i];
@@ -6127,8 +6091,7 @@ const freezeMethods = (obj) => {
6127
6091
  return false;
6128
6092
  }
6129
6093
  const value = obj[name];
6130
- if (!isFunction(value))
6131
- return;
6094
+ if (!isFunction(value)) return;
6132
6095
  descriptor.enumerable = false;
6133
6096
  if ("writable" in descriptor) {
6134
6097
  descriptor.writable = false;
@@ -6355,8 +6318,7 @@ function removeBrackets(key) {
6355
6318
  return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
6356
6319
  }
6357
6320
  function renderKey(path, key, dots) {
6358
- if (!path)
6359
- return key;
6321
+ if (!path) return key;
6360
6322
  return path.concat(key).map(function each(token, i) {
6361
6323
  token = removeBrackets(token);
6362
6324
  return !dots && i ? "[" + token + "]" : token;
@@ -6390,8 +6352,7 @@ function toFormData(obj, formData, options) {
6390
6352
  throw new TypeError("visitor must be a function");
6391
6353
  }
6392
6354
  function convertValue(value) {
6393
- if (value === null)
6394
- return "";
6355
+ if (value === null) return "";
6395
6356
  if (utils$1.isDate(value)) {
6396
6357
  return value.toISOString();
6397
6358
  }
@@ -6434,8 +6395,7 @@ function toFormData(obj, formData, options) {
6434
6395
  isVisitable
6435
6396
  });
6436
6397
  function build(value, path) {
6437
- if (utils$1.isUndefined(value))
6438
- return;
6398
+ if (utils$1.isUndefined(value)) return;
6439
6399
  if (stack.indexOf(value) !== -1) {
6440
6400
  throw Error("Circular reference detected in " + path.join("."));
6441
6401
  }
@@ -6643,8 +6603,7 @@ function arrayToObject2(arr) {
6643
6603
  function formDataToJSON(formData) {
6644
6604
  function buildPath(path, value, target, index) {
6645
6605
  let name = path[index++];
6646
- if (name === "__proto__")
6647
- return true;
6606
+ if (name === "__proto__") return true;
6648
6607
  const isNumericKey = Number.isFinite(+name);
6649
6608
  const isLast = index >= path.length;
6650
6609
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -6685,7 +6644,7 @@ function stringifySafely(rawValue, parser, encoder) {
6685
6644
  }
6686
6645
  }
6687
6646
  }
6688
- return (encoder || JSON.stringify)(rawValue);
6647
+ return (0, JSON.stringify)(rawValue);
6689
6648
  }
6690
6649
  const defaults = {
6691
6650
  transitional: transitionalDefaults,
@@ -6850,8 +6809,7 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
6850
6809
  if (isHeaderNameFilter) {
6851
6810
  value = header;
6852
6811
  }
6853
- if (!utils$1.isString(value))
6854
- return;
6812
+ if (!utils$1.isString(value)) return;
6855
6813
  if (utils$1.isString(filter2)) {
6856
6814
  return value.indexOf(filter2) !== -1;
6857
6815
  }
@@ -7529,7 +7487,7 @@ const composeSignals = (signals, timeout) => {
7529
7487
  };
7530
7488
  const streamChunk = function* (chunk, chunkSize) {
7531
7489
  let len = chunk.byteLength;
7532
- if (!chunkSize || len < chunkSize) {
7490
+ if (len < chunkSize) {
7533
7491
  yield chunk;
7534
7492
  return;
7535
7493
  }
@@ -8068,8 +8026,7 @@ class CancelToken {
8068
8026
  });
8069
8027
  const token = this;
8070
8028
  this.promise.then((cancel) => {
8071
- if (!token._listeners)
8072
- return;
8029
+ if (!token._listeners) return;
8073
8030
  let i = token._listeners.length;
8074
8031
  while (i-- > 0) {
8075
8032
  token._listeners[i](cancel);
@@ -8263,41 +8220,32 @@ var scheduler_production_min = {};
8263
8220
  */
8264
8221
  var hasRequiredScheduler_production_min;
8265
8222
  function requireScheduler_production_min() {
8266
- if (hasRequiredScheduler_production_min)
8267
- return scheduler_production_min;
8223
+ if (hasRequiredScheduler_production_min) return scheduler_production_min;
8268
8224
  hasRequiredScheduler_production_min = 1;
8269
8225
  (function(exports) {
8270
8226
  function f2(a2, b) {
8271
8227
  var c = a2.length;
8272
8228
  a2.push(b);
8273
- a:
8274
- for (; 0 < c; ) {
8275
- var d2 = c - 1 >>> 1, e = a2[d2];
8276
- if (0 < g(e, b))
8277
- a2[d2] = b, a2[c] = e, c = d2;
8278
- else
8279
- break a;
8280
- }
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
+ }
8281
8234
  }
8282
8235
  function h2(a2) {
8283
8236
  return 0 === a2.length ? null : a2[0];
8284
8237
  }
8285
8238
  function k(a2) {
8286
- if (0 === a2.length)
8287
- return null;
8239
+ if (0 === a2.length) return null;
8288
8240
  var b = a2[0], c = a2.pop();
8289
8241
  if (c !== b) {
8290
8242
  a2[0] = c;
8291
- a:
8292
- for (var d2 = 0, e = a2.length, w = e >>> 1; d2 < w; ) {
8293
- var m = 2 * (d2 + 1) - 1, C = a2[m], n = m + 1, x = a2[n];
8294
- if (0 > g(C, c))
8295
- n < e && 0 > g(x, C) ? (a2[d2] = x, a2[n] = c, d2 = n) : (a2[d2] = C, a2[m] = c, d2 = m);
8296
- else if (n < e && 0 > g(x, c))
8297
- a2[d2] = x, a2[n] = c, d2 = n;
8298
- else
8299
- break a;
8300
- }
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
+ }
8301
8249
  }
8302
8250
  return b;
8303
8251
  }
@@ -8320,25 +8268,20 @@ function requireScheduler_production_min() {
8320
8268
  "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
8321
8269
  function G(a2) {
8322
8270
  for (var b = h2(t); null !== b; ) {
8323
- if (null === b.callback)
8324
- k(t);
8325
- else if (b.startTime <= a2)
8326
- k(t), b.sortIndex = b.expirationTime, f2(r, b);
8327
- else
8328
- 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;
8329
8274
  b = h2(t);
8330
8275
  }
8331
8276
  }
8332
8277
  function H(a2) {
8333
8278
  B = false;
8334
8279
  G(a2);
8335
- if (!A)
8336
- if (null !== h2(r))
8337
- A = true, I(J);
8338
- else {
8339
- var b = h2(t);
8340
- null !== b && K(H, b.startTime - a2);
8341
- }
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
+ }
8342
8285
  }
8343
8286
  function J(a2, b) {
8344
8287
  A = false;
@@ -8356,12 +8299,10 @@ function requireScheduler_production_min() {
8356
8299
  b = exports.unstable_now();
8357
8300
  "function" === typeof e ? v2.callback = e : v2 === h2(r) && k(r);
8358
8301
  G(b);
8359
- } else
8360
- k(r);
8302
+ } else k(r);
8361
8303
  v2 = h2(r);
8362
8304
  }
8363
- if (null !== v2)
8364
- var w = true;
8305
+ if (null !== v2) var w = true;
8365
8306
  else {
8366
8307
  var m = h2(t);
8367
8308
  null !== m && K(H, m.startTime - b);
@@ -8386,24 +8327,21 @@ function requireScheduler_production_min() {
8386
8327
  } finally {
8387
8328
  b ? S() : (N = false, O = null);
8388
8329
  }
8389
- } else
8390
- N = false;
8330
+ } else N = false;
8391
8331
  }
8392
8332
  var S;
8393
- if ("function" === typeof F)
8394
- S = function() {
8395
- F(R);
8396
- };
8333
+ if ("function" === typeof F) S = function() {
8334
+ F(R);
8335
+ };
8397
8336
  else if ("undefined" !== typeof MessageChannel) {
8398
8337
  var T = new MessageChannel(), U = T.port2;
8399
8338
  T.port1.onmessage = R;
8400
8339
  S = function() {
8401
8340
  U.postMessage(null);
8402
8341
  };
8403
- } else
8404
- S = function() {
8405
- D(R, 0);
8406
- };
8342
+ } else S = function() {
8343
+ D(R, 0);
8344
+ };
8407
8345
  function I(a2) {
8408
8346
  O = a2;
8409
8347
  N || (N = true, S());
@@ -8527,8 +8465,7 @@ var scheduler_development = {};
8527
8465
  */
8528
8466
  var hasRequiredScheduler_development;
8529
8467
  function requireScheduler_development() {
8530
- if (hasRequiredScheduler_development)
8531
- return scheduler_development;
8468
+ if (hasRequiredScheduler_development) return scheduler_development;
8532
8469
  hasRequiredScheduler_development = 1;
8533
8470
  (function(exports) {
8534
8471
  if (process.env.NODE_ENV !== "production") {
@@ -8683,8 +8620,7 @@ function requireScheduler_development() {
8683
8620
  var previousPriorityLevel = currentPriorityLevel;
8684
8621
  try {
8685
8622
  var currentTime;
8686
- if (enableProfiling)
8687
- ;
8623
+ if (enableProfiling) ;
8688
8624
  else {
8689
8625
  return workLoop(hasTimeRemaining, initialTime2);
8690
8626
  }
@@ -9007,19 +8943,14 @@ function E(r) {
9007
8943
  }
9008
8944
  function h(e, n) {
9009
8945
  const o = useContext(e)[d];
9010
- if ("object" == typeof process && "production" !== process.env.NODE_ENV && !o)
9011
- 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");
9012
8947
  const { v: { current: c }, n: { current: u }, l: s } = o, i = n(c), [p, l] = useReducer((e2, r) => {
9013
- if (!r)
9014
- return [c, i];
9015
- if ("p" in r)
9016
- throw r.p;
9017
- if (r.n === u)
9018
- 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];
9019
8951
  try {
9020
8952
  if ("v" in r) {
9021
- if (Object.is(e2[0], r.v))
9022
- return e2;
8953
+ if (Object.is(e2[0], r.v)) return e2;
9023
8954
  const t = n(r.v);
9024
8955
  return Object.is(e2[1], t) ? e2 : [r.v, t];
9025
8956
  }
@@ -9578,10 +9509,8 @@ function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
9578
9509
  year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
9579
9510
  let y1 = year - 1;
9580
9511
  let monthOffset = -2;
9581
- if (month <= 2)
9582
- monthOffset = 0;
9583
- else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
9584
- monthOffset = -1;
9512
+ if (month <= 2) monthOffset = 0;
9513
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
9585
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);
9586
9515
  }
9587
9516
  function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
@@ -9646,10 +9575,8 @@ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
9646
9575
  let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
9647
9576
  let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
9648
9577
  let leapAdj = 2;
9649
- if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1))
9650
- leapAdj = 0;
9651
- else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
9652
- leapAdj = 1;
9578
+ if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
9579
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
9653
9580
  let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
9654
9581
  let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
9655
9582
  return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
@@ -9701,8 +9628,7 @@ function $14e0f24ef4ac5c92$var$timeToMs(a2) {
9701
9628
  }
9702
9629
  let $14e0f24ef4ac5c92$var$localTimeZone = null;
9703
9630
  function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
9704
- if ($14e0f24ef4ac5c92$var$localTimeZone == null)
9705
- $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
9631
+ if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
9706
9632
  return $14e0f24ef4ac5c92$var$localTimeZone;
9707
9633
  }
9708
9634
  function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
@@ -9717,10 +9643,8 @@ function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, se
9717
9643
  return date.getTime();
9718
9644
  }
9719
9645
  function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
9720
- if (timeZone === "UTC")
9721
- return 0;
9722
- if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2())
9723
- 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;
9724
9648
  let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
9725
9649
  let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
9726
9650
  return utc - Math.floor(ms / 1e3) * 1e3;
@@ -9744,9 +9668,7 @@ function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
9744
9668
  }
9745
9669
  let parts = formatter.formatToParts(new Date(ms));
9746
9670
  let namedParts = {};
9747
- for (let part of parts)
9748
- if (part.type !== "literal")
9749
- namedParts[part.type] = part.value;
9671
+ for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
9750
9672
  return {
9751
9673
  // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
9752
9674
  year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
@@ -9773,8 +9695,7 @@ function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
9773
9695
  }
9774
9696
  function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
9775
9697
  let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
9776
- if (timeZone === "UTC")
9777
- return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
9698
+ if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
9778
9699
  if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
9779
9700
  dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
9780
9701
  let date2 = /* @__PURE__ */ new Date();
@@ -9787,18 +9708,16 @@ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguatio
9787
9708
  let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
9788
9709
  let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
9789
9710
  let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
9790
- if (valid.length === 1)
9791
- return valid[0];
9792
- if (valid.length > 1)
9793
- switch (disambiguation) {
9794
- case "compatible":
9795
- case "earlier":
9796
- return valid[0];
9797
- case "later":
9798
- return valid[valid.length - 1];
9799
- case "reject":
9800
- throw new RangeError("Multiple possible absolute times found");
9801
- }
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
+ }
9802
9721
  switch (disambiguation) {
9803
9722
  case "earlier":
9804
9723
  return Math.min(ms - offsetBefore, ms - offsetAfter);
@@ -9829,17 +9748,13 @@ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
9829
9748
  }
9830
9749
  function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
9831
9750
  let hour = 0, minute = 0, second = 0, millisecond = 0;
9832
- if ("timeZone" in date)
9833
- ({ hour, minute, second, millisecond } = date);
9834
- else if ("hour" in date && !time)
9835
- return date;
9836
- if (time)
9837
- ({ 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);
9838
9754
  return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
9839
9755
  }
9840
9756
  function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
9841
- if (date.calendar.identifier === calendar.identifier)
9842
- return date;
9757
+ if (date.calendar.identifier === calendar.identifier) return date;
9843
9758
  let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
9844
9759
  let copy = date.copy();
9845
9760
  copy.calendar = calendar;
@@ -9852,8 +9767,7 @@ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
9852
9767
  }
9853
9768
  function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
9854
9769
  if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
9855
- if (date.timeZone === timeZone)
9856
- return date;
9770
+ if (date.timeZone === timeZone) return date;
9857
9771
  return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
9858
9772
  }
9859
9773
  let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
@@ -9872,8 +9786,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
9872
9786
  let mutableDate = date.copy();
9873
9787
  let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
9874
9788
  $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
9875
- if (mutableDate.calendar.balanceYearMonth)
9876
- mutableDate.calendar.balanceYearMonth(mutableDate, date);
9789
+ if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
9877
9790
  mutableDate.month += duration.months || 0;
9878
9791
  $735220c2d4774dd3$var$balanceYearMonth(mutableDate);
9879
9792
  $735220c2d4774dd3$var$constrainMonthDay(mutableDate);
@@ -9881,8 +9794,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
9881
9794
  mutableDate.day += duration.days || 0;
9882
9795
  mutableDate.day += days;
9883
9796
  $735220c2d4774dd3$var$balanceDay(mutableDate);
9884
- if (mutableDate.calendar.balanceDate)
9885
- mutableDate.calendar.balanceDate(mutableDate);
9797
+ if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
9886
9798
  if (mutableDate.year < 1) {
9887
9799
  mutableDate.year = 1;
9888
9800
  mutableDate.month = 1;
@@ -9910,8 +9822,7 @@ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
9910
9822
  }
9911
9823
  function $735220c2d4774dd3$var$addYears(date, years) {
9912
9824
  var _date_calendar_isInverseEra, _date_calendar;
9913
- if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date))
9914
- 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;
9915
9826
  date.year += years;
9916
9827
  }
9917
9828
  function $735220c2d4774dd3$var$balanceYearMonth(date) {
@@ -9942,16 +9853,13 @@ function $735220c2d4774dd3$var$constrainMonthDay(date) {
9942
9853
  date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
9943
9854
  }
9944
9855
  function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
9945
- if (date.calendar.constrainDate)
9946
- date.calendar.constrainDate(date);
9856
+ if (date.calendar.constrainDate) date.calendar.constrainDate(date);
9947
9857
  date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
9948
9858
  $735220c2d4774dd3$var$constrainMonthDay(date);
9949
9859
  }
9950
9860
  function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
9951
9861
  let inverseDuration = {};
9952
- for (let key in duration)
9953
- if (typeof duration[key] === "number")
9954
- inverseDuration[key] = -duration[key];
9862
+ for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
9955
9863
  return inverseDuration;
9956
9864
  }
9957
9865
  function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
@@ -9959,27 +9867,19 @@ function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
9959
9867
  }
9960
9868
  function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
9961
9869
  let mutableDate = date.copy();
9962
- if (fields.era != null)
9963
- mutableDate.era = fields.era;
9964
- if (fields.year != null)
9965
- mutableDate.year = fields.year;
9966
- if (fields.month != null)
9967
- mutableDate.month = fields.month;
9968
- if (fields.day != null)
9969
- 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;
9970
9874
  $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
9971
9875
  return mutableDate;
9972
9876
  }
9973
9877
  function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
9974
9878
  let mutableValue = value.copy();
9975
- if (fields.hour != null)
9976
- mutableValue.hour = fields.hour;
9977
- if (fields.minute != null)
9978
- mutableValue.minute = fields.minute;
9979
- if (fields.second != null)
9980
- mutableValue.second = fields.second;
9981
- if (fields.millisecond != null)
9982
- 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;
9983
9883
  $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
9984
9884
  return mutableValue;
9985
9885
  }
@@ -10002,8 +9902,7 @@ function $735220c2d4774dd3$export$7555de1e070510cb(time) {
10002
9902
  }
10003
9903
  function $735220c2d4774dd3$var$nonNegativeMod(a2, b) {
10004
9904
  let result = a2 % b;
10005
- if (result < 0)
10006
- result += b;
9905
+ if (result < 0) result += b;
10007
9906
  return result;
10008
9907
  }
10009
9908
  function $735220c2d4774dd3$var$addTimeFields(time, duration) {
@@ -10019,8 +9918,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
10019
9918
  case "era": {
10020
9919
  let eras = value.calendar.getEras();
10021
9920
  let eraIndex = eras.indexOf(value.era);
10022
- if (eraIndex < 0)
10023
- throw new Error("Invalid era: " + value.era);
9921
+ if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
10024
9922
  eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
10025
9923
  mutable.era = eras[eraIndex];
10026
9924
  $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
@@ -10028,13 +9926,10 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
10028
9926
  }
10029
9927
  case "year":
10030
9928
  var _mutable_calendar_isInverseEra, _mutable_calendar;
10031
- if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable))
10032
- 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;
10033
9930
  mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
10034
- if (mutable.year === -Infinity)
10035
- mutable.year = 1;
10036
- if (mutable.calendar.balanceYearMonth)
10037
- mutable.calendar.balanceYearMonth(mutable, value);
9931
+ if (mutable.year === -Infinity) mutable.year = 1;
9932
+ if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
10038
9933
  break;
10039
9934
  case "month":
10040
9935
  mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
@@ -10045,8 +9940,7 @@ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options
10045
9940
  default:
10046
9941
  throw new Error("Unsupported field " + field);
10047
9942
  }
10048
- if (value.calendar.balanceDate)
10049
- value.calendar.balanceDate(mutable);
9943
+ if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
10050
9944
  $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
10051
9945
  return mutable;
10052
9946
  }
@@ -10082,21 +9976,15 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
10082
9976
  function $735220c2d4774dd3$var$cycleValue(value, amount, min, max2, round = false) {
10083
9977
  if (round) {
10084
9978
  value += Math.sign(amount);
10085
- if (value < min)
10086
- value = max2;
9979
+ if (value < min) value = max2;
10087
9980
  let div = Math.abs(amount);
10088
- if (amount > 0)
10089
- value = Math.ceil(value / div) * div;
10090
- else
10091
- value = Math.floor(value / div) * div;
10092
- if (value > max2)
10093
- 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;
10094
9984
  } else {
10095
9985
  value += amount;
10096
- if (value < min)
10097
- value = max2 - (min - value - 1);
10098
- else if (value > max2)
10099
- value = min + (value - max2 - 1);
9986
+ if (value < min) value = max2 - (min - value - 1);
9987
+ else if (value > max2) value = min + (value - max2 - 1);
10100
9988
  }
10101
9989
  return value;
10102
9990
  }
@@ -10172,27 +10060,23 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
10172
10060
  function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
10173
10061
  let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
10174
10062
  let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
10175
- if (res.compare(plainDateTime) === 0)
10176
- return dateTime;
10063
+ if (res.compare(plainDateTime) === 0) return dateTime;
10177
10064
  let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
10178
10065
  return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
10179
10066
  }
10180
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)$/;
10181
10068
  function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
10182
10069
  let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);
10183
- if (!m)
10184
- throw new Error("Invalid ISO 8601 date time string: " + value);
10070
+ if (!m) throw new Error("Invalid ISO 8601 date time string: " + value);
10185
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);
10186
10072
  date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
10187
10073
  var _m_;
10188
- if (m[8])
10189
- 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;
10190
10075
  return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
10191
10076
  }
10192
10077
  function $fae977aafc393c5c$var$parseNumber(value, min, max2) {
10193
10078
  let val = Number(value);
10194
- if (val < min || val > max2)
10195
- 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}`);
10196
10080
  return val;
10197
10081
  }
10198
10082
  function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
@@ -10227,8 +10111,7 @@ function _class_private_field_init(obj, privateMap, value) {
10227
10111
  function $35ea8db9cb2ccb90$var$shiftArgs(args) {
10228
10112
  let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
10229
10113
  let era;
10230
- if (typeof args[0] === "string")
10231
- era = args.shift();
10114
+ if (typeof args[0] === "string") era = args.shift();
10232
10115
  else {
10233
10116
  let eras = calendar.getEras();
10234
10117
  era = eras[eras.length - 1];
@@ -10248,10 +10131,8 @@ var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
10248
10131
  class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
10249
10132
  /** Returns a copy of this date. */
10250
10133
  copy() {
10251
- if (this.era)
10252
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
10253
- else
10254
- 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);
10255
10136
  }
10256
10137
  /** Returns a new `CalendarDate` with the given duration added to it. */
10257
10138
  add(duration) {
@@ -10302,10 +10183,8 @@ var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
10302
10183
  class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
10303
10184
  /** Returns a copy of this date. */
10304
10185
  copy() {
10305
- if (this.era)
10306
- return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
10307
- else
10308
- 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);
10309
10188
  }
10310
10189
  /** Returns a new `CalendarDateTime` with the given duration added to it. */
10311
10190
  add(duration) {
@@ -10345,8 +10224,7 @@ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
10345
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. */
10346
10225
  compare(b) {
10347
10226
  let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
10348
- if (res === 0)
10349
- return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
10227
+ if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
10350
10228
  return res;
10351
10229
  }
10352
10230
  constructor(...args) {
@@ -10371,10 +10249,8 @@ var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
10371
10249
  class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
10372
10250
  /** Returns a copy of this date. */
10373
10251
  copy() {
10374
- if (this.era)
10375
- 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);
10376
- else
10377
- 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);
10378
10254
  }
10379
10255
  /** Returns a new `ZonedDateTime` with the given duration added to it. */
10380
10256
  add(duration) {
@@ -12002,4 +11878,4 @@ export {
12002
11878
  Layouts as L,
12003
11879
  useTracking as u
12004
11880
  };
12005
- //# sourceMappingURL=index-BnX71_B4-BeiPUoDw.mjs.map
11881
+ //# sourceMappingURL=index-UBwCyQ_3-AADEvpEo.mjs.map