v0.0.7, fix minor frontend labels bugs
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ tags:
|
|
| 6 |
- textbox
|
| 7 |
- editing
|
| 8 |
- color
|
| 9 |
-
title: gradio_highlightedtextbox v0.0.
|
| 10 |
colorFrom: indigo
|
| 11 |
colorTo: green
|
| 12 |
sdk: docker
|
|
|
|
| 6 |
- textbox
|
| 7 |
- editing
|
| 8 |
- color
|
| 9 |
+
title: gradio_highlightedtextbox v0.0.7
|
| 10 |
colorFrom: indigo
|
| 11 |
colorTo: green
|
| 12 |
sdk: docker
|
src/backend/gradio_highlightedtextbox/templates/component/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const {
|
|
| 14 |
insert: fe,
|
| 15 |
safe_not_equal: rl,
|
| 16 |
set_data: Ue,
|
| 17 |
-
space:
|
| 18 |
text: Xe,
|
| 19 |
toggle_class: V,
|
| 20 |
transition_in: ul,
|
|
@@ -34,25 +34,26 @@ function lt(l) {
|
|
| 34 |
_[f] = nt(tt(l, r, f));
|
| 35 |
return {
|
| 36 |
c() {
|
| 37 |
-
e = ce("span"), e.textContent = "·", t =
|
| 38 |
/*legend_label*/
|
| 39 |
l[3]
|
| 40 |
-
), o =
|
| 41 |
for (let f = 0; f < _.length; f += 1)
|
| 42 |
_[f].c();
|
| 43 |
-
U(e, "class", "legend-separator svelte-
|
| 44 |
-
l[1]
|
|
|
|
| 45 |
e,
|
| 46 |
"has-info",
|
| 47 |
/*info*/
|
| 48 |
l[5] != null
|
| 49 |
-
), U(i, "class", "svelte-
|
| 50 |
l[2]), V(
|
| 51 |
i,
|
| 52 |
"has-info",
|
| 53 |
/*info*/
|
| 54 |
l[5] != null
|
| 55 |
-
), U(n, "class", "category-legend svelte-
|
| 56 |
l[1]);
|
| 57 |
},
|
| 58 |
m(f, a) {
|
|
@@ -61,9 +62,10 @@ function lt(l) {
|
|
| 61 |
_[u] && _[u].m(n, null);
|
| 62 |
},
|
| 63 |
p(f, a) {
|
| 64 |
-
if (a & /*show_legend*/
|
| 65 |
-
|
| 66 |
-
f[1]
|
|
|
|
| 67 |
32 && V(
|
| 68 |
e,
|
| 69 |
"has-info",
|
|
@@ -82,8 +84,8 @@ function lt(l) {
|
|
| 82 |
"has-info",
|
| 83 |
/*info*/
|
| 84 |
f[5] != null
|
| 85 |
-
), a & /*Object, _color_map*/
|
| 86 |
-
|
| 87 |
r = et(Object.entries(
|
| 88 |
/*_color_map*/
|
| 89 |
f[4]
|
|
@@ -113,8 +115,13 @@ function nt(l) {
|
|
| 113 |
), n, i, s;
|
| 114 |
return {
|
| 115 |
c() {
|
| 116 |
-
e = ce("div"), n = Xe(t), i =
|
| 117 |
-
l[9].secondary)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
},
|
| 119 |
m(o, r) {
|
| 120 |
fe(o, e, r), se(e, n), se(e, i);
|
|
@@ -124,7 +131,13 @@ function nt(l) {
|
|
| 124 |
16 && t !== (t = /*category*/
|
| 125 |
o[8] + "") && Ue(n, t), r & /*_color_map*/
|
| 126 |
16 && s !== (s = "background-color:" + /*color*/
|
| 127 |
-
o[9].secondary) && U(e, "style", s)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
},
|
| 129 |
d(o) {
|
| 130 |
o && oe(e);
|
|
@@ -138,7 +151,7 @@ function it(l) {
|
|
| 138 |
e = ce("div"), t = Xe(
|
| 139 |
/*info*/
|
| 140 |
l[5]
|
| 141 |
-
), U(e, "class", "title-with-highlights-info svelte-
|
| 142 |
},
|
| 143 |
m(n, i) {
|
| 144 |
fe(n, e, i), se(e, t);
|
|
@@ -177,14 +190,14 @@ function ml(l) {
|
|
| 177 |
);
|
| 178 |
return {
|
| 179 |
c() {
|
| 180 |
-
e = ce("div"), t = ce("span"), f && f.c(), n =
|
| 181 |
l[0]), V(t, "hide", !/*show_label*/
|
| 182 |
l[0]), V(
|
| 183 |
t,
|
| 184 |
"has-info",
|
| 185 |
/*info*/
|
| 186 |
l[5] != null
|
| 187 |
-
), U(e, "class", "title-container svelte-
|
| 188 |
},
|
| 189 |
m(c, m) {
|
| 190 |
fe(c, e, m), se(e, t), f && f.m(t, null), se(e, n), a && a.m(e, null), fe(c, s, m), u && u.m(c, m), fe(c, o, m), r = !0;
|
|
@@ -251,7 +264,7 @@ function hl(l, e, t) {
|
|
| 251 |
n
|
| 252 |
];
|
| 253 |
}
|
| 254 |
-
class
|
| 255 |
constructor(e) {
|
| 256 |
super(), _l(this, e, hl, ml, rl, {
|
| 257 |
show_label: 0,
|
|
@@ -264,7 +277,7 @@ class gl extends nl {
|
|
| 264 |
}
|
| 265 |
}
|
| 266 |
const {
|
| 267 |
-
SvelteComponent:
|
| 268 |
append: wl,
|
| 269 |
attr: te,
|
| 270 |
detach: kl,
|
|
@@ -291,7 +304,7 @@ function Cl(l) {
|
|
| 291 |
}
|
| 292 |
};
|
| 293 |
}
|
| 294 |
-
class ql extends
|
| 295 |
constructor(e) {
|
| 296 |
super(), vl(this, e, null, Cl, yl, {});
|
| 297 |
}
|
|
@@ -302,19 +315,19 @@ const {
|
|
| 302 |
attr: re,
|
| 303 |
detach: Ll,
|
| 304 |
init: Sl,
|
| 305 |
-
insert:
|
| 306 |
noop: Oe,
|
| 307 |
-
safe_not_equal:
|
| 308 |
svg_element: Re
|
| 309 |
} = window.__gradio__svelte__internal;
|
| 310 |
-
function
|
| 311 |
let e, t, n;
|
| 312 |
return {
|
| 313 |
c() {
|
| 314 |
e = Re("svg"), t = Re("path"), n = Re("path"), re(t, "fill", "currentColor"), re(t, "d", "M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"), re(n, "fill", "currentColor"), re(n, "d", "M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"), re(e, "xmlns", "http://www.w3.org/2000/svg"), re(e, "viewBox", "0 0 33 33"), re(e, "color", "currentColor");
|
| 315 |
},
|
| 316 |
m(i, s) {
|
| 317 |
-
|
| 318 |
},
|
| 319 |
p: Oe,
|
| 320 |
i: Oe,
|
|
@@ -324,26 +337,26 @@ function Hl(l) {
|
|
| 324 |
}
|
| 325 |
};
|
| 326 |
}
|
| 327 |
-
class
|
| 328 |
constructor(e) {
|
| 329 |
-
super(), Sl(this, e, null,
|
| 330 |
}
|
| 331 |
}
|
| 332 |
-
function
|
| 333 |
}
|
| 334 |
const Nl = (l) => l;
|
| 335 |
function Vl(l, e) {
|
| 336 |
return l != l ? e == e : l !== e || l && typeof l == "object" || typeof l == "function";
|
| 337 |
}
|
| 338 |
const Dt = typeof window < "u";
|
| 339 |
-
let ft = Dt ? () => window.performance.now() : () => Date.now(), It = Dt ? (l) => requestAnimationFrame(l) :
|
| 340 |
const qe = /* @__PURE__ */ new Set();
|
| 341 |
function Wt(l) {
|
| 342 |
qe.forEach((e) => {
|
| 343 |
e.c(l) || (qe.delete(e), e.f());
|
| 344 |
}), qe.size !== 0 && It(Wt);
|
| 345 |
}
|
| 346 |
-
function
|
| 347 |
let e;
|
| 348 |
return qe.size === 0 && It(Wt), {
|
| 349 |
promise: new Promise((t) => {
|
|
@@ -354,7 +367,7 @@ function Al(l) {
|
|
| 354 |
}
|
| 355 |
};
|
| 356 |
}
|
| 357 |
-
function
|
| 358 |
const i = +getComputedStyle(l).opacity;
|
| 359 |
return {
|
| 360 |
delay: e,
|
|
@@ -364,7 +377,7 @@ function zl(l, { delay: e = 0, duration: t = 400, easing: n = Nl } = {}) {
|
|
| 364 |
};
|
| 365 |
}
|
| 366 |
const ve = [];
|
| 367 |
-
function Bl(l, e =
|
| 368 |
let t;
|
| 369 |
const n = /* @__PURE__ */ new Set();
|
| 370 |
function i(r) {
|
|
@@ -382,9 +395,9 @@ function Bl(l, e = ze) {
|
|
| 382 |
function s(r) {
|
| 383 |
i(r(l));
|
| 384 |
}
|
| 385 |
-
function o(r, _ =
|
| 386 |
const f = [r, _];
|
| 387 |
-
return n.add(f), n.size === 1 && (t = e(i, s) ||
|
| 388 |
n.delete(f), n.size === 0 && t && (t(), t = null);
|
| 389 |
};
|
| 390 |
}
|
|
@@ -417,7 +430,7 @@ function _t(l, e = {}) {
|
|
| 417 |
function y(T, L = {}) {
|
| 418 |
a = T;
|
| 419 |
const C = _ = {};
|
| 420 |
-
return l == null || L.hard || S.stiffness >= 1 && S.damping >= 1 ? (m = !0, o = ft(), f = T, t.set(l = a), Promise.resolve()) : (L.soft && (c = 1 / ((L.soft === !0 ? 0.5 : +L.soft) * 60), u = 0), r || (o = ft(), m = !1, r =
|
| 421 |
if (m)
|
| 422 |
return m = !1, r = null, !1;
|
| 423 |
u = Math.min(u + c, 1);
|
|
@@ -426,8 +439,8 @@ function _t(l, e = {}) {
|
|
| 426 |
opts: S,
|
| 427 |
settled: !0,
|
| 428 |
dt: (d - o) * 60 / 1e3
|
| 429 |
-
},
|
| 430 |
-
return o = d, f = l, t.set(l =
|
| 431 |
})), new Promise((d) => {
|
| 432 |
r.promise.then(() => {
|
| 433 |
C === _ && d();
|
|
@@ -826,7 +839,7 @@ const {
|
|
| 826 |
create_in_transition: Wl,
|
| 827 |
destroy_component: Je,
|
| 828 |
detach: me,
|
| 829 |
-
element:
|
| 830 |
empty: Ul,
|
| 831 |
group_outros: Xt,
|
| 832 |
init: Xl,
|
|
@@ -837,9 +850,9 @@ const {
|
|
| 837 |
run_all: Yl,
|
| 838 |
safe_not_equal: Gl,
|
| 839 |
set_data: Jl,
|
| 840 |
-
space:
|
| 841 |
text: Kl,
|
| 842 |
-
toggle_class:
|
| 843 |
transition_in: ne,
|
| 844 |
transition_out: de
|
| 845 |
} = window.__gradio__svelte__internal, { beforeUpdate: Ql, afterUpdate: xl, createEventDispatcher: $l } = window.__gradio__svelte__internal;
|
|
@@ -903,9 +916,9 @@ function wt(l) {
|
|
| 903 |
}
|
| 904 |
function tn(l) {
|
| 905 |
let e, t, n, i, s;
|
| 906 |
-
return t = new
|
| 907 |
c() {
|
| 908 |
-
e =
|
| 909 |
},
|
| 910 |
m(o, r) {
|
| 911 |
he(o, e, r), Ke(t, e, null), n = !0, i || (s = G(
|
|
@@ -931,7 +944,7 @@ function ln(l) {
|
|
| 931 |
let e, t, n, i;
|
| 932 |
return t = new ql({}), {
|
| 933 |
c() {
|
| 934 |
-
e =
|
| 935 |
},
|
| 936 |
m(s, o) {
|
| 937 |
he(s, e, o), Ke(t, e, null), i = !0;
|
|
@@ -939,7 +952,7 @@ function ln(l) {
|
|
| 939 |
p: Yt,
|
| 940 |
i(s) {
|
| 941 |
i || (ne(t.$$.fragment, s), s && (n || Ye(() => {
|
| 942 |
-
n = Wl(e,
|
| 943 |
})), i = !0);
|
| 944 |
},
|
| 945 |
o(s) {
|
|
@@ -954,7 +967,7 @@ function nn(l) {
|
|
| 954 |
let e, t, n;
|
| 955 |
return {
|
| 956 |
c() {
|
| 957 |
-
e =
|
| 958 |
(l[11] === void 0 || /*marked_el_text*/
|
| 959 |
l[9] === void 0) && Ye(() => (
|
| 960 |
/*div_input_handler_1*/
|
|
@@ -1035,7 +1048,7 @@ function sn(l) {
|
|
| 1035 |
let e, t, n;
|
| 1036 |
return {
|
| 1037 |
c() {
|
| 1038 |
-
e =
|
| 1039 |
(l[11] === void 0 || /*marked_el_text*/
|
| 1040 |
l[9] === void 0) && Ye(() => (
|
| 1041 |
/*div_input_handler*/
|
|
@@ -1070,16 +1083,12 @@ function sn(l) {
|
|
| 1070 |
}
|
| 1071 |
function on(l) {
|
| 1072 |
let e, t, n, i, s;
|
| 1073 |
-
t = new
|
| 1074 |
props: {
|
| 1075 |
show_label: (
|
| 1076 |
/*show_label*/
|
| 1077 |
l[3]
|
| 1078 |
),
|
| 1079 |
-
info: (
|
| 1080 |
-
/*info*/
|
| 1081 |
-
l[2]
|
| 1082 |
-
),
|
| 1083 |
show_legend: (
|
| 1084 |
/*show_legend*/
|
| 1085 |
l[4]
|
|
@@ -1096,6 +1105,10 @@ function on(l) {
|
|
| 1096 |
/*_color_map*/
|
| 1097 |
l[12]
|
| 1098 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1099 |
$$slots: { default: [en] },
|
| 1100 |
$$scope: { ctx: l }
|
| 1101 |
}
|
|
@@ -1113,7 +1126,7 @@ function on(l) {
|
|
| 1113 |
let _ = r(l), f = _(l);
|
| 1114 |
return {
|
| 1115 |
c() {
|
| 1116 |
-
e =
|
| 1117 |
e,
|
| 1118 |
"container",
|
| 1119 |
/*container*/
|
|
@@ -1127,9 +1140,7 @@ function on(l) {
|
|
| 1127 |
const c = {};
|
| 1128 |
u[0] & /*show_label*/
|
| 1129 |
8 && (c.show_label = /*show_label*/
|
| 1130 |
-
a[3]), u[0] & /*
|
| 1131 |
-
4 && (c.info = /*info*/
|
| 1132 |
-
a[2]), u[0] & /*show_legend*/
|
| 1133 |
16 && (c.show_legend = /*show_legend*/
|
| 1134 |
a[4]), u[0] & /*show_legend_label*/
|
| 1135 |
32 && (c.show_legend_label = /*show_legend_label*/
|
|
@@ -1137,14 +1148,16 @@ function on(l) {
|
|
| 1137 |
2 && (c.legend_label = /*legend_label*/
|
| 1138 |
a[1]), u[0] & /*_color_map*/
|
| 1139 |
4096 && (c._color_map = /*_color_map*/
|
| 1140 |
-
a[12]), u[0] & /*
|
|
|
|
|
|
|
| 1141 |
1 | u[1] & /*$$scope*/
|
| 1142 |
512 && (c.$$scope = { dirty: u, ctx: a }), t.$set(c), /*show_copy_button*/
|
| 1143 |
a[7] ? o ? (o.p(a, u), u[0] & /*show_copy_button*/
|
| 1144 |
128 && ne(o, 1)) : (o = wt(a), o.c(), ne(o, 1), o.m(e, i)) : o && (Xt(), de(o, 1, 1, () => {
|
| 1145 |
o = null;
|
| 1146 |
}), Ut()), _ === (_ = r(a)) && f ? f.p(a, u) : (f.d(1), f = _(a), f && (f.c(), f.m(e, null))), (!s || u[0] & /*container*/
|
| 1147 |
-
64) &&
|
| 1148 |
e,
|
| 1149 |
"container",
|
| 1150 |
/*container*/
|
|
@@ -1174,37 +1187,37 @@ function fn(l) {
|
|
| 1174 |
}
|
| 1175 |
function an(l, e, t) {
|
| 1176 |
const n = typeof document < "u";
|
| 1177 |
-
let { value: i = [] } = e, { value_is_output: s = !1 } = e, { label: o } = e, { legend_label: r } = e, { info: _ = void 0 } = e, { show_label: f = !0 } = e, { show_legend: a = !1 } = e, { show_legend_label: u = !1 } = e, { container: c = !0 } = e, { color_map: m = {} } = e, { show_copy_button: y = !1 } = e, { disabled: S } = e, T, L = "", C = "", d, p = !m || Object.keys(m).length === 0 ? {} : m,
|
| 1178 |
function Q() {
|
| 1179 |
for (let h in p)
|
| 1180 |
-
i.map(([N,
|
| 1181 |
if (i.length > 0) {
|
| 1182 |
for (let [h, N] of i)
|
| 1183 |
if (N !== null && !(N in p)) {
|
| 1184 |
-
let
|
| 1185 |
-
p[N] =
|
| 1186 |
}
|
| 1187 |
}
|
| 1188 |
-
t(12,
|
| 1189 |
}
|
| 1190 |
function E(h) {
|
| 1191 |
-
|
| 1192 |
}
|
| 1193 |
const P = $l();
|
| 1194 |
Ql(() => {
|
| 1195 |
T && T.offsetHeight + T.scrollTop > T.scrollHeight - 100;
|
| 1196 |
});
|
| 1197 |
function X() {
|
| 1198 |
-
P("change", C), s || P("input"),
|
| 1199 |
}
|
| 1200 |
xl(() => {
|
| 1201 |
Q(), E(s), t(17, s = !1);
|
| 1202 |
});
|
| 1203 |
-
function
|
| 1204 |
-
let h = [], N = "",
|
| 1205 |
for (let ae = 0; ae < C.length; ae++) {
|
| 1206 |
let _e = C[ae];
|
| 1207 |
-
_e === "<" ? (ee = !0, N && h.push([N,
|
| 1208 |
ke,
|
| 1209 |
"access",
|
| 1210 |
(Y) => Y.match,
|
|
@@ -1214,42 +1227,42 @@ function an(l, e, t) {
|
|
| 1214 |
(Y) => Y[1]
|
| 1215 |
]) || null), ke = "") : ee ? ke += _e : N += _e;
|
| 1216 |
}
|
| 1217 |
-
N && h.push([N,
|
| 1218 |
}
|
| 1219 |
async function D() {
|
| 1220 |
"clipboard" in navigator && (await navigator.clipboard.writeText(L), x());
|
| 1221 |
}
|
| 1222 |
function x() {
|
| 1223 |
-
t(13,
|
| 1224 |
() => {
|
| 1225 |
-
t(13,
|
| 1226 |
},
|
| 1227 |
1e3
|
| 1228 |
);
|
| 1229 |
}
|
| 1230 |
-
function
|
| 1231 |
const h = window.getSelection(), N = h.anchorOffset;
|
| 1232 |
if (h.rangeCount > 0) {
|
| 1233 |
-
var
|
| 1234 |
-
if (
|
| 1235 |
-
const tl =
|
| 1236 |
-
var ee =
|
| 1237 |
-
ee.replaceChild(ke,
|
| 1238 |
var ae = document.createRange(), _e = window.getSelection();
|
| 1239 |
const ll = N + Rl(ee);
|
| 1240 |
var Y = Dl(ee, ll);
|
| 1241 |
ae.setStart(Y.node, Y.offset), ae.setEnd(Y.node, Y.offset), _e.removeAllRanges(), _e.addRange(ae);
|
| 1242 |
}
|
| 1243 |
}
|
| 1244 |
-
|
| 1245 |
}
|
| 1246 |
-
function
|
| 1247 |
pe.call(this, l, h);
|
| 1248 |
}
|
| 1249 |
-
function
|
| 1250 |
pe.call(this, l, h);
|
| 1251 |
}
|
| 1252 |
-
function
|
| 1253 |
pe.call(this, l, h);
|
| 1254 |
}
|
| 1255 |
function Ne(h) {
|
|
@@ -1295,16 +1308,16 @@ function an(l, e, t) {
|
|
| 1295 |
C,
|
| 1296 |
T,
|
| 1297 |
L,
|
| 1298 |
-
|
| 1299 |
-
|
| 1300 |
D,
|
| 1301 |
-
|
| 1302 |
i,
|
| 1303 |
s,
|
| 1304 |
m,
|
| 1305 |
-
|
| 1306 |
-
|
| 1307 |
-
|
| 1308 |
Ne,
|
| 1309 |
we,
|
| 1310 |
Ee,
|
|
@@ -1348,13 +1361,13 @@ const {
|
|
| 1348 |
detach: dn,
|
| 1349 |
element: mn,
|
| 1350 |
get_all_dirty_from_scope: hn,
|
| 1351 |
-
get_slot_changes:
|
| 1352 |
-
get_spread_update:
|
| 1353 |
init: wn,
|
| 1354 |
insert: kn,
|
| 1355 |
safe_not_equal: vn,
|
| 1356 |
set_dynamic_element_data: kt,
|
| 1357 |
-
set_style:
|
| 1358 |
toggle_class: le,
|
| 1359 |
transition_in: Gt,
|
| 1360 |
transition_out: Jt,
|
|
@@ -1413,7 +1426,7 @@ function yn(l) {
|
|
| 1413 |
l[5] === "focus"
|
| 1414 |
), le(e, "hide-container", !/*explicit_call*/
|
| 1415 |
l[8] && !/*container*/
|
| 1416 |
-
l[9]),
|
| 1417 |
e,
|
| 1418 |
"height",
|
| 1419 |
/*get_dimension*/
|
|
@@ -1421,7 +1434,7 @@ function yn(l) {
|
|
| 1421 |
/*height*/
|
| 1422 |
l[0]
|
| 1423 |
)
|
| 1424 |
-
),
|
| 1425 |
l[1] == "number" ? `calc(min(${/*width*/
|
| 1426 |
l[1]}px, 100%))` : (
|
| 1427 |
/*get_dimension*/
|
|
@@ -1429,23 +1442,23 @@ function yn(l) {
|
|
| 1429 |
/*width*/
|
| 1430 |
l[1]
|
| 1431 |
)
|
| 1432 |
-
)),
|
| 1433 |
e,
|
| 1434 |
"border-style",
|
| 1435 |
/*variant*/
|
| 1436 |
l[4]
|
| 1437 |
-
),
|
| 1438 |
e,
|
| 1439 |
"overflow",
|
| 1440 |
/*allow_overflow*/
|
| 1441 |
l[11] ? "visible" : "hidden"
|
| 1442 |
-
),
|
| 1443 |
e,
|
| 1444 |
"flex-grow",
|
| 1445 |
/*scale*/
|
| 1446 |
l[12]
|
| 1447 |
-
),
|
| 1448 |
-
l[13]}px, 100%))`),
|
| 1449 |
},
|
| 1450 |
m(_, f) {
|
| 1451 |
kn(_, e, f), s && s.m(e, null), n = !0;
|
|
@@ -1458,7 +1471,7 @@ function yn(l) {
|
|
| 1458 |
_,
|
| 1459 |
/*$$scope*/
|
| 1460 |
_[17],
|
| 1461 |
-
n ?
|
| 1462 |
i,
|
| 1463 |
/*$$scope*/
|
| 1464 |
_[17],
|
|
@@ -1472,7 +1485,7 @@ function yn(l) {
|
|
| 1472 |
), kt(
|
| 1473 |
/*tag*/
|
| 1474 |
_[14]
|
| 1475 |
-
)(e, r =
|
| 1476 |
(!n || f & /*test_id*/
|
| 1477 |
128) && { "data-testid": (
|
| 1478 |
/*test_id*/
|
|
@@ -1504,7 +1517,7 @@ function yn(l) {
|
|
| 1504 |
), le(e, "hide-container", !/*explicit_call*/
|
| 1505 |
_[8] && !/*container*/
|
| 1506 |
_[9]), f & /*height*/
|
| 1507 |
-
1 &&
|
| 1508 |
e,
|
| 1509 |
"height",
|
| 1510 |
/*get_dimension*/
|
|
@@ -1513,7 +1526,7 @@ function yn(l) {
|
|
| 1513 |
_[0]
|
| 1514 |
)
|
| 1515 |
), f & /*width*/
|
| 1516 |
-
2 &&
|
| 1517 |
_[1] == "number" ? `calc(min(${/*width*/
|
| 1518 |
_[1]}px, 100%))` : (
|
| 1519 |
/*get_dimension*/
|
|
@@ -1522,25 +1535,25 @@ function yn(l) {
|
|
| 1522 |
_[1]
|
| 1523 |
)
|
| 1524 |
)), f & /*variant*/
|
| 1525 |
-
16 &&
|
| 1526 |
e,
|
| 1527 |
"border-style",
|
| 1528 |
/*variant*/
|
| 1529 |
_[4]
|
| 1530 |
), f & /*allow_overflow*/
|
| 1531 |
-
2048 &&
|
| 1532 |
e,
|
| 1533 |
"overflow",
|
| 1534 |
/*allow_overflow*/
|
| 1535 |
_[11] ? "visible" : "hidden"
|
| 1536 |
), f & /*scale*/
|
| 1537 |
-
4096 &&
|
| 1538 |
e,
|
| 1539 |
"flex-grow",
|
| 1540 |
/*scale*/
|
| 1541 |
_[12]
|
| 1542 |
), f & /*min_width*/
|
| 1543 |
-
8192 &&
|
| 1544 |
_[13]}px, 100%))`);
|
| 1545 |
},
|
| 1546 |
i(_) {
|
|
@@ -1583,16 +1596,16 @@ function Cn(l) {
|
|
| 1583 |
}
|
| 1584 |
function qn(l, e, t) {
|
| 1585 |
let { $$slots: n = {}, $$scope: i } = e, { height: s = void 0 } = e, { width: o = void 0 } = e, { elem_id: r = "" } = e, { elem_classes: _ = [] } = e, { variant: f = "solid" } = e, { border_mode: a = "base" } = e, { padding: u = !0 } = e, { type: c = "normal" } = e, { test_id: m = void 0 } = e, { explicit_call: y = !1 } = e, { container: S = !0 } = e, { visible: T = !0 } = e, { allow_overflow: L = !0 } = e, { scale: C = null } = e, { min_width: d = 0 } = e, p = c === "fieldset" ? "fieldset" : "div";
|
| 1586 |
-
const
|
| 1587 |
-
if (
|
| 1588 |
-
if (typeof
|
| 1589 |
-
return
|
| 1590 |
-
if (typeof
|
| 1591 |
-
return
|
| 1592 |
}
|
| 1593 |
};
|
| 1594 |
-
return l.$$set = (
|
| 1595 |
-
"height" in
|
| 1596 |
}, [
|
| 1597 |
s,
|
| 1598 |
o,
|
|
@@ -1609,7 +1622,7 @@ function qn(l, e, t) {
|
|
| 1609 |
C,
|
| 1610 |
d,
|
| 1611 |
p,
|
| 1612 |
-
|
| 1613 |
c,
|
| 1614 |
i,
|
| 1615 |
n
|
|
@@ -1649,11 +1662,11 @@ const {
|
|
| 1649 |
attr: q,
|
| 1650 |
component_subscribe: vt,
|
| 1651 |
detach: Sn,
|
| 1652 |
-
element:
|
| 1653 |
-
init:
|
| 1654 |
-
insert:
|
| 1655 |
noop: pt,
|
| 1656 |
-
safe_not_equal:
|
| 1657 |
set_style: Ve,
|
| 1658 |
svg_element: W,
|
| 1659 |
toggle_class: yt
|
|
@@ -1662,7 +1675,7 @@ function Vn(l) {
|
|
| 1662 |
let e, t, n, i, s, o, r, _, f, a, u, c;
|
| 1663 |
return {
|
| 1664 |
c() {
|
| 1665 |
-
e =
|
| 1666 |
l[1][0] + "px, " + /*$top*/
|
| 1667 |
l[1][1] + "px)"), q(f, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), q(f, "fill", "#FF7C00"), q(f, "fill-opacity", "0.4"), q(f, "class", "svelte-43sxxs"), q(a, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), q(a, "fill", "#FF7C00"), q(a, "class", "svelte-43sxxs"), q(u, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), q(u, "fill", "#FF7C00"), q(u, "fill-opacity", "0.4"), q(u, "class", "svelte-43sxxs"), q(c, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), q(c, "fill", "#FF7C00"), q(c, "class", "svelte-43sxxs"), Ve(_, "transform", "translate(" + /*$bottom*/
|
| 1668 |
l[2][0] + "px, " + /*$bottom*/
|
|
@@ -1674,7 +1687,7 @@ function Vn(l) {
|
|
| 1674 |
);
|
| 1675 |
},
|
| 1676 |
m(m, y) {
|
| 1677 |
-
|
| 1678 |
},
|
| 1679 |
p(m, [y]) {
|
| 1680 |
y & /*$top*/
|
|
@@ -1698,7 +1711,7 @@ function Vn(l) {
|
|
| 1698 |
}
|
| 1699 |
};
|
| 1700 |
}
|
| 1701 |
-
function
|
| 1702 |
let n, i, { margin: s = !0 } = e;
|
| 1703 |
const o = _t([0, 0]);
|
| 1704 |
vt(l, o, (c) => t(1, n = c));
|
|
@@ -1718,9 +1731,9 @@ function An(l, e, t) {
|
|
| 1718 |
"margin" in c && t(0, s = c.margin);
|
| 1719 |
}, [s, n, i, o, r];
|
| 1720 |
}
|
| 1721 |
-
class
|
| 1722 |
constructor(e) {
|
| 1723 |
-
super(),
|
| 1724 |
}
|
| 1725 |
}
|
| 1726 |
const {
|
|
@@ -1748,7 +1761,7 @@ const {
|
|
| 1748 |
set_data: O,
|
| 1749 |
set_style: ie,
|
| 1750 |
space: K,
|
| 1751 |
-
text:
|
| 1752 |
toggle_class: Z,
|
| 1753 |
transition_in: Te,
|
| 1754 |
transition_out: Le,
|
|
@@ -1779,7 +1792,7 @@ function Jn(l) {
|
|
| 1779 |
);
|
| 1780 |
return {
|
| 1781 |
c() {
|
| 1782 |
-
e = $("span"), n =
|
| 1783 |
},
|
| 1784 |
m(_, f) {
|
| 1785 |
v(_, e, f), ue(e, n), v(_, i, f), r && r.m(_, f), s = !0;
|
|
@@ -1846,7 +1859,7 @@ function Kn(l) {
|
|
| 1846 |
}
|
| 1847 |
let c = u(l), m = c && c(l), y = (
|
| 1848 |
/*timer*/
|
| 1849 |
-
l[5] &&
|
| 1850 |
);
|
| 1851 |
const S = [ni, li], T = [];
|
| 1852 |
function L(d, p) {
|
|
@@ -1883,7 +1896,7 @@ function Kn(l) {
|
|
| 1883 |
d[8] === "default" && /*show_eta_bar*/
|
| 1884 |
d[18] && /*show_progress*/
|
| 1885 |
d[6] === "full" ? a ? a.p(d, p) : (a = St(d), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), c === (c = u(d)) && m ? m.p(d, p) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(t, n))), /*timer*/
|
| 1886 |
-
d[5] ? y ? y.p(d, p) : (y =
|
| 1887 |
256) && Z(
|
| 1888 |
t,
|
| 1889 |
"meta-text-center",
|
|
@@ -1896,9 +1909,9 @@ function Kn(l) {
|
|
| 1896 |
/*variant*/
|
| 1897 |
d[8] === "default"
|
| 1898 |
);
|
| 1899 |
-
let
|
| 1900 |
-
s = L(d), s ===
|
| 1901 |
-
T[
|
| 1902 |
}), Kt()), ~s ? (o = T[s], o ? o.p(d, p) : (o = T[s] = S[s](d), o.c()), Te(o, 1), o.m(r.parentNode, r)) : o = null), /*timer*/
|
| 1903 |
d[5] ? C && (C.d(1), C = null) : C ? C.p(d, p) : (C = Et(d), C.c(), C.m(_.parentNode, _));
|
| 1904 |
},
|
|
@@ -1937,7 +1950,7 @@ function Qn(l) {
|
|
| 1937 |
let e;
|
| 1938 |
return {
|
| 1939 |
c() {
|
| 1940 |
-
e =
|
| 1941 |
},
|
| 1942 |
m(t, n) {
|
| 1943 |
v(t, e, n);
|
|
@@ -1955,10 +1968,10 @@ function xn(l) {
|
|
| 1955 |
), n, i, s, o;
|
| 1956 |
return {
|
| 1957 |
c() {
|
| 1958 |
-
e =
|
| 1959 |
/*queue_size*/
|
| 1960 |
l[3]
|
| 1961 |
-
), o =
|
| 1962 |
},
|
| 1963 |
m(r, _) {
|
| 1964 |
v(r, e, _), v(r, n, _), v(r, i, _), v(r, s, _), v(r, o, _);
|
|
@@ -1984,7 +1997,7 @@ function $n(l) {
|
|
| 1984 |
l[7]
|
| 1985 |
), n = [];
|
| 1986 |
for (let i = 0; i < t.length; i += 1)
|
| 1987 |
-
n[i] =
|
| 1988 |
return {
|
| 1989 |
c() {
|
| 1990 |
for (let i = 0; i < n.length; i += 1)
|
|
@@ -2006,7 +2019,7 @@ function $n(l) {
|
|
| 2006 |
let o;
|
| 2007 |
for (o = 0; o < t.length; o += 1) {
|
| 2008 |
const r = Lt(i, t, o);
|
| 2009 |
-
n[o] ? n[o].p(r, s) : (n[o] =
|
| 2010 |
}
|
| 2011 |
for (; o < n.length; o += 1)
|
| 2012 |
n[o].d(1);
|
|
@@ -2018,7 +2031,7 @@ function $n(l) {
|
|
| 2018 |
}
|
| 2019 |
};
|
| 2020 |
}
|
| 2021 |
-
function
|
| 2022 |
let e, t = (
|
| 2023 |
/*p*/
|
| 2024 |
l[38].unit + ""
|
|
@@ -2032,7 +2045,7 @@ function jt(l) {
|
|
| 2032 |
let _ = r(l), f = _(l);
|
| 2033 |
return {
|
| 2034 |
c() {
|
| 2035 |
-
f.c(), e = K(), n =
|
| 2036 |
},
|
| 2037 |
m(a, u) {
|
| 2038 |
f.m(a, u), v(a, e, u), v(a, n, u), v(a, i, u), v(a, o, u);
|
|
@@ -2054,7 +2067,7 @@ function ei(l) {
|
|
| 2054 |
) + "", t;
|
| 2055 |
return {
|
| 2056 |
c() {
|
| 2057 |
-
t =
|
| 2058 |
},
|
| 2059 |
m(n, i) {
|
| 2060 |
v(n, t, i);
|
|
@@ -2081,7 +2094,7 @@ function ti(l) {
|
|
| 2081 |
) + "", s;
|
| 2082 |
return {
|
| 2083 |
c() {
|
| 2084 |
-
t =
|
| 2085 |
},
|
| 2086 |
m(o, r) {
|
| 2087 |
v(o, t, r), v(o, n, r), v(o, s, r);
|
|
@@ -2102,10 +2115,10 @@ function ti(l) {
|
|
| 2102 |
}
|
| 2103 |
};
|
| 2104 |
}
|
| 2105 |
-
function
|
| 2106 |
let e, t = (
|
| 2107 |
/*p*/
|
| 2108 |
-
l[38].index != null &&
|
| 2109 |
);
|
| 2110 |
return {
|
| 2111 |
c() {
|
|
@@ -2116,14 +2129,14 @@ function Ft(l) {
|
|
| 2116 |
},
|
| 2117 |
p(n, i) {
|
| 2118 |
/*p*/
|
| 2119 |
-
n[38].index != null ? t ? t.p(n, i) : (t =
|
| 2120 |
},
|
| 2121 |
d(n) {
|
| 2122 |
n && k(e), t && t.d(n);
|
| 2123 |
}
|
| 2124 |
};
|
| 2125 |
}
|
| 2126 |
-
function
|
| 2127 |
let e, t = (
|
| 2128 |
/*eta*/
|
| 2129 |
l[0] ? `/${/*formatted_eta*/
|
|
@@ -2131,10 +2144,10 @@ function Ht(l) {
|
|
| 2131 |
), n, i;
|
| 2132 |
return {
|
| 2133 |
c() {
|
| 2134 |
-
e =
|
| 2135 |
/*formatted_timer*/
|
| 2136 |
l[20]
|
| 2137 |
-
), n =
|
| 2138 |
},
|
| 2139 |
m(s, o) {
|
| 2140 |
v(s, e, o), v(s, n, o), v(s, i, o);
|
|
@@ -2157,7 +2170,7 @@ function Ht(l) {
|
|
| 2157 |
}
|
| 2158 |
function li(l) {
|
| 2159 |
let e, t;
|
| 2160 |
-
return e = new
|
| 2161 |
props: { margin: (
|
| 2162 |
/*variant*/
|
| 2163 |
l[8] === "default"
|
|
@@ -2190,7 +2203,7 @@ function ni(l) {
|
|
| 2190 |
let e, t, n, i, s, o = `${/*last_progress_level*/
|
| 2191 |
l[15] * 100}%`, r = (
|
| 2192 |
/*progress*/
|
| 2193 |
-
l[7] != null &&
|
| 2194 |
);
|
| 2195 |
return {
|
| 2196 |
c() {
|
|
@@ -2201,7 +2214,7 @@ function ni(l) {
|
|
| 2201 |
},
|
| 2202 |
p(_, f) {
|
| 2203 |
/*progress*/
|
| 2204 |
-
_[7] != null ? r ? r.p(_, f) : (r =
|
| 2205 |
32768 && o !== (o = `${/*last_progress_level*/
|
| 2206 |
_[15] * 100}%`) && ie(s, "width", o);
|
| 2207 |
},
|
|
@@ -2212,7 +2225,7 @@ function ni(l) {
|
|
| 2212 |
}
|
| 2213 |
};
|
| 2214 |
}
|
| 2215 |
-
function
|
| 2216 |
let e, t = Be(
|
| 2217 |
/*progress*/
|
| 2218 |
l[7]
|
|
@@ -2266,10 +2279,10 @@ function Nt(l) {
|
|
| 2266 |
l[14][
|
| 2267 |
/*i*/
|
| 2268 |
l[40]
|
| 2269 |
-
] != null &&
|
| 2270 |
), _ = (
|
| 2271 |
/*progress_level*/
|
| 2272 |
-
l[14] != null &&
|
| 2273 |
);
|
| 2274 |
return {
|
| 2275 |
c() {
|
|
@@ -2286,8 +2299,8 @@ function Nt(l) {
|
|
| 2286 |
f[14][
|
| 2287 |
/*i*/
|
| 2288 |
f[40]
|
| 2289 |
-
] != null ? r || (r =
|
| 2290 |
-
f[14] != null ? _ ? _.p(f, a) : (_ =
|
| 2291 |
},
|
| 2292 |
d(f) {
|
| 2293 |
f && (k(e), k(t), k(n), k(i)), s && s.d(f), o && o.d(f), r && r.d(f), _ && _.d(f);
|
|
@@ -2298,7 +2311,7 @@ function ii(l) {
|
|
| 2298 |
let e;
|
| 2299 |
return {
|
| 2300 |
c() {
|
| 2301 |
-
e =
|
| 2302 |
},
|
| 2303 |
m(t, n) {
|
| 2304 |
v(t, e, n);
|
|
@@ -2315,7 +2328,7 @@ function Vt(l) {
|
|
| 2315 |
), t;
|
| 2316 |
return {
|
| 2317 |
c() {
|
| 2318 |
-
t =
|
| 2319 |
},
|
| 2320 |
m(n, i) {
|
| 2321 |
v(n, t, i);
|
|
@@ -2330,11 +2343,11 @@ function Vt(l) {
|
|
| 2330 |
}
|
| 2331 |
};
|
| 2332 |
}
|
| 2333 |
-
function
|
| 2334 |
let e;
|
| 2335 |
return {
|
| 2336 |
c() {
|
| 2337 |
-
e =
|
| 2338 |
},
|
| 2339 |
m(t, n) {
|
| 2340 |
v(t, e, n);
|
|
@@ -2344,7 +2357,7 @@ function At(l) {
|
|
| 2344 |
}
|
| 2345 |
};
|
| 2346 |
}
|
| 2347 |
-
function
|
| 2348 |
let e = (100 * /*progress_level*/
|
| 2349 |
(l[14][
|
| 2350 |
/*i*/
|
|
@@ -2352,7 +2365,7 @@ function zt(l) {
|
|
| 2352 |
] || 0)).toFixed(1) + "", t, n;
|
| 2353 |
return {
|
| 2354 |
c() {
|
| 2355 |
-
t =
|
| 2356 |
},
|
| 2357 |
m(i, s) {
|
| 2358 |
v(i, t, s), v(i, n, s);
|
|
@@ -2405,7 +2418,7 @@ function Et(l) {
|
|
| 2405 |
let e, t;
|
| 2406 |
return {
|
| 2407 |
c() {
|
| 2408 |
-
e = $("p"), t =
|
| 2409 |
/*loading_text*/
|
| 2410 |
l[9]
|
| 2411 |
), J(e, "class", "loading svelte-1txqlrd");
|
|
@@ -2537,31 +2550,31 @@ function si(l) {
|
|
| 2537 |
}
|
| 2538 |
};
|
| 2539 |
}
|
| 2540 |
-
let
|
| 2541 |
async function oi(l, e = !0) {
|
| 2542 |
if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && e !== !0)) {
|
| 2543 |
-
if (
|
| 2544 |
De = !0;
|
| 2545 |
else
|
| 2546 |
return;
|
| 2547 |
await Xn(), requestAnimationFrame(() => {
|
| 2548 |
let t = [0, 0];
|
| 2549 |
-
for (let n = 0; n <
|
| 2550 |
-
const s =
|
| 2551 |
(n === 0 || s.top + window.scrollY <= t[0]) && (t[0] = s.top + window.scrollY, t[1] = n);
|
| 2552 |
}
|
| 2553 |
-
window.scrollTo({ top: t[0] - 20, behavior: "smooth" }), De = !1,
|
| 2554 |
});
|
| 2555 |
}
|
| 2556 |
}
|
| 2557 |
function fi(l, e, t) {
|
| 2558 |
-
let n, { $$slots: i = {}, $$scope: s } = e, { i18n: o } = e, { eta: r = null } = e, { queue_position: _ } = e, { queue_size: f } = e, { status: a } = e, { scroll_to_output: u = !1 } = e, { timer: c = !0 } = e, { show_progress: m = "full" } = e, { message: y = null } = e, { progress: S = null } = e, { variant: T = "default" } = e, { loading_text: L = "Loading..." } = e, { absolute: C = !0 } = e, { translucent: d = !1 } = e, { border: p = !1 } = e, { autoscroll:
|
| 2559 |
-
const
|
| 2560 |
-
t(0, r = t(26, P = t(19, we = null))), t(24, Q = performance.now()), t(25, E = 0), R = !0,
|
| 2561 |
};
|
| 2562 |
-
function
|
| 2563 |
requestAnimationFrame(() => {
|
| 2564 |
-
t(25, E = (performance.now() - Q) / 1e3), R &&
|
| 2565 |
});
|
| 2566 |
}
|
| 2567 |
function Ne() {
|
|
@@ -2573,29 +2586,29 @@ function fi(l, e, t) {
|
|
| 2573 |
let we = null;
|
| 2574 |
function Ee(w) {
|
| 2575 |
Ct[w ? "unshift" : "push"](() => {
|
| 2576 |
-
|
| 2577 |
});
|
| 2578 |
}
|
| 2579 |
function Pe(w) {
|
| 2580 |
Ct[w ? "unshift" : "push"](() => {
|
| 2581 |
-
|
| 2582 |
});
|
| 2583 |
}
|
| 2584 |
return l.$$set = (w) => {
|
| 2585 |
-
"i18n" in w && t(1, o = w.i18n), "eta" in w && t(0, r = w.eta), "queue_position" in w && t(2, _ = w.queue_position), "queue_size" in w && t(3, f = w.queue_size), "status" in w && t(4, a = w.status), "scroll_to_output" in w && t(21, u = w.scroll_to_output), "timer" in w && t(5, c = w.timer), "show_progress" in w && t(6, m = w.show_progress), "message" in w && t(22, y = w.message), "progress" in w && t(7, S = w.progress), "variant" in w && t(8, T = w.variant), "loading_text" in w && t(9, L = w.loading_text), "absolute" in w && t(10, C = w.absolute), "translucent" in w && t(11, d = w.translucent), "border" in w && t(12, p = w.border), "autoscroll" in w && t(23,
|
| 2586 |
}, l.$$.update = () => {
|
| 2587 |
l.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/
|
| 2588 |
218103809 && (r === null && t(0, r = P), r != null && P !== r && (t(27, X = (performance.now() - Q) / 1e3 + r), t(19, we = X.toFixed(1)), t(26, P = r))), l.$$.dirty[0] & /*eta_from_start, timer_diff*/
|
| 2589 |
-
167772160 && t(17,
|
| 2590 |
-
128 && S != null && t(18,
|
| 2591 |
114816 && (S != null ? t(14, D = S.map((w) => {
|
| 2592 |
if (w.index != null && w.length != null)
|
| 2593 |
return w.index / w.length;
|
| 2594 |
if (w.progress != null)
|
| 2595 |
return w.progress;
|
| 2596 |
-
})) : t(14, D = null), D ? (t(15, x = D[D.length - 1]),
|
| 2597 |
-
16 && (a === "pending" ?
|
| 2598 |
-
10493968 &&
|
| 2599 |
4194320, l.$$.dirty[0] & /*timer_diff*/
|
| 2600 |
33554432 && t(20, n = E.toFixed(1));
|
| 2601 |
}, [
|
|
@@ -2612,17 +2625,17 @@ function fi(l, e, t) {
|
|
| 2612 |
C,
|
| 2613 |
d,
|
| 2614 |
p,
|
| 2615 |
-
|
| 2616 |
D,
|
| 2617 |
x,
|
| 2618 |
-
|
| 2619 |
-
ge,
|
| 2620 |
be,
|
|
|
|
| 2621 |
we,
|
| 2622 |
n,
|
| 2623 |
u,
|
| 2624 |
y,
|
| 2625 |
-
|
| 2626 |
Q,
|
| 2627 |
E,
|
| 2628 |
P,
|
|
@@ -2674,17 +2687,17 @@ const {
|
|
| 2674 |
create_component: Qe,
|
| 2675 |
destroy_component: xe,
|
| 2676 |
detach: ci,
|
| 2677 |
-
flush:
|
| 2678 |
get_spread_object: di,
|
| 2679 |
get_spread_update: mi,
|
| 2680 |
group_outros: hi,
|
| 2681 |
-
init:
|
| 2682 |
-
insert:
|
| 2683 |
mount_component: $e,
|
| 2684 |
safe_not_equal: wi,
|
| 2685 |
space: ki,
|
| 2686 |
transition_in: Ce,
|
| 2687 |
-
transition_out:
|
| 2688 |
} = window.__gradio__svelte__internal;
|
| 2689 |
function Rt(l) {
|
| 2690 |
let e, t;
|
|
@@ -2735,7 +2748,7 @@ function Rt(l) {
|
|
| 2735 |
t || (Ce(e.$$.fragment, s), t = !0);
|
| 2736 |
},
|
| 2737 |
o(s) {
|
| 2738 |
-
|
| 2739 |
},
|
| 2740 |
d(s) {
|
| 2741 |
xe(e, s);
|
|
@@ -2827,12 +2840,12 @@ function vi(l) {
|
|
| 2827 |
o && o.c(), e = ki(), Qe(t.$$.fragment);
|
| 2828 |
},
|
| 2829 |
m(a, u) {
|
| 2830 |
-
o && o.m(a, u),
|
| 2831 |
},
|
| 2832 |
p(a, u) {
|
| 2833 |
/*loading_status*/
|
| 2834 |
a[17] ? o ? (o.p(a, u), u & /*loading_status*/
|
| 2835 |
-
131072 && Ce(o, 1)) : (o = Rt(a), o.c(), Ce(o, 1), o.m(e.parentNode, e)) : o && (hi(),
|
| 2836 |
o = null;
|
| 2837 |
}), ui());
|
| 2838 |
const c = {};
|
|
@@ -2866,7 +2879,7 @@ function vi(l) {
|
|
| 2866 |
s || (Ce(o), Ce(t.$$.fragment, a), s = !0);
|
| 2867 |
},
|
| 2868 |
o(a) {
|
| 2869 |
-
|
| 2870 |
},
|
| 2871 |
d(a) {
|
| 2872 |
a && ci(e), o && o.d(a), xe(t, a);
|
|
@@ -2934,7 +2947,7 @@ function pi(l) {
|
|
| 2934 |
t || (Ce(e.$$.fragment, n), t = !0);
|
| 2935 |
},
|
| 2936 |
o(n) {
|
| 2937 |
-
|
| 2938 |
},
|
| 2939 |
d(n) {
|
| 2940 |
xe(e, n);
|
|
@@ -2942,21 +2955,21 @@ function pi(l) {
|
|
| 2942 |
};
|
| 2943 |
}
|
| 2944 |
function yi(l, e, t) {
|
| 2945 |
-
let { gradio: n } = e, { label: i = "Highlighted Textbox" } = e, { legend_label: s = "Highlights:" } = e, { info: o = void 0 } = e, { elem_id: r = "" } = e, { elem_classes: _ = [] } = e, { visible: f = !0 } = e, { value: a } = e, { show_label: u } = e, { show_legend: c } = e, { show_legend_label: m } = e, { color_map: y = {} } = e, { container: S = !0 } = e, { scale: T = null } = e, { min_width: L = void 0 } = e, { show_copy_button: C = !1 } = e, { loading_status: d = void 0 } = e, { value_is_output: p = !1 } = e, { combine_adjacent:
|
| 2946 |
const R = !1, Q = !0;
|
| 2947 |
-
function E(
|
| 2948 |
-
a =
|
| 2949 |
}
|
| 2950 |
-
function P(
|
| 2951 |
-
p =
|
| 2952 |
}
|
| 2953 |
-
const X = () => n.dispatch("change"),
|
| 2954 |
-
return l.$$set = (
|
| 2955 |
-
"gradio" in
|
| 2956 |
}, l.$$.update = () => {
|
| 2957 |
l.$$.dirty & /*color_map*/
|
| 2958 |
2 && !y && Object.keys(y).length && t(1, y), l.$$.dirty & /*value, combine_adjacent*/
|
| 2959 |
-
524289 && a &&
|
| 2960 |
}, [
|
| 2961 |
a,
|
| 2962 |
y,
|
|
@@ -2976,23 +2989,23 @@ function yi(l, e, t) {
|
|
| 2976 |
L,
|
| 2977 |
C,
|
| 2978 |
d,
|
| 2979 |
-
|
| 2980 |
-
|
| 2981 |
R,
|
| 2982 |
Q,
|
| 2983 |
E,
|
| 2984 |
P,
|
| 2985 |
X,
|
| 2986 |
-
|
| 2987 |
D,
|
| 2988 |
x,
|
| 2989 |
-
|
| 2990 |
-
|
| 2991 |
];
|
| 2992 |
}
|
| 2993 |
class Ci extends _i {
|
| 2994 |
constructor(e) {
|
| 2995 |
-
super(),
|
| 2996 |
gradio: 3,
|
| 2997 |
label: 4,
|
| 2998 |
legend_label: 5,
|
|
@@ -3021,121 +3034,121 @@ class Ci extends _i {
|
|
| 3021 |
return this.$$.ctx[3];
|
| 3022 |
}
|
| 3023 |
set gradio(e) {
|
| 3024 |
-
this.$$set({ gradio: e }),
|
| 3025 |
}
|
| 3026 |
get label() {
|
| 3027 |
return this.$$.ctx[4];
|
| 3028 |
}
|
| 3029 |
set label(e) {
|
| 3030 |
-
this.$$set({ label: e }),
|
| 3031 |
}
|
| 3032 |
get legend_label() {
|
| 3033 |
return this.$$.ctx[5];
|
| 3034 |
}
|
| 3035 |
set legend_label(e) {
|
| 3036 |
-
this.$$set({ legend_label: e }),
|
| 3037 |
}
|
| 3038 |
get info() {
|
| 3039 |
return this.$$.ctx[6];
|
| 3040 |
}
|
| 3041 |
set info(e) {
|
| 3042 |
-
this.$$set({ info: e }),
|
| 3043 |
}
|
| 3044 |
get elem_id() {
|
| 3045 |
return this.$$.ctx[7];
|
| 3046 |
}
|
| 3047 |
set elem_id(e) {
|
| 3048 |
-
this.$$set({ elem_id: e }),
|
| 3049 |
}
|
| 3050 |
get elem_classes() {
|
| 3051 |
return this.$$.ctx[8];
|
| 3052 |
}
|
| 3053 |
set elem_classes(e) {
|
| 3054 |
-
this.$$set({ elem_classes: e }),
|
| 3055 |
}
|
| 3056 |
get visible() {
|
| 3057 |
return this.$$.ctx[9];
|
| 3058 |
}
|
| 3059 |
set visible(e) {
|
| 3060 |
-
this.$$set({ visible: e }),
|
| 3061 |
}
|
| 3062 |
get value() {
|
| 3063 |
return this.$$.ctx[0];
|
| 3064 |
}
|
| 3065 |
set value(e) {
|
| 3066 |
-
this.$$set({ value: e }),
|
| 3067 |
}
|
| 3068 |
get show_label() {
|
| 3069 |
return this.$$.ctx[10];
|
| 3070 |
}
|
| 3071 |
set show_label(e) {
|
| 3072 |
-
this.$$set({ show_label: e }),
|
| 3073 |
}
|
| 3074 |
get show_legend() {
|
| 3075 |
return this.$$.ctx[11];
|
| 3076 |
}
|
| 3077 |
set show_legend(e) {
|
| 3078 |
-
this.$$set({ show_legend: e }),
|
| 3079 |
}
|
| 3080 |
get show_legend_label() {
|
| 3081 |
return this.$$.ctx[12];
|
| 3082 |
}
|
| 3083 |
set show_legend_label(e) {
|
| 3084 |
-
this.$$set({ show_legend_label: e }),
|
| 3085 |
}
|
| 3086 |
get color_map() {
|
| 3087 |
return this.$$.ctx[1];
|
| 3088 |
}
|
| 3089 |
set color_map(e) {
|
| 3090 |
-
this.$$set({ color_map: e }),
|
| 3091 |
}
|
| 3092 |
get container() {
|
| 3093 |
return this.$$.ctx[13];
|
| 3094 |
}
|
| 3095 |
set container(e) {
|
| 3096 |
-
this.$$set({ container: e }),
|
| 3097 |
}
|
| 3098 |
get scale() {
|
| 3099 |
return this.$$.ctx[14];
|
| 3100 |
}
|
| 3101 |
set scale(e) {
|
| 3102 |
-
this.$$set({ scale: e }),
|
| 3103 |
}
|
| 3104 |
get min_width() {
|
| 3105 |
return this.$$.ctx[15];
|
| 3106 |
}
|
| 3107 |
set min_width(e) {
|
| 3108 |
-
this.$$set({ min_width: e }),
|
| 3109 |
}
|
| 3110 |
get show_copy_button() {
|
| 3111 |
return this.$$.ctx[16];
|
| 3112 |
}
|
| 3113 |
set show_copy_button(e) {
|
| 3114 |
-
this.$$set({ show_copy_button: e }),
|
| 3115 |
}
|
| 3116 |
get loading_status() {
|
| 3117 |
return this.$$.ctx[17];
|
| 3118 |
}
|
| 3119 |
set loading_status(e) {
|
| 3120 |
-
this.$$set({ loading_status: e }),
|
| 3121 |
}
|
| 3122 |
get value_is_output() {
|
| 3123 |
return this.$$.ctx[2];
|
| 3124 |
}
|
| 3125 |
set value_is_output(e) {
|
| 3126 |
-
this.$$set({ value_is_output: e }),
|
| 3127 |
}
|
| 3128 |
get combine_adjacent() {
|
| 3129 |
return this.$$.ctx[19];
|
| 3130 |
}
|
| 3131 |
set combine_adjacent(e) {
|
| 3132 |
-
this.$$set({ combine_adjacent: e }),
|
| 3133 |
}
|
| 3134 |
get interactive() {
|
| 3135 |
return this.$$.ctx[18];
|
| 3136 |
}
|
| 3137 |
set interactive(e) {
|
| 3138 |
-
this.$$set({ interactive: e }),
|
| 3139 |
}
|
| 3140 |
get autofocus() {
|
| 3141 |
return this.$$.ctx[20];
|
|
|
|
| 14 |
insert: fe,
|
| 15 |
safe_not_equal: rl,
|
| 16 |
set_data: Ue,
|
| 17 |
+
space: He,
|
| 18 |
text: Xe,
|
| 19 |
toggle_class: V,
|
| 20 |
transition_in: ul,
|
|
|
|
| 34 |
_[f] = nt(tt(l, r, f));
|
| 35 |
return {
|
| 36 |
c() {
|
| 37 |
+
e = ce("span"), e.textContent = "·", t = He(), n = ce("div"), i = ce("span"), s = Xe(
|
| 38 |
/*legend_label*/
|
| 39 |
l[3]
|
| 40 |
+
), o = He();
|
| 41 |
for (let f = 0; f < _.length; f += 1)
|
| 42 |
_[f].c();
|
| 43 |
+
U(e, "class", "legend-separator svelte-vm3q5z"), V(e, "hide", !/*show_legend*/
|
| 44 |
+
l[1] || !/*show_label*/
|
| 45 |
+
l[0]), V(
|
| 46 |
e,
|
| 47 |
"has-info",
|
| 48 |
/*info*/
|
| 49 |
l[5] != null
|
| 50 |
+
), U(i, "class", "svelte-vm3q5z"), V(i, "hide", !/*show_legend_label*/
|
| 51 |
l[2]), V(
|
| 52 |
i,
|
| 53 |
"has-info",
|
| 54 |
/*info*/
|
| 55 |
l[5] != null
|
| 56 |
+
), U(n, "class", "category-legend svelte-vm3q5z"), U(n, "data-testid", "highlighted-text:category-legend"), V(n, "hide", !/*show_legend*/
|
| 57 |
l[1]);
|
| 58 |
},
|
| 59 |
m(f, a) {
|
|
|
|
| 62 |
_[u] && _[u].m(n, null);
|
| 63 |
},
|
| 64 |
p(f, a) {
|
| 65 |
+
if (a & /*show_legend, show_label*/
|
| 66 |
+
3 && V(e, "hide", !/*show_legend*/
|
| 67 |
+
f[1] || !/*show_label*/
|
| 68 |
+
f[0]), a & /*info*/
|
| 69 |
32 && V(
|
| 70 |
e,
|
| 71 |
"has-info",
|
|
|
|
| 84 |
"has-info",
|
| 85 |
/*info*/
|
| 86 |
f[5] != null
|
| 87 |
+
), a & /*Object, _color_map, info*/
|
| 88 |
+
48) {
|
| 89 |
r = et(Object.entries(
|
| 90 |
/*_color_map*/
|
| 91 |
f[4]
|
|
|
|
| 115 |
), n, i, s;
|
| 116 |
return {
|
| 117 |
c() {
|
| 118 |
+
e = ce("div"), n = Xe(t), i = He(), U(e, "class", "category-label svelte-vm3q5z"), U(e, "style", s = "background-color:" + /*color*/
|
| 119 |
+
l[9].secondary), V(
|
| 120 |
+
e,
|
| 121 |
+
"has-info",
|
| 122 |
+
/*info*/
|
| 123 |
+
l[5] != null
|
| 124 |
+
);
|
| 125 |
},
|
| 126 |
m(o, r) {
|
| 127 |
fe(o, e, r), se(e, n), se(e, i);
|
|
|
|
| 131 |
16 && t !== (t = /*category*/
|
| 132 |
o[8] + "") && Ue(n, t), r & /*_color_map*/
|
| 133 |
16 && s !== (s = "background-color:" + /*color*/
|
| 134 |
+
o[9].secondary) && U(e, "style", s), r & /*info*/
|
| 135 |
+
32 && V(
|
| 136 |
+
e,
|
| 137 |
+
"has-info",
|
| 138 |
+
/*info*/
|
| 139 |
+
o[5] != null
|
| 140 |
+
);
|
| 141 |
},
|
| 142 |
d(o) {
|
| 143 |
o && oe(e);
|
|
|
|
| 151 |
e = ce("div"), t = Xe(
|
| 152 |
/*info*/
|
| 153 |
l[5]
|
| 154 |
+
), U(e, "class", "title-with-highlights-info svelte-vm3q5z");
|
| 155 |
},
|
| 156 |
m(n, i) {
|
| 157 |
fe(n, e, i), se(e, t);
|
|
|
|
| 190 |
);
|
| 191 |
return {
|
| 192 |
c() {
|
| 193 |
+
e = ce("div"), t = ce("span"), f && f.c(), n = He(), a && a.c(), s = He(), u && u.c(), o = ol(), U(t, "data-testid", "block-info"), U(t, "class", "svelte-vm3q5z"), V(t, "sr-only", !/*show_label*/
|
| 194 |
l[0]), V(t, "hide", !/*show_label*/
|
| 195 |
l[0]), V(
|
| 196 |
t,
|
| 197 |
"has-info",
|
| 198 |
/*info*/
|
| 199 |
l[5] != null
|
| 200 |
+
), U(e, "class", "title-container svelte-vm3q5z");
|
| 201 |
},
|
| 202 |
m(c, m) {
|
| 203 |
fe(c, e, m), se(e, t), f && f.m(t, null), se(e, n), a && a.m(e, null), fe(c, s, m), u && u.m(c, m), fe(c, o, m), r = !0;
|
|
|
|
| 264 |
n
|
| 265 |
];
|
| 266 |
}
|
| 267 |
+
class bl extends nl {
|
| 268 |
constructor(e) {
|
| 269 |
super(), _l(this, e, hl, ml, rl, {
|
| 270 |
show_label: 0,
|
|
|
|
| 277 |
}
|
| 278 |
}
|
| 279 |
const {
|
| 280 |
+
SvelteComponent: gl,
|
| 281 |
append: wl,
|
| 282 |
attr: te,
|
| 283 |
detach: kl,
|
|
|
|
| 304 |
}
|
| 305 |
};
|
| 306 |
}
|
| 307 |
+
class ql extends gl {
|
| 308 |
constructor(e) {
|
| 309 |
super(), vl(this, e, null, Cl, yl, {});
|
| 310 |
}
|
|
|
|
| 315 |
attr: re,
|
| 316 |
detach: Ll,
|
| 317 |
init: Sl,
|
| 318 |
+
insert: Fl,
|
| 319 |
noop: Oe,
|
| 320 |
+
safe_not_equal: Hl,
|
| 321 |
svg_element: Re
|
| 322 |
} = window.__gradio__svelte__internal;
|
| 323 |
+
function Ml(l) {
|
| 324 |
let e, t, n;
|
| 325 |
return {
|
| 326 |
c() {
|
| 327 |
e = Re("svg"), t = Re("path"), n = Re("path"), re(t, "fill", "currentColor"), re(t, "d", "M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"), re(n, "fill", "currentColor"), re(n, "d", "M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"), re(e, "xmlns", "http://www.w3.org/2000/svg"), re(e, "viewBox", "0 0 33 33"), re(e, "color", "currentColor");
|
| 328 |
},
|
| 329 |
m(i, s) {
|
| 330 |
+
Fl(i, e, s), ot(e, t), ot(e, n);
|
| 331 |
},
|
| 332 |
p: Oe,
|
| 333 |
i: Oe,
|
|
|
|
| 337 |
}
|
| 338 |
};
|
| 339 |
}
|
| 340 |
+
class jl extends Tl {
|
| 341 |
constructor(e) {
|
| 342 |
+
super(), Sl(this, e, null, Ml, Hl, {});
|
| 343 |
}
|
| 344 |
}
|
| 345 |
+
function Ae() {
|
| 346 |
}
|
| 347 |
const Nl = (l) => l;
|
| 348 |
function Vl(l, e) {
|
| 349 |
return l != l ? e == e : l !== e || l && typeof l == "object" || typeof l == "function";
|
| 350 |
}
|
| 351 |
const Dt = typeof window < "u";
|
| 352 |
+
let ft = Dt ? () => window.performance.now() : () => Date.now(), It = Dt ? (l) => requestAnimationFrame(l) : Ae;
|
| 353 |
const qe = /* @__PURE__ */ new Set();
|
| 354 |
function Wt(l) {
|
| 355 |
qe.forEach((e) => {
|
| 356 |
e.c(l) || (qe.delete(e), e.f());
|
| 357 |
}), qe.size !== 0 && It(Wt);
|
| 358 |
}
|
| 359 |
+
function zl(l) {
|
| 360 |
let e;
|
| 361 |
return qe.size === 0 && It(Wt), {
|
| 362 |
promise: new Promise((t) => {
|
|
|
|
| 367 |
}
|
| 368 |
};
|
| 369 |
}
|
| 370 |
+
function Al(l, { delay: e = 0, duration: t = 400, easing: n = Nl } = {}) {
|
| 371 |
const i = +getComputedStyle(l).opacity;
|
| 372 |
return {
|
| 373 |
delay: e,
|
|
|
|
| 377 |
};
|
| 378 |
}
|
| 379 |
const ve = [];
|
| 380 |
+
function Bl(l, e = Ae) {
|
| 381 |
let t;
|
| 382 |
const n = /* @__PURE__ */ new Set();
|
| 383 |
function i(r) {
|
|
|
|
| 395 |
function s(r) {
|
| 396 |
i(r(l));
|
| 397 |
}
|
| 398 |
+
function o(r, _ = Ae) {
|
| 399 |
const f = [r, _];
|
| 400 |
+
return n.add(f), n.size === 1 && (t = e(i, s) || Ae), r(l), () => {
|
| 401 |
n.delete(f), n.size === 0 && t && (t(), t = null);
|
| 402 |
};
|
| 403 |
}
|
|
|
|
| 430 |
function y(T, L = {}) {
|
| 431 |
a = T;
|
| 432 |
const C = _ = {};
|
| 433 |
+
return l == null || L.hard || S.stiffness >= 1 && S.damping >= 1 ? (m = !0, o = ft(), f = T, t.set(l = a), Promise.resolve()) : (L.soft && (c = 1 / ((L.soft === !0 ? 0.5 : +L.soft) * 60), u = 0), r || (o = ft(), m = !1, r = zl((d) => {
|
| 434 |
if (m)
|
| 435 |
return m = !1, r = null, !1;
|
| 436 |
u = Math.min(u + c, 1);
|
|
|
|
| 439 |
opts: S,
|
| 440 |
settled: !0,
|
| 441 |
dt: (d - o) * 60 / 1e3
|
| 442 |
+
}, H = Ie(p, f, l, a);
|
| 443 |
+
return o = d, f = l, t.set(l = H), p.settled && (r = null), !p.settled;
|
| 444 |
})), new Promise((d) => {
|
| 445 |
r.promise.then(() => {
|
| 446 |
C === _ && d();
|
|
|
|
| 839 |
create_in_transition: Wl,
|
| 840 |
destroy_component: Je,
|
| 841 |
detach: me,
|
| 842 |
+
element: Me,
|
| 843 |
empty: Ul,
|
| 844 |
group_outros: Xt,
|
| 845 |
init: Xl,
|
|
|
|
| 850 |
run_all: Yl,
|
| 851 |
safe_not_equal: Gl,
|
| 852 |
set_data: Jl,
|
| 853 |
+
space: bt,
|
| 854 |
text: Kl,
|
| 855 |
+
toggle_class: gt,
|
| 856 |
transition_in: ne,
|
| 857 |
transition_out: de
|
| 858 |
} = window.__gradio__svelte__internal, { beforeUpdate: Ql, afterUpdate: xl, createEventDispatcher: $l } = window.__gradio__svelte__internal;
|
|
|
|
| 916 |
}
|
| 917 |
function tn(l) {
|
| 918 |
let e, t, n, i, s;
|
| 919 |
+
return t = new jl({}), {
|
| 920 |
c() {
|
| 921 |
+
e = Me("button"), Ge(t.$$.fragment), B(e, "aria-label", "Copy"), B(e, "aria-roledescription", "Copy text"), B(e, "class", "svelte-14ssfqr");
|
| 922 |
},
|
| 923 |
m(o, r) {
|
| 924 |
he(o, e, r), Ke(t, e, null), n = !0, i || (s = G(
|
|
|
|
| 944 |
let e, t, n, i;
|
| 945 |
return t = new ql({}), {
|
| 946 |
c() {
|
| 947 |
+
e = Me("button"), Ge(t.$$.fragment), B(e, "aria-label", "Copied"), B(e, "aria-roledescription", "Text copied"), B(e, "class", "svelte-14ssfqr");
|
| 948 |
},
|
| 949 |
m(s, o) {
|
| 950 |
he(s, e, o), Ke(t, e, null), i = !0;
|
|
|
|
| 952 |
p: Yt,
|
| 953 |
i(s) {
|
| 954 |
i || (ne(t.$$.fragment, s), s && (n || Ye(() => {
|
| 955 |
+
n = Wl(e, Al, { duration: 300 }), n.start();
|
| 956 |
})), i = !0);
|
| 957 |
},
|
| 958 |
o(s) {
|
|
|
|
| 967 |
let e, t, n;
|
| 968 |
return {
|
| 969 |
c() {
|
| 970 |
+
e = Me("div"), B(e, "class", "textfield svelte-14ssfqr"), B(e, "data-testid", "highlighted-textbox"), B(e, "contenteditable", "true"), /*el_text*/
|
| 971 |
(l[11] === void 0 || /*marked_el_text*/
|
| 972 |
l[9] === void 0) && Ye(() => (
|
| 973 |
/*div_input_handler_1*/
|
|
|
|
| 1048 |
let e, t, n;
|
| 1049 |
return {
|
| 1050 |
c() {
|
| 1051 |
+
e = Me("div"), B(e, "class", "textfield svelte-14ssfqr"), B(e, "data-testid", "highlighted-textbox"), B(e, "contenteditable", "false"), /*el_text*/
|
| 1052 |
(l[11] === void 0 || /*marked_el_text*/
|
| 1053 |
l[9] === void 0) && Ye(() => (
|
| 1054 |
/*div_input_handler*/
|
|
|
|
| 1083 |
}
|
| 1084 |
function on(l) {
|
| 1085 |
let e, t, n, i, s;
|
| 1086 |
+
t = new bl({
|
| 1087 |
props: {
|
| 1088 |
show_label: (
|
| 1089 |
/*show_label*/
|
| 1090 |
l[3]
|
| 1091 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1092 |
show_legend: (
|
| 1093 |
/*show_legend*/
|
| 1094 |
l[4]
|
|
|
|
| 1105 |
/*_color_map*/
|
| 1106 |
l[12]
|
| 1107 |
),
|
| 1108 |
+
info: (
|
| 1109 |
+
/*info*/
|
| 1110 |
+
l[2]
|
| 1111 |
+
),
|
| 1112 |
$$slots: { default: [en] },
|
| 1113 |
$$scope: { ctx: l }
|
| 1114 |
}
|
|
|
|
| 1126 |
let _ = r(l), f = _(l);
|
| 1127 |
return {
|
| 1128 |
c() {
|
| 1129 |
+
e = Me("label"), Ge(t.$$.fragment), n = bt(), o && o.c(), i = bt(), f.c(), B(e, "class", "svelte-14ssfqr"), gt(
|
| 1130 |
e,
|
| 1131 |
"container",
|
| 1132 |
/*container*/
|
|
|
|
| 1140 |
const c = {};
|
| 1141 |
u[0] & /*show_label*/
|
| 1142 |
8 && (c.show_label = /*show_label*/
|
| 1143 |
+
a[3]), u[0] & /*show_legend*/
|
|
|
|
|
|
|
| 1144 |
16 && (c.show_legend = /*show_legend*/
|
| 1145 |
a[4]), u[0] & /*show_legend_label*/
|
| 1146 |
32 && (c.show_legend_label = /*show_legend_label*/
|
|
|
|
| 1148 |
2 && (c.legend_label = /*legend_label*/
|
| 1149 |
a[1]), u[0] & /*_color_map*/
|
| 1150 |
4096 && (c._color_map = /*_color_map*/
|
| 1151 |
+
a[12]), u[0] & /*info*/
|
| 1152 |
+
4 && (c.info = /*info*/
|
| 1153 |
+
a[2]), u[0] & /*label*/
|
| 1154 |
1 | u[1] & /*$$scope*/
|
| 1155 |
512 && (c.$$scope = { dirty: u, ctx: a }), t.$set(c), /*show_copy_button*/
|
| 1156 |
a[7] ? o ? (o.p(a, u), u[0] & /*show_copy_button*/
|
| 1157 |
128 && ne(o, 1)) : (o = wt(a), o.c(), ne(o, 1), o.m(e, i)) : o && (Xt(), de(o, 1, 1, () => {
|
| 1158 |
o = null;
|
| 1159 |
}), Ut()), _ === (_ = r(a)) && f ? f.p(a, u) : (f.d(1), f = _(a), f && (f.c(), f.m(e, null))), (!s || u[0] & /*container*/
|
| 1160 |
+
64) && gt(
|
| 1161 |
e,
|
| 1162 |
"container",
|
| 1163 |
/*container*/
|
|
|
|
| 1187 |
}
|
| 1188 |
function an(l, e, t) {
|
| 1189 |
const n = typeof document < "u";
|
| 1190 |
+
let { value: i = [] } = e, { value_is_output: s = !1 } = e, { label: o } = e, { legend_label: r } = e, { info: _ = void 0 } = e, { show_label: f = !0 } = e, { show_legend: a = !1 } = e, { show_legend_label: u = !1 } = e, { container: c = !0 } = e, { color_map: m = {} } = e, { show_copy_button: y = !1 } = e, { disabled: S } = e, T, L = "", C = "", d, p = !m || Object.keys(m).length === 0 ? {} : m, H = {}, b = !1, R;
|
| 1191 |
function Q() {
|
| 1192 |
for (let h in p)
|
| 1193 |
+
i.map(([N, j]) => j).includes(h) || delete p[h];
|
| 1194 |
if (i.length > 0) {
|
| 1195 |
for (let [h, N] of i)
|
| 1196 |
if (N !== null && !(N in p)) {
|
| 1197 |
+
let j = Pl(Object.keys(p).length);
|
| 1198 |
+
p[N] = j;
|
| 1199 |
}
|
| 1200 |
}
|
| 1201 |
+
t(12, H = Zl(p, n, d));
|
| 1202 |
}
|
| 1203 |
function E(h) {
|
| 1204 |
+
i.length > 0 && h && (t(11, L = i.map(([N, j]) => N).join(" ")), t(9, C = i.map(([N, j]) => j !== null ? `<mark class="hl ${j}" style="background-color:${H[j].secondary}">${N}</mark>` : N).join(" ") + " "));
|
| 1205 |
}
|
| 1206 |
const P = $l();
|
| 1207 |
Ql(() => {
|
| 1208 |
T && T.offsetHeight + T.scrollTop > T.scrollHeight - 100;
|
| 1209 |
});
|
| 1210 |
function X() {
|
| 1211 |
+
P("change", C), s || P("input"), z();
|
| 1212 |
}
|
| 1213 |
xl(() => {
|
| 1214 |
Q(), E(s), t(17, s = !1);
|
| 1215 |
});
|
| 1216 |
+
function be() {
|
| 1217 |
+
let h = [], N = "", j = null, ee = !1, ke = "";
|
| 1218 |
for (let ae = 0; ae < C.length; ae++) {
|
| 1219 |
let _e = C[ae];
|
| 1220 |
+
_e === "<" ? (ee = !0, N && h.push([N, j]), N = "", j = null) : _e === ">" ? (ee = !1, ke.startsWith("mark") && (j = fn([
|
| 1221 |
ke,
|
| 1222 |
"access",
|
| 1223 |
(Y) => Y.match,
|
|
|
|
| 1227 |
(Y) => Y[1]
|
| 1228 |
]) || null), ke = "") : ee ? ke += _e : N += _e;
|
| 1229 |
}
|
| 1230 |
+
N && h.push([N, j]), t(16, i = h);
|
| 1231 |
}
|
| 1232 |
async function D() {
|
| 1233 |
"clipboard" in navigator && (await navigator.clipboard.writeText(L), x());
|
| 1234 |
}
|
| 1235 |
function x() {
|
| 1236 |
+
t(13, b = !0), R && clearTimeout(R), R = setTimeout(
|
| 1237 |
() => {
|
| 1238 |
+
t(13, b = !1);
|
| 1239 |
},
|
| 1240 |
1e3
|
| 1241 |
);
|
| 1242 |
}
|
| 1243 |
+
function z() {
|
| 1244 |
const h = window.getSelection(), N = h.anchorOffset;
|
| 1245 |
if (h.rangeCount > 0) {
|
| 1246 |
+
var j = h.getRangeAt(0).commonAncestorContainer.parentElement;
|
| 1247 |
+
if (j && j.tagName.toLowerCase() === "mark") {
|
| 1248 |
+
const tl = j.textContent;
|
| 1249 |
+
var ee = j.parentElement, ke = document.createTextNode(tl);
|
| 1250 |
+
ee.replaceChild(ke, j), t(9, C = ee.innerHTML);
|
| 1251 |
var ae = document.createRange(), _e = window.getSelection();
|
| 1252 |
const ll = N + Rl(ee);
|
| 1253 |
var Y = Dl(ee, ll);
|
| 1254 |
ae.setStart(Y.node, Y.offset), ae.setEnd(Y.node, Y.offset), _e.removeAllRanges(), _e.addRange(ae);
|
| 1255 |
}
|
| 1256 |
}
|
| 1257 |
+
be(), P("change", C);
|
| 1258 |
}
|
| 1259 |
+
function ge(h) {
|
| 1260 |
pe.call(this, l, h);
|
| 1261 |
}
|
| 1262 |
+
function g(h) {
|
| 1263 |
pe.call(this, l, h);
|
| 1264 |
}
|
| 1265 |
+
function je(h) {
|
| 1266 |
pe.call(this, l, h);
|
| 1267 |
}
|
| 1268 |
function Ne(h) {
|
|
|
|
| 1308 |
C,
|
| 1309 |
T,
|
| 1310 |
L,
|
| 1311 |
+
H,
|
| 1312 |
+
b,
|
| 1313 |
D,
|
| 1314 |
+
z,
|
| 1315 |
i,
|
| 1316 |
s,
|
| 1317 |
m,
|
| 1318 |
+
ge,
|
| 1319 |
+
g,
|
| 1320 |
+
je,
|
| 1321 |
Ne,
|
| 1322 |
we,
|
| 1323 |
Ee,
|
|
|
|
| 1361 |
detach: dn,
|
| 1362 |
element: mn,
|
| 1363 |
get_all_dirty_from_scope: hn,
|
| 1364 |
+
get_slot_changes: bn,
|
| 1365 |
+
get_spread_update: gn,
|
| 1366 |
init: wn,
|
| 1367 |
insert: kn,
|
| 1368 |
safe_not_equal: vn,
|
| 1369 |
set_dynamic_element_data: kt,
|
| 1370 |
+
set_style: A,
|
| 1371 |
toggle_class: le,
|
| 1372 |
transition_in: Gt,
|
| 1373 |
transition_out: Jt,
|
|
|
|
| 1426 |
l[5] === "focus"
|
| 1427 |
), le(e, "hide-container", !/*explicit_call*/
|
| 1428 |
l[8] && !/*container*/
|
| 1429 |
+
l[9]), A(
|
| 1430 |
e,
|
| 1431 |
"height",
|
| 1432 |
/*get_dimension*/
|
|
|
|
| 1434 |
/*height*/
|
| 1435 |
l[0]
|
| 1436 |
)
|
| 1437 |
+
), A(e, "width", typeof /*width*/
|
| 1438 |
l[1] == "number" ? `calc(min(${/*width*/
|
| 1439 |
l[1]}px, 100%))` : (
|
| 1440 |
/*get_dimension*/
|
|
|
|
| 1442 |
/*width*/
|
| 1443 |
l[1]
|
| 1444 |
)
|
| 1445 |
+
)), A(
|
| 1446 |
e,
|
| 1447 |
"border-style",
|
| 1448 |
/*variant*/
|
| 1449 |
l[4]
|
| 1450 |
+
), A(
|
| 1451 |
e,
|
| 1452 |
"overflow",
|
| 1453 |
/*allow_overflow*/
|
| 1454 |
l[11] ? "visible" : "hidden"
|
| 1455 |
+
), A(
|
| 1456 |
e,
|
| 1457 |
"flex-grow",
|
| 1458 |
/*scale*/
|
| 1459 |
l[12]
|
| 1460 |
+
), A(e, "min-width", `calc(min(${/*min_width*/
|
| 1461 |
+
l[13]}px, 100%))`), A(e, "border-width", "var(--block-border-width)");
|
| 1462 |
},
|
| 1463 |
m(_, f) {
|
| 1464 |
kn(_, e, f), s && s.m(e, null), n = !0;
|
|
|
|
| 1471 |
_,
|
| 1472 |
/*$$scope*/
|
| 1473 |
_[17],
|
| 1474 |
+
n ? bn(
|
| 1475 |
i,
|
| 1476 |
/*$$scope*/
|
| 1477 |
_[17],
|
|
|
|
| 1485 |
), kt(
|
| 1486 |
/*tag*/
|
| 1487 |
_[14]
|
| 1488 |
+
)(e, r = gn(o, [
|
| 1489 |
(!n || f & /*test_id*/
|
| 1490 |
128) && { "data-testid": (
|
| 1491 |
/*test_id*/
|
|
|
|
| 1517 |
), le(e, "hide-container", !/*explicit_call*/
|
| 1518 |
_[8] && !/*container*/
|
| 1519 |
_[9]), f & /*height*/
|
| 1520 |
+
1 && A(
|
| 1521 |
e,
|
| 1522 |
"height",
|
| 1523 |
/*get_dimension*/
|
|
|
|
| 1526 |
_[0]
|
| 1527 |
)
|
| 1528 |
), f & /*width*/
|
| 1529 |
+
2 && A(e, "width", typeof /*width*/
|
| 1530 |
_[1] == "number" ? `calc(min(${/*width*/
|
| 1531 |
_[1]}px, 100%))` : (
|
| 1532 |
/*get_dimension*/
|
|
|
|
| 1535 |
_[1]
|
| 1536 |
)
|
| 1537 |
)), f & /*variant*/
|
| 1538 |
+
16 && A(
|
| 1539 |
e,
|
| 1540 |
"border-style",
|
| 1541 |
/*variant*/
|
| 1542 |
_[4]
|
| 1543 |
), f & /*allow_overflow*/
|
| 1544 |
+
2048 && A(
|
| 1545 |
e,
|
| 1546 |
"overflow",
|
| 1547 |
/*allow_overflow*/
|
| 1548 |
_[11] ? "visible" : "hidden"
|
| 1549 |
), f & /*scale*/
|
| 1550 |
+
4096 && A(
|
| 1551 |
e,
|
| 1552 |
"flex-grow",
|
| 1553 |
/*scale*/
|
| 1554 |
_[12]
|
| 1555 |
), f & /*min_width*/
|
| 1556 |
+
8192 && A(e, "min-width", `calc(min(${/*min_width*/
|
| 1557 |
_[13]}px, 100%))`);
|
| 1558 |
},
|
| 1559 |
i(_) {
|
|
|
|
| 1596 |
}
|
| 1597 |
function qn(l, e, t) {
|
| 1598 |
let { $$slots: n = {}, $$scope: i } = e, { height: s = void 0 } = e, { width: o = void 0 } = e, { elem_id: r = "" } = e, { elem_classes: _ = [] } = e, { variant: f = "solid" } = e, { border_mode: a = "base" } = e, { padding: u = !0 } = e, { type: c = "normal" } = e, { test_id: m = void 0 } = e, { explicit_call: y = !1 } = e, { container: S = !0 } = e, { visible: T = !0 } = e, { allow_overflow: L = !0 } = e, { scale: C = null } = e, { min_width: d = 0 } = e, p = c === "fieldset" ? "fieldset" : "div";
|
| 1599 |
+
const H = (b) => {
|
| 1600 |
+
if (b !== void 0) {
|
| 1601 |
+
if (typeof b == "number")
|
| 1602 |
+
return b + "px";
|
| 1603 |
+
if (typeof b == "string")
|
| 1604 |
+
return b;
|
| 1605 |
}
|
| 1606 |
};
|
| 1607 |
+
return l.$$set = (b) => {
|
| 1608 |
+
"height" in b && t(0, s = b.height), "width" in b && t(1, o = b.width), "elem_id" in b && t(2, r = b.elem_id), "elem_classes" in b && t(3, _ = b.elem_classes), "variant" in b && t(4, f = b.variant), "border_mode" in b && t(5, a = b.border_mode), "padding" in b && t(6, u = b.padding), "type" in b && t(16, c = b.type), "test_id" in b && t(7, m = b.test_id), "explicit_call" in b && t(8, y = b.explicit_call), "container" in b && t(9, S = b.container), "visible" in b && t(10, T = b.visible), "allow_overflow" in b && t(11, L = b.allow_overflow), "scale" in b && t(12, C = b.scale), "min_width" in b && t(13, d = b.min_width), "$$scope" in b && t(17, i = b.$$scope);
|
| 1609 |
}, [
|
| 1610 |
s,
|
| 1611 |
o,
|
|
|
|
| 1622 |
C,
|
| 1623 |
d,
|
| 1624 |
p,
|
| 1625 |
+
H,
|
| 1626 |
c,
|
| 1627 |
i,
|
| 1628 |
n
|
|
|
|
| 1662 |
attr: q,
|
| 1663 |
component_subscribe: vt,
|
| 1664 |
detach: Sn,
|
| 1665 |
+
element: Fn,
|
| 1666 |
+
init: Hn,
|
| 1667 |
+
insert: Mn,
|
| 1668 |
noop: pt,
|
| 1669 |
+
safe_not_equal: jn,
|
| 1670 |
set_style: Ve,
|
| 1671 |
svg_element: W,
|
| 1672 |
toggle_class: yt
|
|
|
|
| 1675 |
let e, t, n, i, s, o, r, _, f, a, u, c;
|
| 1676 |
return {
|
| 1677 |
c() {
|
| 1678 |
+
e = Fn("div"), t = W("svg"), n = W("g"), i = W("path"), s = W("path"), o = W("path"), r = W("path"), _ = W("g"), f = W("path"), a = W("path"), u = W("path"), c = W("path"), q(i, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), q(i, "fill", "#FF7C00"), q(i, "fill-opacity", "0.4"), q(i, "class", "svelte-43sxxs"), q(s, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), q(s, "fill", "#FF7C00"), q(s, "class", "svelte-43sxxs"), q(o, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), q(o, "fill", "#FF7C00"), q(o, "fill-opacity", "0.4"), q(o, "class", "svelte-43sxxs"), q(r, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), q(r, "fill", "#FF7C00"), q(r, "class", "svelte-43sxxs"), Ve(n, "transform", "translate(" + /*$top*/
|
| 1679 |
l[1][0] + "px, " + /*$top*/
|
| 1680 |
l[1][1] + "px)"), q(f, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), q(f, "fill", "#FF7C00"), q(f, "fill-opacity", "0.4"), q(f, "class", "svelte-43sxxs"), q(a, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), q(a, "fill", "#FF7C00"), q(a, "class", "svelte-43sxxs"), q(u, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), q(u, "fill", "#FF7C00"), q(u, "fill-opacity", "0.4"), q(u, "class", "svelte-43sxxs"), q(c, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), q(c, "fill", "#FF7C00"), q(c, "class", "svelte-43sxxs"), Ve(_, "transform", "translate(" + /*$bottom*/
|
| 1681 |
l[2][0] + "px, " + /*$bottom*/
|
|
|
|
| 1687 |
);
|
| 1688 |
},
|
| 1689 |
m(m, y) {
|
| 1690 |
+
Mn(m, e, y), I(e, t), I(t, n), I(n, i), I(n, s), I(n, o), I(n, r), I(t, _), I(_, f), I(_, a), I(_, u), I(_, c);
|
| 1691 |
},
|
| 1692 |
p(m, [y]) {
|
| 1693 |
y & /*$top*/
|
|
|
|
| 1711 |
}
|
| 1712 |
};
|
| 1713 |
}
|
| 1714 |
+
function zn(l, e, t) {
|
| 1715 |
let n, i, { margin: s = !0 } = e;
|
| 1716 |
const o = _t([0, 0]);
|
| 1717 |
vt(l, o, (c) => t(1, n = c));
|
|
|
|
| 1731 |
"margin" in c && t(0, s = c.margin);
|
| 1732 |
}, [s, n, i, o, r];
|
| 1733 |
}
|
| 1734 |
+
class An extends Ln {
|
| 1735 |
constructor(e) {
|
| 1736 |
+
super(), Hn(this, e, zn, Vn, jn, { margin: 0 });
|
| 1737 |
}
|
| 1738 |
}
|
| 1739 |
const {
|
|
|
|
| 1761 |
set_data: O,
|
| 1762 |
set_style: ie,
|
| 1763 |
space: K,
|
| 1764 |
+
text: F,
|
| 1765 |
toggle_class: Z,
|
| 1766 |
transition_in: Te,
|
| 1767 |
transition_out: Le,
|
|
|
|
| 1792 |
);
|
| 1793 |
return {
|
| 1794 |
c() {
|
| 1795 |
+
e = $("span"), n = F(t), i = K(), r && r.c(), J(e, "class", "error svelte-1txqlrd");
|
| 1796 |
},
|
| 1797 |
m(_, f) {
|
| 1798 |
v(_, e, f), ue(e, n), v(_, i, f), r && r.m(_, f), s = !0;
|
|
|
|
| 1859 |
}
|
| 1860 |
let c = u(l), m = c && c(l), y = (
|
| 1861 |
/*timer*/
|
| 1862 |
+
l[5] && Mt(l)
|
| 1863 |
);
|
| 1864 |
const S = [ni, li], T = [];
|
| 1865 |
function L(d, p) {
|
|
|
|
| 1896 |
d[8] === "default" && /*show_eta_bar*/
|
| 1897 |
d[18] && /*show_progress*/
|
| 1898 |
d[6] === "full" ? a ? a.p(d, p) : (a = St(d), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), c === (c = u(d)) && m ? m.p(d, p) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(t, n))), /*timer*/
|
| 1899 |
+
d[5] ? y ? y.p(d, p) : (y = Mt(d), y.c(), y.m(t, null)) : y && (y.d(1), y = null), (!f || p[0] & /*variant*/
|
| 1900 |
256) && Z(
|
| 1901 |
t,
|
| 1902 |
"meta-text-center",
|
|
|
|
| 1909 |
/*variant*/
|
| 1910 |
d[8] === "default"
|
| 1911 |
);
|
| 1912 |
+
let H = s;
|
| 1913 |
+
s = L(d), s === H ? ~s && T[s].p(d, p) : (o && (xt(), Le(T[H], 1, 1, () => {
|
| 1914 |
+
T[H] = null;
|
| 1915 |
}), Kt()), ~s ? (o = T[s], o ? o.p(d, p) : (o = T[s] = S[s](d), o.c()), Te(o, 1), o.m(r.parentNode, r)) : o = null), /*timer*/
|
| 1916 |
d[5] ? C && (C.d(1), C = null) : C ? C.p(d, p) : (C = Et(d), C.c(), C.m(_.parentNode, _));
|
| 1917 |
},
|
|
|
|
| 1950 |
let e;
|
| 1951 |
return {
|
| 1952 |
c() {
|
| 1953 |
+
e = F("processing |");
|
| 1954 |
},
|
| 1955 |
m(t, n) {
|
| 1956 |
v(t, e, n);
|
|
|
|
| 1968 |
), n, i, s, o;
|
| 1969 |
return {
|
| 1970 |
c() {
|
| 1971 |
+
e = F("queue: "), n = F(t), i = F("/"), s = F(
|
| 1972 |
/*queue_size*/
|
| 1973 |
l[3]
|
| 1974 |
+
), o = F(" |");
|
| 1975 |
},
|
| 1976 |
m(r, _) {
|
| 1977 |
v(r, e, _), v(r, n, _), v(r, i, _), v(r, s, _), v(r, o, _);
|
|
|
|
| 1997 |
l[7]
|
| 1998 |
), n = [];
|
| 1999 |
for (let i = 0; i < t.length; i += 1)
|
| 2000 |
+
n[i] = Ht(Lt(l, t, i));
|
| 2001 |
return {
|
| 2002 |
c() {
|
| 2003 |
for (let i = 0; i < n.length; i += 1)
|
|
|
|
| 2019 |
let o;
|
| 2020 |
for (o = 0; o < t.length; o += 1) {
|
| 2021 |
const r = Lt(i, t, o);
|
| 2022 |
+
n[o] ? n[o].p(r, s) : (n[o] = Ht(r), n[o].c(), n[o].m(e.parentNode, e));
|
| 2023 |
}
|
| 2024 |
for (; o < n.length; o += 1)
|
| 2025 |
n[o].d(1);
|
|
|
|
| 2031 |
}
|
| 2032 |
};
|
| 2033 |
}
|
| 2034 |
+
function Ft(l) {
|
| 2035 |
let e, t = (
|
| 2036 |
/*p*/
|
| 2037 |
l[38].unit + ""
|
|
|
|
| 2045 |
let _ = r(l), f = _(l);
|
| 2046 |
return {
|
| 2047 |
c() {
|
| 2048 |
+
f.c(), e = K(), n = F(t), i = F(" | "), o = F(s);
|
| 2049 |
},
|
| 2050 |
m(a, u) {
|
| 2051 |
f.m(a, u), v(a, e, u), v(a, n, u), v(a, i, u), v(a, o, u);
|
|
|
|
| 2067 |
) + "", t;
|
| 2068 |
return {
|
| 2069 |
c() {
|
| 2070 |
+
t = F(e);
|
| 2071 |
},
|
| 2072 |
m(n, i) {
|
| 2073 |
v(n, t, i);
|
|
|
|
| 2094 |
) + "", s;
|
| 2095 |
return {
|
| 2096 |
c() {
|
| 2097 |
+
t = F(e), n = F("/"), s = F(i);
|
| 2098 |
},
|
| 2099 |
m(o, r) {
|
| 2100 |
v(o, t, r), v(o, n, r), v(o, s, r);
|
|
|
|
| 2115 |
}
|
| 2116 |
};
|
| 2117 |
}
|
| 2118 |
+
function Ht(l) {
|
| 2119 |
let e, t = (
|
| 2120 |
/*p*/
|
| 2121 |
+
l[38].index != null && Ft(l)
|
| 2122 |
);
|
| 2123 |
return {
|
| 2124 |
c() {
|
|
|
|
| 2129 |
},
|
| 2130 |
p(n, i) {
|
| 2131 |
/*p*/
|
| 2132 |
+
n[38].index != null ? t ? t.p(n, i) : (t = Ft(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
| 2133 |
},
|
| 2134 |
d(n) {
|
| 2135 |
n && k(e), t && t.d(n);
|
| 2136 |
}
|
| 2137 |
};
|
| 2138 |
}
|
| 2139 |
+
function Mt(l) {
|
| 2140 |
let e, t = (
|
| 2141 |
/*eta*/
|
| 2142 |
l[0] ? `/${/*formatted_eta*/
|
|
|
|
| 2144 |
), n, i;
|
| 2145 |
return {
|
| 2146 |
c() {
|
| 2147 |
+
e = F(
|
| 2148 |
/*formatted_timer*/
|
| 2149 |
l[20]
|
| 2150 |
+
), n = F(t), i = F("s");
|
| 2151 |
},
|
| 2152 |
m(s, o) {
|
| 2153 |
v(s, e, o), v(s, n, o), v(s, i, o);
|
|
|
|
| 2170 |
}
|
| 2171 |
function li(l) {
|
| 2172 |
let e, t;
|
| 2173 |
+
return e = new An({
|
| 2174 |
props: { margin: (
|
| 2175 |
/*variant*/
|
| 2176 |
l[8] === "default"
|
|
|
|
| 2203 |
let e, t, n, i, s, o = `${/*last_progress_level*/
|
| 2204 |
l[15] * 100}%`, r = (
|
| 2205 |
/*progress*/
|
| 2206 |
+
l[7] != null && jt(l)
|
| 2207 |
);
|
| 2208 |
return {
|
| 2209 |
c() {
|
|
|
|
| 2214 |
},
|
| 2215 |
p(_, f) {
|
| 2216 |
/*progress*/
|
| 2217 |
+
_[7] != null ? r ? r.p(_, f) : (r = jt(_), r.c(), r.m(t, null)) : r && (r.d(1), r = null), f[0] & /*last_progress_level*/
|
| 2218 |
32768 && o !== (o = `${/*last_progress_level*/
|
| 2219 |
_[15] * 100}%`) && ie(s, "width", o);
|
| 2220 |
},
|
|
|
|
| 2225 |
}
|
| 2226 |
};
|
| 2227 |
}
|
| 2228 |
+
function jt(l) {
|
| 2229 |
let e, t = Be(
|
| 2230 |
/*progress*/
|
| 2231 |
l[7]
|
|
|
|
| 2279 |
l[14][
|
| 2280 |
/*i*/
|
| 2281 |
l[40]
|
| 2282 |
+
] != null && zt()
|
| 2283 |
), _ = (
|
| 2284 |
/*progress_level*/
|
| 2285 |
+
l[14] != null && At(l)
|
| 2286 |
);
|
| 2287 |
return {
|
| 2288 |
c() {
|
|
|
|
| 2299 |
f[14][
|
| 2300 |
/*i*/
|
| 2301 |
f[40]
|
| 2302 |
+
] != null ? r || (r = zt(), r.c(), r.m(n.parentNode, n)) : r && (r.d(1), r = null), /*progress_level*/
|
| 2303 |
+
f[14] != null ? _ ? _.p(f, a) : (_ = At(f), _.c(), _.m(i.parentNode, i)) : _ && (_.d(1), _ = null);
|
| 2304 |
},
|
| 2305 |
d(f) {
|
| 2306 |
f && (k(e), k(t), k(n), k(i)), s && s.d(f), o && o.d(f), r && r.d(f), _ && _.d(f);
|
|
|
|
| 2311 |
let e;
|
| 2312 |
return {
|
| 2313 |
c() {
|
| 2314 |
+
e = F(" /");
|
| 2315 |
},
|
| 2316 |
m(t, n) {
|
| 2317 |
v(t, e, n);
|
|
|
|
| 2328 |
), t;
|
| 2329 |
return {
|
| 2330 |
c() {
|
| 2331 |
+
t = F(e);
|
| 2332 |
},
|
| 2333 |
m(n, i) {
|
| 2334 |
v(n, t, i);
|
|
|
|
| 2343 |
}
|
| 2344 |
};
|
| 2345 |
}
|
| 2346 |
+
function zt(l) {
|
| 2347 |
let e;
|
| 2348 |
return {
|
| 2349 |
c() {
|
| 2350 |
+
e = F("-");
|
| 2351 |
},
|
| 2352 |
m(t, n) {
|
| 2353 |
v(t, e, n);
|
|
|
|
| 2357 |
}
|
| 2358 |
};
|
| 2359 |
}
|
| 2360 |
+
function At(l) {
|
| 2361 |
let e = (100 * /*progress_level*/
|
| 2362 |
(l[14][
|
| 2363 |
/*i*/
|
|
|
|
| 2365 |
] || 0)).toFixed(1) + "", t, n;
|
| 2366 |
return {
|
| 2367 |
c() {
|
| 2368 |
+
t = F(e), n = F("%");
|
| 2369 |
},
|
| 2370 |
m(i, s) {
|
| 2371 |
v(i, t, s), v(i, n, s);
|
|
|
|
| 2418 |
let e, t;
|
| 2419 |
return {
|
| 2420 |
c() {
|
| 2421 |
+
e = $("p"), t = F(
|
| 2422 |
/*loading_text*/
|
| 2423 |
l[9]
|
| 2424 |
), J(e, "class", "loading svelte-1txqlrd");
|
|
|
|
| 2550 |
}
|
| 2551 |
};
|
| 2552 |
}
|
| 2553 |
+
let ze = [], De = !1;
|
| 2554 |
async function oi(l, e = !0) {
|
| 2555 |
if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && e !== !0)) {
|
| 2556 |
+
if (ze.push(l), !De)
|
| 2557 |
De = !0;
|
| 2558 |
else
|
| 2559 |
return;
|
| 2560 |
await Xn(), requestAnimationFrame(() => {
|
| 2561 |
let t = [0, 0];
|
| 2562 |
+
for (let n = 0; n < ze.length; n++) {
|
| 2563 |
+
const s = ze[n].getBoundingClientRect();
|
| 2564 |
(n === 0 || s.top + window.scrollY <= t[0]) && (t[0] = s.top + window.scrollY, t[1] = n);
|
| 2565 |
}
|
| 2566 |
+
window.scrollTo({ top: t[0] - 20, behavior: "smooth" }), De = !1, ze = [];
|
| 2567 |
});
|
| 2568 |
}
|
| 2569 |
}
|
| 2570 |
function fi(l, e, t) {
|
| 2571 |
+
let n, { $$slots: i = {}, $$scope: s } = e, { i18n: o } = e, { eta: r = null } = e, { queue_position: _ } = e, { queue_size: f } = e, { status: a } = e, { scroll_to_output: u = !1 } = e, { timer: c = !0 } = e, { show_progress: m = "full" } = e, { message: y = null } = e, { progress: S = null } = e, { variant: T = "default" } = e, { loading_text: L = "Loading..." } = e, { absolute: C = !0 } = e, { translucent: d = !1 } = e, { border: p = !1 } = e, { autoscroll: H } = e, b, R = !1, Q = 0, E = 0, P = null, X = null, be = 0, D = null, x, z = null, ge = !0;
|
| 2572 |
+
const g = () => {
|
| 2573 |
+
t(0, r = t(26, P = t(19, we = null))), t(24, Q = performance.now()), t(25, E = 0), R = !0, je();
|
| 2574 |
};
|
| 2575 |
+
function je() {
|
| 2576 |
requestAnimationFrame(() => {
|
| 2577 |
+
t(25, E = (performance.now() - Q) / 1e3), R && je();
|
| 2578 |
});
|
| 2579 |
}
|
| 2580 |
function Ne() {
|
|
|
|
| 2586 |
let we = null;
|
| 2587 |
function Ee(w) {
|
| 2588 |
Ct[w ? "unshift" : "push"](() => {
|
| 2589 |
+
z = w, t(16, z), t(7, S), t(14, D), t(15, x);
|
| 2590 |
});
|
| 2591 |
}
|
| 2592 |
function Pe(w) {
|
| 2593 |
Ct[w ? "unshift" : "push"](() => {
|
| 2594 |
+
b = w, t(13, b);
|
| 2595 |
});
|
| 2596 |
}
|
| 2597 |
return l.$$set = (w) => {
|
| 2598 |
+
"i18n" in w && t(1, o = w.i18n), "eta" in w && t(0, r = w.eta), "queue_position" in w && t(2, _ = w.queue_position), "queue_size" in w && t(3, f = w.queue_size), "status" in w && t(4, a = w.status), "scroll_to_output" in w && t(21, u = w.scroll_to_output), "timer" in w && t(5, c = w.timer), "show_progress" in w && t(6, m = w.show_progress), "message" in w && t(22, y = w.message), "progress" in w && t(7, S = w.progress), "variant" in w && t(8, T = w.variant), "loading_text" in w && t(9, L = w.loading_text), "absolute" in w && t(10, C = w.absolute), "translucent" in w && t(11, d = w.translucent), "border" in w && t(12, p = w.border), "autoscroll" in w && t(23, H = w.autoscroll), "$$scope" in w && t(28, s = w.$$scope);
|
| 2599 |
}, l.$$.update = () => {
|
| 2600 |
l.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/
|
| 2601 |
218103809 && (r === null && t(0, r = P), r != null && P !== r && (t(27, X = (performance.now() - Q) / 1e3 + r), t(19, we = X.toFixed(1)), t(26, P = r))), l.$$.dirty[0] & /*eta_from_start, timer_diff*/
|
| 2602 |
+
167772160 && t(17, be = X === null || X <= 0 || !E ? null : Math.min(E / X, 1)), l.$$.dirty[0] & /*progress*/
|
| 2603 |
+
128 && S != null && t(18, ge = !1), l.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
|
| 2604 |
114816 && (S != null ? t(14, D = S.map((w) => {
|
| 2605 |
if (w.index != null && w.length != null)
|
| 2606 |
return w.index / w.length;
|
| 2607 |
if (w.progress != null)
|
| 2608 |
return w.progress;
|
| 2609 |
+
})) : t(14, D = null), D ? (t(15, x = D[D.length - 1]), z && (x === 0 ? t(16, z.style.transition = "0", z) : t(16, z.style.transition = "150ms", z))) : t(15, x = void 0)), l.$$.dirty[0] & /*status*/
|
| 2610 |
+
16 && (a === "pending" ? g() : Ne()), l.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
|
| 2611 |
+
10493968 && b && u && (a === "pending" || a === "complete") && oi(b, H), l.$$.dirty[0] & /*status, message*/
|
| 2612 |
4194320, l.$$.dirty[0] & /*timer_diff*/
|
| 2613 |
33554432 && t(20, n = E.toFixed(1));
|
| 2614 |
}, [
|
|
|
|
| 2625 |
C,
|
| 2626 |
d,
|
| 2627 |
p,
|
| 2628 |
+
b,
|
| 2629 |
D,
|
| 2630 |
x,
|
| 2631 |
+
z,
|
|
|
|
| 2632 |
be,
|
| 2633 |
+
ge,
|
| 2634 |
we,
|
| 2635 |
n,
|
| 2636 |
u,
|
| 2637 |
y,
|
| 2638 |
+
H,
|
| 2639 |
Q,
|
| 2640 |
E,
|
| 2641 |
P,
|
|
|
|
| 2687 |
create_component: Qe,
|
| 2688 |
destroy_component: xe,
|
| 2689 |
detach: ci,
|
| 2690 |
+
flush: M,
|
| 2691 |
get_spread_object: di,
|
| 2692 |
get_spread_update: mi,
|
| 2693 |
group_outros: hi,
|
| 2694 |
+
init: bi,
|
| 2695 |
+
insert: gi,
|
| 2696 |
mount_component: $e,
|
| 2697 |
safe_not_equal: wi,
|
| 2698 |
space: ki,
|
| 2699 |
transition_in: Ce,
|
| 2700 |
+
transition_out: Fe
|
| 2701 |
} = window.__gradio__svelte__internal;
|
| 2702 |
function Rt(l) {
|
| 2703 |
let e, t;
|
|
|
|
| 2748 |
t || (Ce(e.$$.fragment, s), t = !0);
|
| 2749 |
},
|
| 2750 |
o(s) {
|
| 2751 |
+
Fe(e.$$.fragment, s), t = !1;
|
| 2752 |
},
|
| 2753 |
d(s) {
|
| 2754 |
xe(e, s);
|
|
|
|
| 2840 |
o && o.c(), e = ki(), Qe(t.$$.fragment);
|
| 2841 |
},
|
| 2842 |
m(a, u) {
|
| 2843 |
+
o && o.m(a, u), gi(a, e, u), $e(t, a, u), s = !0;
|
| 2844 |
},
|
| 2845 |
p(a, u) {
|
| 2846 |
/*loading_status*/
|
| 2847 |
a[17] ? o ? (o.p(a, u), u & /*loading_status*/
|
| 2848 |
+
131072 && Ce(o, 1)) : (o = Rt(a), o.c(), Ce(o, 1), o.m(e.parentNode, e)) : o && (hi(), Fe(o, 1, 1, () => {
|
| 2849 |
o = null;
|
| 2850 |
}), ui());
|
| 2851 |
const c = {};
|
|
|
|
| 2879 |
s || (Ce(o), Ce(t.$$.fragment, a), s = !0);
|
| 2880 |
},
|
| 2881 |
o(a) {
|
| 2882 |
+
Fe(o), Fe(t.$$.fragment, a), s = !1;
|
| 2883 |
},
|
| 2884 |
d(a) {
|
| 2885 |
a && ci(e), o && o.d(a), xe(t, a);
|
|
|
|
| 2947 |
t || (Ce(e.$$.fragment, n), t = !0);
|
| 2948 |
},
|
| 2949 |
o(n) {
|
| 2950 |
+
Fe(e.$$.fragment, n), t = !1;
|
| 2951 |
},
|
| 2952 |
d(n) {
|
| 2953 |
xe(e, n);
|
|
|
|
| 2955 |
};
|
| 2956 |
}
|
| 2957 |
function yi(l, e, t) {
|
| 2958 |
+
let { gradio: n } = e, { label: i = "Highlighted Textbox" } = e, { legend_label: s = "Highlights:" } = e, { info: o = void 0 } = e, { elem_id: r = "" } = e, { elem_classes: _ = [] } = e, { visible: f = !0 } = e, { value: a } = e, { show_label: u } = e, { show_legend: c } = e, { show_legend_label: m } = e, { color_map: y = {} } = e, { container: S = !0 } = e, { scale: T = null } = e, { min_width: L = void 0 } = e, { show_copy_button: C = !1 } = e, { loading_status: d = void 0 } = e, { value_is_output: p = !1 } = e, { combine_adjacent: H = !1 } = e, { interactive: b = !0 } = e;
|
| 2959 |
const R = !1, Q = !0;
|
| 2960 |
+
function E(g) {
|
| 2961 |
+
a = g, t(0, a), t(19, H);
|
| 2962 |
}
|
| 2963 |
+
function P(g) {
|
| 2964 |
+
p = g, t(2, p);
|
| 2965 |
}
|
| 2966 |
+
const X = () => n.dispatch("change"), be = () => n.dispatch("input"), D = () => n.dispatch("submit"), x = () => n.dispatch("blur"), z = (g) => n.dispatch("select", g.detail), ge = () => n.dispatch("focus");
|
| 2967 |
+
return l.$$set = (g) => {
|
| 2968 |
+
"gradio" in g && t(3, n = g.gradio), "label" in g && t(4, i = g.label), "legend_label" in g && t(5, s = g.legend_label), "info" in g && t(6, o = g.info), "elem_id" in g && t(7, r = g.elem_id), "elem_classes" in g && t(8, _ = g.elem_classes), "visible" in g && t(9, f = g.visible), "value" in g && t(0, a = g.value), "show_label" in g && t(10, u = g.show_label), "show_legend" in g && t(11, c = g.show_legend), "show_legend_label" in g && t(12, m = g.show_legend_label), "color_map" in g && t(1, y = g.color_map), "container" in g && t(13, S = g.container), "scale" in g && t(14, T = g.scale), "min_width" in g && t(15, L = g.min_width), "show_copy_button" in g && t(16, C = g.show_copy_button), "loading_status" in g && t(17, d = g.loading_status), "value_is_output" in g && t(2, p = g.value_is_output), "combine_adjacent" in g && t(19, H = g.combine_adjacent), "interactive" in g && t(18, b = g.interactive);
|
| 2969 |
}, l.$$.update = () => {
|
| 2970 |
l.$$.dirty & /*color_map*/
|
| 2971 |
2 && !y && Object.keys(y).length && t(1, y), l.$$.dirty & /*value, combine_adjacent*/
|
| 2972 |
+
524289 && a && H && t(0, a = Ol(a, "equal"));
|
| 2973 |
}, [
|
| 2974 |
a,
|
| 2975 |
y,
|
|
|
|
| 2989 |
L,
|
| 2990 |
C,
|
| 2991 |
d,
|
| 2992 |
+
b,
|
| 2993 |
+
H,
|
| 2994 |
R,
|
| 2995 |
Q,
|
| 2996 |
E,
|
| 2997 |
P,
|
| 2998 |
X,
|
| 2999 |
+
be,
|
| 3000 |
D,
|
| 3001 |
x,
|
| 3002 |
+
z,
|
| 3003 |
+
ge
|
| 3004 |
];
|
| 3005 |
}
|
| 3006 |
class Ci extends _i {
|
| 3007 |
constructor(e) {
|
| 3008 |
+
super(), bi(this, e, yi, pi, wi, {
|
| 3009 |
gradio: 3,
|
| 3010 |
label: 4,
|
| 3011 |
legend_label: 5,
|
|
|
|
| 3034 |
return this.$$.ctx[3];
|
| 3035 |
}
|
| 3036 |
set gradio(e) {
|
| 3037 |
+
this.$$set({ gradio: e }), M();
|
| 3038 |
}
|
| 3039 |
get label() {
|
| 3040 |
return this.$$.ctx[4];
|
| 3041 |
}
|
| 3042 |
set label(e) {
|
| 3043 |
+
this.$$set({ label: e }), M();
|
| 3044 |
}
|
| 3045 |
get legend_label() {
|
| 3046 |
return this.$$.ctx[5];
|
| 3047 |
}
|
| 3048 |
set legend_label(e) {
|
| 3049 |
+
this.$$set({ legend_label: e }), M();
|
| 3050 |
}
|
| 3051 |
get info() {
|
| 3052 |
return this.$$.ctx[6];
|
| 3053 |
}
|
| 3054 |
set info(e) {
|
| 3055 |
+
this.$$set({ info: e }), M();
|
| 3056 |
}
|
| 3057 |
get elem_id() {
|
| 3058 |
return this.$$.ctx[7];
|
| 3059 |
}
|
| 3060 |
set elem_id(e) {
|
| 3061 |
+
this.$$set({ elem_id: e }), M();
|
| 3062 |
}
|
| 3063 |
get elem_classes() {
|
| 3064 |
return this.$$.ctx[8];
|
| 3065 |
}
|
| 3066 |
set elem_classes(e) {
|
| 3067 |
+
this.$$set({ elem_classes: e }), M();
|
| 3068 |
}
|
| 3069 |
get visible() {
|
| 3070 |
return this.$$.ctx[9];
|
| 3071 |
}
|
| 3072 |
set visible(e) {
|
| 3073 |
+
this.$$set({ visible: e }), M();
|
| 3074 |
}
|
| 3075 |
get value() {
|
| 3076 |
return this.$$.ctx[0];
|
| 3077 |
}
|
| 3078 |
set value(e) {
|
| 3079 |
+
this.$$set({ value: e }), M();
|
| 3080 |
}
|
| 3081 |
get show_label() {
|
| 3082 |
return this.$$.ctx[10];
|
| 3083 |
}
|
| 3084 |
set show_label(e) {
|
| 3085 |
+
this.$$set({ show_label: e }), M();
|
| 3086 |
}
|
| 3087 |
get show_legend() {
|
| 3088 |
return this.$$.ctx[11];
|
| 3089 |
}
|
| 3090 |
set show_legend(e) {
|
| 3091 |
+
this.$$set({ show_legend: e }), M();
|
| 3092 |
}
|
| 3093 |
get show_legend_label() {
|
| 3094 |
return this.$$.ctx[12];
|
| 3095 |
}
|
| 3096 |
set show_legend_label(e) {
|
| 3097 |
+
this.$$set({ show_legend_label: e }), M();
|
| 3098 |
}
|
| 3099 |
get color_map() {
|
| 3100 |
return this.$$.ctx[1];
|
| 3101 |
}
|
| 3102 |
set color_map(e) {
|
| 3103 |
+
this.$$set({ color_map: e }), M();
|
| 3104 |
}
|
| 3105 |
get container() {
|
| 3106 |
return this.$$.ctx[13];
|
| 3107 |
}
|
| 3108 |
set container(e) {
|
| 3109 |
+
this.$$set({ container: e }), M();
|
| 3110 |
}
|
| 3111 |
get scale() {
|
| 3112 |
return this.$$.ctx[14];
|
| 3113 |
}
|
| 3114 |
set scale(e) {
|
| 3115 |
+
this.$$set({ scale: e }), M();
|
| 3116 |
}
|
| 3117 |
get min_width() {
|
| 3118 |
return this.$$.ctx[15];
|
| 3119 |
}
|
| 3120 |
set min_width(e) {
|
| 3121 |
+
this.$$set({ min_width: e }), M();
|
| 3122 |
}
|
| 3123 |
get show_copy_button() {
|
| 3124 |
return this.$$.ctx[16];
|
| 3125 |
}
|
| 3126 |
set show_copy_button(e) {
|
| 3127 |
+
this.$$set({ show_copy_button: e }), M();
|
| 3128 |
}
|
| 3129 |
get loading_status() {
|
| 3130 |
return this.$$.ctx[17];
|
| 3131 |
}
|
| 3132 |
set loading_status(e) {
|
| 3133 |
+
this.$$set({ loading_status: e }), M();
|
| 3134 |
}
|
| 3135 |
get value_is_output() {
|
| 3136 |
return this.$$.ctx[2];
|
| 3137 |
}
|
| 3138 |
set value_is_output(e) {
|
| 3139 |
+
this.$$set({ value_is_output: e }), M();
|
| 3140 |
}
|
| 3141 |
get combine_adjacent() {
|
| 3142 |
return this.$$.ctx[19];
|
| 3143 |
}
|
| 3144 |
set combine_adjacent(e) {
|
| 3145 |
+
this.$$set({ combine_adjacent: e }), M();
|
| 3146 |
}
|
| 3147 |
get interactive() {
|
| 3148 |
return this.$$.ctx[18];
|
| 3149 |
}
|
| 3150 |
set interactive(e) {
|
| 3151 |
+
this.$$set({ interactive: e }), M();
|
| 3152 |
}
|
| 3153 |
get autofocus() {
|
| 3154 |
return this.$$.ctx[20];
|
src/backend/gradio_highlightedtextbox/templates/component/style.css
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
span.has-info.svelte-deja93{margin-bottom:var(--spacing-xs)}span.svelte-deja93:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-deja93{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}.hide.svelte-deja93{margin:0;height:0}.category-legend.svelte-deja93{display:flex;flex-wrap:wrap;gap:var(--spacing-sm);color:#000}.category-label.svelte-deja93{border-radius:var(--radius-xs);padding-right:var(--size-2);padding-left:var(--size-2);font-weight:var(--weight-semibold)}.title-container.svelte-deja93{display:flex}.legend-separator.svelte-deja93{margin:0 var(--spacing-md) 0 var(--spacing-md)}.title-with-highlights-info.svelte-deja93{margin-bottom:var(--spacing-xs);color:var(--block-info-text-color);font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}.dropdown-arrow.svelte-145leq6{fill:currentColor}label.svelte-14ssfqr{display:block;width:100%}button.svelte-14ssfqr{display:flex;position:absolute;top:var(--block-label-margin);right:var(--block-label-margin);align-items:center;box-shadow:var(--shadow-drop);border:1px solid var(--color-border-primary);border-top:none;border-right:none;border-radius:var(--block-label-right-radius);background:var(--block-label-background-fill);padding:5px;width:22px;height:22px;overflow:hidden;color:var(--block-label-color);font:var(--font-sans);font-size:var(--button-small-text-size)}.container.svelte-14ssfqr{display:flex;flex-direction:column;gap:var(--spacing-sm)}.textfield.svelte-14ssfqr{box-sizing:border-box;outline:none!important;box-shadow:var(--input-shadow);padding:var(--input-padding);border-radius:var(--radius-md);background:var(--input-background-fill);background-color:transparent;font-weight:var(--input-text-weight);font-size:var(--input-text-size);width:100%;line-height:var(--line-sm);word-break:break-word;border:var(--input-border-width) solid var(--input-border-color);cursor:text}.textfield.svelte-14ssfqr:focus{box-shadow:var(--input-shadow-focus);border-color:var(--input-border-color-focus)}mark{border-radius:3px}.block.svelte-1t38q2d{position:relative;margin:0;box-shadow:var(--block-shadow);border-width:var(--block-border-width);border-color:var(--block-border-color);border-radius:var(--block-radius);background:var(--block-background-fill);width:100%;line-height:var(--line-sm)}.block.border_focus.svelte-1t38q2d{border-color:var(--color-accent)}.padded.svelte-1t38q2d{padding:var(--block-padding)}.hidden.svelte-1t38q2d{display:none}.hide-container.svelte-1t38q2d{margin:0;box-shadow:none;--block-border-width:0;background:transparent;padding:0;overflow:visible}div.svelte-1hnfib2{margin-bottom:var(--spacing-lg);color:var(--block-info-text-color);font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}span.has-info.svelte-22c38v{margin-bottom:var(--spacing-xs)}span.svelte-22c38v:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-22c38v{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}.hide.svelte-22c38v{margin:0;height:0}label.svelte-9gxdi0{display:inline-flex;align-items:center;z-index:var(--layer-2);box-shadow:var(--block-label-shadow);border:var(--block-label-border-width) solid var(--border-color-primary);border-top:none;border-left:none;border-radius:var(--block-label-radius);background:var(--block-label-background-fill);padding:var(--block-label-padding);pointer-events:none;color:var(--block-label-text-color);font-weight:var(--block-label-text-weight);font-size:var(--block-label-text-size);line-height:var(--line-sm)}.gr-group label.svelte-9gxdi0{border-top-left-radius:0}label.float.svelte-9gxdi0{position:absolute;top:var(--block-label-margin);left:var(--block-label-margin)}label.svelte-9gxdi0:not(.float){position:static;margin-top:var(--block-label-margin);margin-left:var(--block-label-margin)}.hide.svelte-9gxdi0{height:0}span.svelte-9gxdi0{opacity:.8;margin-right:var(--size-2);width:calc(var(--block-label-text-size) - 1px);height:calc(var(--block-label-text-size) - 1px)}.hide-label.svelte-9gxdi0{box-shadow:none;border-width:0;background:transparent;overflow:visible}button.svelte-lpi64a{display:flex;justify-content:center;align-items:center;gap:1px;z-index:var(--layer-2);border-radius:var(--radius-sm);color:var(--block-label-text-color);border:1px solid transparent}button[disabled].svelte-lpi64a{opacity:.5;box-shadow:none}button[disabled].svelte-lpi64a:hover{cursor:not-allowed}.padded.svelte-lpi64a{padding:2px;background:var(--bg-color);box-shadow:var(--shadow-drop);border:1px solid var(--button-secondary-border-color)}button.svelte-lpi64a:hover,button.highlight.svelte-lpi64a{cursor:pointer;color:var(--color-accent)}.padded.svelte-lpi64a:hover{border:2px solid var(--button-secondary-border-color-hover);padding:1px;color:var(--block-label-text-color)}span.svelte-lpi64a{padding:0 1px;font-size:10px}div.svelte-lpi64a{padding:2px;display:flex;align-items:flex-end}.small.svelte-lpi64a{width:14px;height:14px}.large.svelte-lpi64a{width:22px;height:22px}.pending.svelte-lpi64a{animation:svelte-lpi64a-flash .5s infinite}@keyframes svelte-lpi64a-flash{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.transparent.svelte-lpi64a{background:transparent;border:none;box-shadow:none}.empty.svelte-3w3rth{display:flex;justify-content:center;align-items:center;margin-top:calc(0px - var(--size-6));height:var(--size-full)}.icon.svelte-3w3rth{opacity:.5;height:var(--size-5);color:var(--body-text-color)}.small.svelte-3w3rth{min-height:calc(var(--size-32) - 20px)}.large.svelte-3w3rth{min-height:calc(var(--size-64) - 20px)}.unpadded_box.svelte-3w3rth{margin-top:0}.small_parent.svelte-3w3rth{min-height:100%!important}.wrap.svelte-kzcjhc{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:var(--size-60);color:var(--block-label-text-color);line-height:var(--line-md);height:100%;padding-top:var(--size-3)}.or.svelte-kzcjhc{color:var(--body-text-color-subdued);display:flex}.icon-wrap.svelte-kzcjhc{width:30px;margin-bottom:var(--spacing-lg)}@media (--screen-md){.wrap.svelte-kzcjhc{font-size:var(--text-lg)}}.hovered.svelte-kzcjhc{color:var(--color-accent)}div.svelte-ipfyu7{border-top:1px solid transparent;display:flex;max-height:100%;justify-content:center;gap:var(--spacing-sm);height:auto;align-items:flex-end;padding-bottom:var(--spacing-xl);color:var(--block-label-text-color);flex-shrink:0;width:95%}.show_border.svelte-ipfyu7{border-top:1px solid var(--block-border-color);margin-top:var(--spacing-xxl);box-shadow:var(--shadow-drop)}.source-selection.svelte-1jp3vgd{display:flex;align-items:center;justify-content:center;border-top:1px solid var(--border-color-primary);width:95%;bottom:0;left:0;right:0;margin-left:auto;margin-right:auto}.icon.svelte-1jp3vgd{width:22px;height:22px;margin:var(--spacing-lg) var(--spacing-xs);padding:var(--spacing-xs);color:var(--neutral-400);border-radius:var(--radius-md)}.selected.svelte-1jp3vgd{color:var(--color-accent)}.icon.svelte-1jp3vgd:hover,.icon.svelte-1jp3vgd:focus{color:var(--color-accent)}svg.svelte-43sxxs.svelte-43sxxs{width:var(--size-20);height:var(--size-20)}svg.svelte-43sxxs path.svelte-43sxxs{fill:var(--loader-color)}div.svelte-43sxxs.svelte-43sxxs{z-index:var(--layer-2)}.margin.svelte-43sxxs.svelte-43sxxs{margin:var(--size-4)}.wrap.svelte-1txqlrd.svelte-1txqlrd{display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--layer-top);transition:opacity .1s ease-in-out;border-radius:var(--block-radius);background:var(--block-background-fill);padding:0 var(--size-6);max-height:var(--size-screen-h);overflow:hidden;pointer-events:none}.wrap.center.svelte-1txqlrd.svelte-1txqlrd{top:0;right:0;left:0}.wrap.default.svelte-1txqlrd.svelte-1txqlrd{top:0;right:0;bottom:0;left:0}.hide.svelte-1txqlrd.svelte-1txqlrd{opacity:0;pointer-events:none}.generating.svelte-1txqlrd.svelte-1txqlrd{animation:svelte-1txqlrd-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border:2px solid var(--color-accent);background:transparent}.translucent.svelte-1txqlrd.svelte-1txqlrd{background:none}@keyframes svelte-1txqlrd-pulse{0%,to{opacity:1}50%{opacity:.5}}.loading.svelte-1txqlrd.svelte-1txqlrd{z-index:var(--layer-2);color:var(--body-text-color)}.eta-bar.svelte-1txqlrd.svelte-1txqlrd{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:left;opacity:.8;z-index:var(--layer-1);transition:10ms;background:var(--background-fill-secondary)}.progress-bar-wrap.svelte-1txqlrd.svelte-1txqlrd{border:1px solid var(--border-color-primary);background:var(--background-fill-primary);width:55.5%;height:var(--size-4)}.progress-bar.svelte-1txqlrd.svelte-1txqlrd{transform-origin:left;background-color:var(--loader-color);width:var(--size-full);height:var(--size-full)}.progress-level.svelte-1txqlrd.svelte-1txqlrd{display:flex;flex-direction:column;align-items:center;gap:1;z-index:var(--layer-2);width:var(--size-full)}.progress-level-inner.svelte-1txqlrd.svelte-1txqlrd{margin:var(--size-2) auto;color:var(--body-text-color);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text.svelte-1txqlrd.svelte-1txqlrd{position:absolute;top:0;right:0;z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text-center.svelte-1txqlrd.svelte-1txqlrd{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;transform:translateY(var(--size-6));z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono);text-align:center}.error.svelte-1txqlrd.svelte-1txqlrd{box-shadow:var(--shadow-drop);border:solid 1px var(--error-border-color);border-radius:var(--radius-full);background:var(--error-background-fill);padding-right:var(--size-4);padding-left:var(--size-4);color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font)}.minimal.svelte-1txqlrd .progress-text.svelte-1txqlrd{background:var(--block-background-fill)}.border.svelte-1txqlrd.svelte-1txqlrd{border:1px solid var(--border-color-primary)}.toast-body.svelte-solcu7{display:flex;position:relative;right:0;left:0;align-items:center;margin:var(--size-6) var(--size-4);margin:auto;border-radius:var(--container-radius);overflow:hidden;pointer-events:auto}.toast-body.error.svelte-solcu7{border:1px solid var(--color-red-700);background:var(--color-red-50)}.dark .toast-body.error.svelte-solcu7{border:1px solid var(--color-red-500);background-color:var(--color-grey-950)}.toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-700);background:var(--color-yellow-50)}.dark .toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-500);background-color:var(--color-grey-950)}.toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-700);background:var(--color-grey-50)}.dark .toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-500);background-color:var(--color-grey-950)}.toast-title.svelte-solcu7{display:flex;align-items:center;font-weight:var(--weight-bold);font-size:var(--text-lg);line-height:var(--line-sm);text-transform:capitalize}.toast-title.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-title.error.svelte-solcu7{color:var(--color-red-50)}.toast-title.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-title.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-title.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-title.info.svelte-solcu7{color:var(--color-grey-50)}.toast-close.svelte-solcu7{margin:0 var(--size-3);border-radius:var(--size-3);padding:0px var(--size-1-5);font-size:var(--size-5);line-height:var(--size-5)}.toast-close.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-close.error.svelte-solcu7{color:var(--color-red-500)}.toast-close.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-close.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-close.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-close.info.svelte-solcu7{color:var(--color-grey-500)}.toast-text.svelte-solcu7{font-size:var(--text-lg)}.toast-text.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-text.error.svelte-solcu7{color:var(--color-red-50)}.toast-text.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-text.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-text.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-text.info.svelte-solcu7{color:var(--color-grey-50)}.toast-details.svelte-solcu7{margin:var(--size-3) var(--size-3) var(--size-3) 0;width:100%}.toast-icon.svelte-solcu7{display:flex;position:absolute;position:relative;flex-shrink:0;justify-content:center;align-items:center;margin:var(--size-2);border-radius:var(--radius-full);padding:var(--size-1);padding-left:calc(var(--size-1) - 1px);width:35px;height:35px}.toast-icon.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-icon.error.svelte-solcu7{color:var(--color-red-500)}.toast-icon.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-icon.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-icon.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-icon.info.svelte-solcu7{color:var(--color-grey-500)}@keyframes svelte-solcu7-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.timer.svelte-solcu7{position:absolute;bottom:0;left:0;transform-origin:0 0;animation:svelte-solcu7-countdown 10s linear forwards;width:100%;height:var(--size-1)}.timer.error.svelte-solcu7{background:var(--color-red-700)}.dark .timer.error.svelte-solcu7{background:var(--color-red-500)}.timer.warning.svelte-solcu7{background:var(--color-yellow-700)}.dark .timer.warning.svelte-solcu7{background:var(--color-yellow-500)}.timer.info.svelte-solcu7{background:var(--color-grey-700)}.dark .timer.info.svelte-solcu7{background:var(--color-grey-500)}.toast-wrap.svelte-gatr8h{display:flex;position:fixed;top:var(--size-4);right:var(--size-4);flex-direction:column;align-items:end;gap:var(--size-2);z-index:var(--layer-top);width:calc(100% - var(--size-8))}@media (--screen-sm){.toast-wrap.svelte-gatr8h{width:calc(var(--size-96) + var(--size-10))}}
|
|
|
|
| 1 |
+
span.has-info.svelte-vm3q5z{margin-bottom:var(--spacing-xs)}span.svelte-vm3q5z:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-vm3q5z{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}.hide.svelte-vm3q5z{display:none!important}.category-legend.svelte-vm3q5z{display:flex;flex-wrap:wrap;gap:var(--spacing-sm);color:#000}.category-label.svelte-vm3q5z{border-radius:var(--radius-xs);padding-right:var(--size-2);padding-left:var(--size-2);font-weight:var(--weight-semibold)}.category-label.has-info.svelte-vm3q5z{margin-bottom:var(--spacing-xs)}.category-label.svelte-vm3q5z:not(.has-info){margin-bottom:var(--spacing-lg)}.title-container.svelte-vm3q5z{display:flex}.legend-separator.svelte-vm3q5z{margin:0 var(--spacing-md) 0 var(--spacing-md)}.title-with-highlights-info.svelte-vm3q5z{margin-bottom:var(--spacing-xs);color:var(--block-info-text-color);font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}.dropdown-arrow.svelte-145leq6{fill:currentColor}label.svelte-14ssfqr{display:block;width:100%}button.svelte-14ssfqr{display:flex;position:absolute;top:var(--block-label-margin);right:var(--block-label-margin);align-items:center;box-shadow:var(--shadow-drop);border:1px solid var(--color-border-primary);border-top:none;border-right:none;border-radius:var(--block-label-right-radius);background:var(--block-label-background-fill);padding:5px;width:22px;height:22px;overflow:hidden;color:var(--block-label-color);font:var(--font-sans);font-size:var(--button-small-text-size)}.container.svelte-14ssfqr{display:flex;flex-direction:column;gap:var(--spacing-sm)}.textfield.svelte-14ssfqr{box-sizing:border-box;outline:none!important;box-shadow:var(--input-shadow);padding:var(--input-padding);border-radius:var(--radius-md);background:var(--input-background-fill);background-color:transparent;font-weight:var(--input-text-weight);font-size:var(--input-text-size);width:100%;line-height:var(--line-sm);word-break:break-word;border:var(--input-border-width) solid var(--input-border-color);cursor:text}.textfield.svelte-14ssfqr:focus{box-shadow:var(--input-shadow-focus);border-color:var(--input-border-color-focus)}mark{border-radius:3px}.block.svelte-1t38q2d{position:relative;margin:0;box-shadow:var(--block-shadow);border-width:var(--block-border-width);border-color:var(--block-border-color);border-radius:var(--block-radius);background:var(--block-background-fill);width:100%;line-height:var(--line-sm)}.block.border_focus.svelte-1t38q2d{border-color:var(--color-accent)}.padded.svelte-1t38q2d{padding:var(--block-padding)}.hidden.svelte-1t38q2d{display:none}.hide-container.svelte-1t38q2d{margin:0;box-shadow:none;--block-border-width:0;background:transparent;padding:0;overflow:visible}div.svelte-1hnfib2{margin-bottom:var(--spacing-lg);color:var(--block-info-text-color);font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}span.has-info.svelte-22c38v{margin-bottom:var(--spacing-xs)}span.svelte-22c38v:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-22c38v{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}.hide.svelte-22c38v{margin:0;height:0}label.svelte-9gxdi0{display:inline-flex;align-items:center;z-index:var(--layer-2);box-shadow:var(--block-label-shadow);border:var(--block-label-border-width) solid var(--border-color-primary);border-top:none;border-left:none;border-radius:var(--block-label-radius);background:var(--block-label-background-fill);padding:var(--block-label-padding);pointer-events:none;color:var(--block-label-text-color);font-weight:var(--block-label-text-weight);font-size:var(--block-label-text-size);line-height:var(--line-sm)}.gr-group label.svelte-9gxdi0{border-top-left-radius:0}label.float.svelte-9gxdi0{position:absolute;top:var(--block-label-margin);left:var(--block-label-margin)}label.svelte-9gxdi0:not(.float){position:static;margin-top:var(--block-label-margin);margin-left:var(--block-label-margin)}.hide.svelte-9gxdi0{height:0}span.svelte-9gxdi0{opacity:.8;margin-right:var(--size-2);width:calc(var(--block-label-text-size) - 1px);height:calc(var(--block-label-text-size) - 1px)}.hide-label.svelte-9gxdi0{box-shadow:none;border-width:0;background:transparent;overflow:visible}button.svelte-lpi64a{display:flex;justify-content:center;align-items:center;gap:1px;z-index:var(--layer-2);border-radius:var(--radius-sm);color:var(--block-label-text-color);border:1px solid transparent}button[disabled].svelte-lpi64a{opacity:.5;box-shadow:none}button[disabled].svelte-lpi64a:hover{cursor:not-allowed}.padded.svelte-lpi64a{padding:2px;background:var(--bg-color);box-shadow:var(--shadow-drop);border:1px solid var(--button-secondary-border-color)}button.svelte-lpi64a:hover,button.highlight.svelte-lpi64a{cursor:pointer;color:var(--color-accent)}.padded.svelte-lpi64a:hover{border:2px solid var(--button-secondary-border-color-hover);padding:1px;color:var(--block-label-text-color)}span.svelte-lpi64a{padding:0 1px;font-size:10px}div.svelte-lpi64a{padding:2px;display:flex;align-items:flex-end}.small.svelte-lpi64a{width:14px;height:14px}.large.svelte-lpi64a{width:22px;height:22px}.pending.svelte-lpi64a{animation:svelte-lpi64a-flash .5s infinite}@keyframes svelte-lpi64a-flash{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.transparent.svelte-lpi64a{background:transparent;border:none;box-shadow:none}.empty.svelte-3w3rth{display:flex;justify-content:center;align-items:center;margin-top:calc(0px - var(--size-6));height:var(--size-full)}.icon.svelte-3w3rth{opacity:.5;height:var(--size-5);color:var(--body-text-color)}.small.svelte-3w3rth{min-height:calc(var(--size-32) - 20px)}.large.svelte-3w3rth{min-height:calc(var(--size-64) - 20px)}.unpadded_box.svelte-3w3rth{margin-top:0}.small_parent.svelte-3w3rth{min-height:100%!important}.wrap.svelte-kzcjhc{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:var(--size-60);color:var(--block-label-text-color);line-height:var(--line-md);height:100%;padding-top:var(--size-3)}.or.svelte-kzcjhc{color:var(--body-text-color-subdued);display:flex}.icon-wrap.svelte-kzcjhc{width:30px;margin-bottom:var(--spacing-lg)}@media (--screen-md){.wrap.svelte-kzcjhc{font-size:var(--text-lg)}}.hovered.svelte-kzcjhc{color:var(--color-accent)}div.svelte-ipfyu7{border-top:1px solid transparent;display:flex;max-height:100%;justify-content:center;gap:var(--spacing-sm);height:auto;align-items:flex-end;padding-bottom:var(--spacing-xl);color:var(--block-label-text-color);flex-shrink:0;width:95%}.show_border.svelte-ipfyu7{border-top:1px solid var(--block-border-color);margin-top:var(--spacing-xxl);box-shadow:var(--shadow-drop)}.source-selection.svelte-1jp3vgd{display:flex;align-items:center;justify-content:center;border-top:1px solid var(--border-color-primary);width:95%;bottom:0;left:0;right:0;margin-left:auto;margin-right:auto}.icon.svelte-1jp3vgd{width:22px;height:22px;margin:var(--spacing-lg) var(--spacing-xs);padding:var(--spacing-xs);color:var(--neutral-400);border-radius:var(--radius-md)}.selected.svelte-1jp3vgd{color:var(--color-accent)}.icon.svelte-1jp3vgd:hover,.icon.svelte-1jp3vgd:focus{color:var(--color-accent)}svg.svelte-43sxxs.svelte-43sxxs{width:var(--size-20);height:var(--size-20)}svg.svelte-43sxxs path.svelte-43sxxs{fill:var(--loader-color)}div.svelte-43sxxs.svelte-43sxxs{z-index:var(--layer-2)}.margin.svelte-43sxxs.svelte-43sxxs{margin:var(--size-4)}.wrap.svelte-1txqlrd.svelte-1txqlrd{display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--layer-top);transition:opacity .1s ease-in-out;border-radius:var(--block-radius);background:var(--block-background-fill);padding:0 var(--size-6);max-height:var(--size-screen-h);overflow:hidden;pointer-events:none}.wrap.center.svelte-1txqlrd.svelte-1txqlrd{top:0;right:0;left:0}.wrap.default.svelte-1txqlrd.svelte-1txqlrd{top:0;right:0;bottom:0;left:0}.hide.svelte-1txqlrd.svelte-1txqlrd{opacity:0;pointer-events:none}.generating.svelte-1txqlrd.svelte-1txqlrd{animation:svelte-1txqlrd-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border:2px solid var(--color-accent);background:transparent}.translucent.svelte-1txqlrd.svelte-1txqlrd{background:none}@keyframes svelte-1txqlrd-pulse{0%,to{opacity:1}50%{opacity:.5}}.loading.svelte-1txqlrd.svelte-1txqlrd{z-index:var(--layer-2);color:var(--body-text-color)}.eta-bar.svelte-1txqlrd.svelte-1txqlrd{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:left;opacity:.8;z-index:var(--layer-1);transition:10ms;background:var(--background-fill-secondary)}.progress-bar-wrap.svelte-1txqlrd.svelte-1txqlrd{border:1px solid var(--border-color-primary);background:var(--background-fill-primary);width:55.5%;height:var(--size-4)}.progress-bar.svelte-1txqlrd.svelte-1txqlrd{transform-origin:left;background-color:var(--loader-color);width:var(--size-full);height:var(--size-full)}.progress-level.svelte-1txqlrd.svelte-1txqlrd{display:flex;flex-direction:column;align-items:center;gap:1;z-index:var(--layer-2);width:var(--size-full)}.progress-level-inner.svelte-1txqlrd.svelte-1txqlrd{margin:var(--size-2) auto;color:var(--body-text-color);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text.svelte-1txqlrd.svelte-1txqlrd{position:absolute;top:0;right:0;z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text-center.svelte-1txqlrd.svelte-1txqlrd{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;transform:translateY(var(--size-6));z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono);text-align:center}.error.svelte-1txqlrd.svelte-1txqlrd{box-shadow:var(--shadow-drop);border:solid 1px var(--error-border-color);border-radius:var(--radius-full);background:var(--error-background-fill);padding-right:var(--size-4);padding-left:var(--size-4);color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font)}.minimal.svelte-1txqlrd .progress-text.svelte-1txqlrd{background:var(--block-background-fill)}.border.svelte-1txqlrd.svelte-1txqlrd{border:1px solid var(--border-color-primary)}.toast-body.svelte-solcu7{display:flex;position:relative;right:0;left:0;align-items:center;margin:var(--size-6) var(--size-4);margin:auto;border-radius:var(--container-radius);overflow:hidden;pointer-events:auto}.toast-body.error.svelte-solcu7{border:1px solid var(--color-red-700);background:var(--color-red-50)}.dark .toast-body.error.svelte-solcu7{border:1px solid var(--color-red-500);background-color:var(--color-grey-950)}.toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-700);background:var(--color-yellow-50)}.dark .toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-500);background-color:var(--color-grey-950)}.toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-700);background:var(--color-grey-50)}.dark .toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-500);background-color:var(--color-grey-950)}.toast-title.svelte-solcu7{display:flex;align-items:center;font-weight:var(--weight-bold);font-size:var(--text-lg);line-height:var(--line-sm);text-transform:capitalize}.toast-title.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-title.error.svelte-solcu7{color:var(--color-red-50)}.toast-title.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-title.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-title.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-title.info.svelte-solcu7{color:var(--color-grey-50)}.toast-close.svelte-solcu7{margin:0 var(--size-3);border-radius:var(--size-3);padding:0px var(--size-1-5);font-size:var(--size-5);line-height:var(--size-5)}.toast-close.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-close.error.svelte-solcu7{color:var(--color-red-500)}.toast-close.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-close.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-close.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-close.info.svelte-solcu7{color:var(--color-grey-500)}.toast-text.svelte-solcu7{font-size:var(--text-lg)}.toast-text.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-text.error.svelte-solcu7{color:var(--color-red-50)}.toast-text.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-text.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-text.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-text.info.svelte-solcu7{color:var(--color-grey-50)}.toast-details.svelte-solcu7{margin:var(--size-3) var(--size-3) var(--size-3) 0;width:100%}.toast-icon.svelte-solcu7{display:flex;position:absolute;position:relative;flex-shrink:0;justify-content:center;align-items:center;margin:var(--size-2);border-radius:var(--radius-full);padding:var(--size-1);padding-left:calc(var(--size-1) - 1px);width:35px;height:35px}.toast-icon.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-icon.error.svelte-solcu7{color:var(--color-red-500)}.toast-icon.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-icon.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-icon.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-icon.info.svelte-solcu7{color:var(--color-grey-500)}@keyframes svelte-solcu7-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.timer.svelte-solcu7{position:absolute;bottom:0;left:0;transform-origin:0 0;animation:svelte-solcu7-countdown 10s linear forwards;width:100%;height:var(--size-1)}.timer.error.svelte-solcu7{background:var(--color-red-700)}.dark .timer.error.svelte-solcu7{background:var(--color-red-500)}.timer.warning.svelte-solcu7{background:var(--color-yellow-700)}.dark .timer.warning.svelte-solcu7{background:var(--color-yellow-500)}.timer.info.svelte-solcu7{background:var(--color-grey-700)}.dark .timer.info.svelte-solcu7{background:var(--color-grey-500)}.toast-wrap.svelte-gatr8h{display:flex;position:fixed;top:var(--size-4);right:var(--size-4);flex-direction:column;align-items:end;gap:var(--size-2);z-index:var(--layer-top);width:calc(100% - var(--size-8))}@media (--screen-sm){.toast-wrap.svelte-gatr8h{width:calc(var(--size-96) + var(--size-10))}}
|
src/frontend/BlockTitleWithHighlights.svelte
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
{#if Object.keys(_color_map).length !== 0}
|
| 20 |
<span
|
| 21 |
class="legend-separator"
|
| 22 |
-
class:hide={!show_legend}
|
| 23 |
class:has-info={info != null}
|
| 24 |
>
|
| 25 |
·
|
|
@@ -34,7 +34,7 @@
|
|
| 34 |
</span>
|
| 35 |
{#each Object.entries(_color_map) as [category, color], i}
|
| 36 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
| 37 |
-
<div class="category-label" style={"background-color:" + color.secondary}>
|
| 38 |
{category}
|
| 39 |
</div>
|
| 40 |
{/each}
|
|
@@ -70,8 +70,7 @@
|
|
| 70 |
}
|
| 71 |
|
| 72 |
.hide {
|
| 73 |
-
|
| 74 |
-
height: 0;
|
| 75 |
}
|
| 76 |
|
| 77 |
.category-legend {
|
|
@@ -88,6 +87,13 @@
|
|
| 88 |
font-weight: var(--weight-semibold);
|
| 89 |
}
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
.title-container {
|
| 92 |
display: flex;
|
| 93 |
}
|
|
|
|
| 19 |
{#if Object.keys(_color_map).length !== 0}
|
| 20 |
<span
|
| 21 |
class="legend-separator"
|
| 22 |
+
class:hide={!show_legend || !show_label}
|
| 23 |
class:has-info={info != null}
|
| 24 |
>
|
| 25 |
·
|
|
|
|
| 34 |
</span>
|
| 35 |
{#each Object.entries(_color_map) as [category, color], i}
|
| 36 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
| 37 |
+
<div class="category-label" style={"background-color:" + color.secondary} class:has-info={info != null}>
|
| 38 |
{category}
|
| 39 |
</div>
|
| 40 |
{/each}
|
|
|
|
| 70 |
}
|
| 71 |
|
| 72 |
.hide {
|
| 73 |
+
display: none !important;
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
.category-legend {
|
|
|
|
| 87 |
font-weight: var(--weight-semibold);
|
| 88 |
}
|
| 89 |
|
| 90 |
+
.category-label.has-info {
|
| 91 |
+
margin-bottom: var(--spacing-xs);
|
| 92 |
+
}
|
| 93 |
+
.category-label:not(.has-info) {
|
| 94 |
+
margin-bottom: var(--spacing-lg);
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
.title-container {
|
| 98 |
display: flex;
|
| 99 |
}
|
src/frontend/HighlightedTextbox.svelte
CHANGED
|
@@ -54,8 +54,6 @@
|
|
| 54 |
}
|
| 55 |
|
| 56 |
function set_text_from_value(as_output: boolean): void {
|
| 57 |
-
console.log(value)
|
| 58 |
-
console.log(_color_map)
|
| 59 |
if (value.length > 0 && as_output) {
|
| 60 |
el_text = value.map(([text, _]) => text).join(" ");
|
| 61 |
marked_el_text = value.map(([text, category]) => {
|
|
@@ -178,7 +176,7 @@
|
|
| 178 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
| 179 |
<!-- svelte-ignore a11y-click-events-have-key-events-->
|
| 180 |
<label class:container>
|
| 181 |
-
<BlockTitleWithHighlights {show_label} {
|
| 182 |
{#if show_copy_button}
|
| 183 |
{#if copied}
|
| 184 |
<button
|
|
|
|
| 54 |
}
|
| 55 |
|
| 56 |
function set_text_from_value(as_output: boolean): void {
|
|
|
|
|
|
|
| 57 |
if (value.length > 0 && as_output) {
|
| 58 |
el_text = value.map(([text, _]) => text).join(" ");
|
| 59 |
marked_el_text = value.map(([text, category]) => {
|
|
|
|
| 176 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
| 177 |
<!-- svelte-ignore a11y-click-events-have-key-events-->
|
| 178 |
<label class:container>
|
| 179 |
+
<BlockTitleWithHighlights {show_label} {show_legend} {show_legend_label} {legend_label} {_color_map} {info}>{label}</BlockTitleWithHighlights>
|
| 180 |
{#if show_copy_button}
|
| 181 |
{#if copied}
|
| 182 |
<button
|
src/pyproject.toml
CHANGED
|
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
| 8 |
|
| 9 |
[project]
|
| 10 |
name = "gradio_highlightedtextbox"
|
| 11 |
-
version = "0.0.
|
| 12 |
description = "Editable Gradio textarea supporting highlighting"
|
| 13 |
readme = "README.md"
|
| 14 |
license = "mit"
|
|
@@ -39,7 +39,7 @@ dev = ["build", "twine"]
|
|
| 39 |
space = "https://huggingface.co/spaces/gsarti/gradio_highlightedtextbox"
|
| 40 |
|
| 41 |
[tool.hatch.build]
|
| 42 |
-
artifacts = ["/backend/gradio_highlightedtextbox/templates", "*.pyi", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "Users/gsarti/Documents/projects/highlightedtextbox/backend/gradio_highlightedtextbox/templates", "Users/gsarti/Documents/projects/highlightedtextbox/backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates"]
|
| 43 |
|
| 44 |
[tool.hatch.build.targets.wheel]
|
| 45 |
packages = ["/backend/gradio_highlightedtextbox"]
|
|
|
|
| 8 |
|
| 9 |
[project]
|
| 10 |
name = "gradio_highlightedtextbox"
|
| 11 |
+
version = "0.0.7"
|
| 12 |
description = "Editable Gradio textarea supporting highlighting"
|
| 13 |
readme = "README.md"
|
| 14 |
license = "mit"
|
|
|
|
| 39 |
space = "https://huggingface.co/spaces/gsarti/gradio_highlightedtextbox"
|
| 40 |
|
| 41 |
[tool.hatch.build]
|
| 42 |
+
artifacts = ["/backend/gradio_highlightedtextbox/templates", "*.pyi", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "Users/gsarti/Documents/projects/highlightedtextbox/backend/gradio_highlightedtextbox/templates", "Users/gsarti/Documents/projects/highlightedtextbox/backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates", "backend/gradio_highlightedtextbox/templates"]
|
| 43 |
|
| 44 |
[tool.hatch.build.targets.wheel]
|
| 45 |
packages = ["/backend/gradio_highlightedtextbox"]
|