@glydeunity/voice-sdk 1.6.7 → 1.6.8

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.
@@ -193,18 +193,18 @@ class Ki {
193
193
  async fetchConfigForContext(f, o) {
194
194
  const T = `${this.unityUrl}/api/unity/voice/config/${f}`;
195
195
  let r = o ? `${T}/${encodeURIComponent(o)}` : T;
196
- const z = new URLSearchParams();
197
- this.config.skipContinuityLimit === !0 && z.set("skip_continuity_limit", "true"), this.config.limitToLast != null && this.config.limitToLast > 0 && z.set("limit_to_last", String(this.config.limitToLast)), z.toString() && (r += (r.includes("?") ? "&" : "?") + z.toString());
198
- const O = await fetch(r, {
196
+ const C = new URLSearchParams();
197
+ this.config.skipContinuityLimit === !0 && C.set("skip_continuity_limit", "true"), this.config.limitToLast != null && this.config.limitToLast > 0 && C.set("limit_to_last", String(this.config.limitToLast)), C.toString() && (r += (r.includes("?") ? "&" : "?") + C.toString());
198
+ const M = await fetch(r, {
199
199
  method: "GET",
200
200
  headers: this.getAuthHeaders()
201
201
  });
202
- if (!O.ok) {
203
- const U = await O.json().catch(() => ({}));
204
- throw new Error(U.error?.message || U.message || `Failed to fetch voice config: ${O.status}`);
202
+ if (!M.ok) {
203
+ const U = await M.json().catch(() => ({}));
204
+ throw new Error(U.error?.message || U.message || `Failed to fetch voice config: ${M.status}`);
205
205
  }
206
- const { data: L } = await O.json();
207
- return L;
206
+ const { data: B } = await M.json();
207
+ return B;
208
208
  }
209
209
  /**
210
210
  * Initialize and start the voice session
@@ -229,17 +229,17 @@ class Ki {
229
229
  const D = await o.json();
230
230
  throw new Error(D.error?.message || D.message || "Failed to authenticate voice session");
231
231
  }
232
- const { data: T } = await o.json(), { token: r, agent_config: z, deepgram_config: O } = T;
232
+ const { data: T } = await o.json(), { token: r, agent_config: C, deepgram_config: M } = T;
233
233
  this.setSessionContext({
234
- clientUuid: z?.client_uuid,
234
+ clientUuid: C?.client_uuid,
235
235
  contextId: this.config.contextId,
236
236
  contextType: this.config.contextType,
237
- currentJobUuid: z?.job_uuid
237
+ currentJobUuid: C?.job_uuid
238
238
  });
239
- const L = z?.instructions || this.serverConfig?.system_prompt || "You are a helpful AI assistant.";
239
+ const B = C?.instructions || this.serverConfig?.system_prompt || "You are a helpful AI assistant.";
240
240
  await this.initializeAudio();
241
241
  let U = "wss://agent.deepgram.com/v1/agent/converse";
242
- const x = this.config.deepgramConfig || O || this.serverConfig?.deepgram_config;
242
+ const x = this.config.deepgramConfig || M || this.serverConfig?.deepgram_config;
243
243
  if (x?.tags && x.tags.length > 0) {
244
244
  const D = new URLSearchParams();
245
245
  x.tags.forEach((N) => D.append("tag", N)), U += `?${D.toString()}`;
@@ -281,14 +281,14 @@ class Ki {
281
281
  }
282
282
  },
283
283
  // Greeting is server-controlled; only set when server provides it
284
- ...(z?.greeting ?? D?.greeting) && {
285
- greeting: z?.greeting ?? D?.greeting
284
+ ...(C?.greeting ?? D?.greeting) && {
285
+ greeting: C?.greeting ?? D?.greeting
286
286
  }
287
287
  }
288
288
  };
289
- D.tags && D.tags.length > 0 && (N.tags = D.tags), this.ws.send(JSON.stringify(N)), this.emit({ type: "open", payload: { config: z, serverConfig: this.serverConfig } });
289
+ D.tags && D.tags.length > 0 && (N.tags = D.tags), this.ws.send(JSON.stringify(N)), this.emit({ type: "open", payload: { config: C, serverConfig: this.serverConfig } });
290
290
  };
291
- const G = L;
291
+ const Y = B;
292
292
  this.ws.onmessage = (D) => {
293
293
  if (typeof D.data == "string") {
294
294
  try {
@@ -296,7 +296,7 @@ class Ki {
296
296
  if (N.type === "SettingsApplied") {
297
297
  const $ = {
298
298
  type: "UpdatePrompt",
299
- prompt: G
299
+ prompt: Y
300
300
  };
301
301
  this.ws.send(JSON.stringify($)), setTimeout(() => {
302
302
  this.mediaStream || this.startMicrophone().catch((I) => {
@@ -412,12 +412,12 @@ class Ki {
412
412
  if (o === 0) return;
413
413
  const T = o - o % 2;
414
414
  if (T === 0) return;
415
- const r = T === o ? f : f.slice(0, T), z = new Int16Array(r), O = new Float32Array(z.length);
416
- for (let x = 0; x < z.length; x++)
417
- O[x] = z[x] / 32768;
418
- const L = this.resample24kTo48k(O);
415
+ const r = T === o ? f : f.slice(0, T), C = new Int16Array(r), M = new Float32Array(C.length);
416
+ for (let x = 0; x < C.length; x++)
417
+ M[x] = C[x] / 32768;
418
+ const B = this.resample24kTo48k(M);
419
419
  !this.isAgentSpeaking && !this.agentAudioDoneReceived && (this.isAgentSpeaking = !0, this.emit({ type: "agent_speaking", payload: !0 }));
420
- const U = new Float32Array(L);
420
+ const U = new Float32Array(B);
421
421
  this.playbackWorkletNode.port.postMessage({
422
422
  type: "audio",
423
423
  data: U
@@ -428,9 +428,9 @@ class Ki {
428
428
  */
429
429
  resample24kTo48k(f) {
430
430
  const o = f.length * 2, T = new Float32Array(o);
431
- for (let z = 0; z < f.length - 1; z++) {
432
- const O = f[z], L = f[z + 1];
433
- T[z * 2] = O, T[z * 2 + 1] = (O + L) / 2;
431
+ for (let C = 0; C < f.length - 1; C++) {
432
+ const M = f[C], B = f[C + 1];
433
+ T[C * 2] = M, T[C * 2 + 1] = (M + B) / 2;
434
434
  }
435
435
  const r = f.length - 1;
436
436
  return T[r * 2] = f[r], T[r * 2 + 1] = f[r], T;
@@ -556,32 +556,32 @@ class Ki {
556
556
  let T = {};
557
557
  try {
558
558
  T = o.arguments ? JSON.parse(o.arguments) : {};
559
- } catch (O) {
560
- console.warn("[GlydeVoice] Failed to parse function arguments:", O);
559
+ } catch (M) {
560
+ console.warn("[GlydeVoice] Failed to parse function arguments:", M);
561
561
  }
562
562
  let r;
563
563
  try {
564
564
  o.name === "end_conversation" ? r = await this.handleEndConversation(T) : r = await this.executeVoiceFunction(o.name, o.id, T);
565
- } catch (O) {
566
- console.error("[GlydeVoice] Function call error:", O), r = JSON.stringify({
565
+ } catch (M) {
566
+ console.error("[GlydeVoice] Function call error:", M), r = JSON.stringify({
567
567
  error: "Function execution failed",
568
- details: O instanceof Error ? O.message : String(O)
568
+ details: M instanceof Error ? M.message : String(M)
569
569
  });
570
570
  }
571
- const z = {
571
+ const C = {
572
572
  type: "FunctionCallResponse",
573
573
  id: o.id,
574
574
  name: o.name,
575
575
  content: r
576
576
  };
577
- this.ws && this.ws.readyState === WebSocket.OPEN ? (this.ws.send(JSON.stringify(z)), console.log("[GlydeVoice] Function response sent:", o.name)) : console.error("[GlydeVoice] Cannot send function response - WebSocket not open");
577
+ this.ws && this.ws.readyState === WebSocket.OPEN ? (this.ws.send(JSON.stringify(C)), console.log("[GlydeVoice] Function response sent:", o.name)) : console.error("[GlydeVoice] Cannot send function response - WebSocket not open");
578
578
  try {
579
- const O = typeof r == "string" ? JSON.parse(r) : r;
580
- if (O && typeof O == "object" && O.context_switch && typeof O.context_switch.contextType == "string" && typeof O.context_switch.contextId == "string") {
581
- const L = O.context_switch;
582
- this.emit({ type: "context_switch", payload: L }), this.pendingContextReinit = { contextType: L.contextType, contextId: L.contextId }, this.pendingContextReinitFallbackTimer && clearTimeout(this.pendingContextReinitFallbackTimer), this.pendingContextReinitFallbackTimer = setTimeout(() => {
579
+ const M = typeof r == "string" ? JSON.parse(r) : r;
580
+ if (M && typeof M == "object" && M.context_switch && typeof M.context_switch.contextType == "string" && typeof M.context_switch.contextId == "string") {
581
+ const B = M.context_switch;
582
+ this.emit({ type: "context_switch", payload: B }), this.pendingContextReinit = { contextType: B.contextType, contextId: B.contextId }, this.pendingContextReinitFallbackTimer && clearTimeout(this.pendingContextReinitFallbackTimer), this.pendingContextReinitFallbackTimer = setTimeout(() => {
583
583
  this.pendingContextReinitFallbackTimer = null, this.tryFlushPendingContextReinit();
584
- }, Ki.PENDING_REINIT_FALLBACK_MS), console.log("[GlydeVoice] Context switch requested; will reinitialize when agent stops speaking or after", Ki.PENDING_REINIT_FALLBACK_MS / 1e3, "s:", L);
584
+ }, Ki.PENDING_REINIT_FALLBACK_MS), console.log("[GlydeVoice] Context switch requested; will reinitialize when agent stops speaking or after", Ki.PENDING_REINIT_FALLBACK_MS / 1e3, "s:", B);
585
585
  }
586
586
  } catch {
587
587
  }
@@ -616,24 +616,24 @@ class Ki {
616
616
  })
617
617
  });
618
618
  if (!r.ok) {
619
- const O = await r.json().catch(() => ({})), L = O.error?.message || O.message || `HTTP ${r.status}`;
620
- throw console.error("[GlydeVoice] Voice function API call failed:", r.status, L), new Error(L);
619
+ const M = await r.json().catch(() => ({})), B = M.error?.message || M.message || `HTTP ${r.status}`;
620
+ throw console.error("[GlydeVoice] Voice function API call failed:", r.status, B), new Error(B);
621
621
  }
622
- const z = await r.json();
623
- if (z.success && z.data?.output !== void 0) {
624
- const O = z.data.output;
625
- if (typeof O == "object" && O !== null && O.success === !1) {
626
- const L = O.error ?? O.fallback_message;
627
- console.warn("[GlydeVoice] Voice function backend reported failure:", f, L);
622
+ const C = await r.json();
623
+ if (C.success && C.data?.output !== void 0) {
624
+ const M = C.data.output;
625
+ if (typeof M == "object" && M !== null && M.success === !1) {
626
+ const B = M.error ?? M.fallback_message;
627
+ console.warn("[GlydeVoice] Voice function backend reported failure:", f, B);
628
628
  }
629
- return typeof O == "string" ? O : JSON.stringify(O);
629
+ return typeof M == "string" ? M : JSON.stringify(M);
630
630
  }
631
- throw console.error("[GlydeVoice] Voice function invalid response:", z), new Error("Invalid response from voice function endpoint");
631
+ throw console.error("[GlydeVoice] Voice function invalid response:", C), new Error("Invalid response from voice function endpoint");
632
632
  } catch (r) {
633
- const z = r instanceof Error ? r.message : "Function execution failed";
634
- return console.error("[GlydeVoice] Voice function error:", z, r), JSON.stringify({
633
+ const C = r instanceof Error ? r.message : "Function execution failed";
634
+ return console.error("[GlydeVoice] Voice function error:", C, r), JSON.stringify({
635
635
  success: !1,
636
- error: z,
636
+ error: C,
637
637
  fallback_message: "I apologize, but I'm having trouble with that request right now. Is there something else I can help you with?"
638
638
  });
639
639
  }
@@ -707,14 +707,14 @@ class Ki {
707
707
  promptLength: T?.system_prompt?.length || 0,
708
708
  promptPreview: T?.system_prompt?.substring(0, 200) || "(no prompt)"
709
709
  });
710
- const r = T?.system_prompt || "You are a helpful AI assistant.", z = this.getContextDescription(f), O = this.getContextDescription(this.config.contextType || "screening"), L = `
710
+ const r = T?.system_prompt || "You are a helpful AI assistant.", C = this.getContextDescription(f), M = this.getContextDescription(this.config.contextType || "screening"), B = `
711
711
  ---
712
712
  ## CRITICAL CONTEXT SWITCH - IMMEDIATE EFFECT
713
713
  ---
714
714
 
715
- **STOP**: The previous conversation context ("${O}") has ended.
715
+ **STOP**: The previous conversation context ("${M}") has ended.
716
716
 
717
- **NEW CONTEXT**: You are now in "${z}" mode.
717
+ **NEW CONTEXT**: You are now in "${C}" mode.
718
718
 
719
719
  **IMPORTANT**:
720
720
  - Do NOT continue any screening agenda, interview questions, or job-specific requirements from before.
@@ -727,11 +727,11 @@ class Ki {
727
727
 
728
728
  ${r}`;
729
729
  console.log("[GlydeVoice] Sending UpdatePrompt to Deepgram:", {
730
- promptLength: L.length,
731
- previousContext: O,
732
- newContext: z,
733
- headerPreview: L.substring(0, 500)
734
- }), this.ws.send(JSON.stringify({ type: "UpdatePrompt", prompt: L })), this.config = { ...this.config, contextType: f, contextId: o }, this.setSessionContext({ contextType: f, contextId: o }), this.serverConfig = T, console.log("[GlydeVoice] Context and prompt updated in-place:", f, o);
730
+ promptLength: B.length,
731
+ previousContext: M,
732
+ newContext: C,
733
+ headerPreview: B.substring(0, 500)
734
+ }), this.ws.send(JSON.stringify({ type: "UpdatePrompt", prompt: B })), this.config = { ...this.config, contextType: f, contextId: o }, this.setSessionContext({ contextType: f, contextId: o }), this.serverConfig = T, console.log("[GlydeVoice] Context and prompt updated in-place:", f, o);
735
735
  }
736
736
  /**
737
737
  * Get a human-readable description of a context type for use in context switch messages.
@@ -808,15 +808,15 @@ class mg {
808
808
  const T = `${this.unityUrl}${f}`, r = {
809
809
  ...this.getAuthHeaders(),
810
810
  ...o.headers || {}
811
- }, z = await fetch(T, {
811
+ }, C = await fetch(T, {
812
812
  ...o,
813
813
  headers: r
814
814
  });
815
- if (!z.ok) {
816
- const O = await z.json().catch(() => ({})), L = O.error?.message || O.message || `Request failed: ${z.status}`;
817
- throw new Error(L);
815
+ if (!C.ok) {
816
+ const M = await C.json().catch(() => ({})), B = M.error?.message || M.message || `Request failed: ${C.status}`;
817
+ throw new Error(B);
818
818
  }
819
- return z.json();
819
+ return C.json();
820
820
  }
821
821
  /**
822
822
  * Update the current context
@@ -1024,7 +1024,7 @@ class pg extends mg {
1024
1024
  * Initialize the chat session.
1025
1025
  * For screening context, fetches summary with greeting.
1026
1026
  * For other contexts (discovery, job_apply, etc.), generates initial greeting.
1027
- *
1027
+ *
1028
1028
  * @returns Array with the greeting message
1029
1029
  */
1030
1030
  async initialize() {
@@ -1103,17 +1103,17 @@ class pg extends mg {
1103
1103
  };
1104
1104
  this.history.push(o), this.config.onMessage && this.config.onMessage(o), this.emitEvent({ type: "message", payload: o }), this.setTyping(!0);
1105
1105
  try {
1106
- const T = this.buildChatRequestBody(f.trim()), r = this.getChatEndpoint(), z = await this.unityFetch(r, {
1106
+ const T = this.buildChatRequestBody(f.trim()), r = this.getChatEndpoint(), C = await this.unityFetch(r, {
1107
1107
  method: "POST",
1108
1108
  body: JSON.stringify(T)
1109
1109
  });
1110
- z.history?.messages && (this.history = z.history.messages.filter(
1110
+ C.history?.messages && (this.history = C.history.messages.filter(
1111
1111
  (U) => U.role !== "system"
1112
- )), z.context_switch && (this.contextSwitchManager.requestContextSwitch(z.context_switch), await this.contextSwitchManager.flushPendingContextSwitch());
1113
- const O = [...this.history].reverse().find((U) => U.role === "assistant");
1114
- return O ? (this.config.onMessage && this.config.onMessage(O), this.emitEvent({ type: "message", payload: O }), O) : {
1112
+ )), C.context_switch && (this.contextSwitchManager.requestContextSwitch(C.context_switch), await this.contextSwitchManager.flushPendingContextSwitch());
1113
+ const M = [...this.history].reverse().find((U) => U.role === "assistant");
1114
+ return M ? (this.config.onMessage && this.config.onMessage(M), this.emitEvent({ type: "message", payload: M }), M) : {
1115
1115
  role: "assistant",
1116
- content: z.response || "I received your message.",
1116
+ content: C.response || "I received your message.",
1117
1117
  created: (/* @__PURE__ */ new Date()).toISOString()
1118
1118
  };
1119
1119
  } catch (T) {
@@ -1173,11 +1173,11 @@ class pg extends mg {
1173
1173
  }
1174
1174
  /**
1175
1175
  * Get the current conversation history
1176
- *
1176
+ *
1177
1177
  * IMPORTANT: System messages are filtered out - they contain AI context
1178
1178
  * (summaries, instructions) that should never be displayed to users.
1179
1179
  * Only user and assistant messages are returned.
1180
- *
1180
+ *
1181
1181
  * @returns Array of chat messages (user and assistant only)
1182
1182
  */
1183
1183
  getHistory() {
@@ -1258,7 +1258,7 @@ function bg() {
1258
1258
  if (Md) return K;
1259
1259
  Md = 1;
1260
1260
  var h = { env: { NODE_ENV: "production" } };
1261
- var f = /* @__PURE__ */ Symbol.for("react.transitional.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), z = /* @__PURE__ */ Symbol.for("react.profiler"), O = /* @__PURE__ */ Symbol.for("react.consumer"), L = /* @__PURE__ */ Symbol.for("react.context"), U = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), G = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.activity"), $ = Symbol.iterator;
1261
+ var f = /* @__PURE__ */ Symbol.for("react.transitional.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), C = /* @__PURE__ */ Symbol.for("react.profiler"), M = /* @__PURE__ */ Symbol.for("react.consumer"), B = /* @__PURE__ */ Symbol.for("react.context"), U = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), Y = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.activity"), $ = Symbol.iterator;
1262
1262
  function I(y) {
1263
1263
  return y === null || typeof y != "object" ? null : (y = $ && y[$] || y["@@iterator"], typeof y == "function" ? y : null);
1264
1264
  }
@@ -1291,19 +1291,19 @@ function bg() {
1291
1291
  function dt(y, _, w) {
1292
1292
  this.props = y, this.context = _, this.refs = k, this.updater = w || Z;
1293
1293
  }
1294
- var B = dt.prototype = new St();
1295
- B.constructor = dt, J(B, ot.prototype), B.isPureReactComponent = !0;
1294
+ var q = dt.prototype = new St();
1295
+ q.constructor = dt, J(q, ot.prototype), q.isPureReactComponent = !0;
1296
1296
  var Tt = Array.isArray;
1297
1297
  function jt() {
1298
1298
  }
1299
1299
  var tt = { H: null, A: null, T: null, S: null }, Gt = Object.prototype.hasOwnProperty;
1300
1300
  function Pt(y, _, w) {
1301
- var Y = w.ref;
1301
+ var L = w.ref;
1302
1302
  return {
1303
1303
  $$typeof: f,
1304
1304
  type: y,
1305
1305
  key: _,
1306
- ref: Y !== void 0 ? Y : null,
1306
+ ref: L !== void 0 ? L : null,
1307
1307
  props: w
1308
1308
  };
1309
1309
  }
@@ -1346,7 +1346,7 @@ function bg() {
1346
1346
  }
1347
1347
  throw y;
1348
1348
  }
1349
- function M(y, _, w, Y, et) {
1349
+ function O(y, _, w, L, et) {
1350
1350
  var lt = typeof y;
1351
1351
  (lt === "undefined" || lt === "boolean") && (y = null);
1352
1352
  var yt = !1;
@@ -1365,17 +1365,17 @@ function bg() {
1365
1365
  yt = !0;
1366
1366
  break;
1367
1367
  case D:
1368
- return yt = y._init, M(
1368
+ return yt = y._init, O(
1369
1369
  yt(y._payload),
1370
1370
  _,
1371
1371
  w,
1372
- Y,
1372
+ L,
1373
1373
  et
1374
1374
  );
1375
1375
  }
1376
1376
  }
1377
1377
  if (yt)
1378
- return et = et(y), yt = Y === "" ? "." + Vt(y, 0) : Y, Tt(et) ? (w = "", yt != null && (w = yt.replace(fe, "$&/") + "/"), M(et, _, w, "", function(Da) {
1378
+ return et = et(y), yt = L === "" ? "." + Vt(y, 0) : L, Tt(et) ? (w = "", yt != null && (w = yt.replace(fe, "$&/") + "/"), O(et, _, w, "", function(Da) {
1379
1379
  return Da;
1380
1380
  })) : et != null && (Xt(et) && (et = Bt(
1381
1381
  et,
@@ -1385,20 +1385,20 @@ function bg() {
1385
1385
  ) + "/") + yt
1386
1386
  )), _.push(et)), 1;
1387
1387
  yt = 0;
1388
- var Ft = Y === "" ? "." : Y + ":";
1388
+ var Ft = L === "" ? "." : L + ":";
1389
1389
  if (Tt(y))
1390
1390
  for (var Ot = 0; Ot < y.length; Ot++)
1391
- Y = y[Ot], lt = Ft + Vt(Y, Ot), yt += M(
1392
- Y,
1391
+ L = y[Ot], lt = Ft + Vt(L, Ot), yt += O(
1392
+ L,
1393
1393
  _,
1394
1394
  w,
1395
1395
  lt,
1396
1396
  et
1397
1397
  );
1398
1398
  else if (Ot = I(y), typeof Ot == "function")
1399
- for (y = Ot.call(y), Ot = 0; !(Y = y.next()).done; )
1400
- Y = Y.value, lt = Ft + Vt(Y, Ot++), yt += M(
1401
- Y,
1399
+ for (y = Ot.call(y), Ot = 0; !(L = y.next()).done; )
1400
+ L = L.value, lt = Ft + Vt(L, Ot++), yt += O(
1401
+ L,
1402
1402
  _,
1403
1403
  w,
1404
1404
  lt,
@@ -1406,11 +1406,11 @@ function bg() {
1406
1406
  );
1407
1407
  else if (lt === "object") {
1408
1408
  if (typeof y.then == "function")
1409
- return M(
1409
+ return O(
1410
1410
  R(y),
1411
1411
  _,
1412
1412
  w,
1413
- Y,
1413
+ L,
1414
1414
  et
1415
1415
  );
1416
1416
  throw _ = String(y), Error(
@@ -1421,10 +1421,10 @@ function bg() {
1421
1421
  }
1422
1422
  function j(y, _, w) {
1423
1423
  if (y == null) return y;
1424
- var Y = [], et = 0;
1425
- return M(y, Y, "", "", function(lt) {
1424
+ var L = [], et = 0;
1425
+ return O(y, L, "", "", function(lt) {
1426
1426
  return _.call(w, lt, et++);
1427
- }), Y;
1427
+ }), L;
1428
1428
  }
1429
1429
  function it(y) {
1430
1430
  if (y._status === -1) {
@@ -1485,7 +1485,7 @@ function bg() {
1485
1485
  return y;
1486
1486
  }
1487
1487
  };
1488
- return K.Activity = N, K.Children = $t, K.Component = ot, K.Fragment = T, K.Profiler = z, K.PureComponent = dt, K.StrictMode = r, K.Suspense = x, K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = tt, K.__COMPILER_RUNTIME = {
1488
+ return K.Activity = N, K.Children = $t, K.Component = ot, K.Fragment = T, K.Profiler = C, K.PureComponent = dt, K.StrictMode = r, K.Suspense = x, K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = tt, K.__COMPILER_RUNTIME = {
1489
1489
  __proto__: null,
1490
1490
  c: function(y) {
1491
1491
  return tt.H.useMemoCache(y);
@@ -1501,35 +1501,35 @@ function bg() {
1501
1501
  throw Error(
1502
1502
  "The argument must be a React element, but you passed " + y + "."
1503
1503
  );
1504
- var Y = J({}, y.props), et = y.key;
1504
+ var L = J({}, y.props), et = y.key;
1505
1505
  if (_ != null)
1506
1506
  for (lt in _.key !== void 0 && (et = "" + _.key), _)
1507
- !Gt.call(_, lt) || lt === "key" || lt === "__self" || lt === "__source" || lt === "ref" && _.ref === void 0 || (Y[lt] = _[lt]);
1507
+ !Gt.call(_, lt) || lt === "key" || lt === "__self" || lt === "__source" || lt === "ref" && _.ref === void 0 || (L[lt] = _[lt]);
1508
1508
  var lt = arguments.length - 2;
1509
- if (lt === 1) Y.children = w;
1509
+ if (lt === 1) L.children = w;
1510
1510
  else if (1 < lt) {
1511
1511
  for (var yt = Array(lt), Ft = 0; Ft < lt; Ft++)
1512
1512
  yt[Ft] = arguments[Ft + 2];
1513
- Y.children = yt;
1513
+ L.children = yt;
1514
1514
  }
1515
- return Pt(y.type, et, Y);
1515
+ return Pt(y.type, et, L);
1516
1516
  }, K.createContext = function(y) {
1517
1517
  return y = {
1518
- $$typeof: L,
1518
+ $$typeof: B,
1519
1519
  _currentValue: y,
1520
1520
  _currentValue2: y,
1521
1521
  _threadCount: 0,
1522
1522
  Provider: null,
1523
1523
  Consumer: null
1524
1524
  }, y.Provider = y, y.Consumer = {
1525
- $$typeof: O,
1525
+ $$typeof: M,
1526
1526
  _context: y
1527
1527
  }, y;
1528
1528
  }, K.createElement = function(y, _, w) {
1529
- var Y, et = {}, lt = null;
1529
+ var L, et = {}, lt = null;
1530
1530
  if (_ != null)
1531
- for (Y in _.key !== void 0 && (lt = "" + _.key), _)
1532
- Gt.call(_, Y) && Y !== "key" && Y !== "__self" && Y !== "__source" && (et[Y] = _[Y]);
1531
+ for (L in _.key !== void 0 && (lt = "" + _.key), _)
1532
+ Gt.call(_, L) && L !== "key" && L !== "__self" && L !== "__source" && (et[L] = _[L]);
1533
1533
  var yt = arguments.length - 2;
1534
1534
  if (yt === 1) et.children = w;
1535
1535
  else if (1 < yt) {
@@ -1538,8 +1538,8 @@ function bg() {
1538
1538
  et.children = Ft;
1539
1539
  }
1540
1540
  if (y && y.defaultProps)
1541
- for (Y in yt = y.defaultProps, yt)
1542
- et[Y] === void 0 && (et[Y] = yt[Y]);
1541
+ for (L in yt = y.defaultProps, yt)
1542
+ et[L] === void 0 && (et[L] = yt[L]);
1543
1543
  return Pt(y, lt, et);
1544
1544
  }, K.createRef = function() {
1545
1545
  return { current: null };
@@ -1553,7 +1553,7 @@ function bg() {
1553
1553
  };
1554
1554
  }, K.memo = function(y, _) {
1555
1555
  return {
1556
- $$typeof: G,
1556
+ $$typeof: Y,
1557
1557
  type: y,
1558
1558
  compare: _ === void 0 ? null : _
1559
1559
  };
@@ -1561,8 +1561,8 @@ function bg() {
1561
1561
  var _ = tt.T, w = {};
1562
1562
  tt.T = w;
1563
1563
  try {
1564
- var Y = y(), et = tt.S;
1565
- et !== null && et(w, Y), typeof Y == "object" && Y !== null && typeof Y.then == "function" && Y.then(jt, P);
1564
+ var L = y(), et = tt.S;
1565
+ et !== null && et(w, L), typeof L == "object" && L !== null && typeof L.then == "function" && L.then(jt, P);
1566
1566
  } catch (lt) {
1567
1567
  P(lt);
1568
1568
  } finally {
@@ -1620,51 +1620,51 @@ function Ef() {
1620
1620
  var Q = Ef();
1621
1621
  const Zi = /* @__PURE__ */ vg(Q);
1622
1622
  function xg(h) {
1623
- const [f, o] = Q.useState("idle"), [T, r] = Q.useState([]), [z, O] = Q.useState(!1), [L, U] = Q.useState(!1), [x, G] = Q.useState(!1), [D, N] = Q.useState(null), $ = Q.useRef(null), I = Q.useCallback((B) => {
1624
- switch (B.type) {
1623
+ const [f, o] = Q.useState("idle"), [T, r] = Q.useState([]), [C, M] = Q.useState(!1), [B, U] = Q.useState(!1), [x, Y] = Q.useState(!1), [D, N] = Q.useState(null), $ = Q.useRef(null), I = Q.useCallback((q) => {
1624
+ switch (q.type) {
1625
1625
  case "ready":
1626
1626
  o("active");
1627
1627
  break;
1628
1628
  case "close":
1629
- o("idle"), O(!1), U(!1);
1629
+ o("idle"), M(!1), U(!1);
1630
1630
  break;
1631
1631
  case "error":
1632
1632
  o("error"), N(
1633
- typeof B.payload == "object" && B.payload !== null && "message" in B.payload ? String(B.payload.message) : "Connection error"
1633
+ typeof q.payload == "object" && q.payload !== null && "message" in q.payload ? String(q.payload.message) : "Connection error"
1634
1634
  );
1635
1635
  break;
1636
1636
  case "user_speaking":
1637
- O(!!B.payload);
1637
+ M(!!q.payload);
1638
1638
  break;
1639
1639
  case "agent_speaking":
1640
- U(!!B.payload);
1640
+ U(!!q.payload);
1641
1641
  break;
1642
1642
  }
1643
- }, []), Z = Q.useCallback((B, Tt) => {
1643
+ }, []), Z = Q.useCallback((q, Tt) => {
1644
1644
  r((jt) => [...jt, {
1645
1645
  role: Tt,
1646
- content: B,
1646
+ content: q,
1647
1647
  timestamp: /* @__PURE__ */ new Date()
1648
1648
  }]);
1649
1649
  }, []), J = Q.useCallback(async () => {
1650
1650
  o("connecting"), N(null);
1651
1651
  try {
1652
- const B = new Ki({
1652
+ const q = new Ki({
1653
1653
  ...h,
1654
1654
  onEvent: I,
1655
1655
  onTranscript: Z
1656
1656
  });
1657
- $.current = B, await B.start();
1658
- } catch (B) {
1659
- console.error("[useVoiceAgent] Failed to start:", B), o("error"), N(B instanceof Error ? B.message : "Failed to connect");
1657
+ $.current = q, await q.start();
1658
+ } catch (q) {
1659
+ console.error("[useVoiceAgent] Failed to start:", q), o("error"), N(q instanceof Error ? q.message : "Failed to connect");
1660
1660
  }
1661
1661
  }, [h, I, Z]), k = Q.useCallback(() => {
1662
- $.current?.stop(), $.current = null, o("idle"), O(!1), U(!1);
1662
+ $.current?.stop(), $.current = null, o("idle"), M(!1), U(!1);
1663
1663
  }, []), ot = Q.useCallback(() => {
1664
- const B = !x;
1665
- G(B), $.current?.setMuted(B);
1666
- }, [x]), St = Q.useCallback((B) => {
1667
- G(B), $.current?.setMuted(B);
1664
+ const q = !x;
1665
+ Y(q), $.current?.setMuted(q);
1666
+ }, [x]), St = Q.useCallback((q) => {
1667
+ Y(q), $.current?.setMuted(q);
1668
1668
  }, []), dt = Q.useCallback(() => {
1669
1669
  r([]);
1670
1670
  }, []);
@@ -1675,8 +1675,8 @@ function xg(h) {
1675
1675
  }, [h.autoStart, f, J]), {
1676
1676
  status: f,
1677
1677
  transcripts: T,
1678
- isUserSpeaking: z,
1679
- isAgentSpeaking: L,
1678
+ isUserSpeaking: C,
1679
+ isAgentSpeaking: B,
1680
1680
  isMuted: x,
1681
1681
  errorMessage: D,
1682
1682
  start: J,
@@ -1688,15 +1688,15 @@ function xg(h) {
1688
1688
  };
1689
1689
  }
1690
1690
  function Sg(h) {
1691
- const [f, o] = Q.useState("idle"), [T, r] = Q.useState([]), [z, O] = Q.useState(!1), [L, U] = Q.useState(null), x = Q.useRef(null), G = Q.useRef(!1), D = Q.useCallback(() => (x.current || (x.current = new pg({
1691
+ const [f, o] = Q.useState("idle"), [T, r] = Q.useState([]), [C, M] = Q.useState(!1), [B, U] = Q.useState(null), x = Q.useRef(null), Y = Q.useRef(!1), D = Q.useCallback(() => (x.current || (x.current = new pg({
1692
1692
  ...h,
1693
- onTyping: O
1693
+ onTyping: M
1694
1694
  })), x.current), [h]), N = Q.useCallback(async () => {
1695
- if (!G.current) {
1695
+ if (!Y.current) {
1696
1696
  o("loading"), U(null);
1697
1697
  try {
1698
1698
  const J = await D().initialize();
1699
- r(J), o("ready"), G.current = !0;
1699
+ r(J), o("ready"), Y.current = !0;
1700
1700
  } catch (Z) {
1701
1701
  console.error("[useTextChat] Initialization error:", Z), o("error"), U(Z instanceof Error ? Z.message : "Failed to initialize chat");
1702
1702
  }
@@ -1712,23 +1712,23 @@ function Sg(h) {
1712
1712
  };
1713
1713
  r((St) => [...St, k]), await J.sendMessage(Z);
1714
1714
  const ot = J.getHistory();
1715
- r(ot), f !== "ready" && (o("ready"), G.current = !0);
1715
+ r(ot), f !== "ready" && (o("ready"), Y.current = !0);
1716
1716
  } catch (J) {
1717
1717
  console.error("[useTextChat] Send message error:", J), U(J instanceof Error ? J.message : "Failed to send message");
1718
1718
  }
1719
1719
  }
1720
1720
  }, [D, f]), I = Q.useCallback(() => {
1721
- x.current?.clearHistory(), r([]), G.current = !1, o("idle");
1721
+ x.current?.clearHistory(), r([]), Y.current = !1, o("idle");
1722
1722
  }, []);
1723
1723
  return Q.useEffect(() => {
1724
- h.autoInit && !G.current && h.contextId && N();
1724
+ h.autoInit && !Y.current && h.contextId && N();
1725
1725
  }, [h.autoInit, h.contextId, N]), Q.useEffect(() => () => {
1726
1726
  x.current = null;
1727
1727
  }, []), {
1728
1728
  status: f,
1729
1729
  messages: T,
1730
- isLoading: z,
1731
- errorMessage: L,
1730
+ isLoading: C,
1731
+ errorMessage: B,
1732
1732
  initialize: N,
1733
1733
  sendMessage: $,
1734
1734
  clearHistory: I,
@@ -1741,19 +1741,19 @@ function Tg() {
1741
1741
  if (Ud) return zn;
1742
1742
  Ud = 1;
1743
1743
  var h = /* @__PURE__ */ Symbol.for("react.transitional.element"), f = /* @__PURE__ */ Symbol.for("react.fragment");
1744
- function o(T, r, z) {
1745
- var O = null;
1746
- if (z !== void 0 && (O = "" + z), r.key !== void 0 && (O = "" + r.key), "key" in r) {
1747
- z = {};
1748
- for (var L in r)
1749
- L !== "key" && (z[L] = r[L]);
1750
- } else z = r;
1751
- return r = z.ref, {
1744
+ function o(T, r, C) {
1745
+ var M = null;
1746
+ if (C !== void 0 && (M = "" + C), r.key !== void 0 && (M = "" + r.key), "key" in r) {
1747
+ C = {};
1748
+ for (var B in r)
1749
+ B !== "key" && (C[B] = r[B]);
1750
+ } else C = r;
1751
+ return r = C.ref, {
1752
1752
  $$typeof: h,
1753
1753
  type: T,
1754
- key: O,
1754
+ key: M,
1755
1755
  ref: r !== void 0 ? r : null,
1756
- props: z
1756
+ props: C
1757
1757
  };
1758
1758
  }
1759
1759
  return zn.Fragment = f, zn.jsx = o, zn.jsxs = o, zn;
@@ -2435,12 +2435,12 @@ const Ld = ({
2435
2435
  apiKey: o,
2436
2436
  authToken: T,
2437
2437
  unityApiUrl: r = "https://api.glydeunity.com",
2438
- contextType: z = "screening",
2439
- height: O = "600px",
2440
- onTranscript: L,
2438
+ contextType: C = "screening",
2439
+ height: M = "600px",
2440
+ onTranscript: B,
2441
2441
  onCallEnd: U,
2442
2442
  onError: x,
2443
- onSwitchToText: G,
2443
+ onSwitchToText: Y,
2444
2444
  skipContinuityLimit: D,
2445
2445
  limitToLast: N
2446
2446
  }) => {
@@ -2452,14 +2452,14 @@ const Ld = ({
2452
2452
  isMuted: ot,
2453
2453
  errorMessage: St,
2454
2454
  start: dt,
2455
- stop: B,
2455
+ stop: q,
2456
2456
  toggleMute: Tt,
2457
2457
  clearTranscripts: jt
2458
2458
  } = xg({
2459
2459
  publishableKey: f,
2460
2460
  apiKey: o,
2461
2461
  authToken: T,
2462
- contextType: z,
2462
+ contextType: C,
2463
2463
  contextId: h,
2464
2464
  unityBaseUrl: r,
2465
2465
  skipContinuityLimit: D,
@@ -2468,15 +2468,15 @@ const Ld = ({
2468
2468
  Q.useEffect(() => {
2469
2469
  $.current?.scrollIntoView({ behavior: "smooth" });
2470
2470
  }, [Z]), Q.useEffect(() => {
2471
- if (L && Z.length > 0) {
2471
+ if (B && Z.length > 0) {
2472
2472
  const Bt = Z[Z.length - 1];
2473
- L(Bt.content, Bt.role);
2473
+ B(Bt.content, Bt.role);
2474
2474
  }
2475
- }, [Z, L]), Q.useEffect(() => {
2475
+ }, [Z, B]), Q.useEffect(() => {
2476
2476
  I === "error" && St && x && x(new Error(St));
2477
2477
  }, [I, St, x]);
2478
2478
  const tt = () => {
2479
- switch (z) {
2479
+ switch (C) {
2480
2480
  case "screening":
2481
2481
  return "Screening Interview";
2482
2482
  case "recruiter":
@@ -2491,13 +2491,13 @@ const Ld = ({
2491
2491
  }, Gt = async () => {
2492
2492
  jt(), await dt();
2493
2493
  }, Pt = () => {
2494
- B(), U?.();
2494
+ q(), U?.();
2495
2495
  };
2496
2496
  return /* @__PURE__ */ v.jsxs("div", { style: {
2497
2497
  background: "var(--glyde-background, white)",
2498
2498
  borderRadius: "12px",
2499
2499
  boxShadow: "0 4px 6px rgba(0,0,0,0.1)",
2500
- height: typeof O == "number" ? `${O}px` : O,
2500
+ height: typeof M == "number" ? `${M}px` : M,
2501
2501
  display: "flex",
2502
2502
  flexDirection: "column",
2503
2503
  overflow: "hidden"
@@ -2551,7 +2551,7 @@ const Ld = ({
2551
2551
  },
2552
2552
  children: [
2553
2553
  "Start ",
2554
- z === "screening" ? "Interview" : "Call"
2554
+ C === "screening" ? "Interview" : "Call"
2555
2555
  ]
2556
2556
  }
2557
2557
  ),
@@ -2561,11 +2561,11 @@ const Ld = ({
2561
2561
  marginBottom: "24px",
2562
2562
  textAlign: "center",
2563
2563
  maxWidth: "280px"
2564
- }, children: z === "screening" ? "The AI recruiter will speak with you. Make sure your microphone is ready." : z === "recruiter" ? "The AI copilot will assist you with recruiting tasks." : "The AI agent will speak with you. Make sure your microphone is ready." }),
2565
- G && /* @__PURE__ */ v.jsxs(
2564
+ }, children: C === "screening" ? "The AI recruiter will speak with you. Make sure your microphone is ready." : C === "recruiter" ? "The AI copilot will assist you with recruiting tasks." : "The AI agent will speak with you. Make sure your microphone is ready." }),
2565
+ Y && /* @__PURE__ */ v.jsxs(
2566
2566
  "button",
2567
2567
  {
2568
- onClick: G,
2568
+ onClick: Y,
2569
2569
  style: {
2570
2570
  marginTop: "20px",
2571
2571
  padding: "8px 16px",
@@ -2602,7 +2602,7 @@ const Ld = ({
2602
2602
  /* @__PURE__ */ v.jsx(Af, { size: 32, color: "var(--glyde-text-muted, #9ca3af)" }),
2603
2603
  /* @__PURE__ */ v.jsx("p", { style: { marginTop: "8px" }, children: "Start speaking - the AI will respond" })
2604
2604
  ] }),
2605
- Z.map((Bt, Xt) => /* @__PURE__ */ v.jsx(wg, { transcript: Bt, contextType: z }, Xt)),
2605
+ Z.map((Bt, Xt) => /* @__PURE__ */ v.jsx(wg, { transcript: Bt, contextType: C }, Xt)),
2606
2606
  /* @__PURE__ */ v.jsx("div", { ref: $ })
2607
2607
  ] }),
2608
2608
  /* @__PURE__ */ v.jsxs("div", { style: {
@@ -2715,12 +2715,12 @@ const Ld = ({
2715
2715
  apiKey: o,
2716
2716
  authToken: T,
2717
2717
  unityApiUrl: r = "https://api.glydeunity.com",
2718
- height: z = "600px",
2719
- title: O = "AI Chat",
2720
- placeholder: L = "Type your message...",
2718
+ height: C = "600px",
2719
+ title: M = "AI Chat",
2720
+ placeholder: B = "Type your message...",
2721
2721
  autoInit: U = !0,
2722
2722
  onMessage: x,
2723
- onError: G
2723
+ onError: Y
2724
2724
  }) => {
2725
2725
  const [D, N] = Q.useState(""), $ = Q.useRef(null), {
2726
2726
  status: I,
@@ -2739,20 +2739,20 @@ const Ld = ({
2739
2739
  Q.useEffect(() => {
2740
2740
  $.current?.scrollIntoView({ behavior: "smooth" });
2741
2741
  }, [Z]), Q.useEffect(() => {
2742
- I === "error" && k && G && G(new Error(k));
2743
- }, [I, k, G]);
2742
+ I === "error" && k && Y && Y(new Error(k));
2743
+ }, [I, k, Y]);
2744
2744
  const St = async () => {
2745
2745
  if (!D.trim() || J) return;
2746
- const B = D.trim();
2747
- N(""), await ot(B), x && x({ role: "user", content: B });
2748
- }, dt = (B) => {
2749
- B.key === "Enter" && !B.shiftKey && (B.preventDefault(), St());
2746
+ const q = D.trim();
2747
+ N(""), await ot(q), x && x({ role: "user", content: q });
2748
+ }, dt = (q) => {
2749
+ q.key === "Enter" && !q.shiftKey && (q.preventDefault(), St());
2750
2750
  };
2751
2751
  return /* @__PURE__ */ v.jsxs("div", { style: {
2752
2752
  background: "var(--glyde-background, white)",
2753
2753
  borderRadius: "12px",
2754
2754
  boxShadow: "0 4px 6px rgba(0,0,0,0.1)",
2755
- height: typeof z == "number" ? `${z}px` : z,
2755
+ height: typeof C == "number" ? `${C}px` : C,
2756
2756
  display: "flex",
2757
2757
  flexDirection: "column",
2758
2758
  overflow: "hidden"
@@ -2764,7 +2764,7 @@ const Ld = ({
2764
2764
  color: "white",
2765
2765
  borderTopLeftRadius: "12px",
2766
2766
  borderTopRightRadius: "12px"
2767
- }, children: /* @__PURE__ */ v.jsx("h2", { style: { margin: 0, fontSize: "1.1rem", fontWeight: 600 }, children: O }) }),
2767
+ }, children: /* @__PURE__ */ v.jsx("h2", { style: { margin: 0, fontSize: "1.1rem", fontWeight: 600 }, children: M }) }),
2768
2768
  /* @__PURE__ */ v.jsxs("div", { style: {
2769
2769
  flex: 1,
2770
2770
  overflowY: "auto",
@@ -2778,7 +2778,7 @@ const Ld = ({
2778
2778
  /* @__PURE__ */ v.jsx("div", { className: "glyde-spinner", style: { margin: "0 auto 12px" } }),
2779
2779
  "Loading conversation..."
2780
2780
  ] }),
2781
- Z.map((B, Tt) => /* @__PURE__ */ v.jsx(Hg, { message: B }, Tt)),
2781
+ Z.map((q, Tt) => /* @__PURE__ */ v.jsx(Hg, { message: q }, Tt)),
2782
2782
  J && /* @__PURE__ */ v.jsx("div", { style: { color: "var(--glyde-text-muted, #94a3b8)", fontSize: "0.9rem", marginLeft: "42px" }, children: /* @__PURE__ */ v.jsx(Bg, {}) }),
2783
2783
  /* @__PURE__ */ v.jsx("div", { ref: $ })
2784
2784
  ] }),
@@ -2794,9 +2794,9 @@ const Ld = ({
2794
2794
  {
2795
2795
  type: "text",
2796
2796
  value: D,
2797
- onChange: (B) => N(B.target.value),
2797
+ onChange: (q) => N(q.target.value),
2798
2798
  onKeyDown: dt,
2799
- placeholder: L,
2799
+ placeholder: B,
2800
2800
  style: {
2801
2801
  ...Mt.inputField,
2802
2802
  flex: 1
@@ -2898,12 +2898,12 @@ const Ld = ({
2898
2898
  authToken: o,
2899
2899
  contextId: T,
2900
2900
  unityBaseUrl: r = "https://api.glydeunity.com",
2901
- contextType: z = "screening",
2902
- defaultMode: O = "voice",
2903
- position: L = "bottom-right",
2901
+ contextType: C = "screening",
2902
+ defaultMode: M = "voice",
2903
+ position: B = "bottom-right",
2904
2904
  theme: U = "light",
2905
2905
  allowModeSwitch: x = !0,
2906
- container: G,
2906
+ container: Y,
2907
2907
  displayMode: D = "floating",
2908
2908
  dimensions: N,
2909
2909
  showHeader: $ = !0,
@@ -2914,26 +2914,26 @@ const Ld = ({
2914
2914
  onError: ot,
2915
2915
  onClose: St,
2916
2916
  initialExpanded: dt = !1,
2917
- skipContinuityLimit: B,
2917
+ skipContinuityLimit: q,
2918
2918
  limitToLast: Tt
2919
2919
  }) => {
2920
2920
  console.log("[ChatWidget] Received unityBaseUrl:", r);
2921
2921
  const [jt, tt] = Q.useState(
2922
2922
  D === "floating" ? dt : !0
2923
- ), [Gt, Pt] = Q.useState(!0), [Bt, Xt] = Q.useState(O || "voice");
2923
+ ), [Gt, Pt] = Q.useState(!0), [Bt, Xt] = Q.useState(M || "voice");
2924
2924
  Q.useEffect(() => {
2925
2925
  const P = U === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : U;
2926
2926
  $i(P);
2927
2927
  }, [U]), Q.useEffect(() => {
2928
2928
  Z?.();
2929
2929
  }, [Z]);
2930
- const ce = Rg(L), fe = (P) => {
2930
+ const ce = Rg(B), fe = (P) => {
2931
2931
  Xt(P), J?.(P);
2932
2932
  }, Vt = (P, $t) => {
2933
2933
  k?.(P, $t);
2934
2934
  }, R = (P) => {
2935
2935
  ot?.(P);
2936
- }, M = () => {
2936
+ }, O = () => {
2937
2937
  D === "floating" ? tt(!1) : (Pt(!1), St?.());
2938
2938
  }, j = {
2939
2939
  ...qg[D],
@@ -2942,7 +2942,7 @@ const Ld = ({
2942
2942
  if (P !== void 0)
2943
2943
  return typeof P == "number" ? `${P}px` : P;
2944
2944
  };
2945
- return Gt ? G ? /* @__PURE__ */ v.jsx(
2945
+ return Gt ? Y ? /* @__PURE__ */ v.jsx(
2946
2946
  Fi,
2947
2947
  {
2948
2948
  publishableKey: h,
@@ -2950,7 +2950,7 @@ const Ld = ({
2950
2950
  authToken: o,
2951
2951
  contextId: T,
2952
2952
  unityBaseUrl: r,
2953
- contextType: z,
2953
+ contextType: C,
2954
2954
  mode: Bt,
2955
2955
  allowModeSwitch: x,
2956
2956
  showHeader: $,
@@ -2959,8 +2959,8 @@ const Ld = ({
2959
2959
  onModeChange: fe,
2960
2960
  onTranscript: Vt,
2961
2961
  onError: R,
2962
- onClose: M,
2963
- skipContinuityLimit: B,
2962
+ onClose: O,
2963
+ skipContinuityLimit: q,
2964
2964
  limitToLast: Tt
2965
2965
  }
2966
2966
  ) : D === "modal" ? /* @__PURE__ */ v.jsx(
@@ -2971,7 +2971,7 @@ const Ld = ({
2971
2971
  authToken: o,
2972
2972
  contextId: T,
2973
2973
  unityBaseUrl: r,
2974
- contextType: z,
2974
+ contextType: C,
2975
2975
  mode: Bt,
2976
2976
  allowModeSwitch: x,
2977
2977
  showHeader: $,
@@ -2980,8 +2980,8 @@ const Ld = ({
2980
2980
  onModeChange: fe,
2981
2981
  onTranscript: Vt,
2982
2982
  onError: R,
2983
- onClose: M,
2984
- skipContinuityLimit: B,
2983
+ onClose: O,
2984
+ skipContinuityLimit: q,
2985
2985
  limitToLast: Tt
2986
2986
  }
2987
2987
  ) : D === "mobile" ? /* @__PURE__ */ v.jsx(
@@ -2992,7 +2992,7 @@ const Ld = ({
2992
2992
  authToken: o,
2993
2993
  contextId: T,
2994
2994
  unityBaseUrl: r,
2995
- contextType: z,
2995
+ contextType: C,
2996
2996
  mode: Bt,
2997
2997
  allowModeSwitch: x,
2998
2998
  showHeader: $,
@@ -3001,8 +3001,8 @@ const Ld = ({
3001
3001
  onModeChange: fe,
3002
3002
  onTranscript: Vt,
3003
3003
  onError: R,
3004
- onClose: M,
3005
- skipContinuityLimit: B,
3004
+ onClose: O,
3005
+ skipContinuityLimit: q,
3006
3006
  limitToLast: Tt
3007
3007
  }
3008
3008
  ) : D === "inline" ? /* @__PURE__ */ v.jsx(
@@ -3025,7 +3025,7 @@ const Ld = ({
3025
3025
  authToken: o,
3026
3026
  contextId: T,
3027
3027
  unityBaseUrl: r,
3028
- contextType: z,
3028
+ contextType: C,
3029
3029
  mode: Bt,
3030
3030
  allowModeSwitch: x,
3031
3031
  showHeader: $,
@@ -3034,8 +3034,8 @@ const Ld = ({
3034
3034
  onModeChange: fe,
3035
3035
  onTranscript: Vt,
3036
3036
  onError: R,
3037
- onClose: M,
3038
- skipContinuityLimit: B,
3037
+ onClose: O,
3038
+ skipContinuityLimit: q,
3039
3039
  limitToLast: Tt
3040
3040
  }
3041
3041
  )
@@ -3067,11 +3067,11 @@ const Ld = ({
3067
3067
  /* @__PURE__ */ v.jsx(
3068
3068
  Vd,
3069
3069
  {
3070
- contextType: z,
3070
+ contextType: C,
3071
3071
  showMinimize: !0,
3072
3072
  showClose: !0,
3073
3073
  onMinimize: () => tt(!1),
3074
- onClose: M
3074
+ onClose: O
3075
3075
  }
3076
3076
  ),
3077
3077
  x && /* @__PURE__ */ v.jsx("div", { style: {
@@ -3086,12 +3086,12 @@ const Ld = ({
3086
3086
  authToken: o,
3087
3087
  contextId: T || "",
3088
3088
  unityApiUrl: r,
3089
- contextType: z,
3089
+ contextType: C,
3090
3090
  height: "100%",
3091
3091
  onTranscript: Vt,
3092
3092
  onError: R,
3093
3093
  onSwitchToText: x ? () => fe("text") : void 0,
3094
- skipContinuityLimit: B,
3094
+ skipContinuityLimit: q,
3095
3095
  limitToLast: Tt
3096
3096
  }
3097
3097
  ) : /* @__PURE__ */ v.jsx(
@@ -3189,12 +3189,12 @@ const Ld = ({
3189
3189
  authToken: o,
3190
3190
  contextId: T,
3191
3191
  unityBaseUrl: r,
3192
- contextType: z,
3193
- mode: O,
3194
- allowModeSwitch: L,
3192
+ contextType: C,
3193
+ mode: M,
3194
+ allowModeSwitch: B,
3195
3195
  showHeader: U = !0,
3196
3196
  allowClose: x = !0,
3197
- dimensions: G,
3197
+ dimensions: Y,
3198
3198
  onModeChange: D,
3199
3199
  onTranscript: N,
3200
3200
  onError: $,
@@ -3202,25 +3202,25 @@ const Ld = ({
3202
3202
  skipContinuityLimit: Z,
3203
3203
  limitToLast: J
3204
3204
  }) => {
3205
- const [k, ot] = Q.useState(O);
3205
+ const [k, ot] = Q.useState(M);
3206
3206
  Q.useEffect(() => {
3207
- ot(O);
3208
- }, [O]);
3209
- const St = (B) => {
3210
- ot(B), D(B);
3211
- }, dt = (B) => {
3212
- if (B !== void 0)
3213
- return typeof B == "number" ? `${B}px` : B;
3207
+ ot(M);
3208
+ }, [M]);
3209
+ const St = (q) => {
3210
+ ot(q), D(q);
3211
+ }, dt = (q) => {
3212
+ if (q !== void 0)
3213
+ return typeof q == "number" ? `${q}px` : q;
3214
3214
  };
3215
3215
  return /* @__PURE__ */ v.jsxs(
3216
3216
  "div",
3217
3217
  {
3218
3218
  className: "glyde-widget-root",
3219
3219
  style: {
3220
- height: dt(G?.height) || "100%",
3221
- width: dt(G?.width) || "100%",
3222
- maxWidth: dt(G?.maxWidth),
3223
- maxHeight: dt(G?.maxHeight),
3220
+ height: dt(Y?.height) || "100%",
3221
+ width: dt(Y?.width) || "100%",
3222
+ maxWidth: dt(Y?.maxWidth),
3223
+ maxHeight: dt(Y?.maxHeight),
3224
3224
  minHeight: "500px",
3225
3225
  // Ensure voice controls are visible
3226
3226
  display: "flex",
@@ -3235,13 +3235,13 @@ const Ld = ({
3235
3235
  U && /* @__PURE__ */ v.jsx(
3236
3236
  Vd,
3237
3237
  {
3238
- contextType: z,
3238
+ contextType: C,
3239
3239
  showMinimize: !1,
3240
3240
  showClose: x,
3241
3241
  onClose: I
3242
3242
  }
3243
3243
  ),
3244
- L && /* @__PURE__ */ v.jsx("div", { style: {
3244
+ B && /* @__PURE__ */ v.jsx("div", { style: {
3245
3245
  padding: "12px 16px",
3246
3246
  borderBottom: "1px solid var(--glyde-border, #e5e7eb)",
3247
3247
  background: "var(--glyde-background, white)"
@@ -3254,10 +3254,10 @@ const Ld = ({
3254
3254
  authToken: o,
3255
3255
  contextId: T || "",
3256
3256
  unityApiUrl: r,
3257
- contextType: z,
3257
+ contextType: C,
3258
3258
  height: "100%",
3259
3259
  onTranscript: N,
3260
- onSwitchToText: L ? () => St("text") : void 0,
3260
+ onSwitchToText: B ? () => St("text") : void 0,
3261
3261
  onError: $,
3262
3262
  skipContinuityLimit: Z,
3263
3263
  limitToLast: J
@@ -3279,17 +3279,17 @@ const Ld = ({
3279
3279
  }
3280
3280
  );
3281
3281
  }, Gg = (h) => {
3282
- const { dimensions: f, onClose: o } = h, T = (z) => {
3283
- if (z !== void 0)
3284
- return typeof z == "number" ? `${z}px` : z;
3285
- }, r = (z) => {
3286
- z.target === z.currentTarget && h.allowClose && o?.();
3282
+ const { dimensions: f, onClose: o } = h, T = (C) => {
3283
+ if (C !== void 0)
3284
+ return typeof C == "number" ? `${C}px` : C;
3285
+ }, r = (C) => {
3286
+ C.target === C.currentTarget && h.allowClose && o?.();
3287
3287
  };
3288
3288
  return Q.useEffect(() => {
3289
- const z = (O) => {
3290
- O.key === "Escape" && h.allowClose && o?.();
3289
+ const C = (M) => {
3290
+ M.key === "Escape" && h.allowClose && o?.();
3291
3291
  };
3292
- return window.addEventListener("keydown", z), () => window.removeEventListener("keydown", z);
3292
+ return window.addEventListener("keydown", C), () => window.removeEventListener("keydown", C);
3293
3293
  }, [o, h.allowClose]), /* @__PURE__ */ v.jsx(
3294
3294
  "div",
3295
3295
  {
@@ -3332,8 +3332,8 @@ const Ld = ({
3332
3332
  maxHeight: "100%"
3333
3333
  };
3334
3334
  return Q.useEffect(() => {
3335
- const r = (z) => {
3336
- z.key === "Escape" && h.allowClose && f?.();
3335
+ const r = (C) => {
3336
+ C.key === "Escape" && h.allowClose && f?.();
3337
3337
  };
3338
3338
  return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
3339
3339
  }, [f, h.allowClose]), /* @__PURE__ */ v.jsx("div", { className: "glyde-mobile-viewport", children: /* @__PURE__ */ v.jsx(Fi, { ...h, dimensions: T }) });
@@ -3342,13 +3342,13 @@ var bf = { exports: {} }, Cn = {}, xf = { exports: {} }, Sf = {};
3342
3342
  var jd;
3343
3343
  function Lg() {
3344
3344
  return jd || (jd = 1, (function(h) {
3345
- function f(R, M) {
3345
+ function f(R, O) {
3346
3346
  var j = R.length;
3347
- R.push(M);
3347
+ R.push(O);
3348
3348
  t: for (; 0 < j; ) {
3349
3349
  var it = j - 1 >>> 1, P = R[it];
3350
- if (0 < r(P, M))
3351
- R[it] = M, R[j] = P, j = it;
3350
+ if (0 < r(P, O))
3351
+ R[it] = O, R[j] = P, j = it;
3352
3352
  else break t;
3353
3353
  }
3354
3354
  }
@@ -3357,52 +3357,52 @@ function Lg() {
3357
3357
  }
3358
3358
  function T(R) {
3359
3359
  if (R.length === 0) return null;
3360
- var M = R[0], j = R.pop();
3361
- if (j !== M) {
3360
+ var O = R[0], j = R.pop();
3361
+ if (j !== O) {
3362
3362
  R[0] = j;
3363
3363
  t: for (var it = 0, P = R.length, $t = P >>> 1; it < $t; ) {
3364
- var y = 2 * (it + 1) - 1, _ = R[y], w = y + 1, Y = R[w];
3364
+ var y = 2 * (it + 1) - 1, _ = R[y], w = y + 1, L = R[w];
3365
3365
  if (0 > r(_, j))
3366
- w < P && 0 > r(Y, _) ? (R[it] = Y, R[w] = j, it = w) : (R[it] = _, R[y] = j, it = y);
3367
- else if (w < P && 0 > r(Y, j))
3368
- R[it] = Y, R[w] = j, it = w;
3366
+ w < P && 0 > r(L, _) ? (R[it] = L, R[w] = j, it = w) : (R[it] = _, R[y] = j, it = y);
3367
+ else if (w < P && 0 > r(L, j))
3368
+ R[it] = L, R[w] = j, it = w;
3369
3369
  else break t;
3370
3370
  }
3371
3371
  }
3372
- return M;
3372
+ return O;
3373
3373
  }
3374
- function r(R, M) {
3375
- var j = R.sortIndex - M.sortIndex;
3376
- return j !== 0 ? j : R.id - M.id;
3374
+ function r(R, O) {
3375
+ var j = R.sortIndex - O.sortIndex;
3376
+ return j !== 0 ? j : R.id - O.id;
3377
3377
  }
3378
3378
  if (h.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
3379
- var z = performance;
3379
+ var C = performance;
3380
3380
  h.unstable_now = function() {
3381
- return z.now();
3381
+ return C.now();
3382
3382
  };
3383
3383
  } else {
3384
- var O = Date, L = O.now();
3384
+ var M = Date, B = M.now();
3385
3385
  h.unstable_now = function() {
3386
- return O.now() - L;
3386
+ return M.now() - B;
3387
3387
  };
3388
3388
  }
3389
- var U = [], x = [], G = 1, D = null, N = 3, $ = !1, I = !1, Z = !1, J = !1, k = typeof setTimeout == "function" ? setTimeout : null, ot = typeof clearTimeout == "function" ? clearTimeout : null, St = typeof setImmediate < "u" ? setImmediate : null;
3389
+ var U = [], x = [], Y = 1, D = null, N = 3, $ = !1, I = !1, Z = !1, J = !1, k = typeof setTimeout == "function" ? setTimeout : null, ot = typeof clearTimeout == "function" ? clearTimeout : null, St = typeof setImmediate < "u" ? setImmediate : null;
3390
3390
  function dt(R) {
3391
- for (var M = o(x); M !== null; ) {
3392
- if (M.callback === null) T(x);
3393
- else if (M.startTime <= R)
3394
- T(x), M.sortIndex = M.expirationTime, f(U, M);
3391
+ for (var O = o(x); O !== null; ) {
3392
+ if (O.callback === null) T(x);
3393
+ else if (O.startTime <= R)
3394
+ T(x), O.sortIndex = O.expirationTime, f(U, O);
3395
3395
  else break;
3396
- M = o(x);
3396
+ O = o(x);
3397
3397
  }
3398
3398
  }
3399
- function B(R) {
3399
+ function q(R) {
3400
3400
  if (Z = !1, dt(R), !I)
3401
3401
  if (o(U) !== null)
3402
3402
  I = !0, Tt || (Tt = !0, Xt());
3403
3403
  else {
3404
- var M = o(x);
3405
- M !== null && Vt(B, M.startTime - R);
3404
+ var O = o(x);
3405
+ O !== null && Vt(q, O.startTime - R);
3406
3406
  }
3407
3407
  }
3408
3408
  var Tt = !1, jt = -1, tt = 5, Gt = -1;
@@ -3413,7 +3413,7 @@ function Lg() {
3413
3413
  if (J = !1, Tt) {
3414
3414
  var R = h.unstable_now();
3415
3415
  Gt = R;
3416
- var M = !0;
3416
+ var O = !0;
3417
3417
  try {
3418
3418
  t: {
3419
3419
  I = !1, Z && (Z = !1, ot(jt), jt = -1), $ = !0;
@@ -3428,30 +3428,30 @@ function Lg() {
3428
3428
  D.expirationTime <= R
3429
3429
  );
3430
3430
  if (R = h.unstable_now(), typeof P == "function") {
3431
- D.callback = P, dt(R), M = !0;
3431
+ D.callback = P, dt(R), O = !0;
3432
3432
  break e;
3433
3433
  }
3434
3434
  D === o(U) && T(U), dt(R);
3435
3435
  } else T(U);
3436
3436
  D = o(U);
3437
3437
  }
3438
- if (D !== null) M = !0;
3438
+ if (D !== null) O = !0;
3439
3439
  else {
3440
3440
  var $t = o(x);
3441
3441
  $t !== null && Vt(
3442
- B,
3442
+ q,
3443
3443
  $t.startTime - R
3444
- ), M = !1;
3444
+ ), O = !1;
3445
3445
  }
3446
3446
  }
3447
3447
  break t;
3448
3448
  } finally {
3449
3449
  D = null, N = j, $ = !1;
3450
3450
  }
3451
- M = void 0;
3451
+ O = void 0;
3452
3452
  }
3453
3453
  } finally {
3454
- M ? Xt() : Tt = !1;
3454
+ O ? Xt() : Tt = !1;
3455
3455
  }
3456
3456
  }
3457
3457
  }
@@ -3469,10 +3469,10 @@ function Lg() {
3469
3469
  Xt = function() {
3470
3470
  k(Bt, 0);
3471
3471
  };
3472
- function Vt(R, M) {
3472
+ function Vt(R, O) {
3473
3473
  jt = k(function() {
3474
3474
  R(h.unstable_now());
3475
- }, M);
3475
+ }, O);
3476
3476
  }
3477
3477
  h.unstable_IdlePriority = 5, h.unstable_ImmediatePriority = 1, h.unstable_LowPriority = 4, h.unstable_NormalPriority = 3, h.unstable_Profiling = null, h.unstable_UserBlockingPriority = 2, h.unstable_cancelCallback = function(R) {
3478
3478
  R.callback = null;
@@ -3487,13 +3487,13 @@ function Lg() {
3487
3487
  case 1:
3488
3488
  case 2:
3489
3489
  case 3:
3490
- var M = 3;
3490
+ var O = 3;
3491
3491
  break;
3492
3492
  default:
3493
- M = N;
3493
+ O = N;
3494
3494
  }
3495
3495
  var j = N;
3496
- N = M;
3496
+ N = O;
3497
3497
  try {
3498
3498
  return R();
3499
3499
  } finally {
@@ -3501,7 +3501,7 @@ function Lg() {
3501
3501
  }
3502
3502
  }, h.unstable_requestPaint = function() {
3503
3503
  J = !0;
3504
- }, h.unstable_runWithPriority = function(R, M) {
3504
+ }, h.unstable_runWithPriority = function(R, O) {
3505
3505
  switch (R) {
3506
3506
  case 1:
3507
3507
  case 2:
@@ -3515,11 +3515,11 @@ function Lg() {
3515
3515
  var j = N;
3516
3516
  N = R;
3517
3517
  try {
3518
- return M();
3518
+ return O();
3519
3519
  } finally {
3520
3520
  N = j;
3521
3521
  }
3522
- }, h.unstable_scheduleCallback = function(R, M, j) {
3522
+ }, h.unstable_scheduleCallback = function(R, O, j) {
3523
3523
  var it = h.unstable_now();
3524
3524
  switch (typeof j == "object" && j !== null ? (j = j.delay, j = typeof j == "number" && 0 < j ? it + j : it) : j = it, R) {
3525
3525
  case 1:
@@ -3538,18 +3538,18 @@ function Lg() {
3538
3538
  P = 5e3;
3539
3539
  }
3540
3540
  return P = j + P, R = {
3541
- id: G++,
3542
- callback: M,
3541
+ id: Y++,
3542
+ callback: O,
3543
3543
  priorityLevel: R,
3544
3544
  startTime: j,
3545
3545
  expirationTime: P,
3546
3546
  sortIndex: -1
3547
- }, j > it ? (R.sortIndex = j, f(x, R), o(U) === null && R === o(x) && (Z ? (ot(jt), jt = -1) : Z = !0, Vt(B, j - it))) : (R.sortIndex = P, f(U, R), I || $ || (I = !0, Tt || (Tt = !0, Xt()))), R;
3547
+ }, j > it ? (R.sortIndex = j, f(x, R), o(U) === null && R === o(x) && (Z ? (ot(jt), jt = -1) : Z = !0, Vt(q, j - it))) : (R.sortIndex = P, f(U, R), I || $ || (I = !0, Tt || (Tt = !0, Xt()))), R;
3548
3548
  }, h.unstable_shouldYield = Pt, h.unstable_wrapCallback = function(R) {
3549
- var M = N;
3549
+ var O = N;
3550
3550
  return function() {
3551
3551
  var j = N;
3552
- N = M;
3552
+ N = O;
3553
3553
  try {
3554
3554
  return R.apply(this, arguments);
3555
3555
  } finally {
@@ -3573,8 +3573,8 @@ function Vg() {
3573
3573
  var x = "https://react.dev/errors/" + U;
3574
3574
  if (1 < arguments.length) {
3575
3575
  x += "?args[]=" + encodeURIComponent(arguments[1]);
3576
- for (var G = 2; G < arguments.length; G++)
3577
- x += "&args[]=" + encodeURIComponent(arguments[G]);
3576
+ for (var Y = 2; Y < arguments.length; Y++)
3577
+ x += "&args[]=" + encodeURIComponent(arguments[Y]);
3578
3578
  }
3579
3579
  return "Minified React error #" + U + "; visit " + x + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
3580
3580
  }
@@ -3597,33 +3597,33 @@ function Vg() {
3597
3597
  p: 0,
3598
3598
  findDOMNode: null
3599
3599
  }, r = /* @__PURE__ */ Symbol.for("react.portal");
3600
- function z(U, x, G) {
3600
+ function C(U, x, Y) {
3601
3601
  var D = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
3602
3602
  return {
3603
3603
  $$typeof: r,
3604
3604
  key: D == null ? null : "" + D,
3605
3605
  children: U,
3606
3606
  containerInfo: x,
3607
- implementation: G
3607
+ implementation: Y
3608
3608
  };
3609
3609
  }
3610
- var O = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3611
- function L(U, x) {
3610
+ var M = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3611
+ function B(U, x) {
3612
3612
  if (U === "font") return "";
3613
3613
  if (typeof x == "string")
3614
3614
  return x === "use-credentials" ? x : "";
3615
3615
  }
3616
3616
  return Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, Wt.createPortal = function(U, x) {
3617
- var G = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
3617
+ var Y = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
3618
3618
  if (!x || x.nodeType !== 1 && x.nodeType !== 9 && x.nodeType !== 11)
3619
3619
  throw Error(f(299));
3620
- return z(U, x, null, G);
3620
+ return C(U, x, null, Y);
3621
3621
  }, Wt.flushSync = function(U) {
3622
- var x = O.T, G = T.p;
3622
+ var x = M.T, Y = T.p;
3623
3623
  try {
3624
- if (O.T = null, T.p = 2, U) return U();
3624
+ if (M.T = null, T.p = 2, U) return U();
3625
3625
  } finally {
3626
- O.T = x, T.p = G, T.d.f();
3626
+ M.T = x, T.p = Y, T.d.f();
3627
3627
  }
3628
3628
  }, Wt.preconnect = function(U, x) {
3629
3629
  typeof U == "string" && (x ? (x = x.crossOrigin, x = typeof x == "string" ? x === "use-credentials" ? x : "" : void 0) : x = null, T.d.C(U, x));
@@ -3631,8 +3631,8 @@ function Vg() {
3631
3631
  typeof U == "string" && T.d.D(U);
3632
3632
  }, Wt.preinit = function(U, x) {
3633
3633
  if (typeof U == "string" && x && typeof x.as == "string") {
3634
- var G = x.as, D = L(G, x.crossOrigin), N = typeof x.integrity == "string" ? x.integrity : void 0, $ = typeof x.fetchPriority == "string" ? x.fetchPriority : void 0;
3635
- G === "style" ? T.d.S(
3634
+ var Y = x.as, D = B(Y, x.crossOrigin), N = typeof x.integrity == "string" ? x.integrity : void 0, $ = typeof x.fetchPriority == "string" ? x.fetchPriority : void 0;
3635
+ Y === "style" ? T.d.S(
3636
3636
  U,
3637
3637
  typeof x.precedence == "string" ? x.precedence : void 0,
3638
3638
  {
@@ -3640,7 +3640,7 @@ function Vg() {
3640
3640
  integrity: N,
3641
3641
  fetchPriority: $
3642
3642
  }
3643
- ) : G === "script" && T.d.X(U, {
3643
+ ) : Y === "script" && T.d.X(U, {
3644
3644
  crossOrigin: D,
3645
3645
  integrity: N,
3646
3646
  fetchPriority: $,
@@ -3651,12 +3651,12 @@ function Vg() {
3651
3651
  if (typeof U == "string")
3652
3652
  if (typeof x == "object" && x !== null) {
3653
3653
  if (x.as == null || x.as === "script") {
3654
- var G = L(
3654
+ var Y = B(
3655
3655
  x.as,
3656
3656
  x.crossOrigin
3657
3657
  );
3658
3658
  T.d.M(U, {
3659
- crossOrigin: G,
3659
+ crossOrigin: Y,
3660
3660
  integrity: typeof x.integrity == "string" ? x.integrity : void 0,
3661
3661
  nonce: typeof x.nonce == "string" ? x.nonce : void 0
3662
3662
  });
@@ -3664,8 +3664,8 @@ function Vg() {
3664
3664
  } else x == null && T.d.M(U);
3665
3665
  }, Wt.preload = function(U, x) {
3666
3666
  if (typeof U == "string" && typeof x == "object" && x !== null && typeof x.as == "string") {
3667
- var G = x.as, D = L(G, x.crossOrigin);
3668
- T.d.L(U, G, {
3667
+ var Y = x.as, D = B(Y, x.crossOrigin);
3668
+ T.d.L(U, Y, {
3669
3669
  crossOrigin: D,
3670
3670
  integrity: typeof x.integrity == "string" ? x.integrity : void 0,
3671
3671
  nonce: typeof x.nonce == "string" ? x.nonce : void 0,
@@ -3680,10 +3680,10 @@ function Vg() {
3680
3680
  }, Wt.preloadModule = function(U, x) {
3681
3681
  if (typeof U == "string")
3682
3682
  if (x) {
3683
- var G = L(x.as, x.crossOrigin);
3683
+ var Y = B(x.as, x.crossOrigin);
3684
3684
  T.d.m(U, {
3685
3685
  as: typeof x.as == "string" && x.as !== "script" ? x.as : void 0,
3686
- crossOrigin: G,
3686
+ crossOrigin: Y,
3687
3687
  integrity: typeof x.integrity == "string" ? x.integrity : void 0
3688
3688
  });
3689
3689
  } else T.d.m(U);
@@ -3691,10 +3691,10 @@ function Vg() {
3691
3691
  T.d.r(U);
3692
3692
  }, Wt.unstable_batchedUpdates = function(U, x) {
3693
3693
  return U(x);
3694
- }, Wt.useFormState = function(U, x, G) {
3695
- return O.H.useFormState(U, x, G);
3694
+ }, Wt.useFormState = function(U, x, Y) {
3695
+ return M.H.useFormState(U, x, Y);
3696
3696
  }, Wt.useFormStatus = function() {
3697
- return O.H.useHostTransitionStatus();
3697
+ return M.H.useHostTransitionStatus();
3698
3698
  }, Wt.version = "19.2.4", Wt;
3699
3699
  }
3700
3700
  var Nd;
@@ -3726,10 +3726,10 @@ function Zg() {
3726
3726
  }
3727
3727
  return "Minified React error #" + t + "; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
3728
3728
  }
3729
- function z(t) {
3729
+ function C(t) {
3730
3730
  return !(!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11);
3731
3731
  }
3732
- function O(t) {
3732
+ function M(t) {
3733
3733
  var e = t, l = t;
3734
3734
  if (t.alternate) for (; e.return; ) e = e.return;
3735
3735
  else {
@@ -3740,7 +3740,7 @@ function Zg() {
3740
3740
  }
3741
3741
  return e.tag === 3 ? l : null;
3742
3742
  }
3743
- function L(t) {
3743
+ function B(t) {
3744
3744
  if (t.tag === 13) {
3745
3745
  var e = t.memoizedState;
3746
3746
  if (e === null && (t = t.alternate, t !== null && (e = t.memoizedState)), e !== null) return e.dehydrated;
@@ -3755,13 +3755,13 @@ function Zg() {
3755
3755
  return null;
3756
3756
  }
3757
3757
  function x(t) {
3758
- if (O(t) !== t)
3758
+ if (M(t) !== t)
3759
3759
  throw Error(r(188));
3760
3760
  }
3761
- function G(t) {
3761
+ function Y(t) {
3762
3762
  var e = t.alternate;
3763
3763
  if (!e) {
3764
- if (e = O(t), e === null) throw Error(r(188));
3764
+ if (e = M(t), e === null) throw Error(r(188));
3765
3765
  return e !== t ? null : t;
3766
3766
  }
3767
3767
  for (var l = t, a = e; ; ) {
@@ -3825,7 +3825,7 @@ function Zg() {
3825
3825
  }
3826
3826
  return null;
3827
3827
  }
3828
- var N = Object.assign, $ = /* @__PURE__ */ Symbol.for("react.element"), I = /* @__PURE__ */ Symbol.for("react.transitional.element"), Z = /* @__PURE__ */ Symbol.for("react.portal"), J = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), ot = /* @__PURE__ */ Symbol.for("react.profiler"), St = /* @__PURE__ */ Symbol.for("react.consumer"), dt = /* @__PURE__ */ Symbol.for("react.context"), B = /* @__PURE__ */ Symbol.for("react.forward_ref"), Tt = /* @__PURE__ */ Symbol.for("react.suspense"), jt = /* @__PURE__ */ Symbol.for("react.suspense_list"), tt = /* @__PURE__ */ Symbol.for("react.memo"), Gt = /* @__PURE__ */ Symbol.for("react.lazy"), Pt = /* @__PURE__ */ Symbol.for("react.activity"), Bt = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), Xt = Symbol.iterator;
3828
+ var N = Object.assign, $ = /* @__PURE__ */ Symbol.for("react.element"), I = /* @__PURE__ */ Symbol.for("react.transitional.element"), Z = /* @__PURE__ */ Symbol.for("react.portal"), J = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), ot = /* @__PURE__ */ Symbol.for("react.profiler"), St = /* @__PURE__ */ Symbol.for("react.consumer"), dt = /* @__PURE__ */ Symbol.for("react.context"), q = /* @__PURE__ */ Symbol.for("react.forward_ref"), Tt = /* @__PURE__ */ Symbol.for("react.suspense"), jt = /* @__PURE__ */ Symbol.for("react.suspense_list"), tt = /* @__PURE__ */ Symbol.for("react.memo"), Gt = /* @__PURE__ */ Symbol.for("react.lazy"), Pt = /* @__PURE__ */ Symbol.for("react.activity"), Bt = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), Xt = Symbol.iterator;
3829
3829
  function ce(t) {
3830
3830
  return t === null || typeof t != "object" ? null : (t = Xt && t[Xt] || t["@@iterator"], typeof t == "function" ? t : null);
3831
3831
  }
@@ -3857,7 +3857,7 @@ function Zg() {
3857
3857
  return t.displayName || "Context";
3858
3858
  case St:
3859
3859
  return (t._context.displayName || "Context") + ".Consumer";
3860
- case B:
3860
+ case q:
3861
3861
  var e = t.render;
3862
3862
  return t = t.displayName, t || (t = e.displayName || e.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
3863
3863
  case tt:
@@ -3871,7 +3871,7 @@ function Zg() {
3871
3871
  }
3872
3872
  return null;
3873
3873
  }
3874
- var R = Array.isArray, M = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = T.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, it = {
3874
+ var R = Array.isArray, O = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = T.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, it = {
3875
3875
  pending: !1,
3876
3876
  data: null,
3877
3877
  method: null,
@@ -3886,9 +3886,9 @@ function Zg() {
3886
3886
  function w(t, e) {
3887
3887
  $t++, P[$t] = t.current, t.current = e;
3888
3888
  }
3889
- var Y = y(null), et = y(null), lt = y(null), yt = y(null);
3889
+ var L = y(null), et = y(null), lt = y(null), yt = y(null);
3890
3890
  function Ft(t, e) {
3891
- switch (w(lt, e), w(et, t), w(Y, null), e.nodeType) {
3891
+ switch (w(lt, e), w(et, t), w(L, null), e.nodeType) {
3892
3892
  case 9:
3893
3893
  case 11:
3894
3894
  t = (t = e.documentElement) && (t = t.namespaceURI) ? Fr(t) : 0;
@@ -3908,18 +3908,18 @@ function Zg() {
3908
3908
  t = 0;
3909
3909
  }
3910
3910
  }
3911
- _(Y), w(Y, t);
3911
+ _(L), w(L, t);
3912
3912
  }
3913
3913
  function Ot() {
3914
- _(Y), _(et), _(lt);
3914
+ _(L), _(et), _(lt);
3915
3915
  }
3916
3916
  function Da(t) {
3917
3917
  t.memoizedState !== null && w(yt, t);
3918
- var e = Y.current, l = Ir(e, t.type);
3919
- e !== l && (w(et, t), w(Y, l));
3918
+ var e = L.current, l = Ir(e, t.type);
3919
+ e !== l && (w(et, t), w(L, l));
3920
3920
  }
3921
3921
  function _n(t) {
3922
- et.current === t && (_(Y), _(et)), yt.current === t && (_(yt), Sn._currentValue = it);
3922
+ et.current === t && (_(L), _(et)), yt.current === t && (_(yt), Sn._currentValue = it);
3923
3923
  }
3924
3924
  var Ii, Cf;
3925
3925
  function Cl(t) {
@@ -3945,27 +3945,27 @@ function Zg() {
3945
3945
  DetermineComponentFrameRoot: function() {
3946
3946
  try {
3947
3947
  if (e) {
3948
- var C = function() {
3948
+ var z = function() {
3949
3949
  throw Error();
3950
3950
  };
3951
- if (Object.defineProperty(C.prototype, "props", {
3951
+ if (Object.defineProperty(z.prototype, "props", {
3952
3952
  set: function() {
3953
3953
  throw Error();
3954
3954
  }
3955
3955
  }), typeof Reflect == "object" && Reflect.construct) {
3956
3956
  try {
3957
- Reflect.construct(C, []);
3957
+ Reflect.construct(z, []);
3958
3958
  } catch (S) {
3959
3959
  var b = S;
3960
3960
  }
3961
- Reflect.construct(t, [], C);
3961
+ Reflect.construct(t, [], z);
3962
3962
  } else {
3963
3963
  try {
3964
- C.call();
3964
+ z.call();
3965
3965
  } catch (S) {
3966
3966
  b = S;
3967
3967
  }
3968
- t.call(C.prototype);
3968
+ t.call(z.prototype);
3969
3969
  }
3970
3970
  } else {
3971
3971
  try {
@@ -3973,7 +3973,7 @@ function Zg() {
3973
3973
  } catch (S) {
3974
3974
  b = S;
3975
3975
  }
3976
- (C = t()) && typeof C.catch == "function" && C.catch(function() {
3976
+ (z = t()) && typeof z.catch == "function" && z.catch(function() {
3977
3977
  });
3978
3978
  }
3979
3979
  } catch (S) {
@@ -4199,7 +4199,7 @@ Error generating stack: ` + a.message + `
4199
4199
  t.pendingLanes = l, t.suspendedLanes = 0, t.pingedLanes = 0, t.warmLanes = 0, t.expiredLanes &= l, t.entangledLanes &= l, t.errorRecoveryDisabledLanes &= l, t.shellSuspendCounter = 0;
4200
4200
  var c = t.entanglements, s = t.expirationTimes, p = t.hiddenUpdates;
4201
4201
  for (l = u & ~l; 0 < l; ) {
4202
- var A = 31 - re(l), C = 1 << A;
4202
+ var A = 31 - re(l), z = 1 << A;
4203
4203
  c[A] = 0, s[A] = -1;
4204
4204
  var b = p[A];
4205
4205
  if (b !== null)
@@ -4207,7 +4207,7 @@ Error generating stack: ` + a.message + `
4207
4207
  var S = b[A];
4208
4208
  S !== null && (S.lane &= -536870913);
4209
4209
  }
4210
- l &= ~C;
4210
+ l &= ~z;
4211
4211
  }
4212
4212
  a !== 0 && jf(t, a, 0), i !== 0 && n === 0 && t.tag !== 0 && (t.suspendedLanes |= i & ~(u & ~e));
4213
4213
  }
@@ -5300,7 +5300,7 @@ Error generating stack: ` + a.message + `
5300
5300
  u = lg(
5301
5301
  t,
5302
5302
  l,
5303
- Y.current
5303
+ L.current
5304
5304
  ) ? 26 : t === "html" || t === "head" || t === "body" ? 27 : 5;
5305
5305
  else
5306
5306
  t: switch (t) {
@@ -5326,7 +5326,7 @@ Error generating stack: ` + a.message + `
5326
5326
  case St:
5327
5327
  u = 9;
5328
5328
  break t;
5329
- case B:
5329
+ case q:
5330
5330
  u = 11;
5331
5331
  break t;
5332
5332
  case tt:
@@ -5694,8 +5694,8 @@ Error generating stack: ` + a.message + `
5694
5694
  }
5695
5695
  ), a;
5696
5696
  }
5697
- var Ho = M.S;
5698
- M.S = function(t, e) {
5697
+ var Ho = O.S;
5698
+ O.S = function(t, e) {
5699
5699
  br = oe(), typeof e == "object" && e !== null && typeof e.then == "function" && ey(t, e), Ho !== null && Ho(t, e);
5700
5700
  };
5701
5701
  var Bl = y(null);
@@ -5842,7 +5842,7 @@ Error generating stack: ` + a.message + `
5842
5842
  X
5843
5843
  ), d.return = g, d) : (d = n(d, m), d.return = g, d);
5844
5844
  }
5845
- function C(g, d, m) {
5845
+ function z(g, d, m) {
5846
5846
  if (typeof d == "string" && d !== "" || typeof d == "number" || typeof d == "bigint")
5847
5847
  return d = Ru(
5848
5848
  "" + d,
@@ -5867,7 +5867,7 @@ Error generating stack: ` + a.message + `
5867
5867
  m
5868
5868
  ), d.return = g, d;
5869
5869
  case Gt:
5870
- return d = ql(d), C(g, d, m);
5870
+ return d = ql(d), z(g, d, m);
5871
5871
  }
5872
5872
  if (R(d) || ce(d))
5873
5873
  return d = Rl(
@@ -5877,9 +5877,9 @@ Error generating stack: ` + a.message + `
5877
5877
  null
5878
5878
  ), d.return = g, d;
5879
5879
  if (typeof d.then == "function")
5880
- return C(g, ti(d), m);
5880
+ return z(g, ti(d), m);
5881
5881
  if (d.$$typeof === dt)
5882
- return C(
5882
+ return z(
5883
5883
  g,
5884
5884
  $n(g, d),
5885
5885
  m
@@ -5966,70 +5966,70 @@ Error generating stack: ` + a.message + `
5966
5966
  return null;
5967
5967
  }
5968
5968
  function H(g, d, m, E) {
5969
- for (var X = null, st = null, q = d, F = d = 0, ct = null; q !== null && F < m.length; F++) {
5970
- q.index > F ? (ct = q, q = null) : ct = q.sibling;
5969
+ for (var X = null, st = null, G = d, F = d = 0, ct = null; G !== null && F < m.length; F++) {
5970
+ G.index > F ? (ct = G, G = null) : ct = G.sibling;
5971
5971
  var rt = b(
5972
5972
  g,
5973
- q,
5973
+ G,
5974
5974
  m[F],
5975
5975
  E
5976
5976
  );
5977
5977
  if (rt === null) {
5978
- q === null && (q = ct);
5978
+ G === null && (G = ct);
5979
5979
  break;
5980
5980
  }
5981
- t && q && rt.alternate === null && e(g, q), d = i(rt, d, F), st === null ? X = rt : st.sibling = rt, st = rt, q = ct;
5981
+ t && G && rt.alternate === null && e(g, G), d = i(rt, d, F), st === null ? X = rt : st.sibling = rt, st = rt, G = ct;
5982
5982
  }
5983
5983
  if (F === m.length)
5984
- return l(g, q), ft && Ye(g, F), X;
5985
- if (q === null) {
5984
+ return l(g, G), ft && Ye(g, F), X;
5985
+ if (G === null) {
5986
5986
  for (; F < m.length; F++)
5987
- q = C(g, m[F], E), q !== null && (d = i(
5988
- q,
5987
+ G = z(g, m[F], E), G !== null && (d = i(
5988
+ G,
5989
5989
  d,
5990
5990
  F
5991
- ), st === null ? X = q : st.sibling = q, st = q);
5991
+ ), st === null ? X = G : st.sibling = G, st = G);
5992
5992
  return ft && Ye(g, F), X;
5993
5993
  }
5994
- for (q = a(q); F < m.length; F++)
5994
+ for (G = a(G); F < m.length; F++)
5995
5995
  ct = S(
5996
- q,
5996
+ G,
5997
5997
  g,
5998
5998
  F,
5999
5999
  m[F],
6000
6000
  E
6001
- ), ct !== null && (t && ct.alternate !== null && q.delete(
6001
+ ), ct !== null && (t && ct.alternate !== null && G.delete(
6002
6002
  ct.key === null ? F : ct.key
6003
6003
  ), d = i(
6004
6004
  ct,
6005
6005
  d,
6006
6006
  F
6007
6007
  ), st === null ? X = ct : st.sibling = ct, st = ct);
6008
- return t && q.forEach(function(zl) {
6008
+ return t && G.forEach(function(zl) {
6009
6009
  return e(g, zl);
6010
6010
  }), ft && Ye(g, F), X;
6011
6011
  }
6012
6012
  function V(g, d, m, E) {
6013
6013
  if (m == null) throw Error(r(151));
6014
- for (var X = null, st = null, q = d, F = d = 0, ct = null, rt = m.next(); q !== null && !rt.done; F++, rt = m.next()) {
6015
- q.index > F ? (ct = q, q = null) : ct = q.sibling;
6016
- var zl = b(g, q, rt.value, E);
6014
+ for (var X = null, st = null, G = d, F = d = 0, ct = null, rt = m.next(); G !== null && !rt.done; F++, rt = m.next()) {
6015
+ G.index > F ? (ct = G, G = null) : ct = G.sibling;
6016
+ var zl = b(g, G, rt.value, E);
6017
6017
  if (zl === null) {
6018
- q === null && (q = ct);
6018
+ G === null && (G = ct);
6019
6019
  break;
6020
6020
  }
6021
- t && q && zl.alternate === null && e(g, q), d = i(zl, d, F), st === null ? X = zl : st.sibling = zl, st = zl, q = ct;
6021
+ t && G && zl.alternate === null && e(g, G), d = i(zl, d, F), st === null ? X = zl : st.sibling = zl, st = zl, G = ct;
6022
6022
  }
6023
6023
  if (rt.done)
6024
- return l(g, q), ft && Ye(g, F), X;
6025
- if (q === null) {
6024
+ return l(g, G), ft && Ye(g, F), X;
6025
+ if (G === null) {
6026
6026
  for (; !rt.done; F++, rt = m.next())
6027
- rt = C(g, rt.value, E), rt !== null && (d = i(rt, d, F), st === null ? X = rt : st.sibling = rt, st = rt);
6027
+ rt = z(g, rt.value, E), rt !== null && (d = i(rt, d, F), st === null ? X = rt : st.sibling = rt, st = rt);
6028
6028
  return ft && Ye(g, F), X;
6029
6029
  }
6030
- for (q = a(q); !rt.done; F++, rt = m.next())
6031
- rt = S(q, g, F, rt.value, E), rt !== null && (t && rt.alternate !== null && q.delete(rt.key === null ? F : rt.key), d = i(rt, d, F), st === null ? X = rt : st.sibling = rt, st = rt);
6032
- return t && q.forEach(function(hg) {
6030
+ for (G = a(G); !rt.done; F++, rt = m.next())
6031
+ rt = S(G, g, F, rt.value, E), rt !== null && (t && rt.alternate !== null && G.delete(rt.key === null ? F : rt.key), d = i(rt, d, F), st === null ? X = rt : st.sibling = rt, st = rt);
6032
+ return t && G.forEach(function(hg) {
6033
6033
  return e(g, hg);
6034
6034
  }), ft && Ye(g, F), X;
6035
6035
  }
@@ -6150,9 +6150,9 @@ Error generating stack: ` + a.message + `
6150
6150
  E
6151
6151
  );
6152
6152
  return ya = null, X;
6153
- } catch (q) {
6154
- if (q === ha || q === In) throw q;
6155
- var st = he(29, q, null, g.mode);
6153
+ } catch (G) {
6154
+ if (G === ha || G === In) throw G;
6155
+ var st = he(29, G, null, g.mode);
6156
6156
  return st.lanes = E, st.return = g, st;
6157
6157
  }
6158
6158
  };
@@ -6242,7 +6242,7 @@ Error generating stack: ` + a.message + `
6242
6242
  A !== null && (A = A.updateQueue, c = A.lastBaseUpdate, c !== u && (c === null ? A.firstBaseUpdate = p : c.next = p, A.lastBaseUpdate = s));
6243
6243
  }
6244
6244
  if (i !== null) {
6245
- var C = n.baseState;
6245
+ var z = n.baseState;
6246
6246
  u = 0, A = p = s = null, c = i;
6247
6247
  do {
6248
6248
  var b = c.lane & -536870913, S = b !== c.lane;
@@ -6261,16 +6261,16 @@ Error generating stack: ` + a.message + `
6261
6261
  switch (V.tag) {
6262
6262
  case 1:
6263
6263
  if (H = V.payload, typeof H == "function") {
6264
- C = H.call(bt, C, b);
6264
+ z = H.call(bt, z, b);
6265
6265
  break t;
6266
6266
  }
6267
- C = H;
6267
+ z = H;
6268
6268
  break t;
6269
6269
  case 3:
6270
6270
  H.flags = H.flags & -65537 | 128;
6271
6271
  case 0:
6272
- if (H = V.payload, b = typeof H == "function" ? H.call(bt, C, b) : H, b == null) break t;
6273
- C = N({}, C, b);
6272
+ if (H = V.payload, b = typeof H == "function" ? H.call(bt, z, b) : H, b == null) break t;
6273
+ z = N({}, z, b);
6274
6274
  break t;
6275
6275
  case 2:
6276
6276
  fl = !0;
@@ -6284,14 +6284,14 @@ Error generating stack: ` + a.message + `
6284
6284
  payload: c.payload,
6285
6285
  callback: c.callback,
6286
6286
  next: null
6287
- }, A === null ? (p = A = S, s = C) : A = A.next = S, u |= b;
6287
+ }, A === null ? (p = A = S, s = z) : A = A.next = S, u |= b;
6288
6288
  if (c = c.next, c === null) {
6289
6289
  if (c = n.shared.pending, c === null)
6290
6290
  break;
6291
6291
  S = c, c = S.next, S.next = null, n.lastBaseUpdate = S, n.shared.pending = null;
6292
6292
  }
6293
6293
  } while (!0);
6294
- A === null && (s = C), n.baseState = s, n.firstBaseUpdate = p, n.lastBaseUpdate = A, i === null && (n.shared.lanes = 0), gl |= u, t.lanes = u, t.memoizedState = C;
6294
+ A === null && (s = z), n.baseState = s, n.firstBaseUpdate = p, n.lastBaseUpdate = A, i === null && (n.shared.lanes = 0), gl |= u, t.lanes = u, t.memoizedState = z;
6295
6295
  }
6296
6296
  }
6297
6297
  function Qo(t, e) {
@@ -6365,7 +6365,7 @@ Error generating stack: ` + a.message + `
6365
6365
  return !0;
6366
6366
  }
6367
6367
  function tc(t, e, l, a, n, i) {
6368
- return Ve = i, W = e, e.memoizedState = null, e.updateQueue = null, e.lanes = 0, M.H = t === null || t.memoizedState === null ? Us : gc, Ll = !1, i = l(a, n), Ll = !1, ma && (i = Wo(
6368
+ return Ve = i, W = e, e.memoizedState = null, e.updateQueue = null, e.lanes = 0, O.H = t === null || t.memoizedState === null ? Us : gc, Ll = !1, i = l(a, n), Ll = !1, ma && (i = Wo(
6369
6369
  e,
6370
6370
  l,
6371
6371
  a,
@@ -6373,7 +6373,7 @@ Error generating stack: ` + a.message + `
6373
6373
  )), Jo(t), i;
6374
6374
  }
6375
6375
  function Jo(t) {
6376
- M.H = nn;
6376
+ O.H = nn;
6377
6377
  var e = pt !== null && pt.next !== null;
6378
6378
  if (Ve = 0, wt = pt = W = null, ni = !1, en = 0, pa = null, e) throw Error(r(300));
6379
6379
  t === null || Nt || (t = t.dependencies, t !== null && Wn(t) && (Nt = !0));
@@ -6387,12 +6387,12 @@ Error generating stack: ` + a.message + `
6387
6387
  var i = t.updateQueue;
6388
6388
  i.lastEffect = null, i.events = null, i.stores = null, i.memoCache != null && (i.memoCache.index = 0);
6389
6389
  }
6390
- M.H = Ds, i = e(l, a);
6390
+ O.H = Ds, i = e(l, a);
6391
6391
  } while (ma);
6392
6392
  return i;
6393
6393
  }
6394
6394
  function ny() {
6395
- var t = M.H, e = t.useState()[0];
6395
+ var t = O.H, e = t.useState()[0];
6396
6396
  return e = typeof e.then == "function" ? ln(e) : e, t = t.useState()[0], (pt !== null ? pt.memoizedState : null) !== t && (W.flags |= 1024), e;
6397
6397
  }
6398
6398
  function ec() {
@@ -6448,7 +6448,7 @@ Error generating stack: ` + a.message + `
6448
6448
  }
6449
6449
  function ln(t) {
6450
6450
  var e = en;
6451
- return en += 1, pa === null && (pa = []), t = Go(pa, t, e), e = W, (wt === null ? e.memoizedState : wt.next) === null && (e = e.alternate, M.H = e === null || e.memoizedState === null ? Us : gc), t;
6451
+ return en += 1, pa === null && (pa = []), t = Go(pa, t, e), e = W, (wt === null ? e.memoizedState : wt.next) === null && (e = e.alternate, O.H = e === null || e.memoizedState === null ? Us : gc), t;
6452
6452
  }
6453
6453
  function ci(t) {
6454
6454
  if (t !== null && typeof t == "object") {
@@ -6497,8 +6497,8 @@ Error generating stack: ` + a.message + `
6497
6497
  e = n.next;
6498
6498
  var c = u = null, s = null, p = e, A = !1;
6499
6499
  do {
6500
- var C = p.lane & -536870913;
6501
- if (C !== p.lane ? (ut & C) === C : (Ve & C) === C) {
6500
+ var z = p.lane & -536870913;
6501
+ if (z !== p.lane ? (ut & z) === z : (Ve & z) === z) {
6502
6502
  var b = p.revertLane;
6503
6503
  if (b === 0)
6504
6504
  s !== null && (s = s.next = {
@@ -6509,12 +6509,12 @@ Error generating stack: ` + a.message + `
6509
6509
  hasEagerState: p.hasEagerState,
6510
6510
  eagerState: p.eagerState,
6511
6511
  next: null
6512
- }), C === ra && (A = !0);
6512
+ }), z === ra && (A = !0);
6513
6513
  else if ((Ve & b) === b) {
6514
6514
  p = p.next, b === ra && (A = !0);
6515
6515
  continue;
6516
6516
  } else
6517
- C = {
6517
+ z = {
6518
6518
  lane: 0,
6519
6519
  revertLane: p.revertLane,
6520
6520
  gesture: null,
@@ -6522,18 +6522,18 @@ Error generating stack: ` + a.message + `
6522
6522
  hasEagerState: p.hasEagerState,
6523
6523
  eagerState: p.eagerState,
6524
6524
  next: null
6525
- }, s === null ? (c = s = C, u = i) : s = s.next = C, W.lanes |= b, gl |= b;
6526
- C = p.action, Ll && l(i, C), i = p.hasEagerState ? p.eagerState : l(i, C);
6525
+ }, s === null ? (c = s = z, u = i) : s = s.next = z, W.lanes |= b, gl |= b;
6526
+ z = p.action, Ll && l(i, z), i = p.hasEagerState ? p.eagerState : l(i, z);
6527
6527
  } else
6528
6528
  b = {
6529
- lane: C,
6529
+ lane: z,
6530
6530
  revertLane: p.revertLane,
6531
6531
  gesture: p.gesture,
6532
6532
  action: p.action,
6533
6533
  hasEagerState: p.hasEagerState,
6534
6534
  eagerState: p.eagerState,
6535
6535
  next: null
6536
- }, s === null ? (c = s = b, u = i) : s = s.next = b, W.lanes |= C, gl |= C;
6536
+ }, s === null ? (c = s = b, u = i) : s = s.next = b, W.lanes |= z, gl |= z;
6537
6537
  p = p.next;
6538
6538
  } while (p !== null && p !== e);
6539
6539
  if (s === null ? u = i : s.next = c, !de(i, t.memoizedState) && (Nt = !0, A && (l = da, l !== null)))
@@ -6655,21 +6655,21 @@ Error generating stack: ` + a.message + `
6655
6655
  i.listeners.push(u);
6656
6656
  }
6657
6657
  };
6658
- M.T !== null ? l(!0) : i.isTransition = !1, a(i), l = e.pending, l === null ? (i.next = e.pending = i, as(e, i)) : (i.next = l.next, e.pending = l.next = i);
6658
+ O.T !== null ? l(!0) : i.isTransition = !1, a(i), l = e.pending, l === null ? (i.next = e.pending = i, as(e, i)) : (i.next = l.next, e.pending = l.next = i);
6659
6659
  }
6660
6660
  }
6661
6661
  function as(t, e) {
6662
6662
  var l = e.action, a = e.payload, n = t.state;
6663
6663
  if (e.isTransition) {
6664
- var i = M.T, u = {};
6665
- M.T = u;
6664
+ var i = O.T, u = {};
6665
+ O.T = u;
6666
6666
  try {
6667
- var c = l(n, a), s = M.S;
6667
+ var c = l(n, a), s = O.S;
6668
6668
  s !== null && s(u, c), ns(t, e, c);
6669
6669
  } catch (p) {
6670
6670
  fc(t, e, p);
6671
6671
  } finally {
6672
- i !== null && u.types !== null && (i.types = u.types), M.T = i;
6672
+ i !== null && u.types !== null && (i.types = u.types), O.T = i;
6673
6673
  }
6674
6674
  } else
6675
6675
  try {
@@ -6913,10 +6913,10 @@ Error generating stack: ` + a.message + `
6913
6913
  function Ts(t, e, l, a, n) {
6914
6914
  var i = j.p;
6915
6915
  j.p = i !== 0 && 8 > i ? i : 8;
6916
- var u = M.T, c = {};
6917
- M.T = c, yc(t, !1, e, l);
6916
+ var u = O.T, c = {};
6917
+ O.T = c, yc(t, !1, e, l);
6918
6918
  try {
6919
- var s = n(), p = M.S;
6919
+ var s = n(), p = O.S;
6920
6920
  if (p !== null && p(c, s), s !== null && typeof s == "object" && typeof s.then == "function") {
6921
6921
  var A = ly(
6922
6922
  s,
@@ -6935,16 +6935,16 @@ Error generating stack: ` + a.message + `
6935
6935
  a,
6936
6936
  ve(t)
6937
6937
  );
6938
- } catch (C) {
6938
+ } catch (z) {
6939
6939
  an(
6940
6940
  t,
6941
6941
  e,
6942
6942
  { then: function() {
6943
- }, status: "rejected", reason: C },
6943
+ }, status: "rejected", reason: z },
6944
6944
  ve()
6945
6945
  );
6946
6946
  } finally {
6947
- j.p = i, u !== null && c.types !== null && (u.types = c.types), M.T = u;
6947
+ j.p = i, u !== null && c.types !== null && (u.types = c.types), O.T = u;
6948
6948
  }
6949
6949
  }
6950
6950
  function fy() {
@@ -7751,18 +7751,18 @@ Error generating stack: ` + a.message + `
7751
7751
  i.props = s;
7752
7752
  var p = i.context, A = l.contextType;
7753
7753
  u = ua, typeof A == "object" && A !== null && (u = kt(A));
7754
- var C = l.getDerivedStateFromProps;
7755
- A = typeof C == "function" || typeof i.getSnapshotBeforeUpdate == "function", c = e.pendingProps !== c, A || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (c || p !== u) && Rs(
7754
+ var z = l.getDerivedStateFromProps;
7755
+ A = typeof z == "function" || typeof i.getSnapshotBeforeUpdate == "function", c = e.pendingProps !== c, A || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (c || p !== u) && Rs(
7756
7756
  e,
7757
7757
  i,
7758
7758
  a,
7759
7759
  u
7760
7760
  ), fl = !1;
7761
7761
  var b = e.memoizedState;
7762
- i.state = b, tn(e, a, i, n), Pa(), p = e.memoizedState, c || b !== p || fl ? (typeof C == "function" && (mc(
7762
+ i.state = b, tn(e, a, i, n), Pa(), p = e.memoizedState, c || b !== p || fl ? (typeof z == "function" && (mc(
7763
7763
  e,
7764
7764
  l,
7765
- C,
7765
+ z,
7766
7766
  a
7767
7767
  ), p = e.memoizedState), (s = fl || js(
7768
7768
  e,
@@ -7774,14 +7774,14 @@ Error generating stack: ` + a.message + `
7774
7774
  u
7775
7775
  )) ? (A || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount()), typeof i.componentDidMount == "function" && (e.flags |= 4194308)) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), e.memoizedProps = a, e.memoizedState = p), i.props = a, i.state = p, i.context = u, a = s) : (typeof i.componentDidMount == "function" && (e.flags |= 4194308), a = !1);
7776
7776
  } else {
7777
- i = e.stateNode, Ku(t, e), u = e.memoizedProps, A = Xl(l, u), i.props = A, C = e.pendingProps, b = i.context, p = l.contextType, s = ua, typeof p == "object" && p !== null && (s = kt(p)), c = l.getDerivedStateFromProps, (p = typeof c == "function" || typeof i.getSnapshotBeforeUpdate == "function") || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (u !== C || b !== s) && Rs(
7777
+ i = e.stateNode, Ku(t, e), u = e.memoizedProps, A = Xl(l, u), i.props = A, z = e.pendingProps, b = i.context, p = l.contextType, s = ua, typeof p == "object" && p !== null && (s = kt(p)), c = l.getDerivedStateFromProps, (p = typeof c == "function" || typeof i.getSnapshotBeforeUpdate == "function") || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (u !== z || b !== s) && Rs(
7778
7778
  e,
7779
7779
  i,
7780
7780
  a,
7781
7781
  s
7782
7782
  ), fl = !1, b = e.memoizedState, i.state = b, tn(e, a, i, n), Pa();
7783
7783
  var S = e.memoizedState;
7784
- u !== C || b !== S || fl || t !== null && t.dependencies !== null && Wn(t.dependencies) ? (typeof c == "function" && (mc(
7784
+ u !== z || b !== S || fl || t !== null && t.dependencies !== null && Wn(t.dependencies) ? (typeof c == "function" && (mc(
7785
7785
  e,
7786
7786
  l,
7787
7787
  c,
@@ -8155,7 +8155,7 @@ Error generating stack: ` + a.message + `
8155
8155
  else {
8156
8156
  if (t != null) {
8157
8157
  var n = t.$$typeof;
8158
- if (n === B) {
8158
+ if (n === q) {
8159
8159
  e.tag = 11, e = Ys(
8160
8160
  null,
8161
8161
  e,
@@ -8483,7 +8483,7 @@ Error generating stack: ` + a.message + `
8483
8483
  throw Error(r(166));
8484
8484
  return Et(e), null;
8485
8485
  }
8486
- t = Y.current, oa(e) ? jo(e) : (t = ud(n, a, l), e.stateNode = t, ke(e));
8486
+ t = L.current, oa(e) ? jo(e) : (t = ud(n, a, l), e.stateNode = t, ke(e));
8487
8487
  }
8488
8488
  return Et(e), null;
8489
8489
  case 5:
@@ -8495,7 +8495,7 @@ Error generating stack: ` + a.message + `
8495
8495
  throw Error(r(166));
8496
8496
  return Et(e), null;
8497
8497
  }
8498
- if (i = Y.current, oa(e))
8498
+ if (i = L.current, oa(e))
8499
8499
  jo(e);
8500
8500
  else {
8501
8501
  var u = Di(
@@ -8959,16 +8959,16 @@ Error generating stack: ` + a.message + `
8959
8959
  l = null;
8960
8960
  break t;
8961
8961
  }
8962
- var u = 0, c = -1, s = -1, p = 0, A = 0, C = t, b = null;
8962
+ var u = 0, c = -1, s = -1, p = 0, A = 0, z = t, b = null;
8963
8963
  e: for (; ; ) {
8964
- for (var S; C !== l || n !== 0 && C.nodeType !== 3 || (c = u + n), C !== i || a !== 0 && C.nodeType !== 3 || (s = u + a), C.nodeType === 3 && (u += C.nodeValue.length), (S = C.firstChild) !== null; )
8965
- b = C, C = S;
8964
+ for (var S; z !== l || n !== 0 && z.nodeType !== 3 || (c = u + n), z !== i || a !== 0 && z.nodeType !== 3 || (s = u + a), z.nodeType === 3 && (u += z.nodeValue.length), (S = z.firstChild) !== null; )
8965
+ b = z, z = S;
8966
8966
  for (; ; ) {
8967
- if (C === t) break e;
8968
- if (b === l && ++p === n && (c = u), b === i && ++A === a && (s = u), (S = C.nextSibling) !== null) break;
8969
- C = b, b = C.parentNode;
8967
+ if (z === t) break e;
8968
+ if (b === l && ++p === n && (c = u), b === i && ++A === a && (s = u), (S = z.nextSibling) !== null) break;
8969
+ z = b, b = z.parentNode;
8970
8970
  }
8971
- C = S;
8971
+ z = S;
8972
8972
  }
8973
8973
  l = c === -1 || s === -1 ? null : { start: c, end: s };
8974
8974
  } else l = null;
@@ -9484,7 +9484,7 @@ Error generating stack: ` + a.message + `
9484
9484
  u = i.style, typeof u.setProperty == "function" ? u.setProperty("display", "none", "important") : u.display = "none";
9485
9485
  else {
9486
9486
  c = s.stateNode;
9487
- var C = s.memoizedProps.style, b = C != null && C.hasOwnProperty("display") ? C.display : null;
9487
+ var z = s.memoizedProps.style, b = z != null && z.hasOwnProperty("display") ? z.display : null;
9488
9488
  c.style.display = b == null || typeof b == "boolean" ? "" : ("" + b).trim();
9489
9489
  }
9490
9490
  } catch (H) {
@@ -10100,7 +10100,7 @@ Error generating stack: ` + a.message + `
10100
10100
  }
10101
10101
  }, by = typeof WeakMap == "function" ? WeakMap : Map, ht = 0, xt = null, at = null, ut = 0, gt = 0, me = null, yl = !1, Sa = !1, Nc = !1, Fe = 0, _t = 0, gl = 0, Ql = 0, Hc = 0, pe = 0, Ta = 0, hn = null, ie = null, Bc = !1, xi = 0, br = 0, Si = 1 / 0, Ti = null, ml = null, qt = 0, pl = null, Aa = null, Ie = 0, qc = 0, Gc = null, xr = null, yn = 0, Yc = null;
10102
10102
  function ve() {
10103
- return (ht & 2) !== 0 && ut !== 0 ? ut & -ut : M.T !== null ? kc() : Nf();
10103
+ return (ht & 2) !== 0 && ut !== 0 ? ut & -ut : O.T !== null ? kc() : Nf();
10104
10104
  }
10105
10105
  function Sr() {
10106
10106
  if (pe === 0)
@@ -10244,9 +10244,9 @@ Error generating stack: ` + a.message + `
10244
10244
  } while (!0);
10245
10245
  Ne(t);
10246
10246
  }
10247
- function Ar(t, e, l, a, n, i, u, c, s, p, A, C, b, S) {
10248
- if (t.timeoutHandle = -1, C = e.subtreeFlags, C & 8192 || (C & 16785408) === 16785408) {
10249
- C = {
10247
+ function Ar(t, e, l, a, n, i, u, c, s, p, A, z, b, S) {
10248
+ if (t.timeoutHandle = -1, z = e.subtreeFlags, z & 8192 || (z & 16785408) === 16785408) {
10249
+ z = {
10250
10250
  stylesheets: null,
10251
10251
  count: 0,
10252
10252
  imgCount: 0,
@@ -10258,11 +10258,11 @@ Error generating stack: ` + a.message + `
10258
10258
  }, gr(
10259
10259
  e,
10260
10260
  i,
10261
- C
10261
+ z
10262
10262
  );
10263
10263
  var H = (i & 62914560) === i ? xi - oe() : (i & 4194048) === i ? br - oe() : 0;
10264
10264
  if (H = ng(
10265
- C,
10265
+ z,
10266
10266
  H
10267
10267
  ), H !== null) {
10268
10268
  Ie = i, t.cancelPendingCommit = H(
@@ -10278,7 +10278,7 @@ Error generating stack: ` + a.message + `
10278
10278
  c,
10279
10279
  s,
10280
10280
  A,
10281
- C,
10281
+ z,
10282
10282
  null,
10283
10283
  b,
10284
10284
  S
@@ -10359,7 +10359,7 @@ Error generating stack: ` + a.message + `
10359
10359
  return Fe = e, Qn(), l;
10360
10360
  }
10361
10361
  function Er(t, e) {
10362
- W = null, M.H = nn, e === ha || e === In ? (e = Yo(), gt = 3) : e === Zu ? (e = Yo(), gt = 4) : gt = e === bc ? 8 : e !== null && typeof e == "object" && typeof e.then == "function" ? 6 : 1, me = e, at === null && (_t = 1, di(
10362
+ W = null, O.H = nn, e === ha || e === In ? (e = Yo(), gt = 3) : e === Zu ? (e = Yo(), gt = 4) : gt = e === bc ? 8 : e !== null && typeof e == "object" && typeof e.then == "function" ? 6 : 1, me = e, at === null && (_t = 1, di(
10363
10363
  t,
10364
10364
  Te(e, t.current)
10365
10365
  ));
@@ -10369,12 +10369,12 @@ Error generating stack: ` + a.message + `
10369
10369
  return t === null ? !0 : (ut & 4194048) === ut ? Ce === null : (ut & 62914560) === ut || (ut & 536870912) !== 0 ? t === Ce : !1;
10370
10370
  }
10371
10371
  function Cr() {
10372
- var t = M.H;
10373
- return M.H = nn, t === null ? nn : t;
10372
+ var t = O.H;
10373
+ return O.H = nn, t === null ? nn : t;
10374
10374
  }
10375
10375
  function _r() {
10376
- var t = M.A;
10377
- return M.A = vy, t;
10376
+ var t = O.A;
10377
+ return O.A = vy, t;
10378
10378
  }
10379
10379
  function Ei() {
10380
10380
  _t = 4, yl || (ut & 4194048) !== ut && ye.current !== null || (Sa = !0), (gl & 134217727) === 0 && (Ql & 134217727) === 0 || xt === null || vl(
@@ -10419,7 +10419,7 @@ Error generating stack: ` + a.message + `
10419
10419
  Er(t, A);
10420
10420
  }
10421
10421
  while (!0);
10422
- return e && t.shellSuspendCounter++, Le = Nl = null, ht = a, M.H = n, M.A = i, at === null && (xt = null, ut = 0, Qn()), u;
10422
+ return e && t.shellSuspendCounter++, Le = Nl = null, ht = a, O.H = n, O.A = i, at === null && (xt = null, ut = 0, Qn()), u;
10423
10423
  }
10424
10424
  function Sy() {
10425
10425
  for (; at !== null; ) Mr(at);
@@ -10497,7 +10497,7 @@ Error generating stack: ` + a.message + `
10497
10497
  Er(t, A);
10498
10498
  }
10499
10499
  while (!0);
10500
- return Le = Nl = null, M.H = a, M.A = n, ht = l, at !== null ? 0 : (xt = null, ut = 0, Qn(), _t);
10500
+ return Le = Nl = null, O.H = a, O.A = n, ht = l, at !== null ? 0 : (xt = null, ut = 0, Qn(), _t);
10501
10501
  }
10502
10502
  function Ay() {
10503
10503
  for (; at !== null && !kd(); )
@@ -10626,11 +10626,11 @@ Error generating stack: ` + a.message + `
10626
10626
  ), t === xt && (at = xt = null, ut = 0), Aa = e, pl = t, Ie = l, qc = i, Gc = n, xr = a, (e.subtreeFlags & 10256) !== 0 || (e.flags & 10256) !== 0 ? (t.callbackNode = null, t.callbackPriority = 0, _y(Mn, function() {
10627
10627
  return Hr(), null;
10628
10628
  })) : (t.callbackNode = null, t.callbackPriority = 0), a = (e.flags & 13878) !== 0, (e.subtreeFlags & 13878) !== 0 || a) {
10629
- a = M.T, M.T = null, n = j.p, j.p = 2, u = ht, ht |= 4;
10629
+ a = O.T, O.T = null, n = j.p, j.p = 2, u = ht, ht |= 4;
10630
10630
  try {
10631
10631
  my(t, e, l);
10632
10632
  } finally {
10633
- ht = u, j.p = n, M.T = a;
10633
+ ht = u, j.p = n, O.T = a;
10634
10634
  }
10635
10635
  }
10636
10636
  qt = 1, jr(), Rr(), wr();
@@ -10641,7 +10641,7 @@ Error generating stack: ` + a.message + `
10641
10641
  qt = 0;
10642
10642
  var t = pl, e = Aa, l = (e.flags & 13878) !== 0;
10643
10643
  if ((e.subtreeFlags & 13878) !== 0 || l) {
10644
- l = M.T, M.T = null;
10644
+ l = O.T, O.T = null;
10645
10645
  var a = j.p;
10646
10646
  j.p = 2;
10647
10647
  var n = ht;
@@ -10661,7 +10661,7 @@ Error generating stack: ` + a.message + `
10661
10661
  c.value.length
10662
10662
  );
10663
10663
  else {
10664
- var C = c.ownerDocument || document, b = C && C.defaultView || window;
10664
+ var z = c.ownerDocument || document, b = z && z.defaultView || window;
10665
10665
  if (b.getSelection) {
10666
10666
  var S = b.getSelection(), H = c.textContent.length, V = Math.min(s.start, H), bt = s.end === void 0 ? V : Math.min(s.end, H);
10667
10667
  !S.extend && V > bt && (u = bt, bt = V, V = u);
@@ -10673,26 +10673,26 @@ Error generating stack: ` + a.message + `
10673
10673
  bt
10674
10674
  );
10675
10675
  if (g && d && (S.rangeCount !== 1 || S.anchorNode !== g.node || S.anchorOffset !== g.offset || S.focusNode !== d.node || S.focusOffset !== d.offset)) {
10676
- var m = C.createRange();
10676
+ var m = z.createRange();
10677
10677
  m.setStart(g.node, g.offset), S.removeAllRanges(), V > bt ? (S.addRange(m), S.extend(d.node, d.offset)) : (m.setEnd(d.node, d.offset), S.addRange(m));
10678
10678
  }
10679
10679
  }
10680
10680
  }
10681
10681
  }
10682
- for (C = [], S = c; S = S.parentNode; )
10683
- S.nodeType === 1 && C.push({
10682
+ for (z = [], S = c; S = S.parentNode; )
10683
+ S.nodeType === 1 && z.push({
10684
10684
  element: S,
10685
10685
  left: S.scrollLeft,
10686
10686
  top: S.scrollTop
10687
10687
  });
10688
- for (typeof c.focus == "function" && c.focus(), c = 0; c < C.length; c++) {
10689
- var E = C[c];
10688
+ for (typeof c.focus == "function" && c.focus(), c = 0; c < z.length; c++) {
10689
+ var E = z[c];
10690
10690
  E.element.scrollLeft = E.left, E.element.scrollTop = E.top;
10691
10691
  }
10692
10692
  }
10693
10693
  qi = !!Pc, tf = Pc = null;
10694
10694
  } finally {
10695
- ht = n, j.p = a, M.T = l;
10695
+ ht = n, j.p = a, O.T = l;
10696
10696
  }
10697
10697
  }
10698
10698
  t.current = e, qt = 2;
@@ -10703,7 +10703,7 @@ Error generating stack: ` + a.message + `
10703
10703
  qt = 0;
10704
10704
  var t = pl, e = Aa, l = (e.flags & 8772) !== 0;
10705
10705
  if ((e.subtreeFlags & 8772) !== 0 || l) {
10706
- l = M.T, M.T = null;
10706
+ l = O.T, O.T = null;
10707
10707
  var a = j.p;
10708
10708
  j.p = 2;
10709
10709
  var n = ht;
@@ -10711,7 +10711,7 @@ Error generating stack: ` + a.message + `
10711
10711
  try {
10712
10712
  cr(t, e.alternate, e);
10713
10713
  } finally {
10714
- ht = n, j.p = a, M.T = l;
10714
+ ht = n, j.p = a, O.T = l;
10715
10715
  }
10716
10716
  }
10717
10717
  qt = 3;
@@ -10734,7 +10734,7 @@ Error generating stack: ` + a.message + `
10734
10734
  } catch {
10735
10735
  }
10736
10736
  if (a !== null) {
10737
- e = M.T, n = j.p, j.p = 2, M.T = null;
10737
+ e = O.T, n = j.p, j.p = 2, O.T = null;
10738
10738
  try {
10739
10739
  for (var i = t.onRecoverableError, u = 0; u < a.length; u++) {
10740
10740
  var c = a[u];
@@ -10743,7 +10743,7 @@ Error generating stack: ` + a.message + `
10743
10743
  });
10744
10744
  }
10745
10745
  } finally {
10746
- M.T = e, j.p = n;
10746
+ O.T = e, j.p = n;
10747
10747
  }
10748
10748
  }
10749
10749
  (Ie & 3) !== 0 && Ci(), Ne(t), n = t.pendingLanes, (l & 261930) !== 0 && (n & 42) !== 0 ? t === Yc ? yn++ : (yn = 0, Yc = t) : yn = 0, gn(0);
@@ -10759,9 +10759,9 @@ Error generating stack: ` + a.message + `
10759
10759
  if (qt !== 5) return !1;
10760
10760
  var t = pl, e = qc;
10761
10761
  qc = 0;
10762
- var l = uu(Ie), a = M.T, n = j.p;
10762
+ var l = uu(Ie), a = O.T, n = j.p;
10763
10763
  try {
10764
- j.p = 32 > l ? 32 : l, M.T = null, l = Gc, Gc = null;
10764
+ j.p = 32 > l ? 32 : l, O.T = null, l = Gc, Gc = null;
10765
10765
  var i = pl, u = Ie;
10766
10766
  if (qt = 0, Aa = pl = null, Ie = 0, (ht & 6) !== 0) throw Error(r(331));
10767
10767
  var c = ht;
@@ -10777,7 +10777,7 @@ Error generating stack: ` + a.message + `
10777
10777
  }
10778
10778
  return !0;
10779
10779
  } finally {
10780
- j.p = n, M.T = a, Nr(t, e);
10780
+ j.p = n, O.T = a, Nr(t, e);
10781
10781
  }
10782
10782
  }
10783
10783
  function Br(t, e, l) {
@@ -11164,7 +11164,7 @@ Error generating stack: ` + a.message + `
11164
11164
  a = a.return;
11165
11165
  }
11166
11166
  $f(function() {
11167
- var p = i, A = yu(l), C = [];
11167
+ var p = i, A = yu(l), z = [];
11168
11168
  t: {
11169
11169
  var b = zo.get(t);
11170
11170
  if (b !== void 0) {
@@ -11263,14 +11263,14 @@ Error generating stack: ` + a.message + `
11263
11263
  null,
11264
11264
  l,
11265
11265
  A
11266
- ), C.push({ event: b, listeners: V }));
11266
+ ), z.push({ event: b, listeners: V }));
11267
11267
  }
11268
11268
  }
11269
11269
  if ((e & 7) === 0) {
11270
11270
  t: {
11271
11271
  if (b = t === "mouseover" || t === "pointerover", S = t === "mouseout" || t === "pointerout", b && l !== hu && (H = l.relatedTarget || l.fromElement) && (Jl(H) || H[Kl]))
11272
11272
  break t;
11273
- if ((S || b) && (b = A.window === A ? A : (b = A.ownerDocument) ? b.defaultView || b.parentWindow : window, S ? (H = l.relatedTarget || l.toElement, S = p, H = H ? Jl(H) : null, H !== null && (bt = O(H), V = H.tag, H !== bt || V !== 5 && V !== 27 && V !== 6) && (H = null)) : (S = null, H = p), S !== H)) {
11273
+ if ((S || b) && (b = A.window === A ? A : (b = A.ownerDocument) ? b.defaultView || b.parentWindow : window, S ? (H = l.relatedTarget || l.toElement, S = p, H = H ? Jl(H) : null, H !== null && (bt = M(H), V = H.tag, H !== bt || V !== 5 && V !== 27 && V !== 6) && (H = null)) : (S = null, H = p), S !== H)) {
11274
11274
  if (V = Pf, E = "onMouseLeave", g = "onMouseEnter", d = "mouse", (t === "pointerout" || t === "pointerover") && (V = eo, E = "onPointerLeave", g = "onPointerEnter", d = "pointer"), bt = S == null ? b : Ha(S), m = H == null ? b : Ha(H), b = new V(
11275
11275
  E,
11276
11276
  d + "leave",
@@ -11305,13 +11305,13 @@ Error generating stack: ` + a.message + `
11305
11305
  }
11306
11306
  else V = null;
11307
11307
  S !== null && Kr(
11308
- C,
11308
+ z,
11309
11309
  b,
11310
11310
  S,
11311
11311
  V,
11312
11312
  !1
11313
11313
  ), H !== null && bt !== null && Kr(
11314
- C,
11314
+ z,
11315
11315
  bt,
11316
11316
  H,
11317
11317
  V,
@@ -11327,24 +11327,24 @@ Error generating stack: ` + a.message + `
11327
11327
  st = Zh;
11328
11328
  else {
11329
11329
  st = Vh;
11330
- var q = Xh;
11330
+ var G = Xh;
11331
11331
  }
11332
11332
  else
11333
11333
  S = b.nodeName, !S || S.toLowerCase() !== "input" || b.type !== "checkbox" && b.type !== "radio" ? p && du(p.elementType) && (st = oo) : st = Qh;
11334
11334
  if (st && (st = st(t, p))) {
11335
11335
  fo(
11336
- C,
11336
+ z,
11337
11337
  st,
11338
11338
  l,
11339
11339
  A
11340
11340
  );
11341
11341
  break t;
11342
11342
  }
11343
- q && q(t, b, p), t === "focusout" && p && b.type === "number" && p.memoizedProps.value != null && ru(b, "number", b.value);
11343
+ G && G(t, b, p), t === "focusout" && p && b.type === "number" && p.memoizedProps.value != null && ru(b, "number", b.value);
11344
11344
  }
11345
- switch (q = p ? Ha(p) : window, t) {
11345
+ switch (G = p ? Ha(p) : window, t) {
11346
11346
  case "focusin":
11347
- (co(q) || q.contentEditable === "true") && (aa = q, Cu = p, Za = null);
11347
+ (co(G) || G.contentEditable === "true") && (aa = G, Cu = p, Za = null);
11348
11348
  break;
11349
11349
  case "focusout":
11350
11350
  Za = Cu = aa = null;
@@ -11355,13 +11355,13 @@ Error generating stack: ` + a.message + `
11355
11355
  case "contextmenu":
11356
11356
  case "mouseup":
11357
11357
  case "dragend":
11358
- _u = !1, bo(C, l, A);
11358
+ _u = !1, bo(z, l, A);
11359
11359
  break;
11360
11360
  case "selectionchange":
11361
11361
  if (Kh) break;
11362
11362
  case "keydown":
11363
11363
  case "keyup":
11364
- bo(C, l, A);
11364
+ bo(z, l, A);
11365
11365
  }
11366
11366
  var F;
11367
11367
  if (Tu)
@@ -11381,30 +11381,30 @@ Error generating stack: ` + a.message + `
11381
11381
  }
11382
11382
  else
11383
11383
  la ? io(t, l) && (ct = "onCompositionEnd") : t === "keydown" && l.keyCode === 229 && (ct = "onCompositionStart");
11384
- ct && (lo && l.locale !== "ko" && (la || ct !== "onCompositionStart" ? ct === "onCompositionEnd" && la && (F = Ff()) : (al = A, pu = "value" in al ? al.value : al.textContent, la = !0)), q = Ui(p, ct), 0 < q.length && (ct = new to(
11384
+ ct && (lo && l.locale !== "ko" && (la || ct !== "onCompositionStart" ? ct === "onCompositionEnd" && la && (F = Ff()) : (al = A, pu = "value" in al ? al.value : al.textContent, la = !0)), G = Ui(p, ct), 0 < G.length && (ct = new to(
11385
11385
  ct,
11386
11386
  t,
11387
11387
  null,
11388
11388
  l,
11389
11389
  A
11390
- ), C.push({ event: ct, listeners: q }), F ? ct.data = F : (F = uo(l), F !== null && (ct.data = F)))), (F = Bh ? qh(t, l) : Gh(t, l)) && (ct = Ui(p, "onBeforeInput"), 0 < ct.length && (q = new to(
11390
+ ), z.push({ event: ct, listeners: G }), F ? ct.data = F : (F = uo(l), F !== null && (ct.data = F)))), (F = Bh ? qh(t, l) : Gh(t, l)) && (ct = Ui(p, "onBeforeInput"), 0 < ct.length && (G = new to(
11391
11391
  "onBeforeInput",
11392
11392
  "beforeinput",
11393
11393
  null,
11394
11394
  l,
11395
11395
  A
11396
- ), C.push({
11397
- event: q,
11396
+ ), z.push({
11397
+ event: G,
11398
11398
  listeners: ct
11399
- }), q.data = F)), Uy(
11400
- C,
11399
+ }), G.data = F)), Uy(
11400
+ z,
11401
11401
  t,
11402
11402
  p,
11403
11403
  l,
11404
11404
  A
11405
11405
  );
11406
11406
  }
11407
- Zr(C, e);
11407
+ Zr(z, e);
11408
11408
  });
11409
11409
  }
11410
11410
  function pn(t, e, l) {
@@ -11951,22 +11951,22 @@ Error generating stack: ` + a.message + `
11951
11951
  case "input":
11952
11952
  var n = null, i = null, u = null, c = null, s = null, p = null, A = null;
11953
11953
  for (S in l) {
11954
- var C = l[S];
11955
- if (l.hasOwnProperty(S) && C != null)
11954
+ var z = l[S];
11955
+ if (l.hasOwnProperty(S) && z != null)
11956
11956
  switch (S) {
11957
11957
  case "checked":
11958
11958
  break;
11959
11959
  case "value":
11960
11960
  break;
11961
11961
  case "defaultValue":
11962
- s = C;
11962
+ s = z;
11963
11963
  default:
11964
- a.hasOwnProperty(S) || vt(t, e, S, null, a, C);
11964
+ a.hasOwnProperty(S) || vt(t, e, S, null, a, z);
11965
11965
  }
11966
11966
  }
11967
11967
  for (var b in a) {
11968
11968
  var S = a[b];
11969
- if (C = l[b], a.hasOwnProperty(b) && (S != null || C != null))
11969
+ if (z = l[b], a.hasOwnProperty(b) && (S != null || z != null))
11970
11970
  switch (b) {
11971
11971
  case "type":
11972
11972
  i = S;
@@ -11992,13 +11992,13 @@ Error generating stack: ` + a.message + `
11992
11992
  throw Error(r(137, e));
11993
11993
  break;
11994
11994
  default:
11995
- S !== C && vt(
11995
+ S !== z && vt(
11996
11996
  t,
11997
11997
  e,
11998
11998
  b,
11999
11999
  S,
12000
12000
  a,
12001
- C
12001
+ z
12002
12002
  );
12003
12003
  }
12004
12004
  }
@@ -12167,8 +12167,8 @@ Error generating stack: ` + a.message + `
12167
12167
  }
12168
12168
  for (var g in l)
12169
12169
  b = l[g], l.hasOwnProperty(g) && b != null && !a.hasOwnProperty(g) && vt(t, e, g, null, a, b);
12170
- for (C in a)
12171
- b = a[C], S = l[C], !a.hasOwnProperty(C) || b === S || b == null && S == null || vt(t, e, C, b, a, S);
12170
+ for (z in a)
12171
+ b = a[z], S = l[z], !a.hasOwnProperty(z) || b === S || b == null && S == null || vt(t, e, z, b, a, S);
12172
12172
  }
12173
12173
  function $r(t) {
12174
12174
  switch (t) {
@@ -12192,8 +12192,8 @@ Error generating stack: ` + a.message + `
12192
12192
  for (u = 0, c = n.responseEnd, a += 1; a < l.length; a++) {
12193
12193
  var s = l[a], p = s.startTime;
12194
12194
  if (p > c) break;
12195
- var A = s.transferSize, C = s.initiatorType;
12196
- A && $r(C) && (s = s.responseEnd, u += A * (s < c ? 1 : (c - p) / (s - p)));
12195
+ var A = s.transferSize, z = s.initiatorType;
12196
+ A && $r(z) && (s = s.responseEnd, u += A * (s < c ? 1 : (c - p) / (s - p)));
12197
12197
  }
12198
12198
  if (--a, e += 8 * (i + u) / (n.duration / 1e3), t++, 10 < t) break;
12199
12199
  }
@@ -12872,7 +12872,7 @@ Error generating stack: ` + a.message + `
12872
12872
  function ug(t, e, l, a, n, i, u, c, s) {
12873
12873
  this.tag = 1, this.containerInfo = t, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = nu(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = nu(0), this.hiddenUpdates = nu(null), this.identifierPrefix = a, this.onUncaughtError = n, this.onCaughtError = i, this.onRecoverableError = u, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = s, this.incompleteTransitions = /* @__PURE__ */ new Map();
12874
12874
  }
12875
- function gd(t, e, l, a, n, i, u, c, s, p, A, C) {
12875
+ function gd(t, e, l, a, n, i, u, c, s, p, A, z) {
12876
12876
  return t = new ug(
12877
12877
  t,
12878
12878
  e,
@@ -12881,7 +12881,7 @@ Error generating stack: ` + a.message + `
12881
12881
  s,
12882
12882
  p,
12883
12883
  A,
12884
- C,
12884
+ z,
12885
12885
  c
12886
12886
  ), e = 1, i === !0 && (e |= 24), i = he(3, null, null, e), t.current = i, i.stateNode = t, e = Xu(), e.refCount++, t.pooledCache = e, e.refCount++, i.memoizedState = {
12887
12887
  element: a,
@@ -12920,23 +12920,23 @@ Error generating stack: ` + a.message + `
12920
12920
  }
12921
12921
  var qi = !0;
12922
12922
  function cg(t, e, l, a) {
12923
- var n = M.T;
12924
- M.T = null;
12923
+ var n = O.T;
12924
+ O.T = null;
12925
12925
  var i = j.p;
12926
12926
  try {
12927
12927
  j.p = 2, df(t, e, l, a);
12928
12928
  } finally {
12929
- j.p = i, M.T = n;
12929
+ j.p = i, O.T = n;
12930
12930
  }
12931
12931
  }
12932
12932
  function fg(t, e, l, a) {
12933
- var n = M.T;
12934
- M.T = null;
12933
+ var n = O.T;
12934
+ O.T = null;
12935
12935
  var i = j.p;
12936
12936
  try {
12937
12937
  j.p = 8, df(t, e, l, a);
12938
12938
  } finally {
12939
- j.p = i, M.T = n;
12939
+ j.p = i, O.T = n;
12940
12940
  }
12941
12941
  }
12942
12942
  function df(t, e, l, a) {
@@ -13006,12 +13006,12 @@ Error generating stack: ` + a.message + `
13006
13006
  var Gi = null;
13007
13007
  function yf(t) {
13008
13008
  if (Gi = null, t = Jl(t), t !== null) {
13009
- var e = O(t);
13009
+ var e = M(t);
13010
13010
  if (e === null) t = null;
13011
13011
  else {
13012
13012
  var l = e.tag;
13013
13013
  if (l === 13) {
13014
- if (t = L(e), t !== null) return t;
13014
+ if (t = B(e), t !== null) return t;
13015
13015
  t = null;
13016
13016
  } else if (l === 31) {
13017
13017
  if (t = U(e), t !== null) return t;
@@ -13213,10 +13213,10 @@ Error generating stack: ` + a.message + `
13213
13213
  function Ad(t) {
13214
13214
  var e = Jl(t.target);
13215
13215
  if (e !== null) {
13216
- var l = O(e);
13216
+ var l = M(e);
13217
13217
  if (l !== null) {
13218
13218
  if (e = l.tag, e === 13) {
13219
- if (e = L(l), e !== null) {
13219
+ if (e = B(l), e !== null) {
13220
13220
  t.blockedOn = e, Hf(t.priority, function() {
13221
13221
  xd(l);
13222
13222
  });
@@ -13394,13 +13394,13 @@ Error generating stack: ` + a.message + `
13394
13394
  var e = t._reactInternals;
13395
13395
  if (e === void 0)
13396
13396
  throw typeof t.render == "function" ? Error(r(188)) : (t = Object.keys(t).join(","), Error(r(268, t)));
13397
- return t = G(e), t = t !== null ? D(t) : null, t = t === null ? null : t.stateNode, t;
13397
+ return t = Y(e), t = t !== null ? D(t) : null, t = t === null ? null : t.stateNode, t;
13398
13398
  };
13399
13399
  var dg = {
13400
13400
  bundleType: 0,
13401
13401
  version: "19.2.4",
13402
13402
  rendererPackageName: "react-dom",
13403
- currentDispatcherRef: M,
13403
+ currentDispatcherRef: O,
13404
13404
  reconcilerVersion: "19.2.4"
13405
13405
  };
13406
13406
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
@@ -13414,7 +13414,7 @@ Error generating stack: ` + a.message + `
13414
13414
  }
13415
13415
  }
13416
13416
  return Cn.createRoot = function(t, e) {
13417
- if (!z(t)) throw Error(r(299));
13417
+ if (!C(t)) throw Error(r(299));
13418
13418
  var l = !1, a = "", n = ws, i = Ns, u = Hs;
13419
13419
  return e != null && (e.unstable_strictMode === !0 && (l = !0), e.identifierPrefix !== void 0 && (a = e.identifierPrefix), e.onUncaughtError !== void 0 && (n = e.onUncaughtError), e.onCaughtError !== void 0 && (i = e.onCaughtError), e.onRecoverableError !== void 0 && (u = e.onRecoverableError)), e = gd(
13420
13420
  t,
@@ -13431,7 +13431,7 @@ Error generating stack: ` + a.message + `
13431
13431
  Cd
13432
13432
  ), t[Kl] = e.current, $c(t), new mf(e);
13433
13433
  }, Cn.hydrateRoot = function(t, e, l) {
13434
- if (!z(t)) throw Error(r(299));
13434
+ if (!C(t)) throw Error(r(299));
13435
13435
  var a = !1, n = "", i = ws, u = Ns, c = Hs, s = null;
13436
13436
  return l != null && (l.unstable_strictMode === !0 && (a = !0), l.identifierPrefix !== void 0 && (n = l.identifierPrefix), l.onUncaughtError !== void 0 && (i = l.onUncaughtError), l.onCaughtError !== void 0 && (u = l.onCaughtError), l.onRecoverableError !== void 0 && (c = l.onRecoverableError), l.formState !== void 0 && (s = l.formState)), e = gd(
13437
13437
  t,
@@ -13525,26 +13525,26 @@ const kl = /* @__PURE__ */ new Map(), zf = {
13525
13525
  return console.error("[GlydeChat] Container not found:", h), null;
13526
13526
  const T = typeof h == "string" ? h : o.id || `glyde-render-${Date.now()}`;
13527
13527
  if (kl.has(T)) {
13528
- const O = kl.get(T);
13529
- O && (O.root.unmount(), kl.delete(T));
13528
+ const M = kl.get(T);
13529
+ M && (M.root.unmount(), kl.delete(T));
13530
13530
  }
13531
13531
  const r = f.theme === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f.theme || "light";
13532
13532
  $i(r);
13533
- const z = qd.createRoot(o);
13534
- return kl.set(T, { root: z, container: o }), z.render(
13533
+ const C = qd.createRoot(o);
13534
+ return kl.set(T, { root: C, container: o }), C.render(
13535
13535
  Zi.createElement(ki, {
13536
13536
  ...f,
13537
13537
  container: o
13538
13538
  })
13539
13539
  ), console.log("[GlydeChat] Widget rendered in container:", T), {
13540
13540
  destroy() {
13541
- z.unmount(), kl.delete(T), o.innerHTML = "", console.log("[GlydeChat] Rendered widget destroyed");
13541
+ C.unmount(), kl.delete(T), o.innerHTML = "", console.log("[GlydeChat] Rendered widget destroyed");
13542
13542
  },
13543
- update(O) {
13544
- z.render(
13543
+ update(M) {
13544
+ C.render(
13545
13545
  Zi.createElement(ki, {
13546
13546
  ...f,
13547
- ...O,
13547
+ ...M,
13548
13548
  container: o
13549
13549
  })
13550
13550
  );
@@ -13564,16 +13564,24 @@ const kl = /* @__PURE__ */ new Map(), zf = {
13564
13564
  return "__SDK_VERSION__";
13565
13565
  }
13566
13566
  };
13567
- async function Kg(h) {
13567
+ async function Kg(h, f) {
13568
13568
  if (typeof window > "u" || !window.location || !window.location.search) return null;
13569
- const o = new URLSearchParams(window.location.search).get("t");
13570
- if (!o) return null;
13571
- const T = `${h.replace(/\/$/, "")}/api/unity/voice/screen/verify?t=${encodeURIComponent(o)}`;
13569
+ const T = new URLSearchParams(window.location.search).get("t");
13570
+ if (!T) return null;
13571
+ const r = `${h.replace(/\/$/, "")}/api/unity/voice/screen/verify?t=${encodeURIComponent(T)}`, C = {
13572
+ "Content-Type": "application/json",
13573
+ "x-source-domain": "screen.glydetalent.com"
13574
+ };
13575
+ f && (C["x-publishable-key"] = f);
13572
13576
  try {
13573
- const r = await fetch(T, { method: "GET", credentials: "omit" }), z = await r.json();
13574
- return r.ok && z?.success && z?.data?.contextType === "screening" && z?.data?.contextId ? { contextType: "screening", contextId: z.data.contextId } : (console.warn("[GlydeChat] Screen token verify failed:", r.status, z), null);
13575
- } catch (r) {
13576
- return console.warn("[GlydeChat] Screen token verify request failed:", r), null;
13577
+ const M = await fetch(r, {
13578
+ method: "GET",
13579
+ credentials: "omit",
13580
+ headers: C
13581
+ }), B = await M.json();
13582
+ return M.ok && B?.success && B?.data?.contextType === "screening" && B?.data?.contextId ? { contextType: "screening", contextId: B.data.contextId } : (console.warn("[GlydeChat] Screen token verify failed:", M.status, B), null);
13583
+ } catch (M) {
13584
+ return console.warn("[GlydeChat] Screen token verify request failed:", M), null;
13577
13585
  }
13578
13586
  }
13579
13587
  function Jg() {
@@ -13590,26 +13598,26 @@ function Jg() {
13590
13598
  console.log('[GlydeChat] Auto-init disabled via data-auto-init="false"');
13591
13599
  return;
13592
13600
  }
13593
- const o = h.getAttribute("data-publishable-key") || void 0, T = h.getAttribute("data-api-key") || void 0, r = h.getAttribute("data-auth-token") || void 0, z = o || T || r;
13594
- if (!z && !(f === "true")) {
13601
+ const o = h.getAttribute("data-publishable-key") || void 0, T = h.getAttribute("data-api-key") || void 0, r = h.getAttribute("data-auth-token") || void 0, C = o || T || r;
13602
+ if (!C && !(f === "true")) {
13595
13603
  console.log("[GlydeChat] Auto-init skipped: no authentication data attributes found. Call GlydeChat.init() manually.");
13596
13604
  return;
13597
13605
  }
13598
- if (!z) {
13606
+ if (!C) {
13599
13607
  console.warn("[GlydeChat] Auto-init skipped: no authentication provided (publishableKey, apiKey, or authToken required)");
13600
13608
  return;
13601
13609
  }
13602
- const L = h.getAttribute("data-unity-url") || "https://api.glydeunity.com", U = h.getAttribute("data-width"), x = h.getAttribute("data-height"), G = h.getAttribute("data-max-width"), D = h.getAttribute("data-max-height"), N = U || x || G || D ? {
13610
+ const B = h.getAttribute("data-unity-url") || "https://api.glydeunity.com", U = h.getAttribute("data-width"), x = h.getAttribute("data-height"), Y = h.getAttribute("data-max-width"), D = h.getAttribute("data-max-height"), N = U || x || Y || D ? {
13603
13611
  width: U ? isNaN(Number(U)) ? U : Number(U) : void 0,
13604
13612
  height: x ? isNaN(Number(x)) ? x : Number(x) : void 0,
13605
- maxWidth: G ? isNaN(Number(G)) ? G : Number(G) : void 0,
13613
+ maxWidth: Y ? isNaN(Number(Y)) ? Y : Number(Y) : void 0,
13606
13614
  maxHeight: D ? isNaN(Number(D)) ? D : Number(D) : void 0
13607
13615
  } : void 0, $ = {
13608
13616
  publishableKey: o,
13609
13617
  apiKey: T,
13610
13618
  authToken: r,
13611
13619
  contextId: h.getAttribute("data-context-id") || void 0,
13612
- unityBaseUrl: L,
13620
+ unityBaseUrl: B,
13613
13621
  contextType: h.getAttribute("data-context-type") || "screening",
13614
13622
  defaultMode: h.getAttribute("data-default-mode") || "voice",
13615
13623
  position: h.getAttribute("data-position") || "bottom-right",
@@ -13634,7 +13642,7 @@ function Jg() {
13634
13642
  }), zf.init(k);
13635
13643
  }, Z = async () => {
13636
13644
  let k = $;
13637
- const ot = await Kg(L);
13645
+ const ot = await Kg(B, o);
13638
13646
  ot && (k = { ...k, contextType: ot.contextType, contextId: ot.contextId }, console.log("[GlydeChat] Screen token applied: contextType=screening, contextId=", ot.contextId)), I(k);
13639
13647
  }, J = () => {
13640
13648
  Z();