@versini/sassysaint 5.1.2 → 5.1.4

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.
@@ -1,15 +1,15 @@
1
- import { jsx as c, jsxs as T, Fragment as pe } from "react/jsx-runtime";
2
- import H, { createContext as ir, useReducer as It, useRef as J, useCallback as z, useEffect as q, useContext as vt, useSyncExternalStore as cr, useId as St, useState as F, useLayoutEffect as lr, useMemo as kt, lazy as At, Suspense as _t } from "react";
3
- import g from "clsx";
1
+ import { jsx as l, jsxs as v, Fragment as ye } from "react/jsx-runtime";
2
+ import W, { createContext as cr, useReducer as It, useRef as $, useCallback as q, useEffect as Q, useContext as At, useSyncExternalStore as lr, useId as kt, useState as j, useLayoutEffect as st, useMemo as St, lazy as _t, Suspense as Rt } from "react";
3
+ import f from "clsx";
4
4
  var dr = Object.defineProperty, ur = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, He = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
5
5
  /*!
6
- @versini/auth-provider v7.3.2
6
+ @versini/auth-provider v7.3.3
7
7
  © 2024 gizmette.com
8
8
  */
9
9
  try {
10
10
  window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
11
- version: "7.3.2",
12
- buildTime: "09/19/2024 02:34 PM EDT",
11
+ version: "7.3.3",
12
+ buildTime: "09/30/2024 01:36 PM EDT",
13
13
  homepage: "https://github.com/aversini/auth-client",
14
14
  license: "MIT"
15
15
  });
@@ -22,7 +22,7 @@ function K(e) {
22
22
  r += String.fromCharCode(a);
23
23
  return btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
24
24
  }
