@telicent-oss/ds 0.27.2 → 0.27.4-TELFE-644.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/ds.umd.cjs CHANGED
@@ -2465,7 +2465,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2465
2465
  }) => /* @__PURE__ */ jsx$1("header", { ...headerProps, children: /* @__PURE__ */ jsx$1("nav", { ...navProps, children: children2 }) });
2466
2466
  var util;
2467
2467
  (function(util2) {
2468
- util2.assertEqual = (val) => val;
2468
+ util2.assertEqual = (_2) => {
2469
+ };
2469
2470
  function assertIs(_arg) {
2470
2471
  }
2471
2472
  util2.assertIs = assertIs;
@@ -2509,7 +2510,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2509
2510
  }
2510
2511
  return void 0;
2511
2512
  };
2512
- util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
2513
+ util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
2513
2514
  function joinValues(array2, separator = " | ") {
2514
2515
  return array2.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
2515
2516
  }
@@ -2561,7 +2562,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2561
2562
  case "string":
2562
2563
  return ZodParsedType.string;
2563
2564
  case "number":
2564
- return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2565
+ return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2565
2566
  case "boolean":
2566
2567
  return ZodParsedType.boolean;
2567
2568
  case "function":
@@ -2922,24 +2923,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2922
2923
  const isDirty = (x2) => x2.status === "dirty";
2923
2924
  const isValid = (x2) => x2.status === "valid";
2924
2925
  const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
2925
- function __classPrivateFieldGet(receiver, state, kind, f) {
2926
- if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2927
- return state.get(receiver);
2928
- }
2929
- function __classPrivateFieldSet(receiver, state, value2, kind, f) {
2930
- if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2931
- return state.set(receiver, value2), value2;
2932
- }
2933
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
2934
- var e = new Error(message);
2935
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2936
- };
2937
2926
  var errorUtil;
2938
2927
  (function(errorUtil2) {
2939
2928
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
2940
- errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
2929
+ errorUtil2.toString = (message) => typeof message === "string" ? message : message == null ? void 0 : message.message;
2941
2930
  })(errorUtil || (errorUtil = {}));
