@pagelines/sdk 1.0.195 → 1.0.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-DNyB-umi.js → AgentProvider.vue_vue_type_script_setup_true_lang-DI7Om6xQ.js} +2 -2
- package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-DNyB-umi.js.map → AgentProvider.vue_vue_type_script_setup_true_lang-DI7Om6xQ.js.map} +1 -1
- package/dist/{AgentWidgetInline-BWEl1f8v.js → AgentWidgetInline-06-ZR6qD.js} +2 -2
- package/dist/{AgentWidgetInline-BWEl1f8v.js.map → AgentWidgetInline-06-ZR6qD.js.map} +1 -1
- package/dist/{AgentWidgetModal-BFl5AnWV.js → AgentWidgetModal-Bc1Ssg-J.js} +2 -2
- package/dist/{AgentWidgetModal-BFl5AnWV.js.map → AgentWidgetModal-Bc1Ssg-J.js.map} +1 -1
- package/dist/{AgentWidgetPopup-Co0xymt0.js → AgentWidgetPopup-K3S9LD_r.js} +2 -2
- package/dist/{AgentWidgetPopup-Co0xymt0.js.map → AgentWidgetPopup-K3S9LD_r.js.map} +1 -1
- package/dist/{AgentWrap.vue_vue_type_script_setup_true_lang-KkVoKjUc.js → AgentWrap.vue_vue_type_script_setup_true_lang-ClZyzb6C.js} +277 -273
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-ClZyzb6C.js.map +1 -0
- package/dist/agent/AgentController.d.ts +1 -0
- package/dist/agent.js +3 -3
- package/dist/clients/ChatClient.d.ts +1 -0
- package/dist/sdk.css +1 -1
- package/dist/sdk.js +1 -1
- package/dist/{sdkClient--jt-zUDx.js → sdkClient-C19p9cy6.js} +29 -25
- package/dist/sdkClient-C19p9cy6.js.map +1 -0
- package/dist/widget.js +5 -5
- package/dist/widget.js.map +1 -1
- package/package.json +2 -2
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-KkVoKjUc.js.map +0 -1
- package/dist/sdkClient--jt-zUDx.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var sn = Object.defineProperty;
|
|
2
2
|
var Ss = (n, t, e) => t in n ? sn(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var i = (n, t) => sn(n, "name", { value: t, configurable: !0 });
|
|
4
|
-
var
|
|
4
|
+
var _ = (n, t, e) => Ss(n, typeof t != "symbol" ? t + "" : t, e);
|
|
5
5
|
import { defineComponent as ae, createElementBlock as v, openBlock as b, createElementVNode as p, normalizeClass as z, ref as G, watch as Fe, createBlock as me, TransitionGroup as zn, withCtx as Te, renderSlot as gt, computed as U, createCommentVNode as O, onMounted as Rt, Fragment as Se, renderList as It, withDirectives as Ln, vModelText as Dn, toDisplayString as X, createVNode as te, withKeys as Ts, createTextVNode as Ct, unref as oe, resolveDynamicComponent as Es, nextTick as cr, Transition as on, withModifiers as kr, normalizeStyle as $n, shallowRef as Cs, onUnmounted as Rs } from "vue";
|
|
6
6
|
import { S as lt } from "./socialPlatforms-Ck-b3SnQ.js";
|
|
7
|
-
import { S as On, c as Is, P as Ms } from "./sdkClient
|
|
7
|
+
import { S as On, c as Is, P as Ms } from "./sdkClient-C19p9cy6.js";
|
|
8
8
|
import { getDefaultAvatarUrl as Xt } from "@pagelines/types";
|
|
9
9
|
const _s = { class: "spinner max-w-sm" }, zs = {
|
|
10
10
|
class: "ring-circular h-full w-full origin-center",
|
|
@@ -278,21 +278,21 @@ const Pn = [
|
|
|
278
278
|
], Br = class Br extends On {
|
|
279
279
|
constructor(e) {
|
|
280
280
|
super("ClientAudio", e);
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
281
|
+
_(this, "audioContext");
|
|
282
|
+
_(this, "analyser");
|
|
283
|
+
_(this, "microphone");
|
|
284
|
+
_(this, "audioLevelInterval");
|
|
285
|
+
_(this, "stream");
|
|
286
|
+
_(this, "visibilityChangeHandler");
|
|
287
|
+
_(this, "vadTimeout");
|
|
288
|
+
_(this, "lastSpeechTime", 0);
|
|
289
289
|
// VAD configuration - tuned for voice isolation (ignores background music)
|
|
290
|
-
|
|
290
|
+
_(this, "VAD_SILENCE_THRESHOLD", 0.03);
|
|
291
291
|
// 3% audio level = silence (filters out quiet background noise)
|
|
292
|
-
|
|
292
|
+
_(this, "VAD_SILENCE_DURATION", 1200);
|
|
293
293
|
// 1.2 seconds of silence before considering "stopped speaking"
|
|
294
294
|
// Public reactive state
|
|
295
|
-
|
|
295
|
+
_(this, "audioLevels", G({ inputLevel: 0, outputLevel: 0 }));
|
|
296
296
|
this.setupVisibilityHandler();
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
@@ -429,10 +429,10 @@ const Pn = [
|
|
|
429
429
|
}
|
|
430
430
|
try {
|
|
431
431
|
this.analyser.getByteFrequencyData(s);
|
|
432
|
-
const l = s.reduce((
|
|
432
|
+
const l = s.reduce((h, f) => h + f, 0) / s.length, c = Math.min(l / 128, 1);
|
|
433
433
|
!this.detectVoiceActivity(c) && this.hasUserStoppedSpeaking() && r && (this.logger.info("VAD: User stopped speaking (silence detected)"), r(), this.lastSpeechTime = 0);
|
|
434
|
-
const
|
|
435
|
-
this.audioLevels.value = { inputLevel: c, outputLevel:
|
|
434
|
+
const g = e?.() ? 0.3 : 0;
|
|
435
|
+
this.audioLevels.value = { inputLevel: c, outputLevel: g };
|
|
436
436
|
} catch (l) {
|
|
437
437
|
this.logger.error("Error in audio level monitoring:", l), this.stopAudioLevelMonitoring();
|
|
438
438
|
}
|
|
@@ -545,18 +545,18 @@ i(Ns, "parseButtonTemplate");
|
|
|
545
545
|
const Ur = class Ur extends On {
|
|
546
546
|
constructor(e) {
|
|
547
547
|
super("AgentController", e);
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
548
|
+
_(this, "conversation");
|
|
549
|
+
_(this, "isTextMode", !1);
|
|
550
|
+
_(this, "lastMessage", { hash: "", time: 0 });
|
|
551
|
+
_(this, "clientAudio");
|
|
552
|
+
_(this, "unwatchAudio");
|
|
553
|
+
_(this, "isConnecting", !1);
|
|
554
554
|
// Chat conversation tracking (server-managed persistence)
|
|
555
|
-
|
|
555
|
+
_(this, "conversationId");
|
|
556
556
|
// Voice session tracking (kept for voice flow)
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
557
|
+
_(this, "sessionId");
|
|
558
|
+
_(this, "conversationStartTime");
|
|
559
|
+
_(this, "voiceState", G({
|
|
560
560
|
isActive: !1,
|
|
561
561
|
isConnected: !1,
|
|
562
562
|
isSpeaking: !1,
|
|
@@ -565,14 +565,14 @@ const Ur = class Ur extends On {
|
|
|
565
565
|
transcript: "Tap to begin voice conversation",
|
|
566
566
|
connectionStatus: "disconnected"
|
|
567
567
|
}));
|
|
568
|
-
|
|
568
|
+
_(this, "textState", G({
|
|
569
569
|
isActive: !1,
|
|
570
570
|
isConnected: !1,
|
|
571
571
|
isThinking: !1,
|
|
572
572
|
connectionStatus: "disconnected"
|
|
573
573
|
}));
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
_(this, "agentMode", G("self"));
|
|
575
|
+
_(this, "sharedMessages", G([]));
|
|
576
576
|
this.clientAudio = new xr(e), this.setupModeWatcher();
|
|
577
577
|
}
|
|
578
578
|
get chatEnabled() {
|
|
@@ -733,16 +733,18 @@ Current User:
|
|
|
733
733
|
...this.sharedMessages.value,
|
|
734
734
|
{ id: a, text: "", sender: "agent", timestamp: /* @__PURE__ */ new Date() }
|
|
735
735
|
]);
|
|
736
|
-
const
|
|
737
|
-
|
|
736
|
+
const f = this.sharedMessages.value, k = f[f.length - 1];
|
|
737
|
+
k?.id === a && (k.text += h, this.sharedMessages.value = [...f]);
|
|
738
738
|
}, "onDelta"), c = /* @__PURE__ */ i((h) => {
|
|
739
739
|
h && (this.conversationId = h), this.updateState(this.textState, { isThinking: !1 });
|
|
740
740
|
}, "onDone"), d = /* @__PURE__ */ i((h) => {
|
|
741
|
-
const
|
|
742
|
-
|
|
743
|
-
const
|
|
744
|
-
this.isTransientError(h) ? (this.addMessage(
|
|
745
|
-
}, "onError")
|
|
741
|
+
const f = this.sharedMessages.value, k = f[f.length - 1];
|
|
742
|
+
k?.id === a && !k.text && (this.sharedMessages.value = f.slice(0, -1));
|
|
743
|
+
const I = this.mapChatError(h);
|
|
744
|
+
this.isTransientError(h) ? (this.addMessage(I, "system"), this.updateState(this.textState, { isThinking: !1 })) : this.handleError(new Error(I), !1);
|
|
745
|
+
}, "onError"), g = /* @__PURE__ */ i((h) => {
|
|
746
|
+
this.addMessage(h, "system");
|
|
747
|
+
}, "onStatus");
|
|
746
748
|
try {
|
|
747
749
|
if (r)
|
|
748
750
|
await r({
|
|
@@ -751,7 +753,8 @@ Current User:
|
|
|
751
753
|
history: this.buildHistory(),
|
|
752
754
|
onDelta: l,
|
|
753
755
|
onDone: c,
|
|
754
|
-
onError: d
|
|
756
|
+
onError: d,
|
|
757
|
+
onStatus: g
|
|
755
758
|
});
|
|
756
759
|
else {
|
|
757
760
|
const { context: h } = this.getDynamicSettings();
|
|
@@ -764,7 +767,8 @@ Current User:
|
|
|
764
767
|
context: h || void 0,
|
|
765
768
|
onDelta: l,
|
|
766
769
|
onDone: c,
|
|
767
|
-
onError: d
|
|
770
|
+
onError: d,
|
|
771
|
+
onStatus: g
|
|
768
772
|
});
|
|
769
773
|
}
|
|
770
774
|
} catch (h) {
|
|
@@ -896,13 +900,13 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
896
900
|
const e = n, r = t, s = G([]), o = G(Array.from({ length: e.length }).fill("")), a = G(!1);
|
|
897
901
|
Rt(() => {
|
|
898
902
|
e.modelValue && (o.value = e.modelValue.split("").slice(0, e.length)), e.focusFirst && !("ontouchstart" in window) && s.value[0]?.focus();
|
|
899
|
-
}), Fe(() => e.modelValue, (
|
|
900
|
-
o.value =
|
|
903
|
+
}), Fe(() => e.modelValue, (h) => {
|
|
904
|
+
o.value = h ? h.split("").slice(0, e.length) : Array.from({ length: e.length }).fill("");
|
|
901
905
|
}), Fe(o, () => {
|
|
902
|
-
const
|
|
903
|
-
r("update:modelValue",
|
|
906
|
+
const h = o.value.filter(Boolean).join("");
|
|
907
|
+
r("update:modelValue", h), h.length === e.length && r("autoSubmit", h);
|
|
904
908
|
}, { deep: !0 });
|
|
905
|
-
function l(
|
|
909
|
+
function l(h, f) {
|
|
906
910
|
f.preventDefault(), a.value = !0;
|
|
907
911
|
const k = (f.clipboardData?.getData("text") || "").replace(/\D/g, "");
|
|
908
912
|
if (k.length === e.length)
|
|
@@ -910,47 +914,47 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
910
914
|
s.value[e.length - 1]?.focus(), a.value = !1;
|
|
911
915
|
}, 10);
|
|
912
916
|
else {
|
|
913
|
-
const
|
|
914
|
-
k.split("").slice(0, e.length -
|
|
915
|
-
|
|
916
|
-
}), o.value =
|
|
917
|
-
const E = Math.min(
|
|
917
|
+
const I = [...o.value];
|
|
918
|
+
k.split("").slice(0, e.length - h).forEach((N, K) => {
|
|
919
|
+
I[h + K] = N;
|
|
920
|
+
}), o.value = I;
|
|
921
|
+
const E = Math.min(h + k.length, e.length - 1);
|
|
918
922
|
setTimeout(() => {
|
|
919
923
|
s.value[E]?.focus(), a.value = !1;
|
|
920
924
|
}, 10);
|
|
921
925
|
}
|
|
922
926
|
}
|
|
923
927
|
i(l, "onPaste");
|
|
924
|
-
function c(
|
|
928
|
+
function c(h, f) {
|
|
925
929
|
const k = f.target.value.slice(-1).replace(/\D/g, "");
|
|
926
|
-
o.value[
|
|
930
|
+
o.value[h] = k, k && h < e.length - 1 && s.value[h + 1]?.focus();
|
|
927
931
|
}
|
|
928
932
|
i(c, "onInput");
|
|
929
|
-
function d(
|
|
930
|
-
f.key === "Backspace" ? (f.preventDefault(), o.value[
|
|
933
|
+
function d(h, f) {
|
|
934
|
+
f.key === "Backspace" ? (f.preventDefault(), o.value[h] = "", h > 0 && s.value[h - 1]?.focus()) : f.key === "ArrowLeft" && h > 0 ? s.value[h - 1]?.focus() : f.key === "ArrowRight" && h < e.length - 1 && s.value[h + 1]?.focus();
|
|
931
935
|
}
|
|
932
936
|
i(d, "onKeydown");
|
|
933
|
-
function h
|
|
934
|
-
if (s.value[
|
|
935
|
-
for (let f =
|
|
937
|
+
function g(h) {
|
|
938
|
+
if (s.value[h]?.select(), !a.value && o.value[h])
|
|
939
|
+
for (let f = h; f < e.length; f++)
|
|
936
940
|
o.value[f] = "";
|
|
937
941
|
}
|
|
938
|
-
return i(
|
|
942
|
+
return i(g, "onFocus"), (h, f) => (b(), v("div", Vs, [
|
|
939
943
|
(b(!0), v(Se, null, It(n.length, (k) => Ln((b(), v("input", {
|
|
940
944
|
key: k,
|
|
941
945
|
ref_for: !0,
|
|
942
|
-
ref: /* @__PURE__ */ i((
|
|
943
|
-
"onUpdate:modelValue": /* @__PURE__ */ i((
|
|
946
|
+
ref: /* @__PURE__ */ i((I) => s.value[k - 1] = I, "ref"),
|
|
947
|
+
"onUpdate:modelValue": /* @__PURE__ */ i((I) => o.value[k - 1] = I, "onUpdate:modelValue"),
|
|
944
948
|
type: "text",
|
|
945
949
|
inputmode: "numeric",
|
|
946
950
|
autocomplete: "one-time-code",
|
|
947
951
|
class: "size-11 text-center font-mono text-theme-900 bg-white border border-white rounded-lg focus:outline-none transition-all",
|
|
948
952
|
style: { "font-size": "16px" },
|
|
949
953
|
maxlength: "1",
|
|
950
|
-
onInput: /* @__PURE__ */ i((
|
|
951
|
-
onKeydown: /* @__PURE__ */ i((
|
|
952
|
-
onPaste: /* @__PURE__ */ i((
|
|
953
|
-
onFocus: /* @__PURE__ */ i((
|
|
954
|
+
onInput: /* @__PURE__ */ i((I) => c(k - 1, I), "onInput"),
|
|
955
|
+
onKeydown: /* @__PURE__ */ i((I) => d(k - 1, I), "onKeydown"),
|
|
956
|
+
onPaste: /* @__PURE__ */ i((I) => l(k - 1, I), "onPaste"),
|
|
957
|
+
onFocus: /* @__PURE__ */ i((I) => g(k - 1), "onFocus")
|
|
954
958
|
}, null, 40, Gs)), [
|
|
955
959
|
[Dn, o.value[k - 1]]
|
|
956
960
|
])), 128))
|
|
@@ -1165,9 +1169,9 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
1165
1169
|
return;
|
|
1166
1170
|
const l = t === 0 ? n.join(Wt) : n.slice(t).join(Wt), c = a.length;
|
|
1167
1171
|
for (let d = 0; d < c; d++) {
|
|
1168
|
-
const
|
|
1169
|
-
if (
|
|
1170
|
-
return
|
|
1172
|
+
const g = a[d];
|
|
1173
|
+
if (g.validator(l))
|
|
1174
|
+
return g.classGroupId;
|
|
1171
1175
|
}
|
|
1172
1176
|
}, "getGroupRecursive"), io = /* @__PURE__ */ i((n) => n.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1173
1177
|
const t = n.slice(1, -1), e = t.indexOf(":"), r = t.slice(0, e);
|
|
@@ -1263,8 +1267,8 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
1263
1267
|
let r = /* @__PURE__ */ i((s) => {
|
|
1264
1268
|
const o = [];
|
|
1265
1269
|
let a = 0, l = 0, c = 0, d;
|
|
1266
|
-
const
|
|
1267
|
-
for (let E = 0; E <
|
|
1270
|
+
const g = s.length;
|
|
1271
|
+
for (let E = 0; E < g; E++) {
|
|
1268
1272
|
const N = s[E];
|
|
1269
1273
|
if (a === 0 && l === 0) {
|
|
1270
1274
|
if (N === dn) {
|
|
@@ -1278,17 +1282,17 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
1278
1282
|
}
|
|
1279
1283
|
N === "[" ? a++ : N === "]" ? a-- : N === "(" ? l++ : N === ")" && l--;
|
|
1280
1284
|
}
|
|
1281
|
-
const
|
|
1282
|
-
let f =
|
|
1283
|
-
|
|
1285
|
+
const h = o.length === 0 ? s : s.slice(c);
|
|
1286
|
+
let f = h, k = !1;
|
|
1287
|
+
h.endsWith(yr) ? (f = h.slice(0, -1), k = !0) : (
|
|
1284
1288
|
/**
|
|
1285
1289
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
1286
1290
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
1287
1291
|
*/
|
|
1288
|
-
|
|
1292
|
+
h.startsWith(yr) && (f = h.slice(1), k = !0)
|
|
1289
1293
|
);
|
|
1290
|
-
const
|
|
1291
|
-
return hn(o, k, f,
|
|
1294
|
+
const I = d && d > c ? d - c : void 0;
|
|
1295
|
+
return hn(o, k, f, I);
|
|
1292
1296
|
}, "parseClassName");
|
|
1293
1297
|
if (t) {
|
|
1294
1298
|
const s = t + dn, o = r;
|
|
@@ -1329,25 +1333,25 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
1329
1333
|
} = t, a = [], l = n.trim().split(yo);
|
|
1330
1334
|
let c = "";
|
|
1331
1335
|
for (let d = l.length - 1; d >= 0; d -= 1) {
|
|
1332
|
-
const
|
|
1333
|
-
isExternal:
|
|
1336
|
+
const g = l[d], {
|
|
1337
|
+
isExternal: h,
|
|
1334
1338
|
modifiers: f,
|
|
1335
1339
|
hasImportantModifier: k,
|
|
1336
|
-
baseClassName:
|
|
1340
|
+
baseClassName: I,
|
|
1337
1341
|
maybePostfixModifierPosition: E
|
|
1338
|
-
} = e(
|
|
1339
|
-
if (
|
|
1340
|
-
c =
|
|
1342
|
+
} = e(g);
|
|
1343
|
+
if (h) {
|
|
1344
|
+
c = g + (c.length > 0 ? " " + c : c);
|
|
1341
1345
|
continue;
|
|
1342
1346
|
}
|
|
1343
|
-
let N = !!E, K = r(N ?
|
|
1347
|
+
let N = !!E, K = r(N ? I.substring(0, E) : I);
|
|
1344
1348
|
if (!K) {
|
|
1345
1349
|
if (!N) {
|
|
1346
|
-
c =
|
|
1350
|
+
c = g + (c.length > 0 ? " " + c : c);
|
|
1347
1351
|
continue;
|
|
1348
1352
|
}
|
|
1349
|
-
if (K = r(
|
|
1350
|
-
c =
|
|
1353
|
+
if (K = r(I), !K) {
|
|
1354
|
+
c = g + (c.length > 0 ? " " + c : c);
|
|
1351
1355
|
continue;
|
|
1352
1356
|
}
|
|
1353
1357
|
N = !1;
|
|
@@ -1361,7 +1365,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
1361
1365
|
const re = B[H];
|
|
1362
1366
|
a.push(x + re);
|
|
1363
1367
|
}
|
|
1364
|
-
c =
|
|
1368
|
+
c = g + (c.length > 0 ? " " + c : c);
|
|
1365
1369
|
}
|
|
1366
1370
|
return c;
|
|
1367
1371
|
}, "mergeClassList"), Ao = /* @__PURE__ */ i((...n) => {
|
|
@@ -1379,14 +1383,14 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
1379
1383
|
}, "toValue"), So = /* @__PURE__ */ i((n, ...t) => {
|
|
1380
1384
|
let e, r, s, o;
|
|
1381
1385
|
const a = /* @__PURE__ */ i((c) => {
|
|
1382
|
-
const d = t.reduce((
|
|
1386
|
+
const d = t.reduce((g, h) => h(g), n());
|
|
1383
1387
|
return e = vo(d), r = e.cache.get, s = e.cache.set, o = l, l(c);
|
|
1384
1388
|
}, "initTailwindMerge"), l = /* @__PURE__ */ i((c) => {
|
|
1385
1389
|
const d = r(c);
|
|
1386
1390
|
if (d)
|
|
1387
1391
|
return d;
|
|
1388
|
-
const
|
|
1389
|
-
return s(c,
|
|
1392
|
+
const g = wo(c, e);
|
|
1393
|
+
return s(c, g), g;
|
|
1390
1394
|
}, "tailwindMerge");
|
|
1391
1395
|
return o = a, (...c) => o(Ao(...c));
|
|
1392
1396
|
}, "createTailwindMerge"), To = [], ee = /* @__PURE__ */ i((n) => {
|
|
@@ -1404,7 +1408,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
1404
1408
|
const r = Gn.exec(n);
|
|
1405
1409
|
return r ? r[1] ? t(r[1]) : e : !1;
|
|
1406
1410
|
}, "getIsArbitraryVariable"), Wn = /* @__PURE__ */ i((n) => n === "position" || n === "percentage", "isLabelPosition"), qn = /* @__PURE__ */ i((n) => n === "image" || n === "url", "isLabelImage"), Yn = /* @__PURE__ */ i((n) => n === "length" || n === "size" || n === "bg-size", "isLabelSize"), Zn = /* @__PURE__ */ i((n) => n === "length", "isLabelLength"), Go = /* @__PURE__ */ i((n) => n === "number", "isLabelNumber"), Xn = /* @__PURE__ */ i((n) => n === "family-name", "isLabelFamilyName"), Kn = /* @__PURE__ */ i((n) => n === "number" || n === "weight", "isLabelWeight"), Qn = /* @__PURE__ */ i((n) => n === "shadow", "isLabelShadow"), jo = /* @__PURE__ */ i(() => {
|
|
1407
|
-
const n = ee("color"), t = ee("font"), e = ee("text"), r = ee("font-weight"), s = ee("tracking"), o = ee("leading"), a = ee("breakpoint"), l = ee("container"), c = ee("spacing"), d = ee("radius"),
|
|
1411
|
+
const n = ee("color"), t = ee("font"), e = ee("text"), r = ee("font-weight"), s = ee("tracking"), o = ee("leading"), a = ee("breakpoint"), l = ee("container"), c = ee("spacing"), d = ee("radius"), g = ee("shadow"), h = ee("inset-shadow"), f = ee("text-shadow"), k = ee("drop-shadow"), I = ee("blur"), E = ee("perspective"), N = ee("aspect"), K = ee("ease"), y = ee("animate"), x = /* @__PURE__ */ i(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), w = /* @__PURE__ */ i(() => [
|
|
1408
1412
|
"center",
|
|
1409
1413
|
"top",
|
|
1410
1414
|
"bottom",
|
|
@@ -1424,7 +1428,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
1424
1428
|
"left-bottom"
|
|
1425
1429
|
], "scalePosition"), B = /* @__PURE__ */ i(() => [...w(), S, A], "scalePositionWithArbitrary"), H = /* @__PURE__ */ i(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), re = /* @__PURE__ */ i(() => ["auto", "contain", "none"], "scaleOverscroll"), C = /* @__PURE__ */ i(() => [S, A, c], "scaleUnambiguousSpacing"), Q = /* @__PURE__ */ i(() => [Oe, "full", "auto", ...C()], "scaleInset"), _t = /* @__PURE__ */ i(() => [Pe, "none", "subgrid", S, A], "scaleGridTemplateColsRows"), ne = /* @__PURE__ */ i(() => ["auto", {
|
|
1426
1430
|
span: ["full", Pe, S, A]
|
|
1427
|
-
}, Pe, S, A], "scaleGridColRowStartAndEnd"), Le = /* @__PURE__ */ i(() => [Pe, "auto", S, A], "scaleGridColRowStartOrEnd"), Je = /* @__PURE__ */ i(() => ["auto", "min", "max", "fr", S, A], "scaleGridAutoColsRows"), Ve = /* @__PURE__ */ i(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), De = /* @__PURE__ */ i(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), ge = /* @__PURE__ */ i(() => ["auto", ...C()], "scaleMargin"), Ee = /* @__PURE__ */ i(() => [Oe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], "scaleSizing"), et = /* @__PURE__ */ i(() => [Oe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], "scaleSizingInline"), pt = /* @__PURE__ */ i(() => [Oe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], "scaleSizingBlock"),
|
|
1431
|
+
}, Pe, S, A], "scaleGridColRowStartAndEnd"), Le = /* @__PURE__ */ i(() => [Pe, "auto", S, A], "scaleGridColRowStartOrEnd"), Je = /* @__PURE__ */ i(() => ["auto", "min", "max", "fr", S, A], "scaleGridAutoColsRows"), Ve = /* @__PURE__ */ i(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), De = /* @__PURE__ */ i(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), ge = /* @__PURE__ */ i(() => ["auto", ...C()], "scaleMargin"), Ee = /* @__PURE__ */ i(() => [Oe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], "scaleSizing"), et = /* @__PURE__ */ i(() => [Oe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], "scaleSizingInline"), pt = /* @__PURE__ */ i(() => [Oe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], "scaleSizingBlock"), M = /* @__PURE__ */ i(() => [n, S, A], "scaleColor"), j = /* @__PURE__ */ i(() => [...w(), fn, pn, {
|
|
1428
1432
|
position: [S, A]
|
|
1429
1433
|
}], "scaleBgPosition"), ft = /* @__PURE__ */ i(() => ["no-repeat", {
|
|
1430
1434
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -1442,7 +1446,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
1442
1446
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1443
1447
|
"",
|
|
1444
1448
|
"none",
|
|
1445
|
-
|
|
1449
|
+
I,
|
|
1446
1450
|
S,
|
|
1447
1451
|
A
|
|
1448
1452
|
], "scaleBlur"), Ge = /* @__PURE__ */ i(() => ["none", L, S, A], "scaleRotate"), je = /* @__PURE__ */ i(() => ["none", L, S, A], "scaleScale"), xe = /* @__PURE__ */ i(() => [L, S, A], "scaleSkew"), Re = /* @__PURE__ */ i(() => [Oe, "full", ...C()], "scaleTranslate");
|
|
@@ -2363,14 +2367,14 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2363
2367
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2364
2368
|
*/
|
|
2365
2369
|
"placeholder-color": [{
|
|
2366
|
-
placeholder:
|
|
2370
|
+
placeholder: M()
|
|
2367
2371
|
}],
|
|
2368
2372
|
/**
|
|
2369
2373
|
* Text Color
|
|
2370
2374
|
* @see https://tailwindcss.com/docs/text-color
|
|
2371
2375
|
*/
|
|
2372
2376
|
"text-color": [{
|
|
2373
|
-
text:
|
|
2377
|
+
text: M()
|
|
2374
2378
|
}],
|
|
2375
2379
|
/**
|
|
2376
2380
|
* Text Decoration
|
|
@@ -2396,7 +2400,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2396
2400
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2397
2401
|
*/
|
|
2398
2402
|
"text-decoration-color": [{
|
|
2399
|
-
decoration:
|
|
2403
|
+
decoration: M()
|
|
2400
2404
|
}],
|
|
2401
2405
|
/**
|
|
2402
2406
|
* Text Underline Offset
|
|
@@ -2534,7 +2538,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2534
2538
|
* @see https://tailwindcss.com/docs/background-color
|
|
2535
2539
|
*/
|
|
2536
2540
|
"bg-color": [{
|
|
2537
|
-
bg:
|
|
2541
|
+
bg: M()
|
|
2538
2542
|
}],
|
|
2539
2543
|
/**
|
|
2540
2544
|
* Gradient Color Stops From Position
|
|
@@ -2562,21 +2566,21 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2562
2566
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2563
2567
|
*/
|
|
2564
2568
|
"gradient-from": [{
|
|
2565
|
-
from:
|
|
2569
|
+
from: M()
|
|
2566
2570
|
}],
|
|
2567
2571
|
/**
|
|
2568
2572
|
* Gradient Color Stops Via
|
|
2569
2573
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2570
2574
|
*/
|
|
2571
2575
|
"gradient-via": [{
|
|
2572
|
-
via:
|
|
2576
|
+
via: M()
|
|
2573
2577
|
}],
|
|
2574
2578
|
/**
|
|
2575
2579
|
* Gradient Color Stops To
|
|
2576
2580
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2577
2581
|
*/
|
|
2578
2582
|
"gradient-to": [{
|
|
2579
|
-
to:
|
|
2583
|
+
to: M()
|
|
2580
2584
|
}],
|
|
2581
2585
|
// ---------------
|
|
2582
2586
|
// --- Borders ---
|
|
@@ -2806,84 +2810,84 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2806
2810
|
* @see https://tailwindcss.com/docs/border-color
|
|
2807
2811
|
*/
|
|
2808
2812
|
"border-color": [{
|
|
2809
|
-
border:
|
|
2813
|
+
border: M()
|
|
2810
2814
|
}],
|
|
2811
2815
|
/**
|
|
2812
2816
|
* Border Color Inline
|
|
2813
2817
|
* @see https://tailwindcss.com/docs/border-color
|
|
2814
2818
|
*/
|
|
2815
2819
|
"border-color-x": [{
|
|
2816
|
-
"border-x":
|
|
2820
|
+
"border-x": M()
|
|
2817
2821
|
}],
|
|
2818
2822
|
/**
|
|
2819
2823
|
* Border Color Block
|
|
2820
2824
|
* @see https://tailwindcss.com/docs/border-color
|
|
2821
2825
|
*/
|
|
2822
2826
|
"border-color-y": [{
|
|
2823
|
-
"border-y":
|
|
2827
|
+
"border-y": M()
|
|
2824
2828
|
}],
|
|
2825
2829
|
/**
|
|
2826
2830
|
* Border Color Inline Start
|
|
2827
2831
|
* @see https://tailwindcss.com/docs/border-color
|
|
2828
2832
|
*/
|
|
2829
2833
|
"border-color-s": [{
|
|
2830
|
-
"border-s":
|
|
2834
|
+
"border-s": M()
|
|
2831
2835
|
}],
|
|
2832
2836
|
/**
|
|
2833
2837
|
* Border Color Inline End
|
|
2834
2838
|
* @see https://tailwindcss.com/docs/border-color
|
|
2835
2839
|
*/
|
|
2836
2840
|
"border-color-e": [{
|
|
2837
|
-
"border-e":
|
|
2841
|
+
"border-e": M()
|
|
2838
2842
|
}],
|
|
2839
2843
|
/**
|
|
2840
2844
|
* Border Color Block Start
|
|
2841
2845
|
* @see https://tailwindcss.com/docs/border-color
|
|
2842
2846
|
*/
|
|
2843
2847
|
"border-color-bs": [{
|
|
2844
|
-
"border-bs":
|
|
2848
|
+
"border-bs": M()
|
|
2845
2849
|
}],
|
|
2846
2850
|
/**
|
|
2847
2851
|
* Border Color Block End
|
|
2848
2852
|
* @see https://tailwindcss.com/docs/border-color
|
|
2849
2853
|
*/
|
|
2850
2854
|
"border-color-be": [{
|
|
2851
|
-
"border-be":
|
|
2855
|
+
"border-be": M()
|
|
2852
2856
|
}],
|
|
2853
2857
|
/**
|
|
2854
2858
|
* Border Color Top
|
|
2855
2859
|
* @see https://tailwindcss.com/docs/border-color
|
|
2856
2860
|
*/
|
|
2857
2861
|
"border-color-t": [{
|
|
2858
|
-
"border-t":
|
|
2862
|
+
"border-t": M()
|
|
2859
2863
|
}],
|
|
2860
2864
|
/**
|
|
2861
2865
|
* Border Color Right
|
|
2862
2866
|
* @see https://tailwindcss.com/docs/border-color
|
|
2863
2867
|
*/
|
|
2864
2868
|
"border-color-r": [{
|
|
2865
|
-
"border-r":
|
|
2869
|
+
"border-r": M()
|
|
2866
2870
|
}],
|
|
2867
2871
|
/**
|
|
2868
2872
|
* Border Color Bottom
|
|
2869
2873
|
* @see https://tailwindcss.com/docs/border-color
|
|
2870
2874
|
*/
|
|
2871
2875
|
"border-color-b": [{
|
|
2872
|
-
"border-b":
|
|
2876
|
+
"border-b": M()
|
|
2873
2877
|
}],
|
|
2874
2878
|
/**
|
|
2875
2879
|
* Border Color Left
|
|
2876
2880
|
* @see https://tailwindcss.com/docs/border-color
|
|
2877
2881
|
*/
|
|
2878
2882
|
"border-color-l": [{
|
|
2879
|
-
"border-l":
|
|
2883
|
+
"border-l": M()
|
|
2880
2884
|
}],
|
|
2881
2885
|
/**
|
|
2882
2886
|
* Divide Color
|
|
2883
2887
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2884
2888
|
*/
|
|
2885
2889
|
"divide-color": [{
|
|
2886
|
-
divide:
|
|
2890
|
+
divide: M()
|
|
2887
2891
|
}],
|
|
2888
2892
|
/**
|
|
2889
2893
|
* Outline Style
|
|
@@ -2911,7 +2915,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2911
2915
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2912
2916
|
*/
|
|
2913
2917
|
"outline-color": [{
|
|
2914
|
-
outline:
|
|
2918
|
+
outline: M()
|
|
2915
2919
|
}],
|
|
2916
2920
|
// ---------------
|
|
2917
2921
|
// --- Effects ---
|
|
@@ -2925,7 +2929,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2925
2929
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2926
2930
|
"",
|
|
2927
2931
|
"none",
|
|
2928
|
-
|
|
2932
|
+
g,
|
|
2929
2933
|
Bt,
|
|
2930
2934
|
Nt
|
|
2931
2935
|
]
|
|
@@ -2935,21 +2939,21 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2935
2939
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2936
2940
|
*/
|
|
2937
2941
|
"shadow-color": [{
|
|
2938
|
-
shadow:
|
|
2942
|
+
shadow: M()
|
|
2939
2943
|
}],
|
|
2940
2944
|
/**
|
|
2941
2945
|
* Inset Box Shadow
|
|
2942
2946
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2943
2947
|
*/
|
|
2944
2948
|
"inset-shadow": [{
|
|
2945
|
-
"inset-shadow": ["none",
|
|
2949
|
+
"inset-shadow": ["none", h, Bt, Nt]
|
|
2946
2950
|
}],
|
|
2947
2951
|
/**
|
|
2948
2952
|
* Inset Box Shadow Color
|
|
2949
2953
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2950
2954
|
*/
|
|
2951
2955
|
"inset-shadow-color": [{
|
|
2952
|
-
"inset-shadow":
|
|
2956
|
+
"inset-shadow": M()
|
|
2953
2957
|
}],
|
|
2954
2958
|
/**
|
|
2955
2959
|
* Ring Width
|
|
@@ -2970,7 +2974,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2970
2974
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2971
2975
|
*/
|
|
2972
2976
|
"ring-color": [{
|
|
2973
|
-
ring:
|
|
2977
|
+
ring: M()
|
|
2974
2978
|
}],
|
|
2975
2979
|
/**
|
|
2976
2980
|
* Ring Offset Width
|
|
@@ -2988,7 +2992,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
2988
2992
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2989
2993
|
*/
|
|
2990
2994
|
"ring-offset-color": [{
|
|
2991
|
-
"ring-offset":
|
|
2995
|
+
"ring-offset": M()
|
|
2992
2996
|
}],
|
|
2993
2997
|
/**
|
|
2994
2998
|
* Inset Ring Width
|
|
@@ -3002,7 +3006,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3002
3006
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
3003
3007
|
*/
|
|
3004
3008
|
"inset-ring-color": [{
|
|
3005
|
-
"inset-ring":
|
|
3009
|
+
"inset-ring": M()
|
|
3006
3010
|
}],
|
|
3007
3011
|
/**
|
|
3008
3012
|
* Text Shadow
|
|
@@ -3016,7 +3020,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3016
3020
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
3017
3021
|
*/
|
|
3018
3022
|
"text-shadow-color": [{
|
|
3019
|
-
"text-shadow":
|
|
3023
|
+
"text-shadow": M()
|
|
3020
3024
|
}],
|
|
3021
3025
|
/**
|
|
3022
3026
|
* Opacity
|
|
@@ -3067,10 +3071,10 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3067
3071
|
"mask-linear-to": q()
|
|
3068
3072
|
}],
|
|
3069
3073
|
"mask-image-linear-from-color": [{
|
|
3070
|
-
"mask-linear-from":
|
|
3074
|
+
"mask-linear-from": M()
|
|
3071
3075
|
}],
|
|
3072
3076
|
"mask-image-linear-to-color": [{
|
|
3073
|
-
"mask-linear-to":
|
|
3077
|
+
"mask-linear-to": M()
|
|
3074
3078
|
}],
|
|
3075
3079
|
"mask-image-t-from-pos": [{
|
|
3076
3080
|
"mask-t-from": q()
|
|
@@ -3079,10 +3083,10 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3079
3083
|
"mask-t-to": q()
|
|
3080
3084
|
}],
|
|
3081
3085
|
"mask-image-t-from-color": [{
|
|
3082
|
-
"mask-t-from":
|
|
3086
|
+
"mask-t-from": M()
|
|
3083
3087
|
}],
|
|
3084
3088
|
"mask-image-t-to-color": [{
|
|
3085
|
-
"mask-t-to":
|
|
3089
|
+
"mask-t-to": M()
|
|
3086
3090
|
}],
|
|
3087
3091
|
"mask-image-r-from-pos": [{
|
|
3088
3092
|
"mask-r-from": q()
|
|
@@ -3091,10 +3095,10 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3091
3095
|
"mask-r-to": q()
|
|
3092
3096
|
}],
|
|
3093
3097
|
"mask-image-r-from-color": [{
|
|
3094
|
-
"mask-r-from":
|
|
3098
|
+
"mask-r-from": M()
|
|
3095
3099
|
}],
|
|
3096
3100
|
"mask-image-r-to-color": [{
|
|
3097
|
-
"mask-r-to":
|
|
3101
|
+
"mask-r-to": M()
|
|
3098
3102
|
}],
|
|
3099
3103
|
"mask-image-b-from-pos": [{
|
|
3100
3104
|
"mask-b-from": q()
|
|
@@ -3103,10 +3107,10 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3103
3107
|
"mask-b-to": q()
|
|
3104
3108
|
}],
|
|
3105
3109
|
"mask-image-b-from-color": [{
|
|
3106
|
-
"mask-b-from":
|
|
3110
|
+
"mask-b-from": M()
|
|
3107
3111
|
}],
|
|
3108
3112
|
"mask-image-b-to-color": [{
|
|
3109
|
-
"mask-b-to":
|
|
3113
|
+
"mask-b-to": M()
|
|
3110
3114
|
}],
|
|
3111
3115
|
"mask-image-l-from-pos": [{
|
|
3112
3116
|
"mask-l-from": q()
|
|
@@ -3115,10 +3119,10 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3115
3119
|
"mask-l-to": q()
|
|
3116
3120
|
}],
|
|
3117
3121
|
"mask-image-l-from-color": [{
|
|
3118
|
-
"mask-l-from":
|
|
3122
|
+
"mask-l-from": M()
|
|
3119
3123
|
}],
|
|
3120
3124
|
"mask-image-l-to-color": [{
|
|
3121
|
-
"mask-l-to":
|
|
3125
|
+
"mask-l-to": M()
|
|
3122
3126
|
}],
|
|
3123
3127
|
"mask-image-x-from-pos": [{
|
|
3124
3128
|
"mask-x-from": q()
|
|
@@ -3127,10 +3131,10 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3127
3131
|
"mask-x-to": q()
|
|
3128
3132
|
}],
|
|
3129
3133
|
"mask-image-x-from-color": [{
|
|
3130
|
-
"mask-x-from":
|
|
3134
|
+
"mask-x-from": M()
|
|
3131
3135
|
}],
|
|
3132
3136
|
"mask-image-x-to-color": [{
|
|
3133
|
-
"mask-x-to":
|
|
3137
|
+
"mask-x-to": M()
|
|
3134
3138
|
}],
|
|
3135
3139
|
"mask-image-y-from-pos": [{
|
|
3136
3140
|
"mask-y-from": q()
|
|
@@ -3139,10 +3143,10 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3139
3143
|
"mask-y-to": q()
|
|
3140
3144
|
}],
|
|
3141
3145
|
"mask-image-y-from-color": [{
|
|
3142
|
-
"mask-y-from":
|
|
3146
|
+
"mask-y-from": M()
|
|
3143
3147
|
}],
|
|
3144
3148
|
"mask-image-y-to-color": [{
|
|
3145
|
-
"mask-y-to":
|
|
3149
|
+
"mask-y-to": M()
|
|
3146
3150
|
}],
|
|
3147
3151
|
"mask-image-radial": [{
|
|
3148
3152
|
"mask-radial": [S, A]
|
|
@@ -3154,10 +3158,10 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3154
3158
|
"mask-radial-to": q()
|
|
3155
3159
|
}],
|
|
3156
3160
|
"mask-image-radial-from-color": [{
|
|
3157
|
-
"mask-radial-from":
|
|
3161
|
+
"mask-radial-from": M()
|
|
3158
3162
|
}],
|
|
3159
3163
|
"mask-image-radial-to-color": [{
|
|
3160
|
-
"mask-radial-to":
|
|
3164
|
+
"mask-radial-to": M()
|
|
3161
3165
|
}],
|
|
3162
3166
|
"mask-image-radial-shape": [{
|
|
3163
3167
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -3181,10 +3185,10 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3181
3185
|
"mask-conic-to": q()
|
|
3182
3186
|
}],
|
|
3183
3187
|
"mask-image-conic-from-color": [{
|
|
3184
|
-
"mask-conic-from":
|
|
3188
|
+
"mask-conic-from": M()
|
|
3185
3189
|
}],
|
|
3186
3190
|
"mask-image-conic-to-color": [{
|
|
3187
|
-
"mask-conic-to":
|
|
3191
|
+
"mask-conic-to": M()
|
|
3188
3192
|
}],
|
|
3189
3193
|
/**
|
|
3190
3194
|
* Mask Mode
|
|
@@ -3291,7 +3295,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3291
3295
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
3292
3296
|
*/
|
|
3293
3297
|
"drop-shadow-color": [{
|
|
3294
|
-
"drop-shadow":
|
|
3298
|
+
"drop-shadow": M()
|
|
3295
3299
|
}],
|
|
3296
3300
|
/**
|
|
3297
3301
|
* Grayscale
|
|
@@ -3662,7 +3666,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3662
3666
|
* @see https://tailwindcss.com/docs/accent-color
|
|
3663
3667
|
*/
|
|
3664
3668
|
accent: [{
|
|
3665
|
-
accent:
|
|
3669
|
+
accent: M()
|
|
3666
3670
|
}],
|
|
3667
3671
|
/**
|
|
3668
3672
|
* Appearance
|
|
@@ -3676,7 +3680,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3676
3680
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
3677
3681
|
*/
|
|
3678
3682
|
"caret-color": [{
|
|
3679
|
-
caret:
|
|
3683
|
+
caret: M()
|
|
3680
3684
|
}],
|
|
3681
3685
|
/**
|
|
3682
3686
|
* Color Scheme
|
|
@@ -3950,7 +3954,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3950
3954
|
* @see https://tailwindcss.com/docs/fill
|
|
3951
3955
|
*/
|
|
3952
3956
|
fill: [{
|
|
3953
|
-
fill: ["none", ...
|
|
3957
|
+
fill: ["none", ...M()]
|
|
3954
3958
|
}],
|
|
3955
3959
|
/**
|
|
3956
3960
|
* Stroke Width
|
|
@@ -3964,7 +3968,7 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
3964
3968
|
* @see https://tailwindcss.com/docs/stroke
|
|
3965
3969
|
*/
|
|
3966
3970
|
stroke: [{
|
|
3967
|
-
stroke: ["none", ...
|
|
3971
|
+
stroke: ["none", ...M()]
|
|
3968
3972
|
}],
|
|
3969
3973
|
// ---------------------
|
|
3970
3974
|
// --- Accessibility ---
|
|
@@ -4355,22 +4359,22 @@ const Bs = /* @__PURE__ */ ae({
|
|
|
4355
4359
|
md: "px-4 py-2 text-sm",
|
|
4356
4360
|
lg: "px-6 py-3 text-base",
|
|
4357
4361
|
xl: "px-8 py-4 text-base"
|
|
4358
|
-
},
|
|
4362
|
+
}, g = n.design === "link" ? "!px-1" : "", h = {
|
|
4359
4363
|
md: "rounded-md",
|
|
4360
4364
|
lg: "rounded-lg",
|
|
4361
4365
|
"2xl": "rounded-2xl",
|
|
4362
4366
|
full: "rounded-full"
|
|
4363
|
-
}, f = o.value, k = n.disabled ? "opacity-50 cursor-not-allowed pointer-events-none" : "",
|
|
4367
|
+
}, f = o.value, k = n.disabled ? "opacity-50 cursor-not-allowed pointer-events-none" : "", I = [
|
|
4364
4368
|
c,
|
|
4365
4369
|
d[n.size],
|
|
4366
|
-
|
|
4367
|
-
|
|
4370
|
+
g,
|
|
4371
|
+
h[n.rounding],
|
|
4368
4372
|
f.base,
|
|
4369
4373
|
`border ${f.border}`,
|
|
4370
4374
|
n.disabled ? "" : f.hover,
|
|
4371
4375
|
k
|
|
4372
4376
|
].filter(Boolean).join(" ");
|
|
4373
|
-
return Wo(
|
|
4377
|
+
return Wo(I, n.class);
|
|
4374
4378
|
}), l = U(() => ({
|
|
4375
4379
|
design: o.value.icon || ""
|
|
4376
4380
|
}));
|
|
@@ -4645,11 +4649,11 @@ function rs() {
|
|
|
4645
4649
|
Node: l,
|
|
4646
4650
|
Element: c,
|
|
4647
4651
|
NodeFilter: d,
|
|
4648
|
-
NamedNodeMap:
|
|
4649
|
-
HTMLFormElement:
|
|
4652
|
+
NamedNodeMap: g = n.NamedNodeMap || n.MozNamedAttrMap,
|
|
4653
|
+
HTMLFormElement: h,
|
|
4650
4654
|
DOMParser: f,
|
|
4651
4655
|
trustedTypes: k
|
|
4652
|
-
} = n,
|
|
4656
|
+
} = n, I = c.prototype, E = wt(I, "cloneNode"), N = wt(I, "remove"), K = wt(I, "nextSibling"), y = wt(I, "childNodes"), x = wt(I, "parentNode");
|
|
4653
4657
|
if (typeof a == "function") {
|
|
4654
4658
|
const R = e.createElement("template");
|
|
4655
4659
|
R.content && R.content.ownerDocument && (e = R.content.ownerDocument);
|
|
@@ -4676,7 +4680,7 @@ function rs() {
|
|
|
4676
4680
|
CUSTOM_ELEMENT: pt
|
|
4677
4681
|
} = Sn;
|
|
4678
4682
|
let {
|
|
4679
|
-
IS_ALLOWED_URI:
|
|
4683
|
+
IS_ALLOWED_URI: M
|
|
4680
4684
|
} = Sn, j = null;
|
|
4681
4685
|
const ft = D({}, [...vn, ...gr, ...pr, ...fr, ...yn]);
|
|
4682
4686
|
let Y = null;
|
|
@@ -4736,7 +4740,7 @@ function rs() {
|
|
|
4736
4740
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4737
4741
|
if (!(at && at === u)) {
|
|
4738
4742
|
if ((!u || typeof u != "object") && (u = {}), u = we(u), bt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4739
|
-
xs.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? vs : u.PARSER_MEDIA_TYPE, J = bt === "application/xhtml+xml" ? dr : Gt, j = fe(u, "ALLOWED_TAGS") ? D({}, u.ALLOWED_TAGS, J) : ft, Y = fe(u, "ALLOWED_ATTR") ? D({}, u.ALLOWED_ATTR, J) : tt, or = fe(u, "ALLOWED_NAMESPACES") ? D({}, u.ALLOWED_NAMESPACES, dr) : bs, nr = fe(u, "ADD_URI_SAFE_ATTR") ? D(we(jr), u.ADD_URI_SAFE_ATTR, J) : jr, Vr = fe(u, "ADD_DATA_URI_TAGS") ? D(we(Gr), u.ADD_DATA_URI_TAGS, J) : Gr, ve = fe(u, "FORBID_CONTENTS") ? D({}, u.FORBID_CONTENTS, J) : rr, W = fe(u, "FORBID_TAGS") ? D({}, u.FORBID_TAGS, J) : we({}), $e = fe(u, "FORBID_ATTR") ? D({}, u.FORBID_ATTR, J) : we({}), st = fe(u, "USE_PROFILES") ? u.USE_PROFILES : !1, q = u.ALLOW_ARIA_ATTR !== !1, rt = u.ALLOW_DATA_ATTR !== !1, Ge = u.ALLOW_UNKNOWN_PROTOCOLS || !1, je = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, xe = u.SAFE_FOR_TEMPLATES || !1, Re = u.SAFE_FOR_XML !== !1, We = u.WHOLE_DOCUMENT || !1, nt = u.RETURN_DOM || !1, zt = u.RETURN_DOM_FRAGMENT || !1, Lt = u.RETURN_TRUSTED_TYPE || !1, er = u.FORCE_BODY || !1, Fr = u.SANITIZE_DOM !== !1, Hr = u.SANITIZE_NAMED_PROPS || !1, tr = u.KEEP_CONTENT !== !1, mt = u.IN_PLACE || !1,
|
|
4743
|
+
xs.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? vs : u.PARSER_MEDIA_TYPE, J = bt === "application/xhtml+xml" ? dr : Gt, j = fe(u, "ALLOWED_TAGS") ? D({}, u.ALLOWED_TAGS, J) : ft, Y = fe(u, "ALLOWED_ATTR") ? D({}, u.ALLOWED_ATTR, J) : tt, or = fe(u, "ALLOWED_NAMESPACES") ? D({}, u.ALLOWED_NAMESPACES, dr) : bs, nr = fe(u, "ADD_URI_SAFE_ATTR") ? D(we(jr), u.ADD_URI_SAFE_ATTR, J) : jr, Vr = fe(u, "ADD_DATA_URI_TAGS") ? D(we(Gr), u.ADD_DATA_URI_TAGS, J) : Gr, ve = fe(u, "FORBID_CONTENTS") ? D({}, u.FORBID_CONTENTS, J) : rr, W = fe(u, "FORBID_TAGS") ? D({}, u.FORBID_TAGS, J) : we({}), $e = fe(u, "FORBID_ATTR") ? D({}, u.FORBID_ATTR, J) : we({}), st = fe(u, "USE_PROFILES") ? u.USE_PROFILES : !1, q = u.ALLOW_ARIA_ATTR !== !1, rt = u.ALLOW_DATA_ATTR !== !1, Ge = u.ALLOW_UNKNOWN_PROTOCOLS || !1, je = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, xe = u.SAFE_FOR_TEMPLATES || !1, Re = u.SAFE_FOR_XML !== !1, We = u.WHOLE_DOCUMENT || !1, nt = u.RETURN_DOM || !1, zt = u.RETURN_DOM_FRAGMENT || !1, Lt = u.RETURN_TRUSTED_TYPE || !1, er = u.FORCE_BODY || !1, Fr = u.SANITIZE_DOM !== !1, Hr = u.SANITIZE_NAMED_PROPS || !1, tr = u.KEEP_CONTENT !== !1, mt = u.IN_PLACE || !1, M = u.ALLOWED_URI_REGEXP || es, ot = u.NAMESPACE || Ie, Ot = u.MATHML_TEXT_INTEGRATION_POINTS || Ot, Pt = u.HTML_INTEGRATION_POINTS || Pt, $ = u.CUSTOM_ELEMENT_HANDLING || {}, u.CUSTOM_ELEMENT_HANDLING && Wr(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && ($.tagNameCheck = u.CUSTOM_ELEMENT_HANDLING.tagNameCheck), u.CUSTOM_ELEMENT_HANDLING && Wr(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && ($.attributeNameCheck = u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), u.CUSTOM_ELEMENT_HANDLING && typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && ($.allowCustomizedBuiltInElements = u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), xe && (rt = !1), zt && (nt = !0), st && (j = D({}, yn), Y = [], st.html === !0 && (D(j, vn), D(Y, wn)), st.svg === !0 && (D(j, gr), D(Y, mr), D(Y, Ft)), st.svgFilters === !0 && (D(j, pr), D(Y, mr), D(Y, Ft)), st.mathMl === !0 && (D(j, fr), D(Y, An), D(Y, Ft))), u.ADD_TAGS && (typeof u.ADD_TAGS == "function" ? Ce.tagCheck = u.ADD_TAGS : (j === ft && (j = we(j)), D(j, u.ADD_TAGS, J))), u.ADD_ATTR && (typeof u.ADD_ATTR == "function" ? Ce.attributeCheck = u.ADD_ATTR : (Y === tt && (Y = we(Y)), D(Y, u.ADD_ATTR, J))), u.ADD_URI_SAFE_ATTR && D(nr, u.ADD_URI_SAFE_ATTR, J), u.FORBID_CONTENTS && (ve === rr && (ve = we(ve)), D(ve, u.FORBID_CONTENTS, J)), u.ADD_FORBID_CONTENTS && (ve === rr && (ve = we(ve)), D(ve, u.ADD_FORBID_CONTENTS, J)), tr && (j["#text"] = !0), We && D(j, ["html", "head", "body"]), j.table && (D(j, ["tbody"]), delete W.tbody), u.TRUSTED_TYPES_POLICY) {
|
|
4740
4744
|
if (typeof u.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4741
4745
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4742
4746
|
if (typeof u.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -4819,7 +4823,7 @@ function rs() {
|
|
|
4819
4823
|
null
|
|
4820
4824
|
);
|
|
4821
4825
|
}, "_createNodeIterator"), ir = /* @__PURE__ */ i(function(u) {
|
|
4822
|
-
return u instanceof
|
|
4826
|
+
return u instanceof h && (typeof u.nodeName != "string" || typeof u.textContent != "string" || typeof u.removeChild != "function" || !(u.attributes instanceof g) || typeof u.removeAttribute != "function" || typeof u.setAttribute != "function" || typeof u.namespaceURI != "string" || typeof u.insertBefore != "function" || typeof u.hasChildNodes != "function");
|
|
4823
4827
|
}, "_isClobbered"), Kr = /* @__PURE__ */ i(function(u) {
|
|
4824
4828
|
return typeof l == "function" && u instanceof l;
|
|
4825
4829
|
}, "_isNode");
|
|
@@ -4875,7 +4879,7 @@ function rs() {
|
|
|
4875
4879
|
m === "is" && $.allowCustomizedBuiltInElements && ($.tagNameCheck instanceof RegExp && le($.tagNameCheck, T) || $.tagNameCheck instanceof Function && $.tagNameCheck(T)))
|
|
4876
4880
|
) return !1;
|
|
4877
4881
|
} else if (!nr[m]) {
|
|
4878
|
-
if (!le(
|
|
4882
|
+
if (!le(M, vt(T, et, ""))) {
|
|
4879
4883
|
if (!((m === "src" || m === "xlink:href" || m === "href") && u !== "script" && ca(T, "data:") === 0 && Vr[u])) {
|
|
4880
4884
|
if (!(Ge && !le(Ee, vt(T, et, "")))) {
|
|
4881
4885
|
if (T)
|
|
@@ -5137,9 +5141,9 @@ function gi(n, t, e) {
|
|
|
5137
5141
|
i(gi, "it");
|
|
5138
5142
|
var ct, Yt = (ct = class {
|
|
5139
5143
|
constructor(t) {
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5144
|
+
_(this, "options");
|
|
5145
|
+
_(this, "rules");
|
|
5146
|
+
_(this, "lexer");
|
|
5143
5147
|
this.options = t || Qe;
|
|
5144
5148
|
}
|
|
5145
5149
|
space(t) {
|
|
@@ -5189,27 +5193,27 @@ var ct, Yt = (ct = class {
|
|
|
5189
5193
|
else if (!l) c.push(r[d]);
|
|
5190
5194
|
else break;
|
|
5191
5195
|
r = r.slice(d);
|
|
5192
|
-
let
|
|
5193
|
-
`),
|
|
5196
|
+
let g = c.join(`
|
|
5197
|
+
`), h = g.replace(this.rules.other.blockquoteSetextReplace, `
|
|
5194
5198
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
5195
5199
|
s = s ? `${s}
|
|
5196
|
-
${
|
|
5197
|
-
${
|
|
5200
|
+
${g}` : g, o = o ? `${o}
|
|
5201
|
+
${h}` : h;
|
|
5198
5202
|
let f = this.lexer.state.top;
|
|
5199
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(
|
|
5203
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(h, a, !0), this.lexer.state.top = f, r.length === 0) break;
|
|
5200
5204
|
let k = a.at(-1);
|
|
5201
5205
|
if (k?.type === "code") break;
|
|
5202
5206
|
if (k?.type === "blockquote") {
|
|
5203
|
-
let
|
|
5207
|
+
let I = k, E = I.raw + `
|
|
5204
5208
|
` + r.join(`
|
|
5205
5209
|
`), N = this.blockquote(E);
|
|
5206
|
-
a[a.length - 1] = N, s = s.substring(0, s.length -
|
|
5210
|
+
a[a.length - 1] = N, s = s.substring(0, s.length - I.raw.length) + N.raw, o = o.substring(0, o.length - I.text.length) + N.text;
|
|
5207
5211
|
break;
|
|
5208
5212
|
} else if (k?.type === "list") {
|
|
5209
|
-
let
|
|
5213
|
+
let I = k, E = I.raw + `
|
|
5210
5214
|
` + r.join(`
|
|
5211
5215
|
`), N = this.list(E);
|
|
5212
|
-
a[a.length - 1] = N, s = s.substring(0, s.length - k.raw.length) + N.raw, o = o.substring(0, o.length -
|
|
5216
|
+
a[a.length - 1] = N, s = s.substring(0, s.length - k.raw.length) + N.raw, o = o.substring(0, o.length - I.raw.length) + N.raw, r = E.substring(a.at(-1).raw.length).split(`
|
|
5213
5217
|
`);
|
|
5214
5218
|
continue;
|
|
5215
5219
|
}
|
|
@@ -5224,31 +5228,31 @@ ${g}` : g;
|
|
|
5224
5228
|
r = s ? `\\d{1,9}\\${r.slice(-1)}` : `\\${r}`, this.options.pedantic && (r = s ? r : "[*+-]");
|
|
5225
5229
|
let a = this.rules.other.listItemRegex(r), l = !1;
|
|
5226
5230
|
for (; t; ) {
|
|
5227
|
-
let d = !1,
|
|
5231
|
+
let d = !1, g = "", h = "";
|
|
5228
5232
|
if (!(e = a.exec(t)) || this.rules.block.hr.test(t)) break;
|
|
5229
|
-
|
|
5233
|
+
g = e[0], t = t.substring(g.length);
|
|
5230
5234
|
let f = hi(e[2].split(`
|
|
5231
5235
|
`, 1)[0], e[1].length), k = t.split(`
|
|
5232
|
-
`, 1)[0],
|
|
5233
|
-
if (this.options.pedantic ? (E = 2,
|
|
5236
|
+
`, 1)[0], I = !f.trim(), E = 0;
|
|
5237
|
+
if (this.options.pedantic ? (E = 2, h = f.trimStart()) : I ? E = e[1].length + 1 : (E = f.search(this.rules.other.nonSpaceChar), E = E > 4 ? 1 : E, h = f.slice(E), E += e[1].length), I && this.rules.other.blankLine.test(k) && (g += k + `
|
|
5234
5238
|
`, t = t.substring(k.length + 1), d = !0), !d) {
|
|
5235
5239
|
let N = this.rules.other.nextBulletRegex(E), K = this.rules.other.hrRegex(E), y = this.rules.other.fencesBeginRegex(E), x = this.rules.other.headingBeginRegex(E), w = this.rules.other.htmlBeginRegex(E), B = this.rules.other.blockquoteBeginRegex(E);
|
|
5236
5240
|
for (; t; ) {
|
|
5237
5241
|
let H = t.split(`
|
|
5238
5242
|
`, 1)[0], re;
|
|
5239
5243
|
if (k = H, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), re = k) : re = k.replace(this.rules.other.tabCharGlobal, " "), y.test(k) || x.test(k) || w.test(k) || B.test(k) || N.test(k) || K.test(k)) break;
|
|
5240
|
-
if (re.search(this.rules.other.nonSpaceChar) >= E || !k.trim())
|
|
5244
|
+
if (re.search(this.rules.other.nonSpaceChar) >= E || !k.trim()) h += `
|
|
5241
5245
|
` + re.slice(E);
|
|
5242
5246
|
else {
|
|
5243
|
-
if (
|
|
5244
|
-
|
|
5247
|
+
if (I || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || y.test(f) || x.test(f) || K.test(f)) break;
|
|
5248
|
+
h += `
|
|
5245
5249
|
` + k;
|
|
5246
5250
|
}
|
|
5247
|
-
|
|
5251
|
+
I = !k.trim(), g += H + `
|
|
5248
5252
|
`, t = t.substring(H.length + 1), f = re.slice(E);
|
|
5249
5253
|
}
|
|
5250
5254
|
}
|
|
5251
|
-
o.loose || (l ? o.loose = !0 : this.rules.other.doubleBlankLine.test(
|
|
5255
|
+
o.loose || (l ? o.loose = !0 : this.rules.other.doubleBlankLine.test(g) && (l = !0)), o.items.push({ type: "list_item", raw: g, task: !!this.options.gfm && this.rules.other.listIsTask.test(h), loose: !1, text: h, tokens: [] }), o.raw += g;
|
|
5252
5256
|
}
|
|
5253
5257
|
let c = o.items.at(-1);
|
|
5254
5258
|
if (c) c.raw = c.raw.trimEnd(), c.text = c.text.trimEnd();
|
|
@@ -5258,25 +5262,25 @@ ${g}` : g;
|
|
|
5258
5262
|
if (this.lexer.state.top = !1, d.tokens = this.lexer.blockTokens(d.text, []), d.task) {
|
|
5259
5263
|
if (d.text = d.text.replace(this.rules.other.listReplaceTask, ""), d.tokens[0]?.type === "text" || d.tokens[0]?.type === "paragraph") {
|
|
5260
5264
|
d.tokens[0].raw = d.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), d.tokens[0].text = d.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
|
|
5261
|
-
for (let
|
|
5262
|
-
this.lexer.inlineQueue[
|
|
5265
|
+
for (let h = this.lexer.inlineQueue.length - 1; h >= 0; h--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)) {
|
|
5266
|
+
this.lexer.inlineQueue[h].src = this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask, "");
|
|
5263
5267
|
break;
|
|
5264
5268
|
}
|
|
5265
5269
|
}
|
|
5266
|
-
let
|
|
5267
|
-
if (
|
|
5268
|
-
let
|
|
5269
|
-
d.checked =
|
|
5270
|
+
let g = this.rules.other.listTaskCheckbox.exec(d.raw);
|
|
5271
|
+
if (g) {
|
|
5272
|
+
let h = { type: "checkbox", raw: g[0] + " ", checked: g[0] !== "[ ]" };
|
|
5273
|
+
d.checked = h.checked, o.loose ? d.tokens[0] && ["paragraph", "text"].includes(d.tokens[0].type) && "tokens" in d.tokens[0] && d.tokens[0].tokens ? (d.tokens[0].raw = h.raw + d.tokens[0].raw, d.tokens[0].text = h.raw + d.tokens[0].text, d.tokens[0].tokens.unshift(h)) : d.tokens.unshift({ type: "paragraph", raw: h.raw, text: h.raw, tokens: [h] }) : d.tokens.unshift(h);
|
|
5270
5274
|
}
|
|
5271
5275
|
}
|
|
5272
5276
|
if (!o.loose) {
|
|
5273
|
-
let
|
|
5274
|
-
o.loose =
|
|
5277
|
+
let g = d.tokens.filter((f) => f.type === "space"), h = g.length > 0 && g.some((f) => this.rules.other.anyLine.test(f.raw));
|
|
5278
|
+
o.loose = h;
|
|
5275
5279
|
}
|
|
5276
5280
|
}
|
|
5277
5281
|
if (o.loose) for (let d of o.items) {
|
|
5278
5282
|
d.loose = !0;
|
|
5279
|
-
for (let
|
|
5283
|
+
for (let g of d.tokens) g.type === "text" && (g.type = "paragraph");
|
|
5280
5284
|
}
|
|
5281
5285
|
return o;
|
|
5282
5286
|
}
|
|
@@ -5366,8 +5370,8 @@ ${g}` : g;
|
|
|
5366
5370
|
emStrong(t, e, r = "") {
|
|
5367
5371
|
let s = this.rules.inline.emStrongLDelim.exec(t);
|
|
5368
5372
|
if (!(!s || s[3] && r.match(this.rules.other.unicodeAlphaNumeric)) && (!(s[1] || s[2]) || !r || this.rules.inline.punctuation.exec(r))) {
|
|
5369
|
-
let o = [...s[0]].length - 1, a, l, c = o, d = 0,
|
|
5370
|
-
for (
|
|
5373
|
+
let o = [...s[0]].length - 1, a, l, c = o, d = 0, g = s[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
5374
|
+
for (g.lastIndex = 0, e = e.slice(-1 * t.length + o); (s = g.exec(e)) != null; ) {
|
|
5371
5375
|
if (a = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !a) continue;
|
|
5372
5376
|
if (l = [...a].length, s[3] || s[4]) {
|
|
5373
5377
|
c += l;
|
|
@@ -5378,10 +5382,10 @@ ${g}` : g;
|
|
|
5378
5382
|
}
|
|
5379
5383
|
if (c -= l, c > 0) continue;
|
|
5380
5384
|
l = Math.min(l, l + c + d);
|
|
5381
|
-
let
|
|
5385
|
+
let h = [...s[0]][0].length, f = t.slice(0, o + s.index + h + l);
|
|
5382
5386
|
if (Math.min(o, l) % 2) {
|
|
5383
|
-
let
|
|
5384
|
-
return { type: "em", raw: f, text:
|
|
5387
|
+
let I = f.slice(1, -1);
|
|
5388
|
+
return { type: "em", raw: f, text: I, tokens: this.lexer.inlineTokens(I) };
|
|
5385
5389
|
}
|
|
5386
5390
|
let k = f.slice(2, -2);
|
|
5387
5391
|
return { type: "strong", raw: f, text: k, tokens: this.lexer.inlineTokens(k) };
|
|
@@ -5411,8 +5415,8 @@ ${g}` : g;
|
|
|
5411
5415
|
}
|
|
5412
5416
|
if (c -= l, c > 0) continue;
|
|
5413
5417
|
l = Math.min(l, l + c);
|
|
5414
|
-
let
|
|
5415
|
-
return { type: "del", raw:
|
|
5418
|
+
let g = [...s[0]][0].length, h = t.slice(0, o + s.index + g + l), f = h.slice(o, -o);
|
|
5419
|
+
return { type: "del", raw: h, text: f, tokens: this.lexer.inlineTokens(f) };
|
|
5416
5420
|
}
|
|
5417
5421
|
}
|
|
5418
5422
|
}
|
|
@@ -5447,11 +5451,11 @@ ${g}` : g;
|
|
|
5447
5451
|
}
|
|
5448
5452
|
}, i(ct, "w"), ct), Be, be = (Be = class {
|
|
5449
5453
|
constructor(t) {
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5454
|
+
_(this, "tokens");
|
|
5455
|
+
_(this, "options");
|
|
5456
|
+
_(this, "state");
|
|
5457
|
+
_(this, "inlineQueue");
|
|
5458
|
+
_(this, "tokenizer");
|
|
5455
5459
|
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Qe, this.options.tokenizer = this.options.tokenizer || new Yt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
5456
5460
|
let e = { other: ce, block: Ht.normal, inline: St.normal };
|
|
5457
5461
|
this.options.pedantic ? (e.block = Ht.pedantic, e.inline = St.pedantic) : this.options.gfm && (e.block = Ht.gfm, this.options.breaks ? e.inline = St.breaks : e.inline = St.gfm), this.tokenizer.rules = e;
|
|
@@ -5586,7 +5590,7 @@ ${g}` : g;
|
|
|
5586
5590
|
for (; t; ) {
|
|
5587
5591
|
a || (l = ""), a = !1;
|
|
5588
5592
|
let c;
|
|
5589
|
-
if (this.options.extensions?.inline?.some((
|
|
5593
|
+
if (this.options.extensions?.inline?.some((g) => (c = g.call({ lexer: this }, t, e)) ? (t = t.substring(c.raw.length), e.push(c), !0) : !1)) continue;
|
|
5590
5594
|
if (c = this.tokenizer.escape(t)) {
|
|
5591
5595
|
t = t.substring(c.raw.length), e.push(c);
|
|
5592
5596
|
continue;
|
|
@@ -5601,8 +5605,8 @@ ${g}` : g;
|
|
|
5601
5605
|
}
|
|
5602
5606
|
if (c = this.tokenizer.reflink(t, this.tokens.links)) {
|
|
5603
5607
|
t = t.substring(c.raw.length);
|
|
5604
|
-
let
|
|
5605
|
-
c.type === "text" &&
|
|
5608
|
+
let g = e.at(-1);
|
|
5609
|
+
c.type === "text" && g?.type === "text" ? (g.raw += c.raw, g.text += c.text) : e.push(c);
|
|
5606
5610
|
continue;
|
|
5607
5611
|
}
|
|
5608
5612
|
if (c = this.tokenizer.emStrong(t, r, l)) {
|
|
@@ -5631,31 +5635,31 @@ ${g}` : g;
|
|
|
5631
5635
|
}
|
|
5632
5636
|
let d = t;
|
|
5633
5637
|
if (this.options.extensions?.startInline) {
|
|
5634
|
-
let
|
|
5638
|
+
let g = 1 / 0, h = t.slice(1), f;
|
|
5635
5639
|
this.options.extensions.startInline.forEach((k) => {
|
|
5636
|
-
f = k.call({ lexer: this },
|
|
5637
|
-
}),
|
|
5640
|
+
f = k.call({ lexer: this }, h), typeof f == "number" && f >= 0 && (g = Math.min(g, f));
|
|
5641
|
+
}), g < 1 / 0 && g >= 0 && (d = t.substring(0, g + 1));
|
|
5638
5642
|
}
|
|
5639
5643
|
if (c = this.tokenizer.inlineText(d)) {
|
|
5640
5644
|
t = t.substring(c.raw.length), c.raw.slice(-1) !== "_" && (l = c.raw.slice(-1)), a = !0;
|
|
5641
|
-
let
|
|
5642
|
-
|
|
5645
|
+
let g = e.at(-1);
|
|
5646
|
+
g?.type === "text" ? (g.raw += c.raw, g.text += c.text) : e.push(c);
|
|
5643
5647
|
continue;
|
|
5644
5648
|
}
|
|
5645
5649
|
if (t) {
|
|
5646
|
-
let
|
|
5650
|
+
let g = "Infinite loop on byte: " + t.charCodeAt(0);
|
|
5647
5651
|
if (this.options.silent) {
|
|
5648
|
-
console.error(
|
|
5652
|
+
console.error(g);
|
|
5649
5653
|
break;
|
|
5650
|
-
} else throw new Error(
|
|
5654
|
+
} else throw new Error(g);
|
|
5651
5655
|
}
|
|
5652
5656
|
}
|
|
5653
5657
|
return e;
|
|
5654
5658
|
}
|
|
5655
5659
|
}, i(Be, "u"), Be), ut, Zt = (ut = class {
|
|
5656
5660
|
constructor(t) {
|
|
5657
|
-
|
|
5658
|
-
|
|
5661
|
+
_(this, "options");
|
|
5662
|
+
_(this, "parser");
|
|
5659
5663
|
this.options = t || Qe;
|
|
5660
5664
|
}
|
|
5661
5665
|
space(t) {
|
|
@@ -5802,9 +5806,9 @@ ${t}</tr>
|
|
|
5802
5806
|
}
|
|
5803
5807
|
}, i(dt, "$"), dt), Ue, ke = (Ue = class {
|
|
5804
5808
|
constructor(t) {
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5809
|
+
_(this, "options");
|
|
5810
|
+
_(this, "renderer");
|
|
5811
|
+
_(this, "textRenderer");
|
|
5808
5812
|
this.options = t || Qe, this.options.renderer = this.options.renderer || new Zt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Nr();
|
|
5809
5813
|
}
|
|
5810
5814
|
static parse(t, e) {
|
|
@@ -5951,8 +5955,8 @@ ${t}</tr>
|
|
|
5951
5955
|
}
|
|
5952
5956
|
}, i(Ue, "u"), Ue), Ne, Et = (Ne = class {
|
|
5953
5957
|
constructor(t) {
|
|
5954
|
-
|
|
5955
|
-
|
|
5958
|
+
_(this, "options");
|
|
5959
|
+
_(this, "block");
|
|
5956
5960
|
this.options = t || Qe;
|
|
5957
5961
|
}
|
|
5958
5962
|
preprocess(t) {
|
|
@@ -5973,18 +5977,18 @@ ${t}</tr>
|
|
|
5973
5977
|
provideParser() {
|
|
5974
5978
|
return this.block ? ke.parse : ke.parseInline;
|
|
5975
5979
|
}
|
|
5976
|
-
}, i(Ne, "P"),
|
|
5980
|
+
}, i(Ne, "P"), _(Ne, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), _(Ne, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), Ne), ht, pi = (ht = class {
|
|
5977
5981
|
constructor(...t) {
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5982
|
+
_(this, "defaults", Mr());
|
|
5983
|
+
_(this, "options", this.setOptions);
|
|
5984
|
+
_(this, "parse", this.parseMarkdown(!0));
|
|
5985
|
+
_(this, "parseInline", this.parseMarkdown(!1));
|
|
5986
|
+
_(this, "Parser", ke);
|
|
5987
|
+
_(this, "Renderer", Zt);
|
|
5988
|
+
_(this, "TextRenderer", Nr);
|
|
5989
|
+
_(this, "Lexer", be);
|
|
5990
|
+
_(this, "Tokenizer", Yt);
|
|
5991
|
+
_(this, "Hooks", Et);
|
|
5988
5992
|
this.use(...t);
|
|
5989
5993
|
}
|
|
5990
5994
|
walkTokens(t, e) {
|
|
@@ -6036,9 +6040,9 @@ ${t}</tr>
|
|
|
6036
6040
|
if (!(a in o)) throw new Error(`renderer '${a}' does not exist`);
|
|
6037
6041
|
if (["options", "parser"].includes(a)) continue;
|
|
6038
6042
|
let l = a, c = r.renderer[l], d = o[l];
|
|
6039
|
-
o[l] = (...
|
|
6040
|
-
let
|
|
6041
|
-
return
|
|
6043
|
+
o[l] = (...g) => {
|
|
6044
|
+
let h = c.apply(o, g);
|
|
6045
|
+
return h === !1 && (h = d.apply(o, g)), h || "";
|
|
6042
6046
|
};
|
|
6043
6047
|
}
|
|
6044
6048
|
s.renderer = o;
|
|
@@ -6049,9 +6053,9 @@ ${t}</tr>
|
|
|
6049
6053
|
if (!(a in o)) throw new Error(`tokenizer '${a}' does not exist`);
|
|
6050
6054
|
if (["options", "rules", "lexer"].includes(a)) continue;
|
|
6051
6055
|
let l = a, c = r.tokenizer[l], d = o[l];
|
|
6052
|
-
o[l] = (...
|
|
6053
|
-
let
|
|
6054
|
-
return
|
|
6056
|
+
o[l] = (...g) => {
|
|
6057
|
+
let h = c.apply(o, g);
|
|
6058
|
+
return h === !1 && (h = d.apply(o, g)), h;
|
|
6055
6059
|
};
|
|
6056
6060
|
}
|
|
6057
6061
|
s.tokenizer = o;
|
|
@@ -6062,20 +6066,20 @@ ${t}</tr>
|
|
|
6062
6066
|
if (!(a in o)) throw new Error(`hook '${a}' does not exist`);
|
|
6063
6067
|
if (["options", "block"].includes(a)) continue;
|
|
6064
6068
|
let l = a, c = r.hooks[l], d = o[l];
|
|
6065
|
-
Et.passThroughHooks.has(a) ? o[l] = (
|
|
6069
|
+
Et.passThroughHooks.has(a) ? o[l] = (g) => {
|
|
6066
6070
|
if (this.defaults.async && Et.passThroughHooksRespectAsync.has(a)) return (async () => {
|
|
6067
|
-
let f = await c.call(o,
|
|
6071
|
+
let f = await c.call(o, g);
|
|
6068
6072
|
return d.call(o, f);
|
|
6069
6073
|
})();
|
|
6070
|
-
let
|
|
6071
|
-
return d.call(o,
|
|
6072
|
-
} : o[l] = (...
|
|
6074
|
+
let h = c.call(o, g);
|
|
6075
|
+
return d.call(o, h);
|
|
6076
|
+
} : o[l] = (...g) => {
|
|
6073
6077
|
if (this.defaults.async) return (async () => {
|
|
6074
|
-
let f = await c.apply(o,
|
|
6075
|
-
return f === !1 && (f = await d.apply(o,
|
|
6078
|
+
let f = await c.apply(o, g);
|
|
6079
|
+
return f === !1 && (f = await d.apply(o, g)), f;
|
|
6076
6080
|
})();
|
|
6077
|
-
let
|
|
6078
|
-
return
|
|
6081
|
+
let h = c.apply(o, g);
|
|
6082
|
+
return h === !1 && (h = d.apply(o, g)), h;
|
|
6079
6083
|
};
|
|
6080
6084
|
}
|
|
6081
6085
|
s.hooks = o;
|
|
@@ -6108,8 +6112,8 @@ ${t}</tr>
|
|
|
6108
6112
|
if (o.hooks && (o.hooks.options = o, o.hooks.block = t), o.async) return (async () => {
|
|
6109
6113
|
let l = o.hooks ? await o.hooks.preprocess(e) : e, c = await (o.hooks ? await o.hooks.provideLexer() : t ? be.lex : be.lexInline)(l, o), d = o.hooks ? await o.hooks.processAllTokens(c) : c;
|
|
6110
6114
|
o.walkTokens && await Promise.all(this.walkTokens(d, o.walkTokens));
|
|
6111
|
-
let
|
|
6112
|
-
return o.hooks ? await o.hooks.postprocess(
|
|
6115
|
+
let g = await (o.hooks ? await o.hooks.provideParser() : t ? ke.parse : ke.parseInline)(d, o);
|
|
6116
|
+
return o.hooks ? await o.hooks.postprocess(g) : g;
|
|
6113
6117
|
})().catch(a);
|
|
6114
6118
|
try {
|
|
6115
6119
|
o.hooks && (e = o.hooks.preprocess(e));
|
|
@@ -6233,23 +6237,23 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6233
6237
|
});
|
|
6234
6238
|
}
|
|
6235
6239
|
i(d, "scrollToBottom");
|
|
6236
|
-
function
|
|
6240
|
+
function g() {
|
|
6237
6241
|
if (!s.value)
|
|
6238
6242
|
return;
|
|
6239
6243
|
s.value.style.height = "auto";
|
|
6240
6244
|
const y = Math.min(s.value.scrollHeight, 150);
|
|
6241
6245
|
s.value.style.height = `${y}px`;
|
|
6242
6246
|
}
|
|
6243
|
-
i(
|
|
6244
|
-
cr(() =>
|
|
6247
|
+
i(g, "adjustTextareaHeight"), Fe(e, () => {
|
|
6248
|
+
cr(() => g());
|
|
6245
6249
|
});
|
|
6246
|
-
const
|
|
6250
|
+
const h = U(() => {
|
|
6247
6251
|
const y = n.agentController?.textState.value;
|
|
6248
6252
|
return y?.connectionStatus === "disconnected" && !!y?.error;
|
|
6249
6253
|
}), f = U(() => {
|
|
6250
6254
|
const y = n.agentController?.textState.value;
|
|
6251
6255
|
return y?.connectionStatus !== "connected" && !y?.error;
|
|
6252
|
-
}), k = U(() =>
|
|
6256
|
+
}), k = U(() => h.value ? "Agent is offline" : f.value ? "Connecting..." : "Message"), I = U(() => !n.agentController?.textState.value.isConnected), E = U(() => n.variant === "light");
|
|
6253
6257
|
function N(y, x) {
|
|
6254
6258
|
if (x === 0) {
|
|
6255
6259
|
const Q = y[x];
|
|
@@ -6281,7 +6285,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6281
6285
|
E.value ? O("", !0) : (b(), v("div", mi, [
|
|
6282
6286
|
te(Cr, { agent: n.agent }, null, 8, ["agent"])
|
|
6283
6287
|
])),
|
|
6284
|
-
|
|
6288
|
+
h.value ? (b(), v("div", {
|
|
6285
6289
|
key: 1,
|
|
6286
6290
|
class: z(["py-16 flex flex-col items-center justify-center gap-3 text-sm", E.value ? "text-theme-400" : "text-white/60"])
|
|
6287
6291
|
}, [
|
|
@@ -6300,7 +6304,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6300
6304
|
ref: r,
|
|
6301
6305
|
class: "flex-1 overflow-y-auto overflow-x-hidden py-4 space-y-1 min-h-0 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden"
|
|
6302
6306
|
}, [
|
|
6303
|
-
(n.agentController?.sharedMessages.value.filter((w) => w.sender !== "system") ?? []).length === 0 && !f.value && !
|
|
6307
|
+
(n.agentController?.sharedMessages.value.filter((w) => w.sender !== "system") ?? []).length === 0 && !f.value && !h.value ? (b(), v("div", bi, [
|
|
6304
6308
|
p("img", {
|
|
6305
6309
|
src: o.value,
|
|
6306
6310
|
alt: n.agent.name,
|
|
@@ -6384,7 +6388,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6384
6388
|
"onUpdate:modelValue": x[0] || (x[0] = (w) => e.value = w),
|
|
6385
6389
|
rows: "1",
|
|
6386
6390
|
placeholder: k.value,
|
|
6387
|
-
disabled:
|
|
6391
|
+
disabled: I.value,
|
|
6388
6392
|
style: { "font-size": "16px", resize: "none" },
|
|
6389
6393
|
class: z(["w-full rounded-3xl px-5 py-3 focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", E.value ? "bg-theme-50 border border-theme-200 text-theme-800 placeholder-theme-400 focus:border-theme-300" : "bg-white/10 backdrop-blur-sm border border-white/20 text-white placeholder-white/50 focus:border-white/40"]),
|
|
6390
6394
|
onKeydown: c
|
|
@@ -6487,10 +6491,10 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6487
6491
|
setup(n, { emit: t }) {
|
|
6488
6492
|
const e = n, r = t, s = e.position || "left", o = e.widthClasses || "w-[80%] max-w-[300px]", a = U({
|
|
6489
6493
|
get: /* @__PURE__ */ i(() => e.modelValue, "get"),
|
|
6490
|
-
set: /* @__PURE__ */ i((
|
|
6491
|
-
}), l = U(() => e.items.filter((
|
|
6492
|
-
function c(
|
|
6493
|
-
|
|
6494
|
+
set: /* @__PURE__ */ i((g) => r("update:modelValue", g), "set")
|
|
6495
|
+
}), l = U(() => e.items.filter((g) => !g.isHidden));
|
|
6496
|
+
function c(g) {
|
|
6497
|
+
g.isDisabled || (g.onClick ? g.onClick({ item: g, event: new MouseEvent("click") }) : g.href && (g.href.includes("http") ? window.open(g.href, g.target || "_self")?.focus() : window.location.href = g.href), a.value = !1);
|
|
6494
6498
|
}
|
|
6495
6499
|
i(c, "handleItemClick");
|
|
6496
6500
|
const d = U(() => s === "left" ? {
|
|
@@ -6504,7 +6508,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6504
6508
|
position: "justify-end",
|
|
6505
6509
|
closeButton: "-left-16"
|
|
6506
6510
|
});
|
|
6507
|
-
return (
|
|
6511
|
+
return (g, h) => (b(), v(Se, null, [
|
|
6508
6512
|
te(on, {
|
|
6509
6513
|
"enter-active-class": "transition-opacity duration-300 ease-out",
|
|
6510
6514
|
"leave-active-class": "transition-opacity duration-200 ease-in",
|
|
@@ -6517,7 +6521,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6517
6521
|
a.value ? (b(), v("div", {
|
|
6518
6522
|
key: 0,
|
|
6519
6523
|
class: "absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",
|
|
6520
|
-
onClick:
|
|
6524
|
+
onClick: h[0] || (h[0] = (f) => a.value = !1)
|
|
6521
6525
|
})) : O("", !0)
|
|
6522
6526
|
]),
|
|
6523
6527
|
_: 1
|
|
@@ -6534,25 +6538,25 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6534
6538
|
a.value ? (b(), v("div", {
|
|
6535
6539
|
key: 0,
|
|
6536
6540
|
class: z(["absolute inset-0 z-50 flex", d.value.position]),
|
|
6537
|
-
onClick:
|
|
6541
|
+
onClick: h[3] || (h[3] = (f) => a.value = !1)
|
|
6538
6542
|
}, [
|
|
6539
6543
|
p("div", {
|
|
6540
6544
|
class: z(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center", oe(o)]),
|
|
6541
|
-
onClick:
|
|
6545
|
+
onClick: h[2] || (h[2] = kr(() => {
|
|
6542
6546
|
}, ["stop"]))
|
|
6543
6547
|
}, [
|
|
6544
6548
|
te(Bi, {
|
|
6545
6549
|
class: z(["absolute top-4 z-10 text-white", d.value.closeButton]),
|
|
6546
|
-
onClick:
|
|
6550
|
+
onClick: h[1] || (h[1] = (f) => a.value = !1)
|
|
6547
6551
|
}, null, 8, ["class"]),
|
|
6548
6552
|
n.title ? (b(), v("div", Ui, [
|
|
6549
6553
|
p("h3", Fi, X(n.title), 1)
|
|
6550
6554
|
])) : O("", !0),
|
|
6551
|
-
|
|
6552
|
-
gt(
|
|
6555
|
+
g.$slots.header ? (b(), v("div", Hi, [
|
|
6556
|
+
gt(g.$slots, "header")
|
|
6553
6557
|
])) : O("", !0),
|
|
6554
6558
|
p("div", {
|
|
6555
|
-
class: z(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !n.title && !
|
|
6559
|
+
class: z(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !n.title && !g.$slots.header, "pt-4": n.title || g.$slots.header }])
|
|
6556
6560
|
}, [
|
|
6557
6561
|
te(zn, {
|
|
6558
6562
|
"enter-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
@@ -6571,7 +6575,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6571
6575
|
f.isDisabled && "opacity-50 cursor-not-allowed"
|
|
6572
6576
|
]]),
|
|
6573
6577
|
disabled: f.isDisabled,
|
|
6574
|
-
onClick: /* @__PURE__ */ i((
|
|
6578
|
+
onClick: /* @__PURE__ */ i((I) => c(f), "onClick")
|
|
6575
6579
|
}, [
|
|
6576
6580
|
p("div", Gi, [
|
|
6577
6581
|
f.icon?.src ? (b(), v("i", {
|
|
@@ -6594,8 +6598,8 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6594
6598
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
6595
6599
|
], 2),
|
|
6596
6600
|
p("div", qi, [
|
|
6597
|
-
gt(
|
|
6598
|
-
|
|
6601
|
+
gt(g.$slots, "footer", {}, () => [
|
|
6602
|
+
h[4] || (h[4] = p("div", { class: "text-center" }, [
|
|
6599
6603
|
p("p", { class: "text-[10px] text-white/40 font-sans" }, [
|
|
6600
6604
|
Ct(" AI Agent by "),
|
|
6601
6605
|
p("a", {
|
|
@@ -6754,8 +6758,8 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6754
6758
|
},
|
|
6755
6759
|
emits: ["close", "error"],
|
|
6756
6760
|
setup(n, { emit: t }) {
|
|
6757
|
-
const e = t, r = Cs(), s = G(!1), o = G(!1), a = G(), l = G(), c = U(() => r.value?.agentMode?.value ?? "self"), d = U(() => n.sdk.activeUser.value !== void 0),
|
|
6758
|
-
function
|
|
6761
|
+
const e = t, r = Cs(), s = G(!1), o = G(!1), a = G(), l = G(), c = U(() => r.value?.agentMode?.value ?? "self"), d = U(() => n.sdk.activeUser.value !== void 0), g = U(() => Pn.find((x) => x.mode === c.value));
|
|
6762
|
+
function h() {
|
|
6759
6763
|
r.value && r.value.destroy();
|
|
6760
6764
|
try {
|
|
6761
6765
|
r.value = new vr({
|
|
@@ -6768,7 +6772,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6768
6772
|
throw console.error("AgentController creation failed:", y), y;
|
|
6769
6773
|
}
|
|
6770
6774
|
}
|
|
6771
|
-
i(
|
|
6775
|
+
i(h, "createAgentController");
|
|
6772
6776
|
function f(y) {
|
|
6773
6777
|
if (!l.value)
|
|
6774
6778
|
return;
|
|
@@ -6779,7 +6783,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6779
6783
|
}
|
|
6780
6784
|
i(f, "applyTheme"), Rt(() => {
|
|
6781
6785
|
try {
|
|
6782
|
-
|
|
6786
|
+
h(), f(n.theme), n.chatOnly && r.value && r.value.setMode("chat");
|
|
6783
6787
|
} catch (y) {
|
|
6784
6788
|
const x = y instanceof Error ? y.message : "Failed to initialize digital agent";
|
|
6785
6789
|
a.value = x, e("error", x);
|
|
@@ -6791,7 +6795,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6791
6795
|
}), Fe(() => n.sdk.activeUser.value, (y, x) => {
|
|
6792
6796
|
x && !y && r.value && r.value.setMode("self");
|
|
6793
6797
|
});
|
|
6794
|
-
const k = U(() => n.agent.cover?.src && n.agent.cover?.quality === "low" ? !0 : !!(n.agent.avatar?.src && n.agent.avatar?.quality === "low")),
|
|
6798
|
+
const k = U(() => n.agent.cover?.src && n.agent.cover?.quality === "low" ? !0 : !!(n.agent.avatar?.src && n.agent.avatar?.quality === "low")), I = U(() => {
|
|
6795
6799
|
const y = [k.value ? "backdrop-blur-sm" : ""];
|
|
6796
6800
|
return k.value && c.value === "self" ? y.push("from-black/80 via-black/60 to-black/80") : c.value === "self" ? y.push("from-black/70 via-black/50 to-black/80") : y.push("from-black/90 via-black/90 to-black/100"), y.join(" ");
|
|
6797
6801
|
}), E = {
|
|
@@ -6820,7 +6824,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6820
6824
|
"data-quality": n.agent.avatar?.quality || "none"
|
|
6821
6825
|
}, [
|
|
6822
6826
|
p("div", {
|
|
6823
|
-
class: z(["absolute inset-0 bg-gradient-to-br z-0",
|
|
6827
|
+
class: z(["absolute inset-0 bg-gradient-to-br z-0", I.value])
|
|
6824
6828
|
}, null, 2),
|
|
6825
6829
|
p("div", {
|
|
6826
6830
|
class: z(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform", n.isActive ? "opacity-100 translate-y-0" : "opacity-0 translate-y-2"])
|
|
@@ -6864,9 +6868,9 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6864
6868
|
onClick: x[2] || (x[2] = (w) => o.value = !0)
|
|
6865
6869
|
}, [
|
|
6866
6870
|
p("i", {
|
|
6867
|
-
class: z([
|
|
6871
|
+
class: z([g.value?.icon, "size-4 opacity-60"])
|
|
6868
6872
|
}, null, 2),
|
|
6869
|
-
p("span", nl, X(
|
|
6873
|
+
p("span", nl, X(g.value?.label), 1),
|
|
6870
6874
|
x[9] || (x[9] = p("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
|
|
6871
6875
|
], 2),
|
|
6872
6876
|
n.hasClose ? (b(), v("div", sl, [
|
|
@@ -7124,4 +7128,4 @@ export {
|
|
|
7124
7128
|
Ns as k,
|
|
7125
7129
|
Ps as p
|
|
7126
7130
|
};
|
|
7127
|
-
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-
|
|
7131
|
+
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-ClZyzb6C.js.map
|