25
- function _e(e) {
25
+ function xe(e) {
26
26
  const t = e.replace(/-/g, "+").replace(/_/g, "/"), r = (4 - t.length % 4) % 4, a = t.padEnd(t.length + r, "="), n = atob(a), o = new ArrayBuffer(n.length), s = new Uint8Array(o);
27
27
  for (let i = 0; i < n.length; i++)
28
28
  s[i] = n.charCodeAt(i);
@@ -31,18 +31,18 @@ function _e(e) {
31
31
  function Qe() {
32
32
  return (window == null ? void 0 : window.PublicKeyCredential) !== void 0 && typeof window.PublicKeyCredential == "function";
33
33
  }
34
- function Rt(e) {
34
+ function Nt(e) {
35
35
  const { id: t } = e;
36
36
  return {
37
37
  ...e,
38
- id: _e(t),
38
+ id: xe(t),
39
39
  transports: e.transports
40
40
  };
41
41
  }
42
- function Nt(e) {
42
+ function xt(e) {
43
43
  return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
44
44
  }
45
- class R extends Error {
45
+ class x extends Error {
46
46
  constructor({ message: t, code: r, cause: a, name: n }) {
47
47
  super(t, { cause: a }), this.name = n ?? a.name, this.code = r;
48
48
  }
@@ -54,70 +54,70 @@ function mr({ error: e, options: t }) {
54
54
  throw Error("options was missing required publicKey property");
55
55
  if (e.name === "AbortError") {
56
56
  if (t.signal instanceof AbortSignal)
57
- return new R({
57
+ return new x({
58
58
  message: "Registration ceremony was sent an abort signal",
59
59
  code: "ERROR_CEREMONY_ABORTED",
60
60
  cause: e
61
61
  });
62
62
  } else if (e.name === "ConstraintError") {
63
63
  if (((a = r.authenticatorSelection) == null ? void 0 : a.requireResidentKey) === !0)
64
- return new R({
64
+ return new x({
65
65
  message: "Discoverable credentials were required but no available authenticator supported it",
66
66
  code: "ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",
67
67
  cause: e
68
68
  });
69
69
  if (((n = r.authenticatorSelection) == null ? void 0 : n.userVerification) === "required")
70
- return new R({
70
+ return new x({
71
71
  message: "User verification was required but no available authenticator supported it",
72
72
  code: "ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",
73
73
  cause: e
74
74
  });
75
75
  } else {
76
76
  if (e.name === "InvalidStateError")
77
- return new R({
77
+ return new x({
78
78
  message: "The authenticator was previously registered",
79
79
  code: "ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",
80
80
  cause: e
81
81
  });
82
82
  if (e.name === "NotAllowedError")
83
- return new R({
83
+ return new x({
84
84
  message: e.message,
85
85
  code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
86
86
  cause: e
87
87
  });
88
88
  if (e.name === "NotSupportedError")
89
- return r.pubKeyCredParams.filter((o) => o.type === "public-key").length === 0 ? new R({
89
+ return r.pubKeyCredParams.filter((o) => o.type === "public-key").length === 0 ? new x({
90
90
  message: 'No entry in pubKeyCredParams was of type "public-key"',
91
91
  code: "ERROR_MALFORMED_PUBKEYCREDPARAMS",
92
92
  cause: e
93
- }) : new R({
93
+ }) : new x({
94
94
  message: "No available authenticator supported any of the specified pubKeyCredParams algorithms",
95
95
  code: "ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",
96
96
  cause: e
97
97
  });
98
98
  if (e.name === "SecurityError") {
99
99
  const o = window.location.hostname;
100
- if (Nt(o)) {
100
+ if (xt(o)) {
101
101
  if (r.rp.id !== o)
102
- return new R({
102
+ return new x({
103
103
  message: `The RP ID "${r.rp.id}" is invalid for this domain`,
104
104
  code: "ERROR_INVALID_RP_ID",
105
105
  cause: e
106
106
  });
107
- } else return new R({
107
+ } else return new x({
108
108
  message: `${window.location.hostname} is an invalid domain`,
109
109
  code: "ERROR_INVALID_DOMAIN",
110
110
  cause: e
111
111
  });
112
112
  } else if (e.name === "TypeError") {
113
113
  if (r.user.id.byteLength < 1 || r.user.id.byteLength > 64)
114
- return new R({
114
+ return new x({
115
115
  message: "User ID was not between 1 and 64 characters",
116
116
  code: "ERROR_INVALID_USER_ID_LENGTH",
117
117
  cause: e
118
118
  });
119
119
  } else if (e.name === "UnknownError")
120
- return new R({
120
+ return new x({
121
121
  message: "The authenticator was unable to process the specified options, or could not create a new credential",
122
122
  code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
123
123
  cause: e
@@ -142,7 +142,7 @@ class hr {
142
142
  }
143
143
  }
144
144
  const Ct = new hr(), pr = ["cross-platform", "platform"];
145
- function xt(e) {
145
+ function Ot(e) {
146
146
  if (e && !(pr.indexOf(e) < 0))
147
147
  return e;
148
148
  }
@@ -152,19 +152,19 @@ async function gr(e) {
152
152
  throw new Error("WebAuthn is not supported in this browser");
153
153
  const t = { publicKey: {
154
154
  ...e,
155
- challenge: _e(e.challenge),
155
+ challenge: xe(e.challenge),
156
156
  user: {
157
157
  ...e.user,
158
- id: _e(e.user.id)
158
+ id: xe(e.user.id)
159
159
  },
160
- excludeCredentials: (m = e.excludeCredentials) == null ? void 0 : m.map(Rt)
160
+ excludeCredentials: (m = e.excludeCredentials) == null ? void 0 : m.map(Nt)
161
161
  } };
162
162
  t.signal = Ct.createNewAbortSignal();
163
163
  let r;
164
164
  try {
165
165
  r = await navigator.credentials.create(t);
166
- } catch (l) {
167
- throw mr({ error: l, options: t });
166
+ } catch (c) {
167
+ throw mr({ error: c, options: t });
168
168
  }
169
169
  if (!r)
170
170
  throw new Error("Registration was not completed");
@@ -175,23 +175,23 @@ async function gr(e) {
175
175
  if (typeof o.getPublicKeyAlgorithm == "function")
176
176
  try {
177
177
  u = o.getPublicKeyAlgorithm();
178
- } catch (l) {
179
- We("getPublicKeyAlgorithm()", l);
178
+ } catch (c) {
179
+ We("getPublicKeyAlgorithm()", c);
180
180
  }
181
181
  let h;
182
182
  if (typeof o.getPublicKey == "function")
183
183
  try {
184
- const l = o.getPublicKey();
185
- l !== null && (h = K(l));
186
- } catch (l) {
187
- We("getPublicKey()", l);
184
+ const c = o.getPublicKey();
185
+ c !== null && (h = K(c));
186
+ } catch (c) {
187
+ We("getPublicKey()", c);
188
188
  }
189
189
  let p;
190
190
  if (typeof o.getAuthenticatorData == "function")
191
191
  try {
192
192
  p = K(o.getAuthenticatorData());
193
- } catch (l) {
194
- We("getAuthenticatorData()", l);
193
+ } catch (c) {
194
+ We("getAuthenticatorData()", c);
195
195
  }
196
196
  return {
197
197
  id: a,
@@ -206,7 +206,7 @@ async function gr(e) {
206
206
  },
207
207
  type: s,
208
208
  clientExtensionResults: r.getClientExtensionResults(),
209
- authenticatorAttachment: xt(r.authenticatorAttachment)
209
+ authenticatorAttachment: Ot(r.authenticatorAttachment)
210
210
  };
211
211
  }
212
212
  function We(e, t) {
@@ -225,34 +225,34 @@ function yr({ error: e, options: t }) {
225
225
  throw Error("options was missing required publicKey property");
226
226
  if (e.name === "AbortError") {
227
227
  if (t.signal instanceof AbortSignal)
228
- return new R({
228
+ return new x({
229
229
  message: "Authentication ceremony was sent an abort signal",
230
230
  code: "ERROR_CEREMONY_ABORTED",
231
231
  cause: e
232
232
  });
233
233
  } else {
234
234
  if (e.name === "NotAllowedError")
235
- return new R({
235
+ return new x({
236
236
  message: e.message,
237
237
  code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
238
238
  cause: e
239
239
  });
240
240
  if (e.name === "SecurityError") {
241
241
  const a = window.location.hostname;
242
- if (Nt(a)) {
242
+ if (xt(a)) {
243
243
  if (r.rpId !== a)
244
- return new R({
244
+ return new x({
245
245
  message: `The RP ID "${r.rpId}" is invalid for this domain`,
246
246
  code: "ERROR_INVALID_RP_ID",
247
247
  cause: e
248
248
  });
249
- } else return new R({
249
+ } else return new x({
250
250
  message: `${window.location.hostname} is an invalid domain`,
251
251
  code: "ERROR_INVALID_DOMAIN",
252
252
  cause: e
253
253
  });
254
254
  } else if (e.name === "UnknownError")
255
- return new R({
255
+ return new x({
256
256
  message: "The authenticator was unable to process the specified options, or could not create a new assertion signature",
257
257
  code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
258
258
  cause: e
@@ -261,14 +261,14 @@ function yr({ error: e, options: t }) {
261
261
  return e;
262
262
  }
263
263
  async function br(e, t = !1) {
264
- var m, l;
264
+ var m, c;
265
265
  if (!Qe())
266
266
  throw new Error("WebAuthn is not supported in this browser");
267
267
  let r;
268
- ((m = e.allowCredentials) == null ? void 0 : m.length) !== 0 && (r = (l = e.allowCredentials) == null ? void 0 : l.map(Rt));
268
+ ((m = e.allowCredentials) == null ? void 0 : m.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(Nt));
269
269
  const a = {
270
270
  ...e,
271
- challenge: _e(e.challenge),
271
+ challenge: xe(e.challenge),
272
272
  allowCredentials: r
273
273
  }, n = {};
274
274
  if (t) {
@@ -300,30 +300,30 @@ async function br(e, t = !1) {
300
300
  },
301
301
  type: h,
302
302
  clientExtensionResults: o.getClientExtensionResults(),
303
- authenticatorAttachment: xt(o.authenticatorAttachment)
303
+ authenticatorAttachment: Ot(o.authenticatorAttachment)
304
304
  };
305
305
  }
306
306
  /*!
307
- @versini/auth-common v4.1.2
307
+ @versini/auth-common v4.1.3
308
308
  © 2024 gizmette.com
309
309
  */
310
310
  try {
311
311
  window.__VERSINI_AUTH_COMMON__ || (window.__VERSINI_AUTH_COMMON__ = {
312
- version: "4.1.2",
313
- buildTime: "09/19/2024 02:34 PM EDT",
312
+ version: "4.1.3",
313
+ buildTime: "09/30/2024 01:36 PM EDT",
314
314
  homepage: "https://github.com/aversini/auth-client",
315
315
  license: "MIT"
316
316
  });
317
317
  } catch {
318
318
  }
319
- const le = {
319
+ const ue = {
320
320
  ID_TOKEN: "id_token",
321
321
  ACCESS_TOKEN: "token",
322
322
  ID_AND_ACCESS_TOKEN: "id_token token",
323
323
  CODE: "code",
324
324
  REFRESH_TOKEN: "refresh_token",
325
325
  PASSKEY: "passkey"
326
- }, Ot = {
326
+ }, Pt = {
327
327
  CLIENT_ID: "X-Auth-ClientId"
328
328
  }, _ = {
329
329
  ALG: "RS256",
@@ -346,12 +346,12 @@ aMwPFOIcJH+rKfFgNcHLcaS5syp7zU1ANwZ+trgR+DifBr8TLVkBynmNeTyhDm2+
346
346
  l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
347
347
  sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
348
348
  awIDAQAB
349
- -----END PUBLIC KEY-----`, Oe = {
349
+ -----END PUBLIC KEY-----`, $e = {
350
350
  CODE: "code",
351
351
  LOGOUT: "logout",
352
352
  LOGIN: "login",
353
353
  REFRESH: "refresh"
354
- }, Pe = crypto, Pt = (e) => e instanceof CryptoKey, ye = new TextEncoder(), ge = new TextDecoder();
354
+ }, Le = crypto, Dt = (e) => e instanceof CryptoKey, we = new TextEncoder(), be = new TextDecoder();
355
355
  function wr(...e) {
356
356
  const t = e.reduce((n, { length: o }) => n + o, 0), r = new Uint8Array(t);
357
357
  let a = 0;
@@ -364,16 +364,16 @@ const Tr = (e) => {
364
364
  for (let a = 0; a < t.length; a++)
365
365
  r[a] = t.charCodeAt(a);
366
366
  return r;
367
- }, j = (e) => {
367
+ }, X = (e) => {
368
368
  let t = e;
369
- t instanceof Uint8Array && (t = ge.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
369
+ t instanceof Uint8Array && (t = be.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
370
370
  try {
371
371
  return Tr(t);
372
372
  } catch {
373
373
  throw new TypeError("The input to be decoded is not correctly encoded.");
374
374
  }
375
375
  };
376
- let Q = class extends Error {
376
+ let te = class extends Error {
377
377
  static get code() {
378
378
  return "ERR_JOSE_GENERIC";
379
379
  }
@@ -381,7 +381,7 @@ let Q = class extends Error {
381
381
  var r;
382
382
  super(t), this.code = "ERR_JOSE_GENERIC", this.name = this.constructor.name, (r = Error.captureStackTrace) == null || r.call(Error, this, this.constructor);
383
383
  }
384
- }, U = class extends Q {
384
+ }, U = class extends te {
385
385
  static get code() {
386
386
  return "ERR_JWT_CLAIM_VALIDATION_FAILED";
387
387
  }
@@ -389,7 +389,7 @@ let Q = class extends Error {
389
389
  super(t), this.code = "ERR_JWT_CLAIM_VALIDATION_FAILED", this.claim = a, this.reason = n, this.payload = r;
390
390
  }
391
391
  };
392
- class st extends Q {
392
+ class it extends te {
393
393
  static get code() {
394
394
  return "ERR_JWT_EXPIRED";
395
395
  }
@@ -397,7 +397,7 @@ class st extends Q {
397
397
  super(t), this.code = "ERR_JWT_EXPIRED", this.claim = a, this.reason = n, this.payload = r;
398
398
  }
399
399
  }
400
- class Ir extends Q {
400
+ class vr extends te {
401
401
  constructor() {
402
402
  super(...arguments), this.code = "ERR_JOSE_ALG_NOT_ALLOWED";
403
403
  }
@@ -405,21 +405,21 @@ class Ir extends Q {
405
405
  return "ERR_JOSE_ALG_NOT_ALLOWED";
406
406
  }
407
407
  }
408
- let $ = class extends Q {
408
+ let H = class extends te {
409
409
  constructor() {
410
410
  super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
411
411
  }
412
412
  static get code() {
413
413
  return "ERR_JOSE_NOT_SUPPORTED";
414
414
  }
415
- }, A = class extends Q {
415
+ }, S = class extends te {
416
416
  constructor() {
417
417
  super(...arguments), this.code = "ERR_JWS_INVALID";
418
418
  }
419
419
  static get code() {
420
420
  return "ERR_JWS_INVALID";
421
421
  }
422
- }, V = class extends Q {
422
+ }, Y = class extends te {
423
423
  constructor() {
424
424
  super(...arguments), this.code = "ERR_JWT_INVALID";
425
425
  }
@@ -427,7 +427,7 @@ let $ = class extends Q {
427
427
  return "ERR_JWT_INVALID";
428
428
  }
429
429
  };
430
- class vr extends Q {
430
+ class Ir extends te {
431
431
  constructor() {
432
432
  super(...arguments), this.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED", this.message = "signature verification failed";
433
433
  }
@@ -435,16 +435,16 @@ class vr extends Q {
435
435
  return "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
436
436
  }
437
437
  }
438
- function G(e, t = "algorithm.name") {
438
+ function J(e, t = "algorithm.name") {
439
439
  return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
440
440
  }
441
- function be(e, t) {
441
+ function Te(e, t) {
442
442
  return e.name === t;
443
443
  }
444
444
  function Be(e) {
445
445
  return parseInt(e.name.slice(4), 10);
446
446
  }
447
- function Sr(e) {
447
+ function Ar(e) {
448
448
  switch (e) {
449
449
  case "ES256":
450
450
  return "P-256";
@@ -466,51 +466,51 @@ function kr(e, t) {
466
466
  throw new TypeError(r);
467
467
  }
468
468
  }
469
- function Ar(e, t, ...r) {
469
+ function Sr(e, t, ...r) {
470
470
  switch (t) {
471
471
  case "HS256":
472
472
  case "HS384":
473
473
  case "HS512": {
474
- if (!be(e.algorithm, "HMAC"))
475
- throw G("HMAC");
474
+ if (!Te(e.algorithm, "HMAC"))
475
+ throw J("HMAC");
476
476
  const a = parseInt(t.slice(2), 10);
477
477
  if (Be(e.algorithm.hash) !== a)
478
- throw G(`SHA-${a}`, "algorithm.hash");
478
+ throw J(`SHA-${a}`, "algorithm.hash");
479
479
  break;
480
480
  }
481
481
  case "RS256":
482
482
  case "RS384":
483
483
  case "RS512": {
484
- if (!be(e.algorithm, "RSASSA-PKCS1-v1_5"))
485
- throw G("RSASSA-PKCS1-v1_5");
484
+ if (!Te(e.algorithm, "RSASSA-PKCS1-v1_5"))
485
+ throw J("RSASSA-PKCS1-v1_5");
486
486
  const a = parseInt(t.slice(2), 10);
487
487
  if (Be(e.algorithm.hash) !== a)
488
- throw G(`SHA-${a}`, "algorithm.hash");
488
+ throw J(`SHA-${a}`, "algorithm.hash");
489
489
  break;
490
490
  }
491
491
  case "PS256":
492
492
  case "PS384":
493
493
  case "PS512": {
494
- if (!be(e.algorithm, "RSA-PSS"))
495
- throw G("RSA-PSS");
494
+ if (!Te(e.algorithm, "RSA-PSS"))
495
+ throw J("RSA-PSS");
496
496
  const a = parseInt(t.slice(2), 10);
497
497
  if (Be(e.algorithm.hash) !== a)
498
- throw G(`SHA-${a}`, "algorithm.hash");
498
+ throw J(`SHA-${a}`, "algorithm.hash");
499
499
  break;
500
500
  }
501
501
  case "EdDSA": {
502
502
  if (e.algorithm.name !== "Ed25519" && e.algorithm.name !== "Ed448")
503
- throw G("Ed25519 or Ed448");
503
+ throw J("Ed25519 or Ed448");
504
504
  break;
505
505
  }
506
506
  case "ES256":
507
507
  case "ES384":
508
508
  case "ES512": {
509
- if (!be(e.algorithm, "ECDSA"))
510
- throw G("ECDSA");
511
- const a = Sr(t);
509
+ if (!Te(e.algorithm, "ECDSA"))
510
+ throw J("ECDSA");
511
+ const a = Ar(t);
512
512
  if (e.algorithm.namedCurve !== a)
513
- throw G(a, "algorithm.namedCurve");
513
+ throw J(a, "algorithm.namedCurve");
514
514
  break;
515
515
  }
516
516
  default:
@@ -518,7 +518,7 @@ function Ar(e, t, ...r) {
518
518
  }
519
519
  kr(e, r);
520
520
  }
521
- function Dt(e, t, ...r) {
521
+ function $t(e, t, ...r) {
522
522
  var a;
523
523
  if (r = r.filter(Boolean), r.length > 2) {
524
524
  const n = r.pop();
@@ -526,11 +526,11 @@ function Dt(e, t, ...r) {
526
526
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
527
527
  return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (a = t.constructor) != null && a.name && (e += ` Received an instance of ${t.constructor.name}`), e;
528
528
  }
529
- const it = (e, ...t) => Dt("Key must be ", e, ...t);
529
+ const ct = (e, ...t) => $t("Key must be ", e, ...t);
530
530
  function Lt(e, t, ...r) {
531
- return Dt(`Key for the ${e} algorithm must be `, t, ...r);
531
+ return $t(`Key for the ${e} algorithm must be `, t, ...r);
532
532
  }
533
- const Mt = (e) => Pt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Re = ["CryptoKey"], _r = (...e) => {
533
+ const Mt = (e) => Dt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ce = ["CryptoKey"], _r = (...e) => {
534
534
  const t = e.filter(Boolean);
535
535
  if (t.length === 0 || t.length === 1)
536
536
  return !0;
@@ -552,7 +552,7 @@ const Mt = (e) => Pt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
552
552
  function Rr(e) {
553
553
  return typeof e == "object" && e !== null;
554
554
  }
555
- function de(e) {
555
+ function me(e) {
556
556
  if (!Rr(e) || Object.prototype.toString.call(e) !== "[object Object]")
557
557
  return !1;
558
558
  if (Object.getPrototypeOf(e) === null)
@@ -569,17 +569,17 @@ const Nr = (e, t) => {
569
569
  throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`);
570
570
  }
571
571
  };
572
- function ue(e) {
573
- return de(e) && typeof e.kty == "string";
572
+ function he(e) {
573
+ return me(e) && typeof e.kty == "string";
574
574
  }
575
- function Cr(e) {
575
+ function xr(e) {
576
576
  return e.kty !== "oct" && typeof e.d == "string";
577
577
  }
578
- function xr(e) {
578
+ function Cr(e) {
579
579
  return e.kty !== "oct" && typeof e.d > "u";
580
580
  }
581
581
  function Or(e) {
582
- return ue(e) && e.kty === "oct" && typeof e.k == "string";
582
+ return he(e) && e.kty === "oct" && typeof e.k == "string";
583
583
  }
584
584
  function Pr(e) {
585
585
  let t, r;
@@ -606,7 +606,7 @@ function Pr(e) {
606
606
  }, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
607
607
  break;
608
608
  default:
609
- throw new $('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
609
+ throw new H('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
610
610
  }
611
611
  break;
612
612
  }
@@ -628,7 +628,7 @@ function Pr(e) {
628
628
  t = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
629
629
  break;
630
630
  default:
631
- throw new $('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
631
+ throw new H('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
632
632
  }
633
633
  break;
634
634
  }
@@ -644,12 +644,12 @@ function Pr(e) {
644
644
  t = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
645
645
  break;
646
646
  default:
647
- throw new $('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
647
+ throw new H('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
648
648
  }
649
649
  break;
650
650
  }
651
651
  default:
652
- throw new $('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
652
+ throw new H('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
653
653
  }
654
654
  return { algorithm: t, keyUsages: r };
655
655
  }
@@ -661,54 +661,54 @@ const Ut = async (e) => {
661
661
  e.ext ?? !1,
662
662
  e.key_ops ?? r
663
663
  ], n = { ...e };
664
- return delete n.alg, delete n.use, Pe.subtle.importKey("jwk", n, ...a);
665
- }, Kt = (e) => j(e);
666
- let te, re;
667
- const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ne = async (e, t, r, a, n = !1) => {
664
+ return delete n.alg, delete n.use, Le.subtle.importKey("jwk", n, ...a);
665
+ }, Kt = (e) => X(e);
666
+ let ae, ne;
667
+ const Ht = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Oe = async (e, t, r, a, n = !1) => {
668
668
  let o = e.get(t);
669
669
  if (o != null && o[a])
670
670
  return o[a];
671
671
  const s = await Ut({ ...r, alg: a });
672
672
  return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
673
673
  }, Dr = (e, t) => {
674
- if ($t(e)) {
674
+ if (Ht(e)) {
675
675
  let r = e.export({ format: "jwk" });
676
- return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Kt(r.k) : (re || (re = /* @__PURE__ */ new WeakMap()), Ne(re, e, r, t));
676
+ return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Kt(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Oe(ne, e, r, t));
677
677
  }
678
- return ue(e) ? e.k ? j(e.k) : (re || (re = /* @__PURE__ */ new WeakMap()), Ne(re, e, e, t, !0)) : e;
679
- }, Lr = (e, t) => {
680
- if ($t(e)) {
678
+ return he(e) ? e.k ? X(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Oe(ne, e, e, t, !0)) : e;
679
+ }, $r = (e, t) => {
680
+ if (Ht(e)) {
681
681
  let r = e.export({ format: "jwk" });
682
- return r.k ? Kt(r.k) : (te || (te = /* @__PURE__ */ new WeakMap()), Ne(te, e, r, t));
682
+ return r.k ? Kt(r.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), Oe(ae, e, r, t));
683
683
  }
684
- return ue(e) ? e.k ? j(e.k) : (te || (te = /* @__PURE__ */ new WeakMap()), Ne(te, e, e, t, !0)) : e;
685
- }, Mr = { normalizePublicKey: Dr, normalizePrivateKey: Lr }, Y = (e, t, r = 0) => {
684
+ return he(e) ? e.k ? X(e.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), Oe(ae, e, e, t, !0)) : e;
685
+ }, Lr = { normalizePublicKey: Dr, normalizePrivateKey: $r }, z = (e, t, r = 0) => {
686
686
  r === 0 && (t.unshift(t.length), t.unshift(6));
687
687
  const a = e.indexOf(t[0], r);
688
688
  if (a === -1)
689
689
  return !1;
690
690
  const n = e.subarray(a, a + t.length);
691
- return n.length !== t.length ? !1 : n.every((o, s) => o === t[s]) || Y(e, t, a + 1);
692
- }, ct = (e) => {
691
+ return n.length !== t.length ? !1 : n.every((o, s) => o === t[s]) || z(e, t, a + 1);
692
+ }, lt = (e) => {
693
693
  switch (!0) {
694
- case Y(e, [42, 134, 72, 206, 61, 3, 1, 7]):
694
+ case z(e, [42, 134, 72, 206, 61, 3, 1, 7]):
695
695
  return "P-256";
696
- case Y(e, [43, 129, 4, 0, 34]):
696
+ case z(e, [43, 129, 4, 0, 34]):
697
697
  return "P-384";
698
- case Y(e, [43, 129, 4, 0, 35]):
698
+ case z(e, [43, 129, 4, 0, 35]):
699
699
  return "P-521";
700
- case Y(e, [43, 101, 110]):
700
+ case z(e, [43, 101, 110]):
701
701
  return "X25519";
702
- case Y(e, [43, 101, 111]):
702
+ case z(e, [43, 101, 111]):
703
703
  return "X448";
704
- case Y(e, [43, 101, 112]):
704
+ case z(e, [43, 101, 112]):
705
705
  return "Ed25519";
706
- case Y(e, [43, 101, 113]):
706
+ case z(e, [43, 101, 113]):
707
707
  return "Ed448";
708
708
  default:
709
- throw new $("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
709
+ throw new H("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
710
710
  }
711
- }, Ur = async (e, t, r, a, n) => {
711
+ }, Mr = async (e, t, r, a, n) => {
712
712
  let o, s;
713
713
  const i = new Uint8Array(atob(r.replace(e, "")).split("").map((u) => u.charCodeAt(0)));
714
714
  switch (a) {
@@ -744,42 +744,42 @@ const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
744
744
  case "ECDH-ES+A128KW":
745
745
  case "ECDH-ES+A192KW":
746
746
  case "ECDH-ES+A256KW": {
747
- const u = ct(i);
747
+ const u = lt(i);
748
748
  o = u.startsWith("P-") ? { name: "ECDH", namedCurve: u } : { name: u }, s = [];
749
749
  break;
750
750
  }
751
751
  case "EdDSA":
752
- o = { name: ct(i) }, s = ["verify"];
752
+ o = { name: lt(i) }, s = ["verify"];
753
753
  break;
754
754
  default:
755
- throw new $('Invalid or unsupported "alg" (Algorithm) value');
755
+ throw new H('Invalid or unsupported "alg" (Algorithm) value');
756
756
  }
757
- return Pe.subtle.importKey(t, i, o, !1, s);
758
- }, Kr = (e, t, r) => Ur(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
759
- async function $r(e, t, r) {
757
+ return Le.subtle.importKey(t, i, o, !1, s);
758
+ }, Ur = (e, t, r) => Mr(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
759
+ async function Kr(e, t, r) {
760
760
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
761
761
  throw new TypeError('"spki" must be SPKI formatted string');
762
- return Kr(e, t);
762
+ return Ur(e, t);
763
763
  }
764
764
  async function Hr(e, t) {
765
- if (!de(e))
765
+ if (!me(e))
766
766
  throw new TypeError("JWK must be an object");
767
767
  switch (t || (t = e.alg), e.kty) {
768
768
  case "oct":
769
769
  if (typeof e.k != "string" || !e.k)
770
770
  throw new TypeError('missing "k" (Key Value) Parameter value');
771
- return j(e.k);
771
+ return X(e.k);
772
772
  case "RSA":
773
773
  if (e.oth !== void 0)
774
- throw new $('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
774
+ throw new H('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
775
775
  case "EC":
776
776
  case "OKP":
777
777
  return Ut({ ...e, alg: t });
778
778
  default:
779
- throw new $('Unsupported "kty" (Key Type) Parameter value');
779
+ throw new H('Unsupported "kty" (Key Type) Parameter value');
780
780
  }
781
781
  }
782
- const ce = (e) => e == null ? void 0 : e[Symbol.toStringTag], qe = (e, t, r) => {
782
+ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], qe = (e, t, r) => {
783
783
  var a, n;
784
784
  if (t.use !== void 0 && t.use !== "sig")
785
785
  throw new TypeError("Invalid key for this operation, when present its use must be sig");
@@ -790,46 +790,46 @@ const ce = (e) => e == null ? void 0 : e[Symbol.toStringTag], qe = (e, t, r) =>
790
790
  return !0;
791
791
  }, Wr = (e, t, r, a) => {
792
792
  if (!(t instanceof Uint8Array)) {
793
- if (a && ue(t)) {
793
+ if (a && he(t)) {
794
794
  if (Or(t) && qe(e, t, r))
795
795
  return;
796
796
  throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
797
797
  }
798
798
  if (!Mt(t))
799
- throw new TypeError(Lt(e, t, ...Re, "Uint8Array", a ? "JSON Web Key" : null));
799
+ throw new TypeError(Lt(e, t, ...Ce, "Uint8Array", a ? "JSON Web Key" : null));
800
800
  if (t.type !== "secret")
801
- throw new TypeError(`${ce(t)} instances for symmetric algorithms must be of type "secret"`);
801
+ throw new TypeError(`${de(t)} instances for symmetric algorithms must be of type "secret"`);
802
802
  }
803
803
  }, Br = (e, t, r, a) => {
804
- if (a && ue(t))
804
+ if (a && he(t))
805
805
  switch (r) {
806
806
  case "sign":
807
- if (Cr(t) && qe(e, t, r))
807
+ if (xr(t) && qe(e, t, r))
808
808
  return;
809
809
  throw new TypeError("JSON Web Key for this operation be a private JWK");
810
810
  case "verify":
811
- if (xr(t) && qe(e, t, r))
811
+ if (Cr(t) && qe(e, t, r))
812
812
  return;
813
813
  throw new TypeError("JSON Web Key for this operation be a public JWK");
814
814
  }
815
815
  if (!Mt(t))
816
- throw new TypeError(Lt(e, t, ...Re, a ? "JSON Web Key" : null));
816
+ throw new TypeError(Lt(e, t, ...Ce, a ? "JSON Web Key" : null));
817
817
  if (t.type === "secret")
818
- throw new TypeError(`${ce(t)} instances for asymmetric algorithms must not be of type "secret"`);
818
+ throw new TypeError(`${de(t)} instances for asymmetric algorithms must not be of type "secret"`);
819
819
  if (r === "sign" && t.type === "public")
820
- throw new TypeError(`${ce(t)} instances for asymmetric algorithm signing must be of type "private"`);
820
+ throw new TypeError(`${de(t)} instances for asymmetric algorithm signing must be of type "private"`);
821
821
  if (r === "decrypt" && t.type === "public")
822
- throw new TypeError(`${ce(t)} instances for asymmetric algorithm decryption must be of type "private"`);
822
+ throw new TypeError(`${de(t)} instances for asymmetric algorithm decryption must be of type "private"`);
823
823
  if (t.algorithm && r === "verify" && t.type === "private")
824
- throw new TypeError(`${ce(t)} instances for asymmetric algorithm verifying must be of type "public"`);
824
+ throw new TypeError(`${de(t)} instances for asymmetric algorithm verifying must be of type "public"`);
825
825
  if (t.algorithm && r === "encrypt" && t.type === "private")
826
- throw new TypeError(`${ce(t)} instances for asymmetric algorithm encryption must be of type "public"`);
826
+ throw new TypeError(`${de(t)} instances for asymmetric algorithm encryption must be of type "public"`);
827
827
  };
828
- function Ht(e, t, r, a) {
828
+ function Wt(e, t, r, a) {
829
829
  t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Wr(t, r, a, e) : Br(t, r, a, e);
830
830
  }
831
- Ht.bind(void 0, !1);
832
- const lt = Ht.bind(void 0, !0);
831
+ Wt.bind(void 0, !1);
832
+ const dt = Wt.bind(void 0, !0);
833
833
  function Gr(e, t, r, a, n) {
834
834
  if (n.crit !== void 0 && (a == null ? void 0 : a.crit) === void 0)
835
835
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
@@ -841,7 +841,7 @@ function Gr(e, t, r, a, n) {
841
841
  r !== void 0 ? o = new Map([...Object.entries(r), ...t.entries()]) : o = t;
842
842
  for (const s of a.crit) {
843
843
  if (!o.has(s))
844
- throw new $(`Extension Header Parameter "${s}" is not recognized`);
844
+ throw new H(`Extension Header Parameter "${s}" is not recognized`);
845
845
  if (n[s] === void 0)
846
846
  throw new e(`Extension Header Parameter "${s}" is missing`);
847
847
  if (o.get(s) && a[s] === void 0)
@@ -877,102 +877,102 @@ function Jr(e, t) {
877
877
  case "EdDSA":
878
878
  return { name: t.name };
879
879
  default:
880
- throw new $(`alg ${e} is not supported either by JOSE or your javascript runtime`);
880
+ throw new H(`alg ${e} is not supported either by JOSE or your javascript runtime`);
881
881
  }
882
882
  }
883
883
  async function Yr(e, t, r) {
884
- if (t = await Mr.normalizePublicKey(t, e), Pt(t))
885
- return Ar(t, e, r), t;
884
+ if (t = await Lr.normalizePublicKey(t, e), Dt(t))
885
+ return Sr(t, e, r), t;
886
886
  if (t instanceof Uint8Array) {
887
887
  if (!e.startsWith("HS"))
888
- throw new TypeError(it(t, ...Re));
889
- return Pe.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
888
+ throw new TypeError(ct(t, ...Ce));
889
+ return Le.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
890
890
  }
891
- throw new TypeError(it(t, ...Re, "Uint8Array", "JSON Web Key"));
891
+ throw new TypeError(ct(t, ...Ce, "Uint8Array", "JSON Web Key"));
892
892
  }
893
893
  const Fr = async (e, t, r, a) => {
894
894
  const n = await Yr(e, t, "verify");
895
895
  Nr(e, n);
896
896
  const o = Jr(e, n.algorithm);
897
897
  try {
898
- return await Pe.subtle.verify(o, n, r, a);
898
+ return await Le.subtle.verify(o, n, r, a);
899
899
  } catch {
900
900
  return !1;
901
901
  }
902
902
  };
903
903
  async function zr(e, t, r) {
904
- if (!de(e))
905
- throw new A("Flattened JWS must be an object");
904
+ if (!me(e))
905
+ throw new S("Flattened JWS must be an object");
906
906
  if (e.protected === void 0 && e.header === void 0)
907
- throw new A('Flattened JWS must have either of the "protected" or "header" members');
907
+ throw new S('Flattened JWS must have either of the "protected" or "header" members');
908
908
  if (e.protected !== void 0 && typeof e.protected != "string")
909
- throw new A("JWS Protected Header incorrect type");
909
+ throw new S("JWS Protected Header incorrect type");
910
910
  if (e.payload === void 0)
911
- throw new A("JWS Payload missing");
911
+ throw new S("JWS Payload missing");
912
912
  if (typeof e.signature != "string")
913
- throw new A("JWS Signature missing or incorrect type");
914
- if (e.header !== void 0 && !de(e.header))
915
- throw new A("JWS Unprotected Header incorrect type");
913
+ throw new S("JWS Signature missing or incorrect type");
914
+ if (e.header !== void 0 && !me(e.header))
915
+ throw new S("JWS Unprotected Header incorrect type");
916
916
  let a = {};
917
917
  if (e.protected)
918
918
  try {
919
- const f = j(e.protected);
920
- a = JSON.parse(ge.decode(f));
919
+ const y = X(e.protected);
920
+ a = JSON.parse(be.decode(y));
921
921
  } catch {
922
- throw new A("JWS Protected Header is invalid");
922
+ throw new S("JWS Protected Header is invalid");
923
923
  }
924
924
  if (!_r(a, e.header))
925
- throw new A("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
925
+ throw new S("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
926
926
  const n = {
927
927
  ...a,
928
928
  ...e.header
929
- }, o = Gr(A, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
929
+ }, o = Gr(S, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
930
930
  let s = !0;
931
931
  if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
932
- throw new A('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
932
+ throw new S('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
933
933
  const { alg: i } = n;
934
934
  if (typeof i != "string" || !i)
935
- throw new A('JWS "alg" (Algorithm) Header Parameter missing or invalid');
935
+ throw new S('JWS "alg" (Algorithm) Header Parameter missing or invalid');
936
936
  const u = r && Vr("algorithms", r.algorithms);
937
937
  if (u && !u.has(i))
938
- throw new Ir('"alg" (Algorithm) Header Parameter value not allowed');
938
+ throw new vr('"alg" (Algorithm) Header Parameter value not allowed');
939
939
  if (s) {
940
940
  if (typeof e.payload != "string")
941
- throw new A("JWS Payload must be a string");
941
+ throw new S("JWS Payload must be a string");
942
942
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
943
- throw new A("JWS Payload must be a string or an Uint8Array instance");
943
+ throw new S("JWS Payload must be a string or an Uint8Array instance");
944
944
  let h = !1;
945
- typeof t == "function" ? (t = await t(a, e), h = !0, lt(i, t, "verify"), ue(t) && (t = await Hr(t, i))) : lt(i, t, "verify");
946
- const p = wr(ye.encode(e.protected ?? ""), ye.encode("."), typeof e.payload == "string" ? ye.encode(e.payload) : e.payload);
945
+ typeof t == "function" ? (t = await t(a, e), h = !0, dt(i, t, "verify"), he(t) && (t = await Hr(t, i))) : dt(i, t, "verify");
946
+ const p = wr(we.encode(e.protected ?? ""), we.encode("."), typeof e.payload == "string" ? we.encode(e.payload) : e.payload);
947
947
  let m;
948
948
  try {
949
- m = j(e.signature);
949
+ m = X(e.signature);
950
950
  } catch {
951
- throw new A("Failed to base64url decode the signature");
951
+ throw new S("Failed to base64url decode the signature");
952
952
  }
953
953
  if (!await Fr(i, t, m, p))
954
- throw new vr();
955
- let l;
954
+ throw new Ir();
955
+ let c;
956
956
  if (s)
957
957
  try {
958
- l = j(e.payload);
958
+ c = X(e.payload);
959
959
  } catch {
960
- throw new A("Failed to base64url decode the payload");
960
+ throw new S("Failed to base64url decode the payload");
961
961
  }
962
- else typeof e.payload == "string" ? l = ye.encode(e.payload) : l = e.payload;
963
- const d = { payload: l };
962
+ else typeof e.payload == "string" ? c = we.encode(e.payload) : c = e.payload;
963
+ const d = { payload: c };
964
964
  return e.protected !== void 0 && (d.protectedHeader = a), e.header !== void 0 && (d.unprotectedHeader = e.header), h ? { ...d, key: t } : d;
965
965
  }
966
966
  async function jr(e, t, r) {
967
- if (e instanceof Uint8Array && (e = ge.decode(e)), typeof e != "string")
968
- throw new A("Compact JWS must be a string or Uint8Array");
967
+ if (e instanceof Uint8Array && (e = be.decode(e)), typeof e != "string")
968
+ throw new S("Compact JWS must be a string or Uint8Array");
969
969
  const { 0: a, 1: n, 2: o, length: s } = e.split(".");
970
970
  if (s !== 3)
971
- throw new A("Invalid Compact JWS");
971
+ throw new S("Invalid Compact JWS");
972
972
  const i = await zr({ payload: n, protected: a, signature: o }, t, r), u = { payload: i.payload, protectedHeader: i.protectedHeader };
973
973
  return typeof t == "function" ? { ...u, key: i.key } : u;
974
974
  }
975
- const qr = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, Ze = Bt * 24, Xr = Ze * 7, Qr = Ze * 365.25, Zr = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, dt = (e) => {
975
+ const qr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt * 24, Xr = Ze * 7, Qr = Ze * 365.25, Zr = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, ut = (e) => {
976
976
  const t = Zr.exec(e);
977
977
  if (!t || t[4] && t[1])
978
978
  throw new TypeError("Invalid time period format");
@@ -991,14 +991,14 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, Ze = Bt
991
991
  case "min":
992
992
  case "mins":
993
993
  case "m":
994
- n = Math.round(r * Wt);
994
+ n = Math.round(r * Bt);
995
995
  break;
996
996
  case "hour":
997
997
  case "hours":
998
998
  case "hr":
999
999
  case "hrs":
1000
1000
  case "h":
1001
- n = Math.round(r * Bt);
1001
+ n = Math.round(r * Gt);
1002
1002
  break;
1003
1003
  case "day":
1004
1004
  case "days":
@@ -1015,22 +1015,22 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, Ze = Bt
1015
1015
  break;
1016
1016
  }
1017
1017
  return t[1] === "-" || t[4] === "ago" ? -n : n;
1018
- }, ut = (e) => e.toLowerCase().replace(/^application\//, ""), ea = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, ta = (e, t, r = {}) => {
1018
+ }, mt = (e) => e.toLowerCase().replace(/^application\//, ""), ea = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, ta = (e, t, r = {}) => {
1019
1019
  let a;
1020
1020
  try {
1021
- a = JSON.parse(ge.decode(t));
1021
+ a = JSON.parse(be.decode(t));
1022
1022
  } catch {
1023
1023
  }
1024
- if (!de(a))
1025
- throw new V("JWT Claims Set must be a top-level JSON object");
1024
+ if (!me(a))
1025
+ throw new Y("JWT Claims Set must be a top-level JSON object");
1026
1026
  const { typ: n } = r;
1027
- if (n && (typeof e.typ != "string" || ut(e.typ) !== ut(n)))
1027
+ if (n && (typeof e.typ != "string" || mt(e.typ) !== mt(n)))
1028
1028
  throw new U('unexpected "typ" JWT header value', a, "typ", "check_failed");
1029
1029
  const { requiredClaims: o = [], issuer: s, subject: i, audience: u, maxTokenAge: h } = r, p = [...o];
1030
1030
  h !== void 0 && p.push("iat"), u !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
1031
- for (const f of new Set(p.reverse()))
1032
- if (!(f in a))
1033
- throw new U(`missing required "${f}" claim`, a, f, "missing");
1031
+ for (const y of new Set(p.reverse()))
1032
+ if (!(y in a))
1033
+ throw new U(`missing required "${y}" claim`, a, y, "missing");
1034
1034
  if (s && !(Array.isArray(s) ? s : [s]).includes(a.iss))
1035
1035
  throw new U('unexpected "iss" claim value', a, "iss", "check_failed");
1036
1036
  if (i && a.sub !== i)
@@ -1040,7 +1040,7 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, Ze = Bt
1040
1040
  let m;
1041
1041
  switch (typeof r.clockTolerance) {
1042
1042
  case "string":
1043
- m = dt(r.clockTolerance);
1043
+ m = ut(r.clockTolerance);
1044
1044
  break;
1045
1045
  case "number":
1046
1046
  m = r.clockTolerance;
@@ -1051,7 +1051,7 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, Ze = Bt
1051
1051
  default:
1052
1052
  throw new TypeError("Invalid clockTolerance option type");
1053
1053
  }
1054
- const { currentDate: l } = r, d = qr(l || /* @__PURE__ */ new Date());
1054
+ const { currentDate: c } = r, d = qr(c || /* @__PURE__ */ new Date());
1055
1055
  if ((a.iat !== void 0 || h) && typeof a.iat != "number")
1056
1056
  throw new U('"iat" claim must be a number', a, "iat", "invalid");
1057
1057
  if (a.nbf !== void 0) {
@@ -1064,13 +1064,13 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, Ze = Bt
1064
1064
  if (typeof a.exp != "number")
1065
1065
  throw new U('"exp" claim must be a number', a, "exp", "invalid");
1066
1066
  if (a.exp <= d - m)
1067
- throw new st('"exp" claim timestamp check failed', a, "exp", "check_failed");
1067
+ throw new it('"exp" claim timestamp check failed', a, "exp", "check_failed");
1068
1068
  }
1069
1069
  if (h) {
1070
- const f = d - a.iat, b = typeof h == "number" ? h : dt(h);
1071
- if (f - m > b)
1072
- throw new st('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
1073
- if (f < 0 - m)
1070
+ const y = d - a.iat, b = typeof h == "number" ? h : ut(h);
1071
+ if (y - m > b)
1072
+ throw new it('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
1073
+ if (y < 0 - m)
1074
1074
  throw new U('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
1075
1075
  }
1076
1076
  return a;
@@ -1079,40 +1079,40 @@ async function ra(e, t, r) {
1079
1079
  var a;
1080
1080
  const n = await jr(e, t, r);
1081
1081
  if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
1082
- throw new V("JWTs MUST NOT use unencoded payload");
1082
+ throw new Y("JWTs MUST NOT use unencoded payload");
1083
1083
  const o = { payload: ta(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
1084
1084
  return typeof t == "function" ? { ...o, key: n.key } : o;
1085
1085
  }
1086
- const aa = j;
1086
+ const aa = X;
1087
1087
  function na(e) {
1088
1088
  if (typeof e != "string")
1089
- throw new V("JWTs must use Compact JWS serialization, JWT must be a string");
1089
+ throw new Y("JWTs must use Compact JWS serialization, JWT must be a string");
1090
1090
  const { 1: t, length: r } = e.split(".");
1091
1091
  if (r === 5)
1092
- throw new V("Only JWTs using Compact JWS serialization can be decoded");
1092
+ throw new Y("Only JWTs using Compact JWS serialization can be decoded");
1093
1093
  if (r !== 3)
1094
- throw new V("Invalid JWT");
1094
+ throw new Y("Invalid JWT");
1095
1095
  if (!t)
1096
- throw new V("JWTs must contain a payload");
1096
+ throw new Y("JWTs must contain a payload");
1097
1097
  let a;
1098
1098
  try {
1099
1099
  a = aa(t);
1100
1100
  } catch {
1101
- throw new V("Failed to base64url decode the payload");
1101
+ throw new Y("Failed to base64url decode the payload");
1102
1102
  }
1103
1103
  let n;
1104
1104
  try {
1105
- n = JSON.parse(ge.decode(a));
1105
+ n = JSON.parse(be.decode(a));
1106
1106
  } catch {
1107
- throw new V("Failed to parse the decoded payload as JSON");
1107
+ throw new Y("Failed to parse the decoded payload as JSON");
1108
1108
  }
1109
- if (!de(n))
1110
- throw new V("Invalid JWT Claims Set");
1109
+ if (!me(n))
1110
+ throw new Y("Invalid JWT Claims Set");
1111
1111
  return n;
1112
1112
  }
1113
- const he = async (e) => {
1113
+ const fe = async (e) => {
1114
1114
  try {
1115
- const t = _.ALG, r = await $r(Er, t);
1115
+ const t = _.ALG, r = await Kr(Er, t);
1116
1116
  return await ra(e, r, {
1117
1117
  issuer: _.ISSUER
1118
1118
  });
@@ -1126,38 +1126,38 @@ const he = async (e) => {
1126
1126
  return;
1127
1127
  }
1128
1128
  };
1129
- var S = [];
1129
+ var A = [];
1130
1130
  for (var Ge = 0; Ge < 256; ++Ge)
1131
- S.push((Ge + 256).toString(16).slice(1));
1131
+ A.push((Ge + 256).toString(16).slice(1));
1132
1132
  function sa(e, t = 0) {
1133
- return (S[e[t + 0]] + S[e[t + 1]] + S[e[t + 2]] + S[e[t + 3]] + "-" + S[e[t + 4]] + S[e[t + 5]] + "-" + S[e[t + 6]] + S[e[t + 7]] + "-" + S[e[t + 8]] + S[e[t + 9]] + "-" + S[e[t + 10]] + S[e[t + 11]] + S[e[t + 12]] + S[e[t + 13]] + S[e[t + 14]] + S[e[t + 15]]).toLowerCase();
1133
+ return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
1134
1134
  }
1135
- var Ee, ia = new Uint8Array(16);
1135
+ var ve, ia = new Uint8Array(16);
1136
1136
  function ca() {
1137
- if (!Ee && (Ee = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ee))
1137
+ if (!ve && (ve = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ve))
1138
1138
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1139
- return Ee(ia);
1139
+ return ve(ia);
1140
1140
  }
1141
1141
  var la = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1142
- const mt = {
1142
+ const ht = {
1143
1143
  randomUUID: la
1144
1144
  };
1145
- function ht(e, t, r) {
1146
- if (mt.randomUUID && !t && !e)
1147
- return mt.randomUUID();
1145
+ function pt(e, t, r) {
1146
+ if (ht.randomUUID && !t && !e)
1147
+ return ht.randomUUID();
1148
1148
  e = e || {};
1149
1149
  var a = e.random || (e.rng || ca)();
1150
1150
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, sa(a);
1151
1151
  }
1152
- const pt = globalThis.crypto, da = (e) => `${ht()}${ht()}`.slice(0, e), ua = (e) => btoa(
1152
+ const gt = globalThis.crypto, da = (e) => `${pt()}${pt()}`.slice(0, e), ua = (e) => btoa(
1153
1153
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
1154
1154
  );
1155
1155
  async function ma(e) {
1156
- if (!pt.subtle)
1156
+ if (!gt.subtle)
1157
1157
  throw new Error(
1158
1158
  "crypto.subtle is available only in secure contexts (HTTPS)."
1159
1159
  );
1160
- const t = new TextEncoder().encode(e), r = await pt.subtle.digest("SHA-256", t);
1160
+ const t = new TextEncoder().encode(e), r = await gt.subtle.digest("SHA-256", t);
1161
1161
  return ua(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1162
1162
  }
1163
1163
  async function ha(e) {
@@ -1167,39 +1167,39 @@ async function ha(e) {
1167
1167
  code_challenge: r
1168
1168
  };
1169
1169
  }
1170
- function Gt(e, t) {
1170
+ function Vt(e, t) {
1171
1171
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
1172
1172
  }
1173
- const gt = (e, t) => {
1173
+ const ft = (e, t) => {
1174
1174
  const r = JSON.stringify(
1175
1175
  typeof t == "function" ? t() : t
1176
1176
  );
1177
- window.localStorage.setItem(e, r), Gt(e, r);
1177
+ window.localStorage.setItem(e, r), Vt(e, r);
1178
1178
  }, pa = (e) => {
1179
- window.localStorage.removeItem(e), Gt(e, null);
1180
- }, ft = (e) => window.localStorage.getItem(e), ga = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1181
- function we({
1179
+ window.localStorage.removeItem(e), Vt(e, null);
1180
+ }, yt = (e) => window.localStorage.getItem(e), ga = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1181
+ function Ie({
1182
1182
  key: e,
1183
1183
  initialValue: t
1184
1184
  }) {
1185
- const r = cr(ga, () => ft(e)), a = z(
1185
+ const r = lr(ga, () => yt(e)), a = q(
1186
1186
  (s) => {
1187
1187
  try {
1188
1188
  const i = typeof s == "function" ? s(JSON.parse(r)) : s;
1189
- i == null ? pa(e) : gt(e, i);
1189
+ i == null ? pa(e) : ft(e, i);
1190
1190
  } catch (i) {
1191
1191
  console.warn(i);
1192
1192
  }
1193
1193
  },
1194
1194
  [e, r]
1195
- ), n = z(() => {
1195
+ ), n = q(() => {
1196
1196
  a(t);
1197
- }, [t, a]), o = z(() => {
1197
+ }, [t, a]), o = q(() => {
1198
1198
  a(null);
1199
1199
  }, [a]);
1200
- return q(() => {
1200
+ return Q(() => {
1201
1201
  try {
1202
- ft(e) === null && typeof t < "u" && gt(e, t);
1202
+ yt(e) === null && typeof t < "u" && ft(e, t);
1203
1203
  } catch (s) {
1204
1204
  console.warn(s);
1205
1205
  }
@@ -1211,27 +1211,27 @@ for (var Ve = 0; Ve < 256; ++Ve)
1211
1211
  function fa(e, t = 0) {
1212
1212
  return (k[e[t + 0]] + k[e[t + 1]] + k[e[t + 2]] + k[e[t + 3]] + "-" + k[e[t + 4]] + k[e[t + 5]] + "-" + k[e[t + 6]] + k[e[t + 7]] + "-" + k[e[t + 8]] + k[e[t + 9]] + "-" + k[e[t + 10]] + k[e[t + 11]] + k[e[t + 12]] + k[e[t + 13]] + k[e[t + 14]] + k[e[t + 15]]).toLowerCase();
1213
1213
  }
1214
- var Te, ya = new Uint8Array(16);
1214
+ var Ae, ya = new Uint8Array(16);
1215
1215
  function ba() {
1216
- if (!Te && (Te = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Te))
1216
+ if (!Ae && (Ae = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ae))
1217
1217
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1218
- return Te(ya);
1218
+ return Ae(ya);
1219
1219
  }
1220
1220
  var Ea = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1221
- const yt = {
1221
+ const bt = {
1222
1222
  randomUUID: Ea
1223
1223
  };
1224
1224
  function Je(e, t, r) {
1225
- if (yt.randomUUID && !t && !e)
1226
- return yt.randomUUID();
1225
+ if (bt.randomUUID && !t && !e)
1226
+ return bt.randomUUID();
1227
1227
  e = e || {};
1228
1228
  var a = e.random || (e.rng || ba)();
1229
1229
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, fa(a);
1230
1230
  }
1231
- const ae = "Your session has expired. For your security, please log in again to continue.", wa = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", Ta = "Error getting access token, please re-authenticate.", Ia = "You forgot to wrap your component in <AuthProvider>.", Ce = {
1231
+ const oe = "Your session has expired. For your security, please log in again to continue.", wa = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", Ta = "Error getting access token, please re-authenticate.", va = "You forgot to wrap your component in <AuthProvider>.", Pe = {
1232
1232
  dev: "https://auth.gizmette.local.com:3003",
1233
1233
  prod: "https://mylogin.gizmette.com/auth"
1234
- }, Ie = "@@auth@@", me = "LOADING", ke = "LOGIN", Vt = "LOGOUT", fe = "success", W = "failure", Jt = "include", Yt = "POST", Ft = "application/json", ve = {
1234
+ }, ke = "@@auth@@", ge = "LOADING", Re = "LOGIN", Jt = "LOGOUT", Ee = "success", B = "failure", Yt = "include", Ft = "POST", zt = "application/json", Se = {
1235
1235
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
1236
1236
  $clientId: String!,
1237
1237
  $username: String!,
@@ -1312,24 +1312,24 @@ const ae = "Your session has expired. For your security, please log in again to
1312
1312
  email
1313
1313
  }
1314
1314
  }`
1315
- }, ne = {
1315
+ }, se = {
1316
1316
  GET_REGISTRATION_OPTIONS: {
1317
- schema: ve.GET_REGISTRATION_OPTIONS,
1317
+ schema: Se.GET_REGISTRATION_OPTIONS,
1318
1318
  method: "getPasskeyRegistrationOptions"
1319
1319
  },
1320
1320
  VERIFY_REGISTRATION: {
1321
- schema: ve.VERIFY_REGISTRATION,
1321
+ schema: Se.VERIFY_REGISTRATION,
1322
1322
  method: "verifyPasskeyRegistration"
1323
1323
  },
1324
1324
  GET_AUTHENTICATION_OPTIONS: {
1325
- schema: ve.GET_AUTHENTICATION_OPTIONS,
1325
+ schema: Se.GET_AUTHENTICATION_OPTIONS,
1326
1326
  method: "getPasskeyAuthenticationOptions"
1327
1327
  },
1328
1328
  VERIFY_AUTHENTICATION: {
1329
- schema: ve.VERIFY_AUTHENTICATION,
1329
+ schema: Se.VERIFY_AUTHENTICATION,
1330
1330
  method: "verifyPasskeyAuthentication"
1331
1331
  }
1332
- }, oe = async ({
1332
+ }, ie = async ({
1333
1333
  accessToken: e,
1334
1334
  type: t,
1335
1335
  clientId: r,
@@ -1337,14 +1337,14 @@ const ae = "Your session has expired. For your security, please log in again to
1337
1337
  }) => {
1338
1338
  try {
1339
1339
  const n = `Bearer ${e}`, o = await fetch(
1340
- zt ? `${Ce.dev}/graphql` : `${Ce.prod}/graphql`,
1340
+ jt ? `${Pe.dev}/graphql` : `${Pe.prod}/graphql`,
1341
1341
  {
1342
- credentials: Jt,
1343
- method: Yt,
1342
+ credentials: Yt,
1343
+ method: Ft,
1344
1344
  headers: {
1345
1345
  authorization: n,
1346
- "Content-Type": Ft,
1347
- [Ot.CLIENT_ID]: `${r}`
1346
+ "Content-Type": zt,
1347
+ [Pt.CLIENT_ID]: `${r}`
1348
1348
  },
1349
1349
  body: JSON.stringify({
1350
1350
  query: t.schema,
@@ -1353,51 +1353,51 @@ const ae = "Your session has expired. For your security, please log in again to
1353
1353
  }
1354
1354
  );
1355
1355
  if (o.status !== 200)
1356
- return { status: W, data: [] };
1356
+ return { status: B, data: [] };
1357
1357
  const { data: s } = await o.json();
1358
1358
  return {
1359
- status: fe,
1359
+ status: Ee,
1360
1360
  data: s[t.method]
1361
1361
  };
1362
1362
  } catch (n) {
1363
- return console.error(n), { status: W, data: [] };
1363
+ return console.error(n), { status: B, data: [] };
1364
1364
  }
1365
- }, De = async ({
1365
+ }, Me = async ({
1366
1366
  type: e,
1367
1367
  clientId: t,
1368
1368
  params: r = {}
1369
1369
  }) => {
1370
1370
  try {
1371
1371
  const a = await fetch(
1372
- zt ? `${Ce.dev}/${e}` : `${Ce.prod}/${e}`,
1372
+ jt ? `${Pe.dev}/${e}` : `${Pe.prod}/${e}`,
1373
1373
  {
1374
- credentials: Jt,
1375
- method: Yt,
1374
+ credentials: Yt,
1375
+ method: Ft,
1376
1376
  headers: {
1377
- "Content-Type": Ft,
1378
- [Ot.CLIENT_ID]: `${t}`
1377
+ "Content-Type": zt,
1378
+ [Pt.CLIENT_ID]: `${t}`
1379
1379
  },
1380
1380
  body: JSON.stringify(r)
1381
1381
  }
1382
1382
  );
1383
1383
  if (a.status !== 200)
1384
- return { status: W, data: [] };
1384
+ return { status: B, data: [] };
1385
1385
  const { data: n } = await a.json();
1386
1386
  return {
1387
- status: fe,
1387
+ status: Ee,
1388
1388
  data: n || []
1389
1389
  };
1390
1390
  } catch (a) {
1391
- return console.error(a), { status: W, data: [] };
1391
+ return console.error(a), { status: B, data: [] };
1392
1392
  }
1393
- }, va = process.env.NODE_ENV === "production", zt = !va, jt = {
1393
+ }, Ia = process.env.NODE_ENV === "production", jt = !Ia, qt = {
1394
1394
  isLoading: !0,
1395
1395
  isAuthenticated: !1,
1396
1396
  user: void 0,
1397
1397
  logoutReason: "",
1398
1398
  debug: !1,
1399
1399
  authenticationType: ""
1400
- }, Sa = (e) => {
1400
+ }, Aa = (e) => {
1401
1401
  try {
1402
1402
  const t = oa(e);
1403
1403
  return t ? t[_.USER_ID_KEY] : "";
@@ -1413,22 +1413,22 @@ const ae = "Your session has expired. For your security, please log in again to
1413
1413
  var n;
1414
1414
  try {
1415
1415
  return {
1416
- status: ((n = await De({
1417
- type: Oe.LOGOUT,
1416
+ status: ((n = await Me({
1417
+ type: $e.LOGOUT,
1418
1418
  clientId: t,
1419
1419
  params: {
1420
1420
  userId: e,
1421
1421
  domain: r,
1422
1422
  idToken: a
1423
1423
  }
1424
- })) == null ? void 0 : n.status) || W
1424
+ })) == null ? void 0 : n.status) || B
1425
1425
  };
1426
1426
  } catch {
1427
1427
  return {
1428
- status: W
1428
+ status: B
1429
1429
  };
1430
1430
  }
1431
- }, Aa = async ({
1431
+ }, Sa = async ({
1432
1432
  username: e,
1433
1433
  password: t,
1434
1434
  clientId: r,
@@ -1442,11 +1442,11 @@ const ae = "Your session has expired. For your security, please log in again to
1442
1442
  }) => {
1443
1443
  var p;
1444
1444
  try {
1445
- const m = await De({
1446
- type: Oe.LOGIN,
1445
+ const m = await Me({
1446
+ type: $e.LOGIN,
1447
1447
  clientId: r,
1448
1448
  params: {
1449
- type: n || le.ID_AND_ACCESS_TOKEN,
1449
+ type: n || ue.ID_AND_ACCESS_TOKEN,
1450
1450
  username: e,
1451
1451
  password: t,
1452
1452
  sessionExpiration: o,
@@ -1456,13 +1456,13 @@ const ae = "Your session has expired. For your security, please log in again to
1456
1456
  domain: u,
1457
1457
  ua: h
1458
1458
  }
1459
- }), l = await he((p = m == null ? void 0 : m.data) == null ? void 0 : p.idToken);
1460
- return l && l.payload[_.USER_ID_KEY] !== "" && l.payload[_.NONCE_KEY] === a ? {
1459
+ }), c = await fe((p = m == null ? void 0 : m.data) == null ? void 0 : p.idToken);
1460
+ return c && c.payload[_.USER_ID_KEY] !== "" && c.payload[_.NONCE_KEY] === a ? {
1461
1461
  idToken: m.data.idToken,
1462
1462
  accessToken: m.data.accessToken,
1463
1463
  refreshToken: m.data.refreshToken,
1464
- userId: l.payload[_.USER_ID_KEY],
1465
- email: l.payload[_.EMAIL_KEY],
1464
+ userId: c.payload[_.USER_ID_KEY],
1465
+ email: c.payload[_.EMAIL_KEY],
1466
1466
  status: !0
1467
1467
  } : {
1468
1468
  status: !1
@@ -1479,25 +1479,25 @@ const ae = "Your session has expired. For your security, please log in again to
1479
1479
  }) => {
1480
1480
  var a;
1481
1481
  try {
1482
- const n = await De({
1483
- type: Oe.CODE,
1482
+ const n = await Me({
1483
+ type: $e.CODE,
1484
1484
  clientId: t,
1485
1485
  params: {
1486
- type: le.CODE,
1486
+ type: ue.CODE,
1487
1487
  nonce: e,
1488
1488
  code_challenge: r
1489
1489
  }
1490
1490
  });
1491
1491
  return (a = n == null ? void 0 : n.data) != null && a.code ? {
1492
- status: fe,
1492
+ status: Ee,
1493
1493
  data: n.data.code
1494
1494
  } : {
1495
- status: W,
1495
+ status: B,
1496
1496
  data: ""
1497
1497
  };
1498
1498
  } catch {
1499
1499
  return {
1500
- status: W,
1500
+ status: B,
1501
1501
  data: ""
1502
1502
  };
1503
1503
  }
@@ -1511,18 +1511,18 @@ const ae = "Your session has expired. For your security, please log in again to
1511
1511
  }) => {
1512
1512
  var s;
1513
1513
  try {
1514
- const i = await De({
1515
- type: Oe.REFRESH,
1514
+ const i = await Me({
1515
+ type: $e.REFRESH,
1516
1516
  clientId: e,
1517
1517
  params: {
1518
- type: le.REFRESH_TOKEN,
1518
+ type: ue.REFRESH_TOKEN,
1519
1519
  userId: t,
1520
1520
  nonce: r,
1521
1521
  refreshToken: a,
1522
1522
  accessToken: n,
1523
1523
  domain: o
1524
1524
  }
1525
- }), u = await he((s = i == null ? void 0 : i.data) == null ? void 0 : s.accessToken);
1525
+ }), u = await fe((s = i == null ? void 0 : i.data) == null ? void 0 : s.accessToken);
1526
1526
  return u && u.payload[_.USER_ID_KEY] !== "" && u.payload[_.NONCE_KEY] === r ? {
1527
1527
  accessToken: i.data.accessToken,
1528
1528
  refreshToken: i.data.refreshToken,
@@ -1565,7 +1565,7 @@ class Na {
1565
1565
  nonce: a,
1566
1566
  domain: n
1567
1567
  }) {
1568
- const o = await he(this.refreshToken);
1568
+ const o = await fe(this.refreshToken);
1569
1569
  if (o && o.payload[_.USER_ID_KEY] !== "") {
1570
1570
  const s = await Ra({
1571
1571
  clientId: t,
@@ -1576,51 +1576,51 @@ class Na {
1576
1576
  domain: n
1577
1577
  });
1578
1578
  return s.status ? (this.accessToken = s.accessToken, this.refreshToken = s.refreshToken, {
1579
- status: fe,
1579
+ status: Ee,
1580
1580
  newAccessToken: s.accessToken,
1581
1581
  newRefreshToken: s.refreshToken
1582
1582
  }) : {
1583
- status: W
1583
+ status: B
1584
1584
  };
1585
1585
  } else
1586
1586
  return {
1587
- status: W
1587
+ status: B
1588
1588
  };
1589
1589
  }
1590
1590
  }
1591
- const Ca = (e) => z(
1591
+ const xa = (e) => q(
1592
1592
  (...t) => {
1593
1593
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
1594
1594
  },
1595
1595
  [e]
1596
- ), se = () => {
1597
- throw new Error(Ia);
1598
- }, qt = ir({
1596
+ ), ce = () => {
1597
+ throw new Error(va);
1598
+ }, Xt = cr({
1599
1599
  isAuthenticated: !1,
1600
1600
  isLoading: !1,
1601
- login: se,
1602
- logout: se,
1603
- getAccessToken: se,
1604
- getIdToken: se,
1605
- registeringForPasskey: se,
1606
- loginWithPasskey: se,
1601
+ login: ce,
1602
+ logout: ce,
1603
+ getAccessToken: ce,
1604
+ getIdToken: ce,
1605
+ registeringForPasskey: ce,
1606
+ loginWithPasskey: ce,
1607
1607
  logoutReason: "",
1608
1608
  authenticationType: ""
1609
- }), xa = H.createContext({
1610
- state: jt,
1609
+ }), Ca = W.createContext({
1610
+ state: qt,
1611
1611
  dispatch: () => {
1612
1612
  }
1613
- }), Oa = (e, t) => (t == null ? void 0 : t.type) === me ? {
1613
+ }), Oa = (e, t) => (t == null ? void 0 : t.type) === ge ? {
1614
1614
  ...e,
1615
1615
  isLoading: t.payload.isLoading
1616
- } : (t == null ? void 0 : t.type) === ke ? {
1616
+ } : (t == null ? void 0 : t.type) === Re ? {
1617
1617
  ...e,
1618
1618
  isLoading: !1,
1619
1619
  isAuthenticated: !0,
1620
1620
  user: t.payload.user,
1621
1621
  authenticationType: t.payload.authenticationType,
1622
1622
  logoutReason: ""
1623
- } : (t == null ? void 0 : t.type) === Vt ? {
1623
+ } : (t == null ? void 0 : t.type) === Jt ? {
1624
1624
  ...e,
1625
1625
  isLoading: !1,
1626
1626
  isAuthenticated: !1,
@@ -1635,43 +1635,43 @@ const Ca = (e) => z(
1635
1635
  debug: n = !1
1636
1636
  }) => {
1637
1637
  const [o, s] = It(Oa, {
1638
- ...jt,
1638
+ ...qt,
1639
1639
  debug: n
1640
- }), i = Ca(n), u = J(!1), [h, p, , m] = we({
1641
- key: `${Ie}::${r}::@@user@@`
1642
- }), [l, d, , f] = we({
1643
- key: `${Ie}::${r}::@@access@@`
1644
- }), [b, v, , w] = we(
1640
+ }), i = xa(n), u = $(!1), [h, p, , m] = Ie({
1641
+ key: `${ke}::${r}::@@user@@`
1642
+ }), [c, d, , y] = Ie({
1643
+ key: `${ke}::${r}::@@access@@`
1644
+ }), [b, I, , w] = Ie(
1645
1645
  {
1646
- key: `${Ie}::${r}::@@refresh@@`
1646
+ key: `${ke}::${r}::@@refresh@@`
1647
1647
  }
1648
- ), [D, L, , N] = we({
1649
- key: `${Ie}::${r}::@@nonce@@`
1650
- }), X = new Na(l, b), C = z(() => {
1651
- i("removeLocalStorage: removing local storage"), m(), f(), w(), N();
1648
+ ), [C, P, , L] = Ie({
1649
+ key: `${ke}::${r}::@@nonce@@`
1650
+ }), Z = new Na(c, b), R = q(() => {
1651
+ i("removeLocalStorage: removing local storage"), m(), y(), w(), L();
1652
1652
  }, [
1653
- f,
1653
+ y,
1654
1654
  m,
1655
- N,
1655
+ L,
1656
1656
  w,
1657
1657
  i
1658
- ]), x = z(
1659
- (y) => {
1658
+ ]), G = q(
1659
+ (g) => {
1660
1660
  i(
1661
1661
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
1662
- y
1662
+ g
1663
1663
  ), s({
1664
- type: Vt,
1664
+ type: Jt,
1665
1665
  payload: {
1666
- logoutReason: y || ae
1666
+ logoutReason: g || oe
1667
1667
  }
1668
- }), C(), s({ type: me, payload: { isLoading: !1 } });
1668
+ }), R(), s({ type: ge, payload: { isLoading: !1 } });
1669
1669
  },
1670
- [C, i]
1671
- ), O = z(
1672
- async (y) => {
1670
+ [R, i]
1671
+ ), O = q(
1672
+ async (g) => {
1673
1673
  i("invalidateAndLogout: invalidating and logging out");
1674
- const { user: I } = o, E = (I == null ? void 0 : I.userId) || Sa(h);
1674
+ const { user: T } = o, E = (T == null ? void 0 : T.userId) || Aa(h);
1675
1675
  E || i(
1676
1676
  "invalidateAndLogout: user cannot be identified, logging out without userId"
1677
1677
  ), await ka({
@@ -1679,215 +1679,215 @@ const Ca = (e) => z(
1679
1679
  clientId: r,
1680
1680
  domain: a,
1681
1681
  idToken: h
1682
- }), x(y || ae);
1682
+ }), G(g || oe);
1683
1683
  },
1684
- [h, o, r, a, x, i]
1684
+ [h, o, r, a, G, i]
1685
1685
  );
1686
- q(() => {
1686
+ Q(() => {
1687
1687
  if (!u.current)
1688
1688
  return o.isLoading && h !== null ? (async () => {
1689
1689
  try {
1690
- const y = await he(h);
1691
- y && y.payload[_.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
1692
- type: ke,
1690
+ const g = await fe(h);
1691
+ g && g.payload[_.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
1692
+ type: Re,
1693
1693
  payload: {
1694
- authenticationType: y.payload[_.AUTH_TYPE_KEY],
1694
+ authenticationType: g.payload[_.AUTH_TYPE_KEY],
1695
1695
  user: {
1696
- userId: y.payload[_.USER_ID_KEY],
1697
- username: y.payload[_.USERNAME_KEY],
1698
- email: y.payload[_.EMAIL_KEY]
1696
+ userId: g.payload[_.USER_ID_KEY],
1697
+ username: g.payload[_.USERNAME_KEY],
1698
+ email: g.payload[_.EMAIL_KEY]
1699
1699
  }
1700
1700
  }
1701
- })) : (i("useEffect: invalid JWT, invalidating and logging out"), await O(ae));
1701
+ })) : (i("useEffect: invalid JWT, invalidating and logging out"), await O(oe));
1702
1702
  } catch {
1703
1703
  i(
1704
1704
  "useEffect: exception validating JWT, invalidating and logging out"
1705
- ), await O(ae);
1705
+ ), await O(oe);
1706
1706
  }
1707
- })() : (i("useEffect: setting the loading state to false"), s({ type: me, payload: { isLoading: !1 } })), () => {
1707
+ })() : (i("useEffect: setting the loading state to false"), s({ type: ge, payload: { isLoading: !1 } })), () => {
1708
1708
  u.current = !0;
1709
1709
  };
1710
1710
  }, [o.isLoading, h, O, i]);
1711
- const M = async (y, I) => {
1712
- s({ type: me, payload: { isLoading: !0 } }), C();
1711
+ const V = async (g, T) => {
1712
+ s({ type: ge, payload: { isLoading: !0 } }), R();
1713
1713
  const E = Je();
1714
- L(E), i("login: Logging in with password");
1715
- const { code_verifier: Z, code_challenge: sr } = await ha(), ot = await _a({
1714
+ P(E), i("login: Logging in with password");
1715
+ const { code_verifier: F, code_challenge: ir } = await ha(), ot = await _a({
1716
1716
  nonce: E,
1717
1717
  clientId: r,
1718
- code_challenge: sr
1718
+ code_challenge: ir
1719
1719
  });
1720
1720
  if (ot.status) {
1721
- const ee = await Aa({
1722
- username: y,
1723
- password: I,
1721
+ const re = await Sa({
1722
+ username: g,
1723
+ password: T,
1724
1724
  clientId: r,
1725
1725
  sessionExpiration: t,
1726
1726
  nonce: E,
1727
- type: le.CODE,
1727
+ type: ue.CODE,
1728
1728
  code: ot.data,
1729
- code_verifier: Z,
1729
+ code_verifier: F,
1730
1730
  domain: a,
1731
1731
  ua: navigator.userAgent
1732
1732
  });
1733
- return ee.status ? (p(ee.idToken), d(ee.accessToken), v(ee.refreshToken), s({
1734
- type: ke,
1733
+ return re.status ? (p(re.idToken), d(re.accessToken), I(re.refreshToken), s({
1734
+ type: Re,
1735
1735
  payload: {
1736
- authenticationType: le.CODE,
1736
+ authenticationType: ue.CODE,
1737
1737
  user: {
1738
- userId: ee.userId,
1739
- username: y,
1740
- email: ee.email
1738
+ userId: re.userId,
1739
+ username: g,
1740
+ email: re.email
1741
1741
  }
1742
1742
  }
1743
- }), !0) : (x(Ye), !1);
1743
+ }), !0) : (G(Ye), !1);
1744
1744
  }
1745
1745
  return !1;
1746
- }, Ue = async (y) => {
1747
- y == null || y.preventDefault(), await O(wa);
1748
- }, Ke = async () => {
1749
- const { isAuthenticated: y, user: I } = o;
1746
+ }, pe = async (g) => {
1747
+ g == null || g.preventDefault(), await O(wa);
1748
+ }, ee = async () => {
1749
+ const { isAuthenticated: g, user: T } = o;
1750
1750
  try {
1751
- if (y && I && I.userId) {
1752
- if (l) {
1751
+ if (g && T && T.userId) {
1752
+ if (c) {
1753
1753
  i("getAccessToken");
1754
- const Z = await he(l);
1755
- if (Z && Z.payload[_.USER_ID_KEY] !== "")
1756
- return l;
1754
+ const F = await fe(c);
1755
+ if (F && F.payload[_.USER_ID_KEY] !== "")
1756
+ return c;
1757
1757
  }
1758
1758
  i("getAccessToken: invalid access token, trying to refresh it");
1759
- const E = await X.refreshtoken({
1759
+ const E = await Z.refreshtoken({
1760
1760
  clientId: r,
1761
- userId: I.userId,
1762
- nonce: D,
1761
+ userId: T.userId,
1762
+ nonce: C,
1763
1763
  domain: a
1764
1764
  });
1765
- return E.status && E.status === "success" && E.newAccessToken ? (d(E.newAccessToken), v(E.newRefreshToken), E.newAccessToken) : (i(
1765
+ return E.status && E.status === "success" && E.newAccessToken ? (d(E.newAccessToken), I(E.newRefreshToken), E.newAccessToken) : (i(
1766
1766
  "getAccessToken: invalid refresh token, need to re-authenticate"
1767
- ), await O(ae), "");
1767
+ ), await O(oe), "");
1768
1768
  }
1769
1769
  return i(
1770
1770
  "getAccessToken: user is not authenticated, cannot get access token"
1771
- ), await O(ae), "";
1771
+ ), await O(oe), "";
1772
1772
  } catch {
1773
1773
  return i(
1774
1774
  "getAccessToken: exception occurred, invalidating and logging out"
1775
1775
  ), await O(Ta), "";
1776
1776
  }
1777
- }, P = () => o.isAuthenticated && h ? h : "", B = async () => {
1778
- const { user: y } = o;
1779
- let I = await oe({
1780
- accessToken: l,
1777
+ }, N = () => o.isAuthenticated && h ? h : "", D = async () => {
1778
+ const { user: g } = o;
1779
+ let T = await ie({
1780
+ accessToken: c,
1781
1781
  clientId: r,
1782
- type: ne.GET_REGISTRATION_OPTIONS,
1782
+ type: se.GET_REGISTRATION_OPTIONS,
1783
1783
  params: {
1784
1784
  clientId: r,
1785
- id: y == null ? void 0 : y.userId,
1786
- username: y == null ? void 0 : y.username
1785
+ id: g == null ? void 0 : g.userId,
1786
+ username: g == null ? void 0 : g.username
1787
1787
  }
1788
1788
  });
1789
- if (I.status)
1789
+ if (T.status)
1790
1790
  try {
1791
- const E = await gr(I.data);
1792
- return I = await oe({
1793
- accessToken: l,
1791
+ const E = await gr(T.data);
1792
+ return T = await ie({
1793
+ accessToken: c,
1794
1794
  clientId: r,
1795
- type: ne.VERIFY_REGISTRATION,
1795
+ type: se.VERIFY_REGISTRATION,
1796
1796
  params: {
1797
1797
  clientId: r,
1798
- id: y == null ? void 0 : y.userId,
1799
- username: y == null ? void 0 : y.username,
1798
+ id: g == null ? void 0 : g.userId,
1799
+ username: g == null ? void 0 : g.username,
1800
1800
  registration: E
1801
1801
  }
1802
- }), !!(I.status && I.data.length > 0);
1802
+ }), !!(T.status && T.data.length > 0);
1803
1803
  } catch {
1804
- return await oe({
1805
- accessToken: l,
1804
+ return await ie({
1805
+ accessToken: c,
1806
1806
  clientId: r,
1807
- type: ne.VERIFY_REGISTRATION,
1807
+ type: se.VERIFY_REGISTRATION,
1808
1808
  params: {
1809
1809
  clientId: r,
1810
- id: y == null ? void 0 : y.userId,
1811
- username: y == null ? void 0 : y.username,
1810
+ id: g == null ? void 0 : g.userId,
1811
+ username: g == null ? void 0 : g.username,
1812
1812
  registration: {}
1813
1813
  }
1814
1814
  }), !1;
1815
1815
  }
1816
1816
  return !1;
1817
- }, $e = async () => {
1818
- s({ type: me, payload: { isLoading: !0 } }), C();
1819
- const y = Je();
1820
- L(y), i("loginWithPasskey");
1821
- const I = Je();
1822
- let E = await oe({
1823
- accessToken: l,
1817
+ }, M = async () => {
1818
+ s({ type: ge, payload: { isLoading: !0 } }), R();
1819
+ const g = Je();
1820
+ P(g), i("loginWithPasskey");
1821
+ const T = Je();
1822
+ let E = await ie({
1823
+ accessToken: c,
1824
1824
  clientId: r,
1825
- type: ne.GET_AUTHENTICATION_OPTIONS,
1825
+ type: se.GET_AUTHENTICATION_OPTIONS,
1826
1826
  params: {
1827
- id: I,
1827
+ id: T,
1828
1828
  clientId: r
1829
1829
  }
1830
1830
  });
1831
1831
  if (E.status)
1832
1832
  try {
1833
- const Z = await br(E.data);
1834
- return E = await oe({
1835
- accessToken: l,
1833
+ const F = await br(E.data);
1834
+ return E = await ie({
1835
+ accessToken: c,
1836
1836
  clientId: r,
1837
- type: ne.VERIFY_AUTHENTICATION,
1837
+ type: se.VERIFY_AUTHENTICATION,
1838
1838
  params: {
1839
1839
  clientId: r,
1840
- id: I,
1841
- authentication: Z,
1842
- nonce: y,
1840
+ id: T,
1841
+ authentication: F,
1842
+ nonce: g,
1843
1843
  domain: a,
1844
1844
  sessionExpiration: t,
1845
1845
  ua: navigator.userAgent
1846
1846
  }
1847
- }), E.data.status === fe ? (p(E.data.idToken), d(E.data.accessToken), v(E.data.refreshToken), s({
1848
- type: ke,
1847
+ }), E.data.status === Ee ? (p(E.data.idToken), d(E.data.accessToken), I(E.data.refreshToken), s({
1848
+ type: Re,
1849
1849
  payload: {
1850
- authenticationType: le.PASSKEY,
1850
+ authenticationType: ue.PASSKEY,
1851
1851
  user: {
1852
1852
  userId: E.data.userId,
1853
1853
  username: E.data.username,
1854
1854
  email: E.data.email
1855
1855
  }
1856
1856
  }
1857
- }), !0) : (x(Ye), !1);
1857
+ }), !0) : (G(Ye), !1);
1858
1858
  } catch {
1859
- return await oe({
1860
- accessToken: l,
1859
+ return await ie({
1860
+ accessToken: c,
1861
1861
  clientId: r,
1862
- type: ne.VERIFY_AUTHENTICATION,
1862
+ type: se.VERIFY_AUTHENTICATION,
1863
1863
  params: {
1864
1864
  clientId: r,
1865
- id: I,
1865
+ id: T,
1866
1866
  authentication: {},
1867
- nonce: y,
1867
+ nonce: g,
1868
1868
  domain: a,
1869
1869
  sessionExpiration: t
1870
1870
  }
1871
- }), x(Ye), !1;
1871
+ }), G(Ye), !1;
1872
1872
  }
1873
1873
  return !1;
1874
1874
  };
1875
- return /* @__PURE__ */ c(xa.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ c(
1876
- qt.Provider,
1875
+ return /* @__PURE__ */ l(Ca.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
1876
+ Xt.Provider,
1877
1877
  {
1878
1878
  value: {
1879
1879
  ...o,
1880
- login: M,
1881
- logout: Ue,
1882
- getAccessToken: Ke,
1883
- getIdToken: P,
1884
- registeringForPasskey: B,
1885
- loginWithPasskey: $e
1880
+ login: V,
1881
+ logout: pe,
1882
+ getAccessToken: ee,
1883
+ getIdToken: N,
1884
+ registeringForPasskey: D,
1885
+ loginWithPasskey: M
1886
1886
  },
1887
1887
  children: e
1888
1888
  }
1889
1889
  ) });
1890
- }, et = (e = qt) => vt(e), mo = "user", ho = "assistant", po = "system", go = "internal", fo = "hidden", yo = "I'm having trouble right now. Please try again later.", bo = "gpt-4", Eo = 128e3, wo = "action-message", To = "action-reset", Io = "action-model", vo = "action-restore", So = "action-streaming", ko = "action-search", Ao = "action-sort", _o = "action-toggle-tag", Ro = "action-reset-tags", Fe = {
1890
+ }, et = (e = Xt) => At(e), mo = "user", ho = "assistant", po = "system", go = "internal", fo = "hidden", yo = "I'm having trouble right now. Please try again later.", bo = "gpt-4", Eo = 128e3, wo = "action-message", To = "action-reset", vo = "action-model", Io = "action-restore", Ao = "action-streaming", ko = "action-search", So = "action-sort", _o = "action-toggle-tag", Ro = "action-reset-tags", Fe = {
1891
1891
  SUMMARIZE_ARTICLE: "summarize-article",
1892
1892
  PROOFREAD_CONTENT: "proofread-content",
1893
1893
  REPHRASE_CONTENT: "rephrase-content"
@@ -1901,19 +1901,19 @@ const Ca = (e) => z(
1901
1901
  content: "Proofread this: "
1902
1902
  },
1903
1903
  [Fe.REPHRASE_CONTENT]: { label: "Rephrase...", content: "Rephrase this: " }
1904
- }, Co = "sassy-saint-", xo = "details", Oo = "search", Po = "sort", Do = "summarize-article", Lo = "proofread-content", Mo = "rephrase-content", Uo = "==stats==", Da = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", bt = (e) => Number.isFinite(e) ? e : 0;
1905
- function La(e) {
1904
+ }, xo = "sassy-saint-", Co = "details", Oo = "search", Po = "sort", Do = "summarize-article", $o = "proofread-content", Lo = "rephrase-content", Mo = "==stats==", Da = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Et = (e) => Number.isFinite(e) ? e : 0;
1905
+ function $a(e) {
1906
1906
  return {
1907
1907
  days: Math.trunc(e / 864e5),
1908
1908
  hours: Math.trunc(e / 36e5 % 24),
1909
1909
  minutes: Math.trunc(e / 6e4 % 60),
1910
1910
  seconds: Math.trunc(e / 1e3 % 60),
1911
1911
  milliseconds: Math.trunc(e % 1e3),
1912
- microseconds: Math.trunc(bt(e * 1e3) % 1e3),
1913
- nanoseconds: Math.trunc(bt(e * 1e6) % 1e3)
1912
+ microseconds: Math.trunc(Et(e * 1e3) % 1e3),
1913
+ nanoseconds: Math.trunc(Et(e * 1e6) % 1e3)
1914
1914
  };
1915
1915
  }
1916
- function Ma(e) {
1916
+ function La(e) {
1917
1917
  return {
1918
1918
  days: e / 86400000n,
1919
1919
  hours: e / 3600000n % 24n,
@@ -1924,19 +1924,19 @@ function Ma(e) {
1924
1924
  nanoseconds: 0n
1925
1925
  };
1926
1926
  }
1927
- function Ua(e) {
1927
+ function Ma(e) {
1928
1928
  switch (typeof e) {
1929
1929
  case "number": {
1930
1930
  if (Number.isFinite(e))
1931
- return La(e);
1931
+ return $a(e);
1932
1932
  break;
1933
1933
  }
1934
1934
  case "bigint":
1935
- return Ma(e);
1935
+ return La(e);
1936
1936
  }
1937
1937
  throw new TypeError("Expected a finite number or bigint");
1938
1938
  }
1939
- const Ka = (e) => e === 0 || e === 0n, $a = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ha = 1e-7, Wa = 24n * 60n * 60n * 1000n;
1939
+ const Ua = (e) => e === 0 || e === 0n, Ka = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ha = 1e-7, Wa = 24n * 60n * 60n * 1000n;
1940
1940
  function Ba(e, t) {
1941
1941
  const r = typeof e == "bigint";
1942
1942
  if (!r && !Number.isFinite(e))
@@ -1946,24 +1946,24 @@ function Ba(e, t) {
1946
1946
  e = e < 0 ? -e : e, t.colonNotation && (t.compact = !1, t.formatSubMilliseconds = !1, t.separateMilliseconds = !1, t.verbose = !1), t.compact && (t.unitCount = 1, t.secondsDecimalDigits = 0, t.millisecondsDecimalDigits = 0);
1947
1947
  let n = [];
1948
1948
  const o = (p, m) => {
1949
- const l = Math.floor(p * 10 ** m + Ha);
1950
- return (Math.round(l) / 10 ** m).toFixed(m);
1951
- }, s = (p, m, l, d) => {
1952
- if (!((n.length === 0 || !t.colonNotation) && Ka(p) && !(t.colonNotation && l === "m"))) {
1949
+ const c = Math.floor(p * 10 ** m + Ha);
1950
+ return (Math.round(c) / 10 ** m).toFixed(m);
1951
+ }, s = (p, m, c, d) => {
1952
+ if (!((n.length === 0 || !t.colonNotation) && Ua(p) && !(t.colonNotation && c === "m"))) {
1953
1953
  if (d ?? (d = String(p)), t.colonNotation) {
1954
- const f = d.includes(".") ? d.split(".")[0].length : d.length, b = n.length > 0 ? 2 : 1;
1955
- d = "0".repeat(Math.max(0, b - f)) + d;
1954
+ const y = d.includes(".") ? d.split(".")[0].length : d.length, b = n.length > 0 ? 2 : 1;
1955
+ d = "0".repeat(Math.max(0, b - y)) + d;
1956
1956
  } else
1957
- d += t.verbose ? " " + $a(m, p) : l;
1957
+ d += t.verbose ? " " + Ka(m, p) : c;
1958
1958
  n.push(d);
1959
1959
  }
1960
- }, i = Ua(e), u = BigInt(i.days);
1960
+ }, i = Ma(e), u = BigInt(i.days);
1961
1961
  if (s(u / 365n, "year", "y"), s(u % 365n, "day", "d"), s(Number(i.hours), "hour", "h"), s(Number(i.minutes), "minute", "m"), t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
1962
- const p = Number(i.seconds), m = Number(i.milliseconds), l = Number(i.microseconds), d = Number(i.nanoseconds);
1962
+ const p = Number(i.seconds), m = Number(i.milliseconds), c = Number(i.microseconds), d = Number(i.nanoseconds);
1963
1963
  if (s(p, "second", "s"), t.formatSubMilliseconds)
1964
- s(m, "millisecond", "ms"), s(l, "microsecond", "µs"), s(d, "nanosecond", "ns");
1964
+ s(m, "millisecond", "ms"), s(c, "microsecond", "µs"), s(d, "nanosecond", "ns");
1965
1965
  else {
1966
- const f = m + l / 1e3 + d / 1e6, b = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, v = f >= 1 ? Math.round(f) : Math.ceil(f), w = b ? f.toFixed(b) : v;
1966
+ const y = m + c / 1e3 + d / 1e6, b = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, I = y >= 1 ? Math.round(y) : Math.ceil(y), w = b ? y.toFixed(b) : I;
1967
1967
  s(
1968
1968
  Number.parseFloat(w),
1969
1969
  "millisecond",
@@ -1972,7 +1972,7 @@ function Ba(e, t) {
1972
1972
  );
1973
1973
  }
1974
1974
  } else {
1975
- const p = (r ? Number(e % Wa) : e) / 1e3 % 60, m = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = o(p, m), d = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
1975
+ const p = (r ? Number(e % Wa) : e) / 1e3 % 60, m = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, m), d = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
1976
1976
  s(Number.parseFloat(d), "second", "s", d);
1977
1977
  }
1978
1978
  if (n.length === 0)
@@ -1980,7 +1980,7 @@ function Ba(e, t) {
1980
1980
  const h = t.colonNotation ? ":" : " ";
1981
1981
  return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
1982
1982
  }
1983
- const Ga = process.env.NODE_ENV === "production", tt = !Ga, Va = tt ? "gizmette.local.com" : "gizmette.com", Ko = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, $o = async () => {
1983
+ const Ga = process.env.NODE_ENV === "production", tt = !Ga, Va = tt ? "gizmette.local.com" : "gizmette.com", Uo = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Ko = async () => {
1984
1984
  const e = {
1985
1985
  /**
1986
1986
  * A boolean value that indicates the application would
@@ -2029,9 +2029,9 @@ const Ga = process.env.NODE_ENV === "production", tt = !Ga, Va = tt ? "gizmette.
2029
2029
  e
2030
2030
  );
2031
2031
  });
2032
- }, Ho = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ c("dl", { className: "my-0", children: /* @__PURE__ */ T("div", { className: "flex items-center justify-between", children: [
2033
- /* @__PURE__ */ c("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
2034
- /* @__PURE__ */ c("dd", { className: "my-1 inline-block", children: t[r] })
2032
+ }, Ho = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ v("div", { className: "flex items-center justify-between", children: [
2033
+ /* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
2034
+ /* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
2035
2035
  ] }) }, `${e}-${r}`)) : null;
2036
2036
  function Wo({
2037
2037
  data: e,
@@ -2053,10 +2053,10 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2053
2053
  }), Vo = (e) => e > 0 ? Ba(e, {
2054
2054
  secondsDecimalDigits: 2,
2055
2055
  unitCount: 2
2056
- }) : "N/A", Ja = (e) => g(
2056
+ }) : "N/A", Ja = (e) => f(
2057
2057
  "flex-1 space-y-6 overflow-y-auto rounded-md bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
2058
2058
  e || tt ? "pt-4" : "pt-10"
2059
- ), Jo = (e, t) => t === 1 ? e : `${e}s`, Et = "av-button", Ya = (e) => {
2059
+ ), Jo = (e, t) => t === 1 ? e : `${e}s`, wt = "av-button", Ya = (e) => {
2060
2060
  let t = "";
2061
2061
  if (typeof e == "number" || typeof e == "string")
2062
2062
  t = "m-" + e;
@@ -2065,7 +2065,7 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2065
2065
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
2066
2066
  }
2067
2067
  return t;
2068
- }, rt = "icon", Xt = "button", Fa = "link", za = ({
2068
+ }, rt = "icon", Qt = "button", Fa = "link", za = ({
2069
2069
  type: e,
2070
2070
  size: t,
2071
2071
  labelRight: r,
@@ -2074,20 +2074,20 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2074
2074
  }) => {
2075
2075
  const o = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", i = "text-lg font-medium max-h-12 py-2";
2076
2076
  switch (e) {
2077
- case Xt:
2078
- return g("px-4", {
2077
+ case Qt:
2078
+ return f("px-4", {
2079
2079
  [o]: t === "small",
2080
2080
  [s]: t === "medium",
2081
2081
  [i]: t === "large"
2082
2082
  });
2083
2083
  case Fa:
2084
- return g("px-4 text-center", {
2084
+ return f("px-4 text-center", {
2085
2085
  [o]: t === "small",
2086
2086
  [s]: t === "medium",
2087
2087
  [i]: t === "large"
2088
2088
  });
2089
2089
  case rt:
2090
- return g("inline-flex items-center", {
2090
+ return f("inline-flex items-center", {
2091
2091
  "justify-center": n === "center",
2092
2092
  "justify-start": n === "left",
2093
2093
  "justify-end": n === "right",
@@ -2108,7 +2108,7 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2108
2108
  if (t)
2109
2109
  return "not-prose rounded-full";
2110
2110
  if (a === "primary")
2111
- return g("not-prose rounded-full", {
2111
+ return f("not-prose rounded-full", {
2112
2112
  truncate: !r,
2113
2113
  "bg-action-dark text-copy-light": e === "dark",
2114
2114
  "bg-action-light text-copy-lighter": e === "light",
@@ -2116,7 +2116,7 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2116
2116
  "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
2117
2117
  });
2118
2118
  if (a === "secondary")
2119
- return g("not-prose rounded-full", {
2119
+ return f("not-prose rounded-full", {
2120
2120
  truncate: !r,
2121
2121
  "bg-action-dark text-copy-light": e === "light",
2122
2122
  "bg-action-light text-copy-lighter": e === "dark",
@@ -2124,7 +2124,7 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2124
2124
  "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
2125
2125
  });
2126
2126
  if (a === "danger")
2127
- return g("not-prose rounded-full", {
2127
+ return f("not-prose rounded-full", {
2128
2128
  truncate: !r,
2129
2129
  "bg-action-danger-dark text-copy-light": e === "dark",
2130
2130
  "bg-action-danger-light text-copy-lighter": e === "light",
@@ -2139,21 +2139,21 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2139
2139
  if (t)
2140
2140
  return "";
2141
2141
  if (r === "primary")
2142
- return g("hover:text-copy-light-hover", {
2142
+ return f("hover:text-copy-light-hover", {
2143
2143
  "hover:bg-action-dark-hover": e === "dark",
2144
2144
  "hover:bg-action-light-hover": e === "light",
2145
2145
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
2146
2146
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
2147
2147
  });
2148
2148
  if (r === "secondary")
2149
- return g("hover:text-copy-light-hover", {
2149
+ return f("hover:text-copy-light-hover", {
2150
2150
  "hover:bg-action-dark-hover": e === "light",
2151
2151
  "hover:bg-action-light-hover": e === "dark",
2152
2152
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
2153
2153
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
2154
2154
  });
2155
2155
  if (r === "danger")
2156
- return g("hover:text-copy-light-hover", {
2156
+ return f("hover:text-copy-light-hover", {
2157
2157
  "hover:bg-action-danger-dark-hover": e === "dark",
2158
2158
  "hover:bg-action-danger-light-hover": e === "light",
2159
2159
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
@@ -2167,21 +2167,21 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2167
2167
  if (t)
2168
2168
  return "";
2169
2169
  if (r === "primary")
2170
- return g("active:text-copy-light-active", {
2170
+ return f("active:text-copy-light-active", {
2171
2171
  "active:bg-action-dark-active": e === "dark",
2172
2172
  "active:bg-action-light-active": e === "light",
2173
2173
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
2174
2174
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
2175
2175
  });
2176
2176
  if (r === "secondary")
2177
- return g("active:text-copy-light-active", {
2177
+ return f("active:text-copy-light-active", {
2178
2178
  "active:bg-action-dark-active": e === "light",
2179
2179
  "active:bg-action-light-active": e === "dark",
2180
2180
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
2181
2181
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
2182
2182
  });
2183
2183
  if (r === "danger")
2184
- return g("active:text-copy-lighter-active", {
2184
+ return f("active:text-copy-lighter-active", {
2185
2185
  "active:bg-action-danger-dark-active": e === "dark",
2186
2186
  "active:bg-action-danger-light-active": e === "light",
2187
2187
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
@@ -2195,27 +2195,27 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2195
2195
  if (t)
2196
2196
  return "border border-transparent";
2197
2197
  if (r === "primary")
2198
- return g("border", {
2198
+ return f("border", {
2199
2199
  "border-border-dark": e === "dark",
2200
2200
  "border-border-accent": e === "light",
2201
2201
  "border-border-dark dark:border-border-accent": e === "system",
2202
2202
  "border-border-accent dark:border-border-dark": e === "alt-system"
2203
2203
  });
2204
2204
  if (r === "secondary")
2205
- return g("border", {
2205
+ return f("border", {
2206
2206
  "border-border-dark": e === "light",
2207
2207
  "border-border-accent": e === "dark",
2208
2208
  "border-border-dark dark:border-border-accent": e === "alt-system",
2209
2209
  "border-border-accent dark:border-border-dark": e === "system"
2210
2210
  });
2211
2211
  if (r === "danger")
2212
- return g("border", {
2212
+ return f("border", {
2213
2213
  "border-border-danger-dark": e === "dark",
2214
2214
  "border-border-danger-medium": e === "light",
2215
2215
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
2216
2216
  "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
2217
2217
  });
2218
- }, Za = ({ focusMode: e }) => g("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
2218
+ }, Za = ({ focusMode: e }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
2219
2219
  "focus:outline-focus-dark": e === "dark",
2220
2220
  "focus:outline-focus-light": e === "light",
2221
2221
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -2233,15 +2233,15 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2233
2233
  labelRight: h,
2234
2234
  labelLeft: p,
2235
2235
  spacing: m,
2236
- noBackground: l,
2236
+ noBackground: c,
2237
2237
  variant: d,
2238
- noTruncate: f,
2238
+ noTruncate: y,
2239
2239
  align: b
2240
- }) => (d || (d = "primary"), r ? g(Et, t) : g(
2241
- Et,
2240
+ }) => (d || (d = "primary"), r ? f(wt, t) : f(
2241
+ wt,
2242
2242
  t,
2243
2243
  Ya(m),
2244
- ja({ mode: a, variant: d, noBackground: l, noTruncate: f }),
2244
+ ja({ mode: a, variant: d, noBackground: c, noTruncate: y }),
2245
2245
  za({ type: e, size: i, labelRight: h, labelLeft: p, align: b }),
2246
2246
  Qa({ mode: a, variant: d, noBorder: u }),
2247
2247
  Za({ focusMode: n }),
@@ -2254,9 +2254,9 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2254
2254
  )), en = (e, t, r) => {
2255
2255
  var a;
2256
2256
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
2257
- }, Le = H.forwardRef((e, t) => {
2257
+ }, Ue = W.forwardRef((e, t) => {
2258
2258
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
2259
- return /* @__PURE__ */ c(
2259
+ return /* @__PURE__ */ l(
2260
2260
  "button",
2261
2261
  {
2262
2262
  ref: t,
@@ -2267,8 +2267,8 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2267
2267
  }
2268
2268
  );
2269
2269
  });
2270
- Le.displayName = "BaseButton";
2271
- const Qt = H.forwardRef(
2270
+ Ue.displayName = "BaseButton";
2271
+ const Zt = W.forwardRef(
2272
2272
  ({
2273
2273
  children: e,
2274
2274
  disabled: t = !1,
@@ -2282,10 +2282,10 @@ const Qt = H.forwardRef(
2282
2282
  spacing: h,
2283
2283
  variant: p = "primary",
2284
2284
  noTruncate: m = !1,
2285
- ...l
2285
+ ...c
2286
2286
  }, d) => {
2287
- const f = at({
2288
- type: Xt,
2287
+ const y = at({
2288
+ type: Qt,
2289
2289
  mode: r,
2290
2290
  focusMode: a,
2291
2291
  fullWidth: n,
@@ -2298,20 +2298,20 @@ const Qt = H.forwardRef(
2298
2298
  variant: p,
2299
2299
  noTruncate: m
2300
2300
  });
2301
- return /* @__PURE__ */ c(
2302
- Le,
2301
+ return /* @__PURE__ */ l(
2302
+ Ue,
2303
2303
  {
2304
2304
  ref: d,
2305
- className: f,
2305
+ className: y,
2306
2306
  disabled: t,
2307
- ...l,
2307
+ ...c,
2308
2308
  children: e
2309
2309
  }
2310
2310
  );
2311
2311
  }
2312
2312
  );
2313
- Qt.displayName = "Button";
2314
- const Xe = H.forwardRef(
2313
+ Zt.displayName = "Button";
2314
+ const Xe = W.forwardRef(
2315
2315
  ({
2316
2316
  children: e,
2317
2317
  disabled: t = !1,
@@ -2325,14 +2325,14 @@ const Xe = H.forwardRef(
2325
2325
  "aria-label": h,
2326
2326
  label: p,
2327
2327
  size: m = "medium",
2328
- labelRight: l,
2328
+ labelRight: c,
2329
2329
  labelLeft: d,
2330
- spacing: f,
2330
+ spacing: y,
2331
2331
  noBackground: b = !1,
2332
- align: v = "center",
2332
+ align: I = "center",
2333
2333
  ...w
2334
- }, D) => {
2335
- const L = at({
2334
+ }, C) => {
2335
+ const P = at({
2336
2336
  type: rt,
2337
2337
  mode: r,
2338
2338
  focusMode: a,
@@ -2342,30 +2342,30 @@ const Xe = H.forwardRef(
2342
2342
  className: o,
2343
2343
  noBorder: u,
2344
2344
  size: m,
2345
- labelRight: l,
2345
+ labelRight: c,
2346
2346
  labelLeft: d,
2347
- spacing: f,
2347
+ spacing: y,
2348
2348
  noBackground: b,
2349
- align: v
2350
- }), N = g({
2349
+ align: I
2350
+ }), L = f({
2351
2351
  "text-copy-accent-dark": r === "light" && !i,
2352
2352
  "text-copy-light": r === "dark" && !i,
2353
2353
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
2354
2354
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !i
2355
2355
  });
2356
- return /* @__PURE__ */ T(
2357
- Le,
2356
+ return /* @__PURE__ */ v(
2357
+ Ue,
2358
2358
  {
2359
- ref: D,
2360
- className: L,
2359
+ ref: C,
2360
+ className: P,
2361
2361
  disabled: t,
2362
2362
  type: s,
2363
2363
  "aria-label": h || p,
2364
2364
  ...w,
2365
2365
  children: [
2366
- d && /* @__PURE__ */ c("span", { className: "pr-2", children: d }),
2367
- /* @__PURE__ */ c("div", { className: N, children: e }),
2368
- l && /* @__PURE__ */ c("span", { className: "pl-2", children: l })
2366
+ d && /* @__PURE__ */ l("span", { className: "pr-2", children: d }),
2367
+ /* @__PURE__ */ l("div", { className: L, children: e }),
2368
+ c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
2369
2369
  ]
2370
2370
  }
2371
2371
  );
@@ -2373,19 +2373,19 @@ const Xe = H.forwardRef(
2373
2373
  );
2374
2374
  Xe.displayName = "ButtonIcon";
2375
2375
  /*!
2376
- @versini/ui-button v1.1.4
2376
+ @versini/ui-button v1.1.10
2377
2377
  © 2024 gizmette.com
2378
2378
  */
2379
2379
  try {
2380
2380
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
2381
- version: "1.1.4",
2382
- buildTime: "09/24/2024 07:45 PM EDT",
2381
+ version: "1.1.10",
2382
+ buildTime: "09/28/2024 06:29 PM EDT",
2383
2383
  homepage: "https://github.com/aversini/ui-components",
2384
2384
  license: "MIT"
2385
2385
  });
2386
2386
  } catch {
2387
2387
  }
2388
- const tn = H.forwardRef(
2388
+ const tn = W.forwardRef(
2389
2389
  ({
2390
2390
  children: e,
2391
2391
  disabled: t = !1,
@@ -2399,15 +2399,15 @@ const tn = H.forwardRef(
2399
2399
  "aria-label": h,
2400
2400
  label: p,
2401
2401
  size: m = "medium",
2402
- labelRight: l,
2402
+ labelRight: c,
2403
2403
  labelLeft: d,
2404
- spacing: f,
2404
+ spacing: y,
2405
2405
  noBackground: b = !1,
2406
- align: v = "center",
2406
+ align: I = "center",
2407
2407
  active: w = !1,
2408
- ...D
2409
- }, L) => {
2410
- const N = at({
2408
+ ...C
2409
+ }, P) => {
2410
+ const L = at({
2411
2411
  type: rt,
2412
2412
  mode: r,
2413
2413
  focusMode: a,
@@ -2417,17 +2417,17 @@ const tn = H.forwardRef(
2417
2417
  className: o,
2418
2418
  noBorder: u,
2419
2419
  size: m,
2420
- labelRight: l,
2420
+ labelRight: c,
2421
2421
  labelLeft: d,
2422
- spacing: f,
2422
+ spacing: y,
2423
2423
  noBackground: b,
2424
- align: v
2425
- }), X = g({
2424
+ align: I
2425
+ }), Z = f({
2426
2426
  "text-copy-accent-dark": r === "light" && !i,
2427
2427
  "text-copy-light": r === "dark" && !i,
2428
2428
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
2429
2429
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !i
2430
- }), C = w ? g(
2430
+ }), R = w ? f(
2431
2431
  "relative",
2432
2432
  "focus-within:static",
2433
2433
  "focus-within:after:border-transparent",
@@ -2444,19 +2444,19 @@ const tn = H.forwardRef(
2444
2444
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
2445
2445
  }
2446
2446
  ) : "";
2447
- return /* @__PURE__ */ c("div", { className: C, children: /* @__PURE__ */ T(
2448
- Le,
2447
+ return /* @__PURE__ */ l("div", { className: R, children: /* @__PURE__ */ v(
2448
+ Ue,
2449
2449
  {
2450
- ref: L,
2451
- className: N,
2450
+ ref: P,
2451
+ className: L,
2452
2452
  disabled: t,
2453
2453
  type: s,
2454
2454
  "aria-label": h || p,
2455
- ...D,
2455
+ ...C,
2456
2456
  children: [
2457
- d && /* @__PURE__ */ c("span", { className: "pr-2", children: d }),
2458
- /* @__PURE__ */ c("div", { className: X, children: e }),
2459
- l && /* @__PURE__ */ c("span", { className: "pl-2", children: l })
2457
+ d && /* @__PURE__ */ l("span", { className: "pr-2", children: d }),
2458
+ /* @__PURE__ */ l("div", { className: Z, children: e }),
2459
+ c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
2460
2460
  ]
2461
2461
  }
2462
2462
  ) });
@@ -2464,21 +2464,21 @@ const tn = H.forwardRef(
2464
2464
  );
2465
2465
  tn.displayName = "ButtonSort";
2466
2466
  /*!
2467
- @versini/ui-card v1.0.4
2467
+ @versini/ui-card v1.0.8
2468
2468
  © 2024 gizmette.com
2469
2469
  */
2470
2470
  try {
2471
2471
  window.__VERSINI_UI_CARD__ || (window.__VERSINI_UI_CARD__ = {
2472
- version: "1.0.4",
2473
- buildTime: "09/24/2024 07:45 PM EDT",
2472
+ version: "1.0.8",
2473
+ buildTime: "09/27/2024 11:55 AM EDT",
2474
2474
  homepage: "https://github.com/aversini/ui-components",
2475
2475
  license: "MIT"
2476
2476
  });
2477
2477
  } catch {
2478
2478
  }
2479
- const Ae = "av-card";
2479
+ const Ne = "av-card";
2480
2480
  function rn(e) {
2481
- const t = St();
2481
+ const t = kt();
2482
2482
  return `${e}${t}`;
2483
2483
  }
2484
2484
  const an = (e) => {
@@ -2500,8 +2500,8 @@ const an = (e) => {
2500
2500
  compact: s,
2501
2501
  noBorder: i
2502
2502
  }) => {
2503
- const u = g(
2504
- Ae,
2503
+ const u = f(
2504
+ Ne,
2505
2505
  e,
2506
2506
  "rounded-md",
2507
2507
  an(n),
@@ -2516,7 +2516,7 @@ const an = (e) => {
2516
2516
  "border-border-dark bg-surface-lighter text-copy-dark dark:border-border-accent dark:bg-surface-dark dark:text-copy-light": o === "system",
2517
2517
  "border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": o === "alt-system"
2518
2518
  }
2519
- ), h = t || g(`${Ae}__header mt-0 border-b-2`, {
2519
+ ), h = t || f(`${Ne}__header mt-0 border-b-2`, {
2520
2520
  "text-copy-light border-border-accent": o === "darker",
2521
2521
  "border-border-accent": o === "dark",
2522
2522
  "border-border-medium": o === "light",
@@ -2524,7 +2524,7 @@ const an = (e) => {
2524
2524
  "border-border-accent dark:border-border-medium": o === "alt-system",
2525
2525
  "mb-4": !s,
2526
2526
  "mb-2": s
2527
- }), p = g(r), m = a || g(`${Ae}__footer pt-2`);
2527
+ }), p = f(r), m = a || f(`${Ne}__footer pt-2`);
2528
2528
  return {
2529
2529
  wrapper: u,
2530
2530
  header: h,
@@ -2538,7 +2538,7 @@ function on({
2538
2538
  userAriaLabelledby: r,
2539
2539
  className: a
2540
2540
  }) {
2541
- return typeof t == "string" ? /* @__PURE__ */ c("h2", { id: e, className: a, children: t }) : r ? /* @__PURE__ */ c("div", { className: a, children: t }) : t ? /* @__PURE__ */ c("div", { className: a, id: e, children: t }) : null;
2541
+ return typeof t == "string" ? /* @__PURE__ */ l("h2", { id: e, className: a, children: t }) : r ? /* @__PURE__ */ l("div", { className: a, children: t }) : t ? /* @__PURE__ */ l("div", { className: a, id: e, children: t }) : null;
2542
2542
  }
2543
2543
  const sn = ({
2544
2544
  header: e,
@@ -2553,10 +2553,10 @@ const sn = ({
2553
2553
  mode: h = "system",
2554
2554
  compact: p = !1,
2555
2555
  noBorder: m = !1,
2556
- ...l
2556
+ ...c
2557
2557
  }) => {
2558
- let d = null, f = null;
2559
- const b = typeof e == "string", v = rn(Ae), w = nn({
2558
+ let d = null, y = null;
2559
+ const b = typeof e == "string", I = rn(Ne), w = nn({
2560
2560
  className: o,
2561
2561
  headerClassName: t,
2562
2562
  bodyClassName: s,
@@ -2566,16 +2566,16 @@ const sn = ({
2566
2566
  compact: p,
2567
2567
  noBorder: m
2568
2568
  });
2569
- return b ? (d = v, f = d) : !b && e && i ? (d = null, f = i) : !b && e && !i ? (d = v, f = d) : (d = null, f = i || null), /* @__PURE__ */ c("div", { className: w.wrapper, children: /* @__PURE__ */ T(
2569
+ return b ? (d = I, y = d) : !b && e && i ? (d = null, y = i) : !b && e && !i ? (d = I, y = d) : (d = null, y = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ v(
2570
2570
  "section",
2571
2571
  {
2572
- ...f && {
2573
- "aria-labelledby": f
2572
+ ...y && {
2573
+ "aria-labelledby": y
2574
2574
  },
2575
2575
  className: w.body,
2576
- ...l,
2576
+ ...c,
2577
2577
  children: [
2578
- /* @__PURE__ */ c(
2578
+ /* @__PURE__ */ l(
2579
2579
  on,
2580
2580
  {
2581
2581
  ...d && { id: d },
@@ -2584,8 +2584,8 @@ const sn = ({
2584
2584
  userAriaLabelledby: i
2585
2585
  }
2586
2586
  ),
2587
- /* @__PURE__ */ c("div", { children: n }),
2588
- r ? /* @__PURE__ */ c("div", { className: w.footer, children: r }) : null
2587
+ /* @__PURE__ */ l("div", { children: n }),
2588
+ r ? /* @__PURE__ */ l("div", { className: w.footer, children: r }) : null
2589
2589
  ]
2590
2590
  }
2591
2591
  ) });
@@ -2598,7 +2598,7 @@ const sn = ({
2598
2598
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
2599
2599
  }
2600
2600
  return t;
2601
- }, Me = ({
2601
+ }, Ke = ({
2602
2602
  children: e,
2603
2603
  fill: t,
2604
2604
  viewBox: r,
@@ -2610,12 +2610,12 @@ const sn = ({
2610
2610
  semantic: u = !1,
2611
2611
  ...h
2612
2612
  }) => {
2613
- const p = cn(s), m = g(
2613
+ const p = cn(s), m = f(
2614
2614
  p,
2615
2615
  a || o
2616
2616
  );
2617
- return /* @__PURE__ */ T(pe, { children: [
2618
- /* @__PURE__ */ c(
2617
+ return /* @__PURE__ */ v(ye, { children: [
2618
+ /* @__PURE__ */ l(
2619
2619
  "svg",
2620
2620
  {
2621
2621
  xmlns: "http://www.w3.org/2000/svg",
@@ -2629,17 +2629,17 @@ const sn = ({
2629
2629
  children: e
2630
2630
  }
2631
2631
  ),
2632
- i && u && /* @__PURE__ */ c("span", { className: "sr-only", children: i })
2632
+ i && u && /* @__PURE__ */ l("span", { className: "sr-only", children: i })
2633
2633
  ] });
2634
2634
  };
2635
2635
  /*!
2636
- @versini/ui-private v1.4.13
2636
+ @versini/ui-private v1.4.17
2637
2637
  © 2024 gizmette.com
2638
2638
  */
2639
2639
  try {
2640
2640
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
2641
- version: "1.4.13",
2642
- buildTime: "09/24/2024 07:45 PM EDT",
2641
+ version: "1.4.17",
2642
+ buildTime: "09/27/2024 11:55 AM EDT",
2643
2643
  homepage: "https://github.com/aversini/ui-components",
2644
2644
  license: "MIT"
2645
2645
  });
@@ -2650,8 +2650,8 @@ const ln = ({
2650
2650
  viewBox: t,
2651
2651
  spacing: r,
2652
2652
  ...a
2653
- }) => /* @__PURE__ */ c(
2654
- Me,
2653
+ }) => /* @__PURE__ */ l(
2654
+ Ke,
2655
2655
  {
2656
2656
  defaultViewBox: "0 0 1200 500",
2657
2657
  defaultClassName: "w-full",
@@ -2660,7 +2660,7 @@ const ln = ({
2660
2660
  spacing: r,
2661
2661
  title: "Sassy Dog",
2662
2662
  ...a,
2663
- children: /* @__PURE__ */ c("g", { transform: "matrix(11.9092 0 0 11.9092 470.0017 250.0009)", id: "879221", children: /* @__PURE__ */ c(
2663
+ children: /* @__PURE__ */ l("g", { transform: "matrix(11.9092 0 0 11.9092 470.0017 250.0009)", id: "879221", children: /* @__PURE__ */ l(
2664
2664
  "path",
2665
2665
  {
2666
2666
  vectorEffect: "non-scaling-stroke",
@@ -2677,8 +2677,8 @@ const ln = ({
2677
2677
  title: a,
2678
2678
  monotone: n,
2679
2679
  ...o
2680
- }) => /* @__PURE__ */ T(
2681
- Me,
2680
+ }) => /* @__PURE__ */ v(
2681
+ Ke,
2682
2682
  {
2683
2683
  defaultViewBox: "0 0 640 512",
2684
2684
  defaultClassName: "size-5",
@@ -2688,14 +2688,14 @@ const ln = ({
2688
2688
  title: a || "Hide",
2689
2689
  ...o,
2690
2690
  children: [
2691
- /* @__PURE__ */ c(
2691
+ /* @__PURE__ */ l(
2692
2692
  "path",
2693
2693
  {
2694
2694
  opacity: n ? "1" : "0.4",
2695
2695
  d: "M360.8 380.3C339.4 392.8 314.6 400 288 400c-79.5 0-144-64.5-144-144c0-14.5 2.1-28.5 6.1-41.7L63.5 146c-29.4 34.7-49.9 70.8-61.1 97.6c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480c56.1 0 104.4-17.8 144.5-43.2l-71.7-56.5zM198.5 252.4c-3.7 .8-6.7 3.7-6.5 7.7c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9c1.9-.5 3.9-1.1 5.7-1.7l-120-94.6zm89-52.4l94.8 74.3c2.7-13.9 2.4-28.6-1.5-43.2c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 2.7-.2 5.4-.5 8zM432 256c0 17.7-3.2 34.6-9 50.2l84.1 65.9c32.3-36.6 54.6-75.4 66.4-103.9c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32c-60 0-111.1 20.3-152.8 48.7L207 136.9c23.1-15.7 51-24.9 81-24.9c79.5 0 144 64.5 144 144z"
2696
2696
  }
2697
2697
  ),
2698
- /* @__PURE__ */ c("path", { d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1L9.2 42.9C-1.2 34.7-3.1 19.6 5.1 9.2z" })
2698
+ /* @__PURE__ */ l("path", { d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1L9.2 42.9C-1.2 34.7-3.1 19.6 5.1 9.2z" })
2699
2699
  ]
2700
2700
  }
2701
2701
  ), un = ({
@@ -2707,10 +2707,10 @@ const ln = ({
2707
2707
  ...o
2708
2708
  }) => {
2709
2709
  const s = n ? "1" : "0.4";
2710
- return /* @__PURE__ */ T(
2711
- Me,
2710
+ return /* @__PURE__ */ v(
2711
+ Ke,
2712
2712
  {
2713
- defaultViewBox: "0 0 216 216",
2713
+ defaultViewBox: "0 0 190 190",
2714
2714
  defaultClassName: "size-5",
2715
2715
  viewBox: t,
2716
2716
  className: e,
@@ -2718,22 +2718,22 @@ const ln = ({
2718
2718
  title: a || "Passkey",
2719
2719
  ...o,
2720
2720
  children: [
2721
- /* @__PURE__ */ c(
2721
+ /* @__PURE__ */ l(
2722
2722
  "path",
2723
2723
  {
2724
2724
  opacity: s,
2725
2725
  d: "M172.32,96.79c0,13.78-8.48,25.5-20.29,29.78l7.14,11.83l-10.57,13l10.57,12.71l-17.04,22.87l-12.01-12.82 v-25.9v-22.56c-10.68-4.85-18.15-15.97-18.15-28.91c0-17.4,13.51-31.51,30.18-31.51C158.81,65.28,172.32,79.39,172.32,96.79z M142.14,101.61c4.02,0,7.28-3.4,7.28-7.6c0-4.2-3.26-7.61-7.28-7.61s-7.28,3.4-7.28,7.61 C134.85,98.21,138.12,101.61,142.14,101.61z"
2726
2726
  }
2727
2727
  ),
2728
- /* @__PURE__ */ c(
2728
+ /* @__PURE__ */ l(
2729
2729
  "path",
2730
2730
  {
2731
2731
  opacity: s,
2732
2732
  d: "M172.41,96.88c0,13.62-8.25,25.23-19.83,29.67l6.58,11.84l-9.73,13l9.73,12.71l-17.03,23.05v-25.9v-32.77 v-26.87c4.02,0,7.28-3.41,7.28-7.6c0-4.2-3.26-7.61-7.28-7.61V65.28C158.86,65.28,172.41,79.43,172.41,96.88z"
2733
2733
  }
2734
2734
  ),
2735
- /* @__PURE__ */ c("path", { d: "M120.24,131.43c-9.75-8-16.3-20.3-17.2-34.27H50.8c-10.96,0-19.84,9.01-19.84,20.13v25.17 c0,5.56,4.44,10.07,9.92,10.07h69.44c5.48,0,9.92-4.51,9.92-10.07V131.43z" }),
2736
- /* @__PURE__ */ c("path", { d: "M73.16,91.13c-2.42-0.46-4.82-0.89-7.11-1.86C57.4,85.64,52.36,78.95,50.73,69.5 c-1.12-6.47-0.59-12.87,2.03-18.92c3.72-8.6,10.39-13.26,19.15-14.84c5.24-0.94,10.46-0.73,15.5,1.15 c7.59,2.82,12.68,8.26,15.03,16.24c2.38,8.05,2.03,16.1-1.56,23.72c-3.72,7.96-10.21,12.23-18.42,13.9 c-0.68,0.14-1.37,0.27-2.05,0.41C78,91.13,75.58,91.13,73.16,91.13z" })
2735
+ /* @__PURE__ */ l("path", { d: "M120.24,131.43c-9.75-8-16.3-20.3-17.2-34.27H50.8c-10.96,0-19.84,9.01-19.84,20.13v25.17 c0,5.56,4.44,10.07,9.92,10.07h69.44c5.48,0,9.92-4.51,9.92-10.07V131.43z" }),
2736
+ /* @__PURE__ */ l("path", { d: "M73.16,91.13c-2.42-0.46-4.82-0.89-7.11-1.86C57.4,85.64,52.36,78.95,50.73,69.5 c-1.12-6.47-0.59-12.87,2.03-18.92c3.72-8.6,10.39-13.26,19.15-14.84c5.24-0.94,10.46-0.73,15.5,1.15 c7.59,2.82,12.68,8.26,15.03,16.24c2.38,8.05,2.03,16.1-1.56,23.72c-3.72,7.96-10.21,12.23-18.42,13.9 c-0.68,0.14-1.37,0.27-2.05,0.41C78,91.13,75.58,91.13,73.16,91.13z" })
2737
2737
  ]
2738
2738
  }
2739
2739
  );
@@ -2744,8 +2744,8 @@ const ln = ({
2744
2744
  title: a,
2745
2745
  monotone: n,
2746
2746
  ...o
2747
- }) => /* @__PURE__ */ T(
2748
- Me,
2747
+ }) => /* @__PURE__ */ v(
2748
+ Ke,
2749
2749
  {
2750
2750
  defaultViewBox: "0 0 576 512",
2751
2751
  defaultClassName: "size-5",
@@ -2755,38 +2755,38 @@ const ln = ({
2755
2755
  title: a || "Show",
2756
2756
  ...o,
2757
2757
  children: [
2758
- /* @__PURE__ */ c(
2758
+ /* @__PURE__ */ l(
2759
2759
  "path",
2760
2760
  {
2761
2761
  opacity: n ? "1" : "0.4",
2762
2762
  d: "M95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 400a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"
2763
2763
  }
2764
2764
  ),
2765
- /* @__PURE__ */ c("path", { d: "M224 256c35.3 0 64-28.7 64-64c0-7.1-1.2-13.9-3.3-20.3c-1.8-5.5 1.6-11.9 7.4-11.7c40.8 1.7 77.5 29.6 88.6 71.1c13.7 51.2-16.7 103.9-67.9 117.6s-103.9-16.7-117.6-67.9c-1.9-6.9-2.9-13.9-3.2-20.7c-.3-5.8 6.1-9.2 11.7-7.4c6.4 2.1 13.2 3.3 20.3 3.3z" })
2765
+ /* @__PURE__ */ l("path", { d: "M224 256c35.3 0 64-28.7 64-64c0-7.1-1.2-13.9-3.3-20.3c-1.8-5.5 1.6-11.9 7.4-11.7c40.8 1.7 77.5 29.6 88.6 71.1c13.7 51.2-16.7 103.9-67.9 117.6s-103.9-16.7-117.6-67.9c-1.9-6.9-2.9-13.9-3.2-20.7c-.3-5.8 6.1-9.2 11.7-7.4c6.4 2.1 13.2 3.3 20.3 3.3z" })
2766
2766
  ]
2767
2767
  }
2768
2768
  );
2769
2769
  /*!
2770
- @versini/ui-icons v1.12.5
2770
+ @versini/ui-icons v1.13.1
2771
2771
  © 2024 gizmette.com
2772
2772
  */
2773
2773
  try {
2774
2774
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
2775
- version: "1.12.5",
2776
- buildTime: "09/24/2024 07:45 PM EDT",
2775
+ version: "1.13.1",
2776
+ buildTime: "09/27/2024 11:55 AM EDT",
2777
2777
  homepage: "https://github.com/aversini/ui-components",
2778
2778
  license: "MIT"
2779
2779
  });
2780
2780
  } catch {
2781
2781
  }
2782
2782
  /*!
2783
- @versini/ui-main v1.0.4
2783
+ @versini/ui-main v1.0.8
2784
2784
  © 2024 gizmette.com
2785
2785
  */
2786
2786
  try {
2787
2787
  window.__VERSINI_UI_MAIN__ || (window.__VERSINI_UI_MAIN__ = {
2788
- version: "1.0.4",
2789
- buildTime: "09/24/2024 07:45 PM EDT",
2788
+ version: "1.0.8",
2789
+ buildTime: "09/27/2024 11:55 AM EDT",
2790
2790
  homepage: "https://github.com/aversini/ui-components",
2791
2791
  license: "MIT"
2792
2792
  });
@@ -2807,10 +2807,10 @@ const hn = "av-main", pn = (e) => {
2807
2807
  raw: r = !1,
2808
2808
  spacing: a
2809
2809
  }) => {
2810
- const n = g(t, hn, pn(a), {
2810
+ const n = f(t, hn, pn(a), {
2811
2811
  "mt-2 flex w-full flex-col p-2 sm:mt-3 md:mx-auto md:max-w-4xl": !r
2812
2812
  });
2813
- return /* @__PURE__ */ c("main", { className: n, children: e });
2813
+ return /* @__PURE__ */ l("main", { className: n, children: e });
2814
2814
  }, fn = (e) => {
2815
2815
  let t = "";
2816
2816
  if (typeof e == "number" || typeof e == "string")
@@ -2820,10 +2820,10 @@ const hn = "av-main", pn = (e) => {
2820
2820
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
2821
2821
  }
2822
2822
  return t;
2823
- }, yn = "av-flexgrid", Se = "av-flexgrid-item", xe = 0.25, Zt = H.createContext({
2823
+ }, yn = "av-flexgrid", _e = "av-flexgrid-item", De = 0.25, er = W.createContext({
2824
2824
  columnGap: 0,
2825
2825
  rowGap: 0
2826
- }), wt = ({
2826
+ }), Tt = ({
2827
2827
  children: e,
2828
2828
  className: t,
2829
2829
  columnGap: r = 1,
@@ -2847,15 +2847,15 @@ const hn = "av-main", pn = (e) => {
2847
2847
  * by the columnGap and rowGap that will be applied
2848
2848
  * to all FlexgridItems (see context and paddings).
2849
2849
  */
2850
- marginLeft: r * -1 * xe + "rem",
2851
- marginTop: a * -1 * xe + "rem"
2852
- }, l = g(
2850
+ marginLeft: r * -1 * De + "rem",
2851
+ marginTop: a * -1 * De + "rem"
2852
+ }, c = f(
2853
2853
  yn,
2854
2854
  t,
2855
2855
  "box-border flex flex-wrap"
2856
- ), d = { columnGap: r, rowGap: a }, f = h ? "div" : H.Fragment;
2857
- return /* @__PURE__ */ c(f, { ...h ? { className: fn(h) } : {}, children: /* @__PURE__ */ c("div", { className: l, style: m, ...p, children: /* @__PURE__ */ c(Zt.Provider, { value: d, children: e }) }) });
2858
- }, ze = (e, t) => g({
2856
+ ), d = { columnGap: r, rowGap: a }, y = h ? "div" : W.Fragment;
2857
+ return /* @__PURE__ */ l(y, { ...h ? { className: fn(h) } : {}, children: /* @__PURE__ */ l("div", { className: c, style: m, ...p, children: /* @__PURE__ */ l(er.Provider, { value: d, children: e }) }) });
2858
+ }, ze = (e, t) => f({
2859
2859
  "basis-1/12": e === 1 && !t,
2860
2860
  "sm:basis-1/12": e === 1 && t === "sm",
2861
2861
  "md:basis-1/12": e === 1 && t === "md",
@@ -2933,58 +2933,58 @@ const hn = "av-main", pn = (e) => {
2933
2933
  span: t
2934
2934
  }) => {
2935
2935
  if (!t)
2936
- return g(e, Se, "box-border basis-auto");
2936
+ return f(e, _e, "box-border basis-auto");
2937
2937
  if (typeof t == "number")
2938
- return g(e, Se, "box-border max-w-full", {
2938
+ return f(e, _e, "box-border max-w-full", {
2939
2939
  [`${ze(t)}`]: !0
2940
2940
  });
2941
2941
  if (typeof t == "string")
2942
- return g(e, Se, "box-border basis-auto", {
2942
+ return f(e, _e, "box-border basis-auto", {
2943
2943
  "max-w-full grow": t === "auto"
2944
2944
  });
2945
2945
  if (typeof t == "object") {
2946
2946
  const r = Object.entries(t).map(([a, n]) => a === "fallback" ? ze(n) : ze(n, a));
2947
- return g(
2947
+ return f(
2948
2948
  e,
2949
- Se,
2949
+ _e,
2950
2950
  "box-border",
2951
2951
  r
2952
2952
  );
2953
2953
  }
2954
- }, ie = ({
2954
+ }, le = ({
2955
2955
  children: e,
2956
2956
  className: t,
2957
2957
  span: r,
2958
2958
  ...a
2959
2959
  }) => {
2960
- const { columnGap: n, rowGap: o } = vt(Zt), s = {
2961
- paddingLeft: n * xe + "rem",
2962
- paddingTop: o * xe + "rem"
2960
+ const { columnGap: n, rowGap: o } = At(er), s = {
2961
+ paddingLeft: n * De + "rem",
2962
+ paddingTop: o * De + "rem"
2963
2963
  }, i = bn({
2964
2964
  className: t,
2965
2965
  span: r
2966
2966
  });
2967
- return /* @__PURE__ */ c("div", { className: i, style: s, ...a, children: e });
2967
+ return /* @__PURE__ */ l("div", { className: i, style: s, ...a, children: e });
2968
2968
  };
2969
2969
  /*!
2970
- @versini/ui-system v1.4.14
2970
+ @versini/ui-system v1.4.19
2971
2971
  © 2024 gizmette.com
2972
2972
  */
2973
2973
  try {
2974
2974
  window.__VERSINI_UI_SYSTEM__ || (window.__VERSINI_UI_SYSTEM__ = {
2975
- version: "1.4.14",
2976
- buildTime: "09/24/2024 07:45 PM EDT",
2975
+ version: "1.4.19",
2976
+ buildTime: "09/27/2024 11:56 AM EDT",
2977
2977
  homepage: "https://github.com/aversini/ui-components",
2978
2978
  license: "MIT"
2979
2979
  });
2980
2980
  } catch {
2981
2981
  }
2982
- const er = "av-text-input", En = "av-text-input-wrapper", je = "av-text-input-helper-text";
2982
+ const tr = "av-text-input", En = "av-text-input-wrapper", je = "av-text-input-helper-text";
2983
2983
  function wn() {
2984
- const e = J(!1);
2985
- return q(() => (e.current = !0, () => {
2984
+ const e = $(!1);
2985
+ return Q(() => (e.current = !0, () => {
2986
2986
  e.current = !1;
2987
- }), []), z(() => e.current, []);
2987
+ }), []), q(() => e.current, []);
2988
2988
  }
2989
2989
  const Tn = {
2990
2990
  x: 0,
@@ -2996,19 +2996,19 @@ const Tn = {
2996
2996
  bottom: 0,
2997
2997
  right: 0
2998
2998
  };
2999
- function In(e) {
3000
- const t = wn(), r = J(0), a = J(null), [n, o] = F(Tn), s = kt(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
2999
+ function vn(e) {
3000
+ const t = wn(), r = $(0), a = $(null), [n, o] = j(Tn), s = St(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3001
3001
  const u = i[0];
3002
3002
  u && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
3003
3003
  a.current && t() && o(u.contentRect);
3004
3004
  }));
3005
3005
  }), [t]);
3006
- return q(() => (a.current && (s == null || s.observe(a.current, e)), () => {
3006
+ return Q(() => (a.current && (s == null || s.observe(a.current, e)), () => {
3007
3007
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
3008
3008
  }), [s, e]), [a, n];
3009
3009
  }
3010
- function vn(e) {
3011
- const t = St();
3010
+ function In(e) {
3011
+ const t = kt();
3012
3012
  if (!e)
3013
3013
  return t;
3014
3014
  if (typeof e == "number" || typeof e == "string")
@@ -3018,7 +3018,7 @@ function vn(e) {
3018
3018
  return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
3019
3019
  }
3020
3020
  }
3021
- const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Sn = {
3021
+ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", An = {
3022
3022
  alert: null,
3023
3023
  alertdialog: null,
3024
3024
  log: "polite",
@@ -3028,12 +3028,12 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Sn = {
3028
3028
  timer: "assertive"
3029
3029
  }, kn = (e, t) => {
3030
3030
  switch (t == null ? void 0 : t.type) {
3031
- case tr:
3031
+ case rr:
3032
3032
  return {
3033
3033
  ...e,
3034
3034
  announcement: t.payload
3035
3035
  };
3036
- case rr:
3036
+ case ar:
3037
3037
  return {
3038
3038
  ...e,
3039
3039
  announcement: null
@@ -3041,14 +3041,14 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Sn = {
3041
3041
  default:
3042
3042
  return e;
3043
3043
  }
3044
- }, An = ({
3044
+ }, Sn = ({
3045
3045
  onAnnouncementClear: e,
3046
3046
  dispatch: t
3047
3047
  }) => {
3048
3048
  t({
3049
- type: rr
3049
+ type: ar
3050
3050
  }), typeof e == "function" && e();
3051
- }, Tt = ({
3051
+ }, vt = ({
3052
3052
  children: e,
3053
3053
  clearAnnouncementDelay: t,
3054
3054
  clearAnnouncementTimeoutRef: r,
@@ -3056,10 +3056,10 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Sn = {
3056
3056
  dispatch: n
3057
3057
  }) => {
3058
3058
  (r == null ? void 0 : r.current) !== null && clearTimeout(r.current), e !== null && n({
3059
- type: tr,
3059
+ type: rr,
3060
3060
  payload: e
3061
3061
  }), t && (r.current = setTimeout(
3062
- () => An({
3062
+ () => Sn({
3063
3063
  onAnnouncementClear: a,
3064
3064
  dispatch: n
3065
3065
  }),
@@ -3074,13 +3074,13 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Sn = {
3074
3074
  onAnnouncementClear: o,
3075
3075
  dispatch: s
3076
3076
  }) => {
3077
- clearTimeout(t.current), r ? t.current = setTimeout(Tt, r, {
3077
+ clearTimeout(t.current), r ? t.current = setTimeout(vt, r, {
3078
3078
  children: e,
3079
3079
  clearAnnouncementDelay: a,
3080
3080
  clearAnnouncementTimeoutRef: n,
3081
3081
  onAnnouncementClear: o,
3082
3082
  dispatch: s
3083
- }) : Tt({
3083
+ }) : vt({
3084
3084
  children: e,
3085
3085
  clearAnnouncementDelay: a,
3086
3086
  clearAnnouncementTimeoutRef: n,
@@ -3088,7 +3088,7 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Sn = {
3088
3088
  dispatch: s
3089
3089
  });
3090
3090
  };
3091
- function ar({
3091
+ function nr({
3092
3092
  children: e,
3093
3093
  className: t,
3094
3094
  politeness: r,
@@ -3099,11 +3099,11 @@ function ar({
3099
3099
  visible: i,
3100
3100
  ...u
3101
3101
  }) {
3102
- const h = J(), p = J(), [m, l] = It(kn, {
3102
+ const h = $(), p = $(), [m, c] = It(kn, {
3103
3103
  announcement: null
3104
3104
  });
3105
3105
  let d = r;
3106
- typeof d > "u" && (d = a ? Sn[a] : "assertive"), q(() => {
3106
+ typeof d > "u" && (d = a ? An[a] : "assertive"), Q(() => {
3107
3107
  _n({
3108
3108
  announcementTimeoutRef: h,
3109
3109
  announcementDelay: n,
@@ -3111,7 +3111,7 @@ function ar({
3111
3111
  clearAnnouncementDelay: o,
3112
3112
  clearAnnouncementTimeoutRef: p,
3113
3113
  onAnnouncementClear: s,
3114
- dispatch: l
3114
+ dispatch: c
3115
3115
  });
3116
3116
  }, [
3117
3117
  e,
@@ -3119,15 +3119,15 @@ function ar({
3119
3119
  o,
3120
3120
  s
3121
3121
  ]);
3122
- const f = g(t, {
3122
+ const y = f(t, {
3123
3123
  "sr-only": !i
3124
3124
  });
3125
- return /* @__PURE__ */ c(
3125
+ return /* @__PURE__ */ l(
3126
3126
  "div",
3127
3127
  {
3128
3128
  "aria-live": d,
3129
3129
  ...a && { role: a },
3130
- className: f,
3130
+ className: y,
3131
3131
  ...u,
3132
3132
  children: m.announcement
3133
3133
  }
@@ -3144,13 +3144,13 @@ const Rn = (e) => {
3144
3144
  return t;
3145
3145
  };
3146
3146
  /*!
3147
- @versini/ui-private v1.4.13
3147
+ @versini/ui-private v1.4.17
3148
3148
  © 2024 gizmette.com
3149
3149
  */
3150
3150
  try {
3151
3151
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
3152
- version: "1.4.13",
3153
- buildTime: "09/24/2024 07:45 PM EDT",
3152
+ version: "1.4.17",
3153
+ buildTime: "09/30/2024 09:27 AM EDT",
3154
3154
  homepage: "https://github.com/aversini/ui-components",
3155
3155
  license: "MIT"
3156
3156
  });
@@ -3158,22 +3158,22 @@ try {
3158
3158
  }
3159
3159
  const Nn = ({
3160
3160
  mode: e
3161
- }) => g({
3161
+ }) => f({
3162
3162
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
3163
3163
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
3164
3164
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
3165
3165
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
3166
- }), Cn = ({
3166
+ }), xn = ({
3167
3167
  focusMode: e
3168
- }) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
3168
+ }) => f("focus:outline focus:outline-2 focus:outline-offset-2", {
3169
3169
  "focus:outline-focus-dark": e === "dark",
3170
3170
  "focus:outline-focus-light": e === "light",
3171
3171
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
3172
3172
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
3173
- }), xn = ({
3173
+ }), Cn = ({
3174
3174
  noBorder: e,
3175
3175
  error: t
3176
- }) => g("border-2", {
3176
+ }) => f("border-2", {
3177
3177
  "border-border-dark": !e && !t,
3178
3178
  "focus:border-border-dark": !e && t,
3179
3179
  "border-border-error-dark": !e && t,
@@ -3187,16 +3187,16 @@ const Nn = ({
3187
3187
  if (t)
3188
3188
  return "";
3189
3189
  if (e)
3190
- return g("absolute px-2 cursor-not-allowed opacity-50 font-medium");
3190
+ return f("absolute px-2 cursor-not-allowed opacity-50 font-medium");
3191
3191
  if (!r)
3192
- return g("absolute px-2 cursor-text font-medium", {
3192
+ return f("absolute px-2 cursor-text font-medium", {
3193
3193
  "text-copy-lighter": a === "dark",
3194
3194
  "text-copy-dark": a === "light",
3195
3195
  "text-copy-dark dark:text-copy-lighter": a === "system",
3196
3196
  "text-copy-lighter dark:text-copy-dark": a === "alt-system"
3197
3197
  });
3198
3198
  if (r)
3199
- return g("absolute px-2 cursor-text font-medium", {
3199
+ return f("absolute px-2 cursor-text font-medium", {
3200
3200
  "text-copy-lighter": a === "dark",
3201
3201
  "text-copy-error-dark": a === "light",
3202
3202
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
@@ -3211,19 +3211,19 @@ const Nn = ({
3211
3211
  if (t)
3212
3212
  return "";
3213
3213
  if (a)
3214
- return g(
3214
+ return f(
3215
3215
  je,
3216
3216
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
3217
3217
  );
3218
3218
  if (!e)
3219
- return g(je, "absolute px-2 font-medium", {
3219
+ return f(je, "absolute px-2 font-medium", {
3220
3220
  "text-copy-lighter": r === "dark",
3221
3221
  "text-copy-dark": r === "light",
3222
3222
  "text-copy-dark dark:text-copy-lighter": r === "system",
3223
3223
  "text-copy-lighter dark:text-copy-dark": r === "alt-system"
3224
3224
  });
3225
3225
  if (e)
3226
- return g(je, "absolute px-2 font-medium", {
3226
+ return f(je, "absolute px-2 font-medium", {
3227
3227
  "text-copy-error-light bg-surface-darker": r === "dark",
3228
3228
  "text-copy-error-dark": r === "light",
3229
3229
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
@@ -3238,43 +3238,65 @@ const Nn = ({
3238
3238
  error: o,
3239
3239
  spacing: s,
3240
3240
  mode: i,
3241
- focusMode: u
3241
+ focusMode: u,
3242
+ size: h,
3243
+ rightElementClassName: p
3242
3244
  }) => {
3243
- const h = r ? e : g(
3245
+ const m = r ? e : f(
3244
3246
  "relative flex w-full flex-col justify-center",
3245
3247
  En,
3246
3248
  e,
3247
3249
  Rn(s)
3248
- ), p = r ? g(t) : g(
3249
- er,
3250
+ );
3251
+ let c = "";
3252
+ switch (h) {
3253
+ case "xs":
3254
+ c = "h-8";
3255
+ break;
3256
+ case "sm":
3257
+ c = "h-10";
3258
+ break;
3259
+ case "lg":
3260
+ c = "h-14";
3261
+ break;
3262
+ case "xl":
3263
+ c = "h-16";
3264
+ break;
3265
+ default:
3266
+ c = "h-12";
3267
+ break;
3268
+ }
3269
+ const d = r ? f(t) : f(
3270
+ tr,
3250
3271
  t,
3251
- "h-12 rounded-md px-4 text-base",
3272
+ c,
3273
+ "rounded-md text-base px-4",
3252
3274
  Nn({ mode: i }),
3253
- Cn({ focusMode: u }),
3254
- xn({ noBorder: n, error: o }),
3275
+ xn({ focusMode: u }),
3276
+ Cn({ noBorder: n, error: o }),
3255
3277
  {
3256
3278
  "disabled:cursor-not-allowed disabled:opacity-50": a
3257
3279
  }
3258
- ), m = r ? void 0 : "sr-only", l = On({
3280
+ ), y = r ? void 0 : "sr-only", b = On({
3259
3281
  disabled: a,
3260
3282
  raw: r,
3261
3283
  error: o,
3262
3284
  mode: i
3263
- }), d = Pn({
3285
+ }), I = Pn({
3264
3286
  error: o,
3265
3287
  raw: r,
3266
3288
  mode: i,
3267
3289
  disabled: a
3268
- });
3290
+ }), w = r ? void 0 : f("absolute right-3", p);
3269
3291
  return {
3270
- wrapper: h,
3271
- input: p,
3272
- accessibleLabel: m,
3273
- visibleLabel: l,
3274
- helperText: d,
3275
- rightElement: r ? void 0 : "absolute right-3"
3292
+ wrapper: m,
3293
+ input: d,
3294
+ accessibleLabel: y,
3295
+ visibleLabel: b,
3296
+ helperText: I,
3297
+ rightElement: w
3276
3298
  };
3277
- }, nt = H.forwardRef(
3299
+ }, nt = W.forwardRef(
3278
3300
  ({
3279
3301
  id: e,
3280
3302
  name: t,
@@ -3288,14 +3310,22 @@ const Nn = ({
3288
3310
  disabled: h = !1,
3289
3311
  noBorder: p = !1,
3290
3312
  labelId: m,
3291
- labelHidden: l = !1,
3313
+ labelHidden: c = !1,
3292
3314
  type: d = "text",
3293
- helperText: f = "",
3315
+ helperText: y = "",
3294
3316
  rightElement: b,
3295
- spacing: v,
3296
- ...w
3297
- }, D) => {
3298
- const [L, N] = In(), [X, C] = F(0), x = vn({ id: e, prefix: `${er}-` }), O = `${t} error, ${f}`, M = Dn({
3317
+ rightElementClassName: I,
3318
+ spacing: w,
3319
+ size: C = "md",
3320
+ ...P
3321
+ }, L) => {
3322
+ const [Z, R] = vn(), [G, O] = j(0), V = In({ id: e, prefix: `${tr}-` }), pe = `${t} error, ${y}`, ee = $(null), N = $(null), D = {
3323
+ xs: { label: "-25px", helperText: "30px" },
3324
+ sm: { label: "-29px", helperText: "34px" },
3325
+ md: { label: "-33px", helperText: "38px" },
3326
+ lg: { label: "-15px", helperText: "22px" },
3327
+ xl: { label: "-19px", helperText: "25px" }
3328
+ }, M = Dn({
3299
3329
  className: o,
3300
3330
  inputClassName: s,
3301
3331
  error: a,
@@ -3303,76 +3333,87 @@ const Nn = ({
3303
3333
  focusMode: u,
3304
3334
  disabled: h,
3305
3335
  noBorder: p,
3306
- spacing: v,
3307
- mode: i
3336
+ spacing: w,
3337
+ mode: i,
3338
+ size: C,
3339
+ rightElementClassName: I
3308
3340
  });
3309
- return lr(() => {
3310
- N && N.width && C(N.width + 18 + 10);
3311
- }, [N]), /* @__PURE__ */ T("div", { className: M.wrapper, children: [
3312
- /* @__PURE__ */ c(
3341
+ return st(() => {
3342
+ R && R.width && O(R.width + 18 + 10);
3343
+ }, [R]), st(() => {
3344
+ var g, T;
3345
+ const { label: E, helperText: F } = D[C];
3346
+ (g = ee == null ? void 0 : ee.current) == null || g.style.setProperty("--av-text-input-label", E), (T = N == null ? void 0 : N.current) == null || T.style.setProperty(
3347
+ "--av-text-input-helper-text",
3348
+ F
3349
+ );
3350
+ }, [C]), /* @__PURE__ */ v("div", { className: M.wrapper, children: [
3351
+ /* @__PURE__ */ l(
3313
3352
  "label",
3314
3353
  {
3315
- htmlFor: x,
3354
+ htmlFor: V,
3316
3355
  id: m,
3317
3356
  className: M.accessibleLabel,
3318
3357
  children: r
3319
3358
  }
3320
3359
  ),
3321
- /* @__PURE__ */ c(
3360
+ /* @__PURE__ */ l(
3322
3361
  "input",
3323
3362
  {
3324
- ref: D,
3325
- id: x,
3363
+ ref: L,
3364
+ id: V,
3326
3365
  name: t,
3327
3366
  type: d,
3328
3367
  disabled: h,
3329
3368
  placeholder: n ? void 0 : " ",
3330
3369
  className: M.input,
3331
- ...f && { "aria-describedby": `${x}-helper` },
3370
+ ...y && { "aria-describedby": `${V}-helper` },
3332
3371
  ...a && { "aria-invalid": "true" },
3333
- ...b && !n && { style: { paddingRight: X } },
3334
- ...w
3372
+ ...b && !n && { style: { paddingRight: G } },
3373
+ ...P
3335
3374
  }
3336
3375
  ),
3337
- !n && !l && /* @__PURE__ */ c(
3376
+ !n && !c && /* @__PURE__ */ l(
3338
3377
  "label",
3339
3378
  {
3379
+ ref: ee,
3340
3380
  "aria-hidden": !0,
3341
- htmlFor: x,
3381
+ htmlFor: V,
3342
3382
  className: M.visibleLabel,
3343
3383
  children: r
3344
3384
  }
3345
3385
  ),
3346
- f && /* @__PURE__ */ c(
3386
+ y && /* @__PURE__ */ l(
3347
3387
  "div",
3348
3388
  {
3349
- id: `${x}-helper`,
3389
+ ref: N,
3390
+ id: `${V}-helper`,
3350
3391
  className: M.helperText,
3351
- children: f
3392
+ children: y
3352
3393
  }
3353
3394
  ),
3354
- b && /* @__PURE__ */ c(
3395
+ b && /* @__PURE__ */ l(
3355
3396
  "div",
3356
3397
  {
3357
- ref: L,
3398
+ ref: Z,
3358
3399
  className: M.rightElement,
3359
3400
  children: b
3360
3401
  }
3361
3402
  ),
3362
- a && f && /* @__PURE__ */ c(ar, { politeness: "polite", clearAnnouncementDelay: 500, children: O })
3403
+ a && y && /* @__PURE__ */ l(nr, { politeness: "polite", clearAnnouncementDelay: 500, children: pe })
3363
3404
  ] });
3364
3405
  }
3365
3406
  );
3366
3407
  nt.displayName = "TextInput";
3367
- function Ln(e) {
3368
- return kt(() => e.every((t) => t == null) ? () => {
3408
+ function $n(e) {
3409
+ return St(() => e.every((t) => t == null) ? () => {
3369
3410
  } : (t) => {
3370
3411
  e.forEach((r) => {
3371
3412
  typeof r == "function" ? r(t) : r != null && (r.current = t);
3372
3413
  });
3373
3414
  }, e);
3374
3415
  }
3375
- const Mn = 500, Un = 5e3, Kn = 2e4, nr = H.forwardRef(
3416
+ const Ln = 500, Mn = 5e3, Un = 2e4, or = W.forwardRef(
3376
3417
  ({
3377
3418
  name: e,
3378
3419
  disabled: t,
@@ -3386,65 +3427,65 @@ const Mn = 500, Un = 5e3, Kn = 2e4, nr = H.forwardRef(
3386
3427
  rightElement: h,
3387
3428
  spacing: p,
3388
3429
  ...m
3389
- }, l) => {
3390
- const [d, f] = F(!0), [b, v] = F({
3430
+ }, c) => {
3431
+ const [d, y] = j(!0), [b, I] = j({
3391
3432
  message: null,
3392
3433
  politeness: null
3393
- }), w = J(!0), D = J(), L = J(null), N = Ln([l, L]), X = d ? "Show" : "Hide", C = () => {
3394
- clearTimeout(D.current), w.current || (D.current = window.setTimeout(() => {
3395
- w.current = !0, f(!0), v({
3396
- announcementTimeout: Un,
3434
+ }), w = $(!0), C = $(), P = $(null), L = $n([c, P]), Z = d ? "Show" : "Hide", R = () => {
3435
+ clearTimeout(C.current), w.current || (C.current = window.setTimeout(() => {
3436
+ w.current = !0, y(!0), I({
3437
+ announcementTimeout: Mn,
3397
3438
  politeness: "polite",
3398
3439
  message: `${r} hiding characters`
3399
3440
  }), n && n(!0);
3400
- }, Kn));
3401
- }, x = (P) => {
3402
- P.preventDefault();
3403
- const B = !w.current;
3404
- w.current = B, C(), f(B), v({
3405
- announcementTimeout: Mn,
3441
+ }, Un));
3442
+ }, G = (N) => {
3443
+ N.preventDefault();
3444
+ const D = !w.current;
3445
+ w.current = D, R(), y(D), I({
3446
+ announcementTimeout: Ln,
3406
3447
  politeness: "assertive",
3407
- message: B ? "Characters hidden" : "Characters showing"
3408
- }), n && n(B);
3409
- }, O = (P) => {
3410
- var B;
3411
- const { relatedTarget: $e } = P, y = (B = L.current) == null ? void 0 : B.parentElement;
3412
- y != null && y.contains($e) || u && u();
3413
- }, M = (P) => {
3414
- C(), s && s(P), O(P);
3415
- }, Ue = (P) => {
3416
- C(), i && i(P);
3417
- }, Ke = (P) => {
3418
- C(), o && o(P);
3448
+ message: D ? "Characters hidden" : "Characters showing"
3449
+ }), n && n(D);
3450
+ }, O = (N) => {
3451
+ var D;
3452
+ const { relatedTarget: M } = N, g = (D = P.current) == null ? void 0 : D.parentElement;
3453
+ g != null && g.contains(M) || u && u();
3454
+ }, V = (N) => {
3455
+ R(), s && s(N), O(N);
3456
+ }, pe = (N) => {
3457
+ R(), i && i(N);
3458
+ }, ee = (N) => {
3459
+ R(), o && o(N);
3419
3460
  };
3420
- return q(() => () => {
3421
- clearTimeout(D.current);
3422
- }, []), /* @__PURE__ */ T(pe, { children: [
3423
- /* @__PURE__ */ c(
3461
+ return Q(() => () => {
3462
+ clearTimeout(C.current);
3463
+ }, []), /* @__PURE__ */ v(ye, { children: [
3464
+ /* @__PURE__ */ l(
3424
3465
  nt,
3425
3466
  {
3426
- ref: N,
3467
+ ref: L,
3427
3468
  name: e,
3428
3469
  label: r,
3429
3470
  labelHidden: a,
3430
3471
  type: d ? "password" : "text",
3431
3472
  disabled: t,
3432
3473
  spacing: p,
3433
- onBlur: M,
3434
- onFocus: Ue,
3435
- onChange: Ke,
3436
- rightElement: H.cloneElement(h, {
3437
- ref: l,
3438
- label: X,
3439
- onClick: x,
3474
+ onBlur: V,
3475
+ onFocus: pe,
3476
+ onChange: ee,
3477
+ rightElement: W.cloneElement(h, {
3478
+ ref: c,
3479
+ label: Z,
3480
+ onClick: G,
3440
3481
  onBlur: O,
3441
3482
  disabled: t
3442
3483
  }),
3443
3484
  ...m
3444
3485
  }
3445
3486
  ),
3446
- /* @__PURE__ */ c(
3447
- ar,
3487
+ /* @__PURE__ */ l(
3488
+ nr,
3448
3489
  {
3449
3490
  role: "status",
3450
3491
  politeness: b.politeness,
@@ -3455,21 +3496,21 @@ const Mn = 500, Un = 5e3, Kn = 2e4, nr = H.forwardRef(
3455
3496
  ] });
3456
3497
  }
3457
3498
  );
3458
- nr.displayName = "TextInputMask";
3499
+ or.displayName = "TextInputMask";
3459
3500
  /*!
3460
- @versini/ui-textinput v1.0.3
3501
+ @versini/ui-textinput v1.2.0
3461
3502
  © 2024 gizmette.com
3462
3503
  */
3463
3504
  try {
3464
3505
  window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
3465
- version: "1.0.3",
3466
- buildTime: "09/24/2024 07:45 PM EDT",
3506
+ version: "1.2.0",
3507
+ buildTime: "09/30/2024 09:28 AM EDT",
3467
3508
  homepage: "https://github.com/aversini/ui-components",
3468
3509
  license: "MIT"
3469
3510
  });
3470
3511
  } catch {
3471
3512
  }
3472
- const $n = "ASK! ME! ANYTHING!", or = "Sassy Saint", Hn = "gizmette.com", Wn = "Log in", Bn = "Sign in with a Passkey", Yo = "Log out", Gn = "Password", Vn = "Powered by OpenAI", Fo = "Send", zo = "Profile", jo = "Statistics", qo = "Chat history", Xo = "About", Qo = "Type your question here", Zo = "Clear chat", es = "Cancel chat", ts = "N/A", rs = {
3513
+ const Kn = "ASK! ME! ANYTHING!", sr = "Sassy Saint", Hn = "gizmette.com", Wn = "Log in", Bn = "Sign in with a Passkey", Yo = "Log out", Gn = "Password", Vn = "Powered by OpenAI", Fo = "Send", zo = "Profile", jo = "Statistics", qo = "Chat history", Xo = "About", Qo = "Type your question here", Zo = "Clear chat", es = "Cancel chat", ts = "N/A", rs = {
3473
3514
  TAGS: {
3474
3515
  TITLE: "Pre-filled tags",
3475
3516
  DESCRIPTION: "Tags are pre-filled buttons available on the main screen, to help you quickly start requests."
@@ -3509,13 +3550,13 @@ const $n = "ASK! ME! ANYTHING!", or = "Sassy Saint", Hn = "gizmette.com", Wn = "
3509
3550
  }
3510
3551
  };
3511
3552
  /*!
3512
- @versini/ui-footer v1.0.4
3553
+ @versini/ui-footer v1.0.8
3513
3554
  © 2024 gizmette.com
3514
3555
  */
3515
3556
  try {
3516
3557
  window.__VERSINI_UI_FOOTER__ || (window.__VERSINI_UI_FOOTER__ = {
3517
- version: "1.0.4",
3518
- buildTime: "09/24/2024 07:45 PM EDT",
3558
+ version: "1.0.8",
3559
+ buildTime: "09/27/2024 11:55 AM EDT",
3519
3560
  homepage: "https://github.com/aversini/ui-components",
3520
3561
  license: "MIT"
3521
3562
  });
@@ -3539,7 +3580,7 @@ const Jn = "av-footer", Yn = (e) => {
3539
3580
  spacing: o,
3540
3581
  raw: s = !1
3541
3582
  }) => {
3542
- const i = g(Jn, e, Yn(o), {
3583
+ const i = f(Jn, e, Yn(o), {
3543
3584
  "text-copy-dark": !s && t === "dark",
3544
3585
  "text-copy-lighter": !s && t === "light",
3545
3586
  "text-copy-dark dark:text-copy-lighter": !s && t === "system",
@@ -3547,70 +3588,70 @@ const Jn = "av-footer", Yn = (e) => {
3547
3588
  "mb-[100px]": !n && !s,
3548
3589
  "mt-0 flex w-full flex-col p-2 text-center text-xs sm:mt-3 md:mx-auto md:max-w-4xl": !s
3549
3590
  });
3550
- return /* @__PURE__ */ T("footer", { className: i, children: [
3551
- r && /* @__PURE__ */ c("div", { children: r }),
3552
- a && /* @__PURE__ */ c("div", { children: a })
3591
+ return /* @__PURE__ */ v("footer", { className: i, children: [
3592
+ r && /* @__PURE__ */ l("div", { children: r }),
3593
+ a && /* @__PURE__ */ l("div", { children: a })
3553
3594
  ] });
3554
3595
  }, zn = ({
3555
3596
  serverStats: e
3556
- }) => /* @__PURE__ */ c(
3597
+ }) => /* @__PURE__ */ l(
3557
3598
  Fn,
3558
3599
  {
3559
3600
  mode: "light",
3560
- row1: /* @__PURE__ */ T("div", { children: [
3561
- or,
3601
+ row1: /* @__PURE__ */ v("div", { children: [
3602
+ sr,
3562
3603
  " v",
3563
- "4.5.1",
3604
+ "4.5.3",
3564
3605
  " - ",
3565
3606
  Vn,
3566
3607
  tt && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
3567
3608
  ] }),
3568
- row2: /* @__PURE__ */ T("div", { children: [
3609
+ row2: /* @__PURE__ */ v("div", { children: [
3569
3610
  "© ",
3570
3611
  (/* @__PURE__ */ new Date()).getFullYear(),
3571
3612
  " ",
3572
3613
  Hn
3573
3614
  ] })
3574
3615
  }
3575
- ), jn = At(
3616
+ ), jn = _t(
3576
3617
  () => import(
3577
3618
  /* webpackChunkName: "LazyHeader" */
3578
- "./LazyHeader.DClUfXqp.js"
3619
+ "./LazyHeader.ChGYAocD.js"
3579
3620
  )
3580
3621
  ), qn = () => {
3581
3622
  const { isAuthenticated: e } = et();
3582
- return /* @__PURE__ */ T(pe, { children: [
3583
- e && /* @__PURE__ */ c(_t, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(jn, {}) }),
3584
- /* @__PURE__ */ T("div", { className: "flex items-center justify-center", children: [
3585
- /* @__PURE__ */ c("div", { className: "basis-1/4", children: /* @__PURE__ */ c(ln, {}) }),
3586
- /* @__PURE__ */ T("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3587
- /* @__PURE__ */ c("h1", { children: or }),
3588
- /* @__PURE__ */ c("h2", { children: $n })
3623
+ return /* @__PURE__ */ v(ye, { children: [
3624
+ e && /* @__PURE__ */ l(Rt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(jn, {}) }),
3625
+ /* @__PURE__ */ v("div", { className: "flex items-center justify-center", children: [
3626
+ /* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(ln, {}) }),
3627
+ /* @__PURE__ */ v("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3628
+ /* @__PURE__ */ l("h1", { children: sr }),
3629
+ /* @__PURE__ */ l("h2", { children: Kn })
3589
3630
  ] })
3590
3631
  ] })
3591
3632
  ] });
3592
3633
  }, Xn = () => {
3593
- const { login: e, logoutReason: t, loginWithPasskey: r } = et(), [a, n] = F(""), [o, s] = F(""), [i, u] = F(!0), [h, p] = F({
3634
+ const { login: e, logoutReason: t, loginWithPasskey: r } = et(), [a, n] = j(""), [o, s] = j(""), [i, u] = j(!0), [h, p] = j({
3594
3635
  username: "",
3595
3636
  password: ""
3596
- }), m = async (l) => {
3597
- l.preventDefault(), await e(h.username, h.password) || (s(""), n("Invalid username or password"));
3637
+ }), m = async (c) => {
3638
+ c.preventDefault(), await e(h.username, h.password) || (s(""), n("Invalid username or password"));
3598
3639
  };
3599
- return q(() => {
3600
- var l;
3601
- (l = document.getElementById("logo")) == null || l.classList.add("fadeOut"), setTimeout(() => {
3640
+ return Q(() => {
3641
+ var c;
3642
+ (c = document.getElementById("logo")) == null || c.classList.add("fadeOut"), setTimeout(() => {
3602
3643
  var d;
3603
3644
  (d = document.getElementById("root")) == null || d.classList.replace("app-hidden", "fadeIn");
3604
3645
  }, 500);
3605
- }), q(() => {
3646
+ }), Q(() => {
3606
3647
  t && s(t);
3607
- }, [t]), /* @__PURE__ */ T(pe, { children: [
3608
- /* @__PURE__ */ T(gn, { children: [
3609
- /* @__PURE__ */ c("div", { className: Ja(), children: /* @__PURE__ */ c(qn, {}) }),
3610
- /* @__PURE__ */ T("form", { className: "mt-5", onSubmit: m, children: [
3611
- /* @__PURE__ */ c(wt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ c(ie, { span: 6, children: /* @__PURE__ */ T(sn, { mode: "dark", children: [
3612
- /* @__PURE__ */ c(ie, { span: 12, children: o && /* @__PURE__ */ c("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
3613
- /* @__PURE__ */ c(ie, { span: 12, children: /* @__PURE__ */ c(
3648
+ }, [t]), /* @__PURE__ */ v(ye, { children: [
3649
+ /* @__PURE__ */ v(gn, { children: [
3650
+ /* @__PURE__ */ l("div", { className: Ja(), children: /* @__PURE__ */ l(qn, {}) }),
3651
+ /* @__PURE__ */ v("form", { className: "mt-5", onSubmit: m, children: [
3652
+ /* @__PURE__ */ l(Tt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ v(sn, { mode: "dark", children: [
3653
+ /* @__PURE__ */ l(le, { span: 12, children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
3654
+ /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3614
3655
  nt,
3615
3656
  {
3616
3657
  required: !0,
@@ -3621,17 +3662,17 @@ const Jn = "av-footer", Yn = (e) => {
3621
3662
  focusMode: "light",
3622
3663
  name: "username",
3623
3664
  label: "Username",
3624
- onChange: (l) => {
3665
+ onChange: (c) => {
3625
3666
  p({
3626
3667
  ...h,
3627
- username: l.target.value
3668
+ username: c.target.value
3628
3669
  }), n("");
3629
3670
  },
3630
3671
  error: a !== ""
3631
3672
  }
3632
3673
  ) }),
3633
- /* @__PURE__ */ c(ie, { span: 12, children: /* @__PURE__ */ c(
3634
- nr,
3674
+ /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3675
+ or,
3635
3676
  {
3636
3677
  required: !0,
3637
3678
  autoCapitalize: "off",
@@ -3641,20 +3682,20 @@ const Jn = "av-footer", Yn = (e) => {
3641
3682
  focusMode: "light",
3642
3683
  name: "password",
3643
3684
  label: Gn,
3644
- rightElement: /* @__PURE__ */ c(Xe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ c(mn, {}) : /* @__PURE__ */ c(dn, {}) }),
3685
+ rightElement: /* @__PURE__ */ l(Xe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(mn, {}) : /* @__PURE__ */ l(dn, {}) }),
3645
3686
  onMaskChange: u,
3646
- onChange: (l) => {
3687
+ onChange: (c) => {
3647
3688
  p({
3648
3689
  ...h,
3649
- password: l.target.value
3690
+ password: c.target.value
3650
3691
  }), n("");
3651
3692
  },
3652
3693
  error: a !== "",
3653
3694
  helperText: a
3654
3695
  }
3655
3696
  ) }),
3656
- /* @__PURE__ */ c(ie, { span: 12, children: /* @__PURE__ */ c(
3657
- Qt,
3697
+ /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3698
+ Zt,
3658
3699
  {
3659
3700
  mode: "light",
3660
3701
  focusMode: "light",
@@ -3666,8 +3707,8 @@ const Jn = "av-footer", Yn = (e) => {
3666
3707
  }
3667
3708
  ) })
3668
3709
  ] }) }) }),
3669
- /* @__PURE__ */ c("div", { className: "text-center text-copy-light", children: "or" }),
3670
- /* @__PURE__ */ c(wt, { alignHorizontal: "center", children: /* @__PURE__ */ c(ie, { span: 6, children: /* @__PURE__ */ c(
3710
+ /* @__PURE__ */ l("div", { className: "text-center text-copy-light", children: "or" }),
3711
+ /* @__PURE__ */ l(Tt, { alignHorizontal: "center", children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ l(
3671
3712
  Xe,
3672
3713
  {
3673
3714
  mode: "dark",
@@ -3677,33 +3718,33 @@ const Jn = "av-footer", Yn = (e) => {
3677
3718
  className: "mb-4 mt-1",
3678
3719
  labelRight: Bn,
3679
3720
  onClick: r,
3680
- children: /* @__PURE__ */ c(un, { className: "size-7" })
3721
+ children: /* @__PURE__ */ l(un, { className: "size-7" })
3681
3722
  }
3682
3723
  ) }) })
3683
3724
  ] })
3684
3725
  ] }),
3685
- /* @__PURE__ */ c(zn, {})
3726
+ /* @__PURE__ */ l(zn, {})
3686
3727
  ] });
3687
- }, Qn = new URL(document.location.href).searchParams, Zn = !!Qn.get("debug") || !1, eo = At(() => import(
3728
+ }, Qn = new URL(document.location.href).searchParams, Zn = !!Qn.get("debug") || !1, eo = _t(() => import(
3688
3729
  /* webpackChunkName: "LazyApp" */
3689
- "./App.Doru-B7k.js"
3730
+ "./App.DVd22A7h.js"
3690
3731
  ).then((e) => e.App)), to = ({ isComponent: e }) => {
3691
3732
  const { isAuthenticated: t } = et();
3692
- return t ? /* @__PURE__ */ c(_t, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(eo, { isComponent: e }) }) : /* @__PURE__ */ c(Xn, {});
3733
+ return t ? /* @__PURE__ */ l(Rt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(eo, { isComponent: e }) }) : /* @__PURE__ */ l(Xn, {});
3693
3734
  }, ro = ({
3694
3735
  isComponent: e = !1,
3695
3736
  domain: t = Va
3696
- }) => /* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(Pa, { clientId: Da, domain: t, debug: Zn, children: /* @__PURE__ */ c(to, { isComponent: e }) }) }), as = ({ domain: e }) => /* @__PURE__ */ c(ro, { isComponent: !0, domain: e });
3737
+ }) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Pa, { clientId: Da, domain: t, debug: Zn, children: /* @__PURE__ */ l(to, { isComponent: e }) }) }), as = ({ domain: e }) => /* @__PURE__ */ l(ro, { isComponent: !0, domain: e });
3697
3738
  export {
3698
3739
  Xo as ABOUT_TITLE,
3699
3740
  wo as ACTION_MESSAGE,
3700
- Io as ACTION_MODEL,
3741
+ vo as ACTION_MODEL,
3701
3742
  To as ACTION_RESET,
3702
3743
  Ro as ACTION_RESET_TAGS,
3703
- vo as ACTION_RESTORE,
3744
+ Io as ACTION_RESTORE,
3704
3745
  ko as ACTION_SEARCH,
3705
- Ao as ACTION_SORT,
3706
- So as ACTION_STREAMING,
3746
+ So as ACTION_SORT,
3747
+ Ao as ACTION_STREAMING,
3707
3748
  _o as ACTION_TOGGLE_TAG,
3708
3749
  zn as AppFooter,
3709
3750
  es as CANCEL,
@@ -3711,15 +3752,15 @@ export {
3711
3752
  Zo as CLEAR,
3712
3753
  sn as D,
3713
3754
  yo as ERROR_MESSAGE,
3714
- le as G,
3755
+ ue as G,
3715
3756
  Eo as GPT4_MAX_TOKENS,
3716
3757
  qo as HISTORY_TITLE,
3717
- xo as LOCAL_STORAGE_CHAT_DETAILS,
3718
- Co as LOCAL_STORAGE_PREFIX,
3758
+ Co as LOCAL_STORAGE_CHAT_DETAILS,
3759
+ xo as LOCAL_STORAGE_PREFIX,
3719
3760
  Oo as LOCAL_STORAGE_SEARCH,
3720
3761
  Po as LOCAL_STORAGE_SORT,
3721
- Lo as LOCAL_STORAGE_TAG_PROOFREAD,
3722
- Mo as LOCAL_STORAGE_TAG_REPHRASE,
3762
+ $o as LOCAL_STORAGE_TAG_PROOFREAD,
3763
+ Lo as LOCAL_STORAGE_TAG_REPHRASE,
3723
3764
  Do as LOCAL_STORAGE_TAG_SUMMARIZE,
3724
3765
  Yo as LOG_OUT,
3725
3766
  bo as MODEL_GPT4,
@@ -3727,7 +3768,7 @@ export {
3727
3768
  ts as NA,
3728
3769
  Xe as O,
3729
3770
  zo as PROFILE_TITLE,
3730
- Qt as R,
3771
+ Zt as R,
3731
3772
  ho as ROLE_ASSISTANT,
3732
3773
  fo as ROLE_HIDDEN,
3733
3774
  go as ROLE_INTERNAL,
@@ -3735,25 +3776,25 @@ export {
3735
3776
  mo as ROLE_USER,
3736
3777
  Fo as SEND,
3737
3778
  jo as STATS,
3738
- Uo as STATS_SEPARATOR,
3779
+ Mo as STATS_SEPARATOR,
3739
3780
  as as SassySaint,
3740
3781
  Fe as TAGS,
3741
3782
  No as TAG_CONTENT,
3742
3783
  Qo as TYPE_QUESTION,
3743
- nt as ae,
3744
- wt as b,
3784
+ Tt as b,
3745
3785
  gn as d,
3746
3786
  Vo as durationFormatter,
3747
3787
  Wo as extractAverage,
3748
- Me as g,
3749
- $o as getCurrentGeoLocation,
3788
+ Ke as g,
3789
+ Ko as getCurrentGeoLocation,
3750
3790
  Ja as getMessageContaintWrapperClass,
3751
3791
  Bo as isLastMessageFromRole,
3752
- ie as j,
3792
+ le as j,
3793
+ nt as me,
3753
3794
  Go as numberFormatter,
3754
3795
  Jo as pluralize,
3755
3796
  Ho as renderDataAsList,
3756
3797
  et as rn,
3757
- Ko as truncate,
3798
+ Uo as truncate,
3758
3799
  un as v
3759
3800
  };