akpm-knowledge-base-chat 2.0.61 → 2.0.62
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/CDN/akb-chat.js +283 -299
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 2.0.
|
|
1
|
+
/* Version: 2.0.62 */
|
|
2
2
|
var Ho = Object.defineProperty;
|
|
3
3
|
var ps = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
@@ -7230,26 +7230,6 @@ function Os(t) {
|
|
|
7230
7230
|
return "Standard Agent";
|
|
7231
7231
|
}
|
|
7232
7232
|
}
|
|
7233
|
-
function gv(t) {
|
|
7234
|
-
switch (t) {
|
|
7235
|
-
case 1:
|
|
7236
|
-
return "kb";
|
|
7237
|
-
case 2:
|
|
7238
|
-
return "normative";
|
|
7239
|
-
case 3:
|
|
7240
|
-
return "suite";
|
|
7241
|
-
case 4:
|
|
7242
|
-
return "gendoc";
|
|
7243
|
-
case 5:
|
|
7244
|
-
return "transcriptions";
|
|
7245
|
-
case 6:
|
|
7246
|
-
return "audit_handler";
|
|
7247
|
-
case 7:
|
|
7248
|
-
return "suite_agent";
|
|
7249
|
-
default:
|
|
7250
|
-
return "auto";
|
|
7251
|
-
}
|
|
7252
|
-
}
|
|
7253
7233
|
function Us(t) {
|
|
7254
7234
|
try {
|
|
7255
7235
|
return new Date(parseInt(t.substring(0, 8), 16) * 1e3);
|
|
@@ -7279,7 +7259,7 @@ function Ns(t) {
|
|
|
7279
7259
|
year: n.getFullYear() !== r.getFullYear() ? "numeric" : void 0
|
|
7280
7260
|
});
|
|
7281
7261
|
}
|
|
7282
|
-
function
|
|
7262
|
+
function gv(t) {
|
|
7283
7263
|
const e = t ? new Date(t) : /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date(), r = new Date(
|
|
7284
7264
|
n.getFullYear(),
|
|
7285
7265
|
n.getMonth(),
|
|
@@ -7300,7 +7280,7 @@ const Pr = (t) => {
|
|
|
7300
7280
|
default:
|
|
7301
7281
|
return "it-IT";
|
|
7302
7282
|
}
|
|
7303
|
-
},
|
|
7283
|
+
}, mv = async (t, e) => {
|
|
7304
7284
|
const n = new FormData();
|
|
7305
7285
|
n.append("file", t), n.append("lang", Pr(e));
|
|
7306
7286
|
const r = await fetch(`${B.getUrl()}/audio/stt`, {
|
|
@@ -7313,7 +7293,7 @@ const Pr = (t) => {
|
|
|
7313
7293
|
body: n
|
|
7314
7294
|
});
|
|
7315
7295
|
return r.ok ? (await r.json()).text : (console.error("Failed to fetch text"), "");
|
|
7316
|
-
},
|
|
7296
|
+
}, bv = async (t, e) => {
|
|
7317
7297
|
const n = await fetch(`${B.getUrl()}/audio/tts`, {
|
|
7318
7298
|
method: "POST",
|
|
7319
7299
|
headers: {
|
|
@@ -7329,9 +7309,9 @@ const Pr = (t) => {
|
|
|
7329
7309
|
const r = await n.blob();
|
|
7330
7310
|
return URL.createObjectURL(r);
|
|
7331
7311
|
}, es = {
|
|
7332
|
-
getText:
|
|
7333
|
-
getAudio:
|
|
7334
|
-
},
|
|
7312
|
+
getText: mv,
|
|
7313
|
+
getAudio: bv
|
|
7314
|
+
}, wv = async (t) => {
|
|
7335
7315
|
const e = await fetch(`${B.getUrl()}/chat/${t}`, {
|
|
7336
7316
|
headers: {
|
|
7337
7317
|
akstoken: B.getToken(),
|
|
@@ -7343,7 +7323,7 @@ const Pr = (t) => {
|
|
|
7343
7323
|
throw new Error("Failed to fetch chat");
|
|
7344
7324
|
const n = await e.json();
|
|
7345
7325
|
return kn.fromJson(n);
|
|
7346
|
-
},
|
|
7326
|
+
}, xv = async (t = 0, e = 10) => {
|
|
7347
7327
|
const n = await fetch(`${B.getUrl()}/chat?skip=${t}&limit=${e}`, {
|
|
7348
7328
|
headers: {
|
|
7349
7329
|
akstoken: B.getToken(),
|
|
@@ -7354,7 +7334,7 @@ const Pr = (t) => {
|
|
|
7354
7334
|
if (!n.ok)
|
|
7355
7335
|
throw new Error("Failed to fetch chats");
|
|
7356
7336
|
return (await n.json()).map((i) => kn.fromJson(i));
|
|
7357
|
-
},
|
|
7337
|
+
}, _v = async (t) => {
|
|
7358
7338
|
const e = await fetch(`${B.getUrl()}/chat`, {
|
|
7359
7339
|
method: "POST",
|
|
7360
7340
|
headers: {
|
|
@@ -7369,7 +7349,7 @@ const Pr = (t) => {
|
|
|
7369
7349
|
throw new Error("Failed to create chat");
|
|
7370
7350
|
const n = await e.json();
|
|
7371
7351
|
return kn.fromJson(n);
|
|
7372
|
-
},
|
|
7352
|
+
}, kv = async (t, e, n, r, i, s, a, o) => {
|
|
7373
7353
|
let l, c = !1;
|
|
7374
7354
|
try {
|
|
7375
7355
|
let u = 0;
|
|
@@ -7408,7 +7388,7 @@ const Pr = (t) => {
|
|
|
7408
7388
|
}
|
|
7409
7389
|
}
|
|
7410
7390
|
return c;
|
|
7411
|
-
},
|
|
7391
|
+
}, yv = async (t, e) => {
|
|
7412
7392
|
if (!(await fetch(`${B.getUrl()}/chat/${t}/title`, {
|
|
7413
7393
|
method: "POST",
|
|
7414
7394
|
headers: {
|
|
@@ -7420,7 +7400,7 @@ const Pr = (t) => {
|
|
|
7420
7400
|
body: JSON.stringify({ title: e })
|
|
7421
7401
|
})).ok)
|
|
7422
7402
|
throw new Error("Failed to change title");
|
|
7423
|
-
},
|
|
7403
|
+
}, zv = async (t) => {
|
|
7424
7404
|
if (!(await fetch(`${B.getUrl()}/chat/${t}`, {
|
|
7425
7405
|
method: "DELETE",
|
|
7426
7406
|
headers: {
|
|
@@ -7446,7 +7426,7 @@ const Pr = (t) => {
|
|
|
7446
7426
|
})
|
|
7447
7427
|
})).ok)
|
|
7448
7428
|
throw new Error("Failed to insert message");
|
|
7449
|
-
},
|
|
7429
|
+
}, Sv = async (t, e) => new Promise((n, r) => {
|
|
7450
7430
|
const i = new FormData();
|
|
7451
7431
|
i.append("file", t);
|
|
7452
7432
|
const s = new XMLHttpRequest();
|
|
@@ -7471,7 +7451,7 @@ const Pr = (t) => {
|
|
|
7471
7451
|
}), s.addEventListener("error", () => {
|
|
7472
7452
|
r(new Error("Failed to upload file"));
|
|
7473
7453
|
}), s.open("POST", `${B.getUrl()}/files`), s.setRequestHeader("akstoken", B.getToken()), s.setRequestHeader("envid", B.getEnvironmentId()), s.setRequestHeader("ngrok-skip-browser-warning", "true"), s.send(i);
|
|
7474
|
-
}),
|
|
7454
|
+
}), Cv = async (t, e) => {
|
|
7475
7455
|
if (!(await fetch(`${B.getUrl()}/files`, {
|
|
7476
7456
|
method: "DELETE",
|
|
7477
7457
|
headers: {
|
|
@@ -7483,7 +7463,7 @@ const Pr = (t) => {
|
|
|
7483
7463
|
body: JSON.stringify({ fileId: t, filename: e })
|
|
7484
7464
|
})).ok)
|
|
7485
7465
|
throw new Error("Failed to delete file");
|
|
7486
|
-
},
|
|
7466
|
+
}, Tv = async (t) => {
|
|
7487
7467
|
if (!(await fetch(`${B.getUrl()}/chat/${t}/read`, {
|
|
7488
7468
|
method: "POST",
|
|
7489
7469
|
headers: {
|
|
@@ -7493,7 +7473,7 @@ const Pr = (t) => {
|
|
|
7493
7473
|
}
|
|
7494
7474
|
})).ok)
|
|
7495
7475
|
throw new Error("Failed to mark chat as read");
|
|
7496
|
-
},
|
|
7476
|
+
}, Iv = async () => {
|
|
7497
7477
|
const t = await fetch(`${B.getUrl()}/chat/unread`, {
|
|
7498
7478
|
headers: {
|
|
7499
7479
|
akstoken: B.getToken(),
|
|
@@ -7505,19 +7485,19 @@ const Pr = (t) => {
|
|
|
7505
7485
|
throw new Error("Failed to fetch unread chats");
|
|
7506
7486
|
return await t.json();
|
|
7507
7487
|
}, dt = {
|
|
7508
|
-
getChat:
|
|
7509
|
-
getChats:
|
|
7510
|
-
newChat:
|
|
7511
|
-
sendMessage:
|
|
7512
|
-
deleteChat:
|
|
7513
|
-
changeTitle:
|
|
7488
|
+
getChat: wv,
|
|
7489
|
+
getChats: xv,
|
|
7490
|
+
newChat: _v,
|
|
7491
|
+
sendMessage: kv,
|
|
7492
|
+
deleteChat: zv,
|
|
7493
|
+
changeTitle: yv,
|
|
7514
7494
|
insertMessage: mo,
|
|
7515
|
-
uploadFile:
|
|
7516
|
-
deleteFile:
|
|
7517
|
-
readChat:
|
|
7518
|
-
getUnreadChats:
|
|
7495
|
+
uploadFile: Sv,
|
|
7496
|
+
deleteFile: Cv,
|
|
7497
|
+
readChat: Tv,
|
|
7498
|
+
getUnreadChats: Iv
|
|
7519
7499
|
};
|
|
7520
|
-
class
|
|
7500
|
+
class Ev {
|
|
7521
7501
|
// Traccia il testo accumulato durante la registrazione
|
|
7522
7502
|
constructor(e, n) {
|
|
7523
7503
|
E(this, "mediaRecorder", null);
|
|
@@ -7715,18 +7695,18 @@ class Bs {
|
|
|
7715
7695
|
}, r.click();
|
|
7716
7696
|
}
|
|
7717
7697
|
}
|
|
7718
|
-
const
|
|
7698
|
+
const $v = (t, e, n) => {
|
|
7719
7699
|
const r = t.target;
|
|
7720
7700
|
e(r.value), n({});
|
|
7721
|
-
},
|
|
7701
|
+
}, Av = (t, e) => {
|
|
7722
7702
|
v(e, !d(e));
|
|
7723
|
-
},
|
|
7703
|
+
}, Lv = (t, e, n) => {
|
|
7724
7704
|
v(e, !1), v(n, !0);
|
|
7725
7705
|
};
|
|
7726
|
-
var
|
|
7706
|
+
var Rv = /* @__PURE__ */ $('<div class="chat-blocked-message svelte-52jnh1"><i class="fa-solid fa-clock-rotate-left svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></div>'), jv = (t, e, n, r) => {
|
|
7727
7707
|
!d(e) && !n() && v(r, C(t.target.value));
|
|
7728
|
-
},
|
|
7729
|
-
const
|
|
7708
|
+
}, Dv = /* @__PURE__ */ $('<div class="dropdown-content svelte-52jnh1"><button><i class="fa-solid fa-file-circle-plus svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></button> <button><i class="fa-solid fa-upload svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></button></div>'), Fv = /* @__PURE__ */ $('<option class="svelte-52jnh1">Generatore di Normative</option>'), Mv = /* @__PURE__ */ $('<option class="svelte-52jnh1">Analisi Rischi</option>'), Pv = /* @__PURE__ */ $('<div class="attachment-title noopen-file-button svelte-52jnh1"> </div>'), Ov = (t, e, n, r, i) => e(n(), r(), i()), Uv = /* @__PURE__ */ $('<button class="attachment-title open-file-button svelte-52jnh1"> </button>'), Nv = (t, e, n, r, i) => e(n(), r(), i()), Bv = /* @__PURE__ */ $('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-52jnh1"></i></button></div>'), qv = /* @__PURE__ */ $('<button class="btn send-button stop-recording-btn svelte-52jnh1" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Hv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Synthesizing" disabled><!></button>'), Yv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-52jnh1"></i></button>'), Gv = /* @__PURE__ */ $('<button class="btn send-button stop-stream-btn svelte-52jnh1" aria-label="Stop message"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Jv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Loading" disabled><!></button>'), Wv = /* @__PURE__ */ $('<button class="btn send-button aks-btn-answer send-message-btn svelte-52jnh1" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-52jnh1"></i></button>'), Zv = /* @__PURE__ */ $('<div class="top svelte-52jnh1"><textarea style="color: black !important;" class="form-control form-control-sm svelte-52jnh1" rows="2"></textarea></div> <div class="bottom svelte-52jnh1"><div class="controls-row svelte-52jnh1"><div class="plus-button-container svelte-52jnh1"><button><i></i></button> <!></div> <select class="mode-select svelte-52jnh1" aria-label="Select mode"><option class="svelte-52jnh1">Auto</option><option class="svelte-52jnh1">Manuale Suite</option><option class="svelte-52jnh1"> </option><option class="svelte-52jnh1">Knowledge Base</option><option class="svelte-52jnh1">GenDoc</option><option class="svelte-52jnh1">Trascrizioni</option><!><option class="svelte-52jnh1">Agente Suite</option><!></select> <div class="attachments-container svelte-52jnh1"></div> <div class="send-buttons svelte-52jnh1"><!> <!></div></div></div>', 1), Xv = /* @__PURE__ */ $('<div class="input svelte-52jnh1"><!></div> <!>', 1);
|
|
7709
|
+
const Vv = {
|
|
7730
7710
|
hash: "svelte-52jnh1",
|
|
7731
7711
|
code: `textarea.svelte-52jnh1 {border:none;overflow-y:auto;resize:none;transition:height 0.1s ease;max-height:120px; /* 5 righe circa */font-size:16px;}.noopen-file-button.svelte-52jnh1 {background:none;border:none;padding:0;font-size:0.875rem;color:black;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-52jnh1 {background:none;border:none;cursor:pointer;padding:0;font-size:0.875rem;color:white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-52jnh1:hover {background-color:transparent;text-decoration:underline;}.mode-select.svelte-52jnh1 {flex-shrink:0;height:32px;padding:0 8px;border-radius:16px;border:2px solid #e9ecef;background-color:#f8f9fa;color:#295dcf;font-size:0.8rem;font-weight:500;cursor:pointer;transition:all 0.2s ease;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);outline:none;max-width:120px;}.mode-select.svelte-52jnh1:hover {background-color:#e9ecef;border-color:#295dcf;}.mode-select.svelte-52jnh1:focus {border-color:#295dcf;box-shadow:0 0 0 3px rgba(41, 93, 207, 0.1);}.plus-button-container.svelte-52jnh1 {position:relative;flex-shrink:0;}.plus-button.svelte-52jnh1 {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;background-color:#f8f9fa;color:#295dcf;border:2px solid #e9ecef;transition:all 0.2s ease;font-size:1.1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.plus-button.svelte-52jnh1:hover {background-color:#295dcf;color:white;border-color:#295dcf;transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.plus-button.svelte-52jnh1:active {transform:scale(0.95);}.plus-button-active.svelte-52jnh1 {background-color:#295dcf;color:white;border-color:#295dcf;}.plus-button-active.svelte-52jnh1:hover {background-color:#1d4a9e;border-color:#1d4a9e;transform:scale(1.05);}.controls-row.svelte-52jnh1 {display:flex;align-items:center;width:100%;gap:5px;min-width:0;}.attachments-container.svelte-52jnh1 {display:flex;gap:5px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;\r
|
|
7732
7712
|
/* Migliore supporto per lo scroll su touch devices */-webkit-overflow-scrolling:touch;}.attachments-container.svelte-52jnh1::-webkit-scrollbar {height:6px;}.attachments-container.svelte-52jnh1::-webkit-scrollbar-track {background:#f7fafc;border-radius:3px;}.attachments-container.svelte-52jnh1::-webkit-scrollbar-thumb {background:#cbd5e0;border-radius:3px;}.attachments-container.svelte-52jnh1::-webkit-scrollbar-thumb:hover {background:#a0aec0;}.attachment-item.svelte-52jnh1 {display:flex;align-items:center;flex-shrink:0;max-width:150px;background:#515b6a;color:white;border-radius:20px;padding:3px 10px 3px 10px;gap:5px;border:none;cursor:default;box-sizing:border-box;}.attachment-item.common.svelte-52jnh1 {background:#e2e8f0;color:black;}.attachment-title.svelte-52jnh1 {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:0.875rem;}.remove-btn.svelte-52jnh1 {flex-shrink:0;width:20px;height:20px;padding:0;display:flex;align-items:center;justify-content:center;font-size:0.75rem;background:transparent;border:none;color:white;cursor:pointer;transition:100ms;}.remove-btn.common.svelte-52jnh1 {color:black;}.remove-btn.svelte-52jnh1:hover {background:rgba(255, 255, 255, 0.3);border-radius:50%;}.remove-btn.common.svelte-52jnh1:hover {background:rgba(0, 0, 0, 0.3);color:black;}.remove-btn.svelte-52jnh1 i:where(.svelte-52jnh1) {margin:0;}.input.svelte-52jnh1 {display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;background:white;border-radius:15px;margin:10px;gap:3px;width:calc(100% - 20px);min-width:0;box-sizing:border-box;}.input.svelte-52jnh1 > .top:where(.svelte-52jnh1) {display:flex;justify-content:center;align-items:center;width:100%;}.input.svelte-52jnh1 > .bottom:where(.svelte-52jnh1) {display:flex;justify-content:center;align-items:center;width:100%;min-width:0;}.send-buttons.svelte-52jnh1 {display:flex;gap:5px;flex-shrink:0;}.send-button.svelte-52jnh1 {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;transition:all 0.2s ease;border:none;font-size:1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.send-button.svelte-52jnh1:hover {transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.send-button.svelte-52jnh1:active {transform:scale(0.95);}.send-button.aks-btn-answer.svelte-52jnh1:hover {background-color:#295dcf;border-color:#295dcf;color:white;}.send-button.svelte-52jnh1:disabled {opacity:0.4;cursor:not-allowed;transform:none;filter:grayscale(0.3);}.send-button.svelte-52jnh1:disabled:hover {transform:none;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);opacity:0.4;}.send-message-btn.svelte-52jnh1 {background-color:#295dcf;color:white;}.send-message-btn.svelte-52jnh1:hover {background-color:#1d4a9e;}.stop-recording-btn.svelte-52jnh1 {background-color:#dc3545;color:white;border-color:#dc3545;}.stop-recording-btn.svelte-52jnh1:hover {background-color:#c82333;border-color:#bd2130;transform:scale(1.05);}.stop-stream-btn.svelte-52jnh1 {background-color:#6c757d;color:white;border-color:#6c757d;}.stop-stream-btn.svelte-52jnh1:hover {background-color:#5a6268;border-color:#545b62;transform:scale(1.05);}\r
|
|
@@ -7750,9 +7730,9 @@ const Qv = {
|
|
|
7750
7730
|
}`
|
|
7751
7731
|
};
|
|
7752
7732
|
function bo(t, e) {
|
|
7753
|
-
ge(e, !0), Te(t,
|
|
7733
|
+
ge(e, !0), Te(t, Vv);
|
|
7754
7734
|
let n = m(e, "sendMessage", 7), r = m(e, "stopMessage", 7), i = m(e, "loading", 15), s = m(e, "languageSelected", 15), a = m(e, "modeSelected", 15), o = m(e, "attachments", 15), l = m(e, "userLevel", 15), c = m(e, "uploadFiles", 7), u = m(e, "actChat", 15), f = m(e, "streamMessage", 15), h = m(e, "uploadingFileName", 15), p = m(e, "uploadProgress", 15), _ = J(""), k = J(null), R = J(!1), b = J(!1), w = J(""), I = /* @__PURE__ */ Ve(() => d(_) + d(w)), F = null;
|
|
7755
|
-
typeof window < "u" && (F = new
|
|
7735
|
+
typeof window < "u" && (F = new Ev(s(), {
|
|
7756
7736
|
onTranscriptUpdate: (z, N) => {
|
|
7757
7737
|
z && v(_, d(_) + (z + " "));
|
|
7758
7738
|
},
|
|
@@ -7835,29 +7815,29 @@ function bo(t, e) {
|
|
|
7835
7815
|
}), at(() => () => {
|
|
7836
7816
|
F && F.cleanup();
|
|
7837
7817
|
});
|
|
7838
|
-
var Ie =
|
|
7818
|
+
var Ie = Xv(), $e = nt(Ie), et = y($e);
|
|
7839
7819
|
{
|
|
7840
7820
|
var be = (z) => {
|
|
7841
|
-
var N =
|
|
7821
|
+
var N = Rv(), ce = M(y(N), 2), ee = y(ce, !0);
|
|
7842
7822
|
x(ce), x(N), P((Ee) => ke(ee, Ee), [() => Vd()]), S(z, N);
|
|
7843
7823
|
}, ze = (z) => {
|
|
7844
|
-
var N =
|
|
7824
|
+
var N = Zv(), ce = nt(N), ee = y(ce);
|
|
7845
7825
|
Vl(ee), ee.__input = [
|
|
7846
|
-
|
|
7826
|
+
jv,
|
|
7847
7827
|
R,
|
|
7848
7828
|
i,
|
|
7849
7829
|
_
|
|
7850
7830
|
], Rr(ee, (re) => v(k, re), () => d(k)), x(ce);
|
|
7851
7831
|
var Ee = M(ce, 2), Ae = y(Ee), tt = y(Ae), Ue = y(tt);
|
|
7852
|
-
Ue.__click = [
|
|
7832
|
+
Ue.__click = [Av, L];
|
|
7853
7833
|
var De = y(Ue);
|
|
7854
7834
|
x(Ue);
|
|
7855
7835
|
var Ge = M(Ue, 2);
|
|
7856
7836
|
{
|
|
7857
7837
|
var ct = (re) => {
|
|
7858
|
-
var q =
|
|
7838
|
+
var q = Dv(), Z = y(q);
|
|
7859
7839
|
Z.__click = [
|
|
7860
|
-
|
|
7840
|
+
Lv,
|
|
7861
7841
|
L,
|
|
7862
7842
|
T
|
|
7863
7843
|
];
|
|
@@ -7888,7 +7868,7 @@ function bo(t, e) {
|
|
|
7888
7868
|
}
|
|
7889
7869
|
x(tt);
|
|
7890
7870
|
var ut = M(tt, 2);
|
|
7891
|
-
ut.__change = [
|
|
7871
|
+
ut.__change = [$v, a, o];
|
|
7892
7872
|
var gt = y(ut);
|
|
7893
7873
|
gt.value = (gt.__value = "auto") == null ? "" : "auto";
|
|
7894
7874
|
var _e = M(gt);
|
|
@@ -7906,7 +7886,7 @@ function bo(t, e) {
|
|
|
7906
7886
|
var se = M(ie);
|
|
7907
7887
|
{
|
|
7908
7888
|
var ne = (re) => {
|
|
7909
|
-
var q =
|
|
7889
|
+
var q = Fv();
|
|
7910
7890
|
q.value = (q.__value = "audit_handler") == null ? "" : "audit_handler", S(re, q);
|
|
7911
7891
|
};
|
|
7912
7892
|
Q(se, (re) => {
|
|
@@ -7918,7 +7898,7 @@ function bo(t, e) {
|
|
|
7918
7898
|
var ve = M(Se);
|
|
7919
7899
|
{
|
|
7920
7900
|
var de = (re) => {
|
|
7921
|
-
var q =
|
|
7901
|
+
var q = Mv();
|
|
7922
7902
|
q.value = (q.__value = "risk_analysis_agent") == null ? "" : "risk_analysis_agent", S(re, q);
|
|
7923
7903
|
};
|
|
7924
7904
|
Q(ve, (re) => {
|
|
@@ -7929,10 +7909,10 @@ function bo(t, e) {
|
|
|
7929
7909
|
var Je = M(ut, 2);
|
|
7930
7910
|
ft(Je, 21, () => Object.entries(o()), vt, (re, q) => {
|
|
7931
7911
|
let Z = () => d(q)[0], he = () => d(q)[1].title, st = () => d(q)[1].ext_id, pe = () => d(q)[1].gendoc_id, j = () => d(q)[1].storage_id, Ze = () => d(q)[1].isCommon;
|
|
7932
|
-
var Tt =
|
|
7912
|
+
var Tt = Bv(), Pt = y(Tt), qt = M(Pt, 2);
|
|
7933
7913
|
{
|
|
7934
7914
|
var si = (Ht) => {
|
|
7935
|
-
var Ot =
|
|
7915
|
+
var Ot = Pv(), Hn = y(Ot, !0);
|
|
7936
7916
|
x(Ot), P(
|
|
7937
7917
|
(hs) => {
|
|
7938
7918
|
O(Ot, "title", hs), ke(Hn, hs);
|
|
@@ -7940,9 +7920,9 @@ function bo(t, e) {
|
|
|
7940
7920
|
[() => he().split(".")[0]]
|
|
7941
7921
|
), S(Ht, Ot);
|
|
7942
7922
|
}, ai = (Ht) => {
|
|
7943
|
-
var Ot =
|
|
7923
|
+
var Ot = Uv();
|
|
7944
7924
|
Ot.__click = [
|
|
7945
|
-
|
|
7925
|
+
Ov,
|
|
7946
7926
|
Ye,
|
|
7947
7927
|
st,
|
|
7948
7928
|
he,
|
|
@@ -7957,7 +7937,7 @@ function bo(t, e) {
|
|
|
7957
7937
|
}
|
|
7958
7938
|
var fr = M(qt, 2);
|
|
7959
7939
|
fr.__click = [
|
|
7960
|
-
|
|
7940
|
+
Nv,
|
|
7961
7941
|
Ke,
|
|
7962
7942
|
Z,
|
|
7963
7943
|
he,
|
|
@@ -7976,16 +7956,16 @@ function bo(t, e) {
|
|
|
7976
7956
|
var Ce = M(Je, 2), fe = y(Ce);
|
|
7977
7957
|
{
|
|
7978
7958
|
var We = (re) => {
|
|
7979
|
-
var q =
|
|
7959
|
+
var q = qv();
|
|
7980
7960
|
q.__click = W, P((Z) => O(q, "title", Z), [() => fu()]), S(re, q);
|
|
7981
7961
|
}, pt = (re) => {
|
|
7982
7962
|
var q = St(), Z = nt(q);
|
|
7983
7963
|
{
|
|
7984
7964
|
var he = (pe) => {
|
|
7985
|
-
var j =
|
|
7965
|
+
var j = Hv(), Ze = y(j);
|
|
7986
7966
|
Mr(Ze, { size: "20", color: "white" }), x(j), S(pe, j);
|
|
7987
7967
|
}, st = (pe) => {
|
|
7988
|
-
var j =
|
|
7968
|
+
var j = Yv();
|
|
7989
7969
|
j.__click = rt, P(
|
|
7990
7970
|
(Ze) => {
|
|
7991
7971
|
O(j, "title", Ze), j.disabled = i();
|
|
@@ -8010,7 +7990,7 @@ function bo(t, e) {
|
|
|
8010
7990
|
var Xe = M(fe, 2);
|
|
8011
7991
|
{
|
|
8012
7992
|
var ot = (re) => {
|
|
8013
|
-
var q =
|
|
7993
|
+
var q = Gv();
|
|
8014
7994
|
q.__click = function(...Z) {
|
|
8015
7995
|
var he;
|
|
8016
7996
|
(he = r()) == null || he.apply(this, Z);
|
|
@@ -8019,10 +7999,10 @@ function bo(t, e) {
|
|
|
8019
7999
|
var q = St(), Z = nt(q);
|
|
8020
8000
|
{
|
|
8021
8001
|
var he = (pe) => {
|
|
8022
|
-
var j =
|
|
8002
|
+
var j = Jv(), Ze = y(j);
|
|
8023
8003
|
Mr(Ze, { size: "20", color: "white" }), x(j), S(pe, j);
|
|
8024
8004
|
}, st = (pe) => {
|
|
8025
|
-
var j =
|
|
8005
|
+
var j = Wv();
|
|
8026
8006
|
j.__click = Oe, P(
|
|
8027
8007
|
(Ze, Tt) => {
|
|
8028
8008
|
O(j, "title", Ze), j.disabled = Tt;
|
|
@@ -8247,19 +8227,19 @@ const wo = /^[a-z0-9]+(-[a-z0-9]+)*$/, ti = (t, e, n, r = "") => {
|
|
|
8247
8227
|
body: "",
|
|
8248
8228
|
hidden: !1
|
|
8249
8229
|
});
|
|
8250
|
-
function
|
|
8230
|
+
function Qv(t, e) {
|
|
8251
8231
|
const n = {};
|
|
8252
8232
|
!t.hFlip != !e.hFlip && (n.hFlip = !0), !t.vFlip != !e.vFlip && (n.vFlip = !0);
|
|
8253
8233
|
const r = ((t.rotate || 0) + (e.rotate || 0)) % 4;
|
|
8254
8234
|
return r && (n.rotate = r), n;
|
|
8255
8235
|
}
|
|
8256
8236
|
function qs(t, e) {
|
|
8257
|
-
const n =
|
|
8237
|
+
const n = Qv(t, e);
|
|
8258
8238
|
for (const r in Ti)
|
|
8259
8239
|
r in Or ? r in t && !(r in n) && (n[r] = Or[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
|
|
8260
8240
|
return n;
|
|
8261
8241
|
}
|
|
8262
|
-
function
|
|
8242
|
+
function Kv(t, e) {
|
|
8263
8243
|
const n = t.icons, r = t.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
|
|
8264
8244
|
function s(a) {
|
|
8265
8245
|
if (n[a])
|
|
@@ -8273,7 +8253,7 @@ function eg(t, e) {
|
|
|
8273
8253
|
}
|
|
8274
8254
|
return Object.keys(n).concat(Object.keys(r)).forEach(s), i;
|
|
8275
8255
|
}
|
|
8276
|
-
function
|
|
8256
|
+
function eg(t, e, n) {
|
|
8277
8257
|
const r = t.icons, i = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
8278
8258
|
let s = {};
|
|
8279
8259
|
function a(o) {
|
|
@@ -8291,14 +8271,14 @@ function _o(t, e) {
|
|
|
8291
8271
|
t.not_found instanceof Array && t.not_found.forEach((i) => {
|
|
8292
8272
|
e(i, null), n.push(i);
|
|
8293
8273
|
});
|
|
8294
|
-
const r =
|
|
8274
|
+
const r = Kv(t);
|
|
8295
8275
|
for (const i in r) {
|
|
8296
8276
|
const s = r[i];
|
|
8297
|
-
s && (e(i,
|
|
8277
|
+
s && (e(i, eg(t, i, s)), n.push(i));
|
|
8298
8278
|
}
|
|
8299
8279
|
return n;
|
|
8300
8280
|
}
|
|
8301
|
-
const
|
|
8281
|
+
const tg = {
|
|
8302
8282
|
provider: "",
|
|
8303
8283
|
aliases: {},
|
|
8304
8284
|
not_found: {},
|
|
@@ -8314,7 +8294,7 @@ function ko(t) {
|
|
|
8314
8294
|
if (typeof t != "object" || t === null)
|
|
8315
8295
|
return null;
|
|
8316
8296
|
const e = t;
|
|
8317
|
-
if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !di(t,
|
|
8297
|
+
if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !di(t, tg))
|
|
8318
8298
|
return null;
|
|
8319
8299
|
const n = e.icons;
|
|
8320
8300
|
for (const i in n) {
|
|
@@ -8347,7 +8327,7 @@ function ko(t) {
|
|
|
8347
8327
|
return e;
|
|
8348
8328
|
}
|
|
8349
8329
|
const Hs = /* @__PURE__ */ Object.create(null);
|
|
8350
|
-
function
|
|
8330
|
+
function ng(t, e) {
|
|
8351
8331
|
return {
|
|
8352
8332
|
provider: t,
|
|
8353
8333
|
prefix: e,
|
|
@@ -8357,14 +8337,14 @@ function rg(t, e) {
|
|
|
8357
8337
|
}
|
|
8358
8338
|
function Mn(t, e) {
|
|
8359
8339
|
const n = Hs[t] || (Hs[t] = /* @__PURE__ */ Object.create(null));
|
|
8360
|
-
return n[e] || (n[e] =
|
|
8340
|
+
return n[e] || (n[e] = ng(t, e));
|
|
8361
8341
|
}
|
|
8362
8342
|
function yo(t, e) {
|
|
8363
8343
|
return ko(e) ? _o(e, (n, r) => {
|
|
8364
8344
|
r ? t.icons[n] = r : t.missing.add(n);
|
|
8365
8345
|
}) : [];
|
|
8366
8346
|
}
|
|
8367
|
-
function
|
|
8347
|
+
function rg(t, e, n) {
|
|
8368
8348
|
try {
|
|
8369
8349
|
if (typeof n.body == "string")
|
|
8370
8350
|
return t.icons[e] = { ...n }, !0;
|
|
@@ -8376,27 +8356,27 @@ let ir = !1;
|
|
|
8376
8356
|
function zo(t) {
|
|
8377
8357
|
return typeof t == "boolean" && (ir = t), ir;
|
|
8378
8358
|
}
|
|
8379
|
-
function
|
|
8359
|
+
function ig(t) {
|
|
8380
8360
|
const e = typeof t == "string" ? ti(t, !0, ir) : t;
|
|
8381
8361
|
if (e) {
|
|
8382
8362
|
const n = Mn(e.provider, e.prefix), r = e.name;
|
|
8383
8363
|
return n.icons[r] || (n.missing.has(r) ? null : void 0);
|
|
8384
8364
|
}
|
|
8385
8365
|
}
|
|
8386
|
-
function
|
|
8366
|
+
function sg(t, e) {
|
|
8387
8367
|
const n = ti(t, !0, ir);
|
|
8388
8368
|
if (!n)
|
|
8389
8369
|
return !1;
|
|
8390
8370
|
const r = Mn(n.provider, n.prefix);
|
|
8391
|
-
return e ?
|
|
8371
|
+
return e ? rg(r, n.name, e) : (r.missing.add(n.name), !0);
|
|
8392
8372
|
}
|
|
8393
|
-
function
|
|
8373
|
+
function ag(t, e) {
|
|
8394
8374
|
if (typeof t != "object")
|
|
8395
8375
|
return !1;
|
|
8396
8376
|
if (typeof e != "string" && (e = t.provider || ""), ir && !e && !t.prefix) {
|
|
8397
8377
|
let i = !1;
|
|
8398
8378
|
return ko(t) && (t.prefix = "", _o(t, (s, a) => {
|
|
8399
|
-
|
|
8379
|
+
sg(s, a) && (i = !0);
|
|
8400
8380
|
})), i;
|
|
8401
8381
|
}
|
|
8402
8382
|
const n = t.prefix;
|
|
@@ -8417,7 +8397,7 @@ const So = Object.freeze({
|
|
|
8417
8397
|
...So,
|
|
8418
8398
|
// Transformations
|
|
8419
8399
|
...Or
|
|
8420
|
-
}),
|
|
8400
|
+
}), og = /(-?[0-9.]*[0-9]+[0-9.]*)/g, lg = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
8421
8401
|
function Ys(t, e, n) {
|
|
8422
8402
|
if (e === 1)
|
|
8423
8403
|
return t;
|
|
@@ -8425,11 +8405,11 @@ function Ys(t, e, n) {
|
|
|
8425
8405
|
return Math.ceil(t * e * n) / n;
|
|
8426
8406
|
if (typeof t != "string")
|
|
8427
8407
|
return t;
|
|
8428
|
-
const r = t.split(
|
|
8408
|
+
const r = t.split(og);
|
|
8429
8409
|
if (r === null || !r.length)
|
|
8430
8410
|
return t;
|
|
8431
8411
|
const i = [];
|
|
8432
|
-
let s = r.shift(), a =
|
|
8412
|
+
let s = r.shift(), a = lg.test(s);
|
|
8433
8413
|
for (; ; ) {
|
|
8434
8414
|
if (a) {
|
|
8435
8415
|
const o = parseFloat(s);
|
|
@@ -8441,7 +8421,7 @@ function Ys(t, e, n) {
|
|
|
8441
8421
|
a = !a;
|
|
8442
8422
|
}
|
|
8443
8423
|
}
|
|
8444
|
-
function
|
|
8424
|
+
function cg(t, e = "defs") {
|
|
8445
8425
|
let n = "";
|
|
8446
8426
|
const r = t.indexOf("<" + e);
|
|
8447
8427
|
for (; r >= 0; ) {
|
|
@@ -8458,15 +8438,15 @@ function ug(t, e = "defs") {
|
|
|
8458
8438
|
content: t
|
|
8459
8439
|
};
|
|
8460
8440
|
}
|
|
8461
|
-
function
|
|
8441
|
+
function ug(t, e) {
|
|
8462
8442
|
return t ? "<defs>" + t + "</defs>" + e : e;
|
|
8463
8443
|
}
|
|
8464
|
-
function
|
|
8465
|
-
const r =
|
|
8466
|
-
return
|
|
8444
|
+
function dg(t, e, n) {
|
|
8445
|
+
const r = cg(t);
|
|
8446
|
+
return ug(r.defs, e + r.content + n);
|
|
8467
8447
|
}
|
|
8468
|
-
const
|
|
8469
|
-
function
|
|
8448
|
+
const fg = (t) => t === "unset" || t === "undefined" || t === "none";
|
|
8449
|
+
function hg(t, e) {
|
|
8470
8450
|
const n = {
|
|
8471
8451
|
...ni,
|
|
8472
8452
|
...t
|
|
@@ -8506,7 +8486,7 @@ function pg(t, e) {
|
|
|
8506
8486
|
);
|
|
8507
8487
|
break;
|
|
8508
8488
|
}
|
|
8509
|
-
I % 2 === 1 && (i.left !== i.top && (F = i.left, i.left = i.top, i.top = F), i.width !== i.height && (F = i.width, i.width = i.height, i.height = F)), R.length && (s =
|
|
8489
|
+
I % 2 === 1 && (i.left !== i.top && (F = i.left, i.left = i.top, i.top = F), i.width !== i.height && (F = i.width, i.width = i.height, i.height = F)), R.length && (s = dg(
|
|
8510
8490
|
s,
|
|
8511
8491
|
'<g transform="' + R.join(" ") + '">',
|
|
8512
8492
|
"</g>"
|
|
@@ -8516,7 +8496,7 @@ function pg(t, e) {
|
|
|
8516
8496
|
let u, f;
|
|
8517
8497
|
a === null ? (f = o === null ? "1em" : o === "auto" ? c : o, u = Ys(f, l / c)) : (u = a === "auto" ? l : a, f = o === null ? Ys(u, c / l) : o === "auto" ? c : o);
|
|
8518
8498
|
const h = {}, p = (k, R) => {
|
|
8519
|
-
|
|
8499
|
+
fg(R) || (h[k] = R.toString());
|
|
8520
8500
|
};
|
|
8521
8501
|
p("width", u), p("height", f);
|
|
8522
8502
|
const _ = [i.left, i.top, l, c];
|
|
@@ -8526,18 +8506,18 @@ function pg(t, e) {
|
|
|
8526
8506
|
body: s
|
|
8527
8507
|
};
|
|
8528
8508
|
}
|
|
8529
|
-
const
|
|
8530
|
-
let
|
|
8531
|
-
function
|
|
8509
|
+
const pg = /\sid="(\S+)"/g, vg = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
8510
|
+
let gg = 0;
|
|
8511
|
+
function mg(t, e = vg) {
|
|
8532
8512
|
const n = [];
|
|
8533
8513
|
let r;
|
|
8534
|
-
for (; r =
|
|
8514
|
+
for (; r = pg.exec(t); )
|
|
8535
8515
|
n.push(r[1]);
|
|
8536
8516
|
if (!n.length)
|
|
8537
8517
|
return t;
|
|
8538
8518
|
const i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
8539
8519
|
return n.forEach((s) => {
|
|
8540
|
-
const a = typeof e == "function" ? e(s) : e + (
|
|
8520
|
+
const a = typeof e == "function" ? e(s) : e + (gg++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
8541
8521
|
t = t.replace(
|
|
8542
8522
|
// Allowed characters before id: [#;"]
|
|
8543
8523
|
// Allowed characters after id: [)"], .[a-z]
|
|
@@ -8547,7 +8527,7 @@ function bg(t, e = gg) {
|
|
|
8547
8527
|
}), t = t.replace(new RegExp(i, "g"), ""), t;
|
|
8548
8528
|
}
|
|
8549
8529
|
const Ii = /* @__PURE__ */ Object.create(null);
|
|
8550
|
-
function
|
|
8530
|
+
function bg(t, e) {
|
|
8551
8531
|
Ii[t] = e;
|
|
8552
8532
|
}
|
|
8553
8533
|
function Ei(t) {
|
|
@@ -8587,14 +8567,14 @@ for (; Yn.length > 0; )
|
|
|
8587
8567
|
ns[""] = ts({
|
|
8588
8568
|
resources: ["https://api.iconify.design"].concat(yr)
|
|
8589
8569
|
});
|
|
8590
|
-
function
|
|
8570
|
+
function wg(t, e) {
|
|
8591
8571
|
const n = ts(e);
|
|
8592
8572
|
return n === null ? !1 : (ns[t] = n, !0);
|
|
8593
8573
|
}
|
|
8594
8574
|
function rs(t) {
|
|
8595
8575
|
return ns[t];
|
|
8596
8576
|
}
|
|
8597
|
-
const
|
|
8577
|
+
const xg = () => {
|
|
8598
8578
|
let t;
|
|
8599
8579
|
try {
|
|
8600
8580
|
if (t = fetch, typeof t == "function")
|
|
@@ -8602,8 +8582,8 @@ const _g = () => {
|
|
|
8602
8582
|
} catch {
|
|
8603
8583
|
}
|
|
8604
8584
|
};
|
|
8605
|
-
let Gs =
|
|
8606
|
-
function
|
|
8585
|
+
let Gs = xg();
|
|
8586
|
+
function _g(t, e) {
|
|
8607
8587
|
const n = rs(t);
|
|
8608
8588
|
if (!n)
|
|
8609
8589
|
return 0;
|
|
@@ -8620,11 +8600,11 @@ function kg(t, e) {
|
|
|
8620
8600
|
}
|
|
8621
8601
|
return r;
|
|
8622
8602
|
}
|
|
8623
|
-
function
|
|
8603
|
+
function kg(t) {
|
|
8624
8604
|
return t === 404;
|
|
8625
8605
|
}
|
|
8626
|
-
const
|
|
8627
|
-
const r = [], i =
|
|
8606
|
+
const yg = (t, e, n) => {
|
|
8607
|
+
const r = [], i = _g(t, e), s = "icons";
|
|
8628
8608
|
let a = {
|
|
8629
8609
|
type: s,
|
|
8630
8610
|
provider: t,
|
|
@@ -8640,7 +8620,7 @@ const zg = (t, e, n) => {
|
|
|
8640
8620
|
}, o = l.length), a.icons.push(l);
|
|
8641
8621
|
}), r.push(a), r;
|
|
8642
8622
|
};
|
|
8643
|
-
function
|
|
8623
|
+
function zg(t) {
|
|
8644
8624
|
if (typeof t == "string") {
|
|
8645
8625
|
const e = rs(t);
|
|
8646
8626
|
if (e)
|
|
@@ -8648,12 +8628,12 @@ function Sg(t) {
|
|
|
8648
8628
|
}
|
|
8649
8629
|
return "/";
|
|
8650
8630
|
}
|
|
8651
|
-
const
|
|
8631
|
+
const Sg = (t, e, n) => {
|
|
8652
8632
|
if (!Gs) {
|
|
8653
8633
|
n("abort", 424);
|
|
8654
8634
|
return;
|
|
8655
8635
|
}
|
|
8656
|
-
let r =
|
|
8636
|
+
let r = zg(e.provider);
|
|
8657
8637
|
switch (e.type) {
|
|
8658
8638
|
case "icons": {
|
|
8659
8639
|
const s = e.prefix, o = e.icons.join(","), l = new URLSearchParams({
|
|
@@ -8676,7 +8656,7 @@ const Cg = (t, e, n) => {
|
|
|
8676
8656
|
const a = s.status;
|
|
8677
8657
|
if (a !== 200) {
|
|
8678
8658
|
setTimeout(() => {
|
|
8679
|
-
n(
|
|
8659
|
+
n(kg(a) ? "abort" : "next", a);
|
|
8680
8660
|
});
|
|
8681
8661
|
return;
|
|
8682
8662
|
}
|
|
@@ -8694,11 +8674,11 @@ const Cg = (t, e, n) => {
|
|
|
8694
8674
|
}).catch(() => {
|
|
8695
8675
|
n("next", i);
|
|
8696
8676
|
});
|
|
8697
|
-
},
|
|
8698
|
-
prepare:
|
|
8699
|
-
send:
|
|
8677
|
+
}, Cg = {
|
|
8678
|
+
prepare: yg,
|
|
8679
|
+
send: Sg
|
|
8700
8680
|
};
|
|
8701
|
-
function
|
|
8681
|
+
function Tg(t) {
|
|
8702
8682
|
const e = {
|
|
8703
8683
|
loaded: [],
|
|
8704
8684
|
missing: [],
|
|
@@ -8731,7 +8711,7 @@ function To(t, e) {
|
|
|
8731
8711
|
r && (n.loaderCallbacks = r.filter((i) => i.id !== e));
|
|
8732
8712
|
});
|
|
8733
8713
|
}
|
|
8734
|
-
function
|
|
8714
|
+
function Ig(t) {
|
|
8735
8715
|
t.pendingCallbacksFlag || (t.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
8736
8716
|
t.pendingCallbacksFlag = !1;
|
|
8737
8717
|
const e = t.loaderCallbacks ? t.loaderCallbacks.slice(0) : [];
|
|
@@ -8769,9 +8749,9 @@ function Eg(t) {
|
|
|
8769
8749
|
});
|
|
8770
8750
|
}));
|
|
8771
8751
|
}
|
|
8772
|
-
let
|
|
8773
|
-
function
|
|
8774
|
-
const r =
|
|
8752
|
+
let Eg = 0;
|
|
8753
|
+
function $g(t, e, n) {
|
|
8754
|
+
const r = Eg++, i = To.bind(null, n, r);
|
|
8775
8755
|
if (!e.pending.length)
|
|
8776
8756
|
return i;
|
|
8777
8757
|
const s = {
|
|
@@ -8784,14 +8764,14 @@ function Ag(t, e, n) {
|
|
|
8784
8764
|
(a.loaderCallbacks || (a.loaderCallbacks = [])).push(s);
|
|
8785
8765
|
}), i;
|
|
8786
8766
|
}
|
|
8787
|
-
function
|
|
8767
|
+
function Ag(t, e = !0, n = !1) {
|
|
8788
8768
|
const r = [];
|
|
8789
8769
|
return t.forEach((i) => {
|
|
8790
8770
|
const s = typeof i == "string" ? ti(i, e, n) : i;
|
|
8791
8771
|
s && r.push(s);
|
|
8792
8772
|
}), r;
|
|
8793
8773
|
}
|
|
8794
|
-
var
|
|
8774
|
+
var Lg = {
|
|
8795
8775
|
resources: [],
|
|
8796
8776
|
index: 0,
|
|
8797
8777
|
timeout: 2e3,
|
|
@@ -8799,7 +8779,7 @@ var Rg = {
|
|
|
8799
8779
|
random: !1,
|
|
8800
8780
|
dataAfterTimeout: !1
|
|
8801
8781
|
};
|
|
8802
|
-
function
|
|
8782
|
+
function Rg(t, e, n, r) {
|
|
8803
8783
|
const i = t.resources.length, s = t.random ? Math.floor(Math.random() * i) : t.index;
|
|
8804
8784
|
let a;
|
|
8805
8785
|
if (t.random) {
|
|
@@ -8902,7 +8882,7 @@ function jg(t, e, n, r) {
|
|
|
8902
8882
|
}
|
|
8903
8883
|
function Io(t) {
|
|
8904
8884
|
const e = {
|
|
8905
|
-
...
|
|
8885
|
+
...Lg,
|
|
8906
8886
|
...t
|
|
8907
8887
|
};
|
|
8908
8888
|
let n = [];
|
|
@@ -8910,7 +8890,7 @@ function Io(t) {
|
|
|
8910
8890
|
n = n.filter((o) => o().status === "pending");
|
|
8911
8891
|
}
|
|
8912
8892
|
function i(o, l, c) {
|
|
8913
|
-
const u =
|
|
8893
|
+
const u = Rg(
|
|
8914
8894
|
e,
|
|
8915
8895
|
o,
|
|
8916
8896
|
l,
|
|
@@ -8936,7 +8916,7 @@ function Io(t) {
|
|
|
8936
8916
|
function Js() {
|
|
8937
8917
|
}
|
|
8938
8918
|
const fi = /* @__PURE__ */ Object.create(null);
|
|
8939
|
-
function
|
|
8919
|
+
function jg(t) {
|
|
8940
8920
|
if (!fi[t]) {
|
|
8941
8921
|
const e = rs(t);
|
|
8942
8922
|
if (!e)
|
|
@@ -8949,14 +8929,14 @@ function Dg(t) {
|
|
|
8949
8929
|
}
|
|
8950
8930
|
return fi[t];
|
|
8951
8931
|
}
|
|
8952
|
-
function
|
|
8932
|
+
function Dg(t, e, n) {
|
|
8953
8933
|
let r, i;
|
|
8954
8934
|
if (typeof t == "string") {
|
|
8955
8935
|
const s = Ei(t);
|
|
8956
8936
|
if (!s)
|
|
8957
8937
|
return n(void 0, 424), Js;
|
|
8958
8938
|
i = s.send;
|
|
8959
|
-
const a =
|
|
8939
|
+
const a = jg(t);
|
|
8960
8940
|
a && (r = a.redundancy);
|
|
8961
8941
|
} else {
|
|
8962
8942
|
const s = ts(t);
|
|
@@ -8970,12 +8950,12 @@ function Fg(t, e, n) {
|
|
|
8970
8950
|
}
|
|
8971
8951
|
function Ws() {
|
|
8972
8952
|
}
|
|
8973
|
-
function
|
|
8953
|
+
function Fg(t) {
|
|
8974
8954
|
t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
|
|
8975
|
-
t.iconsLoaderFlag = !1,
|
|
8955
|
+
t.iconsLoaderFlag = !1, Ig(t);
|
|
8976
8956
|
}));
|
|
8977
8957
|
}
|
|
8978
|
-
function
|
|
8958
|
+
function Mg(t) {
|
|
8979
8959
|
const e = [], n = [];
|
|
8980
8960
|
return t.forEach((r) => {
|
|
8981
8961
|
(r.match(wo) ? e : n).push(r);
|
|
@@ -9000,7 +8980,7 @@ function Gn(t, e, n) {
|
|
|
9000
8980
|
} catch (i) {
|
|
9001
8981
|
console.error(i);
|
|
9002
8982
|
}
|
|
9003
|
-
r(),
|
|
8983
|
+
r(), Fg(t);
|
|
9004
8984
|
}
|
|
9005
8985
|
function Zs(t, e) {
|
|
9006
8986
|
t instanceof Promise ? t.then((n) => {
|
|
@@ -9009,7 +8989,7 @@ function Zs(t, e) {
|
|
|
9009
8989
|
e(null);
|
|
9010
8990
|
}) : e(t);
|
|
9011
8991
|
}
|
|
9012
|
-
function
|
|
8992
|
+
function Pg(t, e) {
|
|
9013
8993
|
t.iconsToLoad ? t.iconsToLoad = t.iconsToLoad.concat(e).sort() : t.iconsToLoad = e, t.iconsQueueFlag || (t.iconsQueueFlag = !0, setTimeout(() => {
|
|
9014
8994
|
t.iconsQueueFlag = !1;
|
|
9015
8995
|
const { provider: n, prefix: r } = t, i = t.iconsToLoad;
|
|
@@ -9040,7 +9020,7 @@ function Og(t, e) {
|
|
|
9040
9020
|
});
|
|
9041
9021
|
return;
|
|
9042
9022
|
}
|
|
9043
|
-
const { valid: a, invalid: o } =
|
|
9023
|
+
const { valid: a, invalid: o } = Mg(i);
|
|
9044
9024
|
if (o.length && Gn(t, o, null), !a.length)
|
|
9045
9025
|
return;
|
|
9046
9026
|
const l = r.match(wo) ? Ei(n) : null;
|
|
@@ -9049,14 +9029,14 @@ function Og(t, e) {
|
|
|
9049
9029
|
return;
|
|
9050
9030
|
}
|
|
9051
9031
|
l.prepare(n, r, a).forEach((u) => {
|
|
9052
|
-
|
|
9032
|
+
Dg(n, u, (f) => {
|
|
9053
9033
|
Gn(t, u.icons, f);
|
|
9054
9034
|
});
|
|
9055
9035
|
});
|
|
9056
9036
|
}));
|
|
9057
9037
|
}
|
|
9058
|
-
const
|
|
9059
|
-
const n =
|
|
9038
|
+
const Og = (t, e) => {
|
|
9039
|
+
const n = Ag(t, !0, zo()), r = Tg(n);
|
|
9060
9040
|
if (!r.pending.length) {
|
|
9061
9041
|
let l = !0;
|
|
9062
9042
|
return e && setTimeout(() => {
|
|
@@ -9084,10 +9064,10 @@ const Ug = (t, e) => {
|
|
|
9084
9064
|
p.has(f) || (p.add(f), i[c][u].push(f));
|
|
9085
9065
|
}), s.forEach((l) => {
|
|
9086
9066
|
const c = i[l.provider][l.prefix];
|
|
9087
|
-
c.length &&
|
|
9088
|
-
}), e ?
|
|
9067
|
+
c.length && Pg(l, c);
|
|
9068
|
+
}), e ? $g(e, r, s) : Ws;
|
|
9089
9069
|
};
|
|
9090
|
-
function
|
|
9070
|
+
function Ug(t, e) {
|
|
9091
9071
|
const n = {
|
|
9092
9072
|
...t
|
|
9093
9073
|
};
|
|
@@ -9097,9 +9077,9 @@ function Ng(t, e) {
|
|
|
9097
9077
|
}
|
|
9098
9078
|
return n;
|
|
9099
9079
|
}
|
|
9100
|
-
const
|
|
9101
|
-
function
|
|
9102
|
-
e.split(
|
|
9080
|
+
const Ng = /[\s,]+/;
|
|
9081
|
+
function Bg(t, e) {
|
|
9082
|
+
e.split(Ng).forEach((n) => {
|
|
9103
9083
|
switch (n.trim()) {
|
|
9104
9084
|
case "horizontal":
|
|
9105
9085
|
t.hFlip = !0;
|
|
@@ -9110,7 +9090,7 @@ function qg(t, e) {
|
|
|
9110
9090
|
}
|
|
9111
9091
|
});
|
|
9112
9092
|
}
|
|
9113
|
-
function
|
|
9093
|
+
function qg(t, e = 0) {
|
|
9114
9094
|
const n = t.replace(/^-?[0-9.]*/, "");
|
|
9115
9095
|
function r(i) {
|
|
9116
9096
|
for (; i < 0; )
|
|
@@ -9136,30 +9116,30 @@ function Hg(t, e = 0) {
|
|
|
9136
9116
|
}
|
|
9137
9117
|
return e;
|
|
9138
9118
|
}
|
|
9139
|
-
function
|
|
9119
|
+
function Hg(t, e) {
|
|
9140
9120
|
let n = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
9141
9121
|
for (const r in e)
|
|
9142
9122
|
n += " " + r + '="' + e[r] + '"';
|
|
9143
9123
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + t + "</svg>";
|
|
9144
9124
|
}
|
|
9145
|
-
function
|
|
9125
|
+
function Yg(t) {
|
|
9146
9126
|
return t.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
9147
9127
|
}
|
|
9148
|
-
function
|
|
9149
|
-
return "data:image/svg+xml," +
|
|
9128
|
+
function Gg(t) {
|
|
9129
|
+
return "data:image/svg+xml," + Yg(t);
|
|
9150
9130
|
}
|
|
9151
|
-
function
|
|
9152
|
-
return 'url("' +
|
|
9131
|
+
function Jg(t) {
|
|
9132
|
+
return 'url("' + Gg(t) + '")';
|
|
9153
9133
|
}
|
|
9154
9134
|
const Xs = {
|
|
9155
9135
|
...Co,
|
|
9156
9136
|
inline: !1
|
|
9157
|
-
},
|
|
9137
|
+
}, Wg = {
|
|
9158
9138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9159
9139
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
9160
9140
|
"aria-hidden": !0,
|
|
9161
9141
|
role: "img"
|
|
9162
|
-
},
|
|
9142
|
+
}, Zg = {
|
|
9163
9143
|
display: "inline-block"
|
|
9164
9144
|
}, $i = {
|
|
9165
9145
|
"background-color": "currentColor"
|
|
@@ -9179,11 +9159,11 @@ for (const t in Qs) {
|
|
|
9179
9159
|
for (const n in Vs)
|
|
9180
9160
|
e[t + "-" + n] = Vs[n];
|
|
9181
9161
|
}
|
|
9182
|
-
function
|
|
9162
|
+
function Xg(t) {
|
|
9183
9163
|
return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
|
|
9184
9164
|
}
|
|
9185
|
-
function
|
|
9186
|
-
const n =
|
|
9165
|
+
function Vg(t, e) {
|
|
9166
|
+
const n = Ug(Xs, e), r = e.mode || "svg", i = r === "svg" ? { ...Wg } : {};
|
|
9187
9167
|
t.body.indexOf("xlink:") === -1 && delete i["xmlns:xlink"];
|
|
9188
9168
|
let s = typeof e.style == "string" ? e.style : "";
|
|
9189
9169
|
for (let b in e) {
|
|
@@ -9202,13 +9182,13 @@ function Qg(t, e) {
|
|
|
9202
9182
|
n[b] = w === !0 || w === "true" || w === 1;
|
|
9203
9183
|
break;
|
|
9204
9184
|
case "flip":
|
|
9205
|
-
typeof w == "string" &&
|
|
9185
|
+
typeof w == "string" && Bg(n, w);
|
|
9206
9186
|
break;
|
|
9207
9187
|
case "color":
|
|
9208
9188
|
s = s + (s.length > 0 && s.trim().slice(-1) !== ";" ? ";" : "") + "color: " + w + "; ";
|
|
9209
9189
|
break;
|
|
9210
9190
|
case "rotate":
|
|
9211
|
-
typeof w == "string" ? n[b] =
|
|
9191
|
+
typeof w == "string" ? n[b] = qg(w) : typeof w == "number" && (n[b] = w);
|
|
9212
9192
|
break;
|
|
9213
9193
|
case "ariaHidden":
|
|
9214
9194
|
case "aria-hidden":
|
|
@@ -9220,27 +9200,27 @@ function Qg(t, e) {
|
|
|
9220
9200
|
Xs[b] === void 0 && (i[b] = w);
|
|
9221
9201
|
}
|
|
9222
9202
|
}
|
|
9223
|
-
const a =
|
|
9203
|
+
const a = hg(t, n), o = a.attributes;
|
|
9224
9204
|
if (n.inline && (s = "vertical-align: -0.125em; " + s), r === "svg") {
|
|
9225
9205
|
Object.assign(i, o), s !== "" && (i.style = s);
|
|
9226
9206
|
let b = 0, w = e.id;
|
|
9227
9207
|
return typeof w == "string" && (w = w.replace(/-/g, "_")), {
|
|
9228
9208
|
svg: !0,
|
|
9229
9209
|
attributes: i,
|
|
9230
|
-
body:
|
|
9210
|
+
body: mg(a.body, w ? () => w + "ID" + b++ : "iconifySvelte")
|
|
9231
9211
|
};
|
|
9232
9212
|
}
|
|
9233
|
-
const { body: l, width: c, height: u } = t, f = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), h =
|
|
9213
|
+
const { body: l, width: c, height: u } = t, f = r === "mask" || (r === "bg" ? !1 : l.indexOf("currentColor") !== -1), h = Hg(l, {
|
|
9234
9214
|
...o,
|
|
9235
9215
|
width: c + "",
|
|
9236
9216
|
height: u + ""
|
|
9237
9217
|
}), _ = {
|
|
9238
|
-
"--svg":
|
|
9218
|
+
"--svg": Jg(h)
|
|
9239
9219
|
}, k = (b) => {
|
|
9240
9220
|
const w = o[b];
|
|
9241
|
-
w && (_[b] =
|
|
9221
|
+
w && (_[b] = Xg(w));
|
|
9242
9222
|
};
|
|
9243
|
-
k("width"), k("height"), Object.assign(_,
|
|
9223
|
+
k("width"), k("height"), Object.assign(_, Zg, f ? $i : Eo);
|
|
9244
9224
|
let R = "";
|
|
9245
9225
|
for (const b in _)
|
|
9246
9226
|
R += b + ": " + _[b] + ";";
|
|
@@ -9250,7 +9230,7 @@ function Qg(t, e) {
|
|
|
9250
9230
|
};
|
|
9251
9231
|
}
|
|
9252
9232
|
zo(!0);
|
|
9253
|
-
|
|
9233
|
+
bg("", Cg);
|
|
9254
9234
|
if (typeof document < "u" && typeof window < "u") {
|
|
9255
9235
|
const t = window;
|
|
9256
9236
|
if (t.IconifyPreload !== void 0) {
|
|
@@ -9260,7 +9240,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
9260
9240
|
// Check if item is an object and not null/array
|
|
9261
9241
|
(typeof r != "object" || r === null || r instanceof Array || // Check for 'icons' and 'prefix'
|
|
9262
9242
|
typeof r.icons != "object" || typeof r.prefix != "string" || // Add icon set
|
|
9263
|
-
!
|
|
9243
|
+
!ag(r)) && console.error(n);
|
|
9264
9244
|
} catch {
|
|
9265
9245
|
console.error(n);
|
|
9266
9246
|
}
|
|
@@ -9275,14 +9255,14 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
9275
9255
|
const i = e[n];
|
|
9276
9256
|
if (typeof i != "object" || !i || i.resources === void 0)
|
|
9277
9257
|
continue;
|
|
9278
|
-
|
|
9258
|
+
wg(n, i) || console.error(r);
|
|
9279
9259
|
} catch {
|
|
9280
9260
|
console.error(r);
|
|
9281
9261
|
}
|
|
9282
9262
|
}
|
|
9283
9263
|
}
|
|
9284
9264
|
}
|
|
9285
|
-
function
|
|
9265
|
+
function Qg(t, e, n, r, i) {
|
|
9286
9266
|
function s() {
|
|
9287
9267
|
e.loading && (e.loading.abort(), e.loading = null);
|
|
9288
9268
|
}
|
|
@@ -9291,23 +9271,23 @@ function Kg(t, e, n, r, i) {
|
|
|
9291
9271
|
let a;
|
|
9292
9272
|
if (typeof t != "string" || (a = ti(t, !1, !0)) === null)
|
|
9293
9273
|
return s(), null;
|
|
9294
|
-
const o =
|
|
9274
|
+
const o = ig(a);
|
|
9295
9275
|
if (!o)
|
|
9296
9276
|
return n && (!e.loading || e.loading.name !== t) && (s(), e.name = "", e.loading = {
|
|
9297
9277
|
name: t,
|
|
9298
|
-
abort:
|
|
9278
|
+
abort: Og([a], r)
|
|
9299
9279
|
}), null;
|
|
9300
9280
|
s(), e.name !== t && (e.name = t, i && !e.destroyed && i(t));
|
|
9301
9281
|
const l = ["iconify"];
|
|
9302
9282
|
return a.prefix !== "" && l.push("iconify--" + a.prefix), a.provider !== "" && l.push("iconify--" + a.provider), { data: o, classes: l };
|
|
9303
9283
|
}
|
|
9304
9284
|
function Ks(t, e) {
|
|
9305
|
-
return t ?
|
|
9285
|
+
return t ? Vg({
|
|
9306
9286
|
...ni,
|
|
9307
9287
|
...t
|
|
9308
9288
|
}, e) : null;
|
|
9309
9289
|
}
|
|
9310
|
-
var
|
|
9290
|
+
var Kg = /* @__PURE__ */ Kl("<svg><!></svg>"), em = /* @__PURE__ */ $("<span></span>");
|
|
9311
9291
|
function fn(t, e) {
|
|
9312
9292
|
const n = yc(e, [
|
|
9313
9293
|
"children",
|
|
@@ -9340,7 +9320,7 @@ function fn(t, e) {
|
|
|
9340
9320
|
() => (d(s), qn(n), d(i), d(r), d(a), Ks),
|
|
9341
9321
|
() => {
|
|
9342
9322
|
d(s);
|
|
9343
|
-
const h = !!n.ssr || d(i), p =
|
|
9323
|
+
const h = !!n.ssr || d(i), p = Qg(n.icon, d(r), h, l, o);
|
|
9344
9324
|
v(a, p ? Ks(p.data, n) : null), d(a) && p.classes && ci(a, d(a).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + p.classes.join(" "));
|
|
9345
9325
|
}
|
|
9346
9326
|
), lr(), Ct();
|
|
@@ -9350,12 +9330,12 @@ function fn(t, e) {
|
|
|
9350
9330
|
var p = St(), _ = nt(p);
|
|
9351
9331
|
{
|
|
9352
9332
|
var k = (b) => {
|
|
9353
|
-
var w =
|
|
9333
|
+
var w = Kg();
|
|
9354
9334
|
let I;
|
|
9355
9335
|
var F = y(w);
|
|
9356
9336
|
xr(F, () => d(a).body, !0, !1), x(w), P(() => I = ys(w, I, { ...d(a).attributes }, void 0, !0)), S(b, w);
|
|
9357
9337
|
}, R = (b) => {
|
|
9358
|
-
var w =
|
|
9338
|
+
var w = em();
|
|
9359
9339
|
let I;
|
|
9360
9340
|
P(() => I = ys(w, I, { ...d(a).attributes })), S(b, w);
|
|
9361
9341
|
};
|
|
@@ -9459,26 +9439,26 @@ const bt = {
|
|
|
9459
9439
|
fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
|
|
9460
9440
|
headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
|
|
9461
9441
|
htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
9462
|
-
},
|
|
9463
|
-
blockquote:
|
|
9464
|
-
code:
|
|
9465
|
-
def:
|
|
9466
|
-
fences:
|
|
9467
|
-
heading:
|
|
9442
|
+
}, tm = /^(?:[ \t]*(?:\n|$))+/, nm = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, rm = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, dr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, im = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ss = /(?:[*+-]|\d{1,9}[.)])/, Ao = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Lo = Pe(Ao).replace(/bull/g, ss).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), sm = Pe(Ao).replace(/bull/g, ss).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), as = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, am = /^[^\n]+/, os = /(?!\s*\])(?:\\.|[^\[\]\\])+/, om = Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", os).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), lm = Pe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ss).getRegex(), ri = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", ls = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, cm = Pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", ls).replace("tag", ri).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ro = Pe(as).replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ri).getRegex(), um = Pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ro).getRegex(), cs = {
|
|
9443
|
+
blockquote: um,
|
|
9444
|
+
code: nm,
|
|
9445
|
+
def: om,
|
|
9446
|
+
fences: rm,
|
|
9447
|
+
heading: im,
|
|
9468
9448
|
hr: dr,
|
|
9469
|
-
html:
|
|
9449
|
+
html: cm,
|
|
9470
9450
|
lheading: Lo,
|
|
9471
|
-
list:
|
|
9472
|
-
newline:
|
|
9451
|
+
list: lm,
|
|
9452
|
+
newline: tm,
|
|
9473
9453
|
paragraph: Ro,
|
|
9474
9454
|
table: Vn,
|
|
9475
|
-
text:
|
|
9476
|
-
}, ea = Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ri).getRegex(),
|
|
9455
|
+
text: am
|
|
9456
|
+
}, ea = Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ri).getRegex(), dm = {
|
|
9477
9457
|
...cs,
|
|
9478
|
-
lheading:
|
|
9458
|
+
lheading: sm,
|
|
9479
9459
|
table: ea,
|
|
9480
9460
|
paragraph: Pe(as).replace("hr", dr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ea).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ri).getRegex()
|
|
9481
|
-
},
|
|
9461
|
+
}, fm = {
|
|
9482
9462
|
...cs,
|
|
9483
9463
|
html: Pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", ls).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
9484
9464
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
@@ -9488,59 +9468,59 @@ const bt = {
|
|
|
9488
9468
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
9489
9469
|
paragraph: Pe(as).replace("hr", dr).replace("heading", ` *#{1,6} *[^
|
|
9490
9470
|
]`).replace("lheading", Lo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
9491
|
-
},
|
|
9471
|
+
}, hm = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pm = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, jo = /^( {2,}|\\)\n(?!\s*$)/, vm = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ii = /[\p{P}\p{S}]/u, us = /[\s\p{P}\p{S}]/u, Do = /[^\s\p{P}\p{S}]/u, gm = Pe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, us).getRegex(), Fo = /(?!~)[\p{P}\p{S}]/u, mm = /(?!~)[\s\p{P}\p{S}]/u, bm = /(?:[^\s\p{P}\p{S}]|~)/u, wm = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Mo = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, xm = Pe(Mo, "u").replace(/punct/g, ii).getRegex(), _m = Pe(Mo, "u").replace(/punct/g, Fo).getRegex(), Po = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", km = Pe(Po, "gu").replace(/notPunctSpace/g, Do).replace(/punctSpace/g, us).replace(/punct/g, ii).getRegex(), ym = Pe(Po, "gu").replace(/notPunctSpace/g, bm).replace(/punctSpace/g, mm).replace(/punct/g, Fo).getRegex(), zm = Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Do).replace(/punctSpace/g, us).replace(/punct/g, ii).getRegex(), Sm = Pe(/\\(punct)/, "gu").replace(/punct/g, ii).getRegex(), Cm = Pe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Tm = Pe(ls).replace("(?:-->|$)", "-->").getRegex(), Im = Pe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Tm).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ur = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Em = Pe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ur).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Oo = Pe(/^!?\[(label)\]\[(ref)\]/).replace("label", Ur).replace("ref", os).getRegex(), Uo = Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref", os).getRegex(), $m = Pe("reflink|nolink(?!\\()", "g").replace("reflink", Oo).replace("nolink", Uo).getRegex(), ds = {
|
|
9492
9472
|
_backpedal: Vn,
|
|
9493
9473
|
// only used for GFM url
|
|
9494
|
-
anyPunctuation:
|
|
9495
|
-
autolink:
|
|
9496
|
-
blockSkip:
|
|
9474
|
+
anyPunctuation: Sm,
|
|
9475
|
+
autolink: Cm,
|
|
9476
|
+
blockSkip: wm,
|
|
9497
9477
|
br: jo,
|
|
9498
|
-
code:
|
|
9478
|
+
code: pm,
|
|
9499
9479
|
del: Vn,
|
|
9500
|
-
emStrongLDelim:
|
|
9501
|
-
emStrongRDelimAst:
|
|
9502
|
-
emStrongRDelimUnd:
|
|
9503
|
-
escape:
|
|
9504
|
-
link:
|
|
9480
|
+
emStrongLDelim: xm,
|
|
9481
|
+
emStrongRDelimAst: km,
|
|
9482
|
+
emStrongRDelimUnd: zm,
|
|
9483
|
+
escape: hm,
|
|
9484
|
+
link: Em,
|
|
9505
9485
|
nolink: Uo,
|
|
9506
|
-
punctuation:
|
|
9486
|
+
punctuation: gm,
|
|
9507
9487
|
reflink: Oo,
|
|
9508
|
-
reflinkSearch:
|
|
9509
|
-
tag:
|
|
9510
|
-
text:
|
|
9488
|
+
reflinkSearch: $m,
|
|
9489
|
+
tag: Im,
|
|
9490
|
+
text: vm,
|
|
9511
9491
|
url: Vn
|
|
9512
|
-
},
|
|
9492
|
+
}, Am = {
|
|
9513
9493
|
...ds,
|
|
9514
9494
|
link: Pe(/^!?\[(label)\]\((.*?)\)/).replace("label", Ur).getRegex(),
|
|
9515
9495
|
reflink: Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ur).getRegex()
|
|
9516
9496
|
}, Ai = {
|
|
9517
9497
|
...ds,
|
|
9518
|
-
emStrongRDelimAst:
|
|
9519
|
-
emStrongLDelim:
|
|
9498
|
+
emStrongRDelimAst: ym,
|
|
9499
|
+
emStrongLDelim: _m,
|
|
9520
9500
|
url: Pe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
9521
9501
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
9522
9502
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
9523
9503
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
9524
|
-
},
|
|
9504
|
+
}, Lm = {
|
|
9525
9505
|
...Ai,
|
|
9526
9506
|
br: Pe(jo).replace("{2,}", "*").getRegex(),
|
|
9527
9507
|
text: Pe(Ai.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
9528
9508
|
}, mr = {
|
|
9529
9509
|
normal: cs,
|
|
9530
|
-
gfm:
|
|
9531
|
-
pedantic:
|
|
9510
|
+
gfm: dm,
|
|
9511
|
+
pedantic: fm
|
|
9532
9512
|
}, Jn = {
|
|
9533
9513
|
normal: ds,
|
|
9534
9514
|
gfm: Ai,
|
|
9535
|
-
breaks:
|
|
9536
|
-
pedantic:
|
|
9537
|
-
},
|
|
9515
|
+
breaks: Lm,
|
|
9516
|
+
pedantic: Am
|
|
9517
|
+
}, Rm = {
|
|
9538
9518
|
"&": "&",
|
|
9539
9519
|
"<": "<",
|
|
9540
9520
|
">": ">",
|
|
9541
9521
|
'"': """,
|
|
9542
9522
|
"'": "'"
|
|
9543
|
-
}, ta = (t) =>
|
|
9523
|
+
}, ta = (t) => Rm[t];
|
|
9544
9524
|
function Yt(t, e) {
|
|
9545
9525
|
if (e) {
|
|
9546
9526
|
if (bt.escapeTest.test(t))
|
|
@@ -9585,7 +9565,7 @@ function Wn(t, e, n) {
|
|
|
9585
9565
|
i++;
|
|
9586
9566
|
return t.slice(0, r - i);
|
|
9587
9567
|
}
|
|
9588
|
-
function
|
|
9568
|
+
function jm(t, e) {
|
|
9589
9569
|
if (t.indexOf(e[1]) === -1)
|
|
9590
9570
|
return -1;
|
|
9591
9571
|
let n = 0;
|
|
@@ -9620,7 +9600,7 @@ function ia(t, e, n, r, i) {
|
|
|
9620
9600
|
text: o
|
|
9621
9601
|
};
|
|
9622
9602
|
}
|
|
9623
|
-
function
|
|
9603
|
+
function Dm(t, e, n) {
|
|
9624
9604
|
const r = t.match(n.other.indentCodeCompensation);
|
|
9625
9605
|
if (r === null)
|
|
9626
9606
|
return e;
|
|
@@ -9668,7 +9648,7 @@ class Nr {
|
|
|
9668
9648
|
fences(e) {
|
|
9669
9649
|
const n = this.rules.block.fences.exec(e);
|
|
9670
9650
|
if (n) {
|
|
9671
|
-
const r = n[0], i =
|
|
9651
|
+
const r = n[0], i = Dm(r, n[3] || "", this.rules);
|
|
9672
9652
|
return {
|
|
9673
9653
|
type: "code",
|
|
9674
9654
|
raw: r,
|
|
@@ -9954,7 +9934,7 @@ ${f}` : f;
|
|
|
9954
9934
|
if ((r.length - a.length) % 2 === 0)
|
|
9955
9935
|
return;
|
|
9956
9936
|
} else {
|
|
9957
|
-
const a =
|
|
9937
|
+
const a = jm(n[2], "()");
|
|
9958
9938
|
if (a > -1) {
|
|
9959
9939
|
const l = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + a;
|
|
9960
9940
|
n[2] = n[2].substring(0, a), n[0] = n[0].substring(0, l).trim(), n[3] = "";
|
|
@@ -10734,7 +10714,7 @@ E(Qn, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
|
10734
10714
|
"postprocess",
|
|
10735
10715
|
"processAllTokens"
|
|
10736
10716
|
]));
|
|
10737
|
-
class
|
|
10717
|
+
class Fm {
|
|
10738
10718
|
constructor(...e) {
|
|
10739
10719
|
E(this, "defaults", is());
|
|
10740
10720
|
E(this, "options", this.setOptions);
|
|
@@ -10907,7 +10887,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
10907
10887
|
};
|
|
10908
10888
|
}
|
|
10909
10889
|
}
|
|
10910
|
-
const zn = new
|
|
10890
|
+
const zn = new Fm();
|
|
10911
10891
|
function Fe(t, e) {
|
|
10912
10892
|
return zn.parse(t, e);
|
|
10913
10893
|
}
|
|
@@ -10939,7 +10919,7 @@ Fe.walkTokens;
|
|
|
10939
10919
|
Fe.parseInline;
|
|
10940
10920
|
jt.parse;
|
|
10941
10921
|
Rt.lex;
|
|
10942
|
-
const
|
|
10922
|
+
const Mm = async (t, e, n) => {
|
|
10943
10923
|
const r = Zp(e()), i = Xp(e());
|
|
10944
10924
|
try {
|
|
10945
10925
|
await Vp(r, i), n();
|
|
@@ -10952,13 +10932,13 @@ const Pm = async (t, e, n) => {
|
|
|
10952
10932
|
}
|
|
10953
10933
|
}
|
|
10954
10934
|
};
|
|
10955
|
-
var
|
|
10956
|
-
const
|
|
10935
|
+
var Pm = (t, e, n) => e(d(n)), Om = /* @__PURE__ */ $('<i class="fa-solid fa-spinner fa-spin svelte-1tn93gt"></i>'), Um = /* @__PURE__ */ $("<i></i>"), Nm = /* @__PURE__ */ $('<div class="document-path svelte-1tn93gt"> </div>'), Bm = /* @__PURE__ */ $('<button><!> <div class="document-info svelte-1tn93gt"><span class="document-title svelte-1tn93gt"> </span> <!></div></button>'), qm = /* @__PURE__ */ $('<div class="sources-expanded svelte-1tn93gt"><div class="sources-header svelte-1tn93gt"></div> <div class="sources-list svelte-1tn93gt"></div> <div class="sources-footer svelte-1tn93gt"><button class="copy-sources-btn svelte-1tn93gt"><i class="fa-solid fa-copy svelte-1tn93gt"></i> <span> </span></button></div></div>'), Hm = /* @__PURE__ */ $('<div class="sources-container svelte-1tn93gt"><!></div>'), Ym = /* @__PURE__ */ $('<div class="message-attachments"><!></div>');
|
|
10936
|
+
const Gm = {
|
|
10957
10937
|
hash: "svelte-1tn93gt",
|
|
10958
10938
|
code: ".sources-container.svelte-1tn93gt {display:flex;flex-direction:column;width:100%;}.sources-expanded.svelte-1tn93gt {background:rgba(255, 255, 255, 0.2);border-radius:0 0 8px 0;box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);margin-top:-10px;overflow:hidden;max-width:100%;}.sources-header.svelte-1tn93gt {height:10px;}.sources-footer.svelte-1tn93gt {display:flex;justify-content:flex-end;align-items:center;padding:0 10px 10px 10px;}.sources-title.svelte-1tn93gt {margin:0;font-size:16px;font-weight:600;color:#333;}.copy-sources-btn.svelte-1tn93gt {display:flex;align-items:center;gap:6px;padding:8px 12px;background:rgba(255, 255, 255, 0.9);color:#295dcf;border:1px solid rgba(255, 255, 255, 0.3);border-radius:8px;cursor:pointer;font-size:13px;transition:all 0.2s;white-space:nowrap;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.copy-sources-btn.svelte-1tn93gt:hover {background:white;box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.copy-sources-btn.svelte-1tn93gt i:where(.svelte-1tn93gt) {font-size:12px;}.sources-list.svelte-1tn93gt {display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:8px;padding:10px;}.dropdown-option.svelte-1tn93gt {display:flex;align-items:center;width:100%;min-width:0;padding:12px 15px;border:1px solid rgba(255, 255, 255, 0.5);border-radius:8px;background:white;color:#333;cursor:pointer;transition:all 0.2s;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.dropdown-option.svelte-1tn93gt:disabled {cursor:wait;opacity:0.7;}.dropdown-option.common.svelte-1tn93gt {color:#8fa1c9;cursor:default;opacity:0.8;}.dropdown-option.svelte-1tn93gt:hover {background:white;color:#295dcf;border-color:rgba(41, 93, 207, 0.3);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.dropdown-option.common.svelte-1tn93gt:hover {background:white;color:#8fa1c9;border-color:rgba(255, 255, 255, 0.5);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);transform:none;}.dropdown-option.svelte-1tn93gt i:where(.svelte-1tn93gt) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-1tn93gt span:where(.svelte-1tn93gt) {font-size:14px;}.document-info.svelte-1tn93gt {display:flex;flex-direction:column;align-items:flex-start;flex:1;}.document-title.svelte-1tn93gt {font-weight:500;margin-bottom:4px;text-align:left;word-break:break-word;}.document-path.svelte-1tn93gt {font-size:0.85em;color:#6c757d;text-align:left;word-break:break-word;}"
|
|
10959
10939
|
};
|
|
10960
10940
|
function Li(t, e) {
|
|
10961
|
-
ge(e, !0), Te(t,
|
|
10941
|
+
ge(e, !0), Te(t, Gm);
|
|
10962
10942
|
let n = m(e, "isDropdownOpen", 15), r = m(e, "attachmentList", 15), i = m(e, "userLevel", 15), s = J(C({})), a = J(C(ui()));
|
|
10963
10943
|
const o = (b, w) => {
|
|
10964
10944
|
d(s)[b] = w;
|
|
@@ -11027,24 +11007,24 @@ function Li(t, e) {
|
|
|
11027
11007
|
const T = fo(I);
|
|
11028
11008
|
!Bp(I) || T === "mp3" ? await f(w, L || "", I) : await u(w, L || "", I);
|
|
11029
11009
|
};
|
|
11030
|
-
var _ =
|
|
11010
|
+
var _ = Ym(), k = y(_);
|
|
11031
11011
|
{
|
|
11032
11012
|
var R = (b) => {
|
|
11033
|
-
var w =
|
|
11013
|
+
var w = Hm(), I = y(w);
|
|
11034
11014
|
{
|
|
11035
11015
|
var F = (A) => {
|
|
11036
|
-
var L =
|
|
11016
|
+
var L = qm(), T = M(y(L), 2);
|
|
11037
11017
|
ft(T, 21, r, vt, (Y, te) => {
|
|
11038
|
-
var ye =
|
|
11018
|
+
var ye = Bm();
|
|
11039
11019
|
const lt = /* @__PURE__ */ Ve(() => gr(d(te).external_id, d(te).filename)), He = /* @__PURE__ */ Ve(() => Gp(d(te))), Oe = /* @__PURE__ */ Ve(() => d(s)[d(lt)]), rt = /* @__PURE__ */ Ve(() => Wp(d(te), i())), W = /* @__PURE__ */ Ve(() => ho(d(te))), Qe = /* @__PURE__ */ Ve(() => po(d(te))), Ke = /* @__PURE__ */ Ve(() => d(te).isCommon ? ur(d(te).commonType).name : js());
|
|
11040
|
-
ye.__click = [
|
|
11020
|
+
ye.__click = [Pm, p, te];
|
|
11041
11021
|
var Ye = y(ye);
|
|
11042
11022
|
{
|
|
11043
11023
|
var H = (oe) => {
|
|
11044
|
-
var ae =
|
|
11024
|
+
var ae = Om();
|
|
11045
11025
|
S(oe, ae);
|
|
11046
11026
|
}, V = (oe) => {
|
|
11047
|
-
var ae =
|
|
11027
|
+
var ae = Um();
|
|
11048
11028
|
P(() => {
|
|
11049
11029
|
yt(ae, Gi(d(He).icon), "svelte-1tn93gt"), O(ae, "style", d(He).color ? `color: ${d(He).color}` : "");
|
|
11050
11030
|
}), S(oe, ae);
|
|
@@ -11058,7 +11038,7 @@ function Li(t, e) {
|
|
|
11058
11038
|
var be = M($e, 2);
|
|
11059
11039
|
{
|
|
11060
11040
|
var ze = (oe) => {
|
|
11061
|
-
var ae =
|
|
11041
|
+
var ae = Nm(), z = y(ae, !0);
|
|
11062
11042
|
x(ae), P(() => ke(z, d(Qe))), S(oe, ae);
|
|
11063
11043
|
};
|
|
11064
11044
|
Q(be, (oe) => {
|
|
@@ -11074,7 +11054,7 @@ function Li(t, e) {
|
|
|
11074
11054
|
}), x(T);
|
|
11075
11055
|
var D = M(T, 2), X = y(D);
|
|
11076
11056
|
X.__click = [
|
|
11077
|
-
|
|
11057
|
+
Mm,
|
|
11078
11058
|
r,
|
|
11079
11059
|
l
|
|
11080
11060
|
];
|
|
@@ -11129,11 +11109,11 @@ xe(
|
|
|
11129
11109
|
[],
|
|
11130
11110
|
!0
|
|
11131
11111
|
);
|
|
11132
|
-
const
|
|
11112
|
+
const Jm = (t, e, n) => {
|
|
11133
11113
|
d(e).pause(), v(n, !1);
|
|
11134
11114
|
};
|
|
11135
|
-
var
|
|
11136
|
-
const
|
|
11115
|
+
var Wm = /* @__PURE__ */ $('<div class="user-attachment-badge svelte-x6wvf7"><i class="fa-solid fa-paperclip svelte-x6wvf7"></i> <span class="svelte-x6wvf7"> </span></div>'), Zm = /* @__PURE__ */ $('<div class="user-attachments-list svelte-x6wvf7"></div>'), Xm = /* @__PURE__ */ $('<i class="fa-solid fa-check"></i>'), Vm = /* @__PURE__ */ $('<i class="fa-regular fa-copy"></i>'), Qm = /* @__PURE__ */ $('<div class="message-column message-column-sent svelte-x6wvf7"><div class="message-sent svelte-x6wvf7"><div class="message-content svelte-x6wvf7"><!></div></div> <div style="display: flex; justify-content: flex-end;"><button aria-label="Copy message" class="copy-button svelte-x6wvf7"><!></button></div></div>'), Km = /* @__PURE__ */ $('<div class="agent-badge svelte-x6wvf7" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-x6wvf7"></i> <span> </span></div>'), e0 = /* @__PURE__ */ $('<button class="sources-toggle-btn svelte-x6wvf7" aria-label="Visualizza fonti"><span> </span> <i></i></button>'), t0 = /* @__PURE__ */ $('<i class="fa-solid fa-check"></i>'), n0 = /* @__PURE__ */ $('<i class="fa-regular fa-copy"></i>'), r0 = /* @__PURE__ */ $('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-x6wvf7"><i class="fa-solid fa-pause"></i></button>'), i0 = (t, e, n) => e(d(n)), s0 = /* @__PURE__ */ $('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-x6wvf7"><i class="fa-solid fa-play"></i></button>'), a0 = /* @__PURE__ */ $('<div class="message-column svelte-x6wvf7"><div class="message-received svelte-x6wvf7"><div class="message-content svelte-x6wvf7"><!></div></div> <div class="attachments-container svelte-x6wvf7"><!> <div class="d-flex gap-1" style="width: 100%; align-items: flex-start; justify-content: flex-start;"><!> <!> <button aria-label="Copy message" class="copy-button svelte-x6wvf7"><!></button></div></div></div> <!>', 1), o0 = /* @__PURE__ */ $('<div><!> <div class="w-100 d-flex message-plus-play svelte-x6wvf7"><!></div></div>'), l0 = /* @__PURE__ */ $('<div class="streaming-spinner svelte-x6wvf7"><!></div>'), c0 = /* @__PURE__ */ $('<div class="w-100 d-flex message-plus-play svelte-x6wvf7" style="justify-content: flex-start; align-items: center; gap: 5px;"><div class="message-column svelte-x6wvf7"><div class="message-received svelte-x6wvf7"><div class="message-content svelte-x6wvf7"><!></div></div> <div class="attachments-container svelte-x6wvf7"><!> <div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-x6wvf7" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-x6wvf7"></i> <span> </span></div></div></div></div> <!></div>'), u0 = /* @__PURE__ */ $('<div class="loading svelte-x6wvf7"><!></div>'), d0 = /* @__PURE__ */ $('<div class="alert alert-danger"> </div>'), f0 = /* @__PURE__ */ $('<div class="messages-wrapper svelte-x6wvf7"><div class="empty-placeholder svelte-x6wvf7"></div> <!> <!> <!></div>'), h0 = /* @__PURE__ */ $('<div class="loading-placeholder svelte-x6wvf7"><!></div>'), p0 = /* @__PURE__ */ $('<div class="chat-body svelte-x6wvf7"><!> <!></div>');
|
|
11116
|
+
const v0 = {
|
|
11137
11117
|
hash: "svelte-x6wvf7",
|
|
11138
11118
|
code: `.empty-placeholder.svelte-x6wvf7 {height:100%;}.messages-wrapper.svelte-x6wvf7 {display:flex;flex-direction:column;gap:10px;min-height:100%;}.loading-placeholder.svelte-x6wvf7 {display:flex;justify-content:center;align-items:center;height:100%;}.chat-body.svelte-x6wvf7 {display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;height:100%;padding:10px;}.chat-body.svelte-x6wvf7::-webkit-scrollbar {width:8px;}.chat-body.svelte-x6wvf7 * {--bs-table-color: #333333;--bs-table-striped-color: #333333;--bs-link-color-rgb: 41, 93, 207;}.chat-body.svelte-x6wvf7 li {color:black;}.chat-body.svelte-x6wvf7 table {min-width:auto;}.chat-body.svelte-x6wvf7::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-x6wvf7::-webkit-scrollbar-thumb {background:rgba(\r
|
|
11139
11119
|
255,\r
|
|
@@ -11149,7 +11129,7 @@ const g0 = {
|
|
|
11149
11129
|
}`
|
|
11150
11130
|
};
|
|
11151
11131
|
function No(t, e) {
|
|
11152
|
-
ge(e, !0), Te(t,
|
|
11132
|
+
ge(e, !0), Te(t, v0);
|
|
11153
11133
|
let n = m(e, "messages", 15), r = m(e, "loading", 15), i = m(e, "error", 15), s = m(e, "streamMessage", 15), a = m(e, "streamAttachments", 15), o = m(e, "streamedAgent", 15), l = m(e, "languageSelected", 15), c = m(e, "userLevel", 15), u = m(e, "loadingChat", 15), f = m(e, "onQuickReply", 7), h = J(void 0), p = J(C(new Audio())), _ = J(!1), k = J(C({})), R = J(C({})), b = J(C({})), w = J(null), I = J(C(n())), F = J(null), A = J(!0), L = J(!1), T = J(!1), D = J(C(u())), X = J(!1);
|
|
11154
11134
|
const ue = async () => {
|
|
11155
11135
|
await on(), d(h) && (d(h).scrollTop = d(h).scrollHeight);
|
|
@@ -11263,20 +11243,20 @@ function No(t, e) {
|
|
|
11263
11243
|
}), at(() => {
|
|
11264
11244
|
r(), s(), on().then(() => Oe());
|
|
11265
11245
|
});
|
|
11266
|
-
var rt =
|
|
11246
|
+
var rt = p0(), W = y(rt);
|
|
11267
11247
|
{
|
|
11268
11248
|
var Qe = (H) => {
|
|
11269
|
-
var V =
|
|
11249
|
+
var V = f0(), Ie = M(y(V), 2);
|
|
11270
11250
|
ft(Ie, 17, () => d(I), vt, (ae, z, N) => {
|
|
11271
11251
|
var ce = St(), ee = nt(ce);
|
|
11272
11252
|
{
|
|
11273
11253
|
var Ee = (Ae) => {
|
|
11274
|
-
var tt =
|
|
11254
|
+
var tt = o0(), Ue = y(tt);
|
|
11275
11255
|
{
|
|
11276
11256
|
var De = (_e) => {
|
|
11277
|
-
var le =
|
|
11257
|
+
var le = Zm();
|
|
11278
11258
|
ft(le, 21, () => d(z).attachments, vt, (Le, U) => {
|
|
11279
|
-
var G =
|
|
11259
|
+
var G = Wm(), ie = M(y(G), 2), se = y(ie, !0);
|
|
11280
11260
|
x(ie), x(G), P(() => {
|
|
11281
11261
|
O(G, "title", d(U).filename), ke(se, d(U).filename);
|
|
11282
11262
|
}), S(Le, G);
|
|
@@ -11291,17 +11271,17 @@ function No(t, e) {
|
|
|
11291
11271
|
var ct = y(Ge);
|
|
11292
11272
|
{
|
|
11293
11273
|
var ut = (_e) => {
|
|
11294
|
-
var le =
|
|
11274
|
+
var le = Qm(), Le = y(le), U = y(Le), G = y(U);
|
|
11295
11275
|
xr(G, () => d(z).html ?? Fe.parseInline(d(z).content), !1, !1), x(U), x(Le);
|
|
11296
11276
|
var ie = M(Le, 2), se = y(ie);
|
|
11297
11277
|
se.__click = () => He(d(z), N);
|
|
11298
11278
|
var ne = y(se);
|
|
11299
11279
|
{
|
|
11300
11280
|
var Se = (de) => {
|
|
11301
|
-
var Je =
|
|
11281
|
+
var Je = Xm();
|
|
11302
11282
|
S(de, Je);
|
|
11303
11283
|
}, ve = (de) => {
|
|
11304
|
-
var Je =
|
|
11284
|
+
var Je = Vm();
|
|
11305
11285
|
S(de, Je);
|
|
11306
11286
|
};
|
|
11307
11287
|
Q(ne, (de) => {
|
|
@@ -11312,7 +11292,7 @@ function No(t, e) {
|
|
|
11312
11292
|
() => d(R)[N] || Ms()
|
|
11313
11293
|
]), S(_e, le);
|
|
11314
11294
|
}, gt = (_e) => {
|
|
11315
|
-
var le =
|
|
11295
|
+
var le = a0(), Le = nt(le), U = y(Le), G = y(U), ie = y(G);
|
|
11316
11296
|
xr(ie, () => d(z).html ?? Fe.parseInline(d(z).content), !1, !1), x(G), x(U);
|
|
11317
11297
|
var se = M(U, 2), ne = y(se);
|
|
11318
11298
|
{
|
|
@@ -11343,7 +11323,7 @@ function No(t, e) {
|
|
|
11343
11323
|
var ve = M(ne, 2), de = y(ve);
|
|
11344
11324
|
{
|
|
11345
11325
|
var Je = (q) => {
|
|
11346
|
-
var Z =
|
|
11326
|
+
var Z = Km(), he = M(y(Z), 2), st = y(he, !0);
|
|
11347
11327
|
x(he), x(Z), P((pe) => ke(st, pe), [
|
|
11348
11328
|
() => Os(d(z).agentUsed)
|
|
11349
11329
|
]), S(q, Z);
|
|
@@ -11355,7 +11335,7 @@ function No(t, e) {
|
|
|
11355
11335
|
var Ce = M(de, 2);
|
|
11356
11336
|
{
|
|
11357
11337
|
var fe = (q) => {
|
|
11358
|
-
var Z =
|
|
11338
|
+
var Z = e0();
|
|
11359
11339
|
Z.__click = () => d(k)[N] = !d(k)[N];
|
|
11360
11340
|
var he = y(Z), st = y(he);
|
|
11361
11341
|
x(he);
|
|
@@ -11376,10 +11356,10 @@ function No(t, e) {
|
|
|
11376
11356
|
var pt = y(We);
|
|
11377
11357
|
{
|
|
11378
11358
|
var Xe = (q) => {
|
|
11379
|
-
var Z =
|
|
11359
|
+
var Z = t0();
|
|
11380
11360
|
S(q, Z);
|
|
11381
11361
|
}, ot = (q) => {
|
|
11382
|
-
var Z =
|
|
11362
|
+
var Z = n0();
|
|
11383
11363
|
S(q, Z);
|
|
11384
11364
|
};
|
|
11385
11365
|
Q(pt, (q) => {
|
|
@@ -11393,8 +11373,8 @@ function No(t, e) {
|
|
|
11393
11373
|
var Z = St(), he = nt(Z);
|
|
11394
11374
|
{
|
|
11395
11375
|
var st = (j) => {
|
|
11396
|
-
var Ze =
|
|
11397
|
-
Ze.__click = [
|
|
11376
|
+
var Ze = r0();
|
|
11377
|
+
Ze.__click = [Jm, p, _], P(
|
|
11398
11378
|
(Tt) => {
|
|
11399
11379
|
var Pt, qt;
|
|
11400
11380
|
O(Ze, "title", Tt), O(Ze, "style", `top: ${((Pt = d(b)[N]) == null ? void 0 : Pt.top) ?? 0}px; left: ${((qt = d(b)[N]) == null ? void 0 : qt.left) ?? 0}px;`);
|
|
@@ -11402,8 +11382,8 @@ function No(t, e) {
|
|
|
11402
11382
|
[() => ud()]
|
|
11403
11383
|
), S(j, Ze);
|
|
11404
11384
|
}, pe = (j) => {
|
|
11405
|
-
var Ze =
|
|
11406
|
-
Ze.__click = [
|
|
11385
|
+
var Ze = s0();
|
|
11386
|
+
Ze.__click = [i0, lt, z], P(
|
|
11407
11387
|
(Tt) => {
|
|
11408
11388
|
var Pt, qt;
|
|
11409
11389
|
O(Ze, "title", Tt), O(Ze, "style", `top: ${((Pt = d(b)[N]) == null ? void 0 : Pt.top) ?? 0}px; left: ${((qt = d(b)[N]) == null ? void 0 : qt.left) ?? 0}px;`);
|
|
@@ -11440,7 +11420,7 @@ function No(t, e) {
|
|
|
11440
11420
|
var $e = M(Ie, 2);
|
|
11441
11421
|
{
|
|
11442
11422
|
var et = (ae) => {
|
|
11443
|
-
var z =
|
|
11423
|
+
var z = c0(), N = y(z), ce = y(N), ee = y(ce), Ee = y(ee);
|
|
11444
11424
|
xr(Ee, s, !1, !1), x(ee), x(ce);
|
|
11445
11425
|
var Ae = M(ce, 2), tt = y(Ae);
|
|
11446
11426
|
{
|
|
@@ -11473,7 +11453,7 @@ function No(t, e) {
|
|
|
11473
11453
|
var gt = M(N, 2);
|
|
11474
11454
|
{
|
|
11475
11455
|
var _e = (le) => {
|
|
11476
|
-
var Le =
|
|
11456
|
+
var Le = l0(), U = y(Le);
|
|
11477
11457
|
fn(U, {
|
|
11478
11458
|
icon: "svg-spinners:90-ring-with-bg",
|
|
11479
11459
|
width: "25px",
|
|
@@ -11490,7 +11470,7 @@ function No(t, e) {
|
|
|
11490
11470
|
var z = St(), N = nt(z);
|
|
11491
11471
|
{
|
|
11492
11472
|
var ce = (ee) => {
|
|
11493
|
-
var Ee =
|
|
11473
|
+
var Ee = u0(), Ae = y(Ee);
|
|
11494
11474
|
fn(Ae, {
|
|
11495
11475
|
icon: "svg-spinners:3-dots-bounce",
|
|
11496
11476
|
width: "25px",
|
|
@@ -11515,7 +11495,7 @@ function No(t, e) {
|
|
|
11515
11495
|
var ze = M($e, 2);
|
|
11516
11496
|
{
|
|
11517
11497
|
var oe = (ae) => {
|
|
11518
|
-
var z =
|
|
11498
|
+
var z = d0(), N = y(z, !0);
|
|
11519
11499
|
x(z), P(() => ke(N, i())), S(ae, z);
|
|
11520
11500
|
};
|
|
11521
11501
|
Q(ze, (ae) => {
|
|
@@ -11531,7 +11511,7 @@ function No(t, e) {
|
|
|
11531
11511
|
var Ke = M(W, 2);
|
|
11532
11512
|
{
|
|
11533
11513
|
var Ye = (H) => {
|
|
11534
|
-
var V =
|
|
11514
|
+
var V = h0(), Ie = y(V);
|
|
11535
11515
|
fn(Ie, {
|
|
11536
11516
|
icon: "svg-spinners:270-ring-with-bg",
|
|
11537
11517
|
width: "50px",
|
|
@@ -11625,10 +11605,10 @@ xe(
|
|
|
11625
11605
|
[],
|
|
11626
11606
|
!0
|
|
11627
11607
|
);
|
|
11628
|
-
var
|
|
11608
|
+
var g0 = (t, e) => e(!1), m0 = /* @__PURE__ */ $('<div class="loader-container svelte-da41xi"><div class="loader svelte-da41xi"></div></div>'), b0 = /* @__PURE__ */ $('<p class="empty-label svelte-da41xi"> </p>'), w0 = (t, e, n, r) => {
|
|
11629
11609
|
e()._id != d(n)._id && r(d(n)._id);
|
|
11630
|
-
},
|
|
11631
|
-
const
|
|
11610
|
+
}, x0 = /* @__PURE__ */ $('<span class="unread-badge svelte-da41xi"></span>'), _0 = /* @__PURE__ */ $('<span class="meta-sep svelte-da41xi">·</span> <span class="meta-item svelte-da41xi"><i class="fa-regular fa-clock svelte-da41xi"></i> </span>', 1), k0 = (t, e, n) => e(d(n)._id, d(n).title), y0 = /* @__PURE__ */ $('<div class="chat svelte-da41xi"><button class="chat-button svelte-da41xi"><div class="chat-content svelte-da41xi"><div class="title-row svelte-da41xi"><span class="chat-title svelte-da41xi"> </span> <!></div> <div class="meta-row svelte-da41xi"><span class="meta-item svelte-da41xi"><i class="fa-regular fa-calendar svelte-da41xi"></i> </span> <!></div></div></button> <button class="chat-delete svelte-da41xi" aria-label="Delete chat"><i class="fa-solid fa-trash-can svelte-da41xi"></i></button></div>'), z0 = /* @__PURE__ */ $('<div class="group-header svelte-da41xi"> </div> <!>', 1), S0 = /* @__PURE__ */ $('<div class="loader-more-container svelte-da41xi"><div class="loader-small svelte-da41xi"></div></div>'), C0 = /* @__PURE__ */ $('<p class="end-label svelte-da41xi"> </p>'), T0 = /* @__PURE__ */ $("<!> <!>", 1), I0 = /* @__PURE__ */ $('<div class="history svelte-da41xi"><div class="history-header svelte-da41xi"><span class="title svelte-da41xi"> </span> <button class="close-btn svelte-da41xi" aria-label="Close history"><i class="fa-solid fa-xmark svelte-da41xi"></i></button></div> <div class="chats svelte-da41xi"><!></div></div>'), E0 = /* @__PURE__ */ $('<div class="external-div svelte-da41xi"><!></div>');
|
|
11611
|
+
const $0 = {
|
|
11632
11612
|
hash: "svelte-da41xi",
|
|
11633
11613
|
code: `.history.svelte-da41xi {position:absolute;top:0;left:-300px;width:300px;height:100%; /* Cambiato da 600px a 100% */border-radius:15px;display:flex;flex-direction:column;margin:0; /* Rimosso il margin */padding:5px;background:#28364c;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);z-index:-1; /* Cambiato da 999 a -1 */}.history-header.svelte-da41xi {display:flex;align-items:center;justify-content:space-between;padding:5px 5px 0;flex-shrink:0;}.title.svelte-da41xi {font-size:1.5rem;color:#fff;margin:5px;text-align:left;}.close-btn.svelte-da41xi {display:none;align-items:center;justify-content:center;background:transparent;border:none;color:white;cursor:pointer;font-size:1.2rem;padding:8px;border-radius:8px;transition:background 200ms;flex-shrink:0;}.close-btn.svelte-da41xi:hover {background:rgba(255, 255, 255, 0.15);}.chats.svelte-da41xi {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;gap:6px;}.group-header.svelte-da41xi {font-size:10px;font-weight:700;color:rgba(255, 255, 255, 0.35);text-transform:uppercase;letter-spacing:0.08em;padding:6px 4px 2px;margin-top:6px;}.group-header.svelte-da41xi:first-child {margin-top:0;}.chat.svelte-da41xi {background:rgba(255, 255, 255, 0.1);display:flex;justify-content:space-between;align-items:center;border-radius:10px;transition:background 200ms,\r
|
|
11634
11614
|
scale 200ms;width:100%;}.chat.active.svelte-da41xi {background:#295dcf;cursor:default;}.chat.svelte-da41xi > .chat-button:where(.svelte-da41xi) {background:transparent;padding:8px 10px;border-radius:10px;cursor:pointer;transition:background 200ms;text-align:left;border:none;width:calc(100% - 41px);display:flex;flex-direction:column;}.chat-content.svelte-da41xi {display:flex;flex-direction:column;gap:4px;width:100%;}.title-row.svelte-da41xi {display:flex;align-items:center;gap:6px;width:100%;}.chat-title.svelte-da41xi {font-weight:600;color:white;font-size:14px;text-shadow:0 0 5px rgba(0, 0, 0, 0.1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;}.meta-row.svelte-da41xi {display:flex;align-items:center;gap:5px;flex-wrap:wrap;}.meta-item.svelte-da41xi {display:flex;align-items:center;gap:4px;font-size:11px;color:rgba(255, 255, 255, 0.5);}.meta-item.svelte-da41xi i:where(.svelte-da41xi) {font-size:10px;}.meta-sep.svelte-da41xi {font-size:11px;color:rgba(255, 255, 255, 0.3);}.unread-badge.svelte-da41xi {display:inline-block;width:10px;height:10px;background:rgb(0, 255, 0);border-radius:50%;\r
|
|
@@ -11667,13 +11647,13 @@ const A0 = {
|
|
|
11667
11647
|
}`
|
|
11668
11648
|
};
|
|
11669
11649
|
function Bo(t, e) {
|
|
11670
|
-
ge(e, !0), Te(t,
|
|
11650
|
+
ge(e, !0), Te(t, $0);
|
|
11671
11651
|
let n = m(e, "showHistory", 15), r = m(e, "actChat", 15), i = m(e, "chats", 15), s = m(e, "messages", 15), a = m(e, "error", 15), o = m(e, "loadingChat", 15), l = m(e, "loadingChats", 15), c = m(e, "newChat", 7), u = m(e, "unreadChatIds", 15), f = m(e, "loadMoreChats", 7), h = m(e, "hasMoreChats", 7), p = m(e, "loadingMoreChats", 15);
|
|
11672
11652
|
const _ = /* @__PURE__ */ Ve(() => {
|
|
11673
11653
|
const T = [];
|
|
11674
11654
|
let D = "";
|
|
11675
11655
|
for (const X of i()) {
|
|
11676
|
-
const ue = X.lastUpdate || Us(X._id).getTime(), Be =
|
|
11656
|
+
const ue = X.lastUpdate || Us(X._id).getTime(), Be = gv(ue);
|
|
11677
11657
|
Be !== D ? (D = Be, T.push({ label: Be, chats: [X] })) : T[T.length - 1].chats.push(X);
|
|
11678
11658
|
}
|
|
11679
11659
|
return T;
|
|
@@ -11705,39 +11685,39 @@ function Bo(t, e) {
|
|
|
11705
11685
|
const D = T.target;
|
|
11706
11686
|
h() && D.scrollTop + D.clientHeight >= D.scrollHeight - 60 && f()();
|
|
11707
11687
|
};
|
|
11708
|
-
var F =
|
|
11688
|
+
var F = E0(), A = y(F);
|
|
11709
11689
|
{
|
|
11710
11690
|
var L = (T) => {
|
|
11711
|
-
var D =
|
|
11691
|
+
var D = I0(), X = y(D), ue = y(X), Be = y(ue, !0);
|
|
11712
11692
|
x(ue);
|
|
11713
11693
|
var Y = M(ue, 2);
|
|
11714
|
-
Y.__click = [
|
|
11694
|
+
Y.__click = [g0, n], x(X);
|
|
11715
11695
|
var te = M(X, 2), ye = y(te);
|
|
11716
11696
|
{
|
|
11717
11697
|
var lt = (Oe) => {
|
|
11718
|
-
var rt =
|
|
11698
|
+
var rt = m0();
|
|
11719
11699
|
S(Oe, rt);
|
|
11720
11700
|
}, He = (Oe) => {
|
|
11721
11701
|
var rt = St(), W = nt(rt);
|
|
11722
11702
|
{
|
|
11723
11703
|
var Qe = (Ye) => {
|
|
11724
|
-
var H =
|
|
11704
|
+
var H = b0(), V = y(H, !0);
|
|
11725
11705
|
x(H), P((Ie) => ke(V, Ie), [() => ef()]), S(Ye, H);
|
|
11726
11706
|
}, Ke = (Ye) => {
|
|
11727
|
-
var H =
|
|
11707
|
+
var H = T0(), V = nt(H);
|
|
11728
11708
|
ft(V, 17, () => d(_), vt, (be, ze) => {
|
|
11729
|
-
var oe =
|
|
11709
|
+
var oe = z0(), ae = nt(oe), z = y(ae, !0);
|
|
11730
11710
|
x(ae);
|
|
11731
11711
|
var N = M(ae, 2);
|
|
11732
11712
|
ft(N, 17, () => d(ze).chats, (ce) => ce._id, (ce, ee) => {
|
|
11733
|
-
var Ee =
|
|
11734
|
-
Ae.__click = [
|
|
11713
|
+
var Ee = y0(), Ae = y(Ee);
|
|
11714
|
+
Ae.__click = [w0, r, ee, k];
|
|
11735
11715
|
var tt = y(Ae), Ue = y(tt), De = y(Ue), Ge = y(De, !0);
|
|
11736
11716
|
x(De);
|
|
11737
11717
|
var ct = M(De, 2);
|
|
11738
11718
|
{
|
|
11739
11719
|
var ut = (ie) => {
|
|
11740
|
-
var se =
|
|
11720
|
+
var se = x0();
|
|
11741
11721
|
S(ie, se);
|
|
11742
11722
|
};
|
|
11743
11723
|
Q(ct, (ie) => {
|
|
@@ -11750,7 +11730,7 @@ function Bo(t, e) {
|
|
|
11750
11730
|
var Le = M(_e, 2);
|
|
11751
11731
|
{
|
|
11752
11732
|
var U = (ie) => {
|
|
11753
|
-
var se =
|
|
11733
|
+
var se = _0(), ne = M(nt(se), 2), Se = M(y(ne));
|
|
11754
11734
|
x(ne), P(
|
|
11755
11735
|
(ve, de) => {
|
|
11756
11736
|
O(ne, "title", ve), ke(Se, ` ${de ?? ""}`);
|
|
@@ -11767,7 +11747,7 @@ function Bo(t, e) {
|
|
|
11767
11747
|
}
|
|
11768
11748
|
x(gt), x(tt), x(Ae);
|
|
11769
11749
|
var G = M(Ae, 2);
|
|
11770
|
-
G.__click = [
|
|
11750
|
+
G.__click = [k0, R, ee], x(Ee), P(
|
|
11771
11751
|
(ie, se) => {
|
|
11772
11752
|
we(Ee, "active", r()._id === d(ee)._id), O(Ae, "title", d(ee).title), O(De, "title", d(ee).title), ke(Ge, d(ee).title), O(_e, "title", ie), ke(le, ` ${se ?? ""}`);
|
|
11773
11753
|
},
|
|
@@ -11781,13 +11761,13 @@ function Bo(t, e) {
|
|
|
11781
11761
|
var Ie = M(V, 2);
|
|
11782
11762
|
{
|
|
11783
11763
|
var $e = (be) => {
|
|
11784
|
-
var ze =
|
|
11764
|
+
var ze = S0();
|
|
11785
11765
|
S(be, ze);
|
|
11786
11766
|
}, et = (be) => {
|
|
11787
11767
|
var ze = St(), oe = nt(ze);
|
|
11788
11768
|
{
|
|
11789
11769
|
var ae = (z) => {
|
|
11790
|
-
var N =
|
|
11770
|
+
var N = C0(), ce = y(N, !0);
|
|
11791
11771
|
x(N), P((ee) => ke(ce, ee), [() => rf()]), S(z, N);
|
|
11792
11772
|
};
|
|
11793
11773
|
Q(
|
|
@@ -11922,8 +11902,8 @@ xe(
|
|
|
11922
11902
|
[],
|
|
11923
11903
|
!0
|
|
11924
11904
|
);
|
|
11925
|
-
var
|
|
11926
|
-
const
|
|
11905
|
+
var A0 = /* @__PURE__ */ $('<div class="drag-overlay svelte-1il33p9"><div class="drag-content svelte-1il33p9"><!> <p class="svelte-1il33p9"> </p></div></div>'), L0 = /* @__PURE__ */ $('<div class="upload-progress-overlay svelte-1il33p9"><div class="upload-progress-content svelte-1il33p9"><!> <p class="upload-filename svelte-1il33p9"> </p> <div class="progress-bar-container svelte-1il33p9"><div class="progress-bar svelte-1il33p9"></div></div> <p class="upload-percentage svelte-1il33p9"> </p></div></div>'), R0 = /* @__PURE__ */ $('<div class="loading-placeholder svelte-1il33p9"><!></div>'), j0 = /* @__PURE__ */ $('<!> <div class="resize-border-left svelte-1il33p9"></div> <div class="resize-border-top svelte-1il33p9"></div> <div class="resize-handle svelte-1il33p9"><!></div> <!> <!> <!>', 1), D0 = /* @__PURE__ */ $('<div class="chat svelte-1il33p9"><!> <!> <!></div>'), F0 = /* @__PURE__ */ $('<div class="external-div"><!> <button id="open-chat-btn"><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button></div>');
|
|
11906
|
+
const M0 = {
|
|
11927
11907
|
hash: "svelte-1il33p9",
|
|
11928
11908
|
code: `\r
|
|
11929
11909
|
/* 1700 1400 1200 992 576 */.loading-placeholder.svelte-1il33p9 {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1il33p9 {position:fixed;bottom:0;right:0;width:75%;height:90%;min-width:300px;min-height:400px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:5px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);resize:none;overflow:visible;z-index:1000;}.resize-handle.svelte-1il33p9 {position:absolute;top:-2px;left:-2px;cursor:nw-resize;z-index:1002;display:flex;align-items:flex-start;justify-content:flex-start;}.resize-border-left.svelte-1il33p9 {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1il33p9 {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1il33p9 {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1il33p9 {position:fixed;bottom:20px;right:0;display:flex;flex-direction:column;gap:15px;z-index:999;transform:translateX(50px);padding:5px;transition:350ms;}.bottom-right-buttons.visible.svelte-1il33p9 {transform:translateX(0);}.bottom-right-buttons.svelte-1il33p9:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1il33p9 {width:30px;height:30px;border-radius:50%;border:none;background:rgba(0, 0, 0, 0.6);color:white;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;align-self:center;transition:200ms;font-size:14px;}.pin-forge-buttons.svelte-1il33p9:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1il33p9 {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1il33p9:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1il33p9 {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1il33p9:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1il33p9 {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.hidden-btn.svelte-1il33p9 {width:60px;height:60px;border-radius:50%;border:none;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:200ms;}.hidden-btn-1.svelte-1il33p9 {background:#28853d;color:white;}.hidden-btn-1.svelte-1il33p9:hover {background:#206a31;}.hidden-btn-2.svelte-1il33p9 {background:#0099ff;color:white;}.hidden-btn-2.svelte-1il33p9:hover {background:#007acc;}.drag-overlay.svelte-1il33p9 {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(41, 93, 207, 0.95);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1010;pointer-events:none;}.drag-content.svelte-1il33p9 {text-align:center;color:white;}.drag-content.svelte-1il33p9 p:where(.svelte-1il33p9) {margin-top:20px;font-size:24px;font-weight:600;}.upload-progress-overlay.svelte-1il33p9 {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.8);border-radius:15px;display:flex;align-items:center;justify-content:center;z-index:1011;}.upload-progress-content.svelte-1il33p9 {text-align:center;color:white;padding:30px;background:rgba(41, 93, 207, 0.9);border-radius:10px;min-width:300px;}.upload-filename.svelte-1il33p9 {margin:15px 0 10px 0;font-size:16px;font-weight:500;}.progress-bar-container.svelte-1il33p9 {width:100%;height:8px;background:rgba(255, 255, 255, 0.2);border-radius:4px;overflow:hidden;margin:10px 0;}.progress-bar.svelte-1il33p9 {height:100%;background:white;border-radius:4px;transition:width 0.3s ease;}.upload-percentage.svelte-1il33p9 {margin:10px 0 0 0;font-size:20px;font-weight:600;}\r
|
|
@@ -11934,7 +11914,7 @@ const P0 = {
|
|
|
11934
11914
|
}`
|
|
11935
11915
|
};
|
|
11936
11916
|
function qo(t, e) {
|
|
11937
|
-
ge(e, !0), Te(t,
|
|
11917
|
+
ge(e, !0), Te(t, M0);
|
|
11938
11918
|
const [n, r] = xc(), i = () => wc(Fr, "$chatCommandStore", n);
|
|
11939
11919
|
let s = J(!1), a = J(!1), o = J("it"), l = J(""), c = J(0), u = J(null), f = J(C([])), h = J(C([])), p = J(!1), _ = J(!0), k = J(C(new Audio())), R = J(!0), b = J(""), w = J(""), I = J(C([])), F = J(0), A = J(null), L = J(!1), T = J(0), D = J("");
|
|
11940
11920
|
const X = (U, G, ie) => {
|
|
@@ -12226,7 +12206,7 @@ function qo(t, e) {
|
|
|
12226
12206
|
)));
|
|
12227
12207
|
}
|
|
12228
12208
|
const { agentId: se, gendocId: ne, gendocName: Se } = Kr(uo);
|
|
12229
|
-
se && v(ue, C(
|
|
12209
|
+
se && v(ue, C(se)), ne && Se && (d(Y)[ne] = {
|
|
12230
12210
|
title: Se + ".akd",
|
|
12231
12211
|
ext_id: "",
|
|
12232
12212
|
gendoc_id: ne,
|
|
@@ -12242,15 +12222,15 @@ function qo(t, e) {
|
|
|
12242
12222
|
console.error("Failed to load username", U), v(b, C(bd())), v(_, !1);
|
|
12243
12223
|
}
|
|
12244
12224
|
});
|
|
12245
|
-
var ct =
|
|
12225
|
+
var ct = F0(), ut = y(ct);
|
|
12246
12226
|
{
|
|
12247
12227
|
var gt = (U) => {
|
|
12248
|
-
var G =
|
|
12228
|
+
var G = D0();
|
|
12249
12229
|
G.__mousedown = et;
|
|
12250
12230
|
var ie = y(G);
|
|
12251
12231
|
{
|
|
12252
12232
|
var se = (Ce) => {
|
|
12253
|
-
var fe =
|
|
12233
|
+
var fe = A0(), We = y(fe), pt = y(We);
|
|
12254
12234
|
fn(pt, {
|
|
12255
12235
|
icon: "mdi:file-upload",
|
|
12256
12236
|
width: "80px",
|
|
@@ -12269,7 +12249,7 @@ function qo(t, e) {
|
|
|
12269
12249
|
var ne = M(ie, 2);
|
|
12270
12250
|
{
|
|
12271
12251
|
var Se = (Ce) => {
|
|
12272
|
-
var fe =
|
|
12252
|
+
var fe = L0(), We = y(fe), pt = y(We);
|
|
12273
12253
|
fn(pt, {
|
|
12274
12254
|
icon: "svg-spinners:270-ring-with-bg",
|
|
12275
12255
|
width: "50px",
|
|
@@ -12297,7 +12277,7 @@ function qo(t, e) {
|
|
|
12297
12277
|
var ve = M(ne, 2);
|
|
12298
12278
|
{
|
|
12299
12279
|
var de = (Ce) => {
|
|
12300
|
-
var fe =
|
|
12280
|
+
var fe = R0(), We = y(fe);
|
|
12301
12281
|
fn(We, {
|
|
12302
12282
|
icon: "svg-spinners:270-ring-with-bg",
|
|
12303
12283
|
width: "50px",
|
|
@@ -12308,7 +12288,7 @@ function qo(t, e) {
|
|
|
12308
12288
|
var fe = St(), We = nt(fe);
|
|
12309
12289
|
{
|
|
12310
12290
|
var pt = (Xe) => {
|
|
12311
|
-
var ot =
|
|
12291
|
+
var ot = j0(), it = nt(ot);
|
|
12312
12292
|
Bo(it, {
|
|
12313
12293
|
newChat: Ae,
|
|
12314
12294
|
loadMoreChats: ze,
|
|
@@ -12580,7 +12560,7 @@ function qo(t, e) {
|
|
|
12580
12560
|
}
|
|
12581
12561
|
bn(["mousedown", "click"]);
|
|
12582
12562
|
xe(qo, {}, [], [], !0);
|
|
12583
|
-
function
|
|
12563
|
+
function P0(t, e) {
|
|
12584
12564
|
ge(e, !0);
|
|
12585
12565
|
let n = m(e, "envId", 7), r = m(e, "token", 7), i = m(e, "lang", 7, "it"), s = m(e, "chatId", 7), a = m(e, "agentId", 7), o = m(e, "gendocId", 7), l = m(e, "gendocName", 7);
|
|
12586
12566
|
Xi.set({
|
|
@@ -12643,7 +12623,7 @@ function O0(t, e) {
|
|
|
12643
12623
|
});
|
|
12644
12624
|
}
|
|
12645
12625
|
customElements.define("akb-chat", xe(
|
|
12646
|
-
|
|
12626
|
+
P0,
|
|
12647
12627
|
{
|
|
12648
12628
|
token: {
|
|
12649
12629
|
attribute: "aks-token",
|
|
@@ -12664,19 +12644,23 @@ customElements.define("akb-chat", xe(
|
|
|
12664
12644
|
agentId: {
|
|
12665
12645
|
attribute: "agent-id",
|
|
12666
12646
|
reflect: !0,
|
|
12667
|
-
type: "
|
|
12647
|
+
type: "String"
|
|
12668
12648
|
},
|
|
12669
12649
|
gendocId: {
|
|
12670
12650
|
attribute: "gendoc-id",
|
|
12671
12651
|
reflect: !0,
|
|
12672
12652
|
type: "String"
|
|
12673
12653
|
},
|
|
12674
|
-
gendocName: {
|
|
12654
|
+
gendocName: {
|
|
12655
|
+
attribute: "gendoc-name",
|
|
12656
|
+
reflect: !0,
|
|
12657
|
+
type: "String"
|
|
12658
|
+
}
|
|
12675
12659
|
},
|
|
12676
12660
|
[],
|
|
12677
12661
|
["open"],
|
|
12678
12662
|
!1
|
|
12679
12663
|
));
|
|
12680
12664
|
export {
|
|
12681
|
-
|
|
12665
|
+
P0 as ChatComponent
|
|
12682
12666
|
};
|