diff --git "a/src/backend/gradio_highlightedtextbox/templates/component/index.js" "b/src/backend/gradio_highlightedtextbox/templates/component/index.js" --- "a/src/backend/gradio_highlightedtextbox/templates/component/index.js" +++ "b/src/backend/gradio_highlightedtextbox/templates/component/index.js" @@ -1,35 +1,35 @@ const { - SvelteComponent: el, - assign: tl, - create_slot: ll, - detach: nl, - element: il, - get_all_dirty_from_scope: sl, - get_slot_changes: ol, - get_spread_update: fl, - init: _l, - insert: al, - safe_not_equal: rl, + SvelteComponent: nl, + assign: il, + create_slot: ol, + detach: sl, + element: fl, + get_all_dirty_from_scope: rl, + get_slot_changes: al, + get_spread_update: _l, + init: ul, + insert: cl, + safe_not_equal: dl, set_dynamic_element_data: et, - set_style: N, - toggle_class: x, + set_style: A, + toggle_class: te, transition_in: Ot, - transition_out: Rt, - update_slot_base: ul + transition_out: It, + update_slot_base: ml } = window.__gradio__svelte__internal; -function cl(n) { +function bl(n) { let e, t, l; const i = ( /*#slots*/ n[18].default - ), s = ll( + ), o = ol( i, n, /*$$scope*/ n[17], null ); - let o = [ + let s = [ { "data-testid": ( /*test_id*/ n[7] @@ -42,35 +42,35 @@ function cl(n) { class: t = "block " + /*elem_classes*/ n[3].join(" ") + " svelte-1t38q2d" } - ], _ = {}; - for (let f = 0; f < o.length; f += 1) - _ = tl(_, o[f]); + ], r = {}; + for (let f = 0; f < s.length; f += 1) + r = il(r, s[f]); return { c() { - e = il( + e = fl( /*tag*/ n[14] - ), s && s.c(), et( + ), o && o.c(), et( /*tag*/ n[14] - )(e, _), x( + )(e, r), te( e, "hidden", /*visible*/ n[10] === !1 - ), x( + ), te( e, "padded", /*padding*/ n[6] - ), x( + ), te( e, "border_focus", /*border_mode*/ n[5] === "focus" - ), x(e, "hide-container", !/*explicit_call*/ + ), te(e, "hide-container", !/*explicit_call*/ n[8] && !/*container*/ - n[9]), N( + n[9]), A( e, "height", /*get_dimension*/ @@ -78,7 +78,7 @@ function cl(n) { /*height*/ n[0] ) - ), N(e, "width", typeof /*width*/ + ), A(e, "width", typeof /*width*/ n[1] == "number" ? `calc(min(${/*width*/ n[1]}px, 100%))` : ( /*get_dimension*/ @@ -86,42 +86,42 @@ function cl(n) { /*width*/ n[1] ) - )), N( + )), A( e, "border-style", /*variant*/ n[4] - ), N( + ), A( e, "overflow", /*allow_overflow*/ n[11] ? "visible" : "hidden" - ), N( + ), A( e, "flex-grow", /*scale*/ n[12] - ), N(e, "min-width", `calc(min(${/*min_width*/ - n[13]}px, 100%))`), N(e, "border-width", "var(--block-border-width)"); + ), A(e, "min-width", `calc(min(${/*min_width*/ + n[13]}px, 100%))`), A(e, "border-width", "var(--block-border-width)"); }, m(f, a) { - al(f, e, a), s && s.m(e, null), l = !0; + cl(f, e, a), o && o.m(e, null), l = !0; }, p(f, a) { - s && s.p && (!l || a & /*$$scope*/ - 131072) && ul( - s, + o && o.p && (!l || a & /*$$scope*/ + 131072) && ml( + o, i, f, /*$$scope*/ f[17], - l ? ol( + l ? al( i, /*$$scope*/ f[17], a, null - ) : sl( + ) : rl( /*$$scope*/ f[17] ), @@ -129,7 +129,7 @@ function cl(n) { ), et( /*tag*/ f[14] - )(e, _ = fl(o, [ + )(e, r = _l(s, [ (!l || a & /*test_id*/ 128) && { "data-testid": ( /*test_id*/ @@ -143,25 +143,25 @@ function cl(n) { (!l || a & /*elem_classes*/ 8 && t !== (t = "block " + /*elem_classes*/ f[3].join(" ") + " svelte-1t38q2d")) && { class: t } - ])), x( + ])), te( e, "hidden", /*visible*/ f[10] === !1 - ), x( + ), te( e, "padded", /*padding*/ f[6] - ), x( + ), te( e, "border_focus", /*border_mode*/ f[5] === "focus" - ), x(e, "hide-container", !/*explicit_call*/ + ), te(e, "hide-container", !/*explicit_call*/ f[8] && !/*container*/ f[9]), a & /*height*/ - 1 && N( + 1 && A( e, "height", /*get_dimension*/ @@ -170,7 +170,7 @@ function cl(n) { f[0] ) ), a & /*width*/ - 2 && N(e, "width", typeof /*width*/ + 2 && A(e, "width", typeof /*width*/ f[1] == "number" ? `calc(min(${/*width*/ f[1]}px, 100%))` : ( /*get_dimension*/ @@ -179,42 +179,42 @@ function cl(n) { f[1] ) )), a & /*variant*/ - 16 && N( + 16 && A( e, "border-style", /*variant*/ f[4] ), a & /*allow_overflow*/ - 2048 && N( + 2048 && A( e, "overflow", /*allow_overflow*/ f[11] ? "visible" : "hidden" ), a & /*scale*/ - 4096 && N( + 4096 && A( e, "flex-grow", /*scale*/ f[12] ), a & /*min_width*/ - 8192 && N(e, "min-width", `calc(min(${/*min_width*/ + 8192 && A(e, "min-width", `calc(min(${/*min_width*/ f[13]}px, 100%))`); }, i(f) { - l || (Ot(s, f), l = !0); + l || (Ot(o, f), l = !0); }, o(f) { - Rt(s, f), l = !1; + It(o, f), l = !1; }, d(f) { - f && nl(e), s && s.d(f); + f && sl(e), o && o.d(f); } }; } -function dl(n) { +function gl(n) { let e, t = ( /*tag*/ - n[14] && cl(n) + n[14] && bl(n) ); return { c() { @@ -231,38 +231,38 @@ function dl(n) { e || (Ot(t, l), e = !0); }, o(l) { - Rt(t, l), e = !1; + It(t, l), e = !1; }, d(l) { t && t.d(l); } }; } -function ml(n, e, t) { - let { $$slots: l = {}, $$scope: i } = e, { height: s = void 0 } = e, { width: o = void 0 } = e, { elem_id: _ = "" } = e, { elem_classes: f = [] } = e, { variant: a = "solid" } = e, { border_mode: r = "base" } = e, { padding: u = !0 } = e, { type: c = "normal" } = e, { test_id: m = void 0 } = e, { explicit_call: p = !1 } = e, { container: T = !0 } = e, { visible: L = !0 } = e, { allow_overflow: S = !0 } = e, { scale: C = null } = e, { min_width: d = 0 } = e, y = c === "fieldset" ? "fieldset" : "div"; - const M = (h) => { - if (h !== void 0) { - if (typeof h == "number") - return h + "px"; - if (typeof h == "string") - return h; +function hl(n, e, t) { + let { $$slots: l = {}, $$scope: i } = e, { height: o = void 0 } = e, { width: s = void 0 } = e, { elem_id: r = "" } = e, { elem_classes: f = [] } = e, { variant: a = "solid" } = e, { border_mode: _ = "base" } = e, { padding: u = !0 } = e, { type: c = "normal" } = e, { test_id: m = void 0 } = e, { explicit_call: p = !1 } = e, { container: T = !0 } = e, { visible: S = !0 } = e, { allow_overflow: L = !0 } = e, { scale: C = null } = e, { min_width: d = 0 } = e, y = c === "fieldset" ? "fieldset" : "div"; + const M = (g) => { + if (g !== void 0) { + if (typeof g == "number") + return g + "px"; + if (typeof g == "string") + return g; } }; - return n.$$set = (h) => { - "height" in h && t(0, s = h.height), "width" in h && t(1, o = h.width), "elem_id" in h && t(2, _ = h.elem_id), "elem_classes" in h && t(3, f = h.elem_classes), "variant" in h && t(4, a = h.variant), "border_mode" in h && t(5, r = h.border_mode), "padding" in h && t(6, u = h.padding), "type" in h && t(16, c = h.type), "test_id" in h && t(7, m = h.test_id), "explicit_call" in h && t(8, p = h.explicit_call), "container" in h && t(9, T = h.container), "visible" in h && t(10, L = h.visible), "allow_overflow" in h && t(11, S = h.allow_overflow), "scale" in h && t(12, C = h.scale), "min_width" in h && t(13, d = h.min_width), "$$scope" in h && t(17, i = h.$$scope); + return n.$$set = (g) => { + "height" in g && t(0, o = g.height), "width" in g && t(1, s = g.width), "elem_id" in g && t(2, r = g.elem_id), "elem_classes" in g && t(3, f = g.elem_classes), "variant" in g && t(4, a = g.variant), "border_mode" in g && t(5, _ = g.border_mode), "padding" in g && t(6, u = g.padding), "type" in g && t(16, c = g.type), "test_id" in g && t(7, m = g.test_id), "explicit_call" in g && t(8, p = g.explicit_call), "container" in g && t(9, T = g.container), "visible" in g && t(10, S = g.visible), "allow_overflow" in g && t(11, L = g.allow_overflow), "scale" in g && t(12, C = g.scale), "min_width" in g && t(13, d = g.min_width), "$$scope" in g && t(17, i = g.$$scope); }, [ - s, o, - _, + s, + r, f, a, - r, + _, u, m, p, T, - L, S, + L, C, d, y, @@ -272,9 +272,9 @@ function ml(n, e, t) { l ]; } -class bl extends el { +class wl extends nl { constructor(e) { - super(), _l(this, e, ml, dl, rl, { + super(), ul(this, e, hl, gl, dl, { height: 0, width: 1, elem_id: 2, @@ -294,26 +294,26 @@ class bl extends el { } } const { - SvelteComponent: hl, - attr: gl, - create_slot: wl, - detach: pl, - element: kl, - get_all_dirty_from_scope: vl, - get_slot_changes: yl, - init: Cl, - insert: ql, - safe_not_equal: Ll, - transition_in: Sl, - transition_out: Tl, - update_slot_base: Fl + SvelteComponent: pl, + attr: kl, + create_slot: vl, + detach: yl, + element: Cl, + get_all_dirty_from_scope: ql, + get_slot_changes: Sl, + init: Ll, + insert: Tl, + safe_not_equal: Fl, + transition_in: Ml, + transition_out: Nl, + update_slot_base: Hl } = window.__gradio__svelte__internal; -function Ml(n) { +function jl(n) { let e, t; const l = ( /*#slots*/ n[1].default - ), i = wl( + ), i = vl( l, n, /*$$scope*/ @@ -322,114 +322,114 @@ function Ml(n) { ); return { c() { - e = kl("div"), i && i.c(), gl(e, "class", "svelte-1hnfib2"); + e = Cl("div"), i && i.c(), kl(e, "class", "svelte-1hnfib2"); }, - m(s, o) { - ql(s, e, o), i && i.m(e, null), t = !0; + m(o, s) { + Tl(o, e, s), i && i.m(e, null), t = !0; }, - p(s, [o]) { - i && i.p && (!t || o & /*$$scope*/ - 1) && Fl( + p(o, [s]) { + i && i.p && (!t || s & /*$$scope*/ + 1) && Hl( i, l, - s, + o, /*$$scope*/ - s[0], - t ? yl( + o[0], + t ? Sl( l, /*$$scope*/ - s[0], - o, + o[0], + s, null - ) : vl( + ) : ql( /*$$scope*/ - s[0] + o[0] ), null ); }, - i(s) { - t || (Sl(i, s), t = !0); + i(o) { + t || (Ml(i, o), t = !0); }, - o(s) { - Tl(i, s), t = !1; + o(o) { + Nl(i, o), t = !1; }, - d(s) { - s && pl(e), i && i.d(s); + d(o) { + o && yl(e), i && i.d(o); } }; } -function jl(n, e, t) { +function Vl(n, e, t) { let { $$slots: l = {}, $$scope: i } = e; - return n.$$set = (s) => { - "$$scope" in s && t(0, i = s.$$scope); + return n.$$set = (o) => { + "$$scope" in o && t(0, i = o.$$scope); }, [i, l]; } -class Vl extends hl { +class Al extends pl { constructor(e) { - super(), Cl(this, e, jl, Ml, Ll, {}); + super(), Ll(this, e, Vl, jl, Fl, {}); } } const { - SvelteComponent: Hl, + SvelteComponent: zl, attr: tt, - check_outros: Nl, - create_component: zl, + check_outros: El, + create_component: Pl, create_slot: Zl, - destroy_component: Al, + destroy_component: Bl, detach: je, - element: Bl, - empty: Pl, - get_all_dirty_from_scope: Dl, - get_slot_changes: El, - group_outros: Il, - init: Ol, + element: Rl, + empty: Dl, + get_all_dirty_from_scope: Ol, + get_slot_changes: Il, + group_outros: Ul, + init: Wl, insert: Ve, - mount_component: Rl, - safe_not_equal: Ul, - set_data: Xl, - space: Yl, - text: Gl, - toggle_class: ue, - transition_in: ve, - transition_out: He, - update_slot_base: Wl + mount_component: Xl, + safe_not_equal: Yl, + set_data: Gl, + space: Jl, + text: Kl, + toggle_class: ge, + transition_in: Se, + transition_out: Ae, + update_slot_base: Ql } = window.__gradio__svelte__internal; function lt(n) { let e, t; - return e = new Vl({ + return e = new Al({ props: { - $$slots: { default: [Jl] }, + $$slots: { default: [xl] }, $$scope: { ctx: n } } }), { c() { - zl(e.$$.fragment); + Pl(e.$$.fragment); }, m(l, i) { - Rl(e, l, i), t = !0; + Xl(e, l, i), t = !0; }, p(l, i) { - const s = {}; + const o = {}; i & /*$$scope, info*/ - 10 && (s.$$scope = { dirty: i, ctx: l }), e.$set(s); + 10 && (o.$$scope = { dirty: i, ctx: l }), e.$set(o); }, i(l) { - t || (ve(e.$$.fragment, l), t = !0); + t || (Se(e.$$.fragment, l), t = !0); }, o(l) { - He(e.$$.fragment, l), t = !1; + Ae(e.$$.fragment, l), t = !1; }, d(l) { - Al(e, l); + Bl(e, l); } }; } -function Jl(n) { +function xl(n) { let e; return { c() { - e = Gl( + e = Kl( /*info*/ n[1] ); @@ -439,7 +439,7 @@ function Jl(n) { }, p(t, l) { l & /*info*/ - 2 && Xl( + 2 && Gl( e, /*info*/ t[1] @@ -450,27 +450,27 @@ function Jl(n) { } }; } -function Kl(n) { +function $l(n) { let e, t, l, i; - const s = ( + const o = ( /*#slots*/ n[2].default - ), o = Zl( - s, + ), s = Zl( + o, n, /*$$scope*/ n[3], null ); - let _ = ( + let r = ( /*info*/ n[1] && lt(n) ); return { c() { - e = Bl("span"), o && o.c(), t = Yl(), _ && _.c(), l = Pl(), tt(e, "data-testid", "block-info"), tt(e, "class", "svelte-22c38v"), ue(e, "sr-only", !/*show_label*/ - n[0]), ue(e, "hide", !/*show_label*/ - n[0]), ue( + e = Rl("span"), s && s.c(), t = Jl(), r && r.c(), l = Dl(), tt(e, "data-testid", "block-info"), tt(e, "class", "svelte-22c38v"), ge(e, "sr-only", !/*show_label*/ + n[0]), ge(e, "hide", !/*show_label*/ + n[0]), ge( e, "has-info", /*info*/ @@ -478,132 +478,132 @@ function Kl(n) { ); }, m(f, a) { - Ve(f, e, a), o && o.m(e, null), Ve(f, t, a), _ && _.m(f, a), Ve(f, l, a), i = !0; + Ve(f, e, a), s && s.m(e, null), Ve(f, t, a), r && r.m(f, a), Ve(f, l, a), i = !0; }, p(f, [a]) { - o && o.p && (!i || a & /*$$scope*/ - 8) && Wl( - o, + s && s.p && (!i || a & /*$$scope*/ + 8) && Ql( s, + o, f, /*$$scope*/ f[3], - i ? El( - s, + i ? Il( + o, /*$$scope*/ f[3], a, null - ) : Dl( + ) : Ol( /*$$scope*/ f[3] ), null ), (!i || a & /*show_label*/ - 1) && ue(e, "sr-only", !/*show_label*/ + 1) && ge(e, "sr-only", !/*show_label*/ f[0]), (!i || a & /*show_label*/ - 1) && ue(e, "hide", !/*show_label*/ + 1) && ge(e, "hide", !/*show_label*/ f[0]), (!i || a & /*info*/ - 2) && ue( + 2) && ge( e, "has-info", /*info*/ f[1] != null ), /*info*/ - f[1] ? _ ? (_.p(f, a), a & /*info*/ - 2 && ve(_, 1)) : (_ = lt(f), _.c(), ve(_, 1), _.m(l.parentNode, l)) : _ && (Il(), He(_, 1, 1, () => { - _ = null; - }), Nl()); + f[1] ? r ? (r.p(f, a), a & /*info*/ + 2 && Se(r, 1)) : (r = lt(f), r.c(), Se(r, 1), r.m(l.parentNode, l)) : r && (Ul(), Ae(r, 1, 1, () => { + r = null; + }), El()); }, i(f) { - i || (ve(o, f), ve(_), i = !0); + i || (Se(s, f), Se(r), i = !0); }, o(f) { - He(o, f), He(_), i = !1; + Ae(s, f), Ae(r), i = !1; }, d(f) { - f && (je(e), je(t), je(l)), o && o.d(f), _ && _.d(f); + f && (je(e), je(t), je(l)), s && s.d(f), r && r.d(f); } }; } -function Ql(n, e, t) { - let { $$slots: l = {}, $$scope: i } = e, { show_label: s = !0 } = e, { info: o = void 0 } = e; - return n.$$set = (_) => { - "show_label" in _ && t(0, s = _.show_label), "info" in _ && t(1, o = _.info), "$$scope" in _ && t(3, i = _.$$scope); - }, [s, o, l, i]; +function en(n, e, t) { + let { $$slots: l = {}, $$scope: i } = e, { show_label: o = !0 } = e, { info: s = void 0 } = e; + return n.$$set = (r) => { + "show_label" in r && t(0, o = r.show_label), "info" in r && t(1, s = r.info), "$$scope" in r && t(3, i = r.$$scope); + }, [o, s, l, i]; } -class xl extends Hl { +class tn extends zl { constructor(e) { - super(), Ol(this, e, Ql, Kl, Ul, { show_label: 0, info: 1 }); + super(), Wl(this, e, en, $l, Yl, { show_label: 0, info: 1 }); } } const { - SvelteComponent: $l, - append: en, - attr: $, - detach: tn, - init: ln, - insert: nn, - noop: De, - safe_not_equal: sn, + SvelteComponent: ln, + append: nn, + attr: le, + detach: on, + init: sn, + insert: fn, + noop: Be, + safe_not_equal: rn, svg_element: nt } = window.__gradio__svelte__internal; -function on(n) { +function an(n) { let e, t; return { c() { - e = nt("svg"), t = nt("polyline"), $(t, "points", "20 6 9 17 4 12"), $(e, "xmlns", "http://www.w3.org/2000/svg"), $(e, "viewBox", "2 0 20 20"), $(e, "fill", "none"), $(e, "stroke", "currentColor"), $(e, "stroke-width", "3"), $(e, "stroke-linecap", "round"), $(e, "stroke-linejoin", "round"); + e = nt("svg"), t = nt("polyline"), le(t, "points", "20 6 9 17 4 12"), le(e, "xmlns", "http://www.w3.org/2000/svg"), le(e, "viewBox", "2 0 20 20"), le(e, "fill", "none"), le(e, "stroke", "currentColor"), le(e, "stroke-width", "3"), le(e, "stroke-linecap", "round"), le(e, "stroke-linejoin", "round"); }, m(l, i) { - nn(l, e, i), en(e, t); + fn(l, e, i), nn(e, t); }, - p: De, - i: De, - o: De, + p: Be, + i: Be, + o: Be, d(l) { - l && tn(e); + l && on(e); } }; } -class fn extends $l { +class _n extends ln { constructor(e) { - super(), ln(this, e, null, on, sn, {}); + super(), sn(this, e, null, an, rn, {}); } } const { - SvelteComponent: _n, + SvelteComponent: un, append: it, - attr: ne, - detach: an, - init: rn, - insert: un, - noop: Ee, - safe_not_equal: cn, - svg_element: Ie + attr: ae, + detach: cn, + init: dn, + insert: mn, + noop: Re, + safe_not_equal: bn, + svg_element: De } = window.__gradio__svelte__internal; -function dn(n) { +function gn(n) { let e, t, l; return { c() { - e = Ie("svg"), t = Ie("path"), l = Ie("path"), ne(t, "fill", "currentColor"), ne(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"), ne(l, "fill", "currentColor"), ne(l, "d", "M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"), ne(e, "xmlns", "http://www.w3.org/2000/svg"), ne(e, "viewBox", "0 0 33 33"), ne(e, "color", "currentColor"); + e = De("svg"), t = De("path"), l = De("path"), ae(t, "fill", "currentColor"), ae(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"), ae(l, "fill", "currentColor"), ae(l, "d", "M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"), ae(e, "xmlns", "http://www.w3.org/2000/svg"), ae(e, "viewBox", "0 0 33 33"), ae(e, "color", "currentColor"); }, - m(i, s) { - un(i, e, s), it(e, t), it(e, l); + m(i, o) { + mn(i, e, o), it(e, t), it(e, l); }, - p: Ee, - i: Ee, - o: Ee, + p: Re, + i: Re, + o: Re, d(i) { - i && an(e); + i && cn(e); } }; } -class mn extends _n { +class hn extends un { constructor(e) { - super(), rn(this, e, null, dn, cn, {}); + super(), dn(this, e, null, gn, bn, {}); } } -const st = [ +const ot = [ "red", "green", "blue", @@ -614,7 +614,7 @@ const st = [ "cyan", "lime", "pink" -], bn = [ +], wn = [ { color: "red", primary: 600, secondary: 100 }, { color: "green", primary: 600, secondary: 100 }, { color: "blue", primary: 600, secondary: 100 }, @@ -625,7 +625,7 @@ const st = [ { color: "cyan", primary: 600, secondary: 100 }, { color: "lime", primary: 500, secondary: 100 }, { color: "pink", primary: 600, secondary: 100 } -], ot = { +], st = { inherit: "inherit", current: "currentColor", transparent: "transparent", @@ -917,128 +917,128 @@ const st = [ 900: "#881337", 950: "#4c0519" } -}, ft = bn.reduce( +}, ft = wn.reduce( (n, { color: e, primary: t, secondary: l }) => ({ ...n, [e]: { - primary: ot[e][t], - secondary: ot[e][l] + primary: st[e][t], + secondary: st[e][l] } }), {} -), hn = (n) => st[n % st.length]; -function Ne() { +), pn = (n) => ot[n % ot.length]; +function ze() { } -const gn = (n) => n; -function wn(n, e) { +const kn = (n) => n; +function vn(n, e) { return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function"; } const Ut = typeof window < "u"; -let _t = Ut ? () => window.performance.now() : () => Date.now(), Xt = Ut ? (n) => requestAnimationFrame(n) : Ne; -const he = /* @__PURE__ */ new Set(); -function Yt(n) { - he.forEach((e) => { - e.c(n) || (he.delete(e), e.f()); - }), he.size !== 0 && Xt(Yt); -} -function pn(n) { +let rt = Ut ? () => window.performance.now() : () => Date.now(), Wt = Ut ? (n) => requestAnimationFrame(n) : ze; +const ve = /* @__PURE__ */ new Set(); +function Xt(n) { + ve.forEach((e) => { + e.c(n) || (ve.delete(e), e.f()); + }), ve.size !== 0 && Wt(Xt); +} +function yn(n) { let e; - return he.size === 0 && Xt(Yt), { + return ve.size === 0 && Wt(Xt), { promise: new Promise((t) => { - he.add(e = { c: n, f: t }); + ve.add(e = { c: n, f: t }); }), abort() { - he.delete(e); + ve.delete(e); } }; } -function kn(n, { delay: e = 0, duration: t = 400, easing: l = gn } = {}) { +function Cn(n, { delay: e = 0, duration: t = 400, easing: l = kn } = {}) { const i = +getComputedStyle(n).opacity; return { delay: e, duration: t, easing: l, - css: (s) => `opacity: ${s * i}` + css: (o) => `opacity: ${o * i}` }; } -const ce = []; -function vn(n, e = Ne) { +const he = []; +function qn(n, e = ze) { let t; const l = /* @__PURE__ */ new Set(); - function i(_) { - if (wn(n, _) && (n = _, t)) { - const f = !ce.length; + function i(r) { + if (vn(n, r) && (n = r, t)) { + const f = !he.length; for (const a of l) - a[1](), ce.push(a, n); + a[1](), he.push(a, n); if (f) { - for (let a = 0; a < ce.length; a += 2) - ce[a][0](ce[a + 1]); - ce.length = 0; + for (let a = 0; a < he.length; a += 2) + he[a][0](he[a + 1]); + he.length = 0; } } } - function s(_) { - i(_(n)); + function o(r) { + i(r(n)); } - function o(_, f = Ne) { - const a = [_, f]; - return l.add(a), l.size === 1 && (t = e(i, s) || Ne), _(n), () => { + function s(r, f = ze) { + const a = [r, f]; + return l.add(a), l.size === 1 && (t = e(i, o) || ze), r(n), () => { l.delete(a), l.size === 0 && t && (t(), t = null); }; } - return { set: i, update: s, subscribe: o }; + return { set: i, update: o, subscribe: s }; } function at(n) { return Object.prototype.toString.call(n) === "[object Date]"; } -function Re(n, e, t, l) { +function Ie(n, e, t, l) { if (typeof t == "number" || at(t)) { - const i = l - t, s = (t - e) / (n.dt || 1 / 60), o = n.opts.stiffness * i, _ = n.opts.damping * s, f = (o - _) * n.inv_mass, a = (s + f) * n.dt; + const i = l - t, o = (t - e) / (n.dt || 1 / 60), s = n.opts.stiffness * i, r = n.opts.damping * o, f = (s - r) * n.inv_mass, a = (o + f) * n.dt; return Math.abs(a) < n.opts.precision && Math.abs(i) < n.opts.precision ? l : (n.settled = !1, at(t) ? new Date(t.getTime() + a) : t + a); } else { if (Array.isArray(t)) return t.map( - (i, s) => Re(n, e[s], t[s], l[s]) + (i, o) => Ie(n, e[o], t[o], l[o]) ); if (typeof t == "object") { const i = {}; - for (const s in t) - i[s] = Re(n, e[s], t[s], l[s]); + for (const o in t) + i[o] = Ie(n, e[o], t[o], l[o]); return i; } else throw new Error(`Cannot spring ${typeof t} values`); } } -function rt(n, e = {}) { - const t = vn(n), { stiffness: l = 0.15, damping: i = 0.8, precision: s = 0.01 } = e; - let o, _, f, a = n, r = n, u = 1, c = 0, m = !1; - function p(L, S = {}) { - r = L; +function _t(n, e = {}) { + const t = qn(n), { stiffness: l = 0.15, damping: i = 0.8, precision: o = 0.01 } = e; + let s, r, f, a = n, _ = n, u = 1, c = 0, m = !1; + function p(S, L = {}) { + _ = S; const C = f = {}; - return n == null || S.hard || T.stiffness >= 1 && T.damping >= 1 ? (m = !0, o = _t(), a = L, t.set(n = r), Promise.resolve()) : (S.soft && (c = 1 / ((S.soft === !0 ? 0.5 : +S.soft) * 60), u = 0), _ || (o = _t(), m = !1, _ = pn((d) => { + return n == null || L.hard || T.stiffness >= 1 && T.damping >= 1 ? (m = !0, s = rt(), a = S, t.set(n = _), Promise.resolve()) : (L.soft && (c = 1 / ((L.soft === !0 ? 0.5 : +L.soft) * 60), u = 0), r || (s = rt(), m = !1, r = yn((d) => { if (m) - return m = !1, _ = null, !1; + return m = !1, r = null, !1; u = Math.min(u + c, 1); const y = { inv_mass: u, opts: T, settled: !0, - dt: (d - o) * 60 / 1e3 - }, M = Re(y, a, n, r); - return o = d, a = n, t.set(n = M), y.settled && (_ = null), !y.settled; + dt: (d - s) * 60 / 1e3 + }, M = Ie(y, a, n, _); + return s = d, a = n, t.set(n = M), y.settled && (r = null), !y.settled; })), new Promise((d) => { - _.promise.then(() => { + r.promise.then(() => { C === f && d(); }); })); } const T = { set: p, - update: (L, S) => p(L(r, n), S), + update: (S, L) => p(S(_, n), L), subscribe: t.subscribe, stiffness: l, damping: i, - precision: s + precision: o }; return T; } @@ -1048,117 +1048,137 @@ function ut(n, e, t) { t = l.getContext("2d"); } t.fillStyle = n, t.fillRect(0, 0, 1, 1); - const [i, s, o] = t.getImageData(0, 0, 1, 1).data; - return t.clearRect(0, 0, 1, 1), `rgba(${i}, ${s}, ${o}, ${255 / e})`; + const [i, o, s] = t.getImageData(0, 0, 1, 1).data; + return t.clearRect(0, 0, 1, 1), `rgba(${i}, ${o}, ${s}, ${255 / e})`; } -function yn(n, e, t) { +function Sn(n, e, t) { var l = {}; for (const i in n) { - const s = n[i].trim(); - s in ft ? l[i] = ft[s] : l[i] = { + const o = n[i].trim(); + o in ft ? l[i] = ft[o] : l[i] = { primary: e ? ut(n[i], 1, t) : n[i], secondary: e ? ut(n[i], 0.5, t) : n[i] }; } return l; } -function Cn(n, e) { +function Ln(n, e) { let t = [], l = null, i = null; - for (const [s, o] of n) - e === "empty" && o === null || e === "equal" && i === o ? l = l ? l + s : s : (l !== null && t.push([l, i]), l = s, i = o); + for (const [o, s] of n) + e === "empty" && s === null || e === "equal" && i === s ? l = l ? l + o : o : (l !== null && t.push([l, i]), l = o, i = s); return l !== null && t.push([l, i]), t; } +function Tn(n) { + const e = window.getSelection(); + if (e.rangeCount > 0) { + const t = document.createRange(); + return t.setStart(n, 0), e.anchorNode !== null && t.setEnd(e.anchorNode, e.anchorOffset), t.toString().length; + } + return -1; +} +function Fn(n, e) { + var t = document.createTreeWalker(n, NodeFilter.SHOW_TEXT), l = t.nextNode(); + if (!l || !l.textContent) + return null; + for (var i = l.textContent.length; i < e; ) + if (l = t.nextNode(), l && l.textContent) + i += l.textContent.length; + else + return null; + var o = l.textContent.length - (i - e); + return { node: l, offset: o }; +} const { - SvelteComponent: qn, - add_render_callback: Xe, - append: se, - attr: V, + SvelteComponent: Mn, + add_render_callback: We, + append: ue, + attr: H, binding_callbacks: ct, - bubble: de, - check_outros: Gt, - create_component: Ye, - create_in_transition: Ln, - destroy_component: Ge, - destroy_each: Sn, - detach: G, - element: le, - empty: Tn, + bubble: we, + check_outros: Yt, + create_component: Xe, + create_in_transition: Nn, + destroy_component: Ye, + destroy_each: Hn, + detach: J, + element: oe, + empty: jn, ensure_array_like: dt, - group_outros: Wt, - init: Fn, - insert: W, - listen: U, - mount_component: We, + group_outros: Gt, + init: Vn, + insert: K, + listen: V, + mount_component: Ge, noop: Jt, - run_all: Mn, - safe_not_equal: jn, + run_all: An, + safe_not_equal: zn, set_data: Je, - space: ye, + space: Le, text: Ke, toggle_class: mt, - transition_in: ee, - transition_out: oe -} = window.__gradio__svelte__internal, { beforeUpdate: Vn, afterUpdate: Hn, createEventDispatcher: Nn, tick: Ei } = window.__gradio__svelte__internal; + transition_in: ne, + transition_out: ce +} = window.__gradio__svelte__internal, { beforeUpdate: En, afterUpdate: Pn, createEventDispatcher: Zn, tick: Wi } = window.__gradio__svelte__internal; function bt(n, e, t) { const l = n.slice(); - return l[39] = e[t][0], l[40] = e[t][1], l[42] = t, l; + return l[40] = e[t][0], l[41] = e[t][1], l[43] = t, l; } -function ht(n) { +function gt(n) { let e, t, l = ( /*show_legend_label*/ - n[5] && gt(n) + n[5] && ht(n) ), i = dt(Object.entries( /*_color_map*/ n[12] - )), s = []; - for (let o = 0; o < i.length; o += 1) - s[o] = wt(bt(n, i, o)); + )), o = []; + for (let s = 0; s < i.length; s += 1) + o[s] = wt(bt(n, i, s)); return { c() { - e = le("div"), l && l.c(), t = ye(); - for (let o = 0; o < s.length; o += 1) - s[o].c(); - V(e, "class", "category-legend svelte-1t4levu"), V(e, "data-testid", "highlighted-text:category-legend"); + e = oe("div"), l && l.c(), t = Le(); + for (let s = 0; s < o.length; s += 1) + o[s].c(); + H(e, "class", "category-legend svelte-1u11ied"), H(e, "data-testid", "highlighted-text:category-legend"); }, - m(o, _) { - W(o, e, _), l && l.m(e, null), se(e, t); - for (let f = 0; f < s.length; f += 1) - s[f] && s[f].m(e, null); + m(s, r) { + K(s, e, r), l && l.m(e, null), ue(e, t); + for (let f = 0; f < o.length; f += 1) + o[f] && o[f].m(e, null); }, - p(o, _) { + p(s, r) { if (/*show_legend_label*/ - o[5] ? l ? l.p(o, _) : (l = gt(o), l.c(), l.m(e, t)) : l && (l.d(1), l = null), _[0] & /*_color_map*/ + s[5] ? l ? l.p(s, r) : (l = ht(s), l.c(), l.m(e, t)) : l && (l.d(1), l = null), r[0] & /*_color_map*/ 4096) { i = dt(Object.entries( /*_color_map*/ - o[12] + s[12] )); let f; for (f = 0; f < i.length; f += 1) { - const a = bt(o, i, f); - s[f] ? s[f].p(a, _) : (s[f] = wt(a), s[f].c(), s[f].m(e, null)); + const a = bt(s, i, f); + o[f] ? o[f].p(a, r) : (o[f] = wt(a), o[f].c(), o[f].m(e, null)); } - for (; f < s.length; f += 1) - s[f].d(1); - s.length = i.length; + for (; f < o.length; f += 1) + o[f].d(1); + o.length = i.length; } }, - d(o) { - o && G(e), l && l.d(), Sn(s, o); + d(s) { + s && J(e), l && l.d(), Hn(o, s); } }; } -function gt(n) { +function ht(n) { let e, t; return { c() { - e = le("div"), t = Ke( + e = oe("div"), t = Ke( /*legend_label*/ n[1] - ), V(e, "class", "legend-description svelte-1t4levu"); + ), H(e, "class", "legend-description svelte-1u11ied"); }, m(l, i) { - W(l, e, i), se(e, t); + K(l, e, i), ue(e, t); }, p(l, i) { i[0] & /*legend_label*/ @@ -1169,36 +1189,36 @@ function gt(n) { ); }, d(l) { - l && G(e); + l && J(e); } }; } function wt(n) { let e, t = ( /*category*/ - n[39] + "" - ), l, i, s; + n[40] + "" + ), l, i, o; return { c() { - e = le("div"), l = Ke(t), i = ye(), V(e, "class", "category-label svelte-1t4levu"), V(e, "style", s = "background-color:" + /*color*/ - n[40].secondary); + e = oe("div"), l = Ke(t), i = Le(), H(e, "class", "category-label svelte-1u11ied"), H(e, "style", o = "background-color:" + /*color*/ + n[41].secondary); }, - m(o, _) { - W(o, e, _), se(e, l), se(e, i); + m(s, r) { + K(s, e, r), ue(e, l), ue(e, i); }, - p(o, _) { - _[0] & /*_color_map*/ + p(s, r) { + r[0] & /*_color_map*/ 4096 && t !== (t = /*category*/ - o[39] + "") && Je(l, t), _[0] & /*_color_map*/ - 4096 && s !== (s = "background-color:" + /*color*/ - o[40].secondary) && V(e, "style", s); + s[40] + "") && Je(l, t), r[0] & /*_color_map*/ + 4096 && o !== (o = "background-color:" + /*color*/ + s[41].secondary) && H(e, "style", o); }, - d(o) { - o && G(e); + d(s) { + s && J(e); } }; } -function zn(n) { +function Bn(n) { let e; return { c() { @@ -1208,7 +1228,7 @@ function zn(n) { ); }, m(t, l) { - W(t, e, l); + K(t, e, l); }, p(t, l) { l[0] & /*label*/ @@ -1219,51 +1239,51 @@ function zn(n) { ); }, d(t) { - t && G(e); + t && J(e); } }; } function pt(n) { let e, t, l, i; - const s = [An, Zn], o = []; - function _(f, a) { + const o = [Dn, Rn], s = []; + function r(f, a) { return ( /*copied*/ f[13] ? 0 : 1 ); } - return e = _(n), t = o[e] = s[e](n), { + return e = r(n), t = s[e] = o[e](n), { c() { - t.c(), l = Tn(); + t.c(), l = jn(); }, m(f, a) { - o[e].m(f, a), W(f, l, a), i = !0; + s[e].m(f, a), K(f, l, a), i = !0; }, p(f, a) { - let r = e; - e = _(f), e === r ? o[e].p(f, a) : (Wt(), oe(o[r], 1, 1, () => { - o[r] = null; - }), Gt(), t = o[e], t ? t.p(f, a) : (t = o[e] = s[e](f), t.c()), ee(t, 1), t.m(l.parentNode, l)); + let _ = e; + e = r(f), e === _ ? s[e].p(f, a) : (Gt(), ce(s[_], 1, 1, () => { + s[_] = null; + }), Yt(), t = s[e], t ? t.p(f, a) : (t = s[e] = o[e](f), t.c()), ne(t, 1), t.m(l.parentNode, l)); }, i(f) { - i || (ee(t), i = !0); + i || (ne(t), i = !0); }, o(f) { - oe(t), i = !1; + ce(t), i = !1; }, d(f) { - f && G(l), o[e].d(f); + f && J(l), s[e].d(f); } }; } -function Zn(n) { - let e, t, l, i, s; - return t = new mn({}), { +function Rn(n) { + let e, t, l, i, o; + return t = new hn({}), { c() { - e = le("button"), Ye(t.$$.fragment), V(e, "aria-label", "Copy"), V(e, "aria-roledescription", "Copy text"), V(e, "class", "svelte-1t4levu"); + e = oe("button"), Xe(t.$$.fragment), H(e, "aria-label", "Copy"), H(e, "aria-roledescription", "Copy text"), H(e, "class", "svelte-1u11ied"); }, - m(o, _) { - W(o, e, _), We(t, e, null), l = !0, i || (s = U( + m(s, r) { + K(s, e, r), Ge(t, e, null), l = !0, i || (o = V( e, "click", /*handle_copy*/ @@ -1271,164 +1291,188 @@ function Zn(n) { ), i = !0); }, p: Jt, - i(o) { - l || (ee(t.$$.fragment, o), l = !0); + i(s) { + l || (ne(t.$$.fragment, s), l = !0); }, - o(o) { - oe(t.$$.fragment, o), l = !1; + o(s) { + ce(t.$$.fragment, s), l = !1; }, - d(o) { - o && G(e), Ge(t), i = !1, s(); + d(s) { + s && J(e), Ye(t), i = !1, o(); } }; } -function An(n) { +function Dn(n) { let e, t, l, i; - return t = new fn({}), { + return t = new _n({}), { c() { - e = le("button"), Ye(t.$$.fragment), V(e, "aria-label", "Copied"), V(e, "aria-roledescription", "Text copied"), V(e, "class", "svelte-1t4levu"); + e = oe("button"), Xe(t.$$.fragment), H(e, "aria-label", "Copied"), H(e, "aria-roledescription", "Text copied"), H(e, "class", "svelte-1u11ied"); }, - m(s, o) { - W(s, e, o), We(t, e, null), i = !0; + m(o, s) { + K(o, e, s), Ge(t, e, null), i = !0; }, p: Jt, - i(s) { - i || (ee(t.$$.fragment, s), s && (l || Xe(() => { - l = Ln(e, kn, { duration: 300 }), l.start(); + i(o) { + i || (ne(t.$$.fragment, o), o && (l || We(() => { + l = Nn(e, Cn, { duration: 300 }), l.start(); })), i = !0); }, - o(s) { - oe(t.$$.fragment, s), i = !1; + o(o) { + ce(t.$$.fragment, o), i = !1; }, - d(s) { - s && G(e), Ge(t); + d(o) { + o && J(e), Ye(t); } }; } -function Bn(n) { +function On(n) { let e, t, l; return { c() { - e = le("div"), V(e, "class", "textfield svelte-1t4levu"), V(e, "data-testid", "highlighted-textbox"), V(e, "contenteditable", "true"), /*el_text*/ + e = oe("div"), H(e, "class", "textfield svelte-1u11ied"), H(e, "data-testid", "highlighted-textbox"), H(e, "contenteditable", "true"), /*el_text*/ (n[11] === void 0 || /*marked_el_text*/ - n[9] === void 0) && Xe(() => ( + n[9] === void 0) && We(() => ( /*div_input_handler_1*/ - n[28].call(e) + n[29].call(e) )); }, - m(i, s) { - W(i, e, s), n[27](e), /*el_text*/ + m(i, o) { + K(i, e, o), n[28](e), /*el_text*/ n[11] !== void 0 && (e.textContent = /*el_text*/ n[11]), /*marked_el_text*/ n[9] !== void 0 && (e.innerHTML = /*marked_el_text*/ n[9]), t || (l = [ - U( + V( e, "input", /*div_input_handler_1*/ - n[28] + n[29] ), - U( + V( e, "blur", /*handle_blur*/ n[14] ), - U( + V( e, "keypress", /*keypress_handler*/ - n[19] + n[20] ), - U( + V( e, "select", /*select_handler*/ - n[20] + n[21] ), - U( + V( e, "scroll", /*scroll_handler*/ - n[21] + n[22] ), - U( + V( e, "input", /*input_handler*/ - n[22] + n[23] ), - U( + V( e, "focus", /*focus_handler*/ - n[23] + n[24] ), - U( + V( e, "change", /*change_handler*/ - n[24] + n[25] + ), + V( + e, + "mousedown", + /*checkAndRemoveHighlight*/ + n[16] + ), + V( + e, + "keydown", + /*checkAndRemoveHighlight*/ + n[16] + ), + V( + e, + "mouseup", + /*checkAndRemoveHighlight*/ + n[16] + ), + V( + e, + "keyup", + /*checkAndRemoveHighlight*/ + n[16] ) ], t = !0); }, - p(i, s) { - s[0] & /*el_text*/ + p(i, o) { + o[0] & /*el_text*/ 2048 && /*el_text*/ i[11] !== e.textContent && (e.textContent = /*el_text*/ - i[11]), s[0] & /*marked_el_text*/ + i[11]), o[0] & /*marked_el_text*/ 512 && /*marked_el_text*/ i[9] !== e.innerHTML && (e.innerHTML = /*marked_el_text*/ i[9]); }, d(i) { - i && G(e), n[27](null), t = !1, Mn(l); + i && J(e), n[28](null), t = !1, An(l); } }; } -function Pn(n) { +function In(n) { let e, t, l; return { c() { - e = le("div"), V(e, "class", "textfield svelte-1t4levu"), V(e, "data-testid", "highlighted-textbox"), V(e, "contenteditable", "false"), /*el_text*/ + e = oe("div"), H(e, "class", "textfield svelte-1u11ied"), H(e, "data-testid", "highlighted-textbox"), H(e, "contenteditable", "false"), /*el_text*/ (n[11] === void 0 || /*marked_el_text*/ - n[9] === void 0) && Xe(() => ( + n[9] === void 0) && We(() => ( /*div_input_handler*/ - n[26].call(e) + n[27].call(e) )); }, - m(i, s) { - W(i, e, s), n[25](e), /*el_text*/ + m(i, o) { + K(i, e, o), n[26](e), /*el_text*/ n[11] !== void 0 && (e.textContent = /*el_text*/ n[11]), /*marked_el_text*/ n[9] !== void 0 && (e.innerHTML = /*marked_el_text*/ - n[9]), t || (l = U( + n[9]), t || (l = V( e, "input", /*div_input_handler*/ - n[26] + n[27] ), t = !0); }, - p(i, s) { - s[0] & /*el_text*/ + p(i, o) { + o[0] & /*el_text*/ 2048 && /*el_text*/ i[11] !== e.textContent && (e.textContent = /*el_text*/ - i[11]), s[0] & /*marked_el_text*/ + i[11]), o[0] & /*marked_el_text*/ 512 && /*marked_el_text*/ i[9] !== e.innerHTML && (e.innerHTML = /*marked_el_text*/ i[9]); }, d(i) { - i && G(e), n[25](null), t = !1, l(); + i && J(e), n[26](null), t = !1, l(); } }; } -function Dn(n) { - let e, t, l, i, s, o, _ = ( +function Un(n) { + let e, t, l, i, o, s, r = ( /*show_legend*/ - n[4] && ht(n) + n[4] && gt(n) ); - l = new xl({ + l = new tn({ props: { show_label: ( /*show_label*/ @@ -1438,7 +1482,7 @@ function Dn(n) { /*info*/ n[2] ), - $$slots: { default: [zn] }, + $$slots: { default: [Bn] }, $$scope: { ctx: n } } }); @@ -1449,13 +1493,13 @@ function Dn(n) { function a(c, m) { return ( /*disabled*/ - c[8] ? Pn : Bn + c[8] ? In : On ); } - let r = a(n), u = r(n); + let _ = a(n), u = _(n); return { c() { - e = le("label"), _ && _.c(), t = ye(), Ye(l.$$.fragment), i = ye(), f && f.c(), s = ye(), u.c(), V(e, "class", "svelte-1t4levu"), mt( + e = oe("label"), r && r.c(), t = Le(), Xe(l.$$.fragment), i = Le(), f && f.c(), o = Le(), u.c(), H(e, "class", "svelte-1u11ied"), mt( e, "container", /*container*/ @@ -1463,11 +1507,11 @@ function Dn(n) { ); }, m(c, m) { - W(c, e, m), _ && _.m(e, null), se(e, t), We(l, e, null), se(e, i), f && f.m(e, null), se(e, s), u.m(e, null), o = !0; + K(c, e, m), r && r.m(e, null), ue(e, t), Ge(l, e, null), ue(e, i), f && f.m(e, null), ue(e, o), u.m(e, null), s = !0; }, p(c, m) { /*show_legend*/ - c[4] ? _ ? _.p(c, m) : (_ = ht(c), _.c(), _.m(e, t)) : _ && (_.d(1), _ = null); + c[4] ? r ? r.p(c, m) : (r = gt(c), r.c(), r.m(e, t)) : r && (r.d(1), r = null); const p = {}; m[0] & /*show_label*/ 8 && (p.show_label = /*show_label*/ @@ -1475,11 +1519,11 @@ function Dn(n) { 4 && (p.info = /*info*/ c[2]), m[0] & /*label*/ 1 | m[1] & /*$$scope*/ - 4096 && (p.$$scope = { dirty: m, ctx: c }), l.$set(p), /*show_copy_button*/ + 8192 && (p.$$scope = { dirty: m, ctx: c }), l.$set(p), /*show_copy_button*/ c[7] ? f ? (f.p(c, m), m[0] & /*show_copy_button*/ - 128 && ee(f, 1)) : (f = pt(c), f.c(), ee(f, 1), f.m(e, s)) : f && (Wt(), oe(f, 1, 1, () => { + 128 && ne(f, 1)) : (f = pt(c), f.c(), ne(f, 1), f.m(e, o)) : f && (Gt(), ce(f, 1, 1, () => { f = null; - }), Gt()), r === (r = a(c)) && u ? u.p(c, m) : (u.d(1), u = r(c), u && (u.c(), u.m(e, null))), (!o || m[0] & /*container*/ + }), Yt()), _ === (_ = a(c)) && u ? u.p(c, m) : (u.d(1), u = _(c), u && (u.c(), u.m(e, null))), (!s || m[0] & /*container*/ 64) && mt( e, "container", @@ -1488,161 +1532,177 @@ function Dn(n) { ); }, i(c) { - o || (ee(l.$$.fragment, c), ee(f), o = !0); + s || (ne(l.$$.fragment, c), ne(f), s = !0); }, o(c) { - oe(l.$$.fragment, c), oe(f), o = !1; + ce(l.$$.fragment, c), ce(f), s = !1; }, d(c) { - c && G(e), _ && _.d(), Ge(l), f && f.d(), u.d(); + c && J(e), r && r.d(), Ye(l), f && f.d(), u.d(); } }; } -function En(n) { +function Wn(n) { let e, t = n[0], l = 1; for (; l < n.length; ) { - const i = n[l], s = n[l + 1]; + const i = n[l], o = n[l + 1]; if (l += 2, (i === "optionalAccess" || i === "optionalCall") && t == null) return; - i === "access" || i === "optionalAccess" ? (e = t, t = s(t)) : (i === "call" || i === "optionalCall") && (t = s((...o) => t.call(e, ...o)), e = void 0); + i === "access" || i === "optionalAccess" ? (e = t, t = o(t)) : (i === "call" || i === "optionalCall") && (t = o((...s) => t.call(e, ...s)), e = void 0); } return t; } -function In(n, e, t) { +function Xn(n, e, t) { const l = typeof document < "u"; - let { value: i = [] } = e, { value_is_output: s = !1 } = e, { label: o } = e, { legend_label: _ } = e, { info: f = void 0 } = e, { show_label: a = !0 } = e, { show_legend: r = !1 } = e, { show_legend_label: u = !1 } = e, { container: c = !0 } = e, { color_map: m = {} } = e, { show_copy_button: p = !1 } = e, { disabled: T } = e, L, S = "", C = "", d, y = {}, M = {}, h = !1, P; - function J() { + let { value: i = [] } = e, { value_is_output: o = !1 } = e, { label: s } = e, { legend_label: r } = e, { info: f = void 0 } = e, { show_label: a = !0 } = e, { show_legend: _ = !1 } = e, { show_legend_label: u = !1 } = e, { container: c = !0 } = e, { color_map: m = {} } = e, { show_copy_button: p = !1 } = e, { disabled: T } = e, S, L = "", C = "", d, y = {}, M = {}, g = !1, R; + function Q() { if (!m || Object.keys(m).length === 0 ? y = {} : y = m, i.length > 0) { - for (let [b, H] of i) - if (H !== null && !(H in y)) { - let re = hn(Object.keys(y).length); - y[H] = re; + for (let [b, j] of i) + if (j !== null && !(j in y)) { + let P = pn(Object.keys(y).length); + y[j] = P; } } - t(12, M = yn(y, l, d)); + t(12, M = Sn(y, l, d)); } function z() { - i.length > 0 && s && (t(11, S = i.map(([b, H]) => b).join(" ")), t(9, C = i.map(([b, H]) => H !== null ? `${b}` : b).join(" ") + " ")); + i.length > 0 && o && (t(11, L = i.map(([b, j]) => b).join(" ")), t(9, C = i.map(([b, j]) => j !== null ? `${b}` : b).join(" ") + " ")); } - const D = Nn(); - Vn(() => { - L && L.offsetHeight + L.scrollTop > L.scrollHeight - 100; + const D = Zn(); + En(() => { + S && S.offsetHeight + S.scrollTop > S.scrollHeight - 100; }); - function R() { - D("change", C), s || D("input"); + function W() { + D("change", C), o || D("input"); } - Hn(() => { - J(), z(), t(17, s = !1); + Pn(() => { + Q(), z(), t(18, o = !1); }); - function fe() { - let b = [], H = "", re = null, Be = !1, Se = ""; - for (let Pe = 0; Pe < C.length; Pe++) { - let Te = C[Pe]; - Te === "<" ? (Be = !0, H && b.push([H, re]), H = "", re = null) : Te === ">" ? (Be = !1, Se.startsWith("mark") && (re = En([ - Se, + function se() { + let b = [], j = "", P = null, ee = !1, be = ""; + for (let fe = 0; fe < C.length; fe++) { + let re = C[fe]; + re === "<" ? (ee = !0, j && b.push([j, P]), j = "", P = null) : re === ">" ? (ee = !1, be.startsWith("mark") && (P = Wn([ + be, "access", - (ke) => ke.match, + (X) => X.match, "call", - (ke) => ke(/class="hl ([^"]+)"/), + (X) => X(/class="hl ([^"]+)"/), "optionalAccess", - (ke) => ke[1] - ]) || null), Se = "") : Be ? Se += Te : H += Te; + (X) => X[1] + ]) || null), be = "") : ee ? be += re : j += re; } - H && b.push([H, re]), t(16, i = b); + j && b.push([j, P]), t(17, i = b); } - async function E() { - "clipboard" in navigator && (await navigator.clipboard.writeText(S), K()); + async function O() { + "clipboard" in navigator && (await navigator.clipboard.writeText(L), x()); } - function K() { - t(13, h = !0), P && clearTimeout(P), P = setTimeout( + function x() { + t(13, g = !0), R && clearTimeout(R), R = setTimeout( () => { - t(13, h = !1); + t(13, g = !1); }, 1e3 ); } - function Z(b) { - de.call(this, n, b); + function E() { + const b = window.getSelection(), j = b.anchorOffset; + if (b.rangeCount > 0) { + var P = b.getRangeAt(0).commonAncestorContainer.parentElement; + if (P && P.tagName.toLowerCase() === "mark") { + const tl = P.textContent; + var ee = P.parentElement, be = document.createTextNode(tl); + ee.replaceChild(be, P), t(9, C = ee.innerHTML); + var fe = document.createRange(), re = window.getSelection(); + const ll = j + Tn(ee); + var X = Fn(ee, ll); + fe.setStart(X.node, X.offset), fe.setEnd(X.node, X.offset), re.removeAllRanges(), re.addRange(fe), se(); + } + } } - function _e(b) { - de.call(this, n, b); + function de(b) { + we.call(this, n, b); } - function g(b) { - de.call(this, n, b); + function h(b) { + we.call(this, n, b); } - function qe(b) { - de.call(this, n, b); + function Fe(b) { + we.call(this, n, b); } - function Le(b) { - de.call(this, n, b); + function Me(b) { + we.call(this, n, b); } - function ae(b) { - de.call(this, n, b); + function me(b) { + we.call(this, n, b); + } + function Pe(b) { + we.call(this, n, b); } function Ze(b) { ct[b ? "unshift" : "push"](() => { - L = b, t(10, L); + S = b, t(10, S); }); } - function Ae() { - S = this.textContent, C = this.innerHTML, t(11, S), t(9, C); + function w() { + L = this.textContent, C = this.innerHTML, t(11, L), t(9, C); } - function w(b) { + function $t(b) { ct[b ? "unshift" : "push"](() => { - L = b, t(10, L); + S = b, t(10, S); }); } - function $t() { - S = this.textContent, C = this.innerHTML, t(11, S), t(9, C); + function el() { + L = this.textContent, C = this.innerHTML, t(11, L), t(9, C); } return n.$$set = (b) => { - "value" in b && t(16, i = b.value), "value_is_output" in b && t(17, s = b.value_is_output), "label" in b && t(0, o = b.label), "legend_label" in b && t(1, _ = b.legend_label), "info" in b && t(2, f = b.info), "show_label" in b && t(3, a = b.show_label), "show_legend" in b && t(4, r = b.show_legend), "show_legend_label" in b && t(5, u = b.show_legend_label), "container" in b && t(6, c = b.container), "color_map" in b && t(18, m = b.color_map), "show_copy_button" in b && t(7, p = b.show_copy_button), "disabled" in b && t(8, T = b.disabled); + "value" in b && t(17, i = b.value), "value_is_output" in b && t(18, o = b.value_is_output), "label" in b && t(0, s = b.label), "legend_label" in b && t(1, r = b.legend_label), "info" in b && t(2, f = b.info), "show_label" in b && t(3, a = b.show_label), "show_legend" in b && t(4, _ = b.show_legend), "show_legend_label" in b && t(5, u = b.show_legend_label), "container" in b && t(6, c = b.container), "color_map" in b && t(19, m = b.color_map), "show_copy_button" in b && t(7, p = b.show_copy_button), "disabled" in b && t(8, T = b.disabled); }, n.$$.update = () => { n.$$.dirty[0] & /*marked_el_text*/ - 512 && R(); - }, z(), J(), [ - o, - _, + 512 && W(); + }, z(), Q(), [ + s, + r, f, a, - r, + _, u, c, p, T, C, - L, S, + L, M, - h, - fe, + g, + se, + O, E, i, - s, + o, m, - Z, - _e, - g, - qe, - Le, - ae, + de, + h, + Fe, + Me, + me, + Pe, Ze, - Ae, w, - $t + $t, + el ]; } -class On extends qn { +class Yn extends Mn { constructor(e) { - super(), Fn( + super(), Vn( this, e, - In, - Dn, - jn, + Xn, + Un, + zn, { - value: 16, - value_is_output: 17, + value: 17, + value_is_output: 18, label: 0, legend_label: 1, info: 2, @@ -1650,7 +1710,7 @@ class On extends qn { show_legend: 4, show_legend_label: 5, container: 6, - color_map: 18, + color_map: 19, show_copy_button: 7, disabled: 8 }, @@ -1659,7 +1719,7 @@ class On extends qn { ); } } -function me(n) { +function pe(n) { let e = ["", "k", "M", "G", "T", "P", "E", "Z"], t = 0; for (; n > 1e3 && t < e.length - 1; ) n /= 1e3, t++; @@ -1667,27 +1727,27 @@ function me(n) { return (Number.isInteger(n) ? n : n.toFixed(1)) + l; } const { - SvelteComponent: Rn, + SvelteComponent: Gn, append: I, attr: q, component_subscribe: kt, - detach: Un, - element: Xn, - init: Yn, - insert: Gn, + detach: Jn, + element: Kn, + init: Qn, + insert: xn, noop: vt, - safe_not_equal: Wn, - set_style: Fe, - svg_element: O, + safe_not_equal: $n, + set_style: Ne, + svg_element: U, toggle_class: yt -} = window.__gradio__svelte__internal, { onMount: Jn } = window.__gradio__svelte__internal; -function Kn(n) { - let e, t, l, i, s, o, _, f, a, r, u, c; +} = window.__gradio__svelte__internal, { onMount: ei } = window.__gradio__svelte__internal; +function ti(n) { + let e, t, l, i, o, s, r, f, a, _, u, c; return { c() { - e = Xn("div"), t = O("svg"), l = O("g"), i = O("path"), s = O("path"), o = O("path"), _ = O("path"), f = O("g"), a = O("path"), r = O("path"), u = O("path"), c = O("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(_, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), q(_, "fill", "#FF7C00"), q(_, "class", "svelte-43sxxs"), Fe(l, "transform", "translate(" + /*$top*/ + e = Kn("div"), t = U("svg"), l = U("g"), i = U("path"), o = U("path"), s = U("path"), r = U("path"), f = U("g"), a = U("path"), _ = U("path"), u = U("path"), c = U("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(o, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), q(o, "fill", "#FF7C00"), q(o, "class", "svelte-43sxxs"), q(s, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), q(s, "fill", "#FF7C00"), q(s, "fill-opacity", "0.4"), q(s, "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"), Ne(l, "transform", "translate(" + /*$top*/ n[1][0] + "px, " + /*$top*/ - n[1][1] + "px)"), q(a, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), q(a, "fill", "#FF7C00"), q(a, "fill-opacity", "0.4"), q(a, "class", "svelte-43sxxs"), q(r, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), q(r, "fill", "#FF7C00"), q(r, "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"), Fe(f, "transform", "translate(" + /*$bottom*/ + n[1][1] + "px)"), q(a, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), q(a, "fill", "#FF7C00"), q(a, "fill-opacity", "0.4"), q(a, "class", "svelte-43sxxs"), q(_, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), q(_, "fill", "#FF7C00"), q(_, "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"), Ne(f, "transform", "translate(" + /*$bottom*/ n[2][0] + "px, " + /*$bottom*/ n[2][1] + "px)"), q(t, "viewBox", "-1200 -1200 3000 3000"), q(t, "fill", "none"), q(t, "xmlns", "http://www.w3.org/2000/svg"), q(t, "class", "svelte-43sxxs"), q(e, "class", "svelte-43sxxs"), yt( e, @@ -1697,14 +1757,14 @@ function Kn(n) { ); }, m(m, p) { - Gn(m, e, p), I(e, t), I(t, l), I(l, i), I(l, s), I(l, o), I(l, _), I(t, f), I(f, a), I(f, r), I(f, u), I(f, c); + xn(m, e, p), I(e, t), I(t, l), I(l, i), I(l, o), I(l, s), I(l, r), I(t, f), I(f, a), I(f, _), I(f, u), I(f, c); }, p(m, [p]) { p & /*$top*/ - 2 && Fe(l, "transform", "translate(" + /*$top*/ + 2 && Ne(l, "transform", "translate(" + /*$top*/ m[1][0] + "px, " + /*$top*/ m[1][1] + "px)"), p & /*$bottom*/ - 4 && Fe(f, "transform", "translate(" + /*$bottom*/ + 4 && Ne(f, "transform", "translate(" + /*$bottom*/ m[2][0] + "px, " + /*$bottom*/ m[2][1] + "px)"), p & /*margin*/ 1 && yt( @@ -1717,84 +1777,84 @@ function Kn(n) { i: vt, o: vt, d(m) { - m && Un(e); + m && Jn(e); } }; } -function Qn(n, e, t) { - let l, i, { margin: s = !0 } = e; - const o = rt([0, 0]); - kt(n, o, (c) => t(1, l = c)); - const _ = rt([0, 0]); - kt(n, _, (c) => t(2, i = c)); +function li(n, e, t) { + let l, i, { margin: o = !0 } = e; + const s = _t([0, 0]); + kt(n, s, (c) => t(1, l = c)); + const r = _t([0, 0]); + kt(n, r, (c) => t(2, i = c)); let f; async function a() { - await Promise.all([o.set([125, 140]), _.set([-125, -140])]), await Promise.all([o.set([-125, 140]), _.set([125, -140])]), await Promise.all([o.set([-125, 0]), _.set([125, -0])]), await Promise.all([o.set([125, 0]), _.set([-125, 0])]); + await Promise.all([s.set([125, 140]), r.set([-125, -140])]), await Promise.all([s.set([-125, 140]), r.set([125, -140])]), await Promise.all([s.set([-125, 0]), r.set([125, -0])]), await Promise.all([s.set([125, 0]), r.set([-125, 0])]); } - async function r() { - await a(), f || r(); + async function _() { + await a(), f || _(); } async function u() { - await Promise.all([o.set([125, 0]), _.set([-125, 0])]), r(); + await Promise.all([s.set([125, 0]), r.set([-125, 0])]), _(); } - return Jn(() => (u(), () => f = !0)), n.$$set = (c) => { - "margin" in c && t(0, s = c.margin); - }, [s, l, i, o, _]; + return ei(() => (u(), () => f = !0)), n.$$set = (c) => { + "margin" in c && t(0, o = c.margin); + }, [o, l, i, s, r]; } -class xn extends Rn { +class ni extends Gn { constructor(e) { - super(), Yn(this, e, Qn, Kn, Wn, { margin: 0 }); + super(), Qn(this, e, li, ti, $n, { margin: 0 }); } } const { - SvelteComponent: $n, - append: ie, - attr: X, + SvelteComponent: ii, + append: _e, + attr: Y, binding_callbacks: Ct, check_outros: Kt, - create_component: ei, - create_slot: ti, - destroy_component: li, + create_component: oi, + create_slot: si, + destroy_component: fi, destroy_each: Qt, detach: k, - element: Q, - empty: pe, - ensure_array_like: ze, - get_all_dirty_from_scope: ni, - get_slot_changes: ii, + element: $, + empty: qe, + ensure_array_like: Ee, + get_all_dirty_from_scope: ri, + get_slot_changes: ai, group_outros: xt, - init: si, + init: _i, insert: v, - mount_component: oi, + mount_component: ui, noop: Ue, - safe_not_equal: fi, + safe_not_equal: ci, set_data: B, - set_style: te, - space: Y, + set_style: ie, + space: G, text: F, - toggle_class: A, - transition_in: ge, - transition_out: we, - update_slot_base: _i -} = window.__gradio__svelte__internal, { tick: ai } = window.__gradio__svelte__internal, { onDestroy: ri } = window.__gradio__svelte__internal, ui = (n) => ({}), qt = (n) => ({}); -function Lt(n, e, t) { + toggle_class: Z, + transition_in: ye, + transition_out: Ce, + update_slot_base: di +} = window.__gradio__svelte__internal, { tick: mi } = window.__gradio__svelte__internal, { onDestroy: bi } = window.__gradio__svelte__internal, gi = (n) => ({}), qt = (n) => ({}); +function St(n, e, t) { const l = n.slice(); return l[38] = e[t], l[40] = t, l; } -function St(n, e, t) { +function Lt(n, e, t) { const l = n.slice(); return l[38] = e[t], l; } -function ci(n) { +function hi(n) { let e, t = ( /*i18n*/ n[1]("common.error") + "" - ), l, i, s; - const o = ( + ), l, i, o; + const s = ( /*#slots*/ n[29].error - ), _ = ti( - o, + ), r = si( + s, n, /*$$scope*/ n[28], @@ -1802,28 +1862,28 @@ function ci(n) { ); return { c() { - e = Q("span"), l = F(t), i = Y(), _ && _.c(), X(e, "class", "error svelte-1txqlrd"); + e = $("span"), l = F(t), i = G(), r && r.c(), Y(e, "class", "error svelte-1txqlrd"); }, m(f, a) { - v(f, e, a), ie(e, l), v(f, i, a), _ && _.m(f, a), s = !0; + v(f, e, a), _e(e, l), v(f, i, a), r && r.m(f, a), o = !0; }, p(f, a) { - (!s || a[0] & /*i18n*/ + (!o || a[0] & /*i18n*/ 2) && t !== (t = /*i18n*/ - f[1]("common.error") + "") && B(l, t), _ && _.p && (!s || a[0] & /*$$scope*/ - 268435456) && _i( - _, - o, + f[1]("common.error") + "") && B(l, t), r && r.p && (!o || a[0] & /*$$scope*/ + 268435456) && di( + r, + s, f, /*$$scope*/ f[28], - s ? ii( - o, + o ? ai( + s, /*$$scope*/ f[28], a, - ui - ) : ni( + gi + ) : ri( /*$$scope*/ f[28] ), @@ -1831,18 +1891,18 @@ function ci(n) { ); }, i(f) { - s || (ge(_, f), s = !0); + o || (ye(r, f), o = !0); }, o(f) { - we(_, f), s = !1; + Ce(r, f), o = !1; }, d(f) { - f && (k(e), k(i)), _ && _.d(f); + f && (k(e), k(i)), r && r.d(f); } }; } -function di(n) { - let e, t, l, i, s, o, _, f, a, r = ( +function wi(n) { + let e, t, l, i, o, s, r, f, a, _ = ( /*variant*/ n[8] === "default" && /*show_eta_bar*/ n[18] && /*show_progress*/ @@ -1853,26 +1913,26 @@ function di(n) { /*progress*/ d[7] ) - return hi; + return vi; if ( /*queue_position*/ d[2] !== null && /*queue_size*/ d[3] !== void 0 && /*queue_position*/ d[2] >= 0 ) - return bi; + return ki; if ( /*queue_position*/ d[2] === 0 ) - return mi; + return pi; } let c = u(n), m = c && c(n), p = ( /*timer*/ - n[5] && jt(n) + n[5] && Nt(n) ); - const T = [ki, pi], L = []; - function S(d, y) { + const T = [Si, qi], S = []; + function L(d, y) { return ( /*last_progress_level*/ d[15] != null ? 0 : ( @@ -1881,17 +1941,17 @@ function di(n) { ) ); } - ~(s = S(n)) && (o = L[s] = T[s](n)); + ~(o = L(n)) && (s = S[o] = T[o](n)); let C = !/*timer*/ - n[5] && Bt(n); + n[5] && Pt(n); return { c() { - r && r.c(), e = Y(), t = Q("div"), m && m.c(), l = Y(), p && p.c(), i = Y(), o && o.c(), _ = Y(), C && C.c(), f = pe(), X(t, "class", "progress-text svelte-1txqlrd"), A( + _ && _.c(), e = G(), t = $("div"), m && m.c(), l = G(), p && p.c(), i = G(), s && s.c(), r = G(), C && C.c(), f = qe(), Y(t, "class", "progress-text svelte-1txqlrd"), Z( t, "meta-text-center", /*variant*/ n[8] === "center" - ), A( + ), Z( t, "meta-text", /*variant*/ @@ -1899,40 +1959,40 @@ function di(n) { ); }, m(d, y) { - r && r.m(d, y), v(d, e, y), v(d, t, y), m && m.m(t, null), ie(t, l), p && p.m(t, null), v(d, i, y), ~s && L[s].m(d, y), v(d, _, y), C && C.m(d, y), v(d, f, y), a = !0; + _ && _.m(d, y), v(d, e, y), v(d, t, y), m && m.m(t, null), _e(t, l), p && p.m(t, null), v(d, i, y), ~o && S[o].m(d, y), v(d, r, y), C && C.m(d, y), v(d, f, y), a = !0; }, p(d, y) { /*variant*/ d[8] === "default" && /*show_eta_bar*/ d[18] && /*show_progress*/ - d[6] === "full" ? r ? r.p(d, y) : (r = Tt(d), r.c(), r.m(e.parentNode, e)) : r && (r.d(1), r = null), c === (c = u(d)) && m ? m.p(d, y) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(t, l))), /*timer*/ - d[5] ? p ? p.p(d, y) : (p = jt(d), p.c(), p.m(t, null)) : p && (p.d(1), p = null), (!a || y[0] & /*variant*/ - 256) && A( + d[6] === "full" ? _ ? _.p(d, y) : (_ = Tt(d), _.c(), _.m(e.parentNode, e)) : _ && (_.d(1), _ = null), c === (c = u(d)) && m ? m.p(d, y) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(t, l))), /*timer*/ + d[5] ? p ? p.p(d, y) : (p = Nt(d), p.c(), p.m(t, null)) : p && (p.d(1), p = null), (!a || y[0] & /*variant*/ + 256) && Z( t, "meta-text-center", /*variant*/ d[8] === "center" ), (!a || y[0] & /*variant*/ - 256) && A( + 256) && Z( t, "meta-text", /*variant*/ d[8] === "default" ); - let M = s; - s = S(d), s === M ? ~s && L[s].p(d, y) : (o && (xt(), we(L[M], 1, 1, () => { - L[M] = null; - }), Kt()), ~s ? (o = L[s], o ? o.p(d, y) : (o = L[s] = T[s](d), o.c()), ge(o, 1), o.m(_.parentNode, _)) : o = null), /*timer*/ - d[5] ? C && (C.d(1), C = null) : C ? C.p(d, y) : (C = Bt(d), C.c(), C.m(f.parentNode, f)); + let M = o; + o = L(d), o === M ? ~o && S[o].p(d, y) : (s && (xt(), Ce(S[M], 1, 1, () => { + S[M] = null; + }), Kt()), ~o ? (s = S[o], s ? s.p(d, y) : (s = S[o] = T[o](d), s.c()), ye(s, 1), s.m(r.parentNode, r)) : s = null), /*timer*/ + d[5] ? C && (C.d(1), C = null) : C ? C.p(d, y) : (C = Pt(d), C.c(), C.m(f.parentNode, f)); }, i(d) { - a || (ge(o), a = !0); + a || (ye(s), a = !0); }, o(d) { - we(o), a = !1; + Ce(s), a = !1; }, d(d) { - d && (k(e), k(t), k(i), k(_), k(f)), r && r.d(d), m && m.d(), p && p.d(), ~s && L[s].d(d), C && C.d(d); + d && (k(e), k(t), k(i), k(r), k(f)), _ && _.d(d), m && m.d(), p && p.d(), ~o && S[o].d(d), C && C.d(d); } }; } @@ -1941,7 +2001,7 @@ function Tt(n) { (n[17] || 0) * 100 - 100}%)`; return { c() { - e = Q("div"), X(e, "class", "eta-bar svelte-1txqlrd"), te(e, "transform", t); + e = $("div"), Y(e, "class", "eta-bar svelte-1txqlrd"), ie(e, "transform", t); }, m(l, i) { v(l, e, i); @@ -1949,14 +2009,14 @@ function Tt(n) { p(l, i) { i[0] & /*eta_level*/ 131072 && t !== (t = `translateX(${/*eta_level*/ - (l[17] || 0) * 100 - 100}%)`) && te(e, "transform", t); + (l[17] || 0) * 100 - 100}%)`) && ie(e, "transform", t); }, d(l) { l && k(e); } }; } -function mi(n) { +function pi(n) { let e; return { c() { @@ -1971,68 +2031,68 @@ function mi(n) { } }; } -function bi(n) { +function ki(n) { let e, t = ( /*queue_position*/ n[2] + 1 + "" - ), l, i, s, o; + ), l, i, o, s; return { c() { - e = F("queue: "), l = F(t), i = F("/"), s = F( + e = F("queue: "), l = F(t), i = F("/"), o = F( /*queue_size*/ n[3] - ), o = F(" |"); + ), s = F(" |"); }, - m(_, f) { - v(_, e, f), v(_, l, f), v(_, i, f), v(_, s, f), v(_, o, f); + m(r, f) { + v(r, e, f), v(r, l, f), v(r, i, f), v(r, o, f), v(r, s, f); }, - p(_, f) { + p(r, f) { f[0] & /*queue_position*/ 4 && t !== (t = /*queue_position*/ - _[2] + 1 + "") && B(l, t), f[0] & /*queue_size*/ + r[2] + 1 + "") && B(l, t), f[0] & /*queue_size*/ 8 && B( - s, + o, /*queue_size*/ - _[3] + r[3] ); }, - d(_) { - _ && (k(e), k(l), k(i), k(s), k(o)); + d(r) { + r && (k(e), k(l), k(i), k(o), k(s)); } }; } -function hi(n) { - let e, t = ze( +function vi(n) { + let e, t = Ee( /*progress*/ n[7] ), l = []; for (let i = 0; i < t.length; i += 1) - l[i] = Mt(St(n, t, i)); + l[i] = Mt(Lt(n, t, i)); return { c() { for (let i = 0; i < l.length; i += 1) l[i].c(); - e = pe(); + e = qe(); }, - m(i, s) { - for (let o = 0; o < l.length; o += 1) - l[o] && l[o].m(i, s); - v(i, e, s); + m(i, o) { + for (let s = 0; s < l.length; s += 1) + l[s] && l[s].m(i, o); + v(i, e, o); }, - p(i, s) { - if (s[0] & /*progress*/ + p(i, o) { + if (o[0] & /*progress*/ 128) { - t = ze( + t = Ee( /*progress*/ i[7] ); - let o; - for (o = 0; o < t.length; o += 1) { - const _ = St(i, t, o); - l[o] ? l[o].p(_, s) : (l[o] = Mt(_), l[o].c(), l[o].m(e.parentNode, e)); + let s; + for (s = 0; s < t.length; s += 1) { + const r = Lt(i, t, s); + l[s] ? l[s].p(r, o) : (l[s] = Mt(r), l[s].c(), l[s].m(e.parentNode, e)); } - for (; o < l.length; o += 1) - l[o].d(1); + for (; s < l.length; s += 1) + l[s].d(1); l.length = t.length; } }, @@ -2045,33 +2105,33 @@ function Ft(n) { let e, t = ( /*p*/ n[38].unit + "" - ), l, i, s = " ", o; - function _(r, u) { + ), l, i, o = " ", s; + function r(_, u) { return ( /*p*/ - r[38].length != null ? wi : gi + _[38].length != null ? Ci : yi ); } - let f = _(n), a = f(n); + let f = r(n), a = f(n); return { c() { - a.c(), e = Y(), l = F(t), i = F(" | "), o = F(s); + a.c(), e = G(), l = F(t), i = F(" | "), s = F(o); }, - m(r, u) { - a.m(r, u), v(r, e, u), v(r, l, u), v(r, i, u), v(r, o, u); + m(_, u) { + a.m(_, u), v(_, e, u), v(_, l, u), v(_, i, u), v(_, s, u); }, - p(r, u) { - f === (f = _(r)) && a ? a.p(r, u) : (a.d(1), a = f(r), a && (a.c(), a.m(e.parentNode, e))), u[0] & /*progress*/ + p(_, u) { + f === (f = r(_)) && a ? a.p(_, u) : (a.d(1), a = f(_), a && (a.c(), a.m(e.parentNode, e))), u[0] & /*progress*/ 128 && t !== (t = /*p*/ - r[38].unit + "") && B(l, t); + _[38].unit + "") && B(l, t); }, - d(r) { - r && (k(e), k(l), k(i), k(o)), a.d(r); + d(_) { + _ && (k(e), k(l), k(i), k(s)), a.d(_); } }; } -function gi(n) { - let e = me( +function yi(n) { + let e = pe( /*p*/ n[38].index || 0 ) + "", t; @@ -2084,7 +2144,7 @@ function gi(n) { }, p(l, i) { i[0] & /*progress*/ - 128 && e !== (e = me( + 128 && e !== (e = pe( /*p*/ l[38].index || 0 ) + "") && B(t, e); @@ -2094,34 +2154,34 @@ function gi(n) { } }; } -function wi(n) { - let e = me( +function Ci(n) { + let e = pe( /*p*/ n[38].index || 0 - ) + "", t, l, i = me( + ) + "", t, l, i = pe( /*p*/ n[38].length - ) + "", s; + ) + "", o; return { c() { - t = F(e), l = F("/"), s = F(i); + t = F(e), l = F("/"), o = F(i); }, - m(o, _) { - v(o, t, _), v(o, l, _), v(o, s, _); + m(s, r) { + v(s, t, r), v(s, l, r), v(s, o, r); }, - p(o, _) { - _[0] & /*progress*/ - 128 && e !== (e = me( + p(s, r) { + r[0] & /*progress*/ + 128 && e !== (e = pe( /*p*/ - o[38].index || 0 - ) + "") && B(t, e), _[0] & /*progress*/ - 128 && i !== (i = me( + s[38].index || 0 + ) + "") && B(t, e), r[0] & /*progress*/ + 128 && i !== (i = pe( /*p*/ - o[38].length - ) + "") && B(s, i); + s[38].length + ) + "") && B(o, i); }, - d(o) { - o && (k(t), k(l), k(s)); + d(s) { + s && (k(t), k(l), k(o)); } }; } @@ -2132,7 +2192,7 @@ function Mt(n) { ); return { c() { - t && t.c(), e = pe(); + t && t.c(), e = qe(); }, m(l, i) { t && t.m(l, i), v(l, e, i); @@ -2146,7 +2206,7 @@ function Mt(n) { } }; } -function jt(n) { +function Nt(n) { let e, t = ( /*eta*/ n[0] ? `/${/*formatted_eta*/ @@ -2159,114 +2219,114 @@ function jt(n) { n[20] ), l = F(t), i = F("s"); }, - m(s, o) { - v(s, e, o), v(s, l, o), v(s, i, o); + m(o, s) { + v(o, e, s), v(o, l, s), v(o, i, s); }, - p(s, o) { - o[0] & /*formatted_timer*/ + p(o, s) { + s[0] & /*formatted_timer*/ 1048576 && B( e, /*formatted_timer*/ - s[20] - ), o[0] & /*eta, formatted_eta*/ + o[20] + ), s[0] & /*eta, formatted_eta*/ 524289 && t !== (t = /*eta*/ - s[0] ? `/${/*formatted_eta*/ - s[19]}` : "") && B(l, t); + o[0] ? `/${/*formatted_eta*/ + o[19]}` : "") && B(l, t); }, - d(s) { - s && (k(e), k(l), k(i)); + d(o) { + o && (k(e), k(l), k(i)); } }; } -function pi(n) { +function qi(n) { let e, t; - return e = new xn({ + return e = new ni({ props: { margin: ( /*variant*/ n[8] === "default" ) } }), { c() { - ei(e.$$.fragment); + oi(e.$$.fragment); }, m(l, i) { - oi(e, l, i), t = !0; + ui(e, l, i), t = !0; }, p(l, i) { - const s = {}; + const o = {}; i[0] & /*variant*/ - 256 && (s.margin = /*variant*/ - l[8] === "default"), e.$set(s); + 256 && (o.margin = /*variant*/ + l[8] === "default"), e.$set(o); }, i(l) { - t || (ge(e.$$.fragment, l), t = !0); + t || (ye(e.$$.fragment, l), t = !0); }, o(l) { - we(e.$$.fragment, l), t = !1; + Ce(e.$$.fragment, l), t = !1; }, d(l) { - li(e, l); + fi(e, l); } }; } -function ki(n) { - let e, t, l, i, s, o = `${/*last_progress_level*/ - n[15] * 100}%`, _ = ( +function Si(n) { + let e, t, l, i, o, s = `${/*last_progress_level*/ + n[15] * 100}%`, r = ( /*progress*/ - n[7] != null && Vt(n) + n[7] != null && Ht(n) ); return { c() { - e = Q("div"), t = Q("div"), _ && _.c(), l = Y(), i = Q("div"), s = Q("div"), X(t, "class", "progress-level-inner svelte-1txqlrd"), X(s, "class", "progress-bar svelte-1txqlrd"), te(s, "width", o), X(i, "class", "progress-bar-wrap svelte-1txqlrd"), X(e, "class", "progress-level svelte-1txqlrd"); + e = $("div"), t = $("div"), r && r.c(), l = G(), i = $("div"), o = $("div"), Y(t, "class", "progress-level-inner svelte-1txqlrd"), Y(o, "class", "progress-bar svelte-1txqlrd"), ie(o, "width", s), Y(i, "class", "progress-bar-wrap svelte-1txqlrd"), Y(e, "class", "progress-level svelte-1txqlrd"); }, m(f, a) { - v(f, e, a), ie(e, t), _ && _.m(t, null), ie(e, l), ie(e, i), ie(i, s), n[30](s); + v(f, e, a), _e(e, t), r && r.m(t, null), _e(e, l), _e(e, i), _e(i, o), n[30](o); }, p(f, a) { /*progress*/ - f[7] != null ? _ ? _.p(f, a) : (_ = Vt(f), _.c(), _.m(t, null)) : _ && (_.d(1), _ = null), a[0] & /*last_progress_level*/ - 32768 && o !== (o = `${/*last_progress_level*/ - f[15] * 100}%`) && te(s, "width", o); + f[7] != null ? r ? r.p(f, a) : (r = Ht(f), r.c(), r.m(t, null)) : r && (r.d(1), r = null), a[0] & /*last_progress_level*/ + 32768 && s !== (s = `${/*last_progress_level*/ + f[15] * 100}%`) && ie(o, "width", s); }, i: Ue, o: Ue, d(f) { - f && k(e), _ && _.d(), n[30](null); + f && k(e), r && r.d(), n[30](null); } }; } -function Vt(n) { - let e, t = ze( +function Ht(n) { + let e, t = Ee( /*progress*/ n[7] ), l = []; for (let i = 0; i < t.length; i += 1) - l[i] = At(Lt(n, t, i)); + l[i] = Et(St(n, t, i)); return { c() { for (let i = 0; i < l.length; i += 1) l[i].c(); - e = pe(); + e = qe(); }, - m(i, s) { - for (let o = 0; o < l.length; o += 1) - l[o] && l[o].m(i, s); - v(i, e, s); + m(i, o) { + for (let s = 0; s < l.length; s += 1) + l[s] && l[s].m(i, o); + v(i, e, o); }, - p(i, s) { - if (s[0] & /*progress_level, progress*/ + p(i, o) { + if (o[0] & /*progress_level, progress*/ 16512) { - t = ze( + t = Ee( /*progress*/ i[7] ); - let o; - for (o = 0; o < t.length; o += 1) { - const _ = Lt(i, t, o); - l[o] ? l[o].p(_, s) : (l[o] = At(_), l[o].c(), l[o].m(e.parentNode, e)); + let s; + for (s = 0; s < t.length; s += 1) { + const r = St(i, t, s); + l[s] ? l[s].p(r, o) : (l[s] = Et(r), l[s].c(), l[s].m(e.parentNode, e)); } - for (; o < l.length; o += 1) - l[o].d(1); + for (; s < l.length; s += 1) + l[s].d(1); l.length = t.length; } }, @@ -2275,49 +2335,49 @@ function Vt(n) { } }; } -function Ht(n) { - let e, t, l, i, s = ( +function jt(n) { + let e, t, l, i, o = ( /*i*/ - n[40] !== 0 && vi() - ), o = ( + n[40] !== 0 && Li() + ), s = ( /*p*/ - n[38].desc != null && Nt(n) - ), _ = ( + n[38].desc != null && Vt(n) + ), r = ( /*p*/ n[38].desc != null && /*progress_level*/ n[14] && /*progress_level*/ n[14][ /*i*/ n[40] - ] != null && zt() + ] != null && At() ), f = ( /*progress_level*/ - n[14] != null && Zt(n) + n[14] != null && zt(n) ); return { c() { - s && s.c(), e = Y(), o && o.c(), t = Y(), _ && _.c(), l = Y(), f && f.c(), i = pe(); + o && o.c(), e = G(), s && s.c(), t = G(), r && r.c(), l = G(), f && f.c(), i = qe(); }, - m(a, r) { - s && s.m(a, r), v(a, e, r), o && o.m(a, r), v(a, t, r), _ && _.m(a, r), v(a, l, r), f && f.m(a, r), v(a, i, r); + m(a, _) { + o && o.m(a, _), v(a, e, _), s && s.m(a, _), v(a, t, _), r && r.m(a, _), v(a, l, _), f && f.m(a, _), v(a, i, _); }, - p(a, r) { + p(a, _) { /*p*/ - a[38].desc != null ? o ? o.p(a, r) : (o = Nt(a), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null), /*p*/ + a[38].desc != null ? s ? s.p(a, _) : (s = Vt(a), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), /*p*/ a[38].desc != null && /*progress_level*/ a[14] && /*progress_level*/ a[14][ /*i*/ a[40] - ] != null ? _ || (_ = zt(), _.c(), _.m(l.parentNode, l)) : _ && (_.d(1), _ = null), /*progress_level*/ - a[14] != null ? f ? f.p(a, r) : (f = Zt(a), f.c(), f.m(i.parentNode, i)) : f && (f.d(1), f = null); + ] != null ? r || (r = At(), r.c(), r.m(l.parentNode, l)) : r && (r.d(1), r = null), /*progress_level*/ + a[14] != null ? f ? f.p(a, _) : (f = zt(a), f.c(), f.m(i.parentNode, i)) : f && (f.d(1), f = null); }, d(a) { - a && (k(e), k(t), k(l), k(i)), s && s.d(a), o && o.d(a), _ && _.d(a), f && f.d(a); + a && (k(e), k(t), k(l), k(i)), o && o.d(a), s && s.d(a), r && r.d(a), f && f.d(a); } }; } -function vi(n) { +function Li(n) { let e; return { c() { @@ -2331,7 +2391,7 @@ function vi(n) { } }; } -function Nt(n) { +function Vt(n) { let e = ( /*p*/ n[38].desc + "" @@ -2353,7 +2413,7 @@ function Nt(n) { } }; } -function zt(n) { +function At(n) { let e; return { c() { @@ -2367,7 +2427,7 @@ function zt(n) { } }; } -function Zt(n) { +function zt(n) { let e = (100 * /*progress_level*/ (n[14][ /*i*/ @@ -2377,11 +2437,11 @@ function Zt(n) { c() { t = F(e), l = F("%"); }, - m(i, s) { - v(i, t, s), v(i, l, s); + m(i, o) { + v(i, t, o), v(i, l, o); }, - p(i, s) { - s[0] & /*progress_level*/ + p(i, o) { + o[0] & /*progress_level*/ 16384 && e !== (e = (100 * /*progress_level*/ (i[14][ /*i*/ @@ -2393,7 +2453,7 @@ function Zt(n) { } }; } -function At(n) { +function Et(n) { let e, t = ( /*p*/ (n[38].desc != null || /*progress_level*/ @@ -2401,11 +2461,11 @@ function At(n) { n[14][ /*i*/ n[40] - ] != null) && Ht(n) + ] != null) && jt(n) ); return { c() { - t && t.c(), e = pe(); + t && t.c(), e = qe(); }, m(l, i) { t && t.m(l, i), v(l, e, i); @@ -2417,24 +2477,24 @@ function At(n) { l[14][ /*i*/ l[40] - ] != null ? t ? t.p(l, i) : (t = Ht(l), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null); + ] != null ? t ? t.p(l, i) : (t = jt(l), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null); }, d(l) { l && k(e), t && t.d(l); } }; } -function Bt(n) { +function Pt(n) { let e, t; return { c() { - e = Q("p"), t = F( + e = $("p"), t = F( /*loading_text*/ n[9] - ), X(e, "class", "loading svelte-1txqlrd"); + ), Y(e, "class", "loading svelte-1txqlrd"); }, m(l, i) { - v(l, e, i), ie(e, t); + v(l, e, i), _e(e, t); }, p(l, i) { i[0] & /*loading_text*/ @@ -2449,10 +2509,10 @@ function Bt(n) { } }; } -function yi(n) { - let e, t, l, i, s; - const o = [di, ci], _ = []; - function f(a, r) { +function Ti(n) { + let e, t, l, i, o; + const s = [wi, hi], r = []; + function f(a, _) { return ( /*status*/ a[4] === "pending" ? 0 : ( @@ -2461,14 +2521,14 @@ function yi(n) { ) ); } - return ~(t = f(n)) && (l = _[t] = o[t](n)), { + return ~(t = f(n)) && (l = r[t] = s[t](n)), { c() { - e = Q("div"), l && l.c(), X(e, "class", i = "wrap " + /*variant*/ + e = $("div"), l && l.c(), Y(e, "class", i = "wrap " + /*variant*/ n[8] + " " + /*show_progress*/ - n[6] + " svelte-1txqlrd"), A(e, "hide", !/*status*/ + n[6] + " svelte-1txqlrd"), Z(e, "hide", !/*status*/ n[4] || /*status*/ n[4] === "complete" || /*show_progress*/ - n[6] === "hidden"), A( + n[6] === "hidden"), Z( e, "translucent", /*variant*/ @@ -2477,44 +2537,44 @@ function yi(n) { n[4] === "error") || /*translucent*/ n[11] || /*show_progress*/ n[6] === "minimal" - ), A( + ), Z( e, "generating", /*status*/ n[4] === "generating" - ), A( + ), Z( e, "border", /*border*/ n[12] - ), te( + ), ie( e, "position", /*absolute*/ n[10] ? "absolute" : "static" - ), te( + ), ie( e, "padding", /*absolute*/ n[10] ? "0" : "var(--size-8) 0" ); }, - m(a, r) { - v(a, e, r), ~t && _[t].m(e, null), n[31](e), s = !0; + m(a, _) { + v(a, e, _), ~t && r[t].m(e, null), n[31](e), o = !0; }, - p(a, r) { + p(a, _) { let u = t; - t = f(a), t === u ? ~t && _[t].p(a, r) : (l && (xt(), we(_[u], 1, 1, () => { - _[u] = null; - }), Kt()), ~t ? (l = _[t], l ? l.p(a, r) : (l = _[t] = o[t](a), l.c()), ge(l, 1), l.m(e, null)) : l = null), (!s || r[0] & /*variant, show_progress*/ + t = f(a), t === u ? ~t && r[t].p(a, _) : (l && (xt(), Ce(r[u], 1, 1, () => { + r[u] = null; + }), Kt()), ~t ? (l = r[t], l ? l.p(a, _) : (l = r[t] = s[t](a), l.c()), ye(l, 1), l.m(e, null)) : l = null), (!o || _[0] & /*variant, show_progress*/ 320 && i !== (i = "wrap " + /*variant*/ a[8] + " " + /*show_progress*/ - a[6] + " svelte-1txqlrd")) && X(e, "class", i), (!s || r[0] & /*variant, show_progress, status, show_progress*/ - 336) && A(e, "hide", !/*status*/ + a[6] + " svelte-1txqlrd")) && Y(e, "class", i), (!o || _[0] & /*variant, show_progress, status, show_progress*/ + 336) && Z(e, "hide", !/*status*/ a[4] || /*status*/ a[4] === "complete" || /*show_progress*/ - a[6] === "hidden"), (!s || r[0] & /*variant, show_progress, variant, status, translucent, show_progress*/ - 2384) && A( + a[6] === "hidden"), (!o || _[0] & /*variant, show_progress, variant, status, translucent, show_progress*/ + 2384) && Z( e, "translucent", /*variant*/ @@ -2523,26 +2583,26 @@ function yi(n) { a[4] === "error") || /*translucent*/ a[11] || /*show_progress*/ a[6] === "minimal" - ), (!s || r[0] & /*variant, show_progress, status*/ - 336) && A( + ), (!o || _[0] & /*variant, show_progress, status*/ + 336) && Z( e, "generating", /*status*/ a[4] === "generating" - ), (!s || r[0] & /*variant, show_progress, border*/ - 4416) && A( + ), (!o || _[0] & /*variant, show_progress, border*/ + 4416) && Z( e, "border", /*border*/ a[12] - ), r[0] & /*absolute*/ - 1024 && te( + ), _[0] & /*absolute*/ + 1024 && ie( e, "position", /*absolute*/ a[10] ? "absolute" : "static" - ), r[0] & /*absolute*/ - 1024 && te( + ), _[0] & /*absolute*/ + 1024 && ie( e, "padding", /*absolute*/ @@ -2550,120 +2610,120 @@ function yi(n) { ); }, i(a) { - s || (ge(l), s = !0); + o || (ye(l), o = !0); }, o(a) { - we(l), s = !1; + Ce(l), o = !1; }, d(a) { - a && k(e), ~t && _[t].d(), n[31](null); + a && k(e), ~t && r[t].d(), n[31](null); } }; } -let Me = [], Oe = !1; -async function Ci(n, e = !0) { +let He = [], Oe = !1; +async function Fi(n, e = !0) { if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && e !== !0)) { - if (Me.push(n), !Oe) + if (He.push(n), !Oe) Oe = !0; else return; - await ai(), requestAnimationFrame(() => { + await mi(), requestAnimationFrame(() => { let t = [0, 0]; - for (let l = 0; l < Me.length; l++) { - const s = Me[l].getBoundingClientRect(); - (l === 0 || s.top + window.scrollY <= t[0]) && (t[0] = s.top + window.scrollY, t[1] = l); + for (let l = 0; l < He.length; l++) { + const o = He[l].getBoundingClientRect(); + (l === 0 || o.top + window.scrollY <= t[0]) && (t[0] = o.top + window.scrollY, t[1] = l); } - window.scrollTo({ top: t[0] - 20, behavior: "smooth" }), Oe = !1, Me = []; + window.scrollTo({ top: t[0] - 20, behavior: "smooth" }), Oe = !1, He = []; }); } } -function qi(n, e, t) { - let l, { $$slots: i = {}, $$scope: s } = e, { i18n: o } = e, { eta: _ = null } = e, { queue_position: f } = e, { queue_size: a } = e, { status: r } = e, { scroll_to_output: u = !1 } = e, { timer: c = !0 } = e, { show_progress: m = "full" } = e, { message: p = null } = e, { progress: T = null } = e, { variant: L = "default" } = e, { loading_text: S = "Loading..." } = e, { absolute: C = !0 } = e, { translucent: d = !1 } = e, { border: y = !1 } = e, { autoscroll: M } = e, h, P = !1, J = 0, z = 0, D = null, R = null, fe = 0, E = null, K, Z = null, _e = !0; - const g = () => { - t(0, _ = t(26, D = t(19, ae = null))), t(24, J = performance.now()), t(25, z = 0), P = !0, qe(); +function Mi(n, e, t) { + let l, { $$slots: i = {}, $$scope: o } = e, { i18n: s } = e, { eta: r = null } = e, { queue_position: f } = e, { queue_size: a } = e, { status: _ } = e, { scroll_to_output: u = !1 } = e, { timer: c = !0 } = e, { show_progress: m = "full" } = e, { message: p = null } = e, { progress: T = null } = e, { variant: S = "default" } = e, { loading_text: L = "Loading..." } = e, { absolute: C = !0 } = e, { translucent: d = !1 } = e, { border: y = !1 } = e, { autoscroll: M } = e, g, R = !1, Q = 0, z = 0, D = null, W = null, se = 0, O = null, x, E = null, de = !0; + const h = () => { + t(0, r = t(26, D = t(19, me = null))), t(24, Q = performance.now()), t(25, z = 0), R = !0, Fe(); }; - function qe() { + function Fe() { requestAnimationFrame(() => { - t(25, z = (performance.now() - J) / 1e3), P && qe(); + t(25, z = (performance.now() - Q) / 1e3), R && Fe(); }); } - function Le() { - t(25, z = 0), t(0, _ = t(26, D = t(19, ae = null))), P && (P = !1); + function Me() { + t(25, z = 0), t(0, r = t(26, D = t(19, me = null))), R && (R = !1); } - ri(() => { - P && Le(); + bi(() => { + R && Me(); }); - let ae = null; - function Ze(w) { + let me = null; + function Pe(w) { Ct[w ? "unshift" : "push"](() => { - Z = w, t(16, Z), t(7, T), t(14, E), t(15, K); + E = w, t(16, E), t(7, T), t(14, O), t(15, x); }); } - function Ae(w) { + function Ze(w) { Ct[w ? "unshift" : "push"](() => { - h = w, t(13, h); + g = w, t(13, g); }); } return n.$$set = (w) => { - "i18n" in w && t(1, o = w.i18n), "eta" in w && t(0, _ = w.eta), "queue_position" in w && t(2, f = w.queue_position), "queue_size" in w && t(3, a = w.queue_size), "status" in w && t(4, r = 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, p = w.message), "progress" in w && t(7, T = w.progress), "variant" in w && t(8, L = w.variant), "loading_text" in w && t(9, S = w.loading_text), "absolute" in w && t(10, C = w.absolute), "translucent" in w && t(11, d = w.translucent), "border" in w && t(12, y = w.border), "autoscroll" in w && t(23, M = w.autoscroll), "$$scope" in w && t(28, s = w.$$scope); + "i18n" in w && t(1, s = w.i18n), "eta" in w && t(0, r = w.eta), "queue_position" in w && t(2, f = w.queue_position), "queue_size" in w && t(3, a = w.queue_size), "status" in w && t(4, _ = 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, p = w.message), "progress" in w && t(7, T = w.progress), "variant" in w && t(8, S = 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, y = w.border), "autoscroll" in w && t(23, M = w.autoscroll), "$$scope" in w && t(28, o = w.$$scope); }, n.$$.update = () => { n.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/ - 218103809 && (_ === null && t(0, _ = D), _ != null && D !== _ && (t(27, R = (performance.now() - J) / 1e3 + _), t(19, ae = R.toFixed(1)), t(26, D = _))), n.$$.dirty[0] & /*eta_from_start, timer_diff*/ - 167772160 && t(17, fe = R === null || R <= 0 || !z ? null : Math.min(z / R, 1)), n.$$.dirty[0] & /*progress*/ - 128 && T != null && t(18, _e = !1), n.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/ - 114816 && (T != null ? t(14, E = T.map((w) => { + 218103809 && (r === null && t(0, r = D), r != null && D !== r && (t(27, W = (performance.now() - Q) / 1e3 + r), t(19, me = W.toFixed(1)), t(26, D = r))), n.$$.dirty[0] & /*eta_from_start, timer_diff*/ + 167772160 && t(17, se = W === null || W <= 0 || !z ? null : Math.min(z / W, 1)), n.$$.dirty[0] & /*progress*/ + 128 && T != null && t(18, de = !1), n.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/ + 114816 && (T != null ? t(14, O = T.map((w) => { if (w.index != null && w.length != null) return w.index / w.length; if (w.progress != null) return w.progress; - })) : t(14, E = null), E ? (t(15, K = E[E.length - 1]), Z && (K === 0 ? t(16, Z.style.transition = "0", Z) : t(16, Z.style.transition = "150ms", Z))) : t(15, K = void 0)), n.$$.dirty[0] & /*status*/ - 16 && (r === "pending" ? g() : Le()), n.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/ - 10493968 && h && u && (r === "pending" || r === "complete") && Ci(h, M), n.$$.dirty[0] & /*status, message*/ + })) : t(14, O = null), O ? (t(15, x = O[O.length - 1]), E && (x === 0 ? t(16, E.style.transition = "0", E) : t(16, E.style.transition = "150ms", E))) : t(15, x = void 0)), n.$$.dirty[0] & /*status*/ + 16 && (_ === "pending" ? h() : Me()), n.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/ + 10493968 && g && u && (_ === "pending" || _ === "complete") && Fi(g, M), n.$$.dirty[0] & /*status, message*/ 4194320, n.$$.dirty[0] & /*timer_diff*/ 33554432 && t(20, l = z.toFixed(1)); }, [ - _, - o, + r, + s, f, a, - r, + _, c, m, T, - L, S, + L, C, d, y, - h, + g, + O, + x, E, - K, - Z, - fe, - _e, - ae, + se, + de, + me, l, u, p, M, - J, + Q, z, D, - R, - s, + W, + o, i, - Ze, - Ae + Pe, + Ze ]; } -class Li extends $n { +class Ni extends ii { constructor(e) { - super(), si( + super(), _i( this, e, - qi, - yi, - fi, + Mi, + Ti, + ci, { i18n: 1, eta: 0, @@ -2688,28 +2748,28 @@ class Li extends $n { } } const { - SvelteComponent: Si, - add_flush_callback: Pt, - assign: Ti, - bind: Dt, - binding_callbacks: Et, - check_outros: Fi, + SvelteComponent: Hi, + add_flush_callback: Zt, + assign: ji, + bind: Bt, + binding_callbacks: Rt, + check_outros: Vi, create_component: Qe, destroy_component: xe, - detach: Mi, - flush: j, - get_spread_object: ji, - get_spread_update: Vi, - group_outros: Hi, - init: Ni, - insert: zi, + detach: Ai, + flush: N, + get_spread_object: zi, + get_spread_update: Ei, + group_outros: Pi, + init: Zi, + insert: Bi, mount_component: $e, - safe_not_equal: Zi, - space: Ai, - transition_in: be, - transition_out: Ce + safe_not_equal: Ri, + space: Di, + transition_in: ke, + transition_out: Te } = window.__gradio__svelte__internal; -function It(n) { +function Dt(n) { let e, t; const l = [ { autoscroll: ( @@ -2724,57 +2784,57 @@ function It(n) { n[17] ]; let i = {}; - for (let s = 0; s < l.length; s += 1) - i = Ti(i, l[s]); - return e = new Li({ props: i }), { + for (let o = 0; o < l.length; o += 1) + i = ji(i, l[o]); + return e = new Ni({ props: i }), { c() { Qe(e.$$.fragment); }, - m(s, o) { - $e(e, s, o), t = !0; + m(o, s) { + $e(e, o, s), t = !0; }, - p(s, o) { - const _ = o & /*gradio, loading_status*/ - 131080 ? Vi(l, [ - o & /*gradio*/ + p(o, s) { + const r = s & /*gradio, loading_status*/ + 131080 ? Ei(l, [ + s & /*gradio*/ 8 && { autoscroll: ( /*gradio*/ - s[3].autoscroll + o[3].autoscroll ) }, - o & /*gradio*/ + s & /*gradio*/ 8 && { i18n: ( /*gradio*/ - s[3].i18n + o[3].i18n ) }, - o & /*loading_status*/ - 131072 && ji( + s & /*loading_status*/ + 131072 && zi( /*loading_status*/ - s[17] + o[17] ) ]) : {}; - e.$set(_); + e.$set(r); }, - i(s) { - t || (be(e.$$.fragment, s), t = !0); + i(o) { + t || (ke(e.$$.fragment, o), t = !0); }, - o(s) { - Ce(e.$$.fragment, s), t = !1; + o(o) { + Te(e.$$.fragment, o), t = !1; }, - d(s) { - xe(e, s); + d(o) { + xe(e, o); } }; } -function Bi(n) { - let e, t, l, i, s, o = ( +function Oi(n) { + let e, t, l, i, o, s = ( /*loading_status*/ - n[17] && It(n) + n[17] && Dt(n) ); - function _(r) { - n[22](r); + function r(_) { + n[22](_); } - function f(r) { - n[23](r); + function f(_) { + n[23](_); } let a = { label: ( @@ -2821,7 +2881,7 @@ function Bi(n) { n[0] !== void 0 && (a.value = /*value*/ n[0]), /*value_is_output*/ n[2] !== void 0 && (a.value_is_output = /*value_is_output*/ - n[2]), t = new On({ props: a }), Et.push(() => Dt(t, "value", _)), Et.push(() => Dt(t, "value_is_output", f)), t.$on( + n[2]), t = new Yn({ props: a }), Rt.push(() => Bt(t, "value", r)), Rt.push(() => Bt(t, "value_is_output", f)), t.$on( "change", /*change_handler*/ n[24] @@ -2847,59 +2907,59 @@ function Bi(n) { n[29] ), { c() { - o && o.c(), e = Ai(), Qe(t.$$.fragment); + s && s.c(), e = Di(), Qe(t.$$.fragment); }, - m(r, u) { - o && o.m(r, u), zi(r, e, u), $e(t, r, u), s = !0; + m(_, u) { + s && s.m(_, u), Bi(_, e, u), $e(t, _, u), o = !0; }, - p(r, u) { + p(_, u) { /*loading_status*/ - r[17] ? o ? (o.p(r, u), u & /*loading_status*/ - 131072 && be(o, 1)) : (o = It(r), o.c(), be(o, 1), o.m(e.parentNode, e)) : o && (Hi(), Ce(o, 1, 1, () => { - o = null; - }), Fi()); + _[17] ? s ? (s.p(_, u), u & /*loading_status*/ + 131072 && ke(s, 1)) : (s = Dt(_), s.c(), ke(s, 1), s.m(e.parentNode, e)) : s && (Pi(), Te(s, 1, 1, () => { + s = null; + }), Vi()); const c = {}; u & /*label*/ 16 && (c.label = /*label*/ - r[4]), u & /*info*/ + _[4]), u & /*info*/ 64 && (c.info = /*info*/ - r[6]), u & /*show_label*/ + _[6]), u & /*show_label*/ 1024 && (c.show_label = /*show_label*/ - r[10]), u & /*show_legend*/ + _[10]), u & /*show_legend*/ 2048 && (c.show_legend = /*show_legend*/ - r[11]), u & /*show_legend_label*/ + _[11]), u & /*show_legend_label*/ 4096 && (c.show_legend_label = /*show_legend_label*/ - r[12]), u & /*legend_label*/ + _[12]), u & /*legend_label*/ 32 && (c.legend_label = /*legend_label*/ - r[5]), u & /*color_map*/ + _[5]), u & /*color_map*/ 2 && (c.color_map = /*color_map*/ - r[1]), u & /*show_copy_button*/ + _[1]), u & /*show_copy_button*/ 65536 && (c.show_copy_button = /*show_copy_button*/ - r[16]), u & /*container*/ + _[16]), u & /*container*/ 8192 && (c.container = /*container*/ - r[13]), u & /*interactive*/ + _[13]), u & /*interactive*/ 262144 && (c.disabled = !/*interactive*/ - r[18]), !l && u & /*value*/ + _[18]), !l && u & /*value*/ 1 && (l = !0, c.value = /*value*/ - r[0], Pt(() => l = !1)), !i && u & /*value_is_output*/ + _[0], Zt(() => l = !1)), !i && u & /*value_is_output*/ 4 && (i = !0, c.value_is_output = /*value_is_output*/ - r[2], Pt(() => i = !1)), t.$set(c); + _[2], Zt(() => i = !1)), t.$set(c); }, - i(r) { - s || (be(o), be(t.$$.fragment, r), s = !0); + i(_) { + o || (ke(s), ke(t.$$.fragment, _), o = !0); }, - o(r) { - Ce(o), Ce(t.$$.fragment, r), s = !1; + o(_) { + Te(s), Te(t.$$.fragment, _), o = !1; }, - d(r) { - r && Mi(e), o && o.d(r), xe(t, r); + d(_) { + _ && Ai(e), s && s.d(_), xe(t, _); } } ); } -function Pi(n) { +function Ii(n) { let e, t; - return e = new bl({ + return e = new wl({ props: { visible: ( /*visible*/ @@ -2926,7 +2986,7 @@ function Pi(n) { /*container*/ n[13] ), - $$slots: { default: [Bi] }, + $$slots: { default: [Oi] }, $$scope: { ctx: n } } }), { @@ -2937,85 +2997,85 @@ function Pi(n) { $e(e, l, i), t = !0; }, p(l, [i]) { - const s = {}; + const o = {}; i & /*visible*/ - 512 && (s.visible = /*visible*/ + 512 && (o.visible = /*visible*/ l[9]), i & /*elem_id*/ - 128 && (s.elem_id = /*elem_id*/ + 128 && (o.elem_id = /*elem_id*/ l[7]), i & /*elem_classes*/ - 256 && (s.elem_classes = /*elem_classes*/ + 256 && (o.elem_classes = /*elem_classes*/ l[8]), i & /*scale*/ - 16384 && (s.scale = /*scale*/ + 16384 && (o.scale = /*scale*/ l[14]), i & /*min_width*/ - 32768 && (s.min_width = /*min_width*/ + 32768 && (o.min_width = /*min_width*/ l[15]), i & /*container*/ - 8192 && (s.padding = /*container*/ + 8192 && (o.padding = /*container*/ l[13]), i & /*$$scope, label, info, show_label, show_legend, show_legend_label, legend_label, color_map, show_copy_button, container, interactive, value, value_is_output, gradio, loading_status*/ - 1074216063 && (s.$$scope = { dirty: i, ctx: l }), e.$set(s); + 1074216063 && (o.$$scope = { dirty: i, ctx: l }), e.$set(o); }, i(l) { - t || (be(e.$$.fragment, l), t = !0); + t || (ke(e.$$.fragment, l), t = !0); }, o(l) { - Ce(e.$$.fragment, l), t = !1; + Te(e.$$.fragment, l), t = !1; }, d(l) { xe(e, l); } }; } -function Di(n, e, t) { - let { gradio: l } = e, { label: i = "Highlighted Textbox" } = e, { legend_label: s = "Highlights:" } = e, { info: o = void 0 } = e, { elem_id: _ = "" } = e, { elem_classes: f = [] } = e, { visible: a = !0 } = e, { value: r } = e, { show_label: u } = e, { show_legend: c } = e, { show_legend_label: m } = e, { color_map: p = {} } = e, { container: T = !0 } = e, { scale: L = null } = e, { min_width: S = void 0 } = e, { show_copy_button: C = !1 } = e, { loading_status: d = void 0 } = e, { value_is_output: y = !1 } = e, { combine_adjacent: M = !1 } = e, { interactive: h = !0 } = e; - const P = !1, J = !0; - function z(g) { - r = g, t(0, r), t(19, M); +function Ui(n, e, t) { + let { gradio: l } = e, { label: i = "Highlighted Textbox" } = e, { legend_label: o = "Highlights:" } = e, { info: s = void 0 } = e, { elem_id: r = "" } = e, { elem_classes: f = [] } = e, { visible: a = !0 } = e, { value: _ } = e, { show_label: u } = e, { show_legend: c } = e, { show_legend_label: m } = e, { color_map: p = {} } = e, { container: T = !0 } = e, { scale: S = null } = e, { min_width: L = void 0 } = e, { show_copy_button: C = !1 } = e, { loading_status: d = void 0 } = e, { value_is_output: y = !1 } = e, { combine_adjacent: M = !1 } = e, { interactive: g = !0 } = e; + const R = !1, Q = !0; + function z(h) { + _ = h, t(0, _), t(19, M); } - function D(g) { - y = g, t(2, y); + function D(h) { + y = h, t(2, y); } - const R = () => l.dispatch("change"), fe = () => l.dispatch("input"), E = () => l.dispatch("submit"), K = () => l.dispatch("blur"), Z = (g) => l.dispatch("select", g.detail), _e = () => l.dispatch("focus"); - return n.$$set = (g) => { - "gradio" in g && t(3, l = 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, _ = g.elem_id), "elem_classes" in g && t(8, f = g.elem_classes), "visible" in g && t(9, a = g.visible), "value" in g && t(0, r = 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, p = g.color_map), "container" in g && t(13, T = g.container), "scale" in g && t(14, L = g.scale), "min_width" in g && t(15, S = 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, y = g.value_is_output), "combine_adjacent" in g && t(19, M = g.combine_adjacent), "interactive" in g && t(18, h = g.interactive); + const W = () => l.dispatch("change"), se = () => l.dispatch("input"), O = () => l.dispatch("submit"), x = () => l.dispatch("blur"), E = (h) => l.dispatch("select", h.detail), de = () => l.dispatch("focus"); + return n.$$set = (h) => { + "gradio" in h && t(3, l = h.gradio), "label" in h && t(4, i = h.label), "legend_label" in h && t(5, o = h.legend_label), "info" in h && t(6, s = h.info), "elem_id" in h && t(7, r = h.elem_id), "elem_classes" in h && t(8, f = h.elem_classes), "visible" in h && t(9, a = h.visible), "value" in h && t(0, _ = h.value), "show_label" in h && t(10, u = h.show_label), "show_legend" in h && t(11, c = h.show_legend), "show_legend_label" in h && t(12, m = h.show_legend_label), "color_map" in h && t(1, p = h.color_map), "container" in h && t(13, T = h.container), "scale" in h && t(14, S = h.scale), "min_width" in h && t(15, L = h.min_width), "show_copy_button" in h && t(16, C = h.show_copy_button), "loading_status" in h && t(17, d = h.loading_status), "value_is_output" in h && t(2, y = h.value_is_output), "combine_adjacent" in h && t(19, M = h.combine_adjacent), "interactive" in h && t(18, g = h.interactive); }, n.$$.update = () => { n.$$.dirty & /*color_map*/ 2 && !p && Object.keys(p).length && t(1, p), n.$$.dirty & /*value, combine_adjacent*/ - 524289 && r && M && t(0, r = Cn(r, "equal")); + 524289 && _ && M && t(0, _ = Ln(_, "equal")); }, [ - r, + _, p, y, l, i, - s, o, - _, + s, + r, f, a, u, c, m, T, - L, S, + L, C, d, - h, + g, M, - P, - J, + R, + Q, z, D, - R, - fe, + W, + se, + O, + x, E, - K, - Z, - _e + de ]; } -class Ii extends Si { +class Xi extends Hi { constructor(e) { - super(), Ni(this, e, Di, Pi, Zi, { + super(), Zi(this, e, Ui, Ii, Ri, { gradio: 3, label: 4, legend_label: 5, @@ -3044,121 +3104,121 @@ class Ii extends Si { return this.$$.ctx[3]; } set gradio(e) { - this.$$set({ gradio: e }), j(); + this.$$set({ gradio: e }), N(); } get label() { return this.$$.ctx[4]; } set label(e) { - this.$$set({ label: e }), j(); + this.$$set({ label: e }), N(); } get legend_label() { return this.$$.ctx[5]; } set legend_label(e) { - this.$$set({ legend_label: e }), j(); + this.$$set({ legend_label: e }), N(); } get info() { return this.$$.ctx[6]; } set info(e) { - this.$$set({ info: e }), j(); + this.$$set({ info: e }), N(); } get elem_id() { return this.$$.ctx[7]; } set elem_id(e) { - this.$$set({ elem_id: e }), j(); + this.$$set({ elem_id: e }), N(); } get elem_classes() { return this.$$.ctx[8]; } set elem_classes(e) { - this.$$set({ elem_classes: e }), j(); + this.$$set({ elem_classes: e }), N(); } get visible() { return this.$$.ctx[9]; } set visible(e) { - this.$$set({ visible: e }), j(); + this.$$set({ visible: e }), N(); } get value() { return this.$$.ctx[0]; } set value(e) { - this.$$set({ value: e }), j(); + this.$$set({ value: e }), N(); } get show_label() { return this.$$.ctx[10]; } set show_label(e) { - this.$$set({ show_label: e }), j(); + this.$$set({ show_label: e }), N(); } get show_legend() { return this.$$.ctx[11]; } set show_legend(e) { - this.$$set({ show_legend: e }), j(); + this.$$set({ show_legend: e }), N(); } get show_legend_label() { return this.$$.ctx[12]; } set show_legend_label(e) { - this.$$set({ show_legend_label: e }), j(); + this.$$set({ show_legend_label: e }), N(); } get color_map() { return this.$$.ctx[1]; } set color_map(e) { - this.$$set({ color_map: e }), j(); + this.$$set({ color_map: e }), N(); } get container() { return this.$$.ctx[13]; } set container(e) { - this.$$set({ container: e }), j(); + this.$$set({ container: e }), N(); } get scale() { return this.$$.ctx[14]; } set scale(e) { - this.$$set({ scale: e }), j(); + this.$$set({ scale: e }), N(); } get min_width() { return this.$$.ctx[15]; } set min_width(e) { - this.$$set({ min_width: e }), j(); + this.$$set({ min_width: e }), N(); } get show_copy_button() { return this.$$.ctx[16]; } set show_copy_button(e) { - this.$$set({ show_copy_button: e }), j(); + this.$$set({ show_copy_button: e }), N(); } get loading_status() { return this.$$.ctx[17]; } set loading_status(e) { - this.$$set({ loading_status: e }), j(); + this.$$set({ loading_status: e }), N(); } get value_is_output() { return this.$$.ctx[2]; } set value_is_output(e) { - this.$$set({ value_is_output: e }), j(); + this.$$set({ value_is_output: e }), N(); } get combine_adjacent() { return this.$$.ctx[19]; } set combine_adjacent(e) { - this.$$set({ combine_adjacent: e }), j(); + this.$$set({ combine_adjacent: e }), N(); } get interactive() { return this.$$.ctx[18]; } set interactive(e) { - this.$$set({ interactive: e }), j(); + this.$$set({ interactive: e }), N(); } get autofocus() { return this.$$.ctx[20]; @@ -3168,5 +3228,5 @@ class Ii extends Si { } } export { - Ii as default + Xi as default };