@versini/sassysaint 5.4.14 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { jsx as l, jsxs as I, Fragment as fe } from "react/jsx-runtime";
2
- import P, { createContext as cr, useReducer as _t, useRef as $, useCallback as q, useEffect as Q, useContext as Qe, useSyncExternalStore as lr, useId as kt, useState as j, useLayoutEffect as it, useMemo as St, lazy as At, Suspense as vt } from "react";
1
+ import { jsx as l, jsxs as N, Fragment as fe } from "react/jsx-runtime";
2
+ import z, { createContext as sr, useReducer as wt, useRef as $, useCallback as q, useEffect as Q, useContext as Tt, useSyncExternalStore as ir, useId as It, useState as j, useLayoutEffect as nt, useMemo as kt, lazy as St, Suspense as _t } from "react";
3
3
  import g from "clsx";
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, Ue = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
4
+ var cr = Object.defineProperty, lr = (e, t, r) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t, r) => lr(e, typeof t != "symbol" ? t + "" : t, r);
5
5
  /*!
6
6
  @versini/auth-provider v7.4.0
7
7
  © 2024 gizmette.com
@@ -15,7 +15,7 @@ try {
15
15
  });
16
16
  } catch {
17
17
  }
18
- function V(e) {
18
+ function J(e) {
19
19
  const t = new Uint8Array(e);
20
20
  let r = "";
21
21
  for (const a of t)
@@ -28,10 +28,10 @@ function Re(e) {
28
28
  s[i] = n.charCodeAt(i);
29
29
  return o;
30
30
  }
31
- function Ze() {
31
+ function Xe() {
32
32
  return (window == null ? void 0 : window.PublicKeyCredential) !== void 0 && typeof window.PublicKeyCredential == "function";
33
33
  }
34
- function Rt(e) {
34
+ function At(e) {
35
35
  const { id: t } = e;
36
36
  return {
37
37
  ...e,
@@ -39,85 +39,85 @@ function Rt(e) {
39
39
  transports: e.transports
40
40
  };
41
41
  }
42
- function Nt(e) {
42
+ function vt(e) {
43
43
  return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
44
44
  }
45
- let N = class extends Error {
45
+ let R = class 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
  }
49
49
  };
50
- function hr({ error: e, options: t }) {
50
+ function dr({ error: e, options: t }) {
51
51
  var a, n;
52
52
  const { publicKey: r } = t;
53
53
  if (!r)
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 N({
57
+ return new R({
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 N({
64
+ return new R({
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 N({
70
+ return new R({
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 N({
77
+ return new R({
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 N({
83
+ return new R({
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 N({
89
+ return r.pubKeyCredParams.filter((o) => o.type === "public-key").length === 0 ? new R({
90
90
  message: 'No entry in pubKeyCredParams was of type "public-key"',
91
91
  code: "ERROR_MALFORMED_PUBKEYCREDPARAMS",
92
92
  cause: e
93
- }) : new N({
93
+ }) : new R({
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 (vt(o)) {
101
101
  if (r.rp.id !== o)
102
- return new N({
102
+ return new R({
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 N({
107
+ } else return new R({
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 N({
114
+ return new R({
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 N({
120
+ return new R({
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
@@ -125,7 +125,7 @@ function hr({ error: e, options: t }) {
125
125
  }
126
126
  return e;
127
127
  }
128
- class mr {
128
+ class ur {
129
129
  createNewAbortSignal() {
130
130
  if (this.controller) {
131
131
  const r = new Error("Cancelling existing WebAuthn API call for new one");
@@ -141,14 +141,14 @@ class mr {
141
141
  }
142
142
  }
143
143
  }
144
- const xt = new mr(), pr = ["cross-platform", "platform"];
145
- function Ct(e) {
146
- if (e && !(pr.indexOf(e) < 0))
144
+ const Rt = new ur(), hr = ["cross-platform", "platform"];
145
+ function Nt(e) {
146
+ if (e && !(hr.indexOf(e) < 0))
147
147
  return e;
148
148
  }
149
- async function gr(e) {
149
+ async function mr(e) {
150
150
  var u;
151
- if (!Ze())
151
+ if (!Xe())
152
152
  throw new Error("WebAuthn is not supported in this browser");
153
153
  const t = { publicKey: {
154
154
  ...e,
@@ -157,14 +157,14 @@ async function gr(e) {
157
157
  ...e.user,
158
158
  id: Re(e.user.id)
159
159
  },
160
- excludeCredentials: (u = e.excludeCredentials) == null ? void 0 : u.map(Rt)
160
+ excludeCredentials: (u = e.excludeCredentials) == null ? void 0 : u.map(At)
161
161
  } };
162
- t.signal = xt.createNewAbortSignal();
162
+ t.signal = Rt.createNewAbortSignal();
163
163
  let r;
164
164
  try {
165
165
  r = await navigator.credentials.create(t);
166
166
  } catch (c) {
167
- throw hr({ error: c, options: t });
167
+ throw dr({ error: c, options: t });
168
168
  }
169
169
  if (!r)
170
170
  throw new Error("Registration was not completed");
@@ -182,23 +182,23 @@ async function gr(e) {
182
182
  if (typeof o.getPublicKey == "function")
183
183
  try {
184
184
  const c = o.getPublicKey();
185
- c !== null && (m = V(c));
185
+ c !== null && (m = J(c));
186
186
  } catch (c) {
187
187
  Ke("getPublicKey()", c);
188
188
  }
189
189
  let p;
190
190
  if (typeof o.getAuthenticatorData == "function")
191
191
  try {
192
- p = V(o.getAuthenticatorData());
192
+ p = J(o.getAuthenticatorData());
193
193
  } catch (c) {
194
194
  Ke("getAuthenticatorData()", c);
195
195
  }
196
196
  return {
197
197
  id: a,
198
- rawId: V(n),
198
+ rawId: J(n),
199
199
  response: {
200
- attestationObject: V(o.attestationObject),
201
- clientDataJSON: V(o.clientDataJSON),
200
+ attestationObject: J(o.attestationObject),
201
+ clientDataJSON: J(o.clientDataJSON),
202
202
  transports: i,
203
203
  publicKeyAlgorithm: d,
204
204
  publicKey: m,
@@ -206,53 +206,53 @@ async function gr(e) {
206
206
  },
207
207
  type: s,
208
208
  clientExtensionResults: r.getClientExtensionResults(),
209
- authenticatorAttachment: Ct(r.authenticatorAttachment)
209
+ authenticatorAttachment: Nt(r.authenticatorAttachment)
210
210
  };
211
211
  }
212
212
  function Ke(e, t) {
213
213
  console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
214
214
  `, t);
215
215
  }
216
- function yr() {
217
- if (!Ze())
216
+ function pr() {
217
+ if (!Xe())
218
218
  return new Promise((t) => t(!1));
219
219
  const e = window.PublicKeyCredential;
220
220
  return e.isConditionalMediationAvailable === void 0 ? new Promise((t) => t(!1)) : e.isConditionalMediationAvailable();
221
221
  }
222
- function fr({ error: e, options: t }) {
222
+ function gr({ error: e, options: t }) {
223
223
  const { publicKey: r } = t;
224
224
  if (!r)
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 N({
228
+ return new R({
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 N({
235
+ return new R({
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 (vt(a)) {
243
243
  if (r.rpId !== a)
244
- return new N({
244
+ return new R({
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 N({
249
+ } else return new R({
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 N({
255
+ return new R({
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
@@ -260,47 +260,47 @@ function fr({ error: e, options: t }) {
260
260
  }
261
261
  return e;
262
262
  }
263
- async function br(e, t = !1) {
263
+ async function yr(e, t = !1) {
264
264
  var u, c;
265
- if (!Ze())
265
+ if (!Xe())
266
266
  throw new Error("WebAuthn is not supported in this browser");
267
267
  let r;
268
- ((u = e.allowCredentials) == null ? void 0 : u.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(Rt));
268
+ ((u = e.allowCredentials) == null ? void 0 : u.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(At));
269
269
  const a = {
270
270
  ...e,
271
271
  challenge: Re(e.challenge),
272
272
  allowCredentials: r
273
273
  }, n = {};
274
274
  if (t) {
275
- if (!await yr())
275
+ if (!await pr())
276
276
  throw Error("Browser does not support WebAuthn autofill");
277
277
  if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1)
278
278
  throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
279
279
  n.mediation = "conditional", a.allowCredentials = [];
280
280
  }
281
- n.publicKey = a, n.signal = xt.createNewAbortSignal();
281
+ n.publicKey = a, n.signal = Rt.createNewAbortSignal();
282
282
  let o;
283
283
  try {
284
284
  o = await navigator.credentials.get(n);
285
285
  } catch (h) {
286
- throw fr({ error: h, options: n });
286
+ throw gr({ error: h, options: n });
287
287
  }
288
288
  if (!o)
289
289
  throw new Error("Authentication was not completed");
290
290
  const { id: s, rawId: i, response: d, type: m } = o;
291
291
  let p;
292
- return d.userHandle && (p = V(d.userHandle)), {
292
+ return d.userHandle && (p = J(d.userHandle)), {
293
293
  id: s,
294
- rawId: V(i),
294
+ rawId: J(i),
295
295
  response: {
296
- authenticatorData: V(d.authenticatorData),
297
- clientDataJSON: V(d.clientDataJSON),
298
- signature: V(d.signature),
296
+ authenticatorData: J(d.authenticatorData),
297
+ clientDataJSON: J(d.clientDataJSON),
298
+ signature: J(d.signature),
299
299
  userHandle: p
300
300
  },
301
301
  type: m,
302
302
  clientExtensionResults: o.getClientExtensionResults(),
303
- authenticatorAttachment: Ct(o.authenticatorAttachment)
303
+ authenticatorAttachment: Nt(o.authenticatorAttachment)
304
304
  };
305
305
  }
306
306
  /*!
@@ -323,9 +323,9 @@ const ue = {
323
323
  CODE: "code",
324
324
  REFRESH_TOKEN: "refresh_token",
325
325
  PASSKEY: "passkey"
326
- }, Ot = {
326
+ }, xt = {
327
327
  CLIENT_ID: "X-Auth-ClientId"
328
- }, v = {
328
+ }, A = {
329
329
  ALG: "RS256",
330
330
  USER_ID_KEY: "sub",
331
331
  USERNAME_KEY: "username",
@@ -338,7 +338,7 @@ const ue = {
338
338
  SCOPES_KEY: "scopes",
339
339
  CLIENT_ID_KEY: "aud",
340
340
  ISSUER: "gizmette.com"
341
- }, Er = `-----BEGIN PUBLIC KEY-----
341
+ }, fr = `-----BEGIN PUBLIC KEY-----
342
342
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
343
343
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
344
344
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -351,15 +351,15 @@ awIDAQAB
351
351
  LOGOUT: "logout",
352
352
  LOGIN: "login",
353
353
  REFRESH: "refresh"
354
- }, De = crypto, Pt = (e) => e instanceof CryptoKey, we = new TextEncoder(), be = new TextDecoder();
355
- function wr(...e) {
354
+ }, De = crypto, Ct = (e) => e instanceof CryptoKey, we = new TextEncoder(), be = new TextDecoder();
355
+ function br(...e) {
356
356
  const t = e.reduce((n, { length: o }) => n + o, 0), r = new Uint8Array(t);
357
357
  let a = 0;
358
358
  for (const n of e)
359
359
  r.set(n, a), a += n.length;
360
360
  return r;
361
361
  }
362
- const Tr = (e) => {
362
+ const Er = (e) => {
363
363
  const t = atob(e), r = new Uint8Array(t.length);
364
364
  for (let a = 0; a < t.length; a++)
365
365
  r[a] = t.charCodeAt(a);
@@ -368,7 +368,7 @@ const Tr = (e) => {
368
368
  let t = e;
369
369
  t instanceof Uint8Array && (t = be.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
370
370
  try {
371
- return Tr(t);
371
+ return Er(t);
372
372
  } catch {
373
373
  throw new TypeError("The input to be decoded is not correctly encoded.");
374
374
  }
@@ -380,91 +380,91 @@ let C = class extends Error {
380
380
  }
381
381
  };
382
382
  C.code = "ERR_JOSE_GENERIC";
383
- let L = class extends C {
383
+ let D = class extends C {
384
384
  constructor(t, r, a = "unspecified", n = "unspecified") {
385
385
  super(t, { cause: { claim: a, reason: n, payload: r } }), this.code = "ERR_JWT_CLAIM_VALIDATION_FAILED", this.claim = a, this.reason = n, this.payload = r;
386
386
  }
387
387
  };
388
- L.code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
389
- class Fe extends C {
388
+ D.code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
389
+ class ze extends C {
390
390
  constructor(t, r, a = "unspecified", n = "unspecified") {
391
391
  super(t, { cause: { claim: a, reason: n, payload: r } }), this.code = "ERR_JWT_EXPIRED", this.claim = a, this.reason = n, this.payload = r;
392
392
  }
393
393
  }
394
- Fe.code = "ERR_JWT_EXPIRED";
395
- class Dt extends C {
394
+ ze.code = "ERR_JWT_EXPIRED";
395
+ class Ot extends C {
396
396
  constructor() {
397
397
  super(...arguments), this.code = "ERR_JOSE_ALG_NOT_ALLOWED";
398
398
  }
399
399
  }
400
- Dt.code = "ERR_JOSE_ALG_NOT_ALLOWED";
401
- let M = class extends C {
400
+ Ot.code = "ERR_JOSE_ALG_NOT_ALLOWED";
401
+ let L = class extends C {
402
402
  constructor() {
403
403
  super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
404
404
  }
405
405
  };
406
- M.code = "ERR_JOSE_NOT_SUPPORTED";
407
- class Ir extends C {
406
+ L.code = "ERR_JOSE_NOT_SUPPORTED";
407
+ class wr extends C {
408
408
  constructor(t = "decryption operation failed", r) {
409
409
  super(t, r), this.code = "ERR_JWE_DECRYPTION_FAILED";
410
410
  }
411
411
  }
412
- Ir.code = "ERR_JWE_DECRYPTION_FAILED";
413
- class _r extends C {
412
+ wr.code = "ERR_JWE_DECRYPTION_FAILED";
413
+ class Tr extends C {
414
414
  constructor() {
415
415
  super(...arguments), this.code = "ERR_JWE_INVALID";
416
416
  }
417
417
  }
418
- _r.code = "ERR_JWE_INVALID";
418
+ Tr.code = "ERR_JWE_INVALID";
419
419
  let k = class extends C {
420
420
  constructor() {
421
421
  super(...arguments), this.code = "ERR_JWS_INVALID";
422
422
  }
423
423
  };
424
424
  k.code = "ERR_JWS_INVALID";
425
- let J = class extends C {
425
+ let B = class extends C {
426
426
  constructor() {
427
427
  super(...arguments), this.code = "ERR_JWT_INVALID";
428
428
  }
429
429
  };
430
- J.code = "ERR_JWT_INVALID";
431
- class kr extends C {
430
+ B.code = "ERR_JWT_INVALID";
431
+ class Ir extends C {
432
432
  constructor() {
433
433
  super(...arguments), this.code = "ERR_JWK_INVALID";
434
434
  }
435
435
  }
436
- kr.code = "ERR_JWK_INVALID";
437
- class Sr extends C {
436
+ Ir.code = "ERR_JWK_INVALID";
437
+ class kr extends C {
438
438
  constructor() {
439
439
  super(...arguments), this.code = "ERR_JWKS_INVALID";
440
440
  }
441
441
  }
442
- Sr.code = "ERR_JWKS_INVALID";
443
- class Ar extends C {
442
+ kr.code = "ERR_JWKS_INVALID";
443
+ class Sr extends C {
444
444
  constructor(t = "no applicable key found in the JSON Web Key Set", r) {
445
445
  super(t, r), this.code = "ERR_JWKS_NO_MATCHING_KEY";
446
446
  }
447
447
  }
448
- Ar.code = "ERR_JWKS_NO_MATCHING_KEY";
449
- class vr extends C {
448
+ Sr.code = "ERR_JWKS_NO_MATCHING_KEY";
449
+ class _r extends C {
450
450
  constructor(t = "multiple matching keys found in the JSON Web Key Set", r) {
451
451
  super(t, r), this.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
452
452
  }
453
453
  }
454
- vr.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
455
- class Rr extends C {
454
+ _r.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
455
+ class Ar extends C {
456
456
  constructor(t = "request timed out", r) {
457
457
  super(t, r), this.code = "ERR_JWKS_TIMEOUT";
458
458
  }
459
459
  }
460
- Rr.code = "ERR_JWKS_TIMEOUT";
461
- class Lt extends C {
460
+ Ar.code = "ERR_JWKS_TIMEOUT";
461
+ class Pt extends C {
462
462
  constructor(t = "signature verification failed", r) {
463
463
  super(t, r), this.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
464
464
  }
465
465
  }
466
- Lt.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
467
- function z(e, t = "algorithm.name") {
466
+ Pt.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
467
+ function Y(e, t = "algorithm.name") {
468
468
  return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
469
469
  }
470
470
  function Te(e, t) {
@@ -473,7 +473,7 @@ function Te(e, t) {
473
473
  function He(e) {
474
474
  return parseInt(e.name.slice(4), 10);
475
475
  }
476
- function Nr(e) {
476
+ function vr(e) {
477
477
  switch (e) {
478
478
  case "ES256":
479
479
  return "P-256";
@@ -485,7 +485,7 @@ function Nr(e) {
485
485
  throw new Error("unreachable");
486
486
  }
487
487
  }
488
- function xr(e, t) {
488
+ function Rr(e, t) {
489
489
  if (t.length && !t.some((r) => e.usages.includes(r))) {
490
490
  let r = "CryptoKey does not support this operation, its usages must include ";
491
491
  if (t.length > 2) {
@@ -495,59 +495,59 @@ function xr(e, t) {
495
495
  throw new TypeError(r);
496
496
  }
497
497
  }
498
- function Cr(e, t, ...r) {
498
+ function Nr(e, t, ...r) {
499
499
  switch (t) {
500
500
  case "HS256":
501
501
  case "HS384":
502
502
  case "HS512": {
503
503
  if (!Te(e.algorithm, "HMAC"))
504
- throw z("HMAC");
504
+ throw Y("HMAC");
505
505
  const a = parseInt(t.slice(2), 10);
506
506
  if (He(e.algorithm.hash) !== a)
507
- throw z(`SHA-${a}`, "algorithm.hash");
507
+ throw Y(`SHA-${a}`, "algorithm.hash");
508
508
  break;
509
509
  }
510
510
  case "RS256":
511
511
  case "RS384":
512
512
  case "RS512": {
513
513
  if (!Te(e.algorithm, "RSASSA-PKCS1-v1_5"))
514
- throw z("RSASSA-PKCS1-v1_5");
514
+ throw Y("RSASSA-PKCS1-v1_5");
515
515
  const a = parseInt(t.slice(2), 10);
516
516
  if (He(e.algorithm.hash) !== a)
517
- throw z(`SHA-${a}`, "algorithm.hash");
517
+ throw Y(`SHA-${a}`, "algorithm.hash");
518
518
  break;
519
519
  }
520
520
  case "PS256":
521
521
  case "PS384":
522
522
  case "PS512": {
523
523
  if (!Te(e.algorithm, "RSA-PSS"))
524
- throw z("RSA-PSS");
524
+ throw Y("RSA-PSS");
525
525
  const a = parseInt(t.slice(2), 10);
526
526
  if (He(e.algorithm.hash) !== a)
527
- throw z(`SHA-${a}`, "algorithm.hash");
527
+ throw Y(`SHA-${a}`, "algorithm.hash");
528
528
  break;
529
529
  }
530
530
  case "EdDSA": {
531
531
  if (e.algorithm.name !== "Ed25519" && e.algorithm.name !== "Ed448")
532
- throw z("Ed25519 or Ed448");
532
+ throw Y("Ed25519 or Ed448");
533
533
  break;
534
534
  }
535
535
  case "ES256":
536
536
  case "ES384":
537
537
  case "ES512": {
538
538
  if (!Te(e.algorithm, "ECDSA"))
539
- throw z("ECDSA");
540
- const a = Nr(t);
539
+ throw Y("ECDSA");
540
+ const a = vr(t);
541
541
  if (e.algorithm.namedCurve !== a)
542
- throw z(a, "algorithm.namedCurve");
542
+ throw Y(a, "algorithm.namedCurve");
543
543
  break;
544
544
  }
545
545
  default:
546
546
  throw new TypeError("CryptoKey does not support this operation");
547
547
  }
548
- xr(e, r);
548
+ Rr(e, r);
549
549
  }
550
- function Mt(e, t, ...r) {
550
+ function Dt(e, t, ...r) {
551
551
  var a;
552
552
  if (r = r.filter(Boolean), r.length > 2) {
553
553
  const n = r.pop();
@@ -555,11 +555,11 @@ function Mt(e, t, ...r) {
555
555
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
556
556
  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;
557
557
  }
558
- const ct = (e, ...t) => Mt("Key must be ", e, ...t);
559
- function $t(e, t, ...r) {
560
- return Mt(`Key for the ${e} algorithm must be `, t, ...r);
558
+ const ot = (e, ...t) => Dt("Key must be ", e, ...t);
559
+ function Lt(e, t, ...r) {
560
+ return Dt(`Key for the ${e} algorithm must be `, t, ...r);
561
561
  }
562
- const Ut = (e) => Pt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ne = ["CryptoKey"], Or = (...e) => {
562
+ const $t = (e) => Ct(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ne = ["CryptoKey"], xr = (...e) => {
563
563
  const t = e.filter(Boolean);
564
564
  if (t.length === 0 || t.length === 1)
565
565
  return !0;
@@ -578,11 +578,11 @@ const Ut = (e) => Pt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
578
578
  }
579
579
  return !0;
580
580
  };
581
- function Pr(e) {
581
+ function Cr(e) {
582
582
  return typeof e == "object" && e !== null;
583
583
  }
584
584
  function he(e) {
585
- if (!Pr(e) || Object.prototype.toString.call(e) !== "[object Object]")
585
+ if (!Cr(e) || Object.prototype.toString.call(e) !== "[object Object]")
586
586
  return !1;
587
587
  if (Object.getPrototypeOf(e) === null)
588
588
  return !0;
@@ -591,7 +591,7 @@ function he(e) {
591
591
  t = Object.getPrototypeOf(t);
592
592
  return Object.getPrototypeOf(e) === t;
593
593
  }
594
- const Dr = (e, t) => {
594
+ const Or = (e, t) => {
595
595
  if (e.startsWith("RS") || e.startsWith("PS")) {
596
596
  const { modulusLength: r } = t.algorithm;
597
597
  if (typeof r != "number" || r < 2048)
@@ -601,16 +601,16 @@ const Dr = (e, t) => {
601
601
  function me(e) {
602
602
  return he(e) && typeof e.kty == "string";
603
603
  }
604
- function Lr(e) {
604
+ function Pr(e) {
605
605
  return e.kty !== "oct" && typeof e.d == "string";
606
606
  }
607
- function Mr(e) {
607
+ function Dr(e) {
608
608
  return e.kty !== "oct" && typeof e.d > "u";
609
609
  }
610
- function $r(e) {
610
+ function Lr(e) {
611
611
  return me(e) && e.kty === "oct" && typeof e.k == "string";
612
612
  }
613
- function Ur(e) {
613
+ function $r(e) {
614
614
  let t, r;
615
615
  switch (e.kty) {
616
616
  case "RSA": {
@@ -635,7 +635,7 @@ function Ur(e) {
635
635
  }, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
636
636
  break;
637
637
  default:
638
- throw new M('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
638
+ throw new L('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
639
639
  }
640
640
  break;
641
641
  }
@@ -657,7 +657,7 @@ function Ur(e) {
657
657
  t = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
658
658
  break;
659
659
  default:
660
- throw new M('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
660
+ throw new L('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
661
661
  }
662
662
  break;
663
663
  }
@@ -673,52 +673,52 @@ function Ur(e) {
673
673
  t = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
674
674
  break;
675
675
  default:
676
- throw new M('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
676
+ throw new L('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
677
677
  }
678
678
  break;
679
679
  }
680
680
  default:
681
- throw new M('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
681
+ throw new L('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
682
682
  }
683
683
  return { algorithm: t, keyUsages: r };
684
684
  }
685
- const Kt = async (e) => {
685
+ const Mt = async (e) => {
686
686
  if (!e.alg)
687
687
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
688
- const { algorithm: t, keyUsages: r } = Ur(e), a = [
688
+ const { algorithm: t, keyUsages: r } = $r(e), a = [
689
689
  t,
690
690
  e.ext ?? !1,
691
691
  e.key_ops ?? r
692
692
  ], n = { ...e };
693
693
  return delete n.alg, delete n.use, De.subtle.importKey("jwk", n, ...a);
694
- }, Ht = (e) => X(e);
694
+ }, Ut = (e) => X(e);
695
695
  let ae, ne;
696
- const Wt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = async (e, t, r, a, n = !1) => {
696
+ const Kt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = async (e, t, r, a, n = !1) => {
697
697
  let o = e.get(t);
698
698
  if (o != null && o[a])
699
699
  return o[a];
700
- const s = await Kt({ ...r, alg: a });
700
+ const s = await Mt({ ...r, alg: a });
701
701
  return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
702
- }, Kr = (e, t) => {
703
- if (Wt(e)) {
702
+ }, Mr = (e, t) => {
703
+ if (Kt(e)) {
704
704
  let r = e.export({ format: "jwk" });
705
- return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Ht(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), xe(ne, e, r, t));
705
+ return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Ut(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), xe(ne, e, r, t));
706
706
  }
707
707
  return me(e) ? e.k ? X(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), xe(ne, e, e, t, !0)) : e;
708
- }, Hr = (e, t) => {
709
- if (Wt(e)) {
708
+ }, Ur = (e, t) => {
709
+ if (Kt(e)) {
710
710
  let r = e.export({ format: "jwk" });
711
- return r.k ? Ht(r.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), xe(ae, e, r, t));
711
+ return r.k ? Ut(r.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), xe(ae, e, r, t));
712
712
  }
713
713
  return me(e) ? e.k ? X(e.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), xe(ae, e, e, t, !0)) : e;
714
- }, Wr = { normalizePublicKey: Kr, normalizePrivateKey: Hr }, F = (e, t, r = 0) => {
714
+ }, Kr = { normalizePublicKey: Mr, normalizePrivateKey: Ur }, F = (e, t, r = 0) => {
715
715
  r === 0 && (t.unshift(t.length), t.unshift(6));
716
716
  const a = e.indexOf(t[0], r);
717
717
  if (a === -1)
718
718
  return !1;
719
719
  const n = e.subarray(a, a + t.length);
720
720
  return n.length !== t.length ? !1 : n.every((o, s) => o === t[s]) || F(e, t, a + 1);
721
- }, lt = (e) => {
721
+ }, st = (e) => {
722
722
  switch (!0) {
723
723
  case F(e, [42, 134, 72, 206, 61, 3, 1, 7]):
724
724
  return "P-256";
@@ -735,9 +735,9 @@ const Wt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
735
735
  case F(e, [43, 101, 113]):
736
736
  return "Ed448";
737
737
  default:
738
- throw new M("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
738
+ throw new L("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
739
739
  }
740
- }, Gr = async (e, t, r, a, n) => {
740
+ }, Hr = async (e, t, r, a, n) => {
741
741
  let o, s;
742
742
  const i = new Uint8Array(atob(r.replace(e, "")).split("").map((d) => d.charCodeAt(0)));
743
743
  switch (a) {
@@ -773,24 +773,24 @@ const Wt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
773
773
  case "ECDH-ES+A128KW":
774
774
  case "ECDH-ES+A192KW":
775
775
  case "ECDH-ES+A256KW": {
776
- const d = lt(i);
776
+ const d = st(i);
777
777
  o = d.startsWith("P-") ? { name: "ECDH", namedCurve: d } : { name: d }, s = [];
778
778
  break;
779
779
  }
780
780
  case "EdDSA":
781
- o = { name: lt(i) }, s = ["verify"];
781
+ o = { name: st(i) }, s = ["verify"];
782
782
  break;
783
783
  default:
784
- throw new M('Invalid or unsupported "alg" (Algorithm) value');
784
+ throw new L('Invalid or unsupported "alg" (Algorithm) value');
785
785
  }
786
786
  return De.subtle.importKey(t, i, o, !1, s);
787
- }, Br = (e, t, r) => Gr(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
788
- async function Jr(e, t, r) {
787
+ }, Wr = (e, t, r) => Hr(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
788
+ async function Gr(e, t, r) {
789
789
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
790
790
  throw new TypeError('"spki" must be SPKI formatted string');
791
- return Br(e, t);
791
+ return Wr(e, t);
792
792
  }
793
- async function Vr(e, t) {
793
+ async function Br(e, t) {
794
794
  if (!he(e))
795
795
  throw new TypeError("JWK must be an object");
796
796
  switch (t || (t = e.alg), e.kty) {
@@ -800,15 +800,15 @@ async function Vr(e, t) {
800
800
  return X(e.k);
801
801
  case "RSA":
802
802
  if (e.oth !== void 0)
803
- throw new M('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
803
+ throw new L('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
804
804
  case "EC":
805
805
  case "OKP":
806
- return Kt({ ...e, alg: t });
806
+ return Mt({ ...e, alg: t });
807
807
  default:
808
- throw new M('Unsupported "kty" (Key Type) Parameter value');
808
+ throw new L('Unsupported "kty" (Key Type) Parameter value');
809
809
  }
810
810
  }
811
- const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) => {
811
+ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Fe = (e, t, r) => {
812
812
  var a, n;
813
813
  if (t.use !== void 0 && t.use !== "sig")
814
814
  throw new TypeError("Invalid key for this operation, when present its use must be sig");
@@ -817,32 +817,32 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
817
817
  if (t.alg !== void 0 && t.alg !== e)
818
818
  throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);
819
819
  return !0;
820
- }, Yr = (e, t, r, a) => {
820
+ }, Jr = (e, t, r, a) => {
821
821
  if (!(t instanceof Uint8Array)) {
822
822
  if (a && me(t)) {
823
- if ($r(t) && je(e, t, r))
823
+ if (Lr(t) && Fe(e, t, r))
824
824
  return;
825
825
  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');
826
826
  }
827
- if (!Ut(t))
828
- throw new TypeError($t(e, t, ...Ne, "Uint8Array", a ? "JSON Web Key" : null));
827
+ if (!$t(t))
828
+ throw new TypeError(Lt(e, t, ...Ne, "Uint8Array", a ? "JSON Web Key" : null));
829
829
  if (t.type !== "secret")
830
830
  throw new TypeError(`${de(t)} instances for symmetric algorithms must be of type "secret"`);
831
831
  }
832
- }, zr = (e, t, r, a) => {
832
+ }, Vr = (e, t, r, a) => {
833
833
  if (a && me(t))
834
834
  switch (r) {
835
835
  case "sign":
836
- if (Lr(t) && je(e, t, r))
836
+ if (Pr(t) && Fe(e, t, r))
837
837
  return;
838
838
  throw new TypeError("JSON Web Key for this operation be a private JWK");
839
839
  case "verify":
840
- if (Mr(t) && je(e, t, r))
840
+ if (Dr(t) && Fe(e, t, r))
841
841
  return;
842
842
  throw new TypeError("JSON Web Key for this operation be a public JWK");
843
843
  }
844
- if (!Ut(t))
845
- throw new TypeError($t(e, t, ...Ne, a ? "JSON Web Key" : null));
844
+ if (!$t(t))
845
+ throw new TypeError(Lt(e, t, ...Ne, a ? "JSON Web Key" : null));
846
846
  if (t.type === "secret")
847
847
  throw new TypeError(`${de(t)} instances for asymmetric algorithms must not be of type "secret"`);
848
848
  if (r === "sign" && t.type === "public")
@@ -854,12 +854,12 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
854
854
  if (t.algorithm && r === "encrypt" && t.type === "private")
855
855
  throw new TypeError(`${de(t)} instances for asymmetric algorithm encryption must be of type "public"`);
856
856
  };
857
- function Gt(e, t, r, a) {
858
- t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Yr(t, r, a, e) : zr(t, r, a, e);
857
+ function Ht(e, t, r, a) {
858
+ t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Jr(t, r, a, e) : Vr(t, r, a, e);
859
859
  }
860
- Gt.bind(void 0, !1);
861
- const dt = Gt.bind(void 0, !0);
862
- function Fr(e, t, r, a, n) {
860
+ Ht.bind(void 0, !1);
861
+ const it = Ht.bind(void 0, !0);
862
+ function Yr(e, t, r, a, n) {
863
863
  if (n.crit !== void 0 && (a == null ? void 0 : a.crit) === void 0)
864
864
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
865
865
  if (!a || a.crit === void 0)
@@ -870,7 +870,7 @@ function Fr(e, t, r, a, n) {
870
870
  r !== void 0 ? o = new Map([...Object.entries(r), ...t.entries()]) : o = t;
871
871
  for (const s of a.crit) {
872
872
  if (!o.has(s))
873
- throw new M(`Extension Header Parameter "${s}" is not recognized`);
873
+ throw new L(`Extension Header Parameter "${s}" is not recognized`);
874
874
  if (n[s] === void 0)
875
875
  throw new e(`Extension Header Parameter "${s}" is missing`);
876
876
  if (o.get(s) && a[s] === void 0)
@@ -878,13 +878,13 @@ function Fr(e, t, r, a, n) {
878
878
  }
879
879
  return new Set(a.crit);
880
880
  }
881
- const jr = (e, t) => {
881
+ const zr = (e, t) => {
882
882
  if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
883
883
  throw new TypeError(`"${e}" option must be an array of strings`);
884
884
  if (t)
885
885
  return new Set(t);
886
886
  };
887
- function qr(e, t) {
887
+ function Fr(e, t) {
888
888
  const r = `SHA-${e.slice(-3)}`;
889
889
  switch (e) {
890
890
  case "HS256":
@@ -906,30 +906,30 @@ function qr(e, t) {
906
906
  case "EdDSA":
907
907
  return { name: t.name };
908
908
  default:
909
- throw new M(`alg ${e} is not supported either by JOSE or your javascript runtime`);
909
+ throw new L(`alg ${e} is not supported either by JOSE or your javascript runtime`);
910
910
  }
911
911
  }
912
- async function Xr(e, t, r) {
913
- if (t = await Wr.normalizePublicKey(t, e), Pt(t))
914
- return Cr(t, e, r), t;
912
+ async function jr(e, t, r) {
913
+ if (t = await Kr.normalizePublicKey(t, e), Ct(t))
914
+ return Nr(t, e, r), t;
915
915
  if (t instanceof Uint8Array) {
916
916
  if (!e.startsWith("HS"))
917
- throw new TypeError(ct(t, ...Ne));
917
+ throw new TypeError(ot(t, ...Ne));
918
918
  return De.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
919
919
  }
920
- throw new TypeError(ct(t, ...Ne, "Uint8Array", "JSON Web Key"));
920
+ throw new TypeError(ot(t, ...Ne, "Uint8Array", "JSON Web Key"));
921
921
  }
922
- const Qr = async (e, t, r, a) => {
923
- const n = await Xr(e, t, "verify");
924
- Dr(e, n);
925
- const o = qr(e, n.algorithm);
922
+ const qr = async (e, t, r, a) => {
923
+ const n = await jr(e, t, "verify");
924
+ Or(e, n);
925
+ const o = Fr(e, n.algorithm);
926
926
  try {
927
927
  return await De.subtle.verify(o, n, r, a);
928
928
  } catch {
929
929
  return !1;
930
930
  }
931
931
  };
932
- async function Zr(e, t, r) {
932
+ async function Xr(e, t, r) {
933
933
  if (!he(e))
934
934
  throw new k("Flattened JWS must be an object");
935
935
  if (e.protected === void 0 && e.header === void 0)
@@ -950,37 +950,37 @@ async function Zr(e, t, r) {
950
950
  } catch {
951
951
  throw new k("JWS Protected Header is invalid");
952
952
  }
953
- if (!Or(a, e.header))
953
+ if (!xr(a, e.header))
954
954
  throw new k("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
955
955
  const n = {
956
956
  ...a,
957
957
  ...e.header
958
- }, o = Fr(k, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
958
+ }, o = Yr(k, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
959
959
  let s = !0;
960
960
  if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
961
961
  throw new k('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
962
962
  const { alg: i } = n;
963
963
  if (typeof i != "string" || !i)
964
964
  throw new k('JWS "alg" (Algorithm) Header Parameter missing or invalid');
965
- const d = jr("algorithms", r.algorithms);
965
+ const d = zr("algorithms", r.algorithms);
966
966
  if (d && !d.has(i))
967
- throw new Dt('"alg" (Algorithm) Header Parameter value not allowed');
967
+ throw new Ot('"alg" (Algorithm) Header Parameter value not allowed');
968
968
  if (s) {
969
969
  if (typeof e.payload != "string")
970
970
  throw new k("JWS Payload must be a string");
971
971
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
972
972
  throw new k("JWS Payload must be a string or an Uint8Array instance");
973
973
  let m = !1;
974
- typeof t == "function" ? (t = await t(a, e), m = !0, dt(i, t, "verify"), me(t) && (t = await Vr(t, i))) : dt(i, t, "verify");
975
- const p = wr(we.encode(e.protected ?? ""), we.encode("."), typeof e.payload == "string" ? we.encode(e.payload) : e.payload);
974
+ typeof t == "function" ? (t = await t(a, e), m = !0, it(i, t, "verify"), me(t) && (t = await Br(t, i))) : it(i, t, "verify");
975
+ const p = br(we.encode(e.protected ?? ""), we.encode("."), typeof e.payload == "string" ? we.encode(e.payload) : e.payload);
976
976
  let u;
977
977
  try {
978
978
  u = X(e.signature);
979
979
  } catch {
980
980
  throw new k("Failed to base64url decode the signature");
981
981
  }
982
- if (!await Qr(i, t, u, p))
983
- throw new Lt();
982
+ if (!await qr(i, t, u, p))
983
+ throw new Pt();
984
984
  let c;
985
985
  if (s)
986
986
  try {
@@ -992,17 +992,17 @@ async function Zr(e, t, r) {
992
992
  const h = { payload: c };
993
993
  return e.protected !== void 0 && (h.protectedHeader = a), e.header !== void 0 && (h.unprotectedHeader = e.header), m ? { ...h, key: t } : h;
994
994
  }
995
- async function ea(e, t, r) {
995
+ async function Qr(e, t, r) {
996
996
  if (e instanceof Uint8Array && (e = be.decode(e)), typeof e != "string")
997
997
  throw new k("Compact JWS must be a string or Uint8Array");
998
998
  const { 0: a, 1: n, 2: o, length: s } = e.split(".");
999
999
  if (s !== 3)
1000
1000
  throw new k("Invalid Compact JWS");
1001
- const i = await Zr({ payload: n, protected: a, signature: o }, t, r), d = { payload: i.payload, protectedHeader: i.protectedHeader };
1001
+ const i = await Xr({ payload: n, protected: a, signature: o }, t, r), d = { payload: i.payload, protectedHeader: i.protectedHeader };
1002
1002
  return typeof t == "function" ? { ...d, key: i.key } : d;
1003
1003
  }
1004
- const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Jt = Bt * 60, et = Jt * 24, ra = et * 7, aa = et * 365.25, na = /^(\+|\-)? ?(\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) => {
1005
- const t = na.exec(e);
1004
+ const Zr = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Gt = Wt * 60, Qe = Gt * 24, ea = Qe * 7, ta = Qe * 365.25, ra = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, ct = (e) => {
1005
+ const t = ra.exec(e);
1006
1006
  if (!t || t[4] && t[1])
1007
1007
  throw new TypeError("Invalid time period format");
1008
1008
  const r = parseFloat(t[2]), a = t[3].toLowerCase();
@@ -1020,56 +1020,56 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Jt = Bt * 60, et = Jt
1020
1020
  case "min":
1021
1021
  case "mins":
1022
1022
  case "m":
1023
- n = Math.round(r * Bt);
1023
+ n = Math.round(r * Wt);
1024
1024
  break;
1025
1025
  case "hour":
1026
1026
  case "hours":
1027
1027
  case "hr":
1028
1028
  case "hrs":
1029
1029
  case "h":
1030
- n = Math.round(r * Jt);
1030
+ n = Math.round(r * Gt);
1031
1031
  break;
1032
1032
  case "day":
1033
1033
  case "days":
1034
1034
  case "d":
1035
- n = Math.round(r * et);
1035
+ n = Math.round(r * Qe);
1036
1036
  break;
1037
1037
  case "week":
1038
1038
  case "weeks":
1039
1039
  case "w":
1040
- n = Math.round(r * ra);
1040
+ n = Math.round(r * ea);
1041
1041
  break;
1042
1042
  default:
1043
- n = Math.round(r * aa);
1043
+ n = Math.round(r * ta);
1044
1044
  break;
1045
1045
  }
1046
1046
  return t[1] === "-" || t[4] === "ago" ? -n : n;
1047
- }, ht = (e) => e.toLowerCase().replace(/^application\//, ""), oa = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, sa = (e, t, r = {}) => {
1047
+ }, lt = (e) => e.toLowerCase().replace(/^application\//, ""), aa = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, na = (e, t, r = {}) => {
1048
1048
  let a;
1049
1049
  try {
1050
1050
  a = JSON.parse(be.decode(t));
1051
1051
  } catch {
1052
1052
  }
1053
1053
  if (!he(a))
1054
- throw new J("JWT Claims Set must be a top-level JSON object");
1054
+ throw new B("JWT Claims Set must be a top-level JSON object");
1055
1055
  const { typ: n } = r;
1056
- if (n && (typeof e.typ != "string" || ht(e.typ) !== ht(n)))
1057
- throw new L('unexpected "typ" JWT header value', a, "typ", "check_failed");
1056
+ if (n && (typeof e.typ != "string" || lt(e.typ) !== lt(n)))
1057
+ throw new D('unexpected "typ" JWT header value', a, "typ", "check_failed");
1058
1058
  const { requiredClaims: o = [], issuer: s, subject: i, audience: d, maxTokenAge: m } = r, p = [...o];
1059
1059
  m !== void 0 && p.push("iat"), d !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
1060
1060
  for (const f of new Set(p.reverse()))
1061
1061
  if (!(f in a))
1062
- throw new L(`missing required "${f}" claim`, a, f, "missing");
1062
+ throw new D(`missing required "${f}" claim`, a, f, "missing");
1063
1063
  if (s && !(Array.isArray(s) ? s : [s]).includes(a.iss))
1064
- throw new L('unexpected "iss" claim value', a, "iss", "check_failed");
1064
+ throw new D('unexpected "iss" claim value', a, "iss", "check_failed");
1065
1065
  if (i && a.sub !== i)
1066
- throw new L('unexpected "sub" claim value', a, "sub", "check_failed");
1067
- if (d && !oa(a.aud, typeof d == "string" ? [d] : d))
1068
- throw new L('unexpected "aud" claim value', a, "aud", "check_failed");
1066
+ throw new D('unexpected "sub" claim value', a, "sub", "check_failed");
1067
+ if (d && !aa(a.aud, typeof d == "string" ? [d] : d))
1068
+ throw new D('unexpected "aud" claim value', a, "aud", "check_failed");
1069
1069
  let u;
1070
1070
  switch (typeof r.clockTolerance) {
1071
1071
  case "string":
1072
- u = ut(r.clockTolerance);
1072
+ u = ct(r.clockTolerance);
1073
1073
  break;
1074
1074
  case "number":
1075
1075
  u = r.clockTolerance;
@@ -1080,142 +1080,142 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Jt = Bt * 60, et = Jt
1080
1080
  default:
1081
1081
  throw new TypeError("Invalid clockTolerance option type");
1082
1082
  }
1083
- const { currentDate: c } = r, h = ta(c || /* @__PURE__ */ new Date());
1083
+ const { currentDate: c } = r, h = Zr(c || /* @__PURE__ */ new Date());
1084
1084
  if ((a.iat !== void 0 || m) && typeof a.iat != "number")