2942
- var _ZodEnum_cache, _ZodNativeEnum_cache;
2943
2931
  class ParseInputLazyPath {
2944
2932
  constructor(parent, value2, path, key) {
2945
2933
  this._cachedPath = [];
@@ -2950,7 +2938,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2950
2938
  }
2951
2939
  get path() {
2952
2940
  if (!this._cachedPath.length) {
2953
- if (this._key instanceof Array) {
2941
+ if (Array.isArray(this._key)) {
2954
2942
  this._cachedPath.push(...this._path, ...this._key);
2955
2943
  } else {
2956
2944
  this._cachedPath.push(...this._path, this._key);
@@ -2988,17 +2976,16 @@ var __privateWrapper = (obj, member, setter, getter) => ({
2988
2976
  if (errorMap2)
2989
2977
  return { errorMap: errorMap2, description };
2990
2978
  const customMap = (iss, ctx) => {
2991
- var _a2, _b2;
2992
2979
  const { message } = params;
2993
2980
  if (iss.code === "invalid_enum_value") {
2994
- return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
2981
+ return { message: message ?? ctx.defaultError };
2995
2982
  }
2996
2983
  if (typeof ctx.data === "undefined") {
2997
- return { message: (_a2 = message !== null && message !== void 0 ? message : required_error) !== null && _a2 !== void 0 ? _a2 : ctx.defaultError };
2984
+ return { message: message ?? required_error ?? ctx.defaultError };
2998
2985
  }
2999
2986
  if (iss.code !== "invalid_type")
3000
2987
  return { message: ctx.defaultError };
3001
- return { message: (_b2 = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b2 !== void 0 ? _b2 : ctx.defaultError };
2988
+ return { message: message ?? invalid_type_error ?? ctx.defaultError };
3002
2989
  };
3003
2990
  return { errorMap: customMap, description };
3004
2991
  }
@@ -3050,14 +3037,13 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3050
3037
  throw result.error;
3051
3038
  }
3052
3039
  safeParse(data, params) {
3053
- var _a2;
3054
3040
  const ctx = {
3055
3041
  common: {
3056
3042
  issues: [],
3057
- async: (_a2 = params === null || params === void 0 ? void 0 : params.async) !== null && _a2 !== void 0 ? _a2 : false,
3058
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
3043
+ async: (params == null ? void 0 : params.async) ?? false,
3044
+ contextualErrorMap: params == null ? void 0 : params.errorMap
3059
3045
  },
3060
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
3046
+ path: (params == null ? void 0 : params.path) || [],
3061
3047
  schemaErrorMap: this._def.errorMap,
3062
3048
  parent: null,
3063
3049
  data,
@@ -3088,7 +3074,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3088
3074
  issues: ctx.common.issues
3089
3075
  };
3090
3076
  } catch (err) {
3091
- if ((_b2 = (_a2 = err === null || err === void 0 ? void 0 : err.message) === null || _a2 === void 0 ? void 0 : _a2.toLowerCase()) === null || _b2 === void 0 ? void 0 : _b2.includes("encountered")) {
3077
+ if ((_b2 = (_a2 = err == null ? void 0 : err.message) == null ? void 0 : _a2.toLowerCase()) == null ? void 0 : _b2.includes("encountered")) {
3092
3078
  this["~standard"].async = true;
3093
3079
  }
3094
3080
  ctx.common = {
@@ -3113,10 +3099,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3113
3099
  const ctx = {
3114
3100
  common: {
3115
3101
  issues: [],
3116
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
3102
+ contextualErrorMap: params == null ? void 0 : params.errorMap,
3117
3103
  async: true
3118
3104
  },
3119
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
3105
+ path: (params == null ? void 0 : params.path) || [],
3120
3106
  schemaErrorMap: this._def.errorMap,
3121
3107
  parent: null,
3122
3108
  data,
@@ -3306,13 +3292,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3306
3292
  const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
3307
3293
  const dateRegex = new RegExp(`^${dateRegexSource}$`);
3308
3294
  function timeRegexSource(args) {
3309
- let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
3295
+ let secondsRegexSource = `[0-5]\\d`;
3310
3296
  if (args.precision) {
3311
- regex = `${regex}\\.\\d{${args.precision}}`;
3297
+ secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
3312
3298
  } else if (args.precision == null) {
3313
- regex = `${regex}(\\.\\d+)?`;
3299
+ secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
3314
3300
  }
3315
- return regex;
3301
+ const secondsQuantifier = args.precision ? "+" : "?";
3302
+ return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
3316
3303
  }
3317
3304
  function timeRegex(args) {
3318
3305
  return new RegExp(`^${timeRegexSource(args)}$`);
@@ -3344,12 +3331,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3344
3331
  const decoded = JSON.parse(atob(base64));
3345
3332
  if (typeof decoded !== "object" || decoded === null)
3346
3333
  return false;
3347
- if (!decoded.typ || !decoded.alg)
3334
+ if ("typ" in decoded && (decoded == null ? void 0 : decoded.typ) !== "JWT")
3335
+ return false;
3336
+ if (!decoded.alg)
3348
3337
  return false;
3349
3338
  if (alg && decoded.alg !== alg)
3350
3339
  return false;
3351
3340
  return true;
3352
- } catch (_a2) {
3341
+ } catch {
3353
3342
  return false;
3354
3343
  }
3355
3344
  }
@@ -3508,7 +3497,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3508
3497
  } else if (check.kind === "url") {
3509
3498
  try {
3510
3499
  new URL(input.data);
3511
- } catch (_a2) {
3500
+ } catch {
3512
3501
  ctx = this._getOrReturnCtx(input, ctx);
3513
3502
  addIssueToContext(ctx, {
3514
3503
  validation: "url",
@@ -3720,7 +3709,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3720
3709
  return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
3721
3710
  }
3722
3711
  datetime(options) {
3723
- var _a2, _b2;
3724
3712
  if (typeof options === "string") {
3725
3713
  return this._addCheck({
3726
3714
  kind: "datetime",
@@ -3732,10 +3720,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3732
3720
  }
3733
3721
  return this._addCheck({
3734
3722
  kind: "datetime",
3735
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3736
- offset: (_a2 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a2 !== void 0 ? _a2 : false,
3737
- local: (_b2 = options === null || options === void 0 ? void 0 : options.local) !== null && _b2 !== void 0 ? _b2 : false,
3738
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3723
+ precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision,
3724
+ offset: (options == null ? void 0 : options.offset) ?? false,
3725
+ local: (options == null ? void 0 : options.local) ?? false,
3726
+ ...errorUtil.errToObj(options == null ? void 0 : options.message)
3739
3727
  });
3740
3728
  }
3741
3729
  date(message) {
@@ -3751,8 +3739,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3751
3739
  }
3752
3740
  return this._addCheck({
3753
3741
  kind: "time",
3754
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3755
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3742
+ precision: typeof (options == null ? void 0 : options.precision) === "undefined" ? null : options == null ? void 0 : options.precision,
3743
+ ...errorUtil.errToObj(options == null ? void 0 : options.message)
3756
3744
  });
3757
3745
  }
3758
3746
  duration(message) {
@@ -3769,8 +3757,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3769
3757
  return this._addCheck({
3770
3758
  kind: "includes",
3771
3759
  value: value2,
3772
- position: options === null || options === void 0 ? void 0 : options.position,
3773
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3760
+ position: options == null ? void 0 : options.position,
3761
+ ...errorUtil.errToObj(options == null ? void 0 : options.message)
3774
3762
  });
3775
3763
  }
3776
3764
  startsWith(value2, message) {
@@ -3902,11 +3890,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3902
3890
  }
3903
3891
  }
3904
3892
  ZodString.create = (params) => {
3905
- var _a2;
3906
3893
  return new ZodString({
3907
3894
  checks: [],
3908
3895
  typeName: ZodFirstPartyTypeKind.ZodString,
3909
- coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
3896
+ coerce: (params == null ? void 0 : params.coerce) ?? false,
3910
3897
  ...processCreateParams(params)
3911
3898
  });
3912
3899
  };
@@ -3914,9 +3901,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
3914
3901
  const valDecCount = (val.toString().split(".")[1] || "").length;
3915
3902
  const stepDecCount = (step.toString().split(".")[1] || "").length;
3916
3903
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
3917
- const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
3918
- const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
3919
- return valInt % stepInt / Math.pow(10, decCount);
3904
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
3905
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
3906
+ return valInt % stepInt / 10 ** decCount;
3920
3907
  }
3921
3908
  class ZodNumber extends ZodType {
3922
3909
  constructor() {
@@ -4126,7 +4113,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4126
4113
  return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
4127
4114
  }
4128
4115
  get isFinite() {
4129
- let max2 = null, min2 = null;
4116
+ let max2 = null;
4117
+ let min2 = null;
4130
4118
  for (const ch of this._def.checks) {
4131
4119
  if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
4132
4120
  return true;
@@ -4145,7 +4133,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4145
4133
  return new ZodNumber({
4146
4134
  checks: [],
4147
4135
  typeName: ZodFirstPartyTypeKind.ZodNumber,
4148
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4136
+ coerce: (params == null ? void 0 : params.coerce) || false,
4149
4137
  ...processCreateParams(params)
4150
4138
  });
4151
4139
  };
@@ -4159,7 +4147,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4159
4147
  if (this._def.coerce) {
4160
4148
  try {
4161
4149
  input.data = BigInt(input.data);
4162
- } catch (_a2) {
4150
+ } catch {
4163
4151
  return this._getInvalidInput(input);
4164
4152
  }
4165
4153
  }
@@ -4314,11 +4302,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4314
4302
  }
4315
4303
  }
4316
4304
  ZodBigInt.create = (params) => {
4317
- var _a2;
4318
4305
  return new ZodBigInt({
4319
4306
  checks: [],
4320
4307
  typeName: ZodFirstPartyTypeKind.ZodBigInt,
4321
- coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
4308
+ coerce: (params == null ? void 0 : params.coerce) ?? false,
4322
4309
  ...processCreateParams(params)
4323
4310
  });
4324
4311
  };
@@ -4343,7 +4330,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4343
4330
  ZodBoolean.create = (params) => {
4344
4331
  return new ZodBoolean({
4345
4332
  typeName: ZodFirstPartyTypeKind.ZodBoolean,
4346
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4333
+ coerce: (params == null ? void 0 : params.coerce) || false,
4347
4334
  ...processCreateParams(params)
4348
4335
  });
4349
4336
  };
@@ -4362,7 +4349,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4362
4349
  });
4363
4350
  return INVALID;
4364
4351
  }
4365
- if (isNaN(input.data.getTime())) {
4352
+ if (Number.isNaN(input.data.getTime())) {
4366
4353
  const ctx2 = this._getOrReturnCtx(input);
4367
4354
  addIssueToContext(ctx2, {
4368
4355
  code: ZodIssueCode.invalid_date
@@ -4451,7 +4438,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4451
4438
  ZodDate.create = (params) => {
4452
4439
  return new ZodDate({
4453
4440
  checks: [],
4454
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4441
+ coerce: (params == null ? void 0 : params.coerce) || false,
4455
4442
  typeName: ZodFirstPartyTypeKind.ZodDate,
4456
4443
  ...processCreateParams(params)
4457
4444
  });
@@ -4726,7 +4713,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4726
4713
  return this._cached;
4727
4714
  const shape2 = this._def.shape();
4728
4715
  const keys = util.objectKeys(shape2);
4729
- return this._cached = { shape: shape2, keys };
4716
+ this._cached = { shape: shape2, keys };
4717
+ return this._cached;
4730
4718
  }
4731
4719
  _parse(input) {
4732
4720
  const parsedType = this._getType(input);
@@ -4824,11 +4812,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4824
4812
  unknownKeys: "strict",
4825
4813
  ...message !== void 0 ? {
4826
4814
  errorMap: (issue, ctx) => {
4827
- var _a2, _b2, _c2, _d2;
4828
- const defaultError = (_c2 = (_b2 = (_a2 = this._def).errorMap) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, issue, ctx).message) !== null && _c2 !== void 0 ? _c2 : ctx.defaultError;
4815
+ var _a2, _b2;
4816
+ const defaultError = ((_b2 = (_a2 = this._def).errorMap) == null ? void 0 : _b2.call(_a2, issue, ctx).message) ?? ctx.defaultError;
4829
4817
  if (issue.code === "unrecognized_keys")
4830
4818
  return {
4831
- message: (_d2 = errorUtil.errToObj(message).message) !== null && _d2 !== void 0 ? _d2 : defaultError
4819
+ message: errorUtil.errToObj(message).message ?? defaultError
4832
4820
  };
4833
4821
  return {
4834
4822
  message: defaultError
@@ -4959,11 +4947,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4959
4947
  }
4960
4948
  pick(mask) {
4961
4949
  const shape2 = {};
4962
- util.objectKeys(mask).forEach((key) => {
4950
+ for (const key of util.objectKeys(mask)) {
4963
4951
  if (mask[key] && this.shape[key]) {
4964
4952
  shape2[key] = this.shape[key];
4965
4953
  }
4966
- });
4954
+ }
4967
4955
  return new ZodObject({
4968
4956
  ...this._def,
4969
4957
  shape: () => shape2
@@ -4971,11 +4959,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4971
4959
  }
4972
4960
  omit(mask) {
4973
4961
  const shape2 = {};
4974
- util.objectKeys(this.shape).forEach((key) => {
4962
+ for (const key of util.objectKeys(this.shape)) {
4975
4963
  if (!mask[key]) {
4976
4964
  shape2[key] = this.shape[key];
4977
4965
  }
4978
- });
4966
+ }
4979
4967
  return new ZodObject({
4980
4968
  ...this._def,
4981
4969
  shape: () => shape2
@@ -4989,14 +4977,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
4989
4977
  }
4990
4978
  partial(mask) {
4991
4979
  const newShape = {};
4992
- util.objectKeys(this.shape).forEach((key) => {
4980
+ for (const key of util.objectKeys(this.shape)) {
4993
4981
  const fieldSchema = this.shape[key];
4994
4982
  if (mask && !mask[key]) {
4995
4983
  newShape[key] = fieldSchema;
4996
4984
  } else {
4997
4985
  newShape[key] = fieldSchema.optional();
4998
4986
  }
4999
- });
4987
+ }
5000
4988
  return new ZodObject({
5001
4989
  ...this._def,
5002
4990
  shape: () => newShape
@@ -5004,7 +4992,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5004
4992
  }
5005
4993
  required(mask) {
5006
4994
  const newShape = {};
5007
- util.objectKeys(this.shape).forEach((key) => {
4995
+ for (const key of util.objectKeys(this.shape)) {
5008
4996
  if (mask && !mask[key]) {
5009
4997
  newShape[key] = this.shape[key];
5010
4998
  } else {
@@ -5015,7 +5003,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5015
5003
  }
5016
5004
  newShape[key] = newField;
5017
5005
  }
5018
- });
5006
+ }
5019
5007
  return new ZodObject({
5020
5008
  ...this._def,
5021
5009
  shape: () => newShape
@@ -5631,12 +5619,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5631
5619
  return makeIssue({
5632
5620
  data: args,
5633
5621
  path: ctx.path,
5634
- errorMaps: [
5635
- ctx.common.contextualErrorMap,
5636
- ctx.schemaErrorMap,
5637
- getErrorMap(),
5638
- errorMap
5639
- ].filter((x2) => !!x2),
5622
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), errorMap].filter((x2) => !!x2),
5640
5623
  issueData: {
5641
5624
  code: ZodIssueCode.invalid_arguments,
5642
5625
  argumentsError: error
@@ -5647,12 +5630,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5647
5630
  return makeIssue({
5648
5631
  data: returns,
5649
5632
  path: ctx.path,
5650
- errorMaps: [
5651
- ctx.common.contextualErrorMap,
5652
- ctx.schemaErrorMap,
5653
- getErrorMap(),
5654
- errorMap
5655
- ].filter((x2) => !!x2),
5633
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), errorMap].filter((x2) => !!x2),
5656
5634
  issueData: {
5657
5635
  code: ZodIssueCode.invalid_return_type,
5658
5636
  returnTypeError: error
@@ -5776,10 +5754,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5776
5754
  });
5777
5755
  }
5778
5756
  class ZodEnum extends ZodType {
5779
- constructor() {
5780
- super(...arguments);
5781
- _ZodEnum_cache.set(this, void 0);
5782
- }
5783
5757
  _parse(input) {
5784
5758
  if (typeof input.data !== "string") {
5785
5759
  const ctx = this._getOrReturnCtx(input);
@@ -5791,10 +5765,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5791
5765
  });
5792
5766
  return INVALID;
5793
5767
  }
5794
- if (!__classPrivateFieldGet(this, _ZodEnum_cache)) {
5795
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
5768
+ if (!this._cache) {
5769
+ this._cache = new Set(this._def.values);
5796
5770
  }
5797
- if (!__classPrivateFieldGet(this, _ZodEnum_cache).has(input.data)) {
5771
+ if (!this._cache.has(input.data)) {
5798
5772
  const ctx = this._getOrReturnCtx(input);
5799
5773
  const expectedValues = this._def.values;
5800
5774
  addIssueToContext(ctx, {
@@ -5843,13 +5817,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5843
5817
  });
5844
5818
  }
5845
5819
  }
5846
- _ZodEnum_cache = /* @__PURE__ */ new WeakMap();
5847
5820
  ZodEnum.create = createZodEnum;
5848
5821
  class ZodNativeEnum extends ZodType {
5849
- constructor() {
5850
- super(...arguments);
5851
- _ZodNativeEnum_cache.set(this, void 0);
5852
- }
5853
5822
  _parse(input) {
5854
5823
  const nativeEnumValues = util.getValidEnumValues(this._def.values);
5855
5824
  const ctx = this._getOrReturnCtx(input);
@@ -5862,10 +5831,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5862
5831
  });
5863
5832
  return INVALID;
5864
5833
  }
5865
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache)) {
5866
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)));
5834
+ if (!this._cache) {
5835
+ this._cache = new Set(util.getValidEnumValues(this._def.values));
5867
5836
  }
5868
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache).has(input.data)) {
5837
+ if (!this._cache.has(input.data)) {
5869
5838
  const expectedValues = util.objectValues(nativeEnumValues);
5870
5839
  addIssueToContext(ctx, {
5871
5840
  received: ctx.data,
@@ -5880,7 +5849,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
5880
5849
  return this._def.values;
5881
5850
  }
5882
5851
  }
5883
- _ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
5884
5852
  ZodNativeEnum.create = (values2, params) => {
5885
5853
  return new ZodNativeEnum({
5886
5854
  values: values2,
@@ -6021,7 +5989,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6021
5989
  parent: ctx
6022
5990
  });
6023
5991
  if (!isValid(base))
6024
- return base;
5992
+ return INVALID;
6025
5993
  const result = effect2.transform(base.value, checkCtx);
6026
5994
  if (result instanceof Promise) {
6027
5995
  throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
@@ -6030,8 +5998,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6030
5998
  } else {
6031
5999
  return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
6032
6000
  if (!isValid(base))
6033
- return base;
6034
- return Promise.resolve(effect2.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
6001
+ return INVALID;
6002
+ return Promise.resolve(effect2.transform(base.value, checkCtx)).then((result) => ({
6003
+ status: status.value,
6004
+ value: result
6005
+ }));
6035
6006
  });
6036
6007
  }
6037
6008
  }
@@ -6291,21 +6262,19 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6291
6262
  function custom(check, _params = {}, fatal) {
6292
6263
  if (check)
6293
6264
  return ZodAny.create().superRefine((data, ctx) => {
6294
- var _a2, _b2;
6295
6265
  const r2 = check(data);
6296
6266
  if (r2 instanceof Promise) {
6297
6267
  return r2.then((r3) => {
6298
- var _a3, _b3;
6299
6268
  if (!r3) {
6300
6269
  const params = cleanParams(_params, data);
6301
- const _fatal = (_b3 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b3 !== void 0 ? _b3 : true;
6270
+ const _fatal = params.fatal ?? fatal ?? true;
6302
6271
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6303
6272
  }
6304
6273
  });
6305
6274
  }
6306
6275
  if (!r2) {
6307
6276
  const params = cleanParams(_params, data);
6308
- const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
6277
+ const _fatal = params.fatal ?? fatal ?? true;
6309
6278
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6310
6279
  }
6311
6280
  return;
@@ -6405,99 +6374,98 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6405
6374
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
6406
6375
  };
6407
6376
  const NEVER = INVALID;
6408
- var z = /* @__PURE__ */ Object.freeze({
6377
+ const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6409
6378
  __proto__: null,
6410
- defaultErrorMap: errorMap,
6411
- setErrorMap,
6412
- getErrorMap,
6413
- makeIssue,
6379
+ BRAND,
6380
+ DIRTY,
6414
6381
  EMPTY_PATH,
6415
- addIssueToContext,
6416
- ParseStatus,
6417
6382
  INVALID,
6418
- DIRTY,
6383
+ NEVER,
6419
6384
  OK,
6420
- isAborted,
6421
- isDirty,
6422
- isValid,
6423
- isAsync,
6424
- get util() {
6425
- return util;
6426
- },
6427
- get objectUtil() {
6428
- return objectUtil;
6429
- },
6430
- ZodParsedType,
6431
- getParsedType,
6432
- ZodType,
6433
- datetimeRegex,
6434
- ZodString,
6435
- ZodNumber,
6385
+ ParseStatus,
6386
+ Schema: ZodType,
6387
+ ZodAny,
6388
+ ZodArray,
6436
6389
  ZodBigInt,
6437
6390
  ZodBoolean,
6391
+ ZodBranded,
6392
+ ZodCatch,
6438
6393
  ZodDate,
6439
- ZodSymbol,
6440
- ZodUndefined,
6441
- ZodNull,
6442
- ZodAny,
6443
- ZodUnknown,
6444
- ZodNever,
6445
- ZodVoid,
6446
- ZodArray,
6447
- ZodObject,
6448
- ZodUnion,
6394
+ ZodDefault,
6449
6395
  ZodDiscriminatedUnion,
6450
- ZodIntersection,
6451
- ZodTuple,
6452
- ZodRecord,
6453
- ZodMap,
6454
- ZodSet,
6396
+ ZodEffects,
6397
+ ZodEnum,
6398
+ ZodError,
6399
+ get ZodFirstPartyTypeKind() {
6400
+ return ZodFirstPartyTypeKind;
6401
+ },
6455
6402
  ZodFunction,
6403
+ ZodIntersection,
6404
+ ZodIssueCode,
6456
6405
  ZodLazy,
6457
6406
  ZodLiteral,
6458
- ZodEnum,
6407
+ ZodMap,
6408
+ ZodNaN,
6459
6409
  ZodNativeEnum,
6460
- ZodPromise,
6461
- ZodEffects,
6462
- ZodTransformer: ZodEffects,
6463
- ZodOptional,
6410
+ ZodNever,
6411
+ ZodNull,
6464
6412
  ZodNullable,
6465
- ZodDefault,
6466
- ZodCatch,
6467
- ZodNaN,
6468
- BRAND,
6469
- ZodBranded,
6413
+ ZodNumber,
6414
+ ZodObject,
6415
+ ZodOptional,
6416
+ ZodParsedType,
6470
6417
  ZodPipeline,
6418
+ ZodPromise,
6471
6419
  ZodReadonly,
6472
- custom,
6473
- Schema: ZodType,
6420
+ ZodRecord,
6474
6421
  ZodSchema: ZodType,
6475
- late,
6476
- get ZodFirstPartyTypeKind() {
6477
- return ZodFirstPartyTypeKind;
6478
- },
6479
- coerce: coerce$1,
6422
+ ZodSet,
6423
+ ZodString,
6424
+ ZodSymbol,
6425
+ ZodTransformer: ZodEffects,
6426
+ ZodTuple,
6427
+ ZodType,
6428
+ ZodUndefined,
6429
+ ZodUnion,
6430
+ ZodUnknown,
6431
+ ZodVoid,
6432
+ addIssueToContext,
6480
6433
  any: anyType,
6481
6434
  array: arrayType,
6482
6435
  bigint: bigIntType,
6483
6436
  boolean: booleanType,
6437
+ coerce: coerce$1,
6438
+ custom,
6484
6439
  date: dateType,
6440
+ datetimeRegex,
6441
+ defaultErrorMap: errorMap,
6485
6442
  discriminatedUnion: discriminatedUnionType,
6486
6443
  effect: effectsType,
6487
- "enum": enumType,
6488
- "function": functionType,
6489
- "instanceof": instanceOfType,
6444
+ enum: enumType,
6445
+ function: functionType,
6446
+ getErrorMap,
6447
+ getParsedType,
6448
+ instanceof: instanceOfType,
6490
6449
  intersection: intersectionType,
6450
+ isAborted,
6451
+ isAsync,
6452
+ isDirty,
6453
+ isValid,
6454
+ late,
6491
6455
  lazy: lazyType,
6492
6456
  literal: literalType,
6457
+ makeIssue,
6493
6458
  map: mapType,
6494
6459
  nan: nanType,
6495
6460
  nativeEnum: nativeEnumType,
6496
6461
  never: neverType,
6497
- "null": nullType,
6462
+ null: nullType,
6498
6463
  nullable: nullableType,
6499
6464
  number: numberType,
6500
6465
  object: objectType,
6466
+ get objectUtil() {
6467
+ return objectUtil;
6468
+ },
6501
6469
  oboolean,
6502
6470
  onumber,
6503
6471
  optional: optionalType,
@@ -6505,22 +6473,23 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6505
6473
  pipeline: pipelineType,
6506
6474
  preprocess: preprocessType,
6507
6475
  promise: promiseType,
6476
+ quotelessJson,
6508
6477
  record: recordType,
6509
6478
  set: setType,
6479
+ setErrorMap,
6510
6480
  strictObject: strictObjectType,
6511
6481
  string: stringType,
6512
6482
  symbol: symbolType,
6513
6483
  transformer: effectsType,
6514
6484
  tuple: tupleType,
6515
- "undefined": undefinedType,
6485
+ undefined: undefinedType,
6516
6486
  union: unionType,
6517
6487
  unknown: unknownType,
6518
- "void": voidType,
6519
- NEVER,
6520
- ZodIssueCode,
6521
- quotelessJson,
6522
- ZodError
6523
- });
6488
+ get util() {
6489
+ return util;
6490
+ },
6491
+ void: voidType
6492
+ }, Symbol.toStringTag, { value: "Module" }));
6524
6493
  const TeliBrand = ({
6525
6494
  appName,
6526
6495
  beta,
@@ -6530,7 +6499,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6530
6499
  }) => {
6531
6500
  const isDefaultSize = size === "base";
6532
6501
  const isJumboSize = size === "jumbo";
6533
- const validateAppName = z.string({
6502
+ const validateAppName = stringType({
6534
6503
  required_error: "Provide missing appName prop.",
6535
6504
  invalid_type_error: "appName must be a string"
6536
6505
  }).safeParse(appName);
@@ -6602,14 +6571,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
6602
6571
  var i = _toPrimitive$1(t2, "string");
6603
6572
  return "symbol" == typeof i ? i : i + "";
6604
6573
  }
6605
- const noop$5 = () => {
6574
+ const noop$4 = () => {
6606
6575
  };
6607
6576
  let _WINDOW = {};
6608
6577
  let _DOCUMENT = {};
6609
6578
  let _MUTATION_OBSERVER = null;
6610
6579
  let _PERFORMANCE = {
6611
- mark: noop$5,
6612
- measure: noop$5
6580
+ mark: noop$4,
6581
+ measure: noop$4
6613
6582
  };
6614
6583
  try {
6615
6584
  if (typeof window !== "undefined") _WINDOW = window;
@@ -12353,12 +12322,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12353
12322
  private_createBreakpoints: createBreakpoints,
12354
12323
  unstable_applyStyles: applyStyles$2
12355
12324
  }, Symbol.toStringTag, { value: "Module" }));
12356
- function isObjectEmpty$1(obj) {
12325
+ function isObjectEmpty$2(obj) {
12357
12326
  return Object.keys(obj).length === 0;
12358
12327
  }
12359
12328
  function useTheme$4(defaultTheme2 = null) {
12360
12329
  const contextTheme = React__namespace.useContext(ThemeContext$1);
12361
- return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
12330
+ return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme2 : contextTheme;
12362
12331
  }
12363
12332
  const systemDefaultTheme$2 = createTheme$3();
12364
12333
  function useTheme$3(defaultTheme2 = systemDefaultTheme$2) {
@@ -12539,7 +12508,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12539
12508
  if (hasRequiredReactIs_production) return reactIs_production;
12540
12509
  hasRequiredReactIs_production = 1;
12541
12510
  var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
12542
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12511
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12543
12512
  function typeOf(object) {
12544
12513
  if ("object" === typeof object && null !== object) {
12545
12514
  var $$typeof = object.$$typeof;
@@ -12551,6 +12520,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12551
12520
  case REACT_STRICT_MODE_TYPE:
12552
12521
  case REACT_SUSPENSE_TYPE:
12553
12522
  case REACT_SUSPENSE_LIST_TYPE:
12523
+ case REACT_VIEW_TRANSITION_TYPE:
12554
12524
  return object;
12555
12525
  default:
12556
12526
  switch (object = object && object.$$typeof, object) {
@@ -12619,7 +12589,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12619
12589
  return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
12620
12590
  };
12621
12591
  reactIs_production.isValidElementType = function(type) {
12622
- return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12592
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12623
12593
  };
12624
12594
  reactIs_production.typeOf = typeOf;
12625
12595
  return reactIs_production;
@@ -12650,6 +12620,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12650
12620
  case REACT_STRICT_MODE_TYPE:
12651
12621
  case REACT_SUSPENSE_TYPE:
12652
12622
  case REACT_SUSPENSE_LIST_TYPE:
12623
+ case REACT_VIEW_TRANSITION_TYPE:
12653
12624
  return object;
12654
12625
  default:
12655
12626
  switch (object = object && object.$$typeof, object) {
@@ -12670,7 +12641,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12670
12641
  }
12671
12642
  }
12672
12643
  var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
12673
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12644
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
12674
12645
  reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
12675
12646
  reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
12676
12647
  reactIs_development.Element = REACT_ELEMENT_TYPE;
@@ -12720,7 +12691,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
12720
12691
  return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
12721
12692
  };
12722
12693
  reactIs_development.isValidElementType = function(type) {
12723
- return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12694
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
12724
12695
  };
12725
12696
  reactIs_development.typeOf = typeOf;
12726
12697
  }();
@@ -13284,7 +13255,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13284
13255
  };
13285
13256
  return requireProp;
13286
13257
  }
13287
- function setRef$1(ref, value2) {
13258
+ function setRef(ref, value2) {
13288
13259
  if (typeof ref === "function") {
13289
13260
  ref(value2);
13290
13261
  } else if (ref) {
@@ -13371,7 +13342,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13371
13342
  }
13372
13343
  return (instance) => {
13373
13344
  refs.forEach((ref) => {
13374
- setRef$1(ref, instance);
13345
+ setRef(ref, instance);
13375
13346
  });
13376
13347
  };
13377
13348
  }, refs);
@@ -15389,7 +15360,9 @@ const theme2 = createTheme({ palette: {
15389
15360
  transitions: transitionsInput = {},
15390
15361
  typography: typographyInput = {}
15391
15362
  } = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$1g);
15392
- if (options.vars) {
15363
+ if (options.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
15364
+ // `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
15365
+ options.generateCssVars === void 0) {
15393
15366
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
15394
15367
  Please use another name.` : formatMuiErrorMessage$1(18));
15395
15368
  }
@@ -15749,9 +15722,21 @@ Please use another name.` : formatMuiErrorMessage$1(18));
15749
15722
  theme: themeInput
15750
15723
  } = _ref2, props = _objectWithoutPropertiesLoose$1(_ref2, _excluded$1e);
15751
15724
  const scopedTheme = themeInput[THEME_ID];
15725
+ let finalTheme = scopedTheme || themeInput;
15726
+ if (typeof themeInput !== "function") {
15727
+ if (scopedTheme && !scopedTheme.vars) {
15728
+ finalTheme = _extends$3({}, scopedTheme, {
15729
+ vars: null
15730
+ });
15731
+ } else if (themeInput && !themeInput.vars) {
15732
+ finalTheme = _extends$3({}, themeInput, {
15733
+ vars: null
15734
+ });
15735
+ }
15736
+ }
15752
15737
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider$1, _extends$3({}, props, {
15753
15738
  themeId: scopedTheme ? THEME_ID : void 0,
15754
- theme: scopedTheme || themeInput
15739
+ theme: finalTheme
15755
15740
  }));
15756
15741
  }
15757
15742
  process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
@@ -16413,7 +16398,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
16413
16398
  */
16414
16399
  onExited: PropTypes.func
16415
16400
  } : {};
16416
- function noop$4() {
16401
+ function noop$3() {
16417
16402
  }
16418
16403
  Transition$1.defaultProps = {
16419
16404
  in: false,
@@ -16422,12 +16407,12 @@ Please use another name.` : formatMuiErrorMessage$1(18));
16422
16407
  appear: false,
16423
16408
  enter: true,
16424
16409
  exit: true,
16425
- onEnter: noop$4,
16426
- onEntering: noop$4,
16427
- onEntered: noop$4,
16428
- onExit: noop$4,
16429
- onExiting: noop$4,
16430
- onExited: noop$4
16410
+ onEnter: noop$3,
16411
+ onEntering: noop$3,
16412
+ onEntered: noop$3,
16413
+ onExit: noop$3,
16414
+ onExiting: noop$3,
16415
+ onExited: noop$3
16431
16416
  };
16432
16417
  Transition$1.UNMOUNTED = UNMOUNTED;
16433
16418
  Transition$1.EXITED = EXITED;
@@ -18963,7 +18948,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
18963
18948
  multiple
18964
18949
  ]);
18965
18950
  const handleListboxRef = useEventCallback((node2) => {
18966
- setRef$1(listboxRef, node2);
18951
+ setRef(listboxRef, node2);
18967
18952
  if (!node2) {
18968
18953
  return;
18969
18954
  }
@@ -19134,7 +19119,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
19134
19119
  case "PageUp":
19135
19120
  event.preventDefault();
19136
19121
  changeHighlightedIndex({
19137
- diff: -5,
19122
+ diff: -pageSize,
19138
19123
  direction: "previous",
19139
19124
  reason: "keyboard",
19140
19125
  event
@@ -19482,12 +19467,12 @@ Please use another name.` : formatMuiErrorMessage$1(18));
19482
19467
  }
19483
19468
  return n.default = e, t2 && t2.set(e, n), n;
19484
19469
  }
19485
- function isObjectEmpty(obj) {
19470
+ function isObjectEmpty$1(obj) {
19486
19471
  return Object.keys(obj).length === 0;
19487
19472
  }
19488
19473
  function useTheme(defaultTheme2 = null) {
19489
19474
  const contextTheme = React$1.useContext(_styledEngine.ThemeContext);
19490
- return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme;
19475
+ return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
19491
19476
  }
19492
19477
  default_1 = useThemeWithoutDefault.default = useTheme;
19493
19478
  var top = "top";
@@ -20854,9 +20839,9 @@ Please use another name.` : formatMuiErrorMessage$1(18));
20854
20839
  }, [container, disablePortal]);
20855
20840
  useEnhancedEffect(() => {
20856
20841
  if (mountNode && !disablePortal) {
20857
- setRef$1(forwardedRef, mountNode);
20842
+ setRef(forwardedRef, mountNode);
20858
20843
  return () => {
20859
- setRef$1(forwardedRef, null);
20844
+ setRef(forwardedRef, null);
20860
20845
  };
20861
20846
  }
20862
20847
  return void 0;
@@ -22065,8 +22050,14 @@ Please use another name.` : formatMuiErrorMessage$1(18));
22065
22050
  transform: "translateZ(0)"
22066
22051
  }
22067
22052
  };
22053
+ function isObjectEmpty(object) {
22054
+ for (const _2 in object) {
22055
+ return false;
22056
+ }
22057
+ return true;
22058
+ }
22068
22059
  function isEmpty$1(obj) {
22069
- return obj === void 0 || obj === null || Object.keys(obj).length === 0 || obj.outerHeightStyle === 0 && !obj.overflowing;
22060
+ return isObjectEmpty(obj) || obj.outerHeightStyle === 0 && !obj.overflowing;
22070
22061
  }
22071
22062
  const TextareaAutosize = /* @__PURE__ */ React__namespace.forwardRef(function TextareaAutosize2(props, forwardedRef) {
22072
22063
  const {
@@ -22079,32 +22070,35 @@ Please use another name.` : formatMuiErrorMessage$1(18));
22079
22070
  const {
22080
22071
  current: isControlled
22081
22072
  } = React__namespace.useRef(value2 != null);
22082
- const inputRef = React__namespace.useRef(null);
22083
- const handleRef = useForkRef$1(forwardedRef, inputRef);
22073
+ const textareaRef = React__namespace.useRef(null);
22074
+ const handleRef = useForkRef$1(forwardedRef, textareaRef);
22084
22075
  const heightRef = React__namespace.useRef(null);
22085
- const shadowRef = React__namespace.useRef(null);
22076
+ const hiddenTextareaRef = React__namespace.useRef(null);
22086
22077
  const calculateTextareaStyles = React__namespace.useCallback(() => {
22087
- const input = inputRef.current;
22088
- const containerWindow = ownerWindow(input);
22089
- const computedStyle = containerWindow.getComputedStyle(input);
22078
+ const textarea = textareaRef.current;
22079
+ const hiddenTextarea = hiddenTextareaRef.current;
22080
+ if (!textarea || !hiddenTextarea) {
22081
+ return void 0;
22082
+ }
22083
+ const containerWindow = ownerWindow(textarea);
22084
+ const computedStyle = containerWindow.getComputedStyle(textarea);
22090
22085
  if (computedStyle.width === "0px") {
22091
22086
  return {
22092
22087
  outerHeightStyle: 0,
22093
22088
  overflowing: false
22094
22089
  };
22095
22090
  }
22096
- const inputShallow = shadowRef.current;
22097
- inputShallow.style.width = computedStyle.width;
22098
- inputShallow.value = input.value || props.placeholder || "x";
22099
- if (inputShallow.value.slice(-1) === "\n") {
22100
- inputShallow.value += " ";
22091
+ hiddenTextarea.style.width = computedStyle.width;
22092
+ hiddenTextarea.value = textarea.value || props.placeholder || "x";
22093
+ if (hiddenTextarea.value.slice(-1) === "\n") {
22094
+ hiddenTextarea.value += " ";
22101
22095
  }
22102
22096
  const boxSizing2 = computedStyle.boxSizing;
22103
22097
  const padding2 = getStyleValue(computedStyle.paddingBottom) + getStyleValue(computedStyle.paddingTop);
22104
22098
  const border2 = getStyleValue(computedStyle.borderBottomWidth) + getStyleValue(computedStyle.borderTopWidth);
22105
- const innerHeight2 = inputShallow.scrollHeight;
22106
- inputShallow.value = "x";
22107
- const singleRowHeight = inputShallow.scrollHeight;
22099
+ const innerHeight2 = hiddenTextarea.scrollHeight;
22100
+ hiddenTextarea.value = "x";
22101
+ const singleRowHeight = hiddenTextarea.scrollHeight;
22108
22102
  let outerHeight2 = innerHeight2;
22109
22103
  if (minRows) {
22110
22104
  outerHeight2 = Math.max(Number(minRows) * singleRowHeight, outerHeight2);
@@ -22120,48 +22114,60 @@ Please use another name.` : formatMuiErrorMessage$1(18));
22120
22114
  overflowing
22121
22115
  };
22122
22116
  }, [maxRows, minRows, props.placeholder]);
22117
+ const didHeightChange = useEventCallback(() => {
22118
+ const textarea = textareaRef.current;
22119
+ const textareaStyles = calculateTextareaStyles();
22120
+ if (!textarea || !textareaStyles || isEmpty$1(textareaStyles)) {
22121
+ return false;
22122
+ }
22123
+ const outerHeightStyle = textareaStyles.outerHeightStyle;
22124
+ return heightRef.current != null && heightRef.current !== outerHeightStyle;
22125
+ });
22123
22126
  const syncHeight = React__namespace.useCallback(() => {
22127
+ const textarea = textareaRef.current;
22124
22128
  const textareaStyles = calculateTextareaStyles();
22125
- if (isEmpty$1(textareaStyles)) {
22129
+ if (!textarea || !textareaStyles || isEmpty$1(textareaStyles)) {
22126
22130
  return;
22127
22131
  }
22128
22132
  const outerHeightStyle = textareaStyles.outerHeightStyle;
22129
- const input = inputRef.current;
22130
22133
  if (heightRef.current !== outerHeightStyle) {
22131
22134
  heightRef.current = outerHeightStyle;
22132
- input.style.height = `${outerHeightStyle}px`;
22135
+ textarea.style.height = `${outerHeightStyle}px`;
22133
22136
  }
22134
- input.style.overflow = textareaStyles.overflowing ? "hidden" : "";
22137
+ textarea.style.overflow = textareaStyles.overflowing ? "hidden" : "";
22135
22138
  }, [calculateTextareaStyles]);
22139
+ const frameRef = React__namespace.useRef(-1);
22136
22140
  useEnhancedEffect(() => {
22137
- const handleResize = () => {
22138
- syncHeight();
22139
- };
22140
- let rAF;
22141
- const rAFHandleResize = () => {
22142
- cancelAnimationFrame(rAF);
22143
- rAF = requestAnimationFrame(() => {
22144
- handleResize();
22145
- });
22146
- };
22147
- const debounceHandleResize = debounce$1(handleResize);
22148
- const input = inputRef.current;
22149
- const containerWindow = ownerWindow(input);
22150
- containerWindow.addEventListener("resize", debounceHandleResize);
22141
+ const debouncedHandleResize = debounce$1(syncHeight);
22142
+ const textarea = textareaRef == null ? void 0 : textareaRef.current;
22143
+ if (!textarea) {
22144
+ return void 0;
22145
+ }
22146
+ const containerWindow = ownerWindow(textarea);
22147
+ containerWindow.addEventListener("resize", debouncedHandleResize);
22151
22148
  let resizeObserver;
22152
22149
  if (typeof ResizeObserver !== "undefined") {
22153
- resizeObserver = new ResizeObserver(process.env.NODE_ENV === "test" ? rAFHandleResize : handleResize);
22154
- resizeObserver.observe(input);
22150
+ resizeObserver = new ResizeObserver(() => {
22151
+ if (didHeightChange()) {
22152
+ resizeObserver.unobserve(textarea);
22153
+ cancelAnimationFrame(frameRef.current);
22154
+ syncHeight();
22155
+ frameRef.current = requestAnimationFrame(() => {
22156
+ resizeObserver.observe(textarea);
22157
+ });
22158
+ }
22159
+ });
22160
+ resizeObserver.observe(textarea);
22155
22161
  }
22156
22162
  return () => {
22157
- debounceHandleResize.clear();
22158
- cancelAnimationFrame(rAF);
22159
- containerWindow.removeEventListener("resize", debounceHandleResize);
22163
+ debouncedHandleResize.clear();
22164
+ cancelAnimationFrame(frameRef.current);
22165
+ containerWindow.removeEventListener("resize", debouncedHandleResize);
22160
22166
  if (resizeObserver) {
22161
22167
  resizeObserver.disconnect();
22162
22168
  }
22163
22169
  };
22164
- }, [calculateTextareaStyles, syncHeight]);
22170
+ }, [calculateTextareaStyles, syncHeight, didHeightChange]);
22165
22171
  useEnhancedEffect(() => {
22166
22172
  syncHeight();
22167
22173
  });
@@ -22184,7 +22190,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
22184
22190
  "aria-hidden": true,
22185
22191
  className: props.className,
22186
22192
  readOnly: true,
22187
- ref: shadowRef,
22193
+ ref: hiddenTextareaRef,
22188
22194
  tabIndex: -1,
22189
22195
  style: _extends$3({}, styles$7.shadow, style2, {
22190
22196
  paddingTop: 0,
@@ -43412,7 +43418,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43412
43418
  };
43413
43419
  const DEFAULT_THEME = "dark";
43414
43420
  const TELICENT_THEME = "telicent-theme";
43415
- const ThemeEnum = z.enum(["dark", "light"]);
43421
+ const ThemeEnum = enumType(["dark", "light"]);
43416
43422
  const useTeliTheme = () => {
43417
43423
  const getTheme = () => {
43418
43424
  const savedTheme = localStorage.getItem(TELICENT_THEME);
@@ -43544,7 +43550,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43544
43550
  }
43545
43551
  };
43546
43552
  var isServer = typeof window === "undefined" || "Deno" in globalThis;
43547
- function noop$3() {
43553
+ function noop$2() {
43548
43554
  }
43549
43555
  function functionalUpdate(updater, input) {
43550
43556
  return typeof updater === "function" ? updater(input) : updater;
@@ -43642,7 +43648,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43642
43648
  return false;
43643
43649
  }
43644
43650
  if (a && b && typeof a === "object" && typeof b === "object") {
43645
- return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
43651
+ return Object.keys(b).every((key) => partialMatchKey(a[key], b[key]));
43646
43652
  }
43647
43653
  return false;
43648
43654
  }
@@ -43657,10 +43663,11 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43657
43663
  const bItems = array2 ? b : Object.keys(b);
43658
43664
  const bSize = bItems.length;
43659
43665
  const copy2 = array2 ? [] : {};
43666
+ const aItemsSet = new Set(aItems);
43660
43667
  let equalItems = 0;
43661
43668
  for (let i = 0; i < bSize; i++) {
43662
43669
  const key = array2 ? i : bItems[i];
43663
- if ((!array2 && aItems.includes(key) || array2) && a[key] === void 0 && b[key] === void 0) {
43670
+ if ((!array2 && aItemsSet.has(key) || array2) && a[key] === void 0 && b[key] === void 0) {
43664
43671
  copy2[key] = void 0;
43665
43672
  equalItems++;
43666
43673
  } else {
@@ -43727,6 +43734,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43727
43734
  console.error(
43728
43735
  `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`
43729
43736
  );
43737
+ throw error;
43730
43738
  }
43731
43739
  }
43732
43740
  return replaceEqualDeep(prevData, data);
@@ -43758,6 +43766,12 @@ Please use another name.` : formatMuiErrorMessage$1(18));
43758
43766
  }
43759
43767
  return options.queryFn;
43760
43768
  }
43769
+ function shouldThrowError(throwOnError, params) {
43770
+ if (typeof throwOnError === "function") {
43771
+ return throwOnError(...params);
43772
+ }
43773
+ return !!throwOnError;
43774
+ }
43761
43775
  var FocusManager = (_d = class extends Subscribable {
43762
43776
  constructor() {
43763
43777
  super();
@@ -44033,6 +44047,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44033
44047
  }
44034
44048
  };
44035
44049
  }
44050
+ var defaultScheduler = (cb) => setTimeout(cb, 0);
44036
44051
  function createNotifyManager() {
44037
44052
  let queue = [];
44038
44053
  let transactions = 0;
@@ -44042,7 +44057,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44042
44057
  let batchNotifyFn = (callback) => {
44043
44058
  callback();
44044
44059
  };
44045
- let scheduleFn = (cb) => setTimeout(cb, 0);
44060
+ let scheduleFn = defaultScheduler;
44046
44061
  const schedule2 = (callback) => {
44047
44062
  if (transactions) {
44048
44063
  queue.push(callback);
@@ -44194,7 +44209,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44194
44209
  var _a2, _b2;
44195
44210
  const promise = (_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.promise;
44196
44211
  (_b2 = __privateGet(this, _retryer)) == null ? void 0 : _b2.cancel(options);
44197
- return promise ? promise.then(noop$3).catch(noop$3) : Promise.resolve();
44212
+ return promise ? promise.then(noop$2).catch(noop$2) : Promise.resolve();
44198
44213
  }
44199
44214
  destroy() {
44200
44215
  super.destroy();
@@ -44215,19 +44230,33 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44215
44230
  }
44216
44231
  return this.options.queryFn === skipToken || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
44217
44232
  }
44218
- isStale() {
44219
- if (this.state.isInvalidated) {
44220
- return true;
44233
+ isStatic() {
44234
+ if (this.getObserversCount() > 0) {
44235
+ return this.observers.some(
44236
+ (observer) => resolveStaleTime(observer.options.staleTime, this) === "static"
44237
+ );
44221
44238
  }
44239
+ return false;
44240
+ }
44241
+ isStale() {
44222
44242
  if (this.getObserversCount() > 0) {
44223
44243
  return this.observers.some(
44224
44244
  (observer) => observer.getCurrentResult().isStale
44225
44245
  );
44226
44246
  }
44227
- return this.state.data === void 0;
44247
+ return this.state.data === void 0 || this.state.isInvalidated;
44228
44248
  }
44229
44249
  isStaleByTime(staleTime = 0) {
44230
- return this.state.isInvalidated || this.state.data === void 0 || !timeUntilStale(this.state.dataUpdatedAt, staleTime);
44250
+ if (this.state.data === void 0) {
44251
+ return true;
44252
+ }
44253
+ if (staleTime === "static") {
44254
+ return false;
44255
+ }
44256
+ if (this.state.isInvalidated) {
44257
+ return true;
44258
+ }
44259
+ return !timeUntilStale(this.state.dataUpdatedAt, staleTime);
44231
44260
  }
44232
44261
  onFocus() {
44233
44262
  var _a2;
@@ -44310,12 +44339,16 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44310
44339
  };
44311
44340
  const fetchFn = () => {
44312
44341
  const queryFn = ensureQueryFn(this.options, fetchOptions2);
44313
- const queryFnContext = {
44314
- client: __privateGet(this, _client),
44315
- queryKey: this.queryKey,
44316
- meta: this.meta
44342
+ const createQueryFnContext = () => {
44343
+ const queryFnContext2 = {
44344
+ client: __privateGet(this, _client),
44345
+ queryKey: this.queryKey,
44346
+ meta: this.meta
44347
+ };
44348
+ addSignalProperty(queryFnContext2);
44349
+ return queryFnContext2;
44317
44350
  };
44318
- addSignalProperty(queryFnContext);
44351
+ const queryFnContext = createQueryFnContext();
44319
44352
  __privateSet(this, _abortSignalConsumed, false);
44320
44353
  if (this.options.persister) {
44321
44354
  return this.options.persister(
@@ -44326,19 +44359,20 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44326
44359
  }
44327
44360
  return queryFn(queryFnContext);
44328
44361
  };
44329
- const context = {
44330
- fetchOptions: fetchOptions2,
44331
- options: this.options,
44332
- queryKey: this.queryKey,
44333
- client: __privateGet(this, _client),
44334
- state: this.state,
44335
- fetchFn
44362
+ const createFetchContext = () => {
44363
+ const context2 = {
44364
+ fetchOptions: fetchOptions2,
44365
+ options: this.options,
44366
+ queryKey: this.queryKey,
44367
+ client: __privateGet(this, _client),
44368
+ state: this.state,
44369
+ fetchFn
44370
+ };
44371
+ addSignalProperty(context2);
44372
+ return context2;
44336
44373
  };
44337
- addSignalProperty(context);
44338
- (_a2 = this.options.behavior) == null ? void 0 : _a2.onFetch(
44339
- context,
44340
- this
44341
- );
44374
+ const context = createFetchContext();
44375
+ (_a2 = this.options.behavior) == null ? void 0 : _a2.onFetch(context, this);
44342
44376
  __privateSet(this, _revertState, this.state);
44343
44377
  if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((_b2 = context.fetchOptions) == null ? void 0 : _b2.meta)) {
44344
44378
  __privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "fetch", meta: (_c2 = context.fetchOptions) == null ? void 0 : _c2.meta });
@@ -44439,6 +44473,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44439
44473
  fetchMeta: action.meta ?? null
44440
44474
  };
44441
44475
  case "success":
44476
+ __privateSet(this, _revertState, void 0);
44442
44477
  return {
44443
44478
  ...state,
44444
44479
  data: action.data,
@@ -44663,6 +44698,9 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44663
44698
  }
44664
44699
  async execute(variables) {
44665
44700
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t7;
44701
+ const onContinue = () => {
44702
+ __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "continue" });
44703
+ };
44666
44704
  __privateSet(this, _retryer2, createRetryer({
44667
44705
  fn: () => {
44668
44706
  if (!this.options.mutationFn) {
@@ -44676,9 +44714,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44676
44714
  onPause: () => {
44677
44715
  __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pause" });
44678
44716
  },
44679
- onContinue: () => {
44680
- __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "continue" });
44681
- },
44717
+ onContinue,
44682
44718
  retry: this.options.retry ?? 0,
44683
44719
  retryDelay: this.options.retryDelay,
44684
44720
  networkMode: this.options.networkMode,
@@ -44687,7 +44723,9 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44687
44723
  const restored = this.state.status === "pending";
44688
44724
  const isPaused = !__privateGet(this, _retryer2).canStart();
44689
44725
  try {
44690
- if (!restored) {
44726
+ if (restored) {
44727
+ onContinue();
44728
+ } else {
44691
44729
  __privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pending", variables, isPaused });
44692
44730
  await ((_b2 = (_a2 = __privateGet(this, _mutationCache).config).onMutate) == null ? void 0 : _b2.call(
44693
44731
  _a2,
@@ -44948,7 +44986,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44948
44986
  const pausedMutations = this.getAll().filter((x2) => x2.state.isPaused);
44949
44987
  return notifyManager.batch(
44950
44988
  () => Promise.all(
44951
- pausedMutations.map((mutation) => mutation.continue().catch(noop$3))
44989
+ pausedMutations.map((mutation) => mutation.continue().catch(noop$2))
44952
44990
  )
44953
44991
  );
44954
44992
  }
@@ -44992,17 +45030,19 @@ Please use another name.` : formatMuiErrorMessage$1(18));
44992
45030
  if (param == null && data.pages.length) {
44993
45031
  return Promise.resolve(data);
44994
45032
  }
44995
- const queryFnContext = {
44996
- client: context.client,
44997
- queryKey: context.queryKey,
44998
- pageParam: param,
44999
- direction: previous ? "backward" : "forward",
45000
- meta: context.options.meta
45033
+ const createQueryFnContext = () => {
45034
+ const queryFnContext2 = {
45035
+ client: context.client,
45036
+ queryKey: context.queryKey,
45037
+ pageParam: param,
45038
+ direction: previous ? "backward" : "forward",
45039
+ meta: context.options.meta
45040
+ };
45041
+ addSignalProperty(queryFnContext2);
45042
+ return queryFnContext2;
45001
45043
  };
45002
- addSignalProperty(queryFnContext);
45003
- const page = await queryFn(
45004
- queryFnContext
45005
- );
45044
+ const queryFnContext = createQueryFnContext();
45045
+ const page = await queryFn(queryFnContext);
45006
45046
  const { maxPages } = context.options;
45007
45047
  const addTo = previous ? addToStart : addToEnd;
45008
45048
  return {
@@ -45085,8 +45125,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45085
45125
  }
45086
45126
  mount() {
45087
45127
  __privateWrapper(this, _mountCount)._++;
45088
- if (__privateGet(this, _mountCount) !== 1)
45089
- return;
45128
+ if (__privateGet(this, _mountCount) !== 1) return;
45090
45129
  __privateSet(this, _unsubscribeFocus, focusManager.subscribe(async (focused) => {
45091
45130
  if (focused) {
45092
45131
  await this.resumePausedMutations();
@@ -45103,8 +45142,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45103
45142
  unmount() {
45104
45143
  var _a2, _b2;
45105
45144
  __privateWrapper(this, _mountCount)._--;
45106
- if (__privateGet(this, _mountCount) !== 0)
45107
- return;
45145
+ if (__privateGet(this, _mountCount) !== 0) return;
45108
45146
  (_a2 = __privateGet(this, _unsubscribeFocus)) == null ? void 0 : _a2.call(this);
45109
45147
  __privateSet(this, _unsubscribeFocus, void 0);
45110
45148
  (_b2 = __privateGet(this, _unsubscribeOnline)) == null ? void 0 : _b2.call(this);
@@ -45116,6 +45154,13 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45116
45154
  isMutating(filters) {
45117
45155
  return __privateGet(this, _mutationCache2).findAll({ ...filters, status: "pending" }).length;
45118
45156
  }
45157
+ /**
45158
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
45159
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
45160
+ *
45161
+ * Hint: Do not use this function inside a component, because it won't receive updates.
45162
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
45163
+ */
45119
45164
  getQueryData(queryKey) {
45120
45165
  var _a2;
45121
45166
  const options = this.defaultQueryOptions({ queryKey });
@@ -45176,15 +45221,17 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45176
45221
  }
45177
45222
  resetQueries(filters, options) {
45178
45223
  const queryCache = __privateGet(this, _queryCache);
45179
- const refetchFilters = {
45180
- type: "active",
45181
- ...filters
45182
- };
45183
45224
  return notifyManager.batch(() => {
45184
45225
  queryCache.findAll(filters).forEach((query) => {
45185
45226
  query.reset();
45186
45227
  });
45187
- return this.refetchQueries(refetchFilters, options);
45228
+ return this.refetchQueries(
45229
+ {
45230
+ type: "active",
45231
+ ...filters
45232
+ },
45233
+ options
45234
+ );
45188
45235
  });
45189
45236
  }
45190
45237
  cancelQueries(filters, cancelOptions = {}) {
@@ -45192,7 +45239,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45192
45239
  const promises = notifyManager.batch(
45193
45240
  () => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
45194
45241
  );
45195
- return Promise.all(promises).then(noop$3).catch(noop$3);
45242
+ return Promise.all(promises).then(noop$2).catch(noop$2);
45196
45243
  }
45197
45244
  invalidateQueries(filters, options = {}) {
45198
45245
  return notifyManager.batch(() => {
@@ -45202,11 +45249,13 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45202
45249
  if ((filters == null ? void 0 : filters.refetchType) === "none") {
45203
45250
  return Promise.resolve();
45204
45251
  }
45205
- const refetchFilters = {
45206
- ...filters,
45207
- type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
45208
- };
45209
- return this.refetchQueries(refetchFilters, options);
45252
+ return this.refetchQueries(
45253
+ {
45254
+ ...filters,
45255
+ type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
45256
+ },
45257
+ options
45258
+ );
45210
45259
  });
45211
45260
  }
45212
45261
  refetchQueries(filters, options = {}) {
@@ -45215,15 +45264,15 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45215
45264
  cancelRefetch: options.cancelRefetch ?? true
45216
45265
  };
45217
45266
  const promises = notifyManager.batch(
45218
- () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
45267
+ () => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled() && !query.isStatic()).map((query) => {
45219
45268
  let promise = query.fetch(void 0, fetchOptions2);
45220
45269
  if (!fetchOptions2.throwOnError) {
45221
- promise = promise.catch(noop$3);
45270
+ promise = promise.catch(noop$2);
45222
45271
  }
45223
45272
  return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
45224
45273
  })
45225
45274
  );
45226
- return Promise.all(promises).then(noop$3);
45275
+ return Promise.all(promises).then(noop$2);
45227
45276
  }
45228
45277
  fetchQuery(options) {
45229
45278
  const defaultedOptions = this.defaultQueryOptions(options);
@@ -45236,14 +45285,14 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45236
45285
  ) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
45237
45286
  }
45238
45287
  prefetchQuery(options) {
45239
- return this.fetchQuery(options).then(noop$3).catch(noop$3);
45288
+ return this.fetchQuery(options).then(noop$2).catch(noop$2);
45240
45289
  }
45241
45290
  fetchInfiniteQuery(options) {
45242
45291
  options.behavior = infiniteQueryBehavior(options.pages);
45243
45292
  return this.fetchQuery(options);
45244
45293
  }
45245
45294
  prefetchInfiniteQuery(options) {
45246
- return this.fetchInfiniteQuery(options).then(noop$3).catch(noop$3);
45295
+ return this.fetchInfiniteQuery(options).then(noop$2).catch(noop$2);
45247
45296
  }
45248
45297
  ensureInfiniteQueryData(options) {
45249
45298
  options.behavior = infiniteQueryBehavior(options.pages);
@@ -45291,10 +45340,10 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45291
45340
  }
45292
45341
  getMutationDefaults(mutationKey) {
45293
45342
  const defaults2 = [...__privateGet(this, _mutationDefaults).values()];
45294
- let result = {};
45343
+ const result = {};
45295
45344
  defaults2.forEach((queryDefault) => {
45296
45345
  if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
45297
- result = { ...result, ...queryDefault.defaultOptions };
45346
+ Object.assign(result, queryDefault.defaultOptions);
45298
45347
  }
45299
45348
  });
45300
45349
  return result;
@@ -45417,7 +45466,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45417
45466
  __privateMethod(this, _QueryObserver_instances, clearRefetchInterval_fn).call(this);
45418
45467
  __privateGet(this, _currentQuery).removeObserver(this);
45419
45468
  }
45420
- setOptions(options, notifyOptions) {
45469
+ setOptions(options) {
45421
45470
  const prevOptions = this.options;
45422
45471
  const prevQuery = __privateGet(this, _currentQuery);
45423
45472
  this.options = __privateGet(this, _client2).defaultQueryOptions(options);
@@ -45444,7 +45493,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45444
45493
  )) {
45445
45494
  __privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
45446
45495
  }
45447
- this.updateResult(notifyOptions);
45496
+ this.updateResult();
45448
45497
  if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || resolveStaleTime(this.options.staleTime, __privateGet(this, _currentQuery)) !== resolveStaleTime(prevOptions.staleTime, __privateGet(this, _currentQuery)))) {
45449
45498
  __privateMethod(this, _QueryObserver_instances, updateStaleTimeout_fn).call(this);
45450
45499
  }
@@ -45467,19 +45516,13 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45467
45516
  return __privateGet(this, _currentResult);
45468
45517
  }
45469
45518
  trackResult(result, onPropTracked) {
45470
- const trackedResult = {};
45471
- Object.keys(result).forEach((key) => {
45472
- Object.defineProperty(trackedResult, key, {
45473
- configurable: false,
45474
- enumerable: true,
45475
- get: () => {
45476
- this.trackProp(key);
45477
- onPropTracked == null ? void 0 : onPropTracked(key);
45478
- return result[key];
45479
- }
45480
- });
45519
+ return new Proxy(result, {
45520
+ get: (target, key) => {
45521
+ this.trackProp(key);
45522
+ onPropTracked == null ? void 0 : onPropTracked(key);
45523
+ return Reflect.get(target, key);
45524
+ }
45481
45525
  });
45482
- return trackedResult;
45483
45526
  }
45484
45527
  trackProp(key) {
45485
45528
  __privateGet(this, _trackedProps).add(key);
@@ -45534,40 +45577,18 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45534
45577
  }
45535
45578
  }
45536
45579
  let { error, errorUpdatedAt, status } = newState;
45537
- if (options.select && newState.data !== void 0) {
45538
- if (prevResult && newState.data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
45539
- data = __privateGet(this, _selectResult);
45540
- } else {
45541
- try {
45542
- __privateSet(this, _selectFn, options.select);
45543
- data = options.select(newState.data);
45544
- data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
45545
- __privateSet(this, _selectResult, data);
45546
- __privateSet(this, _selectError, null);
45547
- } catch (selectError) {
45548
- __privateSet(this, _selectError, selectError);
45549
- }
45550
- }
45551
- } else {
45552
- data = newState.data;
45553
- }
45580
+ data = newState.data;
45581
+ let skipSelect = false;
45554
45582
  if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
45555
45583
  let placeholderData;
45556
45584
  if ((prevResult == null ? void 0 : prevResult.isPlaceholderData) && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) {
45557
45585
  placeholderData = prevResult.data;
45586
+ skipSelect = true;
45558
45587
  } else {
45559
45588
  placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
45560
45589
  (_a2 = __privateGet(this, _lastQueryWithDefinedData)) == null ? void 0 : _a2.state.data,
45561
45590
  __privateGet(this, _lastQueryWithDefinedData)
45562
45591
  ) : options.placeholderData;
45563
- if (options.select && placeholderData !== void 0) {
45564
- try {
45565
- placeholderData = options.select(placeholderData);
45566
- __privateSet(this, _selectError, null);
45567
- } catch (selectError) {
45568
- __privateSet(this, _selectError, selectError);
45569
- }
45570
- }
45571
45592
  }
45572
45593
  if (placeholderData !== void 0) {
45573
45594
  status = "success";
@@ -45579,6 +45600,21 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45579
45600
  isPlaceholderData = true;
45580
45601
  }
45581
45602
  }
45603
+ if (options.select && data !== void 0 && !skipSelect) {
45604
+ if (prevResult && data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
45605
+ data = __privateGet(this, _selectResult);
45606
+ } else {
45607
+ try {
45608
+ __privateSet(this, _selectFn, options.select);
45609
+ data = options.select(data);
45610
+ data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
45611
+ __privateSet(this, _selectResult, data);
45612
+ __privateSet(this, _selectError, null);
45613
+ } catch (selectError) {
45614
+ __privateSet(this, _selectError, selectError);
45615
+ }
45616
+ }
45617
+ }
45582
45618
  if (__privateGet(this, _selectError)) {
45583
45619
  error = __privateGet(this, _selectError);
45584
45620
  data = __privateGet(this, _selectResult);
@@ -45651,7 +45687,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45651
45687
  }
45652
45688
  return nextResult;
45653
45689
  }
45654
- updateResult(notifyOptions) {
45690
+ updateResult() {
45655
45691
  const prevResult = __privateGet(this, _currentResult);
45656
45692
  const nextResult = this.createResult(__privateGet(this, _currentQuery), this.options);
45657
45693
  __privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
@@ -45663,7 +45699,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45663
45699
  return;
45664
45700
  }
45665
45701
  __privateSet(this, _currentResult, nextResult);
45666
- const defaultNotifyOptions = {};
45667
45702
  const shouldNotifyListeners = () => {
45668
45703
  if (!prevResult) {
45669
45704
  return true;
@@ -45685,10 +45720,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45685
45720
  return changed && includedProps.has(typedKey);
45686
45721
  });
45687
45722
  };
45688
- if ((notifyOptions == null ? void 0 : notifyOptions.listeners) !== false && shouldNotifyListeners()) {
45689
- defaultNotifyOptions.listeners = true;
45690
- }
45691
- __privateMethod(this, _QueryObserver_instances, notify_fn).call(this, { ...defaultNotifyOptions, ...notifyOptions });
45723
+ __privateMethod(this, _QueryObserver_instances, notify_fn).call(this, { listeners: shouldNotifyListeners() });
45692
45724
  }
45693
45725
  onQueryUpdate() {
45694
45726
  this.updateResult();
@@ -45703,7 +45735,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45703
45735
  fetchOptions2
45704
45736
  );
45705
45737
  if (!(fetchOptions2 == null ? void 0 : fetchOptions2.throwOnError)) {
45706
- promise = promise.catch(noop$3);
45738
+ promise = promise.catch(noop$2);
45707
45739
  }
45708
45740
  return promise;
45709
45741
  }, updateStaleTimeout_fn = function() {
@@ -45780,7 +45812,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45780
45812
  return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
45781
45813
  }
45782
45814
  function shouldFetchOn(query, options, field) {
45783
- if (resolveEnabled(options.enabled, query) !== false) {
45815
+ if (resolveEnabled(options.enabled, query) !== false && resolveStaleTime(options.staleTime, query) !== "static") {
45784
45816
  const value2 = typeof field === "function" ? field(query) : field;
45785
45817
  return value2 === "always" || value2 !== false && isStale(query, options);
45786
45818
  }
@@ -45839,14 +45871,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45839
45871
  }
45840
45872
  var QueryErrorResetBoundaryContext = React__namespace.createContext(createValue());
45841
45873
  var useQueryErrorResetBoundary = () => React__namespace.useContext(QueryErrorResetBoundaryContext);
45842
- function shouldThrowError(throwError, params) {
45843
- if (typeof throwError === "function") {
45844
- return throwError(...params);
45845
- }
45846
- return !!throwError;
45847
- }
45848
- function noop$2() {
45849
- }
45850
45874
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
45851
45875
  if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
45852
45876
  if (!errorResetBoundary.isReset()) {
@@ -45869,9 +45893,10 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45869
45893
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
45870
45894
  };
45871
45895
  var ensureSuspenseTimers = (defaultedOptions) => {
45872
- const originalStaleTime = defaultedOptions.staleTime;
45873
45896
  if (defaultedOptions.suspense) {
45874
- defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => Math.max(originalStaleTime(...args), 1e3) : Math.max(originalStaleTime ?? 1e3, 1e3);
45897
+ const clamp2 = (value2) => value2 === "static" ? value2 : Math.max(value2 ?? 1e3, 1e3);
45898
+ const originalStaleTime = defaultedOptions.staleTime;
45899
+ defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => clamp2(originalStaleTime(...args)) : clamp2(originalStaleTime);
45875
45900
  if (typeof defaultedOptions.gcTime === "number") {
45876
45901
  defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, 1e3);
45877
45902
  }
@@ -45891,14 +45916,21 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45891
45916
  );
45892
45917
  }
45893
45918
  }
45894
- const client = useQueryClient();
45895
45919
  const isRestoring = useIsRestoring();
45896
45920
  const errorResetBoundary = useQueryErrorResetBoundary();
45921
+ const client = useQueryClient();
45897
45922
  const defaultedOptions = client.defaultQueryOptions(options);
45898
45923
  (_b2 = (_a2 = client.getDefaultOptions().queries) == null ? void 0 : _a2._experimental_beforeQuery) == null ? void 0 : _b2.call(
45899
45924
  _a2,
45900
45925
  defaultedOptions
45901
45926
  );
45927
+ if (process.env.NODE_ENV !== "production") {
45928
+ if (!defaultedOptions.queryFn) {
45929
+ console.error(
45930
+ `[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
45931
+ );
45932
+ }
45933
+ }
45902
45934
  defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
45903
45935
  ensureSuspenseTimers(defaultedOptions);
45904
45936
  ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);
@@ -45925,7 +45957,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
45925
45957
  () => observer.getCurrentResult()
45926
45958
  );
45927
45959
  React__namespace.useEffect(() => {
45928
- observer.setOptions(defaultedOptions, { listeners: false });
45960
+ observer.setOptions(defaultedOptions);
45929
45961
  }, [defaultedOptions, observer]);
45930
45962
  if (shouldSuspend(defaultedOptions, result)) {
45931
45963
  throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
@@ -46579,33 +46611,33 @@ Please use another name.` : formatMuiErrorMessage$1(18));
46579
46611
  "Content-Type": "application/json"
46580
46612
  }
46581
46613
  };
46582
- const documentSchema = z.object({
46583
- uri: z.string(),
46584
- primaryName: z.string(),
46585
- types: z.array(z.string()),
46586
- literals: z.object({
46587
- "telicent:primaryName": z.array(z.string())
46614
+ const documentSchema = objectType({
46615
+ uri: stringType(),
46616
+ primaryName: stringType(),
46617
+ types: arrayType(stringType()),
46618
+ literals: objectType({
46619
+ "telicent:primaryName": arrayType(stringType())
46588
46620
  }),
46589
- isState: z.boolean(),
46590
- inLocation: z.string(),
46591
- metadata: z.object({
46592
- documentFormat: z.string(),
46593
- generatedBy: z.string(),
46594
- generatorVersion: z.string()
46621
+ isState: booleanType(),
46622
+ inLocation: stringType(),
46623
+ metadata: objectType({
46624
+ documentFormat: stringType(),
46625
+ generatedBy: stringType(),
46626
+ generatorVersion: stringType()
46595
46627
  })
46596
46628
  });
46597
- const resultSchema = z.object({
46598
- id: z.string().url(),
46599
- score: z.number(),
46629
+ const resultSchema = objectType({
46630
+ id: stringType().url(),
46631
+ score: numberType(),
46600
46632
  document: documentSchema
46601
46633
  });
46602
- const ApiTypeAheadResponseSchema = z.object({
46603
- maybeMore: z.boolean(),
46604
- limit: z.number(),
46605
- offset: z.number(),
46606
- query: z.string(),
46607
- type: z.literal("phrase"),
46608
- results: z.array(resultSchema)
46634
+ const ApiTypeAheadResponseSchema = objectType({
46635
+ maybeMore: booleanType(),
46636
+ limit: numberType(),
46637
+ offset: numberType(),
46638
+ query: stringType(),
46639
+ type: literalType("phrase"),
46640
+ results: arrayType(resultSchema)
46609
46641
  });
46610
46642
  const fetchSearchResults = async (url, queryParamKey, query) => {
46611
46643
  const queryParams = new URLSearchParams({
@@ -51271,7 +51303,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
51271
51303
  return symbolToString ? symbolToString.call(value2) : "";
51272
51304
  }
51273
51305
  var result2 = value2 + "";
51274
- return result2 == "0" && 1 / value2 == -Infinity ? "-0" : result2;
51306
+ return result2 == "0" && 1 / value2 == -INFINITY ? "-0" : result2;
51275
51307
  }
51276
51308
  function baseUniq(array2, iteratee2, comparator) {
51277
51309
  var index = -1, includes2 = arrayIncludes, length2 = array2.length, isCommon = true, result2 = [], seen = result2;
@@ -52478,7 +52510,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
52478
52510
  return value2;
52479
52511
  }
52480
52512
  var result2 = value2 + "";
52481
- return result2 == "0" && 1 / value2 == -Infinity ? "-0" : result2;
52513
+ return result2 == "0" && 1 / value2 == -INFINITY ? "-0" : result2;
52482
52514
  }
52483
52515
  function toSource(func) {
52484
52516
  if (func != null) {
@@ -53542,7 +53574,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
53542
53574
  }
53543
53575
  var isRegExp2 = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
53544
53576
  function isSafeInteger(value2) {
53545
- return isInteger2(value2) && value2 >= -9007199254740991 && value2 <= MAX_SAFE_INTEGER;
53577
+ return isInteger2(value2) && value2 >= -MAX_SAFE_INTEGER && value2 <= MAX_SAFE_INTEGER;
53546
53578
  }
53547
53579
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
53548
53580
  function isString2(value2) {
@@ -53583,7 +53615,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
53583
53615
  return value2 === 0 ? value2 : 0;
53584
53616
  }
53585
53617
  value2 = toNumber(value2);
53586
- if (value2 === INFINITY || value2 === -Infinity) {
53618
+ if (value2 === INFINITY || value2 === -INFINITY) {
53587
53619
  var sign = value2 < 0 ? -1 : 1;
53588
53620
  return sign * MAX_INTEGER;
53589
53621
  }
@@ -53618,7 +53650,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
53618
53650
  return copyObject(value2, keysIn(value2));
53619
53651
  }
53620
53652
  function toSafeInteger(value2) {
53621
- return value2 ? baseClamp(toInteger(value2), -9007199254740991, MAX_SAFE_INTEGER) : value2 === 0 ? value2 : 0;
53653
+ return value2 ? baseClamp(toInteger(value2), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value2 === 0 ? value2 : 0;
53622
53654
  }
53623
53655
  function toString2(value2) {
53624
53656
  return value2 == null ? "" : baseToString(value2);
@@ -54897,7 +54929,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
54897
54929
  return null;
54898
54930
  }
54899
54931
  const renderDefaultColumnCell = (column2, index) => {
54900
- const columnSchema = z.string({
54932
+ const columnSchema = stringType({
54901
54933
  required_error: "Column is required",
54902
54934
  invalid_type_error: "Column must be a string"
54903
54935
  });
@@ -55330,22 +55362,41 @@ Please use another name.` : formatMuiErrorMessage$1(18));
55330
55362
  }
55331
55363
  return componentProps;
55332
55364
  }
55333
- function setRef(ref, value2) {
55334
- if (typeof ref === "function") {
55335
- ref(value2);
55336
- } else if (ref) {
55337
- ref.current = value2;
55338
- }
55339
- }
55340
55365
  function useForkRef(...refs) {
55366
+ const cleanupRef = React__namespace.useRef(void 0);
55367
+ const refEffect = React__namespace.useCallback((instance) => {
55368
+ const cleanups = refs.map((ref) => {
55369
+ if (ref == null) {
55370
+ return null;
55371
+ }
55372
+ if (typeof ref === "function") {
55373
+ const refCallback = ref;
55374
+ const refCleanup = refCallback(instance);
55375
+ return typeof refCleanup === "function" ? refCleanup : () => {
55376
+ refCallback(null);
55377
+ };
55378
+ }
55379
+ ref.current = instance;
55380
+ return () => {
55381
+ ref.current = null;
55382
+ };
55383
+ });
55384
+ return () => {
55385
+ cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
55386
+ };
55387
+ }, refs);
55341
55388
  return React__namespace.useMemo(() => {
55342
55389
  if (refs.every((ref) => ref == null)) {
55343
55390
  return null;
55344
55391
  }
55345
- return (instance) => {
55346
- refs.forEach((ref) => {
55347
- setRef(ref, instance);
55348
- });
55392
+ return (value2) => {
55393
+ if (cleanupRef.current) {
55394
+ cleanupRef.current();
55395
+ cleanupRef.current = void 0;
55396
+ }
55397
+ if (value2 != null) {
55398
+ cleanupRef.current = refEffect(value2);
55399
+ }
55349
55400
  };
55350
55401
  }, refs);
55351
55402
  }
@@ -59253,23 +59304,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59253
59304
  cjs.exports.DraggableCore = DraggableCore;
59254
59305
  var cjsExports = cjs.exports;
59255
59306
  const Draggable$1 = /* @__PURE__ */ getDefaultExportFromCjs(cjsExports);
59256
- var __extends$2 = /* @__PURE__ */ function() {
59257
- var extendStatics2 = function(d, b) {
59258
- extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
59259
- d2.__proto__ = b2;
59260
- } || function(d2, b2) {
59261
- for (var p2 in b2) if (Object.prototype.hasOwnProperty.call(b2, p2)) d2[p2] = b2[p2];
59262
- };
59263
- return extendStatics2(d, b);
59264
- };
59265
- return function(d, b) {
59266
- extendStatics2(d, b);
59267
- function __() {
59268
- this.constructor = d;
59269
- }
59270
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
59271
- };
59272
- }();
59273
59307
  var __assign$2 = function() {
59274
59308
  __assign$2 = Object.assign || function(t2) {
59275
59309
  for (var s2, i = 1, n = arguments.length; i < n; i++) {
@@ -59298,7 +59332,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59298
59332
  var edgeBase = {
59299
59333
  width: "20px",
59300
59334
  height: "20px",
59301
- position: "absolute"
59335
+ position: "absolute",
59336
+ zIndex: 1
59302
59337
  };
59303
59338
  var styles = {
59304
59339
  top: __assign$2(__assign$2({}, rowSizeBase), { top: "-5px" }),
@@ -59310,26 +59345,19 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59310
59345
  bottomLeft: __assign$2(__assign$2({}, edgeBase), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
59311
59346
  topLeft: __assign$2(__assign$2({}, edgeBase), { left: "-10px", top: "-10px", cursor: "nw-resize" })
59312
59347
  };
59313
- var Resizer = (
59314
- /** @class */
59315
- function(_super) {
59316
- __extends$2(Resizer2, _super);
59317
- function Resizer2() {
59318
- var _this = _super !== null && _super.apply(this, arguments) || this;
59319
- _this.onMouseDown = function(e) {
59320
- _this.props.onResizeStart(e, _this.props.direction);
59321
- };
59322
- _this.onTouchStart = function(e) {
59323
- _this.props.onResizeStart(e, _this.props.direction);
59324
- };
59325
- return _this;
59326
- }
59327
- Resizer2.prototype.render = function() {
59328
- return React__namespace.createElement("div", { className: this.props.className || "", style: __assign$2(__assign$2({ position: "absolute", userSelect: "none" }, styles[this.props.direction]), this.props.replaceStyles || {}), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children);
59329
- };
59330
- return Resizer2;
59331
- }(React__namespace.PureComponent)
59332
- );
59348
+ var Resizer = React$2.memo(function(props) {
59349
+ var onResizeStart = props.onResizeStart, direction = props.direction, children2 = props.children, replaceStyles = props.replaceStyles, className = props.className;
59350
+ var onMouseDown = React$2.useCallback(function(e) {
59351
+ onResizeStart(e, direction);
59352
+ }, [onResizeStart, direction]);
59353
+ var onTouchStart = React$2.useCallback(function(e) {
59354
+ onResizeStart(e, direction);
59355
+ }, [onResizeStart, direction]);
59356
+ var style2 = React$2.useMemo(function() {
59357
+ return __assign$2(__assign$2({ position: "absolute", userSelect: "none" }, styles[direction]), replaceStyles !== null && replaceStyles !== void 0 ? replaceStyles : {});
59358
+ }, [replaceStyles, direction]);
59359
+ return jsxRuntimeExports.jsx("div", { className: className || void 0, style: style2, onMouseDown, onTouchStart, children: children2 });
59360
+ });
59333
59361
  var __extends$1 = /* @__PURE__ */ function() {
59334
59362
  var extendStatics2 = function(d, b) {
59335
59363
  extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -59340,6 +59368,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59340
59368
  return extendStatics2(d, b);
59341
59369
  };
59342
59370
  return function(d, b) {
59371
+ if (typeof b !== "function" && b !== null)
59372
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
59343
59373
  extendStatics2(d, b);
59344
59374
  function __() {
59345
59375
  this.constructor = d;
@@ -59411,7 +59441,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59411
59441
  if (n.endsWith("vmin")) {
59412
59442
  return n;
59413
59443
  }
59414
- return n + "px";
59444
+ return "".concat(n, "px");
59415
59445
  };
59416
59446
  var getPixelSize = function(size, parentSize, innerWidth2, innerHeight2) {
59417
59447
  if (size && typeof size === "string") {
@@ -59499,6 +59529,10 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59499
59529
  _this.resizableBottom = 0;
59500
59530
  _this.targetLeft = 0;
59501
59531
  _this.targetTop = 0;
59532
+ _this.delta = {
59533
+ width: 0,
59534
+ height: 0
59535
+ };
59502
59536
  _this.appendBase = function() {
59503
59537
  if (!_this.resizable || !_this.window) {
59504
59538
  return null;
@@ -59626,7 +59660,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59626
59660
  var parentSize = _this.getParentSize();
59627
59661
  var value2 = Number(_this.state[key].toString().replace("px", ""));
59628
59662
  var percent = value2 / parentSize[key] * 100;
59629
- return percent + "%";
59663
+ return "".concat(percent, "%");
59630
59664
  }
59631
59665
  return getStringSize(_this.state[key]);
59632
59666
  };
@@ -59923,28 +59957,29 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59923
59957
  width: newWidth - original.width,
59924
59958
  height: newHeight - original.height
59925
59959
  };
59960
+ this.delta = delta;
59926
59961
  if (width2 && typeof width2 === "string") {
59927
59962
  if (width2.endsWith("%")) {
59928
59963
  var percent = newWidth / parentSize.width * 100;
59929
- newWidth = percent + "%";
59964
+ newWidth = "".concat(percent, "%");
59930
59965
  } else if (width2.endsWith("vw")) {
59931
59966
  var vw = newWidth / this.window.innerWidth * 100;
59932
- newWidth = vw + "vw";
59967
+ newWidth = "".concat(vw, "vw");
59933
59968
  } else if (width2.endsWith("vh")) {
59934
59969
  var vh = newWidth / this.window.innerHeight * 100;
59935
- newWidth = vh + "vh";
59970
+ newWidth = "".concat(vh, "vh");
59936
59971
  }
59937
59972
  }
59938
59973
  if (height2 && typeof height2 === "string") {
59939
59974
  if (height2.endsWith("%")) {
59940
59975
  var percent = newHeight / parentSize.height * 100;
59941
- newHeight = percent + "%";
59976
+ newHeight = "".concat(percent, "%");
59942
59977
  } else if (height2.endsWith("vw")) {
59943
59978
  var vw = newHeight / this.window.innerWidth * 100;
59944
- newHeight = vw + "vw";
59979
+ newHeight = "".concat(vw, "vw");
59945
59980
  } else if (height2.endsWith("vh")) {
59946
59981
  var vh = newHeight / this.window.innerHeight * 100;
59947
- newHeight = vh + "vh";
59982
+ newHeight = "".concat(vh, "vh");
59948
59983
  }
59949
59984
  }
59950
59985
  var newState = {
@@ -59973,16 +60008,13 @@ Please use another name.` : formatMuiErrorMessage$1(18));
59973
60008
  };
59974
60009
  Resizable2.prototype.onMouseUp = function(event) {
59975
60010
  var _a2, _b2;
59976
- var _c2 = this.state, isResizing = _c2.isResizing, direction = _c2.direction, original = _c2.original;
60011
+ var _c2 = this.state, isResizing = _c2.isResizing, direction = _c2.direction;
60012
+ _c2.original;
59977
60013
  if (!isResizing || !this.resizable) {
59978
60014
  return;
59979
60015
  }
59980
- var delta = {
59981
- width: this.size.width - original.width,
59982
- height: this.size.height - original.height
59983
- };
59984
60016
  if (this.props.onResizeStop) {
59985
- this.props.onResizeStop(event, direction, this.resizable, delta);
60017
+ this.props.onResizeStop(event, direction, this.resizable, this.delta);
59986
60018
  }
59987
60019
  if (this.props.size) {
59988
60020
  this.setState({ width: (_a2 = this.props.size.width) !== null && _a2 !== void 0 ? _a2 : "auto", height: (_b2 = this.props.size.height) !== null && _b2 !== void 0 ? _b2 : "auto" });
@@ -60005,11 +60037,11 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60005
60037
  }
60006
60038
  var resizers = Object.keys(enable).map(function(dir) {
60007
60039
  if (enable[dir] !== false) {
60008
- return React__namespace.createElement(Resizer, { key: dir, direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir] }, handleComponent && handleComponent[dir] ? handleComponent[dir] : null);
60040
+ return jsxRuntimeExports.jsx(Resizer, { direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir], children: handleComponent && handleComponent[dir] ? handleComponent[dir] : null }, dir);
60009
60041
  }
60010
60042
  return null;
60011
60043
  });
60012
- return React__namespace.createElement("div", { className: handleWrapperClass, style: handleWrapperStyle }, resizers);
60044
+ return jsxRuntimeExports.jsx("div", { className: handleWrapperClass, style: handleWrapperStyle, children: resizers });
60013
60045
  };
60014
60046
  Resizable2.prototype.render = function() {
60015
60047
  var _this = this;
@@ -60025,21 +60057,16 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60025
60057
  style2.flexBasis = this.state.flexBasis;
60026
60058
  }
60027
60059
  var Wrapper = this.props.as || "div";
60028
- return React__namespace.createElement(
60029
- Wrapper,
60030
- __assign$1({ style: style2, className: this.props.className }, extendsProps, {
60031
- // `ref` is after `extendsProps` to ensure this one wins over a version
60032
- // passed in
60033
- ref: function(c) {
60034
- if (c) {
60035
- _this.resizable = c;
60036
- }
60060
+ return jsxRuntimeExports.jsxs(Wrapper, __assign$1({ style: style2, className: this.props.className }, extendsProps, {
60061
+ // `ref` is after `extendsProps` to ensure this one wins over a version
60062
+ // passed in
60063
+ ref: function(c) {
60064
+ if (c) {
60065
+ _this.resizable = c;
60037
60066
  }
60038
- }),
60039
- this.state.isResizing && React__namespace.createElement("div", { style: this.state.backgroundStyle }),
60040
- this.props.children,
60041
- this.renderResizer()
60042
- );
60067
+ },
60068
+ children: [this.state.isResizing && jsxRuntimeExports.jsx("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()]
60069
+ }));
60043
60070
  };
60044
60071
  Resizable2.defaultProps = {
60045
60072
  as: "div",
@@ -60070,7 +60097,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60070
60097
  snapGap: 0
60071
60098
  };
60072
60099
  return Resizable2;
60073
- }(React__namespace.PureComponent)
60100
+ }(React$2.PureComponent)
60074
60101
  );
60075
60102
  /*! *****************************************************************************
60076
60103
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -60479,7 +60506,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60479
60506
  _a2.onDragStart;
60480
60507
  _a2.onDrag;
60481
60508
  _a2.onDragStop;
60482
- var resizeHandleStyles = _a2.resizeHandleStyles, resizeHandleClasses = _a2.resizeHandleClasses, resizeHandleComponent = _a2.resizeHandleComponent, enableResizing = _a2.enableResizing, resizeGrid = _a2.resizeGrid, resizeHandleWrapperClass = _a2.resizeHandleWrapperClass, resizeHandleWrapperStyle = _a2.resizeHandleWrapperStyle, scale = _a2.scale, allowAnyClick = _a2.allowAnyClick, resizableProps = __rest(_a2, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick"]);
60509
+ var resizeHandleStyles = _a2.resizeHandleStyles, resizeHandleClasses = _a2.resizeHandleClasses, resizeHandleComponent = _a2.resizeHandleComponent, enableResizing = _a2.enableResizing, resizeGrid = _a2.resizeGrid, resizeHandleWrapperClass = _a2.resizeHandleWrapperClass, resizeHandleWrapperStyle = _a2.resizeHandleWrapperStyle, scale = _a2.scale, allowAnyClick = _a2.allowAnyClick, dragPositionOffset = _a2.dragPositionOffset, resizableProps = __rest(_a2, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick", "dragPositionOffset"]);
60483
60510
  var defaultValue = this.props.default ? __assign({}, this.props.default) : void 0;
60484
60511
  delete resizableProps.default;
60485
60512
  var cursorStyle = disableDragging || dragHandleClassName ? { cursor: "auto" } : { cursor: "move" };
@@ -60519,7 +60546,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60519
60546
  cancel,
60520
60547
  scale,
60521
60548
  allowAnyClick,
60522
- nodeRef: this.resizableElement
60549
+ nodeRef: this.resizableElement,
60550
+ positionOffset: dragPositionOffset
60523
60551
  },
60524
60552
  React$2.createElement(Resizable, __assign({}, resizableProps, { ref: function(c) {
60525
60553
  if (!c)
@@ -61822,42 +61850,42 @@ Please use another name.` : formatMuiErrorMessage$1(18));
61822
61850
  /* @__PURE__ */ jsx$1(CssBaseline, {}),
61823
61851
  children2
61824
61852
  ] });
61825
- const reactElementSchema = z.object({
61826
- type: z.union([z.string(), z.function(), z.symbol(), z.object({}).passthrough()]),
61853
+ const reactElementSchema = objectType({
61854
+ type: unionType([stringType(), functionType(), symbolType(), objectType({}).passthrough()]),
61827
61855
  // Type can be a string or a function (JSXElementConstructor)
61828
- props: z.record(z.any()),
61856
+ props: recordType(anyType()),
61829
61857
  // Props is an object with any keys
61830
- key: z.union([z.string(), z.number(), z.null()]).optional()
61858
+ key: unionType([stringType(), numberType(), nullType()]).optional()
61831
61859
  // Key is either string, number, or null
61832
61860
  });
61833
- const allModalPropsSchema = z.object({
61834
- open: z.boolean(),
61861
+ const allModalPropsSchema = objectType({
61862
+ open: booleanType(),
61835
61863
  children: reactElementSchema,
61836
- className: z.string().optional(),
61837
- id: z.string().optional(),
61838
- role: z.string().optional(),
61839
- closeAfterTransition: z.boolean().optional(),
61840
- components: z.any().optional(),
61841
- componentsProps: z.any().optional(),
61842
- container: z.any().optional(),
61843
- disableAutoFocus: z.boolean().optional(),
61844
- disableEnforceFocus: z.boolean().optional(),
61845
- disableEscapeKeyDown: z.boolean().optional(),
61846
- disablePortal: z.boolean().optional(),
61847
- disableRestoreFocus: z.boolean().optional(),
61848
- disableScrollLock: z.boolean().optional(),
61849
- hideBackdrop: z.boolean().optional(),
61850
- keepMounted: z.boolean().optional(),
61851
- manager: z.any().optional(),
61852
- onBackdropClick: z.function().optional(),
61853
- onClose: z.function().optional(),
61854
- onTransitionEnter: z.function().optional(),
61855
- onTransitionExit: z.function().optional(),
61856
- sx: z.any().optional(),
61857
- BackdropComponent: z.any().optional(),
61858
- BackdropProps: z.any().optional(),
61859
- slots: z.any().optional(),
61860
- slotProps: z.any().optional()
61864
+ className: stringType().optional(),
61865
+ id: stringType().optional(),
61866
+ role: stringType().optional(),
61867
+ closeAfterTransition: booleanType().optional(),
61868
+ components: anyType().optional(),
61869
+ componentsProps: anyType().optional(),
61870
+ container: anyType().optional(),
61871
+ disableAutoFocus: booleanType().optional(),
61872
+ disableEnforceFocus: booleanType().optional(),
61873
+ disableEscapeKeyDown: booleanType().optional(),
61874
+ disablePortal: booleanType().optional(),
61875
+ disableRestoreFocus: booleanType().optional(),
61876
+ disableScrollLock: booleanType().optional(),
61877
+ hideBackdrop: booleanType().optional(),
61878
+ keepMounted: booleanType().optional(),
61879
+ manager: anyType().optional(),
61880
+ onBackdropClick: functionType().optional(),
61881
+ onClose: functionType().optional(),
61882
+ onTransitionEnter: functionType().optional(),
61883
+ onTransitionExit: functionType().optional(),
61884
+ sx: anyType().optional(),
61885
+ BackdropComponent: anyType().optional(),
61886
+ BackdropProps: anyType().optional(),
61887
+ slots: anyType().optional(),
61888
+ slotProps: anyType().optional()
61861
61889
  });
61862
61890
  const modalPropsSchema = allModalPropsSchema.omit({
61863
61891
  slots: true,
@@ -69257,7 +69285,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
69257
69285
  if (!t3) continue;
69258
69286
  S3 = y4.imageName, e3.iconsInText = e3.iconsInText || true, A4 = t3.paddedRect;
69259
69287
  const r5 = t3.displaySize;
69260
- y4.scale = y4.scale * Vl / p4, b5 = { width: r5[0], height: r5[1], left: lu, top: -3, advance: I2 ? r5[1] : r5[0] }, x5 = l4 + (Vl - r5[1] * y4.scale), k2 = b5.advance;
69288
+ y4.scale = y4.scale * Vl / p4, b5 = { width: r5[0], height: r5[1], left: lu, top: -su, advance: I2 ? r5[1] : r5[0] }, x5 = l4 + (Vl - r5[1] * y4.scale), k2 = b5.advance;
69261
69289
  const n4 = I2 ? r5[0] * y4.scale - Vl * a4 : r5[1] * y4.scale - Vl * a4;
69262
69290
  n4 > 0 && n4 > _5 && (_5 = n4);
69263
69291
  } else {
@@ -70292,7 +70320,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
70292
70320
  return n2;
70293
70321
  }
70294
70322
  function Fc(t3, e2, r3) {
70295
- const n2 = [{ fixed: -1, stretch: 0 }];
70323
+ const n2 = [{ fixed: -Pc, stretch: 0 }];
70296
70324
  for (const [e3, r4] of t3) {
70297
70325
  const t4 = n2[n2.length - 1];
70298
70326
  n2.push({ fixed: e3 - t4.stretch, stretch: t4.stretch }), n2.push({ fixed: e3 - t4.stretch, stretch: t4.stretch + (r4 - e3) });
@@ -72476,7 +72504,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
72476
72504
  for (let h2 = i2; h2 < i2 + a2; h2++) I(t3, h2 * o3 + e2, 1, s3, r3, n2, l2);
72477
72505
  }
72478
72506
  function I(t3, e2, i2, s3, a2, o3, r3) {
72479
- o3[0] = 0, r3[0] = -1e20, r3[1] = w2, a2[0] = t3[e2];
72507
+ o3[0] = 0, r3[0] = -w2, r3[1] = w2, a2[0] = t3[e2];
72480
72508
  for (let n2 = 1, l2 = 0, h2 = 0; n2 < s3; n2++) {
72481
72509
  a2[n2] = t3[e2 + n2 * i2];
72482
72510
  const s4 = n2 * n2;
@@ -78795,7 +78823,7 @@ uniform ${i3} ${s4} u_${a3};
78795
78823
  if (this._popup && (this._popup.remove(), this._popup = null, this._element.removeEventListener("keypress", this._onKeyPress), this._originalTabIndex || this._element.removeAttribute("tabindex")), t3) {
78796
78824
  if (!("offset" in t3.options)) {
78797
78825
  const e2 = 38.1, i2 = 13.5, s3 = Math.abs(i2) / Math.SQRT2;
78798
- t3.options.offset = this._defaultMarker ? { top: [0, 0], "top-left": [0, 0], "top-right": [0, 0], bottom: [0, -38.1], "bottom-left": [s3, -1 * (e2 - i2 + s3)], "bottom-right": [-s3, -1 * (e2 - i2 + s3)], left: [i2, -1 * (e2 - i2)], right: [-13.5, -1 * (e2 - i2)] } : this._offset;
78826
+ t3.options.offset = this._defaultMarker ? { top: [0, 0], "top-left": [0, 0], "top-right": [0, 0], bottom: [0, -e2], "bottom-left": [s3, -1 * (e2 - i2 + s3)], "bottom-right": [-s3, -1 * (e2 - i2 + s3)], left: [i2, -1 * (e2 - i2)], right: [-i2, -1 * (e2 - i2)] } : this._offset;
78799
78827
  }
78800
78828
  this._popup = t3, this._lngLat && this._popup.setLngLat(this._lngLat), this._originalTabIndex = this._element.getAttribute("tabindex"), this._originalTabIndex || this._element.setAttribute("tabindex", "0"), this._element.addEventListener("keypress", this._onKeyPress);
78801
78829
  }
@@ -80201,10 +80229,10 @@ uniform ${i3} ${s4} u_${a3};
80201
80229
  height: "28px"
80202
80230
  }, children: faIcon ? /* @__PURE__ */ jsx$1("i", { "data-icon": faIcon, className: classNames(faIcon, "px-1") }) : /* @__PURE__ */ jsx$1("p", { className: "p-1 font-body", children: labelCharacters }) }, marker.uri) });
80203
80231
  };
80204
- z.object({
80205
- label: z.string(),
80206
- uri: z.string(),
80207
- image: z.string()
80232
+ objectType({
80233
+ label: stringType(),
80234
+ uri: stringType(),
80235
+ image: stringType()
80208
80236
  });
80209
80237
  const useStyleSelector = (initialMapConfig) => {
80210
80238
  const [selected, setSelected] = React$2.useState(null);
@@ -80511,7 +80539,8 @@ uniform ${i3} ${s4} u_${a3};
80511
80539
  m: 2,
80512
80540
  p: 2
80513
80541
  }, open: isOpen, children: /* @__PURE__ */ jsxs(FlexBox, { sx: {
80514
- p: 2
80542
+ p: 2,
80543
+ overflowY: "auto"
80515
80544
  }, children: [
80516
80545
  /* @__PURE__ */ jsxs(H3, { children: [
80517
80546
  /* @__PURE__ */ jsx$1("i", { className: "fa-regular fa-circle-exclamation" }),
@@ -82922,8 +82951,7 @@ uniform ${i3} ${s4} u_${a3};
82922
82951
  if (((_a2 = err.response) == null ? void 0 : _a2.status) === 401) {
82923
82952
  if (queryClient2) {
82924
82953
  keysToInvalidate.forEach((key) => queryClient2.invalidateQueries({
82925
- queryKey: key,
82926
- exact: true
82954
+ queryKey: key
82927
82955
  }));
82928
82956
  }
82929
82957
  broadcastChannel == null ? void 0 : broadcastChannel.postMessage("unauthorized");
@@ -82938,13 +82966,17 @@ uniform ${i3} ${s4} u_${a3};
82938
82966
  const instance = axios.create({
82939
82967
  baseURL
82940
82968
  });
82941
- return {
82969
+ const api2 = {
82942
82970
  instance,
82943
- withSessionHandling: (config2) => withSessionHandling(instance, config2),
82971
+ withSessionHandling: (config2) => {
82972
+ withSessionHandling(instance, config2);
82973
+ return api2;
82974
+ },
82944
82975
  build: () => ({
82945
82976
  instance
82946
82977
  })
82947
82978
  };
82979
+ return api2;
82948
82980
  };
82949
82981
  const base64Codec = {
82950
82982
  param: "safeB64",
@@ -82974,7 +83006,7 @@ uniform ${i3} ${s4} u_${a3};
82974
83006
  return uriComponentCodec;
82975
83007
  }
82976
83008
  };
82977
- const ENCODE_SEARCH_PARAMS_MODES_Schema = z.union([z.literal("as base64"), z.literal("as uri component")]);
83009
+ const ENCODE_SEARCH_PARAMS_MODES_Schema = unionType([literalType("as base64"), literalType("as uri component")]);
82978
83010
  /**
82979
83011
  * @remix-run/router v1.23.0
82980
83012
  *
@@ -83221,7 +83253,7 @@ uniform ${i3} ${s4} u_${a3};
83221
83253
  const validRequestMethodsArr = ["get", ...validMutationMethodsArr];
83222
83254
  new Set(validRequestMethodsArr);
83223
83255
  /**
83224
- * React Router v6.30.0
83256
+ * React Router v6.30.1
83225
83257
  *
83226
83258
  * Copyright (c) Remix Software Inc.
83227
83259
  *
@@ -83459,7 +83491,7 @@ uniform ${i3} ${s4} u_${a3};
83459
83491
  new Promise(() => {
83460
83492
  });
83461
83493
  /**
83462
- * React Router DOM v6.30.0
83494
+ * React Router DOM v6.30.1
83463
83495
  *
83464
83496
  * Copyright (c) Remix Software Inc.
83465
83497
  *
@@ -84088,15 +84120,15 @@ uniform ${i3} ${s4} u_${a3};
84088
84120
  set,
84089
84121
  remove
84090
84122
  };
84091
- const WipeOnMessageConfigSchema = z.object({
84092
- register: z.object({
84093
- scriptURL: z.string(),
84123
+ const WipeOnMessageConfigSchema = objectType({
84124
+ register: objectType({
84125
+ scriptURL: stringType(),
84094
84126
  // valid string
84095
- scope: z.string()
84127
+ scope: stringType()
84096
84128
  // service-worker scope
84097
84129
  }),
84098
- fetchStatus: z.function().args().returns(z.promise(z.object({
84099
- status: z.number()
84130
+ fetchStatus: functionType().args().returns(promiseType(objectType({
84131
+ status: numberType()
84100
84132
  })))
84101
84133
  });
84102
84134
  const setupWipeOnMessage = async (triggerWipe, checkUser, config2) => {
@@ -84157,15 +84189,15 @@ uniform ${i3} ${s4} u_${a3};
84157
84189
  const pollInterval = setInterval(() => checkUser("poll"), checkUserPollTime);
84158
84190
  window.addEventListener("beforeunload", () => clearInterval(pollInterval));
84159
84191
  };
84160
- const WipeConfigSchema = z.object({
84161
- onAuthErrorOnLoad: z.function(),
84162
- autoLogoutURL: z.preprocess((val) => typeof val === "string" ? new URL(val) : val, z.instanceof(URL)).optional(),
84192
+ const WipeConfigSchema = objectType({
84193
+ onAuthErrorOnLoad: functionType(),
84194
+ autoLogoutURL: preprocessType((val) => typeof val === "string" ? new URL(val) : val, instanceOfType(URL)).optional(),
84163
84195
  wipeOnMessage: WipeOnMessageConfigSchema.optional(),
84164
- isCheckOnPageVisibility: z.boolean().optional(),
84165
- isClickGating: z.boolean().optional(),
84166
- checkUserPollTime: z.number().int().positive().optional(),
84167
- verbose: z.boolean().optional(),
84168
- fetchCurrentUser: z.function().args().returns(z.promise(z.union([z.string(), z.void()])))
84196
+ isCheckOnPageVisibility: booleanType().optional(),
84197
+ isClickGating: booleanType().optional(),
84198
+ checkUserPollTime: numberType().int().positive().optional(),
84199
+ verbose: booleanType().optional(),
84200
+ fetchCurrentUser: functionType().args().returns(promiseType(unionType([stringType(), voidType()])))
84169
84201
  }).optional();
84170
84202
  let isSetup = false;
84171
84203
  const setupWipe = async (config2) => {