1085
- throw new L('"iat" claim must be a number', a, "iat", "invalid");
1085
+ throw new D('"iat" claim must be a number', a, "iat", "invalid");
1086
1086
  if (a.nbf !== void 0) {
1087
1087
  if (typeof a.nbf != "number")
1088
- throw new L('"nbf" claim must be a number', a, "nbf", "invalid");
1088
+ throw new D('"nbf" claim must be a number', a, "nbf", "invalid");
1089
1089
  if (a.nbf > h + u)
1090
- throw new L('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
1090
+ throw new D('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
1091
1091
  }
1092
1092
  if (a.exp !== void 0) {
1093
1093
  if (typeof a.exp != "number")
1094
- throw new L('"exp" claim must be a number', a, "exp", "invalid");
1094
+ throw new D('"exp" claim must be a number', a, "exp", "invalid");
1095
1095
  if (a.exp <= h - u)
1096
- throw new Fe('"exp" claim timestamp check failed', a, "exp", "check_failed");
1096
+ throw new ze('"exp" claim timestamp check failed', a, "exp", "check_failed");
1097
1097
  }
1098
1098
  if (m) {
1099
- const f = h - a.iat, E = typeof m == "number" ? m : ut(m);
1099
+ const f = h - a.iat, E = typeof m == "number" ? m : ct(m);
1100
1100
  if (f - u > E)
1101
- throw new Fe('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
1101
+ throw new ze('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
1102
1102
  if (f < 0 - u)
1103
- throw new L('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
1103
+ throw new D('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
1104
1104
  }
1105
1105
  return a;
1106
1106
  };
1107
- async function ia(e, t, r) {
1107
+ async function oa(e, t, r) {
1108
1108
  var a;
1109
- const n = await ea(e, t, r);
1109
+ const n = await Qr(e, t, r);
1110
1110
  if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
1111
- throw new J("JWTs MUST NOT use unencoded payload");
1112
- const o = { payload: sa(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
1111
+ throw new B("JWTs MUST NOT use unencoded payload");
1112
+ const o = { payload: na(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
1113
1113
  return typeof t == "function" ? { ...o, key: n.key } : o;
1114
1114
  }
1115
- const ca = X;
1116
- function la(e) {
1115
+ const sa = X;
1116
+ function ia(e) {
1117
1117
  if (typeof e != "string")
1118
- throw new J("JWTs must use Compact JWS serialization, JWT must be a string");
1118
+ throw new B("JWTs must use Compact JWS serialization, JWT must be a string");
1119
1119
  const { 1: t, length: r } = e.split(".");
1120
1120
  if (r === 5)
1121
- throw new J("Only JWTs using Compact JWS serialization can be decoded");
1121
+ throw new B("Only JWTs using Compact JWS serialization can be decoded");
1122
1122
  if (r !== 3)
1123
- throw new J("Invalid JWT");
1123
+ throw new B("Invalid JWT");
1124
1124
  if (!t)
1125
- throw new J("JWTs must contain a payload");
1125
+ throw new B("JWTs must contain a payload");
1126
1126
  let a;
1127
1127
  try {
1128
- a = ca(t);
1128
+ a = sa(t);
1129
1129
  } catch {
1130
- throw new J("Failed to base64url decode the payload");
1130
+ throw new B("Failed to base64url decode the payload");
1131
1131
  }
1132
1132
  let n;
1133
1133
  try {
1134
1134
  n = JSON.parse(be.decode(a));
1135
1135
  } catch {
1136
- throw new J("Failed to parse the decoded payload as JSON");
1136
+ throw new B("Failed to parse the decoded payload as JSON");
1137
1137
  }
1138
1138
  if (!he(n))
1139
- throw new J("Invalid JWT Claims Set");
1139
+ throw new B("Invalid JWT Claims Set");
1140
1140
  return n;
1141
1141
  }
1142
1142
  const ye = async (e) => {
1143
1143
  try {
1144
- const t = v.ALG, r = await Jr(Er, t);
1145
- return await ia(e, r, {
1146
- issuer: v.ISSUER
1144
+ const t = A.ALG, r = await Gr(fr, t);
1145
+ return await oa(e, r, {
1146
+ issuer: A.ISSUER
1147
1147
  });
1148
1148
  } catch {
1149
1149
  return;
1150
1150
  }
1151
- }, da = (e) => {
1151
+ }, ca = (e) => {
1152
1152
  try {
1153
- return la(e);
1153
+ return ia(e);
1154
1154
  } catch {
1155
1155
  return;
1156
1156
  }
1157
1157
  }, S = [];
1158
1158
  for (let e = 0; e < 256; ++e)
1159
1159
  S.push((e + 256).toString(16).slice(1));
1160
- function ua(e, t = 0) {
1160
+ function la(e, t = 0) {
1161
1161
  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();
1162
1162
  }
1163
1163
  let We;
1164
- const ha = new Uint8Array(16);
1165
- function ma() {
1164
+ const da = new Uint8Array(16);
1165
+ function ua() {
1166
1166
  if (!We) {
1167
1167
  if (typeof crypto > "u" || !crypto.getRandomValues)
1168
1168
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1169
1169
  We = crypto.getRandomValues.bind(crypto);
1170
1170
  }
1171
- return We(ha);
1171
+ return We(da);
1172
1172
  }
1173
- const pa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mt = { randomUUID: pa };
1174
- function pt(e, t, r) {
1175
- if (mt.randomUUID && !t && !e)
1176
- return mt.randomUUID();
1173
+ const ha = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), dt = { randomUUID: ha };
1174
+ function ut(e, t, r) {
1175
+ if (dt.randomUUID && !t && !e)
1176
+ return dt.randomUUID();
1177
1177
  e = e || {};
1178
- const a = e.random || (e.rng || ma)();
1179
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ua(a);
1178
+ const a = e.random || (e.rng || ua)();
1179
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, la(a);
1180
1180
  }
1181
- const gt = globalThis.crypto, ga = (e) => `${pt()}${pt()}`.slice(0, e), ya = (e) => btoa(
1181
+ const ht = globalThis.crypto, ma = (e) => `${ut()}${ut()}`.slice(0, e), pa = (e) => btoa(
1182
1182
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
1183
1183
  );
1184
- async function fa(e) {
1185
- if (!gt.subtle)
1184
+ async function ga(e) {
1185
+ if (!ht.subtle)
1186
1186
  throw new Error(
1187
1187
  "crypto.subtle is available only in secure contexts (HTTPS)."
1188
1188
  );
1189
- const t = new TextEncoder().encode(e), r = await gt.subtle.digest("SHA-256", t);
1190
- return ya(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1189
+ const t = new TextEncoder().encode(e), r = await ht.subtle.digest("SHA-256", t);
1190
+ return pa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1191
1191
  }
1192
- async function ba(e) {
1193
- const t = ga(43), r = await fa(t);
1192
+ async function ya(e) {
1193
+ const t = ma(43), r = await ga(t);
1194
1194
  return {
1195
1195
  code_verifier: t,
1196
1196
  code_challenge: r
1197
1197
  };
1198
1198
  }
1199
- function Vt(e, t) {
1199
+ function Bt(e, t) {
1200
1200
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
1201
1201
  }
1202
- const yt = (e, t) => {
1202
+ const mt = (e, t) => {
1203
1203
  const r = JSON.stringify(
1204
1204
  typeof t == "function" ? t() : t
1205
1205
  );
1206
- window.localStorage.setItem(e, r), Vt(e, r);
1207
- }, Ea = (e) => {
1208
- window.localStorage.removeItem(e), Vt(e, null);
1209
- }, ft = (e) => window.localStorage.getItem(e), wa = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1206
+ window.localStorage.setItem(e, r), Bt(e, r);
1207
+ }, fa = (e) => {
1208
+ window.localStorage.removeItem(e), Bt(e, null);
1209
+ }, pt = (e) => window.localStorage.getItem(e), ba = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1210
1210
  function Ie({
1211
1211
  key: e,
1212
1212
  initialValue: t
1213
1213
  }) {
1214
- const r = lr(wa, () => ft(e)), a = q(
1214
+ const r = ir(ba, () => pt(e)), a = q(
1215
1215
  (s) => {
1216
1216
  try {
1217
1217
  const i = typeof s == "function" ? s(JSON.parse(r)) : s;
1218
- i == null ? Ea(e) : yt(e, i);
1218
+ i == null ? fa(e) : mt(e, i);
1219
1219
  } catch (i) {
1220
1220
  console.warn(i);
1221
1221
  }
@@ -1228,40 +1228,40 @@ function Ie({
1228
1228
  }, [a]);
1229
1229
  return Q(() => {
1230
1230
  try {
1231
- ft(e) === null && typeof t < "u" && yt(e, t);
1231
+ pt(e) === null && typeof t < "u" && mt(e, t);
1232
1232
  } catch (s) {
1233
1233
  console.warn(s);
1234
1234
  }
1235
1235
  }, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
1236
1236
  }
1237
- const A = [];
1237
+ const _ = [];
1238
1238
  for (let e = 0; e < 256; ++e)
1239
- A.push((e + 256).toString(16).slice(1));
1240
- function Ta(e, t = 0) {
1241
- 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();
1239
+ _.push((e + 256).toString(16).slice(1));
1240
+ function Ea(e, t = 0) {
1241
+ return (_[e[t + 0]] + _[e[t + 1]] + _[e[t + 2]] + _[e[t + 3]] + "-" + _[e[t + 4]] + _[e[t + 5]] + "-" + _[e[t + 6]] + _[e[t + 7]] + "-" + _[e[t + 8]] + _[e[t + 9]] + "-" + _[e[t + 10]] + _[e[t + 11]] + _[e[t + 12]] + _[e[t + 13]] + _[e[t + 14]] + _[e[t + 15]]).toLowerCase();
1242
1242
  }
1243
1243
  let Ge;
1244
- const Ia = new Uint8Array(16);
1245
- function _a() {
1244
+ const wa = new Uint8Array(16);
1245
+ function Ta() {
1246
1246
  if (!Ge) {
1247
1247
  if (typeof crypto > "u" || !crypto.getRandomValues)
1248
1248
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1249
1249
  Ge = crypto.getRandomValues.bind(crypto);
1250
1250
  }
1251
- return Ge(Ia);
1251
+ return Ge(wa);
1252
1252
  }
1253
- const ka = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), bt = { randomUUID: ka };
1253
+ const Ia = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), gt = { randomUUID: Ia };
1254
1254
  function Be(e, t, r) {
1255
- if (bt.randomUUID && !t && !e)
1256
- return bt.randomUUID();
1255
+ if (gt.randomUUID && !t && !e)
1256
+ return gt.randomUUID();
1257
1257
  e = e || {};
1258
- const a = e.random || (e.rng || _a)();
1259
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ta(a);
1258
+ const a = e.random || (e.rng || Ta)();
1259
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ea(a);
1260
1260
  }
1261
- const oe = "Your session has expired. For your security, please log in again to continue.", Sa = "Your session has been successfully terminated.", Je = "Login failed. Please try again.", Aa = "Error getting access token, please re-authenticate.", va = "You forgot to wrap your component in <AuthProvider>.", Ce = {
1261
+ const oe = "Your session has expired. For your security, please log in again to continue.", ka = "Your session has been successfully terminated.", Je = "Login failed. Please try again.", Sa = "Error getting access token, please re-authenticate.", _a = "You forgot to wrap your component in <AuthProvider>.", Ce = {
1262
1262
  dev: "https://auth.gizmette.local.com:3003",
1263
1263
  prod: "https://mylogin.gizmette.com/auth"
1264
- }, _e = "@@auth@@", ge = "LOADING", Ae = "LOGIN", Yt = "LOGOUT", Ee = "success", Y = "failure", zt = "include", Ft = "POST", jt = "application/json", ke = {
1264
+ }, ke = "@@auth@@", ge = "LOADING", Ae = "LOGIN", Jt = "LOGOUT", Ee = "success", V = "failure", Vt = "include", Yt = "POST", zt = "application/json", Se = {
1265
1265
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
1266
1266
  $clientId: String!,
1267
1267
  $username: String!,
@@ -1344,19 +1344,19 @@ const oe = "Your session has expired. For your security, please log in again to
1344
1344
  }`
1345
1345
  }, se = {
1346
1346
  GET_REGISTRATION_OPTIONS: {
1347
- schema: ke.GET_REGISTRATION_OPTIONS,
1347
+ schema: Se.GET_REGISTRATION_OPTIONS,
1348
1348
  method: "getPasskeyRegistrationOptions"
1349
1349
  },
1350
1350
  VERIFY_REGISTRATION: {
1351
- schema: ke.VERIFY_REGISTRATION,
1351
+ schema: Se.VERIFY_REGISTRATION,
1352
1352
  method: "verifyPasskeyRegistration"
1353
1353
  },
1354
1354
  GET_AUTHENTICATION_OPTIONS: {
1355
- schema: ke.GET_AUTHENTICATION_OPTIONS,
1355
+ schema: Se.GET_AUTHENTICATION_OPTIONS,
1356
1356
  method: "getPasskeyAuthenticationOptions"
1357
1357
  },
1358
1358
  VERIFY_AUTHENTICATION: {
1359
- schema: ke.VERIFY_AUTHENTICATION,
1359
+ schema: Se.VERIFY_AUTHENTICATION,
1360
1360
  method: "verifyPasskeyAuthentication"
1361
1361
  }
1362
1362
  }, ie = async ({
@@ -1367,14 +1367,14 @@ const oe = "Your session has expired. For your security, please log in again to
1367
1367
  }) => {
1368
1368
  try {
1369
1369
  const n = `Bearer ${e}`, o = await fetch(
1370
- qt ? `${Ce.dev}/graphql` : `${Ce.prod}/graphql`,
1370
+ Ft ? `${Ce.dev}/graphql` : `${Ce.prod}/graphql`,
1371
1371
  {
1372
- credentials: zt,
1373
- method: Ft,
1372
+ credentials: Vt,
1373
+ method: Yt,
1374
1374
  headers: {
1375
1375
  authorization: n,
1376
- "Content-Type": jt,
1377
- [Ot.CLIENT_ID]: `${r}`
1376
+ "Content-Type": zt,
1377
+ [xt.CLIENT_ID]: `${r}`
1378
1378
  },
1379
1379
  body: JSON.stringify({
1380
1380
  query: t.schema,
@@ -1383,14 +1383,14 @@ const oe = "Your session has expired. For your security, please log in again to
1383
1383
  }
1384
1384
  );
1385
1385
  if (o.status !== 200)
1386
- return { status: Y, data: [] };
1386
+ return { status: V, data: [] };
1387
1387
  const { data: s } = await o.json();
1388
1388
  return {
1389
1389
  status: Ee,
1390
1390
  data: s[t.method]
1391
1391
  };
1392
1392
  } catch (n) {
1393
- return console.error(n), { status: Y, data: [] };
1393
+ return console.error(n), { status: V, data: [] };
1394
1394
  }
1395
1395
  }, Le = async ({
1396
1396
  type: e,
@@ -1399,42 +1399,42 @@ const oe = "Your session has expired. For your security, please log in again to
1399
1399
  }) => {
1400
1400
  try {
1401
1401
  const a = await fetch(
1402
- qt ? `${Ce.dev}/${e}` : `${Ce.prod}/${e}`,
1402
+ Ft ? `${Ce.dev}/${e}` : `${Ce.prod}/${e}`,
1403
1403
  {
1404
- credentials: zt,
1405
- method: Ft,
1404
+ credentials: Vt,
1405
+ method: Yt,
1406
1406
  headers: {
1407
- "Content-Type": jt,
1408
- [Ot.CLIENT_ID]: `${t}`
1407
+ "Content-Type": zt,
1408
+ [xt.CLIENT_ID]: `${t}`
1409
1409
  },
1410
1410
  body: JSON.stringify(r)
1411
1411
  }
1412
1412
  );
1413
1413
  if (a.status !== 200)
1414
- return { status: Y, data: [] };
1414
+ return { status: V, data: [] };
1415
1415
  const { data: n } = await a.json();
1416
1416
  return {
1417
1417
  status: Ee,
1418
1418
  data: n || []
1419
1419
  };
1420
1420
  } catch (a) {
1421
- return console.error(a), { status: Y, data: [] };
1421
+ return console.error(a), { status: V, data: [] };
1422
1422
  }
1423
- }, Ra = process.env.NODE_ENV === "production", qt = !Ra, Xt = {
1423
+ }, Aa = process.env.NODE_ENV === "production", Ft = !Aa, jt = {
1424
1424
  isLoading: !0,
1425
1425
  isAuthenticated: !1,
1426
1426
  user: void 0,
1427
1427
  logoutReason: "",
1428
1428
  debug: !1,
1429
1429
  authenticationType: ""
1430
- }, Na = (e) => {
1430
+ }, va = (e) => {
1431
1431
  try {
1432
- const t = da(e);
1433
- return t ? t[v.USER_ID_KEY] : "";
1432
+ const t = ca(e);
1433
+ return t ? t[A.USER_ID_KEY] : "";
1434
1434
  } catch {
1435
1435
  return "";
1436
1436
  }
1437
- }, xa = async ({
1437
+ }, Ra = async ({
1438
1438
  userId: e,
1439
1439
  clientId: t,
1440
1440
  domain: r,
@@ -1451,14 +1451,14 @@ const oe = "Your session has expired. For your security, please log in again to
1451
1451
  domain: r,
1452
1452
  idToken: a
1453
1453
  }
1454
- })) == null ? void 0 : n.status) || Y
1454
+ })) == null ? void 0 : n.status) || V
1455
1455
  };
1456
1456
  } catch {
1457
1457
  return {
1458
- status: Y
1458
+ status: V
1459
1459
  };
1460
1460
  }
1461
- }, Ca = async ({
1461
+ }, Na = async ({
1462
1462
  username: e,
1463
1463
  password: t,
1464
1464
  clientId: r,
@@ -1487,12 +1487,12 @@ const oe = "Your session has expired. For your security, please log in again to
1487
1487
  ua: m
1488
1488
  }
1489
1489
  }), c = await ye((p = u == null ? void 0 : u.data) == null ? void 0 : p.idToken);
1490
- return c && c.payload[v.USER_ID_KEY] !== "" && c.payload[v.NONCE_KEY] === a ? {
1490
+ return c && c.payload[A.USER_ID_KEY] !== "" && c.payload[A.NONCE_KEY] === a ? {
1491
1491
  idToken: u.data.idToken,
1492
1492
  accessToken: u.data.accessToken,
1493
1493
  refreshToken: u.data.refreshToken,
1494
- userId: c.payload[v.USER_ID_KEY],
1495
- email: c.payload[v.EMAIL_KEY],
1494
+ userId: c.payload[A.USER_ID_KEY],
1495
+ email: c.payload[A.EMAIL_KEY],
1496
1496
  status: !0
1497
1497
  } : {
1498
1498
  status: !1
@@ -1502,7 +1502,7 @@ const oe = "Your session has expired. For your security, please log in again to
1502
1502
  status: !1
1503
1503
  };
1504
1504
  }
1505
- }, Oa = async ({
1505
+ }, xa = async ({
1506
1506
  nonce: e,
1507
1507
  clientId: t,
1508
1508
  code_challenge: r
@@ -1522,16 +1522,16 @@ const oe = "Your session has expired. For your security, please log in again to
1522
1522
  status: Ee,
1523
1523
  data: n.data.code
1524
1524
  } : {
1525
- status: Y,
1525
+ status: V,
1526
1526
  data: ""
1527
1527
  };
1528
1528
  } catch {
1529
1529
  return {
1530
- status: Y,
1530
+ status: V,
1531
1531
  data: ""
1532
1532
  };
1533
1533
  }
1534
- }, Pa = async ({
1534
+ }, Ca = async ({
1535
1535
  clientId: e,
1536
1536
  userId: t,
1537
1537
  nonce: r,
@@ -1553,10 +1553,10 @@ const oe = "Your session has expired. For your security, please log in again to
1553
1553
  domain: o
1554
1554
  }
1555
1555
  }), d = await ye((s = i == null ? void 0 : i.data) == null ? void 0 : s.accessToken);
1556
- return d && d.payload[v.USER_ID_KEY] !== "" && d.payload[v.NONCE_KEY] === r ? {
1556
+ return d && d.payload[A.USER_ID_KEY] !== "" && d.payload[A.NONCE_KEY] === r ? {
1557
1557
  accessToken: i.data.accessToken,
1558
1558
  refreshToken: i.data.refreshToken,
1559
- userId: d.payload[v.USER_ID_KEY],
1559
+ userId: d.payload[A.USER_ID_KEY],
1560
1560
  status: !0
1561
1561
  } : {
1562
1562
  status: !1
@@ -1567,7 +1567,7 @@ const oe = "Your session has expired. For your security, please log in again to
1567
1567
  };
1568
1568
  }
1569
1569
  };
1570
- class Da {
1570
+ class Oa {
1571
1571
  constructor(t = null, r = null) {
1572
1572
  Ue(this, "refreshTokenPromise", null), Ue(this, "accessToken"), Ue(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
1573
1573
  }
@@ -1596,8 +1596,8 @@ class Da {
1596
1596
  domain: n
1597
1597
  }) {
1598
1598
  const o = await ye(this.refreshToken);
1599
- if (o && o.payload[v.USER_ID_KEY] !== "") {
1600
- const s = await Pa({
1599
+ if (o && o.payload[A.USER_ID_KEY] !== "") {
1600
+ const s = await Ca({
1601
1601
  clientId: t,
1602
1602
  userId: r,
1603
1603
  nonce: a,
@@ -1610,22 +1610,22 @@ class Da {
1610
1610
  newAccessToken: s.accessToken,
1611
1611
  newRefreshToken: s.refreshToken
1612
1612
  }) : {
1613
- status: Y
1613
+ status: V
1614
1614
  };
1615
1615
  } else
1616
1616
  return {
1617
- status: Y
1617
+ status: V
1618
1618
  };
1619
1619
  }
1620
1620
  }
1621
- const La = (e) => q(
1621
+ const Pa = (e) => q(
1622
1622
  (...t) => {
1623
1623
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
1624
1624
  },
1625
1625
  [e]
1626
1626
  ), ce = () => {
1627
- throw new Error(va);
1628
- }, Qt = cr({
1627
+ throw new Error(_a);
1628
+ }, qt = sr({
1629
1629
  isAuthenticated: !1,
1630
1630
  isLoading: !1,
1631
1631
  login: ce,
@@ -1636,11 +1636,11 @@ const La = (e) => q(
1636
1636
  loginWithPasskey: ce,
1637
1637
  logoutReason: "",
1638
1638
  authenticationType: ""
1639
- }), Ma = P.createContext({
1640
- state: Xt,
1639
+ }), Da = z.createContext({
1640
+ state: jt,
1641
1641
  dispatch: () => {
1642
1642
  }
1643
- }), $a = (e, t) => (t == null ? void 0 : t.type) === ge ? {
1643
+ }), La = (e, t) => (t == null ? void 0 : t.type) === ge ? {
1644
1644
  ...e,
1645
1645
  isLoading: t.payload.isLoading
1646
1646
  } : (t == null ? void 0 : t.type) === Ae ? {
@@ -1650,82 +1650,82 @@ const La = (e) => q(
1650
1650
  user: t.payload.user,
1651
1651
  authenticationType: t.payload.authenticationType,
1652
1652
  logoutReason: ""
1653
- } : (t == null ? void 0 : t.type) === Yt ? {
1653
+ } : (t == null ? void 0 : t.type) === Jt ? {
1654
1654
  ...e,
1655
1655
  isLoading: !1,
1656
1656
  isAuthenticated: !1,
1657
1657
  user: void 0,
1658
1658
  authenticationType: "",
1659
1659
  logoutReason: t.payload.logoutReason
1660
- } : e, Ua = ({
1660
+ } : e, $a = ({
1661
1661
  children: e,
1662
1662
  sessionExpiration: t,
1663
1663
  clientId: r,
1664
1664
  domain: a = "",
1665
1665
  debug: n = !1
1666
1666
  }) => {
1667
- const [o, s] = _t($a, {
1668
- ...Xt,
1667
+ const [o, s] = wt(La, {
1668
+ ...jt,
1669
1669
  debug: n
1670
- }), i = La(n), d = $(!1), [m, p, , u] = Ie({
1671
- key: `${_e}::${r}::@@user@@`
1670
+ }), i = Pa(n), d = $(!1), [m, p, , u] = Ie({
1671
+ key: `${ke}::${r}::@@user@@`
1672
1672
  }), [c, h, , f] = Ie({
1673
- key: `${_e}::${r}::@@access@@`
1674
- }), [E, w, , _] = Ie(
1673
+ key: `${ke}::${r}::@@access@@`
1674
+ }), [E, w, , I] = Ie(
1675
1675
  {
1676
- key: `${_e}::${r}::@@refresh@@`
1676
+ key: `${ke}::${r}::@@refresh@@`
1677
1677
  }
1678
- ), [U, K, , H] = Ie({
1679
- key: `${_e}::${r}::@@nonce@@`
1680
- }), O = new Da(c, E), W = q(() => {
1681
- i("removeLocalStorage: removing local storage"), u(), f(), _(), H();
1678
+ ), [M, U, , K] = Ie({
1679
+ key: `${ke}::${r}::@@nonce@@`
1680
+ }), O = new Oa(c, E), H = q(() => {
1681
+ i("removeLocalStorage: removing local storage"), u(), f(), I(), K();
1682
1682
  }, [
1683
1683
  f,
1684
1684
  u,
1685
- H,
1686
- _,
1685
+ K,
1686
+ I,
1687
1687
  i
1688
- ]), G = q(
1688
+ ]), W = q(
1689
1689
  (y) => {
1690
1690
  i(
1691
1691
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
1692
1692
  y
1693
1693
  ), s({
1694
- type: Yt,
1694
+ type: Jt,
1695
1695
  payload: {
1696
1696
  logoutReason: y || oe
1697
1697
  }
1698
- }), W(), s({ type: ge, payload: { isLoading: !1 } });
1698
+ }), H(), s({ type: ge, payload: { isLoading: !1 } });
1699
1699
  },
1700
- [W, i]
1700
+ [H, i]
1701
1701
  ), x = q(
1702
1702
  async (y) => {
1703
1703
  i("invalidateAndLogout: invalidating and logging out");
1704
- const { user: T } = o, b = (T == null ? void 0 : T.userId) || Na(m);
1704
+ const { user: T } = o, b = (T == null ? void 0 : T.userId) || va(m);
1705
1705
  b || i(
1706
1706
  "invalidateAndLogout: user cannot be identified, logging out without userId"
1707
- ), await xa({
1707
+ ), await Ra({
1708
1708
  userId: b,
1709
1709
  clientId: r,
1710
1710
  domain: a,
1711
1711
  idToken: m
1712
- }), G(y || oe);
1712
+ }), W(y || oe);
1713
1713
  },
1714
- [m, o, r, a, G, i]
1714
+ [m, o, r, a, W, i]
1715
1715
  );
1716
1716
  Q(() => {
1717
1717
  if (!d.current)
1718
1718
  return o.isLoading && m !== null ? (async () => {
1719
1719
  try {
1720
1720
  const y = await ye(m);
1721
- y && y.payload[v.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
1721
+ y && y.payload[A.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
1722
1722
  type: Ae,
1723
1723
  payload: {
1724
- authenticationType: y.payload[v.AUTH_TYPE_KEY],
1724
+ authenticationType: y.payload[A.AUTH_TYPE_KEY],
1725
1725
  user: {
1726
- userId: y.payload[v.USER_ID_KEY],
1727
- username: y.payload[v.USERNAME_KEY],
1728
- email: y.payload[v.EMAIL_KEY]
1726
+ userId: y.payload[A.USER_ID_KEY],
1727
+ username: y.payload[A.USERNAME_KEY],
1728
+ email: y.payload[A.EMAIL_KEY]
1729
1729
  }
1730
1730
  }
1731
1731
  })) : (i("useEffect: invalid JWT, invalidating and logging out"), await x(oe));
@@ -1739,23 +1739,23 @@ const La = (e) => q(
1739
1739
  };
1740
1740
  }, [o.isLoading, m, x, i]);
1741
1741
  const pe = async (y, T) => {
1742
- s({ type: ge, payload: { isLoading: !0 } }), W();
1742
+ s({ type: ge, payload: { isLoading: !0 } }), H();
1743
1743
  const b = Be();
1744
- K(b), i("login: Logging in with password");
1745
- const { code_verifier: te, code_challenge: ir } = await ba(), st = await Oa({
1744
+ U(b), i("login: Logging in with password");
1745
+ const { code_verifier: te, code_challenge: or } = await ya(), at = await xa({
1746
1746
  nonce: b,
1747
1747
  clientId: r,
1748
- code_challenge: ir
1748
+ code_challenge: or
1749
1749
  });
1750
- if (st.status) {
1751
- const re = await Ca({
1750
+ if (at.status) {
1751
+ const re = await Na({
1752
1752
  username: y,
1753
1753
  password: T,
1754
1754
  clientId: r,
1755
1755
  sessionExpiration: t,
1756
1756
  nonce: b,
1757
1757
  type: ue.CODE,
1758
- code: st.data,
1758
+ code: at.data,
1759
1759
  code_verifier: te,
1760
1760
  domain: a,
1761
1761
  ua: navigator.userAgent
@@ -1770,26 +1770,26 @@ const La = (e) => q(
1770
1770
  email: re.email
1771
1771
  }
1772
1772
  }
1773
- }), !0) : (G(Je), !1);
1773
+ }), !0) : (W(Je), !1);
1774
1774
  }
1775
1775
  return !1;
1776
1776
  }, Z = async (y) => {
1777
- y == null || y.preventDefault(), await x(Sa);
1778
- }, R = async () => {
1777
+ y == null || y.preventDefault(), await x(ka);
1778
+ }, v = async () => {
1779
1779
  const { isAuthenticated: y, user: T } = o;
1780
1780
  try {
1781
1781
  if (y && T && T.userId) {
1782
1782
  if (c) {
1783
1783
  i("getAccessToken");
1784
1784
  const te = await ye(c);
1785
- if (te && te.payload[v.USER_ID_KEY] !== "")
1785
+ if (te && te.payload[A.USER_ID_KEY] !== "")
1786
1786
  return c;
1787
1787
  }
1788
1788
  i("getAccessToken: invalid access token, trying to refresh it");
1789
1789
  const b = await O.refreshtoken({
1790
1790
  clientId: r,
1791
1791
  userId: T.userId,
1792
- nonce: U,
1792
+ nonce: M,
1793
1793
  domain: a
1794
1794
  });
1795
1795
  return b.status && b.status === "success" && b.newAccessToken ? (h(b.newAccessToken), w(b.newRefreshToken), b.newAccessToken) : (i(
@@ -1802,9 +1802,9 @@ const La = (e) => q(
1802
1802
  } catch {
1803
1803
  return i(
1804
1804
  "getAccessToken: exception occurred, invalidating and logging out"
1805
- ), await x(Aa), "";
1805
+ ), await x(Sa), "";
1806
1806
  }
1807
- }, D = () => o.isAuthenticated && m ? m : "", B = async () => {
1807
+ }, P = () => o.isAuthenticated && m ? m : "", G = async () => {
1808
1808
  const { user: y } = o;
1809
1809
  let T = await ie({
1810
1810
  accessToken: c,
@@ -1818,7 +1818,7 @@ const La = (e) => q(
1818
1818
  });
1819
1819
  if (T.status)
1820
1820
  try {
1821
- const b = await gr(T.data);
1821
+ const b = await mr(T.data);
1822
1822
  return T = await ie({
1823
1823
  accessToken: c,
1824
1824
  clientId: r,
@@ -1845,9 +1845,9 @@ const La = (e) => q(
1845
1845
  }
1846
1846
  return !1;
1847
1847
  }, ee = async () => {
1848
- s({ type: ge, payload: { isLoading: !0 } }), W();
1848
+ s({ type: ge, payload: { isLoading: !0 } }), H();
1849
1849
  const y = Be();
1850
- K(y), i("loginWithPasskey");
1850
+ U(y), i("loginWithPasskey");
1851
1851
  const T = Be();
1852
1852
  let b = await ie({
1853
1853
  accessToken: c,
@@ -1860,7 +1860,7 @@ const La = (e) => q(
1860
1860
  });
1861
1861
  if (b.status)
1862
1862
  try {
1863
- const te = await br(b.data);
1863
+ const te = await yr(b.data);
1864
1864
  return b = await ie({
1865
1865
  accessToken: c,
1866
1866
  clientId: r,
@@ -1884,7 +1884,7 @@ const La = (e) => q(
1884
1884
  email: b.data.email
1885
1885
  }
1886
1886
  }
1887
- }), !0) : (G(Je), !1);
1887
+ }), !0) : (W(Je), !1);
1888
1888
  } catch {
1889
1889
  return await ie({
1890
1890
  accessToken: c,
@@ -1898,38 +1898,38 @@ const La = (e) => q(
1898
1898
  domain: a,
1899
1899
  sessionExpiration: t
1900
1900
  }
1901
- }), G(Je), !1;
1901
+ }), W(Je), !1;
1902
1902
  }
1903
1903
  return !1;
1904
1904
  };
1905
- return /* @__PURE__ */ l(Ma.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
1906
- Qt.Provider,
1905
+ return /* @__PURE__ */ l(Da.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
1906
+ qt.Provider,
1907
1907
  {
1908
1908
  value: {
1909
1909
  ...o,
1910
1910
  login: pe,
1911
1911
  logout: Z,
1912
- getAccessToken: R,
1913
- getIdToken: D,
1914
- registeringForPasskey: B,
1912
+ getAccessToken: v,
1913
+ getIdToken: P,
1914
+ registeringForPasskey: G,
1915
1915
  loginWithPasskey: ee
1916
1916
  },
1917
1917
  children: e
1918
1918
  }
1919
1919
  ) });
1920
- }, tt = (e = Qt) => Qe(e), uo = "user", ho = "assistant", mo = "system", po = "internal", go = "hidden", yo = "I'm having trouble right now. Please try again later.", Ve = "OpenAI", fo = "OpenAI", bo = "Anthropic", Eo = 128e3, wo = "action-message", To = "action-reset", Io = "action-model", _o = "action-restore", ko = "action-streaming", So = "action-engine", Ao = "action-search", vo = "action-sort", Ro = "action-toggle-tag", No = "action-reset-tags", xo = "action-set-tags", Co = "sassy-saint-", Oo = "details", Po = "search", Do = "sort", Lo = "engine-toggle", Mo = "==stats==", Ka = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Et = (e) => Number.isFinite(e) ? e : 0;
1921
- function Ha(e) {
1920
+ }, Ze = (e = qt) => Tt(e), ao = "user", no = "assistant", oo = "system", so = "internal", io = "hidden", co = "I'm having trouble right now. Please try again later.", lo = "OpenAI", uo = "OpenAI", ho = "Anthropic", mo = 128e3, po = "action-message", go = "action-reset", yo = "action-model", fo = "action-restore", bo = "action-streaming", Eo = "action-engine", wo = "action-search", To = "action-sort", Io = "action-toggle-tag", ko = "action-reset-tags", So = "action-set-tags", _o = "sassy-saint-", Ao = "details", vo = "search", Ro = "sort", No = "engine-toggle", xo = "==stats==", Ma = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", yt = (e) => Number.isFinite(e) ? e : 0;
1921
+ function Ua(e) {
1922
1922
  return {
1923
1923
  days: Math.trunc(e / 864e5),
1924
1924
  hours: Math.trunc(e / 36e5 % 24),
1925
1925
  minutes: Math.trunc(e / 6e4 % 60),
1926
1926
  seconds: Math.trunc(e / 1e3 % 60),
1927
1927
  milliseconds: Math.trunc(e % 1e3),
1928
- microseconds: Math.trunc(Et(e * 1e3) % 1e3),
1929
- nanoseconds: Math.trunc(Et(e * 1e6) % 1e3)
1928
+ microseconds: Math.trunc(yt(e * 1e3) % 1e3),
1929
+ nanoseconds: Math.trunc(yt(e * 1e6) % 1e3)
1930
1930
  };
1931
1931
  }
1932
- function Wa(e) {
1932
+ function Ka(e) {
1933
1933
  return {
1934
1934
  days: e / 86400000n,
1935
1935
  hours: e / 3600000n % 24n,
@@ -1940,20 +1940,20 @@ function Wa(e) {
1940
1940
  nanoseconds: 0n
1941
1941
  };
1942
1942
  }
1943
- function Ga(e) {
1943
+ function Ha(e) {
1944
1944
  switch (typeof e) {
1945
1945
  case "number": {
1946
1946
  if (Number.isFinite(e))
1947
- return Ha(e);
1947
+ return Ua(e);
1948
1948
  break;
1949
1949
  }
1950
1950
  case "bigint":
1951
- return Wa(e);
1951
+ return Ka(e);
1952
1952
  }
1953
1953
  throw new TypeError("Expected a finite number or bigint");
1954
1954
  }
1955
- const Ba = (e) => e === 0 || e === 0n, Ja = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Va = 1e-7, Ya = 24n * 60n * 60n * 1000n;
1956
- function za(e, t) {
1955
+ const Wa = (e) => e === 0 || e === 0n, Ga = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ba = 1e-7, Ja = 24n * 60n * 60n * 1000n;
1956
+ function Va(e, t) {
1957
1957
  const r = typeof e == "bigint";
1958
1958
  if (!r && !Number.isFinite(e))
1959
1959
  throw new TypeError("Expected a finite number or bigint");
@@ -1962,34 +1962,34 @@ function za(e, t) {
1962
1962
  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);
1963
1963
  let n = [];
1964
1964
  const o = (p, u) => {
1965
- const c = Math.floor(p * 10 ** u + Va);
1965
+ const c = Math.floor(p * 10 ** u + Ba);
1966
1966
  return (Math.round(c) / 10 ** u).toFixed(u);
1967
1967
  }, s = (p, u, c, h) => {
1968
- if (!((n.length === 0 || !t.colonNotation) && Ba(p) && !(t.colonNotation && c === "m"))) {
1968
+ if (!((n.length === 0 || !t.colonNotation) && Wa(p) && !(t.colonNotation && c === "m"))) {
1969
1969
  if (h ?? (h = String(p)), t.colonNotation) {
1970
1970
  const f = h.includes(".") ? h.split(".")[0].length : h.length, E = n.length > 0 ? 2 : 1;
1971
1971
  h = "0".repeat(Math.max(0, E - f)) + h;
1972
1972
  } else
1973
- h += t.verbose ? " " + Ja(u, p) : c;
1973
+ h += t.verbose ? " " + Ga(u, p) : c;
1974
1974
  n.push(h);
1975
1975
  }
1976
- }, i = Ga(e), d = BigInt(i.days);
1976
+ }, i = Ha(e), d = BigInt(i.days);
1977
1977
  if (t.hideYearAndDays ? s(BigInt(d) * 24n + BigInt(i.hours), "hour", "h") : (t.hideYear ? s(d, "day", "d") : (s(d / 365n, "year", "y"), s(d % 365n, "day", "d")), s(Number(i.hours), "hour", "h")), s(Number(i.minutes), "minute", "m"), !t.hideSeconds)
1978
1978
  if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
1979
1979
  const p = Number(i.seconds), u = Number(i.milliseconds), c = Number(i.microseconds), h = Number(i.nanoseconds);
1980
1980
  if (s(p, "second", "s"), t.formatSubMilliseconds)
1981
1981
  s(u, "millisecond", "ms"), s(c, "microsecond", "µs"), s(h, "nanosecond", "ns");
1982
1982
  else {
1983
- const f = u + c / 1e3 + h / 1e6, E = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, w = f >= 1 ? Math.round(f) : Math.ceil(f), _ = E ? f.toFixed(E) : w;
1983
+ const f = u + c / 1e3 + h / 1e6, E = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, w = f >= 1 ? Math.round(f) : Math.ceil(f), I = E ? f.toFixed(E) : w;
1984
1984
  s(
1985
- Number.parseFloat(_),
1985
+ Number.parseFloat(I),
1986
1986
  "millisecond",
1987
1987
  "ms",
1988
- _
1988
+ I
1989
1989
  );
1990
1990
  }
1991
1991
  } else {
1992
- const p = (r ? Number(e % Ya) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, u), h = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
1992
+ const p = (r ? Number(e % Ja) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, u), h = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
1993
1993
  s(Number.parseFloat(h), "second", "s", h);
1994
1994
  }
1995
1995
  if (n.length === 0)
@@ -1997,7 +1997,7 @@ function za(e, t) {
1997
1997
  const m = t.colonNotation ? ":" : " ";
1998
1998
  return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(m);
1999
1999
  }
2000
- const Fa = process.env.NODE_ENV === "production", rt = !Fa, ja = rt ? "gizmette.local.com" : "gizmette.com", $o = async () => {
2000
+ const Ya = process.env.NODE_ENV === "production", Xt = !Ya, za = Xt ? "gizmette.local.com" : "gizmette.com", Co = async () => {
2001
2001
  const e = {
2002
2002
  /**
2003
2003
  * A boolean value that indicates the application would
@@ -2046,11 +2046,11 @@ const Fa = process.env.NODE_ENV === "production", rt = !Fa, ja = rt ? "gizmette.
2046
2046
  e
2047
2047
  );
2048
2048
  });
2049
- }, Uo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ I("div", { className: "flex items-center justify-between", children: [
2049
+ }, Oo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ N("div", { className: "flex items-center justify-between", children: [
2050
2050
  /* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
2051
2051
  /* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
2052
2052
  ] }) }, `${e}-${r}`)) : null;
2053
- function Ko({
2053
+ function Po({
2054
2054
  data: e,
2055
2055
  formatter: t = (r) => r
2056
2056
  }) {
@@ -2062,23 +2062,23 @@ function Ko({
2062
2062
  );
2063
2063
  return t(a ? a / r.length : 0);
2064
2064
  }
2065
- const Ho = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Wo = new Intl.NumberFormat("en", {
2065
+ const Do = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Lo = new Intl.NumberFormat("en", {
2066
2066
  style: "decimal",
2067
2067
  signDisplay: "never",
2068
2068
  minimumFractionDigits: 0,
2069
2069
  maximumFractionDigits: 0
2070
- }), Go = (e) => e > 0 ? za(e, {
2070
+ }), $o = (e) => e > 0 ? Va(e, {
2071
2071
  secondsDecimalDigits: 2,
2072
2072
  unitCount: 2
2073
- }) : "N/A", qa = (e) => g(
2073
+ }) : "N/A", Fa = (e) => g(
2074
2074
  "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",
2075
- e || rt ? "pt-4" : "pt-10"
2076
- ), Bo = (e, t) => t === 1 ? e : `${e}s`, Jo = (e, t) => {
2075
+ e || Xt ? "pt-4" : "pt-10"
2076
+ ), Mo = (e, t) => t === 1 ? e : `${e}s`, Uo = (e, t) => {
2077
2077
  let r;
2078
2078
  return (...a) => {
2079
2079
  window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
2080
2080
  };
2081
- }, wt = "av-button", at = "icon", Zt = "button", Xa = "link", Qa = ({
2081
+ }, ft = "av-button", et = "icon", Qt = "button", ja = "link", qa = ({
2082
2082
  type: e,
2083
2083
  size: t,
2084
2084
  labelRight: r,
@@ -2087,19 +2087,19 @@ const Ho = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2087
2087
  }) => {
2088
2088
  const o = "text-sm font-medium max-h-8 py-0 px-2", s = "text-base font-medium max-h-9 py-1 px-3", i = "text-lg font-medium max-h-12 py-2 px-4";
2089
2089
  switch (e) {
2090
- case Zt:
2090
+ case Qt:
2091
2091
  return g({
2092
2092
  [o]: t === "small",
2093
2093
  [s]: t === "medium",
2094
2094
  [i]: t === "large"
2095
2095
  });
2096
- case Xa:
2096
+ case ja:
2097
2097
  return g("text-center", {
2098
2098
  [o]: t === "small",
2099
2099
  [s]: t === "medium",
2100
2100
  [i]: t === "large"
2101
2101
  });
2102
- case at:
2102
+ case et:
2103
2103
  return g("inline-flex items-center", {
2104
2104
  "justify-center": n === "center",
2105
2105
  "justify-start": n === "left",
@@ -2112,7 +2112,7 @@ const Ho = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2112
2112
  "h-12 px-4 text-lg font-medium": t === "large" && (r || a)
2113
2113
  });
2114
2114
  }
2115
- }, Za = ({
2115
+ }, Xa = ({
2116
2116
  mode: e,
2117
2117
  noBackground: t,
2118
2118
  noTruncate: r,
@@ -2169,7 +2169,7 @@ const Ho = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2169
2169
  "bg-action-selected-dark text-copy-light dark:bg-action-selected-light dark:text-copy-lighter": e === "system",
2170
2170
  "bg-action-selected-light text-copy-lighter dark:bg-action-selected-dark dark:text-copy-light": e === "alt-system"
2171
2171
  });
2172
- }, en = ({
2172
+ }, Qa = ({
2173
2173
  mode: e,
2174
2174
  disabled: t,
2175
2175
  variant: r
@@ -2204,7 +2204,7 @@ const Ho = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2204
2204
  "hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
2205
2205
  "hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
2206
2206
  });
2207
- }, tn = ({
2207
+ }, Za = ({
2208
2208
  mode: e,
2209
2209
  disabled: t,
2210
2210
  variant: r
@@ -2239,7 +2239,7 @@ const Ho = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2239
2239
  "active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
2240
2240
  "active:bg-action-selected-light-active dark:active:bg-action-selected-dark-active": e === "alt-system"
2241
2241
  });
2242
- }, rn = ({
2242
+ }, en = ({
2243
2243
  mode: e,
2244
2244
  noBorder: t,
2245
2245
  variant: r
@@ -2274,14 +2274,14 @@ const Ho = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2274
2274
  "border-border-selected-dark dark:border-border-selected-medium": e === "system",
2275
2275
  "border-border-selected-medium dark:border-border-selected-dark": e === "alt-system"
2276
2276
  });
2277
- }, an = ({
2277
+ }, tn = ({
2278
2278
  focusMode: e
2279
2279
  }) => g("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
2280
2280
  "focus:outline-focus-dark": e === "dark",
2281
2281
  "focus:outline-focus-light": e === "light",
2282
2282
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
2283
2283
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
2284
- }), nt = ({
2284
+ }), tt = ({
2285
2285
  type: e,
2286
2286
  className: t,
2287
2287
  raw: r,
@@ -2298,49 +2298,49 @@ const Ho = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2298
2298
  noTruncate: h,
2299
2299
  align: f,
2300
2300
  radius: E
2301
- }) => (c || (c = "primary"), r ? g(wt, t) : g(
2302
- wt,
2303
- Za({
2301
+ }) => (c || (c = "primary"), r ? g(ft, t) : g(
2302
+ ft,
2303
+ Xa({
2304
2304
  mode: a,
2305
2305
  variant: c,
2306
2306
  noBackground: u,
2307
2307
  noTruncate: h,
2308
2308
  radius: E
2309
2309
  }),
2310
- Qa({
2310
+ qa({
2311
2311
  type: e,
2312
2312
  size: i,
2313
2313
  labelRight: m,
2314
2314
  labelLeft: p,
2315
2315
  align: f
2316
2316
  }),
2317
- rn({ mode: a, variant: c, noBorder: d }),
2318
- an({ focusMode: n }),
2319
- en({ mode: a, variant: c, disabled: o }),
2320
- tn({ mode: a, variant: c, disabled: o }),
2317
+ en({ mode: a, variant: c, noBorder: d }),
2318
+ tn({ focusMode: n }),
2319
+ Qa({ mode: a, variant: c, disabled: o }),
2320
+ Za({ mode: a, variant: c, disabled: o }),
2321
2321
  {
2322
2322
  "w-full": s,
2323
2323
  "disabled:cursor-not-allowed disabled:opacity-50": o
2324
2324
  },
2325
2325
  t
2326
- )), nn = (e, t, r) => {
2326
+ )), rn = (e, t, r) => {
2327
2327
  var a;
2328
2328
  !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);
2329
- }, Me = P.forwardRef((e, t) => {
2329
+ }, $e = z.forwardRef((e, t) => {
2330
2330
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
2331
2331
  return /* @__PURE__ */ l(
2332
2332
  "button",
2333
2333
  {
2334
2334
  ref: t,
2335
2335
  onClick: (o) => {
2336
- nn(o, a, r);
2336
+ rn(o, a, r);
2337
2337
  },
2338
2338
  ...n
2339
2339
  }
2340
2340
  );
2341
2341
  });
2342
- Me.displayName = "BaseButton";
2343
- const er = P.forwardRef(
2342
+ $e.displayName = "BaseButton";
2343
+ const Zt = z.forwardRef(
2344
2344
  ({
2345
2345
  children: e,
2346
2346
  disabled: t = !1,
@@ -2356,8 +2356,8 @@ const er = P.forwardRef(
2356
2356
  radius: u = "large",
2357
2357
  ...c
2358
2358
  }, h) => {
2359
- const f = nt({
2360
- type: Zt,
2359
+ const f = tt({
2360
+ type: Qt,
2361
2361
  mode: r,
2362
2362
  focusMode: a,
2363
2363
  fullWidth: n,
@@ -2371,7 +2371,7 @@ const er = P.forwardRef(
2371
2371
  radius: u
2372
2372
  });
2373
2373
  return /* @__PURE__ */ l(
2374
- Me,
2374
+ $e,
2375
2375
  {
2376
2376
  ref: h,
2377
2377
  className: f,
@@ -2382,8 +2382,8 @@ const er = P.forwardRef(
2382
2382
  );
2383
2383
  }
2384
2384
  );
2385
- er.displayName = "Button";
2386
- const qe = P.forwardRef(
2385
+ Zt.displayName = "Button";
2386
+ const je = z.forwardRef(
2387
2387
  ({
2388
2388
  children: e,
2389
2389
  disabled: t = !1,
@@ -2402,10 +2402,10 @@ const qe = P.forwardRef(
2402
2402
  noBackground: f = !1,
2403
2403
  align: E = "center",
2404
2404
  radius: w = "large",
2405
- ..._
2406
- }, U) => {
2407
- const K = nt({
2408
- type: at,
2405
+ ...I
2406
+ }, M) => {
2407
+ const U = tt({
2408
+ type: et,
2409
2409
  mode: r,
2410
2410
  focusMode: a,
2411
2411
  fullWidth: n,
@@ -2419,31 +2419,31 @@ const qe = P.forwardRef(
2419
2419
  noBackground: f,
2420
2420
  align: E,
2421
2421
  radius: w
2422
- }), H = g({
2422
+ }), K = g({
2423
2423
  "text-copy-accent-dark": r === "light" && !i,
2424
2424
  "text-copy-light": r === "dark" && !i,
2425
2425
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
2426
2426
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !i
2427
2427
  });
2428
- return /* @__PURE__ */ I(
2429
- Me,
2428
+ return /* @__PURE__ */ N(
2429
+ $e,
2430
2430
  {
2431
- ref: U,
2432
- className: K,
2431
+ ref: M,
2432
+ className: U,
2433
2433
  disabled: t,
2434
2434
  type: s,
2435
2435
  "aria-label": m || p,
2436
- ..._,
2436
+ ...I,
2437
2437
  children: [
2438
2438
  h && /* @__PURE__ */ l("span", { className: "pr-2", children: h }),
2439
- /* @__PURE__ */ l("div", { className: H, children: e }),
2439
+ /* @__PURE__ */ l("div", { className: K, children: e }),
2440
2440
  c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
2441
2441
  ]
2442
2442
  }
2443
2443
  );
2444
2444
  }
2445
2445
  );
2446
- qe.displayName = "ButtonIcon";
2446
+ je.displayName = "ButtonIcon";
2447
2447
  /*!
2448
2448
  @versini/ui-button v3.2.0
2449
2449
  © 2024 gizmette.com
@@ -2457,7 +2457,7 @@ try {
2457
2457
  });
2458
2458
  } catch {
2459
2459
  }
2460
- const on = P.forwardRef(
2460
+ const an = z.forwardRef(
2461
2461
  ({
2462
2462
  children: e,
2463
2463
  disabled: t = !1,
@@ -2476,11 +2476,11 @@ const on = P.forwardRef(
2476
2476
  noBackground: f = !1,
2477
2477
  align: E = "center",
2478
2478
  active: w = !1,
2479
- radius: _ = "large",
2480
- ...U
2481
- }, K) => {
2482
- const H = nt({
2483
- type: at,
2479
+ radius: I = "large",
2480
+ ...M
2481
+ }, U) => {
2482
+ const K = tt({
2483
+ type: et,
2484
2484
  mode: r,
2485
2485
  focusMode: a,
2486
2486
  fullWidth: n,
@@ -2493,13 +2493,13 @@ const on = P.forwardRef(
2493
2493
  labelLeft: h,
2494
2494
  noBackground: f,
2495
2495
  align: E,
2496
- radius: _
2496
+ radius: I
2497
2497
  }), O = g({
2498
2498
  "text-copy-accent-dark": r === "light" && !i,
2499
2499
  "text-copy-light": r === "dark" && !i,
2500
2500
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
2501
2501
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !i
2502
- }), W = w ? g(
2502
+ }), H = w ? g(
2503
2503
  "relative",
2504
2504
  "focus-within:static",
2505
2505
  "focus-within:after:border-transparent",
@@ -2516,15 +2516,15 @@ const on = P.forwardRef(
2516
2516
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
2517
2517
  }
2518
2518
  ) : "";
2519
- return /* @__PURE__ */ l("div", { className: W, children: /* @__PURE__ */ I(
2520
- Me,
2519
+ return /* @__PURE__ */ l("div", { className: H, children: /* @__PURE__ */ N(
2520
+ $e,
2521
2521
  {
2522
- ref: K,
2523
- className: H,
2522
+ ref: U,
2523
+ className: K,
2524
2524
  disabled: t,
2525
2525
  type: s,
2526
2526
  "aria-label": m || p,
2527
- ...U,
2527
+ ...M,
2528
2528
  children: [
2529
2529
  h && /* @__PURE__ */ l("span", { className: "pr-2", children: h }),
2530
2530
  /* @__PURE__ */ l("div", { className: O, children: e }),
@@ -2534,7 +2534,7 @@ const on = P.forwardRef(
2534
2534
  ) });
2535
2535
  }
2536
2536
  );
2537
- on.displayName = "ButtonSort";
2537
+ an.displayName = "ButtonSort";
2538
2538
  /*!
2539
2539
  @versini/ui-card v2.0.5
2540
2540
  © 2024 gizmette.com
@@ -2549,11 +2549,11 @@ try {
2549
2549
  } catch {
2550
2550
  }
2551
2551
  const ve = "av-card";
2552
- function sn(e) {
2553
- const t = kt();
2552
+ function nn(e) {
2553
+ const t = It();
2554
2554
  return `${e}${t}`;
2555
2555
  }
2556
- const cn = ({
2556
+ const on = ({
2557
2557
  className: e,
2558
2558
  headerClassName: t,
2559
2559
  bodyClassName: r,
@@ -2593,7 +2593,7 @@ const cn = ({
2593
2593
  footer: p
2594
2594
  };
2595
2595
  };
2596
- function ln({
2596
+ function sn({
2597
2597
  id: e,
2598
2598
  content: t,
2599
2599
  userAriaLabelledby: r,
@@ -2601,7 +2601,7 @@ function ln({
2601
2601
  }) {
2602
2602
  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;
2603
2603
  }
2604
- const dn = ({
2604
+ const cn = ({
2605
2605
  header: e,
2606
2606
  headerClassName: t,
2607
2607
  footer: r,
@@ -2616,7 +2616,7 @@ const dn = ({
2616
2616
  ...u
2617
2617
  }) => {
2618
2618
  let c = null, h = null;
2619
- const f = typeof e == "string", E = sn(ve), w = cn({
2619
+ const f = typeof e == "string", E = nn(ve), w = on({
2620
2620
  className: o,
2621
2621
  headerClassName: t,
2622
2622
  bodyClassName: s,
@@ -2625,7 +2625,7 @@ const dn = ({
2625
2625
  compact: m,
2626
2626
  noBorder: p
2627
2627
  });
2628
- return f ? (c = E, h = c) : !f && e && i ? (c = null, h = i) : !f && e && !i ? (c = E, h = c) : (c = null, h = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ I(
2628
+ return f ? (c = E, h = c) : !f && e && i ? (c = null, h = i) : !f && e && !i ? (c = E, h = c) : (c = null, h = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ N(
2629
2629
  "section",
2630
2630
  {
2631
2631
  ...h && {
@@ -2635,7 +2635,7 @@ const dn = ({
2635
2635
  ...u,
2636
2636
  children: [
2637
2637
  /* @__PURE__ */ l(
2638
- ln,
2638
+ sn,
2639
2639
  {
2640
2640
  ...c && { id: c },
2641
2641
  content: e,
@@ -2648,7 +2648,7 @@ const dn = ({
2648
2648
  ]
2649
2649
  }
2650
2650
  ) });
2651
- }, $e = ({
2651
+ }, Me = ({
2652
2652
  children: e,
2653
2653
  fill: t,
2654
2654
  viewBox: r,
@@ -2660,7 +2660,7 @@ const dn = ({
2660
2660
  ...d
2661
2661
  }) => {
2662
2662
  const m = g(o, a);
2663
- return /* @__PURE__ */ I(fe, { children: [
2663
+ return /* @__PURE__ */ N(fe, { children: [
2664
2664
  /* @__PURE__ */ l(
2665
2665
  "svg",
2666
2666
  {
@@ -2691,8 +2691,8 @@ try {
2691
2691
  });
2692
2692
  } catch {
2693
2693
  }
2694
- const un = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
2695
- $e,
2694
+ const ln = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
2695
+ Me,
2696
2696
  {
2697
2697
  defaultViewBox: "0 0 1200 500",
2698
2698
  viewBox: t,
@@ -2709,14 +2709,14 @@ const un = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
2709
2709
  }
2710
2710
  ) })
2711
2711
  }
2712
- ), hn = ({
2712
+ ), dn = ({
2713
2713
  className: e,
2714
2714
  viewBox: t,
2715
2715
  title: r,
2716
2716
  monotone: a,
2717
2717
  ...n
2718
- }) => /* @__PURE__ */ I(
2719
- $e,
2718
+ }) => /* @__PURE__ */ N(
2719
+ Me,
2720
2720
  {
2721
2721
  defaultViewBox: "0 0 640 512",
2722
2722
  size: "size-5",
@@ -2735,7 +2735,7 @@ const un = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
2735
2735
  /* @__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" })
2736
2736
  ]
2737
2737
  }
2738
- ), mn = ({
2738
+ ), un = ({
2739
2739
  className: e,
2740
2740
  viewBox: t,
2741
2741
  title: r,
@@ -2743,8 +2743,8 @@ const un = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
2743
2743
  ...n
2744
2744
  }) => {
2745
2745
  const o = a ? "1" : "0.4";
2746
- return /* @__PURE__ */ I(
2747
- $e,
2746
+ return /* @__PURE__ */ N(
2747
+ Me,
2748
2748
  {
2749
2749
  defaultViewBox: "0 0 190 190",
2750
2750
  size: "size-5",
@@ -2772,14 +2772,14 @@ const un = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
2772
2772
  ]
2773
2773
  }
2774
2774
  );
2775
- }, pn = ({
2775
+ }, hn = ({
2776
2776
  className: e,
2777
2777
  viewBox: t,
2778
2778
  title: r,
2779
2779
  monotone: a,
2780
2780
  ...n
2781
- }) => /* @__PURE__ */ I(
2782
- $e,
2781
+ }) => /* @__PURE__ */ N(
2782
+ Me,
2783
2783
  {
2784
2784
  defaultViewBox: "0 0 576 512",
2785
2785
  size: "size-5",
@@ -2825,19 +2825,19 @@ try {
2825
2825
  });
2826
2826
  } catch {
2827
2827
  }
2828
- const gn = "av-main", yn = ({ children: e, className: t, raw: r = !1 }) => {
2828
+ const mn = "av-main", pn = ({ children: e, className: t, raw: r = !1 }) => {
2829
2829
  const a = g(
2830
- gn,
2830
+ mn,
2831
2831
  {
2832
2832
  "mt-2 flex w-full flex-col p-2 sm:mt-3 md:mx-auto md:max-w-4xl": !r
2833
2833
  },
2834
2834
  t
2835
2835
  );
2836
2836
  return /* @__PURE__ */ l("main", { className: a, children: e });
2837
- }, fn = "av-flexgrid", Se = "av-flexgrid-item", Oe = 0.25, Xe = P.createContext({
2837
+ }, gn = "av-flexgrid", _e = "av-flexgrid-item", Oe = 0.25, qe = z.createContext({
2838
2838
  columnGap: 0,
2839
2839
  rowGap: 0
2840
- }), Tt = ({
2840
+ }), bt = ({
2841
2841
  children: e,
2842
2842
  className: t,
2843
2843
  columnGap: r = 1,
@@ -2863,11 +2863,11 @@ const gn = "av-main", yn = ({ children: e, className: t, raw: r = !1 }) => {
2863
2863
  marginLeft: r * -1 * Oe + "rem",
2864
2864
  marginTop: a * -1 * Oe + "rem"
2865
2865
  }, u = g(
2866
- fn,
2866
+ gn,
2867
2867
  "box-border flex flex-wrap"
2868
2868
  ), c = { columnGap: r, rowGap: a };
2869
- return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: p, ...m, children: /* @__PURE__ */ l(Xe.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: p, ...m, children: /* @__PURE__ */ l(Xe.Provider, { value: c, children: e }) });
2870
- }, Ye = (e, t) => g({
2869
+ return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: p, ...m, children: /* @__PURE__ */ l(qe.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: p, ...m, children: /* @__PURE__ */ l(qe.Provider, { value: c, children: e }) });
2870
+ }, Ve = (e, t) => g({
2871
2871
  "basis-1/12": e === 1 && !t,
2872
2872
  "sm:basis-1/12": e === 1 && t === "sm",
2873
2873
  "md:basis-1/12": e === 1 && t === "md",
@@ -2940,25 +2940,25 @@ const gn = "av-main", yn = ({ children: e, className: t, raw: r = !1 }) => {
2940
2940
  "lg:basis-full": e === 12 && t === "lg",
2941
2941
  "xl:basis-full": e === 12 && t === "xl",
2942
2942
  "2xl:basis-full": e === 12 && t === "2xl"
2943
- }), bn = ({
2943
+ }), yn = ({
2944
2944
  className: e,
2945
2945
  span: t
2946
2946
  }) => {
2947
2947
  if (!t)
2948
- return g(e, Se, "box-border basis-auto");
2948
+ return g(e, _e, "box-border basis-auto");
2949
2949
  if (typeof t == "number")
2950
- return g(e, Se, "box-border max-w-full", {
2951
- [`${Ye(t)}`]: !0
2950
+ return g(e, _e, "box-border max-w-full", {
2951
+ [`${Ve(t)}`]: !0
2952
2952
  });
2953
2953
  if (typeof t == "string")
2954
- return g(e, Se, "box-border basis-auto", {
2954
+ return g(e, _e, "box-border basis-auto", {
2955
2955
  "max-w-full grow": t === "auto"
2956
2956
  });
2957
2957
  if (typeof t == "object") {
2958
- const r = Object.entries(t).map(([a, n]) => a === "fallback" ? Ye(n) : Ye(n, a));
2958
+ const r = Object.entries(t).map(([a, n]) => a === "fallback" ? Ve(n) : Ve(n, a));
2959
2959
  return g(
2960
2960
  e,
2961
- Se,
2961
+ _e,
2962
2962
  "box-border",
2963
2963
  r
2964
2964
  );
@@ -2969,10 +2969,10 @@ const gn = "av-main", yn = ({ children: e, className: t, raw: r = !1 }) => {
2969
2969
  span: r,
2970
2970
  ...a
2971
2971
  }) => {
2972
- const { columnGap: n, rowGap: o } = Qe(Xe), s = {
2972
+ const { columnGap: n, rowGap: o } = Tt(qe), s = {
2973
2973
  paddingLeft: n * Oe + "rem",
2974
2974
  paddingTop: o * Oe + "rem"
2975
- }, i = bn({
2975
+ }, i = yn({
2976
2976
  className: t,
2977
2977
  span: r
2978
2978
  });
@@ -2991,14 +2991,14 @@ try {
2991
2991
  });
2992
2992
  } catch {
2993
2993
  }
2994
- const tr = "av-text-input", En = "av-text-input-wrapper", ze = "av-text-input-helper-text";
2995
- function wn() {
2994
+ const er = "av-text-input", fn = "av-text-input-wrapper", Ye = "av-text-input-helper-text";
2995
+ function bn() {
2996
2996
  const e = $(!1);
2997
2997
  return Q(() => (e.current = !0, () => {
2998
2998
  e.current = !1;
2999
2999
  }), []), q(() => e.current, []);
3000
3000
  }
3001
- const Tn = {
3001
+ const En = {
3002
3002
  x: 0,
3003
3003
  y: 0,
3004
3004
  width: 0,
@@ -3008,8 +3008,8 @@ const Tn = {
3008
3008
  bottom: 0,
3009
3009
  right: 0
3010
3010
  };
3011
- function In(e) {
3012
- const t = wn(), r = $(0), a = $(null), [n, o] = j(Tn), s = St(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3011
+ function wn(e) {
3012
+ const t = bn(), r = $(0), a = $(null), [n, o] = j(En), s = kt(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3013
3013
  const d = i[0];
3014
3014
  d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
3015
3015
  a.current && t() && o(d.contentRect);
@@ -3019,8 +3019,8 @@ function In(e) {
3019
3019
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
3020
3020
  }), [s, e]), [a, n];
3021
3021
  }
3022
- function _n(e) {
3023
- const t = kt();
3022
+ function Tn(e) {
3023
+ const t = It();
3024
3024
  if (!e)
3025
3025
  return t;
3026
3026
  if (typeof e == "number" || typeof e == "string")
@@ -3030,7 +3030,7 @@ function _n(e) {
3030
3030
  return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
3031
3031
  }
3032
3032
  }
3033
- const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", kn = {
3033
+ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", In = {
3034
3034
  alert: null,
3035
3035
  alertdialog: null,
3036
3036
  log: "polite",
@@ -3038,14 +3038,14 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", kn = {
3038
3038
  progressbar: null,
3039
3039
  status: "polite",
3040
3040
  timer: "assertive"
3041
- }, Sn = (e, t) => {
3041
+ }, kn = (e, t) => {
3042
3042
  switch (t == null ? void 0 : t.type) {
3043
- case rr:
3043
+ case tr:
3044
3044
  return {
3045
3045
  ...e,
3046
3046
  announcement: t.payload
3047
3047
  };
3048
- case ar:
3048
+ case rr:
3049
3049
  return {
3050
3050
  ...e,
3051
3051
  announcement: null
@@ -3053,14 +3053,14 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", kn = {
3053
3053
  default:
3054
3054
  return e;
3055
3055
  }
3056
- }, An = ({
3056
+ }, Sn = ({
3057
3057
  onAnnouncementClear: e,
3058
3058
  dispatch: t
3059
3059
  }) => {
3060
3060
  t({
3061
- type: ar
3061
+ type: rr
3062
3062
  }), typeof e == "function" && e();
3063
- }, It = ({
3063
+ }, Et = ({
3064
3064
  children: e,
3065
3065
  clearAnnouncementDelay: t,
3066
3066
  clearAnnouncementTimeoutRef: r,
@@ -3068,16 +3068,16 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", kn = {
3068
3068
  dispatch: n
3069
3069
  }) => {
3070
3070
  clearTimeout(r.current), e !== null && n({
3071
- type: rr,
3071
+ type: tr,
3072
3072
  payload: e
3073
3073
  }), t && (r.current = setTimeout(
3074
- () => An({
3074
+ () => Sn({
3075
3075
  onAnnouncementClear: a,
3076
3076
  dispatch: n
3077
3077
  }),
3078
3078
  t
3079
3079
  ));
3080
- }, vn = ({
3080
+ }, _n = ({
3081
3081
  children: e,
3082
3082
  announcementTimeoutRef: t,
3083
3083
  announcementDelay: r,
@@ -3086,13 +3086,13 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", kn = {
3086
3086
  onAnnouncementClear: o,
3087
3087
  dispatch: s
3088
3088
  }) => {
3089
- clearTimeout(t.current), r ? t.current = setTimeout(It, r, {
3089
+ clearTimeout(t.current), r ? t.current = setTimeout(Et, r, {
3090
3090
  children: e,
3091
3091
  clearAnnouncementDelay: a,
3092
3092
  clearAnnouncementTimeoutRef: n,
3093
3093
  onAnnouncementClear: o,
3094
3094
  dispatch: s
3095
- }) : It({
3095
+ }) : Et({
3096
3096
  children: e,
3097
3097
  clearAnnouncementDelay: a,
3098
3098
  clearAnnouncementTimeoutRef: n,
@@ -3100,7 +3100,7 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", kn = {
3100
3100
  dispatch: s
3101
3101
  });
3102
3102
  };
3103
- function nr({
3103
+ function ar({
3104
3104
  children: e,
3105
3105
  className: t,
3106
3106
  politeness: r,
@@ -3111,12 +3111,12 @@ function nr({
3111
3111
  visible: i,
3112
3112
  ...d
3113
3113
  }) {
3114
- const m = $(null), p = $(null), [u, c] = _t(Sn, {
3114
+ const m = $(null), p = $(null), [u, c] = wt(kn, {
3115
3115
  announcement: null
3116
3116
  });
3117
3117
  let h = r;
3118
- typeof h > "u" && (h = a ? kn[a] : "assertive"), Q(() => {
3119
- vn({
3118
+ typeof h > "u" && (h = a ? In[a] : "assertive"), Q(() => {
3119
+ _n({
3120
3120
  announcementTimeoutRef: m,
3121
3121
  announcementDelay: n,
3122
3122
  children: e,
@@ -3158,21 +3158,21 @@ try {
3158
3158
  });
3159
3159
  } catch {
3160
3160
  }
3161
- const Rn = ({
3161
+ const An = ({
3162
3162
  mode: e
3163
3163
  }) => g({
3164
3164
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
3165
3165
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
3166
3166
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
3167
3167
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
3168
- }), Nn = ({
3168
+ }), vn = ({
3169
3169
  focusMode: e
3170
3170
  }) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
3171
3171
  "focus:outline-focus-dark": e === "dark",
3172
3172
  "focus:outline-focus-light": e === "light",
3173
3173
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
3174
3174
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
3175
- }), xn = ({
3175
+ }), Rn = ({
3176
3176
  noBorder: e,
3177
3177
  error: t
3178
3178
  }) => g("border-2", {
@@ -3180,7 +3180,7 @@ const Rn = ({
3180
3180
  "focus:border-border-dark": !e && t,
3181
3181
  "border-border-error-dark": !e && t,
3182
3182
  "border-transparent": e
3183
- }), Cn = ({
3183
+ }), Nn = ({
3184
3184
  disabled: e,
3185
3185
  raw: t,
3186
3186
  error: r,
@@ -3204,7 +3204,7 @@ const Rn = ({
3204
3204
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
3205
3205
  "text-copy-lighter dark:text-copy-error-dark": a === "alt-system"
3206
3206
  });
3207
- }, On = ({
3207
+ }, xn = ({
3208
3208
  error: e,
3209
3209
  raw: t,
3210
3210
  mode: r,
@@ -3214,24 +3214,24 @@ const Rn = ({
3214
3214
  return "";
3215
3215
  if (a)
3216
3216
  return g(
3217
- ze,
3217
+ Ye,
3218
3218
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
3219
3219
  );
3220
3220
  if (!e)
3221
- return g(ze, "absolute px-2 font-medium", {
3221
+ return g(Ye, "absolute px-2 font-medium", {
3222
3222
  "text-copy-lighter": r === "dark",
3223
3223
  "text-copy-dark": r === "light",
3224
3224
  "text-copy-dark dark:text-copy-lighter": r === "system",
3225
3225
  "text-copy-lighter dark:text-copy-dark": r === "alt-system"
3226
3226
  });
3227
3227
  if (e)
3228
- return g(ze, "absolute px-2 font-medium", {
3228
+ return g(Ye, "absolute px-2 font-medium", {
3229
3229
  "text-copy-error-light bg-surface-darker": r === "dark",
3230
3230
  "text-copy-error-dark": r === "light",
3231
3231
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
3232
3232
  "dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
3233
3233
  });
3234
- }, Pn = ({
3234
+ }, Cn = ({
3235
3235
  className: e,
3236
3236
  inputClassName: t,
3237
3237
  raw: r,
@@ -3245,7 +3245,7 @@ const Rn = ({
3245
3245
  }) => {
3246
3246
  const p = r ? e : g(
3247
3247
  "relative flex w-full flex-col justify-center",
3248
- En,
3248
+ fn,
3249
3249
  e
3250
3250
  );
3251
3251
  let u = "";
@@ -3267,22 +3267,22 @@ const Rn = ({
3267
3267
  break;
3268
3268
  }
3269
3269
  const c = r ? g(t) : g(
3270
- tr,
3270
+ er,
3271
3271
  u,
3272
3272
  "rounded-md text-base px-4",
3273
- Rn({ mode: s }),
3274
- Nn({ focusMode: i }),
3275
- xn({ noBorder: n, error: o }),
3273
+ An({ mode: s }),
3274
+ vn({ focusMode: i }),
3275
+ Rn({ noBorder: n, error: o }),
3276
3276
  {
3277
3277
  "disabled:cursor-not-allowed disabled:opacity-50": a
3278
3278
  },
3279
3279
  t
3280
- ), h = r ? void 0 : "sr-only", f = Cn({
3280
+ ), h = r ? void 0 : "sr-only", f = Nn({
3281
3281
  disabled: a,
3282
3282
  raw: r,
3283
3283
  error: o,
3284
3284
  mode: s
3285
- }), E = On({
3285
+ }), E = xn({
3286
3286
  error: o,
3287
3287
  raw: r,
3288
3288
  mode: s,
@@ -3296,7 +3296,7 @@ const Rn = ({
3296
3296
  helperText: E,
3297
3297
  rightElement: w
3298
3298
  };
3299
- }, ot = P.forwardRef(
3299
+ }, rt = z.forwardRef(
3300
3300
  ({
3301
3301
  id: e,
3302
3302
  name: t,
@@ -3315,16 +3315,16 @@ const Rn = ({
3315
3315
  helperText: f = "",
3316
3316
  rightElement: E,
3317
3317
  rightElementClassName: w,
3318
- size: _ = "md",
3319
- ...U
3320
- }, K) => {
3321
- const [H, O] = In(), [W, G] = j(0), x = _n({ id: e, prefix: `${tr}-` }), pe = `${t} error, ${f}`, Z = $(null), R = $(null), D = {
3318
+ size: I = "md",
3319
+ ...M
3320
+ }, U) => {
3321
+ const [K, O] = wn(), [H, W] = j(0), x = Tn({ id: e, prefix: `${er}-` }), pe = `${t} error, ${f}`, Z = $(null), v = $(null), P = {
3322
3322
  xs: { label: "-25px", helperText: "30px" },
3323
3323
  sm: { label: "-29px", helperText: "34px" },
3324
3324
  md: { label: "-33px", helperText: "38px" },
3325
3325
  lg: { label: "-15px", helperText: "22px" },
3326
3326
  xl: { label: "-19px", helperText: "25px" }
3327
- }, B = Pn({
3327
+ }, G = Cn({
3328
3328
  className: o,
3329
3329
  inputClassName: s,
3330
3330
  error: a,
@@ -3333,42 +3333,42 @@ const Rn = ({
3333
3333
  disabled: m,
3334
3334
  noBorder: p,
3335
3335
  mode: i,
3336
- size: _,
3336
+ size: I,
3337
3337
  rightElementClassName: w
3338
3338
  });
3339
- return it(() => {
3340
- O && O.width && G(O.width + 18 + 10);
3341
- }, [O]), it(() => {
3339
+ return nt(() => {
3340
+ O && O.width && W(O.width + 18 + 10);
3341
+ }, [O]), nt(() => {
3342
3342
  var ee, y;
3343
- const { label: T, helperText: b } = D[_];
3344
- (ee = Z == null ? void 0 : Z.current) == null || ee.style.setProperty("--av-text-input-label", T), (y = R == null ? void 0 : R.current) == null || y.style.setProperty(
3343
+ const { label: T, helperText: b } = P[I];
3344
+ (ee = Z == null ? void 0 : Z.current) == null || ee.style.setProperty("--av-text-input-label", T), (y = v == null ? void 0 : v.current) == null || y.style.setProperty(
3345
3345
  "--av-text-input-helper-text",
3346
3346
  b
3347
3347
  );
3348
- }, [_]), /* @__PURE__ */ I("div", { className: B.wrapper, children: [
3348
+ }, [I]), /* @__PURE__ */ N("div", { className: G.wrapper, children: [
3349
3349
  /* @__PURE__ */ l(
3350
3350
  "label",
3351
3351
  {
3352
3352
  htmlFor: x,
3353
3353
  id: u,
3354
- className: B.accessibleLabel,
3354
+ className: G.accessibleLabel,
3355
3355
  children: r
3356
3356
  }
3357
3357
  ),
3358
3358
  /* @__PURE__ */ l(
3359
3359
  "input",
3360
3360
  {
3361
- ref: K,
3361
+ ref: U,
3362
3362
  id: x,
3363
3363
  name: t,
3364
3364
  type: h,
3365
3365
  disabled: m,
3366
3366
  placeholder: n ? void 0 : " ",
3367
- className: B.input,
3367
+ className: G.input,
3368
3368
  ...f && { "aria-describedby": `${x}-helper` },
3369
3369
  ...a && { "aria-invalid": "true" },
3370
- ...E && !n && { style: { paddingRight: W } },
3371
- ...U
3370
+ ...E && !n && { style: { paddingRight: H } },
3371
+ ...M
3372
3372
  }
3373
3373
  ),
3374
3374
  !n && !c && /* @__PURE__ */ l(
@@ -3377,41 +3377,41 @@ const Rn = ({
3377
3377
  ref: Z,
3378
3378
  "aria-hidden": !0,
3379
3379
  htmlFor: x,
3380
- className: B.visibleLabel,
3380
+ className: G.visibleLabel,
3381
3381
  children: r
3382
3382
  }
3383
3383
  ),
3384
3384
  f && /* @__PURE__ */ l(
3385
3385
  "div",
3386
3386
  {
3387
- ref: R,
3387
+ ref: v,
3388
3388
  id: `${x}-helper`,
3389
- className: B.helperText,
3389
+ className: G.helperText,
3390
3390
  children: f
3391
3391
  }
3392
3392
  ),
3393
3393
  E && /* @__PURE__ */ l(
3394
3394
  "div",
3395
3395
  {
3396
- ref: H,
3397
- className: B.rightElement,
3396
+ ref: K,
3397
+ className: G.rightElement,
3398
3398
  children: E
3399
3399
  }
3400
3400
  ),
3401
- a && f && /* @__PURE__ */ l(nr, { politeness: "polite", clearAnnouncementDelay: 500, children: pe })
3401
+ a && f && /* @__PURE__ */ l(ar, { politeness: "polite", clearAnnouncementDelay: 500, children: pe })
3402
3402
  ] });
3403
3403
  }
3404
3404
  );
3405
- ot.displayName = "TextInput";
3406
- function Dn(e) {
3407
- return St(() => e.every((t) => t == null) ? () => {
3405
+ rt.displayName = "TextInput";
3406
+ function On(e) {
3407
+ return kt(() => e.every((t) => t == null) ? () => {
3408
3408
  } : (t) => {
3409
3409
  e.forEach((r) => {
3410
3410
  typeof r == "function" ? r(t) : r != null && (r.current = t);
3411
3411
  });
3412
3412
  }, e);
3413
3413
  }
3414
- const Ln = 500, Mn = 5e3, $n = 2e4, or = P.forwardRef(
3414
+ const Pn = 500, Dn = 5e3, Ln = 2e4, nr = z.forwardRef(
3415
3415
  ({
3416
3416
  name: e,
3417
3417
  disabled: t,
@@ -3428,40 +3428,40 @@ const Ln = 500, Mn = 5e3, $n = 2e4, or = P.forwardRef(
3428
3428
  const [c, h] = j(!0), [f, E] = j({
3429
3429
  message: null,
3430
3430
  politeness: null
3431
- }), w = $(!0), _ = $(null), U = $(null), K = Dn([u, U]), H = c ? "Show" : "Hide", O = () => {
3432
- _.current && clearTimeout(_.current), w.current || (_.current = setTimeout(() => {
3431
+ }), w = $(!0), I = $(null), M = $(null), U = On([u, M]), K = c ? "Show" : "Hide", O = () => {
3432
+ I.current && clearTimeout(I.current), w.current || (I.current = setTimeout(() => {
3433
3433
  w.current = !0, h(!0), E({
3434
- announcementTimeout: Mn,
3434
+ announcementTimeout: Dn,
3435
3435
  politeness: "polite",
3436
3436
  message: `${r} hiding characters`
3437
3437
  }), n && n(!0);
3438
- }, $n));
3439
- }, W = (R) => {
3440
- R.preventDefault();
3441
- const D = !w.current;
3442
- w.current = D, O(), h(D), E({
3443
- announcementTimeout: Ln,
3438
+ }, Ln));
3439
+ }, H = (v) => {
3440
+ v.preventDefault();
3441
+ const P = !w.current;
3442
+ w.current = P, O(), h(P), E({
3443
+ announcementTimeout: Pn,
3444
3444
  politeness: "assertive",
3445
- message: D ? "Characters hidden" : "Characters showing"
3446
- }), n && n(D);
3447
- }, G = (R) => {
3448
- var D;
3449
- const { relatedTarget: B } = R, ee = (D = U.current) == null ? void 0 : D.parentElement;
3450
- ee != null && ee.contains(B) || d && d();
3451
- }, x = (R) => {
3452
- O(), s && s(R), G(R);
3453
- }, pe = (R) => {
3454
- O(), i && i(R);
3455
- }, Z = (R) => {
3456
- O(), o && o(R);
3445
+ message: P ? "Characters hidden" : "Characters showing"
3446
+ }), n && n(P);
3447
+ }, W = (v) => {
3448
+ var P;
3449
+ const { relatedTarget: G } = v, ee = (P = M.current) == null ? void 0 : P.parentElement;
3450
+ ee != null && ee.contains(G) || d && d();
3451
+ }, x = (v) => {
3452
+ O(), s && s(v), W(v);
3453
+ }, pe = (v) => {
3454
+ O(), i && i(v);
3455
+ }, Z = (v) => {
3456
+ O(), o && o(v);
3457
3457
  };
3458
3458
  return Q(() => () => {
3459
- _.current && clearTimeout(_.current);
3460
- }, []), /* @__PURE__ */ I(fe, { children: [
3459
+ I.current && clearTimeout(I.current);
3460
+ }, []), /* @__PURE__ */ N(fe, { children: [
3461
3461
  /* @__PURE__ */ l(
3462
- ot,
3462
+ rt,
3463
3463
  {
3464
- ref: K,
3464
+ ref: U,
3465
3465
  name: e,
3466
3466
  label: r,
3467
3467
  labelHidden: a,
@@ -3470,18 +3470,18 @@ const Ln = 500, Mn = 5e3, $n = 2e4, or = P.forwardRef(
3470
3470
  onBlur: x,
3471
3471
  onFocus: pe,
3472
3472
  onChange: Z,
3473
- rightElement: P.cloneElement(m, {
3473
+ rightElement: z.cloneElement(m, {
3474
3474
  ref: u,
3475
- label: H,
3476
- onClick: W,
3477
- onBlur: G,
3475
+ label: K,
3476
+ onClick: H,
3477
+ onBlur: W,
3478
3478
  disabled: t
3479
3479
  }),
3480
3480
  ...p
3481
3481
  }
3482
3482
  ),
3483
3483
  /* @__PURE__ */ l(
3484
- nr,
3484
+ ar,
3485
3485
  {
3486
3486
  role: "status",
3487
3487
  politeness: f.politeness,
@@ -3492,7 +3492,7 @@ const Ln = 500, Mn = 5e3, $n = 2e4, or = P.forwardRef(
3492
3492
  ] });
3493
3493
  }
3494
3494
  );
3495
- or.displayName = "TextInputMask";
3495
+ nr.displayName = "TextInputMask";
3496
3496
  /*!
3497
3497
  @versini/ui-textinput v2.0.5
3498
3498
  © 2024 gizmette.com
@@ -3506,14 +3506,7 @@ try {
3506
3506
  });
3507
3507
  } catch {
3508
3508
  }
3509
- const Un = "ASK! ME! ANYTHING!", sr = "LeeLou", Kn = "gizmette.com", Hn = "Log in", Wn = "Sign in with a Passkey", Vo = "Log out", Gn = "Password", Bn = "Powered by ", Yo = "Send", zo = "Profile", Fo = "Statistics", jo = "Chat history", qo = "About", Xo = "Type your question here", Qo = "<clipboard>", Zo = {
3510
- ACTION_WHILE_STREAMING: {
3511
- content: "Cancel chat"
3512
- },
3513
- ACTION_WHILE_NOT_STREAMING: {
3514
- content: "New chat"
3515
- }
3516
- }, es = "N/A", ts = "Tags are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder <clipboard> to automatically insert the content of your clipboard.", rs = {
3509
+ const $n = "ASK! ME! ANYTHING!", Mn = "LeeLou", Un = "Log in", Kn = "Sign in with a Passkey", Ko = "Log out", Hn = "Password", Ho = "Send", Wo = "Profile", Go = "Statistics", Bo = "Chat history", Jo = "About", Vo = "Type your question here", Yo = "<clipboard>", zo = "N/A", Fo = "Tags are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder <clipboard> to automatically insert the content of your clipboard.", jo = {
3517
3510
  PREFERENCES: {
3518
3511
  TITLE: "User settings",
3519
3512
  NAME: "Name",
@@ -3547,115 +3540,25 @@ const Un = "ASK! ME! ANYTHING!", sr = "LeeLou", Kn = "gizmette.com", Hn = "Log i
3547
3540
  ENGINE: "AI model",
3548
3541
  PLUGIN: "Plugin"
3549
3542
  }
3550
- };
3551
- /*!
3552
- @versini/ui-footer v2.0.5
3553
- © 2024 gizmette.com
3554
- */
3555
- try {
3556
- window.__VERSINI_UI_FOOTER__ || (window.__VERSINI_UI_FOOTER__ = {
3557
- version: "2.0.5",
3558
- buildTime: "12/30/2024 07:48 PM EST",
3559
- homepage: "https://github.com/aversini/ui-components",
3560
- license: "MIT"
3561
- });
3562
- } catch {
3563
- }
3564
- const Jn = "av-footer", Vn = ({
3565
- className: e,
3566
- mode: t = "system",
3567
- row1: r,
3568
- row2: a,
3569
- noMargins: n = !1,
3570
- raw: o = !1
3571
- }) => {
3572
- const s = g(
3573
- Jn,
3574
- {
3575
- "text-copy-dark": !o && t === "dark",
3576
- "text-copy-lighter": !o && t === "light",
3577
- "text-copy-dark dark:text-copy-lighter": !o && t === "system",
3578
- "text-copy-lighter dark:text-copy-dark": !o && t === "alt-system",
3579
- "mb-[100px]": !n && !o,
3580
- "mt-0 flex w-full flex-col p-2 text-center text-xs sm:mt-3 md:mx-auto md:max-w-4xl": !o
3581
- },
3582
- e
3583
- );
3584
- return /* @__PURE__ */ I("footer", { className: s, children: [
3585
- r && /* @__PURE__ */ l("div", { children: r }),
3586
- a && /* @__PURE__ */ l("div", { children: a })
3587
- ] });
3588
- }, Yn = P.createContext({
3589
- state: {
3590
- id: "",
3591
- model: Ve,
3592
- engine: Ve,
3593
- usage: 0,
3594
- messages: [],
3595
- isComponent: !1,
3596
- tags: []
3597
- },
3598
- dispatch: () => {
3599
- },
3600
- serverStats: {
3601
- version: "",
3602
- models: [],
3603
- plugins: [],
3604
- engine: Ve,
3605
- engines: []
3606
- }
3607
- }), as = P.createContext({
3608
- state: { searchString: "", sortedCell: "", sortDirection: "" },
3609
- dispatch: () => {
3610
- }
3611
- }), ns = P.createContext({
3612
- state: { tag: "" },
3613
- dispatch: () => {
3614
- }
3615
- }), zn = ({
3616
- serverStats: e
3617
- }) => {
3618
- const { state: t } = Qe(Yn);
3619
- return /* @__PURE__ */ l(
3620
- Vn,
3621
- {
3622
- mode: "light",
3623
- row1: /* @__PURE__ */ I("div", { children: [
3624
- sr,
3625
- " v",
3626
- "5.11.4",
3627
- " - ",
3628
- Bn,
3629
- t && t.engine,
3630
- rt && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
3631
- ] }),
3632
- row2: /* @__PURE__ */ I("div", { children: [
3633
- "© ",
3634
- (/* @__PURE__ */ new Date()).getFullYear(),
3635
- " ",
3636
- Kn
3637
- ] })
3638
- }
3639
- );
3640
- }, Fn = At(
3543
+ }, Wn = St(
3641
3544
  () => import(
3642
3545
  /* webpackChunkName: "LazyHeader" */
3643
- "./LazyHeader.CCjVT4z8.js"
3546
+ "./LazyHeader.C5vQHuXo.js"
3644
3547
  )
3645
- ), jn = () => {
3646
- const { isAuthenticated: e } = tt();
3647
- return /* @__PURE__ */ I(fe, { children: [
3648
- e && /* @__PURE__ */ l(vt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Fn, {}) }),
3649
- /* @__PURE__ */ I("div", { className: "flex items-center justify-center", children: [
3650
- /* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(un, {}) }),
3651
- /* @__PURE__ */ I("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3652
- /* @__PURE__ */ l("h1", { children: sr }),
3653
- /* @__PURE__ */ l("h2", { children: Un })
3548
+ ), Gn = () => {
3549
+ const { isAuthenticated: e } = Ze();
3550
+ return /* @__PURE__ */ N(fe, { children: [
3551
+ e && /* @__PURE__ */ l(_t, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Wn, {}) }),
3552
+ /* @__PURE__ */ N("div", { className: "flex items-center justify-center", children: [
3553
+ /* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(ln, {}) }),
3554
+ /* @__PURE__ */ N("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3555
+ /* @__PURE__ */ l("h1", { children: Mn }),
3556
+ /* @__PURE__ */ l("h2", { children: $n })
3654
3557
  ] })
3655
3558
  ] })
3656
3559
  ] });
3657
- }, qn = () => {
3658
- const { login: e, logoutReason: t, loginWithPasskey: r } = tt(), [a, n] = j(""), [o, s] = j(""), [i, d] = j(!0), [m, p] = j({
3560
+ }, Bn = () => {
3561
+ const { login: e, logoutReason: t, loginWithPasskey: r } = Ze(), [a, n] = j(""), [o, s] = j(""), [i, d] = j(!0), [m, p] = j({
3659
3562
  username: "",
3660
3563
  password: ""
3661
3564
  }), u = async (c) => {
@@ -3669,163 +3572,155 @@ const Jn = "av-footer", Vn = ({
3669
3572
  }, 500);
3670
3573
  }), Q(() => {
3671
3574
  t && s(t);
3672
- }, [t]), /* @__PURE__ */ I(fe, { children: [
3673
- /* @__PURE__ */ I(yn, { children: [
3674
- /* @__PURE__ */ l("div", { className: qa(), children: /* @__PURE__ */ l(jn, {}) }),
3675
- /* @__PURE__ */ I("form", { className: "mt-5", onSubmit: u, children: [
3676
- /* @__PURE__ */ l(Tt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ I(dn, { mode: "dark", children: [
3677
- /* @__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 }) }),
3678
- /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3679
- ot,
3680
- {
3681
- required: !0,
3682
- autoCapitalize: "off",
3683
- autoComplete: "off",
3684
- autoCorrect: "off",
3685
- mode: "dark",
3686
- focusMode: "light",
3687
- name: "username",
3688
- label: "Username",
3689
- onChange: (c) => {
3690
- p({
3691
- ...m,
3692
- username: c.target.value
3693
- }), n("");
3694
- },
3695
- error: a !== ""
3696
- }
3697
- ) }),
3698
- /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3699
- or,
3700
- {
3701
- required: !0,
3702
- autoCapitalize: "off",
3703
- autoComplete: "off",
3704
- autoCorrect: "off",
3705
- mode: "dark",
3706
- focusMode: "light",
3707
- name: "password",
3708
- label: Gn,
3709
- rightElement: /* @__PURE__ */ l(qe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(pn, {}) : /* @__PURE__ */ l(hn, {}) }),
3710
- onMaskChange: d,
3711
- onChange: (c) => {
3712
- p({
3713
- ...m,
3714
- password: c.target.value
3715
- }), n("");
3716
- },
3717
- error: a !== "",
3718
- helperText: a
3719
- }
3720
- ) }),
3721
- /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3722
- er,
3723
- {
3724
- mode: "light",
3725
- focusMode: "light",
3726
- fullWidth: !0,
3727
- noBorder: !0,
3728
- type: "submit",
3729
- className: "mb-4 mt-6",
3730
- children: Hn
3731
- }
3732
- ) })
3733
- ] }) }) }),
3734
- /* @__PURE__ */ l("div", { className: "text-center text-copy-light", children: "or" }),
3735
- /* @__PURE__ */ l(Tt, { alignHorizontal: "center", children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ l(
3736
- qe,
3575
+ }, [t]), /* @__PURE__ */ l(fe, { children: /* @__PURE__ */ N(pn, { children: [
3576
+ /* @__PURE__ */ l("div", { className: Fa(), children: /* @__PURE__ */ l(Gn, {}) }),
3577
+ /* @__PURE__ */ N("form", { className: "mt-5", onSubmit: u, children: [
3578
+ /* @__PURE__ */ l(bt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ N(cn, { mode: "dark", children: [
3579
+ /* @__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 }) }),
3580
+ /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3581
+ rt,
3737
3582
  {
3583
+ required: !0,
3584
+ autoCapitalize: "off",
3585
+ autoComplete: "off",
3586
+ autoCorrect: "off",
3738
3587
  mode: "dark",
3739
3588
  focusMode: "light",
3589
+ name: "username",
3590
+ label: "Username",
3591
+ onChange: (c) => {
3592
+ p({
3593
+ ...m,
3594
+ username: c.target.value
3595
+ }), n("");
3596
+ },
3597
+ error: a !== ""
3598
+ }
3599
+ ) }),
3600
+ /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3601
+ nr,
3602
+ {
3603
+ required: !0,
3604
+ autoCapitalize: "off",
3605
+ autoComplete: "off",
3606
+ autoCorrect: "off",
3607
+ mode: "dark",
3608
+ focusMode: "light",
3609
+ name: "password",
3610
+ label: Hn,
3611
+ rightElement: /* @__PURE__ */ l(je, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(hn, {}) : /* @__PURE__ */ l(dn, {}) }),
3612
+ onMaskChange: d,
3613
+ onChange: (c) => {
3614
+ p({
3615
+ ...m,
3616
+ password: c.target.value
3617
+ }), n("");
3618
+ },
3619
+ error: a !== "",
3620
+ helperText: a
3621
+ }
3622
+ ) }),
3623
+ /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3624
+ Zt,
3625
+ {
3626
+ mode: "light",
3627
+ focusMode: "light",
3740
3628
  fullWidth: !0,
3741
3629
  noBorder: !0,
3742
- className: "mb-4 mt-1",
3743
- labelRight: Wn,
3744
- onClick: r,
3745
- children: /* @__PURE__ */ l(mn, { size: "size-7" })
3630
+ type: "submit",
3631
+ className: "mb-4 mt-6",
3632
+ children: Un
3746
3633
  }
3747
- ) }) })
3748
- ] })
3749
- ] }),
3750
- /* @__PURE__ */ l(zn, {})
3751
- ] });
3752
- }, Xn = new URL(document.location.href).searchParams, Qn = !!Xn.get("debug") || !1, Zn = At(
3634
+ ) })
3635
+ ] }) }) }),
3636
+ /* @__PURE__ */ l("div", { className: "text-center text-copy-light", children: "or" }),
3637
+ /* @__PURE__ */ l(bt, { alignHorizontal: "center", children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ l(
3638
+ je,
3639
+ {
3640
+ mode: "dark",
3641
+ focusMode: "light",
3642
+ fullWidth: !0,
3643
+ noBorder: !0,
3644
+ className: "mb-4 mt-1",
3645
+ labelRight: Kn,
3646
+ onClick: r,
3647
+ children: /* @__PURE__ */ l(un, { size: "size-7" })
3648
+ }
3649
+ ) }) })
3650
+ ] })
3651
+ ] }) });
3652
+ }, Jn = new URL(document.location.href).searchParams, Vn = !!Jn.get("debug") || !1, Yn = St(
3753
3653
  () => import(
3754
3654
  /* webpackChunkName: "LazyApp" */
3755
- "./LazyApp.nhzP-Nbc.js"
3655
+ "./LazyApp.kPg_JpHE.js"
3756
3656
  ).then((e) => e.LazyApp)
3757
- ), eo = ({ isComponent: e }) => {
3758
- const { isAuthenticated: t } = tt();
3759
- return t ? /* @__PURE__ */ l(vt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Zn, { isComponent: e }) }) : /* @__PURE__ */ l(qn, {});
3760
- }, to = ({
3657
+ ), zn = ({ isComponent: e }) => {
3658
+ const { isAuthenticated: t } = Ze();
3659
+ return t ? /* @__PURE__ */ l(_t, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Yn, { isComponent: e }) }) : /* @__PURE__ */ l(Bn, {});
3660
+ }, Fn = ({
3761
3661
  isComponent: e = !1,
3762
- domain: t = ja
3763
- }) => /* @__PURE__ */ l(fe, { children: /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: Qn, children: /* @__PURE__ */ l(eo, { isComponent: e }) }) }), os = ({ domain: e }) => /* @__PURE__ */ l(to, { isComponent: !0, domain: e });
3662
+ domain: t = za
3663
+ }) => /* @__PURE__ */ l(fe, { children: /* @__PURE__ */ l($a, { clientId: Ma, domain: t, debug: Vn, children: /* @__PURE__ */ l(zn, { isComponent: e }) }) }), qo = ({ domain: e }) => /* @__PURE__ */ l(Fn, { isComponent: !0, domain: e });
3764
3664
  export {
3765
- qo as ABOUT_TITLE,
3766
- So as ACTION_ENGINE,
3767
- wo as ACTION_MESSAGE,
3768
- Io as ACTION_MODEL,
3769
- To as ACTION_RESET,
3770
- No as ACTION_RESET_TAGS,
3771
- _o as ACTION_RESTORE,
3772
- Ao as ACTION_SEARCH,
3773
- xo as ACTION_SET_TAGS,
3774
- vo as ACTION_SORT,
3775
- ko as ACTION_STREAMING,
3776
- Ro as ACTION_TOGGLE_TAG,
3777
- sr as APP_NAME,
3778
- Yn as AppContext,
3779
- zn as AppFooter,
3780
- er as C,
3781
- rs as CARDS,
3782
- Qo as CLIPBOARD_TAG,
3783
- Ve as DEFAULT_AI_ENGINE,
3784
- bo as ENGINE_ANTHROPIC,
3785
- fo as ENGINE_OPENAI,
3786
- yo as ERROR_MESSAGE,
3787
- Eo as GPT4_MAX_TOKENS,
3788
- jo as HISTORY_TITLE,
3789
- as as HistoryContext,
3790
- Tt as L,
3791
- Oo as LOCAL_STORAGE_CHAT_DETAILS,
3792
- Lo as LOCAL_STORAGE_ENGINE_TOGGLE,
3793
- Co as LOCAL_STORAGE_PREFIX,
3794
- Po as LOCAL_STORAGE_SEARCH,
3795
- Do as LOCAL_STORAGE_SORT,
3796
- Vo as LOG_OUT,
3665
+ Jo as ABOUT_TITLE,
3666
+ Eo as ACTION_ENGINE,
3667
+ po as ACTION_MESSAGE,
3668
+ yo as ACTION_MODEL,
3669
+ go as ACTION_RESET,
3670
+ ko as ACTION_RESET_TAGS,
3671
+ fo as ACTION_RESTORE,
3672
+ wo as ACTION_SEARCH,
3673
+ So as ACTION_SET_TAGS,
3674
+ To as ACTION_SORT,
3675
+ bo as ACTION_STREAMING,
3676
+ Io as ACTION_TOGGLE_TAG,
3677
+ Mn as APP_NAME,
3678
+ Zt as C,
3679
+ jo as CARDS,
3680
+ Yo as CLIPBOARD_TAG,
3681
+ lo as DEFAULT_AI_ENGINE,
3682
+ ho as ENGINE_ANTHROPIC,
3683
+ uo as ENGINE_OPENAI,
3684
+ co as ERROR_MESSAGE,
3685
+ mo as GPT4_MAX_TOKENS,
3686
+ Bo as HISTORY_TITLE,
3687
+ bt as L,
3688
+ Ao as LOCAL_STORAGE_CHAT_DETAILS,
3689
+ No as LOCAL_STORAGE_ENGINE_TOGGLE,
3690
+ _o as LOCAL_STORAGE_PREFIX,
3691
+ vo as LOCAL_STORAGE_SEARCH,
3692
+ Ro as LOCAL_STORAGE_SORT,
3693
+ Ko as LOG_OUT,
3797
3694
  ue as M,
3798
- jn as MessagesContainerHeader,
3799
- es as NA,
3800
- qe as O,
3801
- zo as PROFILE_TITLE,
3802
- dn as R,
3803
- ho as ROLE_ASSISTANT,
3804
- go as ROLE_HIDDEN,
3805
- po as ROLE_INTERNAL,
3806
- mo as ROLE_SYSTEM,
3807
- uo as ROLE_USER,
3808
- Yo as SEND,
3809
- Fo as STATS,
3810
- Mo as STATS_SEPARATOR,
3811
- os as SassySaint,
3812
- ts as TAGS_DESCRIPTION,
3813
- Zo as TOOLBOX,
3814
- Xo as TYPE_QUESTION,
3815
- ns as TagsContext,
3816
- yn as _,
3817
- Jo as debounce,
3818
- Go as durationFormatter,
3819
- Ko as extractAverage,
3820
- $e as g,
3821
- $o as getCurrentGeoLocation,
3822
- qa as getMessageContaintWrapperClass,
3823
- Ho as isLastMessageFromRole,
3695
+ Gn as MessagesContainerHeader,
3696
+ zo as NA,
3697
+ je as O,
3698
+ Wo as PROFILE_TITLE,
3699
+ cn as R,
3700
+ no as ROLE_ASSISTANT,
3701
+ io as ROLE_HIDDEN,
3702
+ so as ROLE_INTERNAL,
3703
+ oo as ROLE_SYSTEM,
3704
+ ao as ROLE_USER,
3705
+ Ho as SEND,
3706
+ Go as STATS,
3707
+ xo as STATS_SEPARATOR,
3708
+ qo as SassySaint,
3709
+ Fo as TAGS_DESCRIPTION,
3710
+ Vo as TYPE_QUESTION,
3711
+ pn as _,
3712
+ Uo as debounce,
3713
+ $o as durationFormatter,
3714
+ Po as extractAverage,
3715
+ Me as g,
3716
+ Co as getCurrentGeoLocation,
3717
+ Fa as getMessageContaintWrapperClass,
3718
+ Do as isLastMessageFromRole,
3824
3719
  le as j,
3825
- Wo as numberFormatter,
3826
- Bo as pluralize,
3827
- Uo as renderDataAsList,
3828
- tt as un,
3829
- ot as ye,
3830
- mn as z
3720
+ Lo as numberFormatter,
3721
+ Mo as pluralize,
3722
+ Oo as renderDataAsList,
3723
+ Ze as un,
3724
+ rt as ye,
3725
+ un as z
3831
3726
  };