diff --git "a/src/backend/gradio_imagemeta/templates/component/index.js" "b/src/backend/gradio_imagemeta/templates/component/index.js"
--- "a/src/backend/gradio_imagemeta/templates/component/index.js"
+++ "b/src/backend/gradio_imagemeta/templates/component/index.js"
@@ -1,10 +1,10 @@
var cd = Object.defineProperty;
-var sl = (n) => {
+var ol = (n) => {
throw TypeError(n);
};
var fd = (n, e, t) => e in n ? cd(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
-var de = (n, e, t) => fd(n, typeof e != "symbol" ? e + "" : e, t), La = (n, e, t) => e.has(n) || sl("Cannot " + t);
-var ti = (n, e, t) => (La(n, e, "read from private field"), t ? t.call(n) : e.get(n)), Ra = (n, e, t) => e.has(n) ? sl("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), ol = (n, e, t, i) => (La(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t), dr = (n, e, t) => (La(n, e, "access private method"), t);
+var _e = (n, e, t) => fd(n, typeof e != "symbol" ? e + "" : e, t), La = (n, e, t) => e.has(n) || ol("Cannot " + t);
+var ti = (n, e, t) => (La(n, e, "read from private field"), t ? t.call(n) : e.get(n)), Ra = (n, e, t) => e.has(n) ? ol("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), ll = (n, e, t, i) => (La(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t), dr = (n, e, t) => (La(n, e, "access private method"), t);
const hd = [
{ color: "red", primary: 600, secondary: 100 },
{ color: "green", primary: 600, secondary: 100 },
@@ -16,7 +16,7 @@ const hd = [
{ color: "cyan", primary: 600, secondary: 100 },
{ color: "lime", primary: 500, secondary: 100 },
{ color: "pink", primary: 600, secondary: 100 }
-], ll = {
+], ul = {
inherit: "inherit",
current: "currentColor",
transparent: "transparent",
@@ -313,8 +313,8 @@ hd.reduce(
(n, { color: e, primary: t, secondary: i }) => ({
...n,
[e]: {
- primary: ll[e][t],
- secondary: ll[e][i]
+ primary: ul[e][t],
+ secondary: ul[e][i]
}
}),
{}
@@ -361,16 +361,16 @@ const {
SvelteComponent: _d,
append_hydration: Is,
assign: pd,
- attr: je,
+ attr: Ve,
binding_callbacks: md,
children: Hi,
- claim_element: Yc,
- claim_space: Kc,
+ claim_element: Kc,
+ claim_space: Qc,
claim_svg_element: Ma,
create_slot: gd,
detach: jt,
- element: Qc,
- empty: ul,
+ element: Jc,
+ empty: cl,
get_all_dirty_from_scope: bd,
get_slot_changes: vd,
get_spread_update: yd,
@@ -379,16 +379,16 @@ const {
listen: Dd,
noop: Ed,
safe_not_equal: Cd,
- set_dynamic_element_data: cl,
+ set_dynamic_element_data: fl,
set_style: ie,
- space: Jc,
+ space: ef,
svg_element: Na,
- toggle_class: Pe,
- transition_in: ef,
- transition_out: tf,
+ toggle_class: Oe,
+ transition_in: tf,
+ transition_out: nf,
update_slot_base: kd
} = window.__gradio__svelte__internal;
-function fl(n) {
+function hl(n) {
let e, t, i, r, a;
return {
c() {
@@ -414,7 +414,7 @@ function fl(n) {
}), Hi(i).forEach(jt), o.forEach(jt), this.h();
},
h() {
- je(t, "x1", "1"), je(t, "y1", "9"), je(t, "x2", "9"), je(t, "y2", "1"), je(t, "stroke", "gray"), je(t, "stroke-width", "0.5"), je(i, "x1", "5"), je(i, "y1", "9"), je(i, "x2", "9"), je(i, "y2", "5"), je(i, "stroke", "gray"), je(i, "stroke-width", "0.5"), je(e, "class", "resize-handle svelte-239wnu"), je(e, "xmlns", "http://www.w3.org/2000/svg"), je(e, "viewBox", "0 0 10 10");
+ Ve(t, "x1", "1"), Ve(t, "y1", "9"), Ve(t, "x2", "9"), Ve(t, "y2", "1"), Ve(t, "stroke", "gray"), Ve(t, "stroke-width", "0.5"), Ve(i, "x1", "5"), Ve(i, "y1", "9"), Ve(i, "x2", "9"), Ve(i, "y2", "5"), Ve(i, "stroke", "gray"), Ve(i, "stroke-width", "0.5"), Ve(e, "class", "resize-handle svelte-239wnu"), Ve(e, "xmlns", "http://www.w3.org/2000/svg"), Ve(e, "viewBox", "0 0 10 10");
},
m(s, o) {
Vi(s, e, o), Is(e, t), Is(e, i), r || (a = Dd(
@@ -445,7 +445,7 @@ function Sd(n) {
);
let l = (
/*resizable*/
- n[19] && fl(n)
+ n[19] && hl(n)
), c = [
{ "data-testid": (
/*test_id*/
@@ -468,13 +468,13 @@ function Sd(n) {
u = pd(u, c[h]);
return {
c() {
- e = Qc(
+ e = Jc(
/*tag*/
n[25]
- ), o && o.c(), t = Jc(), l && l.c(), this.h();
+ ), o && o.c(), t = ef(), l && l.c(), this.h();
},
l(h) {
- e = Yc(
+ e = Kc(
h,
/*tag*/
(n[25] || "null").toUpperCase(),
@@ -486,51 +486,51 @@ function Sd(n) {
}
);
var d = Hi(e);
- o && o.l(d), t = Kc(d), l && l.l(d), d.forEach(jt), this.h();
+ o && o.l(d), t = Qc(d), l && l.l(d), d.forEach(jt), this.h();
},
h() {
- cl(
+ fl(
/*tag*/
n[25]
- )(e, u), Pe(
+ )(e, u), Oe(
e,
"hidden",
/*visible*/
n[14] === !1
- ), Pe(
+ ), Oe(
e,
"padded",
/*padding*/
n[10]
- ), Pe(
+ ), Oe(
e,
"flex",
/*flex*/
n[1]
- ), Pe(
+ ), Oe(
e,
"border_focus",
/*border_mode*/
n[9] === "focus"
- ), Pe(
+ ), Oe(
e,
"border_contrast",
/*border_mode*/
n[9] === "contrast"
- ), Pe(e, "hide-container", !/*explicit_call*/
+ ), Oe(e, "hide-container", !/*explicit_call*/
n[12] && !/*container*/
- n[13]), Pe(
+ n[13]), Oe(
e,
"fullscreen",
/*fullscreen*/
n[0]
- ), Pe(
+ ), Oe(
e,
"animating",
/*fullscreen*/
n[0] && /*preexpansionBoundingRect*/
n[24] !== null
- ), Pe(
+ ), Oe(
e,
"auto-margin",
/*scale*/
@@ -650,7 +650,7 @@ function Sd(n) {
),
null
), /*resizable*/
- h[19] ? l ? l.p(h, d) : (l = fl(h), l.c(), l.m(e, null)) : l && (l.d(1), l = null), cl(
+ h[19] ? l ? l.p(h, d) : (l = hl(h), l.c(), l.m(e, null)) : l && (l.d(1), l = null), fl(
/*tag*/
h[25]
)(e, u = yd(c, [
@@ -670,45 +670,45 @@ function Sd(n) {
(!a || d[0] & /*rtl*/
1048576 && r !== (r = /*rtl*/
h[20] ? "rtl" : "ltr")) && { dir: r }
- ])), Pe(
+ ])), Oe(
e,
"hidden",
/*visible*/
h[14] === !1
- ), Pe(
+ ), Oe(
e,
"padded",
/*padding*/
h[10]
- ), Pe(
+ ), Oe(
e,
"flex",
/*flex*/
h[1]
- ), Pe(
+ ), Oe(
e,
"border_focus",
/*border_mode*/
h[9] === "focus"
- ), Pe(
+ ), Oe(
e,
"border_contrast",
/*border_mode*/
h[9] === "contrast"
- ), Pe(e, "hide-container", !/*explicit_call*/
+ ), Oe(e, "hide-container", !/*explicit_call*/
h[12] && !/*container*/
- h[13]), Pe(
+ h[13]), Oe(
e,
"fullscreen",
/*fullscreen*/
h[0]
- ), Pe(
+ ), Oe(
e,
"animating",
/*fullscreen*/
h[0] && /*preexpansionBoundingRect*/
h[24] !== null
- ), Pe(
+ ), Oe(
e,
"auto-margin",
/*scale*/
@@ -817,27 +817,27 @@ function Sd(n) {
h[18]}px, 100%))`);
},
i(h) {
- a || (ef(o, h), a = !0);
+ a || (tf(o, h), a = !0);
},
o(h) {
- tf(o, h), a = !1;
+ nf(o, h), a = !1;
},
d(h) {
h && jt(e), o && o.d(h), l && l.d(), n[32](null);
}
};
}
-function hl(n) {
+function dl(n) {
let e;
return {
c() {
- e = Qc("div"), this.h();
+ e = Jc("div"), this.h();
},
l(t) {
- e = Yc(t, "DIV", { class: !0 }), Hi(e).forEach(jt), this.h();
+ e = Kc(t, "DIV", { class: !0 }), Hi(e).forEach(jt), this.h();
},
h() {
- je(e, "class", "placeholder svelte-239wnu"), ie(
+ Ve(e, "class", "placeholder svelte-239wnu"), ie(
e,
"height",
/*placeholder_height*/
@@ -878,14 +878,14 @@ function Ad(n) {
n[25] && Sd(n)
), a = (
/*fullscreen*/
- n[0] && hl(n)
+ n[0] && dl(n)
);
return {
c() {
- r && r.c(), e = Jc(), a && a.c(), t = ul();
+ r && r.c(), e = ef(), a && a.c(), t = cl();
},
l(s) {
- r && r.l(s), e = Kc(s), a && a.l(s), t = ul();
+ r && r.l(s), e = Qc(s), a && a.l(s), t = cl();
},
m(s, o) {
r && r.m(s, o), Vi(s, e, o), a && a.m(s, o), Vi(s, t, o), i = !0;
@@ -893,13 +893,13 @@ function Ad(n) {
p(s, o) {
/*tag*/
s[25] && r.p(s, o), /*fullscreen*/
- s[0] ? a ? a.p(s, o) : (a = hl(s), a.c(), a.m(t.parentNode, t)) : a && (a.d(1), a = null);
+ s[0] ? a ? a.p(s, o) : (a = dl(s), a.c(), a.m(t.parentNode, t)) : a && (a.d(1), a = null);
},
i(s) {
- i || (ef(r, s), i = !0);
+ i || (tf(r, s), i = !0);
},
o(s) {
- tf(r, s), i = !1;
+ nf(r, s), i = !1;
},
d(s) {
s && (jt(e), jt(t)), r && r.d(s), a && a.d(s);
@@ -907,41 +907,41 @@ function Ad(n) {
};
}
function Fd(n, e, t) {
- let { $$slots: i = {}, $$scope: r } = e, { height: a = void 0 } = e, { min_height: s = void 0 } = e, { max_height: o = void 0 } = e, { width: l = void 0 } = e, { elem_id: c = "" } = e, { elem_classes: u = [] } = e, { variant: f = "solid" } = e, { border_mode: h = "base" } = e, { padding: d = !0 } = e, { type: p = "normal" } = e, { test_id: v = void 0 } = e, { explicit_call: w = !1 } = e, { container: E = !0 } = e, { visible: m = !0 } = e, { allow_overflow: _ = !0 } = e, { overflow_behavior: g = "auto" } = e, { scale: b = null } = e, { min_width: D = 0 } = e, { flex: C = !1 } = e, { resizable: P = !1 } = e, { rtl: S = !1 } = e, { fullscreen: R = !1 } = e, L = R, O, he = p === "fieldset" ? "fieldset" : "div", G = 0, ne = 0, J = null;
- function oe(A) {
- R && A.key === "Escape" && t(0, R = !1);
- }
- const V = (A) => {
- if (A !== void 0) {
- if (typeof A == "number")
- return A + "px";
- if (typeof A == "string")
- return A;
+ let { $$slots: i = {}, $$scope: r } = e, { height: a = void 0 } = e, { min_height: s = void 0 } = e, { max_height: o = void 0 } = e, { width: l = void 0 } = e, { elem_id: c = "" } = e, { elem_classes: u = [] } = e, { variant: f = "solid" } = e, { border_mode: h = "base" } = e, { padding: d = !0 } = e, { type: p = "normal" } = e, { test_id: v = void 0 } = e, { explicit_call: w = !1 } = e, { container: E = !0 } = e, { visible: m = !0 } = e, { allow_overflow: _ = !0 } = e, { overflow_behavior: g = "auto" } = e, { scale: b = null } = e, { min_width: D = 0 } = e, { flex: k = !1 } = e, { resizable: P = !1 } = e, { rtl: A = !1 } = e, { fullscreen: R = !1 } = e, B = R, L, de = p === "fieldset" ? "fieldset" : "div", z = 0, te = 0, Q = null;
+ function oe(F) {
+ R && F.key === "Escape" && t(0, R = !1);
+ }
+ const X = (F) => {
+ if (F !== void 0) {
+ if (typeof F == "number")
+ return F + "px";
+ if (typeof F == "string")
+ return F;
}
- }, le = (A) => {
- let x = A.clientY;
- const z = (F) => {
- const Ce = F.clientY - x;
- x = F.clientY, t(21, O.style.height = `${O.offsetHeight + Ce}px`, O);
- }, Q = () => {
- window.removeEventListener("mousemove", z), window.removeEventListener("mouseup", Q);
+ }, ne = (F) => {
+ let x = F.clientY;
+ const H = (T) => {
+ const ke = T.clientY - x;
+ x = T.clientY, t(21, L.style.height = `${L.offsetHeight + ke}px`, L);
+ }, J = () => {
+ window.removeEventListener("mousemove", H), window.removeEventListener("mouseup", J);
};
- window.addEventListener("mousemove", z), window.addEventListener("mouseup", Q);
+ window.addEventListener("mousemove", H), window.addEventListener("mouseup", J);
};
- function De(A) {
- md[A ? "unshift" : "push"](() => {
- O = A, t(21, O);
+ function De(F) {
+ md[F ? "unshift" : "push"](() => {
+ L = F, t(21, L);
});
}
- return n.$$set = (A) => {
- "height" in A && t(2, a = A.height), "min_height" in A && t(3, s = A.min_height), "max_height" in A && t(4, o = A.max_height), "width" in A && t(5, l = A.width), "elem_id" in A && t(6, c = A.elem_id), "elem_classes" in A && t(7, u = A.elem_classes), "variant" in A && t(8, f = A.variant), "border_mode" in A && t(9, h = A.border_mode), "padding" in A && t(10, d = A.padding), "type" in A && t(28, p = A.type), "test_id" in A && t(11, v = A.test_id), "explicit_call" in A && t(12, w = A.explicit_call), "container" in A && t(13, E = A.container), "visible" in A && t(14, m = A.visible), "allow_overflow" in A && t(15, _ = A.allow_overflow), "overflow_behavior" in A && t(16, g = A.overflow_behavior), "scale" in A && t(17, b = A.scale), "min_width" in A && t(18, D = A.min_width), "flex" in A && t(1, C = A.flex), "resizable" in A && t(19, P = A.resizable), "rtl" in A && t(20, S = A.rtl), "fullscreen" in A && t(0, R = A.fullscreen), "$$scope" in A && t(30, r = A.$$scope);
+ return n.$$set = (F) => {
+ "height" in F && t(2, a = F.height), "min_height" in F && t(3, s = F.min_height), "max_height" in F && t(4, o = F.max_height), "width" in F && t(5, l = F.width), "elem_id" in F && t(6, c = F.elem_id), "elem_classes" in F && t(7, u = F.elem_classes), "variant" in F && t(8, f = F.variant), "border_mode" in F && t(9, h = F.border_mode), "padding" in F && t(10, d = F.padding), "type" in F && t(28, p = F.type), "test_id" in F && t(11, v = F.test_id), "explicit_call" in F && t(12, w = F.explicit_call), "container" in F && t(13, E = F.container), "visible" in F && t(14, m = F.visible), "allow_overflow" in F && t(15, _ = F.allow_overflow), "overflow_behavior" in F && t(16, g = F.overflow_behavior), "scale" in F && t(17, b = F.scale), "min_width" in F && t(18, D = F.min_width), "flex" in F && t(1, k = F.flex), "resizable" in F && t(19, P = F.resizable), "rtl" in F && t(20, A = F.rtl), "fullscreen" in F && t(0, R = F.fullscreen), "$$scope" in F && t(30, r = F.$$scope);
}, n.$$.update = () => {
n.$$.dirty[0] & /*fullscreen, old_fullscreen, element*/
- 538968065 && R !== L && (t(29, L = R), R ? (t(24, J = O.getBoundingClientRect()), t(22, G = O.offsetHeight), t(23, ne = O.offsetWidth), window.addEventListener("keydown", oe)) : (t(24, J = null), window.removeEventListener("keydown", oe))), n.$$.dirty[0] & /*visible*/
- 16384 && (m || t(1, C = !1));
+ 538968065 && R !== B && (t(29, B = R), R ? (t(24, Q = L.getBoundingClientRect()), t(22, z = L.offsetHeight), t(23, te = L.offsetWidth), window.addEventListener("keydown", oe)) : (t(24, Q = null), window.removeEventListener("keydown", oe))), n.$$.dirty[0] & /*visible*/
+ 16384 && (m || t(1, k = !1));
}, [
R,
- C,
+ k,
a,
s,
o,
@@ -960,22 +960,22 @@ function Fd(n, e, t) {
b,
D,
P,
- S,
- O,
- G,
+ A,
+ L,
+ z,
+ te,
+ Q,
+ de,
+ X,
ne,
- J,
- he,
- V,
- le,
p,
- L,
+ B,
r,
i,
De
];
}
-class nf extends _d {
+class rf extends _d {
constructor(e) {
super(), wd(
this,
@@ -1012,7 +1012,7 @@ class nf extends _d {
);
}
}
-function vo() {
+function yo() {
return {
async: !1,
breaks: !1,
@@ -1026,23 +1026,23 @@ function vo() {
walkTokens: null
};
}
-let Wn = vo();
-function rf(n) {
- Wn = n;
+let Xn = yo();
+function af(n) {
+ Xn = n;
}
-const af = /[&<>"']/, Td = new RegExp(af.source, "g"), sf = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Id = new RegExp(sf.source, "g"), $d = {
+const sf = /[&<>"']/, Td = new RegExp(sf.source, "g"), of = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Id = new RegExp(of.source, "g"), $d = {
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
-}, dl = (n) => $d[n];
-function ft(n, e) {
+}, _l = (n) => $d[n];
+function ht(n, e) {
if (e) {
- if (af.test(n))
- return n.replace(Td, dl);
- } else if (sf.test(n))
- return n.replace(Id, dl);
+ if (sf.test(n))
+ return n.replace(Td, _l);
+ } else if (of.test(n))
+ return n.replace(Id, _l);
return n;
}
const xd = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
@@ -1062,7 +1062,7 @@ function se(n, e) {
};
return i;
}
-function _l(n) {
+function pl(n) {
try {
n = encodeURI(n).replace(/%25/g, "%");
} catch {
@@ -1071,7 +1071,7 @@ function _l(n) {
return n;
}
const Gi = { exec: () => null };
-function pl(n, e) {
+function ml(n, e) {
const t = n.replace(/\|/g, (a, s, o) => {
let l = !1, c = s;
for (; --c >= 0 && o[c] === "\\"; )
@@ -1111,8 +1111,8 @@ function Od(n, e) {
return i;
return -1;
}
-function ml(n, e, t, i) {
- const r = e.href, a = e.title ? ft(e.title) : null, s = n[1].replace(/\\([\[\]])/g, "$1");
+function gl(n, e, t, i) {
+ const r = e.href, a = e.title ? ht(e.title) : null, s = n[1].replace(/\\([\[\]])/g, "$1");
if (n[0].charAt(0) !== "!") {
i.state.inLink = !0;
const o = {
@@ -1130,7 +1130,7 @@ function ml(n, e, t, i) {
raw: t,
href: r,
title: a,
- text: ft(s)
+ text: ht(s)
};
}
function Ld(n, e) {
@@ -1151,11 +1151,11 @@ function Ld(n, e) {
class Xr {
// set by the lexer
constructor(e) {
- de(this, "options");
- de(this, "rules");
+ _e(this, "options");
+ _e(this, "rules");
// set by the lexer
- de(this, "lexer");
- this.options = e || Wn;
+ _e(this, "lexer");
+ this.options = e || Xn;
}
space(e) {
const t = this.rules.block.newline.exec(e);
@@ -1331,7 +1331,7 @@ class Xr {
const t = this.rules.block.table.exec(e);
if (!t || !/[:|]/.test(t[2]))
return;
- const i = pl(t[1]), r = t[2].replace(/^\||\| *$/g, "").split("|"), a = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
+ const i = ml(t[1]), r = t[2].replace(/^\||\| *$/g, "").split("|"), a = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
`) : [], s = {
type: "table",
raw: t[0],
@@ -1348,7 +1348,7 @@ class Xr {
tokens: this.lexer.inline(o)
});
for (const o of a)
- s.rows.push(pl(o, s.header.length).map((l) => ({
+ s.rows.push(ml(o, s.header.length).map((l) => ({
text: l,
tokens: this.lexer.inline(l)
})));
@@ -1395,7 +1395,7 @@ class Xr {
return {
type: "escape",
raw: t[0],
- text: ft(t[1])
+ text: ht(t[1])
};
}
tag(e) {
@@ -1433,7 +1433,7 @@ class Xr {
s && (r = s[1], a = s[3]);
} else
a = t[3] ? t[3].slice(1, -1) : "";
- return r = r.trim(), /^$/.test(i) ? r = r.slice(1) : r = r.slice(1, -1)), ml(t, {
+ return r = r.trim(), /^$/.test(i) ? r = r.slice(1) : r = r.slice(1, -1)), gl(t, {
href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
title: a && a.replace(this.rules.inline.anyPunctuation, "$1")
}, t[0], this.lexer);
@@ -1451,7 +1451,7 @@ class Xr {
text: s
};
}
- return ml(i, a, i[0], this.lexer);
+ return gl(i, a, i[0], this.lexer);
}
}
emStrong(e, t, i = "") {
@@ -1500,7 +1500,7 @@ class Xr {
if (t) {
let i = t[2].replace(/\n/g, " ");
const r = /[^ ]/.test(i), a = /^ /.test(i) && / $/.test(i);
- return r && a && (i = i.substring(1, i.length - 1)), i = ft(i, !0), {
+ return r && a && (i = i.substring(1, i.length - 1)), i = ht(i, !0), {
type: "codespan",
raw: t[0],
text: i
@@ -1529,7 +1529,7 @@ class Xr {
const t = this.rules.inline.autolink.exec(e);
if (t) {
let i, r;
- return t[2] === "@" ? (i = ft(t[1]), r = "mailto:" + i) : (i = ft(t[1]), r = i), {
+ return t[2] === "@" ? (i = ht(t[1]), r = "mailto:" + i) : (i = ht(t[1]), r = i), {
type: "link",
raw: t[0],
text: i,
@@ -1550,13 +1550,13 @@ class Xr {
if (t = this.rules.inline.url.exec(e)) {
let r, a;
if (t[2] === "@")
- r = ft(t[0]), a = "mailto:" + r;
+ r = ht(t[0]), a = "mailto:" + r;
else {
let s;
do
s = t[0], t[0] = ((i = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : i[0]) ?? "";
while (s !== t[0]);
- r = ft(t[0]), t[1] === "www." ? a = "http://" + t[0] : a = t[0];
+ r = ht(t[0]), t[1] === "www." ? a = "http://" + t[0] : a = t[0];
}
return {
type: "link",
@@ -1577,7 +1577,7 @@ class Xr {
const t = this.rules.inline.text.exec(e);
if (t) {
let i;
- return this.lexer.state.inRawBlock ? i = t[0] : i = ft(t[0]), {
+ return this.lexer.state.inRawBlock ? i = t[0] : i = ht(t[0]), {
type: "text",
raw: t[0],
text: i
@@ -1585,7 +1585,7 @@ class Xr {
}
}
}
-const Rd = /^(?: *(?:\n|$))+/, Md = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Nd = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, rr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ud = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, of = /(?:[*+-]|\d{1,9}[.)])/, lf = se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, of).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), yo = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Hd = /^[^\n]+/, wo = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Gd = se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", wo).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), zd = se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, of).getRegex(), ba = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Do = /|$))/, qd = se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", Do).replace("tag", ba).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), uf = se(yo).replace("hr", rr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ba).getRegex(), jd = se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", uf).getRegex(), Eo = {
+const Rd = /^(?: *(?:\n|$))+/, Md = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Nd = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, rr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ud = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, lf = /(?:[*+-]|\d{1,9}[.)])/, uf = se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, lf).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), wo = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Hd = /^[^\n]+/, Do = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Gd = se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Do).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), zd = se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, lf).getRegex(), ba = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Eo = /|$))/, qd = se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", Eo).replace("tag", ba).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), cf = se(wo).replace("hr", rr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ba).getRegex(), jd = se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", cf).getRegex(), Co = {
blockquote: jd,
code: Md,
def: Gd,
@@ -1593,80 +1593,80 @@ const Rd = /^(?: *(?:\n|$))+/, Md = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Nd =
heading: Ud,
hr: rr,
html: qd,
- lheading: lf,
+ lheading: uf,
list: zd,
newline: Rd,
- paragraph: uf,
+ paragraph: cf,
table: Gi,
text: Hd
-}, gl = se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", rr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ba).getRegex(), Vd = {
- ...Eo,
- table: gl,
- paragraph: se(yo).replace("hr", rr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", gl).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ba).getRegex()
+}, bl = se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", rr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ba).getRegex(), Vd = {
+ ...Co,
+ table: bl,
+ paragraph: se(wo).replace("hr", rr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", bl).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ba).getRegex()
}, Wd = {
- ...Eo,
- html: se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Do).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
+ ...Co,
+ html: se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Eo).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
def: /^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
heading: /^(#{1,6})(.*)(?:\n+|$)/,
fences: Gi,
// fences not supported
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
- paragraph: se(yo).replace("hr", rr).replace("heading", ` *#{1,6} *[^
-]`).replace("lheading", lf).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
-}, cf = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Xd = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ff = /^( {2,}|\\)\n(?!\s*$)/, Zd = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Qd = se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, ar).getRegex(), Jd = se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, ar).getRegex(), e_ = se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, ar).getRegex(), t_ = se(/\\([punct])/, "gu").replace(/punct/g, ar).getRegex(), n_ = se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), i_ = se(Do).replace("(?:-->|$)", "-->").getRegex(), r_ = se("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", i_).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Zr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, a_ = se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Zr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), hf = se(/^!?\[(label)\]\[(ref)\]/).replace("label", Zr).replace("ref", wo).getRegex(), df = se(/^!?\[(ref)\](?:\[\])?/).replace("ref", wo).getRegex(), s_ = se("reflink|nolink(?!\\()", "g").replace("reflink", hf).replace("nolink", df).getRegex(), Co = {
+ paragraph: se(wo).replace("hr", rr).replace("heading", ` *#{1,6} *[^
+]`).replace("lheading", uf).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
+}, ff = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Xd = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, hf = /^( {2,}|\\)\n(?!\s*$)/, Zd = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, Qd = se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, ar).getRegex(), Jd = se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, ar).getRegex(), e_ = se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, ar).getRegex(), t_ = se(/\\([punct])/, "gu").replace(/punct/g, ar).getRegex(), n_ = se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), i_ = se(Eo).replace("(?:-->|$)", "-->").getRegex(), r_ = se("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", i_).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Zr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, a_ = se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Zr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), df = se(/^!?\[(label)\]\[(ref)\]/).replace("label", Zr).replace("ref", Do).getRegex(), _f = se(/^!?\[(ref)\](?:\[\])?/).replace("ref", Do).getRegex(), s_ = se("reflink|nolink(?!\\()", "g").replace("reflink", df).replace("nolink", _f).getRegex(), ko = {
_backpedal: Gi,
// only used for GFM url
anyPunctuation: t_,
autolink: n_,
blockSkip: Kd,
- br: ff,
+ br: hf,
code: Xd,
del: Gi,
emStrongLDelim: Qd,
emStrongRDelimAst: Jd,
emStrongRDelimUnd: e_,
- escape: cf,
+ escape: ff,
link: a_,
- nolink: df,
+ nolink: _f,
punctuation: Yd,
- reflink: hf,
+ reflink: df,
reflinkSearch: s_,
tag: r_,
text: Zd,
url: Gi
}, o_ = {
- ...Co,
+ ...ko,
link: se(/^!?\[(label)\]\((.*?)\)/).replace("label", Zr).getRegex(),
reflink: se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Zr).getRegex()
}, $s = {
- ...Co,
- escape: se(cf).replace("])", "~|])").getRegex(),
+ ...ko,
+ escape: se(ff).replace("])", "~|])").getRegex(),
url: se(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\' + (i ? e : ft(e, !0)) + `
-` : "
" + (i ? e : ft(e, !0)) + `
+`, r ? '' + (i ? e : ht(e, !0)) + `
+` : "" + (i ? e : ht(e, !0)) + `
`;
}
blockquote(e) {
@@ -1964,7 +1964,7 @@ ${e}
return `${e}`;
}
link(e, t, i) {
- const r = _l(e);
+ const r = pl(e);
if (r === null)
return i;
e = r;
@@ -1972,7 +1972,7 @@ ${e}
return t && (a += ' title="' + t + '"'), a += ">" + i + "", a;
}
image(e, t, i) {
- const r = _l(e);
+ const r = pl(e);
if (r === null)
return i;
e = r;
@@ -1983,7 +1983,7 @@ ${e}
return e;
}
}
-class ko {
+class So {
// no need for block level renderers
strong(e) {
return e;
@@ -2015,10 +2015,10 @@ class ko {
}
class Wt {
constructor(e) {
- de(this, "options");
- de(this, "renderer");
- de(this, "textRenderer");
- this.options = e || Wn, this.options.renderer = this.options.renderer || new Yr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new ko();
+ _e(this, "options");
+ _e(this, "renderer");
+ _e(this, "textRenderer");
+ this.options = e || Xn, this.options.renderer = this.options.renderer || new Yr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new So();
}
/**
* Static Parse Method
@@ -2209,8 +2209,8 @@ class Wt {
}
class zi {
constructor(e) {
- de(this, "options");
- this.options = e || Wn;
+ _e(this, "options");
+ this.options = e || Xn;
}
/**
* Process markdown before marked
@@ -2231,25 +2231,25 @@ class zi {
return e;
}
}
-de(zi, "passThroughHooks", /* @__PURE__ */ new Set([
+_e(zi, "passThroughHooks", /* @__PURE__ */ new Set([
"preprocess",
"postprocess",
"processAllTokens"
]));
-var Vn, xs, _f;
+var Wn, xs, pf;
class u_ {
constructor(...e) {
- Ra(this, Vn);
- de(this, "defaults", vo());
- de(this, "options", this.setOptions);
- de(this, "parse", dr(this, Vn, xs).call(this, Vt.lex, Wt.parse));
- de(this, "parseInline", dr(this, Vn, xs).call(this, Vt.lexInline, Wt.parseInline));
- de(this, "Parser", Wt);
- de(this, "Renderer", Yr);
- de(this, "TextRenderer", ko);
- de(this, "Lexer", Vt);
- de(this, "Tokenizer", Xr);
- de(this, "Hooks", zi);
+ Ra(this, Wn);
+ _e(this, "defaults", yo());
+ _e(this, "options", this.setOptions);
+ _e(this, "parse", dr(this, Wn, xs).call(this, Vt.lex, Wt.parse));
+ _e(this, "parseInline", dr(this, Wn, xs).call(this, Vt.lexInline, Wt.parseInline));
+ _e(this, "Parser", Wt);
+ _e(this, "Renderer", Yr);
+ _e(this, "TextRenderer", So);
+ _e(this, "Lexer", Vt);
+ _e(this, "Tokenizer", Xr);
+ _e(this, "Hooks", zi);
this.use(...e);
}
/**
@@ -2375,11 +2375,11 @@ class u_ {
return Wt.parse(e, t ?? this.defaults);
}
}
-Vn = new WeakSet(), xs = function(e, t) {
+Wn = new WeakSet(), xs = function(e, t) {
return (i, r) => {
const a = { ...r }, s = { ...this.defaults, ...a };
this.defaults.async === !0 && a.async === !1 && (s.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), s.async = !0);
- const o = dr(this, Vn, _f).call(this, !!s.silent, !!s.async);
+ const o = dr(this, Wn, pf).call(this, !!s.silent, !!s.async);
if (typeof i > "u" || i === null)
return o(new Error("marked(): input parameter is undefined or null"));
if (typeof i != "string")
@@ -2396,11 +2396,11 @@ Vn = new WeakSet(), xs = function(e, t) {
return o(l);
}
};
-}, _f = function(e, t) {
+}, pf = function(e, t) {
return (i) => {
if (i.message += `
Please report this to https://github.com/markedjs/marked.`, e) {
- const r = "An error occurred:
" + ft(i.message + "", !0) + "
";
+ const r = "An error occurred:
" + ht(i.message + "", !0) + "
";
return t ? Promise.resolve(r) : r;
}
if (t)
@@ -2408,26 +2408,26 @@ Please report this to https://github.com/markedjs/marked.`, e) {
throw i;
};
};
-const Mn = new u_();
+const Nn = new u_();
function ae(n, e) {
- return Mn.parse(n, e);
+ return Nn.parse(n, e);
}
ae.options = ae.setOptions = function(n) {
- return Mn.setOptions(n), ae.defaults = Mn.defaults, rf(ae.defaults), ae;
+ return Nn.setOptions(n), ae.defaults = Nn.defaults, af(ae.defaults), ae;
};
-ae.getDefaults = vo;
-ae.defaults = Wn;
+ae.getDefaults = yo;
+ae.defaults = Xn;
ae.use = function(...n) {
- return Mn.use(...n), ae.defaults = Mn.defaults, rf(ae.defaults), ae;
+ return Nn.use(...n), ae.defaults = Nn.defaults, af(ae.defaults), ae;
};
ae.walkTokens = function(n, e) {
- return Mn.walkTokens(n, e);
+ return Nn.walkTokens(n, e);
};
-ae.parseInline = Mn.parseInline;
+ae.parseInline = Nn.parseInline;
ae.Parser = Wt;
ae.parser = Wt.parse;
ae.Renderer = Yr;
-ae.TextRenderer = ko;
+ae.TextRenderer = So;
ae.Lexer = Vt;
ae.lexer = Vt.lex;
ae.Tokenizer = Xr;
@@ -2441,7 +2441,7 @@ ae.parseInline;
Wt.parse;
Vt.lex;
const c_ = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, f_ = Object.hasOwnProperty;
-class pf {
+class mf {
/**
* Create a new slug class.
*/
@@ -2482,8 +2482,8 @@ class pf {
function h_(n, e) {
return typeof n != "string" ? "" : (e || (n = n.toLowerCase()), n.replace(c_, "").replace(/ /g, "-"));
}
-new pf();
-var bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, d_ = { exports: {} };
+new mf();
+var vl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, d_ = { exports: {} };
(function(n) {
var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
/**
@@ -2600,8 +2600,8 @@ var bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
return g[D];
b = /** @type {Record} */
{}, g[D] = b;
- for (var C in _)
- _.hasOwnProperty(C) && (b[C] = m(_[C], g));
+ for (var k in _)
+ _.hasOwnProperty(k) && (b[k] = m(_[k], g));
return (
/** @type {any} */
b
@@ -2609,8 +2609,8 @@ var bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
case "Array":
return D = o.util.objId(_), g[D] ? g[D] : (b = [], g[D] = b, /** @type {Array} */
/** @type {any} */
- _.forEach(function(P, S) {
- b[S] = m(P, g);
+ _.forEach(function(P, A) {
+ b[A] = m(P, g);
}), /** @type {any} */
b);
default:
@@ -2830,28 +2830,28 @@ var bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
insertBefore: function(m, _, g, b) {
b = b || /** @type {any} */
o.languages;
- var D = b[m], C = {};
+ var D = b[m], k = {};
for (var P in D)
if (D.hasOwnProperty(P)) {
if (P == _)
- for (var S in g)
- g.hasOwnProperty(S) && (C[S] = g[S]);
- g.hasOwnProperty(P) || (C[P] = D[P]);
+ for (var A in g)
+ g.hasOwnProperty(A) && (k[A] = g[A]);
+ g.hasOwnProperty(P) || (k[P] = D[P]);
}
var R = b[m];
- return b[m] = C, o.languages.DFS(o.languages, function(L, O) {
- O === R && L != m && (this[L] = C);
- }), C;
+ return b[m] = k, o.languages.DFS(o.languages, function(B, L) {
+ L === R && B != m && (this[B] = k);
+ }), k;
},
// Traverse a language definition with Depth First Search
DFS: function m(_, g, b, D) {
D = D || {};
- var C = o.util.objId;
+ var k = o.util.objId;
for (var P in _)
if (_.hasOwnProperty(P)) {
g.call(_, P, _[P], b || P);
- var S = _[P], R = o.util.type(S);
- R === "Object" && !D[C(S)] ? (D[C(S)] = !0, m(S, g, null, D)) : R === "Array" && !D[C(S)] && (D[C(S)] = !0, m(S, g, P, D));
+ var A = _[P], R = o.util.type(A);
+ R === "Object" && !D[k(A)] ? (D[k(A)] = !0, m(A, g, null, D)) : R === "Array" && !D[k(A)] && (D[k(A)] = !0, m(A, g, P, D));
}
}
},
@@ -2893,8 +2893,8 @@ var bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
};
o.hooks.run("before-highlightall", b), b.elements = Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)), o.hooks.run("before-all-elements-highlight", b);
- for (var D = 0, C; C = b.elements[D++]; )
- o.highlightElement(C, _ === !0, b.callback);
+ for (var D = 0, k; k = b.elements[D++]; )
+ o.highlightElement(k, _ === !0, b.callback);
},
/**
* Highlights the code inside a single element.
@@ -2927,36 +2927,36 @@ var bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
highlightElement: function(m, _, g) {
var b = o.util.getLanguage(m), D = o.languages[b];
o.util.setLanguage(m, b);
- var C = m.parentElement;
- C && C.nodeName.toLowerCase() === "pre" && o.util.setLanguage(C, b);
- var P = m.textContent, S = {
+ var k = m.parentElement;
+ k && k.nodeName.toLowerCase() === "pre" && o.util.setLanguage(k, b);
+ var P = m.textContent, A = {
element: m,
language: b,
grammar: D,
code: P
};
- function R(O) {
- S.highlightedCode = O, o.hooks.run("before-insert", S), S.element.innerHTML = S.highlightedCode, o.hooks.run("after-highlight", S), o.hooks.run("complete", S), g && g.call(S.element);
+ function R(L) {
+ A.highlightedCode = L, o.hooks.run("before-insert", A), A.element.innerHTML = A.highlightedCode, o.hooks.run("after-highlight", A), o.hooks.run("complete", A), g && g.call(A.element);
}
- if (o.hooks.run("before-sanity-check", S), C = S.element.parentElement, C && C.nodeName.toLowerCase() === "pre" && !C.hasAttribute("tabindex") && C.setAttribute("tabindex", "0"), !S.code) {
- o.hooks.run("complete", S), g && g.call(S.element);
+ if (o.hooks.run("before-sanity-check", A), k = A.element.parentElement, k && k.nodeName.toLowerCase() === "pre" && !k.hasAttribute("tabindex") && k.setAttribute("tabindex", "0"), !A.code) {
+ o.hooks.run("complete", A), g && g.call(A.element);
return;
}
- if (o.hooks.run("before-highlight", S), !S.grammar) {
- R(o.util.encode(S.code));
+ if (o.hooks.run("before-highlight", A), !A.grammar) {
+ R(o.util.encode(A.code));
return;
}
if (_ && i.Worker) {
- var L = new Worker(o.filename);
- L.onmessage = function(O) {
- R(O.data);
- }, L.postMessage(JSON.stringify({
- language: S.language,
- code: S.code,
+ var B = new Worker(o.filename);
+ B.onmessage = function(L) {
+ R(L.data);
+ }, B.postMessage(JSON.stringify({
+ language: A.language,
+ code: A.code,
immediateClose: !0
}));
} else
- R(o.highlight(S.code, S.grammar, S.language));
+ R(o.highlight(A.code, A.grammar, A.language));
},
/**
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -3083,65 +3083,65 @@ var bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
classes: ["token", _.type],
attributes: {},
language: g
- }, C = _.alias;
- C && (Array.isArray(C) ? Array.prototype.push.apply(D.classes, C) : D.classes.push(C)), o.hooks.run("wrap", D);
+ }, k = _.alias;
+ k && (Array.isArray(k) ? Array.prototype.push.apply(D.classes, k) : D.classes.push(k)), o.hooks.run("wrap", D);
var P = "";
- for (var S in D.attributes)
- P += " " + S + '="' + (D.attributes[S] || "").replace(/"/g, """) + '"';
+ for (var A in D.attributes)
+ P += " " + A + '="' + (D.attributes[A] || "").replace(/"/g, """) + '"';
return "<" + D.tag + ' class="' + D.classes.join(" ") + '"' + P + ">" + D.content + "" + D.tag + ">";
};
function c(m, _, g, b) {
m.lastIndex = _;
var D = m.exec(g);
if (D && b && D[1]) {
- var C = D[1].length;
- D.index += C, D[0] = D[0].slice(C);
+ var k = D[1].length;
+ D.index += k, D[0] = D[0].slice(k);
}
return D;
}
- function u(m, _, g, b, D, C) {
+ function u(m, _, g, b, D, k) {
for (var P in g)
if (!(!g.hasOwnProperty(P) || !g[P])) {
- var S = g[P];
- S = Array.isArray(S) ? S : [S];
- for (var R = 0; R < S.length; ++R) {
- if (C && C.cause == P + "," + R)
+ var A = g[P];
+ A = Array.isArray(A) ? A : [A];
+ for (var R = 0; R < A.length; ++R) {
+ if (k && k.cause == P + "," + R)
return;
- var L = S[R], O = L.inside, he = !!L.lookbehind, G = !!L.greedy, ne = L.alias;
- if (G && !L.pattern.global) {
- var J = L.pattern.toString().match(/[imsuy]*$/)[0];
- L.pattern = RegExp(L.pattern.source, J + "g");
+ var B = A[R], L = B.inside, de = !!B.lookbehind, z = !!B.greedy, te = B.alias;
+ if (z && !B.pattern.global) {
+ var Q = B.pattern.toString().match(/[imsuy]*$/)[0];
+ B.pattern = RegExp(B.pattern.source, Q + "g");
}
- for (var oe = L.pattern || L, V = b.next, le = D; V !== _.tail && !(C && le >= C.reach); le += V.value.length, V = V.next) {
- var De = V.value;
+ for (var oe = B.pattern || B, X = b.next, ne = D; X !== _.tail && !(k && ne >= k.reach); ne += X.value.length, X = X.next) {
+ var De = X.value;
if (_.length > m.length)
return;
if (!(De instanceof l)) {
- var A = 1, x;
- if (G) {
- if (x = c(oe, le, m, he), !x || x.index >= m.length)
+ var F = 1, x;
+ if (z) {
+ if (x = c(oe, ne, m, de), !x || x.index >= m.length)
break;
- var Ce = x.index, z = x.index + x[0].length, Q = le;
- for (Q += V.value.length; Ce >= Q; )
- V = V.next, Q += V.value.length;
- if (Q -= V.value.length, le = Q, V.value instanceof l)
+ var ke = x.index, H = x.index + x[0].length, J = ne;
+ for (J += X.value.length; ke >= J; )
+ X = X.next, J += X.value.length;
+ if (J -= X.value.length, ne = J, X.value instanceof l)
continue;
- for (var F = V; F !== _.tail && (Q < z || typeof F.value == "string"); F = F.next)
- A++, Q += F.value.length;
- A--, De = m.slice(le, Q), x.index -= le;
- } else if (x = c(oe, 0, De, he), !x)
+ for (var T = X; T !== _.tail && (J < H || typeof T.value == "string"); T = T.next)
+ F++, J += T.value.length;
+ F--, De = m.slice(ne, J), x.index -= ne;
+ } else if (x = c(oe, 0, De, de), !x)
continue;
- var Ce = x.index, ke = x[0], I = De.slice(0, Ce), q = De.slice(Ce + ke.length), j = le + De.length;
- C && j > C.reach && (C.reach = j);
- var W = V.prev;
- I && (W = h(_, W, I), le += I.length), d(_, W, A);
- var ce = new l(P, O ? o.tokenize(ke, O) : ke, ne, ke);
- if (V = h(_, W, ce), q && h(_, V, q), A > 1) {
- var T = {
+ var ke = x.index, Se = x[0], I = De.slice(0, ke), q = De.slice(ke + Se.length), j = ne + De.length;
+ k && j > k.reach && (k.reach = j);
+ var V = X.prev;
+ I && (V = h(_, V, I), ne += I.length), d(_, V, F);
+ var ce = new l(P, L ? o.tokenize(Se, L) : Se, te, Se);
+ if (X = h(_, V, ce), q && h(_, X, q), F > 1) {
+ var Ee = {
cause: P + "," + R,
reach: j
};
- u(m, _, g, V.prev, le, T), C && T.reach > C.reach && (C.reach = T.reach);
+ u(m, _, g, X.prev, ne, Ee), k && Ee.reach > k.reach && (k.reach = Ee.reach);
}
}
}
@@ -3182,7 +3182,7 @@ var bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
}
return o;
}(e);
- n.exports && (n.exports = t), typeof bl < "u" && (bl.Prism = t), t.languages.markup = {
+ n.exports && (n.exports = t), typeof vl < "u" && (vl.Prism = t), t.languages.markup = {
comment: {
pattern: //,
greedy: !0
@@ -3608,11 +3608,11 @@ var bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
m,
function(D) {
w.setAttribute(o, c);
- var C = d(w.getAttribute("data-range"));
- if (C) {
- var P = D.split(/\r\n?|\n/g), S = C[0], R = C[1] == null ? P.length : C[1];
- S < 0 && (S += P.length), S = Math.max(0, Math.min(S - 1, P.length)), R < 0 && (R += P.length), R = Math.max(0, Math.min(R, P.length)), D = P.slice(S, R).join(`
-`), w.hasAttribute("data-start") || w.setAttribute("data-start", String(S + 1));
+ var k = d(w.getAttribute("data-range"));
+ if (k) {
+ var P = D.split(/\r\n?|\n/g), A = k[0], R = k[1] == null ? P.length : k[1];
+ A < 0 && (A += P.length), A = Math.max(0, Math.min(A - 1, P.length)), R < 0 && (R += P.length), R = Math.max(0, Math.min(R, P.length)), D = P.slice(A, R).join(`
+`), w.hasAttribute("data-start") || w.setAttribute("data-start", String(A + 1));
}
E.textContent = D, t.highlightElement(E);
},
@@ -3981,7 +3981,7 @@ Prism.languages.py = Prism.languages.python;
a[r[s]] = n.languages.bash[r[s]];
n.languages.sh = n.languages.bash, n.languages.shell = n.languages.bash;
})(Prism);
-new pf();
+new mf();
const __ = (n) => {
const e = {};
for (let t = 0, i = n.length; t < i; t++) {
@@ -4504,15 +4504,15 @@ const {
SvelteComponent: b_,
append_hydration: Ua,
attr: ni,
- children: vl,
+ children: yl,
claim_component: v_,
- claim_element: yl,
+ claim_element: wl,
claim_space: y_,
claim_text: w_,
create_component: D_,
destroy_component: E_,
detach: Ha,
- element: wl,
+ element: Dl,
init: C_,
insert_hydration: k_,
mount_component: S_,
@@ -4520,7 +4520,7 @@ const {
set_data: F_,
space: T_,
text: I_,
- toggle_class: dn,
+ toggle_class: _n,
transition_in: $_,
transition_out: x_
} = window.__gradio__svelte__internal;
@@ -4529,21 +4529,21 @@ function P_(n) {
return i = new /*Icon*/
n[1]({}), {
c() {
- e = wl("label"), t = wl("span"), D_(i.$$.fragment), r = T_(), a = I_(
+ e = Dl("label"), t = Dl("span"), D_(i.$$.fragment), r = T_(), a = I_(
/*label*/
n[0]
), this.h();
},
l(l) {
- e = yl(l, "LABEL", {
+ e = wl(l, "LABEL", {
for: !0,
"data-testid": !0,
dir: !0,
class: !0
});
- var c = vl(e);
- t = yl(c, "SPAN", { class: !0 });
- var u = vl(t);
+ var c = yl(e);
+ t = wl(c, "SPAN", { class: !0 });
+ var u = yl(t);
v_(i.$$.fragment, u), u.forEach(Ha), r = y_(c), a = w_(
c,
/*label*/
@@ -4552,14 +4552,14 @@ function P_(n) {
},
h() {
ni(t, "class", "svelte-13ao5pu"), ni(e, "for", ""), ni(e, "data-testid", "block-label"), ni(e, "dir", s = /*rtl*/
- n[5] ? "rtl" : "ltr"), ni(e, "class", "svelte-13ao5pu"), dn(e, "hide", !/*show_label*/
- n[2]), dn(e, "sr-only", !/*show_label*/
- n[2]), dn(
+ n[5] ? "rtl" : "ltr"), ni(e, "class", "svelte-13ao5pu"), _n(e, "hide", !/*show_label*/
+ n[2]), _n(e, "sr-only", !/*show_label*/
+ n[2]), _n(
e,
"float",
/*float*/
n[4]
- ), dn(
+ ), _n(
e,
"hide-label",
/*disable*/
@@ -4578,17 +4578,17 @@ function P_(n) {
), (!o || c & /*rtl*/
32 && s !== (s = /*rtl*/
l[5] ? "rtl" : "ltr")) && ni(e, "dir", s), (!o || c & /*show_label*/
- 4) && dn(e, "hide", !/*show_label*/
+ 4) && _n(e, "hide", !/*show_label*/
l[2]), (!o || c & /*show_label*/
- 4) && dn(e, "sr-only", !/*show_label*/
+ 4) && _n(e, "sr-only", !/*show_label*/
l[2]), (!o || c & /*float*/
- 16) && dn(
+ 16) && _n(
e,
"float",
/*float*/
l[4]
), (!o || c & /*disable*/
- 8) && dn(
+ 8) && _n(
e,
"hide-label",
/*disable*/
@@ -4612,7 +4612,7 @@ function B_(n, e, t) {
"label" in c && t(0, i = c.label), "Icon" in c && t(1, r = c.Icon), "show_label" in c && t(2, a = c.show_label), "disable" in c && t(3, s = c.disable), "float" in c && t(4, o = c.float), "rtl" in c && t(5, l = c.rtl);
}, [i, r, a, s, o, l];
}
-class mf extends b_ {
+class gf extends b_ {
constructor(e) {
super(), C_(this, e, B_, P_, A_, {
label: 0,
@@ -4627,38 +4627,38 @@ class mf extends b_ {
const {
SvelteComponent: O_,
append_hydration: Hr,
- attr: on,
+ attr: ln,
bubble: L_,
check_outros: R_,
children: Ps,
claim_component: M_,
claim_element: Bs,
- claim_space: Dl,
+ claim_space: El,
claim_text: N_,
- construct_svelte_component: El,
- create_component: Cl,
+ construct_svelte_component: Cl,
+ create_component: kl,
create_slot: U_,
- destroy_component: kl,
+ destroy_component: Sl,
detach: qi,
element: Os,
get_all_dirty_from_scope: H_,
get_slot_changes: G_,
group_outros: z_,
init: q_,
- insert_hydration: gf,
+ insert_hydration: bf,
listen: j_,
- mount_component: Sl,
+ mount_component: Al,
safe_not_equal: V_,
set_data: W_,
set_style: mr,
- space: Al,
+ space: Fl,
text: X_,
- toggle_class: ze,
+ toggle_class: qe,
transition_in: Ga,
transition_out: za,
update_slot_base: Z_
} = window.__gradio__svelte__internal;
-function Fl(n) {
+function Tl(n) {
let e, t;
return {
c() {
@@ -4677,10 +4677,10 @@ function Fl(n) {
), r.forEach(qi), this.h();
},
h() {
- on(e, "class", "svelte-qgco6m");
+ ln(e, "class", "svelte-qgco6m");
},
m(i, r) {
- gf(i, e, r), Hr(e, t);
+ bf(i, e, r), Hr(e, t);
},
p(i, r) {
r & /*label*/
@@ -4698,7 +4698,7 @@ function Fl(n) {
function Y_(n) {
let e, t, i, r, a, s, o, l, c = (
/*show_label*/
- n[2] && Fl(n)
+ n[2] && Tl(n)
);
var u = (
/*Icon*/
@@ -4707,7 +4707,7 @@ function Y_(n) {
function f(p, v) {
return {};
}
- u && (r = El(u, f()));
+ u && (r = Cl(u, f()));
const h = (
/*#slots*/
n[14].default
@@ -4720,7 +4720,7 @@ function Y_(n) {
);
return {
c() {
- e = Os("button"), c && c.c(), t = Al(), i = Os("div"), r && Cl(r.$$.fragment), a = Al(), d && d.c(), this.h();
+ e = Os("button"), c && c.c(), t = Fl(), i = Os("div"), r && kl(r.$$.fragment), a = Fl(), d && d.c(), this.h();
},
l(p) {
e = Bs(p, "BUTTON", {
@@ -4730,63 +4730,63 @@ function Y_(n) {
class: !0
});
var v = Ps(e);
- c && c.l(v), t = Dl(v), i = Bs(v, "DIV", { class: !0 });
+ c && c.l(v), t = El(v), i = Bs(v, "DIV", { class: !0 });
var w = Ps(i);
- r && M_(r.$$.fragment, w), a = Dl(w), d && d.l(w), w.forEach(qi), v.forEach(qi), this.h();
+ r && M_(r.$$.fragment, w), a = El(w), d && d.l(w), w.forEach(qi), v.forEach(qi), this.h();
},
h() {
- on(i, "class", "svelte-qgco6m"), ze(
+ ln(i, "class", "svelte-qgco6m"), qe(
i,
"x-small",
/*size*/
n[4] === "x-small"
- ), ze(
+ ), qe(
i,
"small",
/*size*/
n[4] === "small"
- ), ze(
+ ), qe(
i,
"large",
/*size*/
n[4] === "large"
- ), ze(
+ ), qe(
i,
"medium",
/*size*/
n[4] === "medium"
), e.disabled = /*disabled*/
- n[7], on(
+ n[7], ln(
e,
"aria-label",
/*label*/
n[1]
- ), on(
+ ), ln(
e,
"aria-haspopup",
/*hasPopup*/
n[8]
- ), on(
+ ), ln(
e,
"title",
/*label*/
n[1]
- ), on(e, "class", "svelte-qgco6m"), ze(
+ ), ln(e, "class", "svelte-qgco6m"), qe(
e,
"pending",
/*pending*/
n[3]
- ), ze(
+ ), qe(
e,
"padded",
/*padded*/
n[5]
- ), ze(
+ ), qe(
e,
"highlight",
/*highlight*/
n[6]
- ), ze(
+ ), qe(
e,
"transparent",
/*transparent*/
@@ -4803,7 +4803,7 @@ function Y_(n) {
));
},
m(p, v) {
- gf(p, e, v), c && c.m(e, null), Hr(e, t), Hr(e, i), r && Sl(r, i, null), Hr(i, a), d && d.m(i, null), s = !0, o || (l = j_(
+ bf(p, e, v), c && c.m(e, null), Hr(e, t), Hr(e, i), r && Al(r, i, null), Hr(i, a), d && d.m(i, null), s = !0, o || (l = j_(
e,
"click",
/*click_handler*/
@@ -4812,17 +4812,17 @@ function Y_(n) {
},
p(p, [v]) {
if (/*show_label*/
- p[2] ? c ? c.p(p, v) : (c = Fl(p), c.c(), c.m(e, t)) : c && (c.d(1), c = null), v & /*Icon*/
+ p[2] ? c ? c.p(p, v) : (c = Tl(p), c.c(), c.m(e, t)) : c && (c.d(1), c = null), v & /*Icon*/
1 && u !== (u = /*Icon*/
p[0])) {
if (r) {
z_();
const w = r;
za(w.$$.fragment, 1, 0, () => {
- kl(w, 1);
+ Sl(w, 1);
}), R_();
}
- u ? (r = El(u, f()), Cl(r.$$.fragment), Ga(r.$$.fragment, 1), Sl(r, i, a)) : r = null;
+ u ? (r = Cl(u, f()), kl(r.$$.fragment), Ga(r.$$.fragment, 1), Al(r, i, a)) : r = null;
}
d && d.p && (!s || v & /*$$scope*/
8192) && Z_(
@@ -4843,25 +4843,25 @@ function Y_(n) {
),
null
), (!s || v & /*size*/
- 16) && ze(
+ 16) && qe(
i,
"x-small",
/*size*/
p[4] === "x-small"
), (!s || v & /*size*/
- 16) && ze(
+ 16) && qe(
i,
"small",
/*size*/
p[4] === "small"
), (!s || v & /*size*/
- 16) && ze(
+ 16) && qe(
i,
"large",
/*size*/
p[4] === "large"
), (!s || v & /*size*/
- 16) && ze(
+ 16) && qe(
i,
"medium",
/*size*/
@@ -4869,43 +4869,43 @@ function Y_(n) {
), (!s || v & /*disabled*/
128) && (e.disabled = /*disabled*/
p[7]), (!s || v & /*label*/
- 2) && on(
+ 2) && ln(
e,
"aria-label",
/*label*/
p[1]
), (!s || v & /*hasPopup*/
- 256) && on(
+ 256) && ln(
e,
"aria-haspopup",
/*hasPopup*/
p[8]
), (!s || v & /*label*/
- 2) && on(
+ 2) && ln(
e,
"title",
/*label*/
p[1]
), (!s || v & /*pending*/
- 8) && ze(
+ 8) && qe(
e,
"pending",
/*pending*/
p[3]
), (!s || v & /*padded*/
- 32) && ze(
+ 32) && qe(
e,
"padded",
/*padded*/
p[5]
), (!s || v & /*highlight*/
- 64) && ze(
+ 64) && qe(
e,
"highlight",
/*highlight*/
p[6]
), (!s || v & /*transparent*/
- 512) && ze(
+ 512) && qe(
e,
"transparent",
/*transparent*/
@@ -4930,7 +4930,7 @@ function Y_(n) {
r && za(r.$$.fragment, p), za(d, p), s = !1;
},
d(p) {
- p && qi(e), c && c.d(), r && kl(r), d && d.d(p), o = !1, l();
+ p && qi(e), c && c.d(), r && Sl(r), d && d.d(p), o = !1, l();
}
};
}
@@ -4963,7 +4963,7 @@ function K_(n, e, t) {
m
];
}
-class wn extends O_ {
+class Dn extends O_ {
constructor(e) {
super(), q_(this, e, K_, Y_, V_, {
Icon: 0,
@@ -4986,17 +4986,17 @@ const {
append_hydration: J_,
attr: qa,
binding_callbacks: ep,
- children: Tl,
- claim_element: Il,
+ children: Il,
+ claim_element: $l,
create_slot: tp,
detach: ja,
- element: $l,
+ element: xl,
get_all_dirty_from_scope: np,
get_slot_changes: ip,
init: rp,
insert_hydration: ap,
safe_not_equal: sp,
- toggle_class: _n,
+ toggle_class: pn,
transition_in: op,
transition_out: lp,
update_slot_base: up
@@ -5015,32 +5015,32 @@ function cp(n) {
);
return {
c() {
- e = $l("div"), t = $l("div"), a && a.c(), this.h();
+ e = xl("div"), t = xl("div"), a && a.c(), this.h();
},
l(s) {
- e = Il(s, "DIV", { class: !0, "aria-label": !0 });
- var o = Tl(e);
- t = Il(o, "DIV", { class: !0 });
- var l = Tl(t);
+ e = $l(s, "DIV", { class: !0, "aria-label": !0 });
+ var o = Il(e);
+ t = $l(o, "DIV", { class: !0 });
+ var l = Il(t);
a && a.l(l), l.forEach(ja), o.forEach(ja), this.h();
},
h() {
- qa(t, "class", "icon svelte-3w3rth"), qa(e, "class", "empty svelte-3w3rth"), qa(e, "aria-label", "Empty value"), _n(
+ qa(t, "class", "icon svelte-3w3rth"), qa(e, "class", "empty svelte-3w3rth"), qa(e, "aria-label", "Empty value"), pn(
e,
"small",
/*size*/
n[0] === "small"
- ), _n(
+ ), pn(
e,
"large",
/*size*/
n[0] === "large"
- ), _n(
+ ), pn(
e,
"unpadded_box",
/*unpadded_box*/
n[1]
- ), _n(
+ ), pn(
e,
"small_parent",
/*parent_height*/
@@ -5070,25 +5070,25 @@ function cp(n) {
),
null
), (!i || o & /*size*/
- 1) && _n(
+ 1) && pn(
e,
"small",
/*size*/
s[0] === "small"
), (!i || o & /*size*/
- 1) && _n(
+ 1) && pn(
e,
"large",
/*size*/
s[0] === "large"
), (!i || o & /*unpadded_box*/
- 2) && _n(
+ 2) && pn(
e,
"unpadded_box",
/*unpadded_box*/
s[1]
), (!i || o & /*parent_height*/
- 8) && _n(
+ 8) && pn(
e,
"small_parent",
/*parent_height*/
@@ -5326,7 +5326,7 @@ function gp(n) {
}
};
}
-class bf extends dp {
+class vf extends dp {
constructor(e) {
super(), _p(this, e, null, gp, mp, {});
}
@@ -5370,35 +5370,35 @@ const {
} = window.__gradio__svelte__internal, {
SvelteComponent: bp,
append_hydration: vp,
- attr: Dn,
- children: xl,
- claim_svg_element: Pl,
+ attr: En,
+ children: Pl,
+ claim_svg_element: Bl,
detach: Xa,
init: yp,
insert_hydration: wp,
noop: Za,
safe_not_equal: Dp,
- svg_element: Bl
+ svg_element: Ol
} = window.__gradio__svelte__internal;
function Ep(n) {
let e, t;
return {
c() {
- e = Bl("svg"), t = Bl("path"), this.h();
+ e = Ol("svg"), t = Ol("path"), this.h();
},
l(i) {
- e = Pl(i, "svg", {
+ e = Bl(i, "svg", {
id: !0,
xmlns: !0,
viewBox: !0,
width: !0,
height: !0
});
- var r = xl(e);
- t = Pl(r, "path", { d: !0, fill: !0 }), xl(t).forEach(Xa), r.forEach(Xa), this.h();
+ var r = Pl(e);
+ t = Bl(r, "path", { d: !0, fill: !0 }), Pl(t).forEach(Xa), r.forEach(Xa), this.h();
},
h() {
- Dn(t, "d", "M23,20a5,5,0,0,0-3.89,1.89L11.8,17.32a4.46,4.46,0,0,0,0-2.64l7.31-4.57A5,5,0,1,0,18,7a4.79,4.79,0,0,0,.2,1.32l-7.31,4.57a5,5,0,1,0,0,6.22l7.31,4.57A4.79,4.79,0,0,0,18,25a5,5,0,1,0,5-5ZM23,4a3,3,0,1,1-3,3A3,3,0,0,1,23,4ZM7,19a3,3,0,1,1,3-3A3,3,0,0,1,7,19Zm16,9a3,3,0,1,1,3-3A3,3,0,0,1,23,28Z"), Dn(t, "fill", "currentColor"), Dn(e, "id", "icon"), Dn(e, "xmlns", "http://www.w3.org/2000/svg"), Dn(e, "viewBox", "0 0 32 32"), Dn(e, "width", "100%"), Dn(e, "height", "100%");
+ En(t, "d", "M23,20a5,5,0,0,0-3.89,1.89L11.8,17.32a4.46,4.46,0,0,0,0-2.64l7.31-4.57A5,5,0,1,0,18,7a4.79,4.79,0,0,0,.2,1.32l-7.31,4.57a5,5,0,1,0,0,6.22l7.31,4.57A4.79,4.79,0,0,0,18,25a5,5,0,1,0,5-5ZM23,4a3,3,0,1,1-3,3A3,3,0,0,1,23,4ZM7,19a3,3,0,1,1,3-3A3,3,0,0,1,7,19Zm16,9a3,3,0,1,1,3-3A3,3,0,0,1,23,28Z"), En(t, "fill", "currentColor"), En(e, "id", "icon"), En(e, "xmlns", "http://www.w3.org/2000/svg"), En(e, "viewBox", "0 0 32 32"), En(e, "width", "100%"), En(e, "height", "100%");
},
m(i, r) {
wp(i, e, r), vp(e, t);
@@ -5444,30 +5444,30 @@ const {
SvelteComponent: kp,
append_hydration: Sp,
attr: ii,
- children: Ol,
- claim_svg_element: Ll,
+ children: Ll,
+ claim_svg_element: Rl,
detach: Ya,
init: Ap,
insert_hydration: Fp,
noop: Ka,
safe_not_equal: Tp,
- svg_element: Rl
+ svg_element: Ml
} = window.__gradio__svelte__internal;
function Ip(n) {
let e, t;
return {
c() {
- e = Rl("svg"), t = Rl("path"), this.h();
+ e = Ml("svg"), t = Ml("path"), this.h();
},
l(i) {
- e = Ll(i, "svg", {
+ e = Rl(i, "svg", {
xmlns: !0,
width: !0,
height: !0,
viewBox: !0
});
- var r = Ol(e);
- t = Ll(r, "path", { fill: !0, d: !0 }), Ol(t).forEach(Ya), r.forEach(Ya), this.h();
+ var r = Ll(e);
+ t = Rl(r, "path", { fill: !0, d: !0 }), Ll(t).forEach(Ya), r.forEach(Ya), this.h();
},
h() {
ii(t, "fill", "currentColor"), ii(t, "d", "M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10l10-10z"), ii(e, "xmlns", "http://www.w3.org/2000/svg"), ii(e, "width", "100%"), ii(e, "height", "100%"), ii(e, "viewBox", "0 0 32 32");
@@ -5564,23 +5564,23 @@ const {
SvelteComponent: xp,
append_hydration: Pp,
attr: St,
- children: Ml,
- claim_svg_element: Nl,
+ children: Nl,
+ claim_svg_element: Ul,
detach: Qa,
init: Bp,
insert_hydration: Op,
noop: Ja,
safe_not_equal: Lp,
- svg_element: Ul
+ svg_element: Hl
} = window.__gradio__svelte__internal;
function Rp(n) {
let e, t;
return {
c() {
- e = Ul("svg"), t = Ul("path"), this.h();
+ e = Hl("svg"), t = Hl("path"), this.h();
},
l(i) {
- e = Nl(i, "svg", {
+ e = Ul(i, "svg", {
xmlns: !0,
viewBox: !0,
fill: !0,
@@ -5592,9 +5592,9 @@ function Rp(n) {
width: !0,
height: !0
});
- var r = Ml(e);
- t = Nl(r, "path", { d: !0 });
- var a = Ml(t);
+ var r = Nl(e);
+ t = Ul(r, "path", { d: !0 });
+ var a = Nl(t);
a.forEach(Qa), r.forEach(Qa), this.h();
},
h() {
@@ -5643,24 +5643,24 @@ const {
} = window.__gradio__svelte__internal, {
SvelteComponent: Np,
append_hydration: Up,
- attr: ut,
- children: Hl,
- claim_svg_element: Gl,
+ attr: ct,
+ children: Gl,
+ claim_svg_element: zl,
detach: es,
init: Hp,
insert_hydration: Gp,
noop: ts,
safe_not_equal: zp,
- svg_element: zl
+ svg_element: ql
} = window.__gradio__svelte__internal;
function qp(n) {
let e, t;
return {
c() {
- e = zl("svg"), t = zl("path"), this.h();
+ e = ql("svg"), t = ql("path"), this.h();
},
l(i) {
- e = Gl(i, "svg", {
+ e = zl(i, "svg", {
fill: !0,
stroke: !0,
viewBox: !0,
@@ -5672,15 +5672,15 @@ function qp(n) {
"stroke-linecap": !0,
"stroke-linejoin": !0
});
- var r = Hl(e);
- t = Gl(r, "path", {
+ var r = Gl(e);
+ t = zl(r, "path", {
"stroke-linecap": !0,
"stroke-linejoin": !0,
d: !0
- }), Hl(t).forEach(es), r.forEach(es), this.h();
+ }), Gl(t).forEach(es), r.forEach(es), this.h();
},
h() {
- ut(t, "stroke-linecap", "round"), ut(t, "stroke-linejoin", "round"), ut(t, "d", "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"), ut(e, "fill", "none"), ut(e, "stroke", "currentColor"), ut(e, "viewBox", "0 0 24 24"), ut(e, "width", "100%"), ut(e, "height", "100%"), ut(e, "xmlns", "http://www.w3.org/2000/svg"), ut(e, "aria-hidden", "true"), ut(e, "stroke-width", "2"), ut(e, "stroke-linecap", "round"), ut(e, "stroke-linejoin", "round");
+ ct(t, "stroke-linecap", "round"), ct(t, "stroke-linejoin", "round"), ct(t, "d", "M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"), ct(e, "fill", "none"), ct(e, "stroke", "currentColor"), ct(e, "viewBox", "0 0 24 24"), ct(e, "width", "100%"), ct(e, "height", "100%"), ct(e, "xmlns", "http://www.w3.org/2000/svg"), ct(e, "aria-hidden", "true"), ct(e, "stroke-width", "2"), ct(e, "stroke-linecap", "round"), ct(e, "stroke-linejoin", "round");
},
m(i, r) {
Gp(i, e, r), Up(e, t);
@@ -5693,7 +5693,7 @@ function qp(n) {
}
};
}
-class vf extends Np {
+class yf extends Np {
constructor(e) {
super(), Hp(this, e, null, qp, zp, {});
}
@@ -5713,7 +5713,7 @@ const {
} = window.__gradio__svelte__internal, {
SvelteComponent: jp,
append_hydration: ns,
- attr: Se,
+ attr: Te,
children: yr,
claim_svg_element: wr,
detach: Fi,
@@ -5753,7 +5753,7 @@ function Zp(n) {
}), yr(t).forEach(Fi), i = wr(s, "circle", { cx: !0, cy: !0, r: !0 }), yr(i).forEach(Fi), r = wr(s, "polyline", { points: !0 }), yr(r).forEach(Fi), s.forEach(Fi), this.h();
},
h() {
- Se(t, "x", "3"), Se(t, "y", "3"), Se(t, "width", "18"), Se(t, "height", "18"), Se(t, "rx", "2"), Se(t, "ry", "2"), Se(i, "cx", "8.5"), Se(i, "cy", "8.5"), Se(i, "r", "1.5"), Se(r, "points", "21 15 16 10 5 21"), Se(e, "xmlns", "http://www.w3.org/2000/svg"), Se(e, "width", "100%"), Se(e, "height", "100%"), Se(e, "viewBox", "0 0 24 24"), Se(e, "fill", "none"), Se(e, "stroke", "currentColor"), Se(e, "stroke-width", "1.5"), Se(e, "stroke-linecap", "round"), Se(e, "stroke-linejoin", "round"), Se(e, "class", "feather feather-image");
+ Te(t, "x", "3"), Te(t, "y", "3"), Te(t, "width", "18"), Te(t, "height", "18"), Te(t, "rx", "2"), Te(t, "ry", "2"), Te(i, "cx", "8.5"), Te(i, "cy", "8.5"), Te(i, "r", "1.5"), Te(r, "points", "21 15 16 10 5 21"), Te(e, "xmlns", "http://www.w3.org/2000/svg"), Te(e, "width", "100%"), Te(e, "height", "100%"), Te(e, "viewBox", "0 0 24 24"), Te(e, "fill", "none"), Te(e, "stroke", "currentColor"), Te(e, "stroke-width", "1.5"), Te(e, "stroke-linecap", "round"), Te(e, "stroke-linejoin", "round"), Te(e, "class", "feather feather-image");
},
m(a, s) {
Wp(a, e, s), ns(e, t), ns(e, i), ns(e, r);
@@ -5766,7 +5766,7 @@ function Zp(n) {
}
};
}
-let So = class extends jp {
+let Ao = class extends jp {
constructor(e) {
super(), Vp(this, e, null, Zp, Xp, {});
}
@@ -5775,30 +5775,30 @@ const {
SvelteComponent: Yp,
append_hydration: Kp,
attr: ri,
- children: ql,
- claim_svg_element: jl,
+ children: jl,
+ claim_svg_element: Vl,
detach: rs,
init: Qp,
insert_hydration: Jp,
noop: as,
safe_not_equal: em,
- svg_element: Vl
+ svg_element: Wl
} = window.__gradio__svelte__internal;
function tm(n) {
let e, t;
return {
c() {
- e = Vl("svg"), t = Vl("path"), this.h();
+ e = Wl("svg"), t = Wl("path"), this.h();
},
l(i) {
- e = jl(i, "svg", {
+ e = Vl(i, "svg", {
xmlns: !0,
width: !0,
height: !0,
viewBox: !0
});
- var r = ql(e);
- t = jl(r, "path", { fill: !0, d: !0 }), ql(t).forEach(rs), r.forEach(rs), this.h();
+ var r = jl(e);
+ t = Vl(r, "path", { fill: !0, d: !0 }), jl(t).forEach(rs), r.forEach(rs), this.h();
},
h() {
ri(t, "fill", "currentColor"), ri(t, "d", "M200 32h-36.26a47.92 47.92 0 0 0-71.48 0H56a16 16 0 0 0-16 16v168a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m-72 0a32 32 0 0 1 32 32H96a32 32 0 0 1 32-32m72 184H56V48h26.75A47.9 47.9 0 0 0 80 64v8a8 8 0 0 0 8 8h80a8 8 0 0 0 8-8v-8a47.9 47.9 0 0 0-2.75-16H200Z"), ri(e, "xmlns", "http://www.w3.org/2000/svg"), ri(e, "width", "100%"), ri(e, "height", "100%"), ri(e, "viewBox", "0 0 256 256");
@@ -5883,23 +5883,23 @@ const {
SvelteComponent: im,
append_hydration: rm,
attr: At,
- children: Wl,
- claim_svg_element: Xl,
+ children: Xl,
+ claim_svg_element: Zl,
detach: ss,
init: am,
insert_hydration: sm,
noop: os,
safe_not_equal: om,
- svg_element: Zl
+ svg_element: Yl
} = window.__gradio__svelte__internal;
function lm(n) {
let e, t;
return {
c() {
- e = Zl("svg"), t = Zl("path"), this.h();
+ e = Yl("svg"), t = Yl("path"), this.h();
},
l(i) {
- e = Xl(i, "svg", {
+ e = Zl(i, "svg", {
xmlns: !0,
viewBox: !0,
fill: !0,
@@ -5911,8 +5911,8 @@ function lm(n) {
width: !0,
height: !0
});
- var r = Wl(e);
- t = Xl(r, "path", { d: !0 }), Wl(t).forEach(ss), r.forEach(ss), this.h();
+ var r = Xl(e);
+ t = Zl(r, "path", { d: !0 }), Xl(t).forEach(ss), r.forEach(ss), this.h();
},
h() {
At(t, "d", "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"), At(e, "xmlns", "http://www.w3.org/2000/svg"), At(e, "viewBox", "0 0 24 24"), At(e, "fill", "none"), At(e, "stroke", "currentColor"), At(e, "stroke-width", "2"), At(e, "stroke-linecap", "round"), At(e, "stroke-linejoin", "round"), At(e, "class", "feather feather-minimize"), At(e, "width", "100%"), At(e, "height", "100%");
@@ -5978,124 +5978,124 @@ const {
detach: KS,
init: QS,
insert_hydration: JS,
- noop: eA,
- safe_not_equal: tA,
- svg_element: nA
+ noop: e4,
+ safe_not_equal: t4,
+ svg_element: n4
} = window.__gradio__svelte__internal, {
- SvelteComponent: iA,
- append_hydration: rA,
- attr: aA,
- children: sA,
- claim_svg_element: oA,
- detach: lA,
- init: uA,
- insert_hydration: cA,
- noop: fA,
- safe_not_equal: hA,
- svg_element: dA
+ SvelteComponent: i4,
+ append_hydration: r4,
+ attr: a4,
+ children: s4,
+ claim_svg_element: o4,
+ detach: l4,
+ init: u4,
+ insert_hydration: c4,
+ noop: f4,
+ safe_not_equal: h4,
+ svg_element: d4
} = window.__gradio__svelte__internal, {
- SvelteComponent: _A,
- append_hydration: pA,
- attr: mA,
- children: gA,
- claim_svg_element: bA,
- detach: vA,
- init: yA,
- insert_hydration: wA,
- noop: DA,
- safe_not_equal: EA,
- svg_element: CA
+ SvelteComponent: _4,
+ append_hydration: p4,
+ attr: m4,
+ children: g4,
+ claim_svg_element: b4,
+ detach: v4,
+ init: y4,
+ insert_hydration: w4,
+ noop: D4,
+ safe_not_equal: E4,
+ svg_element: C4
} = window.__gradio__svelte__internal, {
- SvelteComponent: kA,
- append_hydration: SA,
- attr: AA,
- children: FA,
- claim_svg_element: TA,
- detach: IA,
- init: $A,
- insert_hydration: xA,
- noop: PA,
- safe_not_equal: BA,
- svg_element: OA
+ SvelteComponent: k4,
+ append_hydration: S4,
+ attr: A4,
+ children: F4,
+ claim_svg_element: T4,
+ detach: I4,
+ init: $4,
+ insert_hydration: x4,
+ noop: P4,
+ safe_not_equal: B4,
+ svg_element: O4
} = window.__gradio__svelte__internal, {
- SvelteComponent: LA,
- append_hydration: RA,
- attr: MA,
- children: NA,
- claim_svg_element: UA,
- detach: HA,
- init: GA,
- insert_hydration: zA,
- noop: qA,
- safe_not_equal: jA,
- svg_element: VA
+ SvelteComponent: L4,
+ append_hydration: R4,
+ attr: M4,
+ children: N4,
+ claim_svg_element: U4,
+ detach: H4,
+ init: G4,
+ insert_hydration: z4,
+ noop: q4,
+ safe_not_equal: j4,
+ svg_element: V4
} = window.__gradio__svelte__internal, {
- SvelteComponent: WA,
- append_hydration: XA,
- attr: ZA,
- children: YA,
- claim_svg_element: KA,
- detach: QA,
- init: JA,
- insert_hydration: e4,
- noop: t4,
- safe_not_equal: n4,
- set_style: i4,
- svg_element: r4
+ SvelteComponent: W4,
+ append_hydration: X4,
+ attr: Z4,
+ children: Y4,
+ claim_svg_element: K4,
+ detach: Q4,
+ init: J4,
+ insert_hydration: eA,
+ noop: tA,
+ safe_not_equal: nA,
+ set_style: iA,
+ svg_element: rA
} = window.__gradio__svelte__internal, {
- SvelteComponent: a4,
- append_hydration: s4,
- attr: o4,
- children: l4,
- claim_svg_element: u4,
- detach: c4,
- init: f4,
- insert_hydration: h4,
- noop: d4,
- safe_not_equal: _4,
- svg_element: p4
+ SvelteComponent: aA,
+ append_hydration: sA,
+ attr: oA,
+ children: lA,
+ claim_svg_element: uA,
+ detach: cA,
+ init: fA,
+ insert_hydration: hA,
+ noop: dA,
+ safe_not_equal: _A,
+ svg_element: pA
} = window.__gradio__svelte__internal, {
- SvelteComponent: m4,
- append_hydration: g4,
- attr: b4,
- children: v4,
- claim_svg_element: y4,
- detach: w4,
- init: D4,
- insert_hydration: E4,
- noop: C4,
- safe_not_equal: k4,
- svg_element: S4
+ SvelteComponent: mA,
+ append_hydration: gA,
+ attr: bA,
+ children: vA,
+ claim_svg_element: yA,
+ detach: wA,
+ init: DA,
+ insert_hydration: EA,
+ noop: CA,
+ safe_not_equal: kA,
+ svg_element: SA
} = window.__gradio__svelte__internal, {
- SvelteComponent: A4,
- append_hydration: F4,
- attr: T4,
- children: I4,
- claim_svg_element: $4,
- detach: x4,
- init: P4,
- insert_hydration: B4,
- noop: O4,
- safe_not_equal: L4,
- svg_element: R4
+ SvelteComponent: AA,
+ append_hydration: FA,
+ attr: TA,
+ children: IA,
+ claim_svg_element: $A,
+ detach: xA,
+ init: PA,
+ insert_hydration: BA,
+ noop: OA,
+ safe_not_equal: LA,
+ svg_element: RA
} = window.__gradio__svelte__internal, {
- SvelteComponent: M4,
- append_hydration: N4,
- attr: U4,
- children: H4,
- claim_svg_element: G4,
- detach: z4,
- init: q4,
- insert_hydration: j4,
- noop: V4,
- safe_not_equal: W4,
- svg_element: X4
+ SvelteComponent: MA,
+ append_hydration: NA,
+ attr: UA,
+ children: HA,
+ claim_svg_element: GA,
+ detach: zA,
+ init: qA,
+ insert_hydration: jA,
+ noop: VA,
+ safe_not_equal: WA,
+ svg_element: XA
} = window.__gradio__svelte__internal, {
- SvelteComponent: Z4,
- append_hydration: Y4,
- attr: K4,
- children: Q4,
- claim_svg_element: J4,
+ SvelteComponent: ZA,
+ append_hydration: YA,
+ attr: KA,
+ children: QA,
+ claim_svg_element: JA,
detach: eF,
init: tF,
insert_hydration: nF,
@@ -6191,7 +6191,7 @@ const {
} = window.__gradio__svelte__internal, {
SvelteComponent: cm,
append_hydration: ls,
- attr: qe,
+ attr: je,
children: Er,
claim_svg_element: Cr,
detach: Ti,
@@ -6224,7 +6224,7 @@ function _m(n) {
t = Cr(s, "path", { d: !0 }), Er(t).forEach(Ti), i = Cr(s, "polyline", { points: !0 }), Er(i).forEach(Ti), r = Cr(s, "line", { x1: !0, y1: !0, x2: !0, y2: !0 }), Er(r).forEach(Ti), s.forEach(Ti), this.h();
},
h() {
- qe(t, "d", "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"), qe(i, "points", "17 8 12 3 7 8"), qe(r, "x1", "12"), qe(r, "y1", "3"), qe(r, "x2", "12"), qe(r, "y2", "15"), qe(e, "xmlns", "http://www.w3.org/2000/svg"), qe(e, "width", "90%"), qe(e, "height", "90%"), qe(e, "viewBox", "0 0 24 24"), qe(e, "fill", "none"), qe(e, "stroke", "currentColor"), qe(e, "stroke-width", "2"), qe(e, "stroke-linecap", "round"), qe(e, "stroke-linejoin", "round"), qe(e, "class", "feather feather-upload");
+ je(t, "d", "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"), je(i, "points", "17 8 12 3 7 8"), je(r, "x1", "12"), je(r, "y1", "3"), je(r, "x2", "12"), je(r, "y2", "15"), je(e, "xmlns", "http://www.w3.org/2000/svg"), je(e, "width", "90%"), je(e, "height", "90%"), je(e, "viewBox", "0 0 24 24"), je(e, "fill", "none"), je(e, "stroke", "currentColor"), je(e, "stroke-width", "2"), je(e, "stroke-linecap", "round"), je(e, "stroke-linejoin", "round"), je(e, "class", "feather feather-upload");
},
m(a, s) {
hm(a, e, s), ls(e, t), ls(e, i), ls(e, r);
@@ -6429,7 +6429,7 @@ const {
} = window.__gradio__svelte__internal, { createEventDispatcher: km } = window.__gradio__svelte__internal;
function Sm(n) {
let e, t;
- return e = new wn({
+ return e = new Dn({
props: {
Icon: Cp,
label: (
@@ -6512,28 +6512,28 @@ function Im(n) {
}
const {
SvelteComponent: $m,
- append_hydration: xn,
+ append_hydration: Pn,
attr: Wi,
check_outros: xm,
children: Xi,
- claim_component: yf,
+ claim_component: wf,
claim_element: Zi,
claim_space: va,
- claim_text: An,
- create_component: wf,
- destroy_component: Df,
- detach: We,
+ claim_text: Fn,
+ create_component: Df,
+ destroy_component: Ef,
+ detach: Xe,
element: Yi,
empty: Kr,
group_outros: Pm,
init: Bm,
insert_hydration: Mt,
- mount_component: Ef,
+ mount_component: Cf,
safe_not_equal: Om,
set_data: Ki,
space: ya,
- text: Fn,
- toggle_class: Yl,
+ text: Tn,
+ toggle_class: Kl,
transition_in: Qr,
transition_out: Jr
} = window.__gradio__svelte__internal;
@@ -6541,13 +6541,13 @@ function Lm(n) {
let e, t;
return e = new pm({}), {
c() {
- wf(e.$$.fragment);
+ Df(e.$$.fragment);
},
l(i) {
- yf(e.$$.fragment, i);
+ wf(e.$$.fragment, i);
},
m(i, r) {
- Ef(e, i, r), t = !0;
+ Cf(e, i, r), t = !0;
},
i(i) {
t || (Qr(e.$$.fragment, i), t = !0);
@@ -6556,7 +6556,7 @@ function Lm(n) {
Jr(e.$$.fragment, i), t = !1;
},
d(i) {
- Df(e, i);
+ Ef(e, i);
}
};
}
@@ -6564,13 +6564,13 @@ function Rm(n) {
let e, t;
return e = new nm({}), {
c() {
- wf(e.$$.fragment);
+ Df(e.$$.fragment);
},
l(i) {
- yf(e.$$.fragment, i);
+ wf(e.$$.fragment, i);
},
m(i, r) {
- Ef(e, i, r), t = !0;
+ Cf(e, i, r), t = !0;
},
i(i) {
t || (Qr(e.$$.fragment, i), t = !0);
@@ -6579,7 +6579,7 @@ function Rm(n) {
Jr(e.$$.fragment, i), t = !1;
},
d(i) {
- Df(e, i);
+ Ef(e, i);
}
};
}
@@ -6596,14 +6596,14 @@ function Mm(n) {
) + ""
), t, i, r, a = (
/*mode*/
- n[3] !== "short" && Kl(n)
+ n[3] !== "short" && Ql(n)
);
return {
c() {
- t = Fn(e), i = ya(), a && a.c(), r = Kr();
+ t = Tn(e), i = ya(), a && a.c(), r = Kr();
},
l(s) {
- t = An(s, e), i = va(s), a && a.l(s), r = Kr();
+ t = Fn(s, e), i = va(s), a && a.l(s), r = Kr();
},
m(s, o) {
Mt(s, t, o), Mt(s, i, o), a && a.m(s, o), Mt(s, r, o);
@@ -6619,20 +6619,20 @@ function Mm(n) {
] || /*defs*/
s[7].file
) + "") && Ki(t, e), /*mode*/
- s[3] !== "short" ? a ? a.p(s, o) : (a = Kl(s), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
+ s[3] !== "short" ? a ? a.p(s, o) : (a = Ql(s), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
},
d(s) {
- s && (We(t), We(i), We(r)), a && a.d(s);
+ s && (Xe(t), Xe(i), Xe(r)), a && a.d(s);
}
};
}
function Nm(n) {
let e, t, i = (
/*heading*/
- n[6] && Ql(n)
+ n[6] && Jl(n)
), r = (
/*paragraph*/
- n[5] && Jl(n)
+ n[5] && eu(n)
);
return {
c() {
@@ -6646,15 +6646,15 @@ function Nm(n) {
},
p(a, s) {
/*heading*/
- a[6] ? i ? i.p(a, s) : (i = Ql(a), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null), /*paragraph*/
- a[5] ? r ? r.p(a, s) : (r = Jl(a), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
+ a[6] ? i ? i.p(a, s) : (i = Jl(a), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null), /*paragraph*/
+ a[5] ? r ? r.p(a, s) : (r = eu(a), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
},
d(a) {
- a && (We(e), We(t)), i && i.d(a), r && r.d(a);
+ a && (Xe(e), Xe(t)), i && i.d(a), r && r.d(a);
}
};
}
-function Kl(n) {
+function Ql(n) {
let e, t, i = (
/*i18n*/
n[1]("common.or") + ""
@@ -6665,18 +6665,18 @@ function Kl(n) {
), l;
return {
c() {
- e = Yi("span"), t = Fn("- "), r = Fn(i), a = Fn(" -"), s = ya(), l = Fn(o), this.h();
+ e = Yi("span"), t = Tn("- "), r = Tn(i), a = Tn(" -"), s = ya(), l = Tn(o), this.h();
},
l(c) {
e = Zi(c, "SPAN", { class: !0 });
var u = Xi(e);
- t = An(u, "- "), r = An(u, i), a = An(u, " -"), u.forEach(We), s = va(c), l = An(c, o), this.h();
+ t = Fn(u, "- "), r = Fn(u, i), a = Fn(u, " -"), u.forEach(Xe), s = va(c), l = Fn(c, o), this.h();
},
h() {
Wi(e, "class", "or svelte-1xg7h5n");
},
m(c, u) {
- Mt(c, e, u), xn(e, t), xn(e, r), xn(e, a), Mt(c, s, u), Mt(c, l, u);
+ Mt(c, e, u), Pn(e, t), Pn(e, r), Pn(e, a), Mt(c, s, u), Mt(c, l, u);
},
p(c, u) {
u & /*i18n*/
@@ -6687,15 +6687,15 @@ function Kl(n) {
c[1]("upload_text.click_to_upload")) + "") && Ki(l, o);
},
d(c) {
- c && (We(e), We(s), We(l));
+ c && (Xe(e), Xe(s), Xe(l));
}
};
}
-function Ql(n) {
+function Jl(n) {
let e, t;
return {
c() {
- e = Yi("h2"), t = Fn(
+ e = Yi("h2"), t = Tn(
/*heading*/
n[6]
), this.h();
@@ -6703,17 +6703,17 @@ function Ql(n) {
l(i) {
e = Zi(i, "H2", { class: !0 });
var r = Xi(e);
- t = An(
+ t = Fn(
r,
/*heading*/
n[6]
- ), r.forEach(We), this.h();
+ ), r.forEach(Xe), this.h();
},
h() {
Wi(e, "class", "svelte-1xg7h5n");
},
m(i, r) {
- Mt(i, e, r), xn(e, t);
+ Mt(i, e, r), Pn(e, t);
},
p(i, r) {
r & /*heading*/
@@ -6724,15 +6724,15 @@ function Ql(n) {
);
},
d(i) {
- i && We(e);
+ i && Xe(e);
}
};
}
-function Jl(n) {
+function eu(n) {
let e, t;
return {
c() {
- e = Yi("p"), t = Fn(
+ e = Yi("p"), t = Tn(
/*paragraph*/
n[5]
), this.h();
@@ -6740,17 +6740,17 @@ function Jl(n) {
l(i) {
e = Zi(i, "P", { class: !0 });
var r = Xi(e);
- t = An(
+ t = Fn(
r,
/*paragraph*/
n[5]
- ), r.forEach(We), this.h();
+ ), r.forEach(Xe), this.h();
},
h() {
Wi(e, "class", "svelte-1xg7h5n");
},
m(i, r) {
- Mt(i, e, r), xn(e, t);
+ Mt(i, e, r), Pn(e, t);
},
p(i, r) {
r & /*paragraph*/
@@ -6761,7 +6761,7 @@ function Jl(n) {
);
},
d(i) {
- i && We(e);
+ i && Xe(e);
}
};
}
@@ -6792,10 +6792,10 @@ function Um(n) {
var p = Xi(e);
t = Zi(p, "SPAN", { class: !0 });
var v = Xi(t);
- r.l(v), v.forEach(We), a = va(p), h.l(p), p.forEach(We), this.h();
+ r.l(v), v.forEach(Xe), a = va(p), h.l(p), p.forEach(Xe), this.h();
},
h() {
- Wi(t, "class", "icon-wrap svelte-1xg7h5n"), Yl(
+ Wi(t, "class", "icon-wrap svelte-1xg7h5n"), Kl(
t,
"hovered",
/*hovered*/
@@ -6803,14 +6803,14 @@ function Um(n) {
), Wi(e, "class", "wrap svelte-1xg7h5n");
},
m(d, p) {
- Mt(d, e, p), xn(e, t), l[i].m(t, null), xn(e, a), h.m(e, null), s = !0;
+ Mt(d, e, p), Pn(e, t), l[i].m(t, null), Pn(e, a), h.m(e, null), s = !0;
},
p(d, [p]) {
let v = i;
i = c(d), i !== v && (Pm(), Jr(l[v], 1, 1, () => {
l[v] = null;
}), xm(), r = l[i], r || (r = l[i] = o[i](d), r.c()), Qr(r, 1), r.m(t, null)), (!s || p & /*hovered*/
- 16) && Yl(
+ 16) && Kl(
t,
"hovered",
/*hovered*/
@@ -6824,7 +6824,7 @@ function Um(n) {
Jr(r), s = !1;
},
d(d) {
- d && We(e), l[i].d(), h.d();
+ d && Xe(e), l[i].d(), h.d();
}
};
}
@@ -6901,17 +6901,17 @@ const {
transition_out: _6
} = window.__gradio__svelte__internal, {
SvelteComponent: zm,
- attr: eu,
+ attr: tu,
children: qm,
claim_element: jm,
create_slot: Vm,
- detach: tu,
+ detach: nu,
element: Wm,
get_all_dirty_from_scope: Xm,
get_slot_changes: Zm,
init: Ym,
insert_hydration: Km,
- null_to_empty: nu,
+ null_to_empty: iu,
safe_not_equal: Qm,
transition_in: Jm,
transition_out: eg,
@@ -6936,10 +6936,10 @@ function ng(n) {
l(s) {
e = jm(s, "DIV", { class: !0 });
var o = qm(e);
- a && a.l(o), o.forEach(tu), this.h();
+ a && a.l(o), o.forEach(nu), this.h();
},
h() {
- eu(e, "class", t = nu(`icon-button-wrapper ${/*top_panel*/
+ tu(e, "class", t = iu(`icon-button-wrapper ${/*top_panel*/
n[0] ? "top-panel" : ""} ${/*display_top_corner*/
n[1] ? "display-top-corner" : "hide-top-corner"}`) + " svelte-109se4");
},
@@ -6966,9 +6966,9 @@ function ng(n) {
),
null
), (!i || o & /*top_panel, display_top_corner*/
- 3 && t !== (t = nu(`icon-button-wrapper ${/*top_panel*/
+ 3 && t !== (t = iu(`icon-button-wrapper ${/*top_panel*/
s[0] ? "top-panel" : ""} ${/*display_top_corner*/
- s[1] ? "display-top-corner" : "hide-top-corner"}`) + " svelte-109se4")) && eu(e, "class", t);
+ s[1] ? "display-top-corner" : "hide-top-corner"}`) + " svelte-109se4")) && tu(e, "class", t);
},
i(s) {
i || (Jm(a, s), i = !0);
@@ -6977,7 +6977,7 @@ function ng(n) {
eg(a, s), i = !1;
},
d(s) {
- s && tu(e), a && a.d(s);
+ s && nu(e), a && a.d(s);
}
};
}
@@ -6987,7 +6987,7 @@ function ig(n, e, t) {
"top_panel" in o && t(0, a = o.top_panel), "display_top_corner" in o && t(1, s = o.display_top_corner), "$$scope" in o && t(2, r = o.$$scope);
}, [a, s, r, i];
}
-class Cf extends zm {
+class kf extends zm {
constructor(e) {
super(), Ym(this, e, ig, ng, Qm, { top_panel: 0, display_top_corner: 1 });
}
@@ -6995,23 +6995,23 @@ class Cf extends zm {
const {
SvelteComponent: rg,
check_outros: ag,
- claim_component: kf,
- create_component: Sf,
- destroy_component: Af,
+ claim_component: Sf,
+ create_component: Af,
+ destroy_component: Ff,
detach: sg,
- empty: iu,
+ empty: ru,
group_outros: og,
init: lg,
insert_hydration: ug,
- mount_component: Ff,
- noop: Tf,
+ mount_component: Tf,
+ noop: If,
safe_not_equal: cg,
transition_in: ea,
transition_out: ta
} = window.__gradio__svelte__internal, { createEventDispatcher: fg } = window.__gradio__svelte__internal;
function hg(n) {
let e, t;
- return e = new wn({
+ return e = new Dn({
props: { Icon: Mp, label: "Fullscreen" }
}), e.$on(
"click",
@@ -7019,15 +7019,15 @@ function hg(n) {
n[3]
), {
c() {
- Sf(e.$$.fragment);
+ Af(e.$$.fragment);
},
l(i) {
- kf(e.$$.fragment, i);
+ Sf(e.$$.fragment, i);
},
m(i, r) {
- Ff(e, i, r), t = !0;
+ Tf(e, i, r), t = !0;
},
- p: Tf,
+ p: If,
i(i) {
t || (ea(e.$$.fragment, i), t = !0);
},
@@ -7035,13 +7035,13 @@ function hg(n) {
ta(e.$$.fragment, i), t = !1;
},
d(i) {
- Af(e, i);
+ Ff(e, i);
}
};
}
function dg(n) {
let e, t;
- return e = new wn({
+ return e = new Dn({
props: {
Icon: um,
label: "Exit fullscreen mode"
@@ -7052,15 +7052,15 @@ function dg(n) {
n[2]
), {
c() {
- Sf(e.$$.fragment);
+ Af(e.$$.fragment);
},
l(i) {
- kf(e.$$.fragment, i);
+ Sf(e.$$.fragment, i);
},
m(i, r) {
- Ff(e, i, r), t = !0;
+ Tf(e, i, r), t = !0;
},
- p: Tf,
+ p: If,
i(i) {
t || (ea(e.$$.fragment, i), t = !0);
},
@@ -7068,7 +7068,7 @@ function dg(n) {
ta(e.$$.fragment, i), t = !1;
},
d(i) {
- Af(e, i);
+ Ff(e, i);
}
};
}
@@ -7083,10 +7083,10 @@ function _g(n) {
}
return e = o(n), t = s[e] = a[e](n), {
c() {
- t.c(), i = iu();
+ t.c(), i = ru();
},
l(l) {
- t.l(l), i = iu();
+ t.l(l), i = ru();
},
m(l, c) {
s[e].m(l, c), ug(l, i, c), r = !0;
@@ -7116,12 +7116,12 @@ function pg(n, e, t) {
"fullscreen" in o && t(0, r = o.fullscreen);
}, [r, i, a, s];
}
-class If extends rg {
+class $f extends rg {
constructor(e) {
super(), lg(this, e, pg, _g, cg, { fullscreen: 0 });
}
}
-const $f = (n) => {
+const xf = (n) => {
let e;
if (n.currentTarget instanceof Element)
e = n.currentTarget.querySelector("img");
@@ -7137,7 +7137,7 @@ const $f = (n) => {
}
return a < 0 || a >= e.naturalWidth || s < 0 || s >= e.naturalHeight ? null : [a, s];
}, { setContext: p6, getContext: mg } = window.__gradio__svelte__internal, gg = "WORKER_PROXY_CONTEXT_KEY";
-function xf() {
+function Pf() {
return mg(gg);
}
const bg = "lite.local";
@@ -7145,13 +7145,13 @@ function vg(n) {
return n.host === window.location.host || n.host === "localhost:7860" || n.host === "127.0.0.1:7860" || // Ref: https://github.com/gradio-app/gradio/blob/v3.32.0/js/app/src/Index.svelte#L194
n.host === bg;
}
-function Pf(n, e) {
+function Bf(n, e) {
const t = e.toLowerCase();
for (const [i, r] of Object.entries(n))
if (i.toLowerCase() === t)
return r;
}
-function Bf(n) {
+function Of(n) {
const e = typeof window < "u";
if (n == null || !e)
return !1;
@@ -7161,11 +7161,11 @@ function Bf(n) {
let Sr;
async function yg(n) {
const e = typeof window < "u";
- if (n == null || !e || !Bf(n))
+ if (n == null || !e || !Of(n))
return n;
if (Sr == null)
try {
- Sr = xf();
+ Sr = Pf();
} catch {
return n;
}
@@ -7181,7 +7181,7 @@ async function yg(n) {
if (r.status !== 200)
throw new Error(`Failed to get file ${i} from the Wasm worker.`);
const a = new Blob([r.body], {
- type: Pf(r.headers, "content-type")
+ type: Bf(r.headers, "content-type")
});
return URL.createObjectURL(a);
});
@@ -7189,37 +7189,37 @@ async function yg(n) {
const {
SvelteComponent: wg,
assign: na,
- check_outros: Of,
- children: Lf,
- claim_element: Rf,
- compute_rest_props: ru,
- create_slot: Ao,
+ check_outros: Lf,
+ children: Rf,
+ claim_element: Mf,
+ compute_rest_props: au,
+ create_slot: Fo,
detach: di,
- element: Mf,
+ element: Nf,
empty: ia,
exclude_internal_props: Dg,
- get_all_dirty_from_scope: Fo,
- get_slot_changes: To,
- get_spread_update: Nf,
- group_outros: Uf,
+ get_all_dirty_from_scope: To,
+ get_slot_changes: Io,
+ get_spread_update: Uf,
+ group_outros: Hf,
init: Eg,
insert_hydration: wa,
- listen: Hf,
+ listen: Gf,
prevent_default: Cg,
safe_not_equal: kg,
set_attributes: ra,
- set_style: au,
+ set_style: su,
toggle_class: aa,
- transition_in: Nn,
- transition_out: Un,
- update_slot_base: Io
+ transition_in: Un,
+ transition_out: Hn,
+ update_slot_base: $o
} = window.__gradio__svelte__internal, { createEventDispatcher: Sg, onMount: m6 } = window.__gradio__svelte__internal;
function Ag(n) {
let e, t, i, r, a;
const s = (
/*#slots*/
n[8].default
- ), o = Ao(
+ ), o = Fo(
s,
n,
/*$$scope*/
@@ -7247,24 +7247,24 @@ function Ag(n) {
c = na(c, l[u]);
return {
c() {
- e = Mf("a"), o && o.c(), this.h();
+ e = Nf("a"), o && o.c(), this.h();
},
l(u) {
- e = Rf(u, "A", {
+ e = Mf(u, "A", {
class: !0,
href: !0,
target: !0,
rel: !0,
download: !0
});
- var f = Lf(e);
+ var f = Rf(e);
o && o.l(f), f.forEach(di), this.h();
},
h() {
- ra(e, c), au(e, "position", "relative"), aa(e, "svelte-151nsdd", !0);
+ ra(e, c), su(e, "position", "relative"), aa(e, "svelte-151nsdd", !0);
},
m(u, f) {
- wa(u, e, f), o && o.m(e, null), i = !0, r || (a = Hf(
+ wa(u, e, f), o && o.m(e, null), i = !0, r || (a = Gf(
e,
"click",
/*dispatch*/
@@ -7273,24 +7273,24 @@ function Ag(n) {
},
p(u, f) {
o && o.p && (!i || f & /*$$scope*/
- 128) && Io(
+ 128) && $o(
o,
s,
u,
/*$$scope*/
u[7],
- i ? To(
+ i ? Io(
s,
/*$$scope*/
u[7],
f,
null
- ) : Fo(
+ ) : To(
/*$$scope*/
u[7]
),
null
- ), ra(e, c = Nf(l, [
+ ), ra(e, c = Uf(l, [
{ class: "download-link" },
(!i || f & /*href*/
1) && { href: (
@@ -7307,13 +7307,13 @@ function Ag(n) {
f & /*$$restProps*/
64 && /*$$restProps*/
u[6]
- ])), au(e, "position", "relative"), aa(e, "svelte-151nsdd", !0);
+ ])), su(e, "position", "relative"), aa(e, "svelte-151nsdd", !0);
},
i(u) {
- i || (Nn(o, u), i = !0);
+ i || (Un(o, u), i = !0);
},
o(u) {
- Un(o, u), i = !1;
+ Hn(o, u), i = !1;
},
d(u) {
u && di(e), o && o.d(u), r = !1, a();
@@ -7341,15 +7341,15 @@ function Fg(n) {
},
p(l, c) {
let u = e;
- e = o(l), e === u ? s[e].p(l, c) : (Uf(), Un(s[u], 1, 1, () => {
+ e = o(l), e === u ? s[e].p(l, c) : (Hf(), Hn(s[u], 1, 1, () => {
s[u] = null;
- }), Of(), t = s[e], t ? t.p(l, c) : (t = s[e] = a[e](l), t.c()), Nn(t, 1), t.m(i.parentNode, i));
+ }), Lf(), t = s[e], t ? t.p(l, c) : (t = s[e] = a[e](l), t.c()), Un(t, 1), t.m(i.parentNode, i));
},
i(l) {
- r || (Nn(t), r = !0);
+ r || (Un(t), r = !0);
},
o(l) {
- Un(t), r = !1;
+ Hn(t), r = !1;
},
d(l) {
l && di(i), s[e].d(l);
@@ -7361,7 +7361,7 @@ function Tg(n) {
const a = (
/*#slots*/
n[8].default
- ), s = Ao(
+ ), s = Fo(
a,
n,
/*$$scope*/
@@ -7380,42 +7380,42 @@ function Tg(n) {
l = na(l, o[c]);
return {
c() {
- e = Mf("a"), s && s.c(), this.h();
+ e = Nf("a"), s && s.c(), this.h();
},
l(c) {
- e = Rf(c, "A", { href: !0 });
- var u = Lf(e);
+ e = Mf(c, "A", { href: !0 });
+ var u = Rf(e);
s && s.l(u), u.forEach(di), this.h();
},
h() {
ra(e, l), aa(e, "svelte-151nsdd", !0);
},
m(c, u) {
- wa(c, e, u), s && s.m(e, null), t = !0, i || (r = Hf(e, "click", Cg(
+ wa(c, e, u), s && s.m(e, null), t = !0, i || (r = Gf(e, "click", Cg(
/*wasm_click_handler*/
n[5]
)), i = !0);
},
p(c, u) {
s && s.p && (!t || u & /*$$scope*/
- 128) && Io(
+ 128) && $o(
s,
a,
c,
/*$$scope*/
c[7],
- t ? To(
+ t ? Io(
a,
/*$$scope*/
c[7],
u,
null
- ) : Fo(
+ ) : To(
/*$$scope*/
c[7]
),
null
- ), ra(e, l = Nf(o, [
+ ), ra(e, l = Uf(o, [
u & /*$$restProps*/
64 && /*$$restProps*/
c[6],
@@ -7427,10 +7427,10 @@ function Tg(n) {
])), aa(e, "svelte-151nsdd", !0);
},
i(c) {
- t || (Nn(s, c), t = !0);
+ t || (Un(s, c), t = !0);
},
o(c) {
- Un(s, c), t = !1;
+ Hn(s, c), t = !1;
},
d(c) {
c && di(e), s && s.d(c), i = !1, r();
@@ -7442,7 +7442,7 @@ function Ig(n) {
const t = (
/*#slots*/
n[8].default
- ), i = Ao(
+ ), i = Fo(
t,
n,
/*$$scope*/
@@ -7461,19 +7461,19 @@ function Ig(n) {
},
p(r, a) {
i && i.p && (!e || a & /*$$scope*/
- 128) && Io(
+ 128) && $o(
i,
t,
r,
/*$$scope*/
r[7],
- e ? To(
+ e ? Io(
t,
/*$$scope*/
r[7],
a,
null
- ) : Fo(
+ ) : To(
/*$$scope*/
r[7]
),
@@ -7481,10 +7481,10 @@ function Ig(n) {
);
},
i(r) {
- e || (Nn(i, r), e = !0);
+ e || (Un(i, r), e = !0);
},
o(r) {
- Un(i, r), e = !1;
+ Hn(i, r), e = !1;
},
d(r) {
i && i.d(r);
@@ -7497,7 +7497,7 @@ function $g(n) {
function l(c, u) {
return u & /*href*/
1 && (e = null), e == null && (e = !!/*worker_proxy*/
- (c[4] && Bf(
+ (c[4] && Of(
/*href*/
c[0]
))), e ? 0 : 1;
@@ -7514,15 +7514,15 @@ function $g(n) {
},
p(c, [u]) {
let f = t;
- t = l(c, u), t === f ? o[t].p(c, u) : (Uf(), Un(o[f], 1, 1, () => {
+ t = l(c, u), t === f ? o[t].p(c, u) : (Hf(), Hn(o[f], 1, 1, () => {
o[f] = null;
- }), Of(), i = o[t], i ? i.p(c, u) : (i = o[t] = s[t](c), i.c()), Nn(i, 1), i.m(r.parentNode, r));
+ }), Lf(), i = o[t], i ? i.p(c, u) : (i = o[t] = s[t](c), i.c()), Un(i, 1), i.m(r.parentNode, r));
},
i(c) {
- a || (Nn(i), a = !0);
+ a || (Un(i), a = !0);
},
o(c) {
- Un(i), a = !1;
+ Hn(i), a = !1;
},
d(c) {
c && di(r), o[t].d(c);
@@ -7531,7 +7531,7 @@ function $g(n) {
}
function xg(n, e, t) {
const i = ["href", "download"];
- let r = ru(e, i), { $$slots: a = {}, $$scope: s } = e;
+ let r = au(e, i), { $$slots: a = {}, $$scope: s } = e;
var o = this && this.__awaiter || function(p, v, w, E) {
function m(_) {
return _ instanceof w ? _ : new w(function(g) {
@@ -7541,28 +7541,28 @@ function xg(n, e, t) {
return new (w || (w = Promise))(function(_, g) {
function b(P) {
try {
- C(E.next(P));
- } catch (S) {
- g(S);
+ k(E.next(P));
+ } catch (A) {
+ g(A);
}
}
function D(P) {
try {
- C(E.throw(P));
- } catch (S) {
- g(S);
+ k(E.throw(P));
+ } catch (A) {
+ g(A);
}
}
- function C(P) {
+ function k(P) {
P.done ? _(P.value) : m(P.value).then(b, D);
}
- C((E = E.apply(p, v || [])).next());
+ k((E = E.apply(p, v || [])).next());
});
};
let { href: l = void 0 } = e, { download: c } = e;
const u = Sg();
let f = !1;
- const h = xf();
+ const h = Pf();
function d() {
return o(this, void 0, void 0, function* () {
if (f)
@@ -7583,7 +7583,7 @@ function xg(n, e, t) {
const E = new Blob(
[w.body],
{
- type: Pf(w.headers, "content-type")
+ type: Bf(w.headers, "content-type")
}
), m = URL.createObjectURL(E), _ = document.createElement("a");
_.href = m, _.download = c, _.click(), URL.revokeObjectURL(m);
@@ -7593,7 +7593,7 @@ function xg(n, e, t) {
});
}
return n.$$set = (p) => {
- e = na(na({}, e), Dg(p)), t(6, r = ru(e, i)), "href" in p && t(0, l = p.href), "download" in p && t(1, c = p.download), "$$scope" in p && t(7, s = p.$$scope);
+ e = na(na({}, e), Dg(p)), t(6, r = au(e, i)), "href" in p && t(0, l = p.href), "download" in p && t(1, c = p.download), "$$scope" in p && t(7, s = p.$$scope);
}, [
l,
c,
@@ -7616,7 +7616,7 @@ const {
assign: Ls,
bubble: Og,
claim_element: Lg,
- compute_rest_props: su,
+ compute_rest_props: ou,
detach: Rg,
element: Mg,
exclude_internal_props: Ng,
@@ -7624,11 +7624,11 @@ const {
init: Hg,
insert_hydration: Gg,
listen: zg,
- noop: ou,
+ noop: lu,
safe_not_equal: qg,
- set_attributes: lu,
+ set_attributes: uu,
src_url_equal: jg,
- toggle_class: uu
+ toggle_class: cu
} = window.__gradio__svelte__internal;
function Vg(n) {
let e, t, i, r, a = [
@@ -7649,7 +7649,7 @@ function Vg(n) {
e = Lg(o, "IMG", { src: !0 }), this.h();
},
h() {
- lu(e, s), uu(e, "svelte-kxeri3", !0);
+ uu(e, s), cu(e, "svelte-kxeri3", !0);
},
m(o, l) {
Gg(o, e, l), i || (r = zg(
@@ -7660,17 +7660,17 @@ function Vg(n) {
), i = !0);
},
p(o, [l]) {
- lu(e, s = Ug(a, [
+ uu(e, s = Ug(a, [
l & /*resolved_src*/
1 && !jg(e.src, t = /*resolved_src*/
o[0]) && { src: t },
l & /*$$restProps*/
2 && /*$$restProps*/
o[1]
- ])), uu(e, "svelte-kxeri3", !0);
+ ])), cu(e, "svelte-kxeri3", !0);
},
- i: ou,
- o: ou,
+ i: lu,
+ o: lu,
d(o) {
o && Rg(e), i = !1, r();
}
@@ -7678,12 +7678,12 @@ function Vg(n) {
}
function Wg(n, e, t) {
const i = ["src"];
- let r = su(e, i), { src: a = void 0 } = e, s, o;
+ let r = ou(e, i), { src: a = void 0 } = e, s, o;
function l(c) {
Og.call(this, n, c);
}
return n.$$set = (c) => {
- e = Ls(Ls({}, e), Ng(c)), t(1, r = su(e, i)), "src" in c && t(2, a = c.src);
+ e = Ls(Ls({}, e), Ng(c)), t(1, r = ou(e, i)), "src" in c && t(2, a = c.src);
}, n.$$.update = () => {
if (n.$$.dirty & /*src, latest_src*/
12) {
@@ -7695,13 +7695,13 @@ function Wg(n, e, t) {
}
}, [s, r, a, o, l];
}
-class $o extends Bg {
+class xo extends Bg {
constructor(e) {
super(), Hg(this, e, Wg, Vg, qg, { src: 2 });
}
}
var Da = typeof self < "u" ? self : global;
-const Qi = typeof navigator < "u", Xg = Qi && typeof HTMLImageElement > "u", sa = !(typeof global > "u" || typeof process > "u" || !process.versions || !process.versions.node), xo = Da.Buffer, Ar = Da.BigInt, Po = !!xo, Zg = (n) => n;
+const Qi = typeof navigator < "u", Xg = Qi && typeof HTMLImageElement > "u", sa = !(typeof global > "u" || typeof process > "u" || !process.versions || !process.versions.node), Po = Da.Buffer, Ar = Da.BigInt, Bo = !!Po, Zg = (n) => n;
function oa(n, e = Zg) {
if (sa) try {
return typeof require == "function" ? Promise.resolve(e(require(n))) : import(
@@ -7712,8 +7712,8 @@ function oa(n, e = Zg) {
console.warn(`Couldn't load ${n}`);
}
}
-let Bo = Da.fetch;
-const Yg = (n) => Bo = n;
+let Oo = Da.fetch;
+const Yg = (n) => Oo = n;
if (!Da.fetch) {
const n = oa("http", (i) => i), e = oa("https", (i) => i), t = (i, { headers: r } = {}) => new Promise(async (a, s) => {
let { port: o, hostname: l, pathname: c, protocol: u, search: f } = new URL(i);
@@ -7736,15 +7736,15 @@ if (!Da.fetch) {
function U(n, e, t) {
return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
}
-const la = (n) => Gf(n) ? void 0 : n, Kg = (n) => n !== void 0;
-function Gf(n) {
+const la = (n) => zf(n) ? void 0 : n, Kg = (n) => n !== void 0;
+function zf(n) {
return n === void 0 || (n instanceof Map ? n.size === 0 : Object.values(n).filter(Kg).length === 0);
}
-function Fe(n) {
+function $e(n) {
let e = new Error(n);
throw delete e.stack, e;
}
-function Tn(n) {
+function In(n) {
return (n = function(e) {
for (; e.endsWith("\0"); ) e = e.slice(0, -1);
return e;
@@ -7757,13 +7757,13 @@ function Rs(n) {
}(n);
return n.jfif.enabled && (e += 50), n.xmp.enabled && (e += 2e4), n.iptc.enabled && (e += 14e3), n.icc.enabled && (e += 6e3), e;
}
-const Ms = (n) => String.fromCharCode.apply(null, n), cu = typeof TextDecoder < "u" ? new TextDecoder("utf-8") : void 0;
-function zf(n) {
- return cu ? cu.decode(n) : Po ? Buffer.from(n).toString("utf8") : decodeURIComponent(escape(Ms(n)));
+const Ms = (n) => String.fromCharCode.apply(null, n), fu = typeof TextDecoder < "u" ? new TextDecoder("utf-8") : void 0;
+function qf(n) {
+ return fu ? fu.decode(n) : Bo ? Buffer.from(n).toString("utf8") : decodeURIComponent(escape(Ms(n)));
}
-class ot {
+class lt {
static from(e, t) {
- return e instanceof this && e.le === t ? e : new ot(e, void 0, void 0, t);
+ return e instanceof this && e.le === t ? e : new lt(e, void 0, void 0, t);
}
constructor(e, t = 0, i, r) {
if (typeof r == "boolean" && (this.le = r), Array.isArray(e) && (e = new Uint8Array(e)), e === 0) this.byteOffset = 0, this.byteLength = 0;
@@ -7771,14 +7771,14 @@ class ot {
i === void 0 && (i = e.byteLength - t);
let a = new DataView(e, t, i);
this._swapDataView(a);
- } else if (e instanceof Uint8Array || e instanceof DataView || e instanceof ot) {
- i === void 0 && (i = e.byteLength - t), (t += e.byteOffset) + i > e.byteOffset + e.byteLength && Fe("Creating view outside of available memory in ArrayBuffer");
+ } else if (e instanceof Uint8Array || e instanceof DataView || e instanceof lt) {
+ i === void 0 && (i = e.byteLength - t), (t += e.byteOffset) + i > e.byteOffset + e.byteLength && $e("Creating view outside of available memory in ArrayBuffer");
let a = new DataView(e.buffer, t, i);
this._swapDataView(a);
} else if (typeof e == "number") {
let a = new DataView(new ArrayBuffer(e));
this._swapDataView(a);
- } else Fe("Invalid input argument for BufferView: " + e);
+ } else $e("Invalid input argument for BufferView: " + e);
}
_swapArrayBuffer(e) {
this._swapDataView(new DataView(e));
@@ -7792,11 +7792,11 @@ class ot {
_lengthToEnd(e) {
return this.byteLength - e;
}
- set(e, t, i = ot) {
- return e instanceof DataView || e instanceof ot ? e = new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : e instanceof ArrayBuffer && (e = new Uint8Array(e)), e instanceof Uint8Array || Fe("BufferView.set(): Invalid data argument."), this.toUint8().set(e, t), new i(this, t, e.byteLength);
+ set(e, t, i = lt) {
+ return e instanceof DataView || e instanceof lt ? e = new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : e instanceof ArrayBuffer && (e = new Uint8Array(e)), e instanceof Uint8Array || $e("BufferView.set(): Invalid data argument."), this.toUint8().set(e, t), new i(this, t, e.byteLength);
}
subarray(e, t) {
- return t = t || this._lengthToEnd(e), new ot(this, e, t);
+ return t = t || this._lengthToEnd(e), new lt(this, e, t);
}
toUint8() {
return new Uint8Array(this.buffer, this.byteOffset, this.byteLength);
@@ -7805,7 +7805,7 @@ class ot {
return new Uint8Array(this.buffer, this.byteOffset + e, t);
}
getString(e = 0, t = this.byteLength) {
- return zf(this.getUint8Array(e, t));
+ return qf(this.getUint8Array(e, t));
}
getLatin1String(e = 0, t = this.byteLength) {
let i = this.getUint8Array(e, t);
@@ -7877,40 +7877,40 @@ class ot {
}
}
function Ns(n, e) {
- Fe(`${n} '${e}' was not loaded, try using full build of exifr.`);
+ $e(`${n} '${e}' was not loaded, try using full build of exifr.`);
}
-class Oo extends Map {
+class Lo extends Map {
constructor(e) {
super(), this.kind = e;
}
get(e, t) {
return this.has(e) || Ns(this.kind, e), t && (e in t || function(i, r) {
- Fe(`Unknown ${i} '${r}'.`);
+ $e(`Unknown ${i} '${r}'.`);
}(this.kind, e), t[e].enabled || Ns(this.kind, e)), super.get(e);
}
keyList() {
return Array.from(this.keys());
}
}
-var _i = new Oo("file parser"), Ve = new Oo("segment parser"), wi = new Oo("file reader");
+var _i = new Lo("file parser"), We = new Lo("segment parser"), wi = new Lo("file reader");
function Qg(n, e) {
- return typeof n == "string" ? fu(n, e) : Qi && !Xg && n instanceof HTMLImageElement ? fu(n.src, e) : n instanceof Uint8Array || n instanceof ArrayBuffer || n instanceof DataView ? new ot(n) : Qi && n instanceof Blob ? Us(n, e, "blob", zs) : void Fe("Invalid input argument");
+ return typeof n == "string" ? hu(n, e) : Qi && !Xg && n instanceof HTMLImageElement ? hu(n.src, e) : n instanceof Uint8Array || n instanceof ArrayBuffer || n instanceof DataView ? new lt(n) : Qi && n instanceof Blob ? Us(n, e, "blob", zs) : void $e("Invalid input argument");
}
-function fu(n, e) {
- return (t = n).startsWith("data:") || t.length > 1e4 ? Hs(n, e, "base64") : sa && n.includes("://") ? Us(n, e, "url", Gs) : sa ? Hs(n, e, "fs") : Qi ? Us(n, e, "url", Gs) : void Fe("Invalid input argument");
+function hu(n, e) {
+ return (t = n).startsWith("data:") || t.length > 1e4 ? Hs(n, e, "base64") : sa && n.includes("://") ? Us(n, e, "url", Gs) : sa ? Hs(n, e, "fs") : Qi ? Us(n, e, "url", Gs) : void $e("Invalid input argument");
var t;
}
async function Us(n, e, t, i) {
return wi.has(t) ? Hs(n, e, t) : i ? async function(r, a) {
let s = await a(r);
- return new ot(s);
- }(n, i) : void Fe(`Parser ${t} is not loaded`);
+ return new lt(s);
+ }(n, i) : void $e(`Parser ${t} is not loaded`);
}
async function Hs(n, e, t) {
let i = new (wi.get(t))(n, e);
return await i.read(), i;
}
-const Gs = (n) => Bo(n).then((e) => e.arrayBuffer()), zs = (n) => new Promise((e, t) => {
+const Gs = (n) => Oo(n).then((e) => e.arrayBuffer()), zs = (n) => new Promise((e, t) => {
let i = new FileReader();
i.onloadend = () => e(i.result || new ArrayBuffer()), i.onerror = t, i.readAsArrayBuffer(n);
});
@@ -7922,7 +7922,7 @@ class Jg extends Map {
return this.allValues || (this.allValues = Array.from(this.values())), this.allValues;
}
}
-function Me(n, e, t) {
+function He(n, e, t) {
let i = new Jg();
for (let [r, a] of t) i.set(r, a);
if (Array.isArray(e)) for (let r of e) n.set(r, i);
@@ -7933,29 +7933,29 @@ function qs(n, e, t) {
let i, r = n.get(e);
for (i of t) r.set(i[0], i[1]);
}
-const lt = /* @__PURE__ */ new Map(), Xn = /* @__PURE__ */ new Map(), Gr = /* @__PURE__ */ new Map(), Fr = ["chunked", "firstChunkSize", "firstChunkSizeNode", "firstChunkSizeBrowser", "chunkSize", "chunkLimit"], qf = ["jfif", "xmp", "icc", "iptc", "ihdr"], js = ["tiff", ...qf], Be = ["ifd0", "ifd1", "exif", "gps", "interop"], Tr = [...js, ...Be], Ir = ["makerNote", "userComment"], jf = ["translateKeys", "translateValues", "reviveValues", "multiSegment"], $r = [...jf, "sanitize", "mergeOutput", "silentErrors"];
-class Vf {
+const ut = /* @__PURE__ */ new Map(), Zn = /* @__PURE__ */ new Map(), Gr = /* @__PURE__ */ new Map(), Fr = ["chunked", "firstChunkSize", "firstChunkSizeNode", "firstChunkSizeBrowser", "chunkSize", "chunkLimit"], jf = ["jfif", "xmp", "icc", "iptc", "ihdr"], js = ["tiff", ...jf], Le = ["ifd0", "ifd1", "exif", "gps", "interop"], Tr = [...js, ...Le], Ir = ["makerNote", "userComment"], Vf = ["translateKeys", "translateValues", "reviveValues", "multiSegment"], $r = [...Vf, "sanitize", "mergeOutput", "silentErrors"];
+class Wf {
get translate() {
return this.translateKeys || this.translateValues || this.reviveValues;
}
}
-let Ii = class extends Vf {
+let Ii = class extends Wf {
get needed() {
return this.enabled || this.deps.size > 0;
}
constructor(e, t, i, r) {
- if (super(), U(this, "enabled", !1), U(this, "skip", /* @__PURE__ */ new Set()), U(this, "pick", /* @__PURE__ */ new Set()), U(this, "deps", /* @__PURE__ */ new Set()), U(this, "translateKeys", !1), U(this, "translateValues", !1), U(this, "reviveValues", !1), this.key = e, this.enabled = t, this.parse = this.enabled, this.applyInheritables(r), this.canBeFiltered = Be.includes(e), this.canBeFiltered && (this.dict = lt.get(e)), i !== void 0) if (Array.isArray(i)) this.parse = this.enabled = !0, this.canBeFiltered && i.length > 0 && this.translateTagSet(i, this.pick);
+ if (super(), U(this, "enabled", !1), U(this, "skip", /* @__PURE__ */ new Set()), U(this, "pick", /* @__PURE__ */ new Set()), U(this, "deps", /* @__PURE__ */ new Set()), U(this, "translateKeys", !1), U(this, "translateValues", !1), U(this, "reviveValues", !1), this.key = e, this.enabled = t, this.parse = this.enabled, this.applyInheritables(r), this.canBeFiltered = Le.includes(e), this.canBeFiltered && (this.dict = ut.get(e)), i !== void 0) if (Array.isArray(i)) this.parse = this.enabled = !0, this.canBeFiltered && i.length > 0 && this.translateTagSet(i, this.pick);
else if (typeof i == "object") {
if (this.enabled = !0, this.parse = i.parse !== !1, this.canBeFiltered) {
let { pick: a, skip: s } = i;
a && a.length > 0 && this.translateTagSet(a, this.pick), s && s.length > 0 && this.translateTagSet(s, this.skip);
}
this.applyInheritables(i);
- } else i === !0 || i === !1 ? this.parse = this.enabled = i : Fe(`Invalid options argument: ${i}`);
+ } else i === !0 || i === !1 ? this.parse = this.enabled = i : $e(`Invalid options argument: ${i}`);
}
applyInheritables(e) {
let t, i;
- for (t of jf) i = e[t], i !== void 0 && (this[t] = i);
+ for (t of Vf) i = e[t], i !== void 0 && (this[t] = i);
}
translateTagSet(e, t) {
if (this.dict) {
@@ -7967,45 +7967,45 @@ let Ii = class extends Vf {
!this.enabled && this.deps.size > 0 ? (this.enabled = !0, ua(this.pick, this.deps)) : this.enabled && this.pick.size > 0 && ua(this.pick, this.deps);
}
};
-var Ye = { jfif: !1, tiff: !0, xmp: !1, icc: !1, iptc: !1, ifd0: !0, ifd1: !1, exif: !0, gps: !0, interop: !1, ihdr: void 0, makerNote: !1, userComment: !1, multiSegment: !1, skip: [], pick: [], translateKeys: !0, translateValues: !0, reviveValues: !0, sanitize: !0, mergeOutput: !0, silentErrors: !0, chunked: !0, firstChunkSize: void 0, firstChunkSizeNode: 512, firstChunkSizeBrowser: 65536, chunkSize: 65536, chunkLimit: 5 }, hu = /* @__PURE__ */ new Map();
-class Lo extends Vf {
+var Ke = { jfif: !1, tiff: !0, xmp: !1, icc: !1, iptc: !1, ifd0: !0, ifd1: !1, exif: !0, gps: !0, interop: !1, ihdr: void 0, makerNote: !1, userComment: !1, multiSegment: !1, skip: [], pick: [], translateKeys: !0, translateValues: !0, reviveValues: !0, sanitize: !0, mergeOutput: !0, silentErrors: !0, chunked: !0, firstChunkSize: void 0, firstChunkSizeNode: 512, firstChunkSizeBrowser: 65536, chunkSize: 65536, chunkLimit: 5 }, du = /* @__PURE__ */ new Map();
+class Ro extends Wf {
static useCached(e) {
- let t = hu.get(e);
- return t !== void 0 || (t = new this(e), hu.set(e, t)), t;
+ let t = du.get(e);
+ return t !== void 0 || (t = new this(e), du.set(e, t)), t;
}
constructor(e) {
- super(), e === !0 ? this.setupFromTrue() : e === void 0 ? this.setupFromUndefined() : Array.isArray(e) ? this.setupFromArray(e) : typeof e == "object" ? this.setupFromObject(e) : Fe(`Invalid options argument ${e}`), this.firstChunkSize === void 0 && (this.firstChunkSize = Qi ? this.firstChunkSizeBrowser : this.firstChunkSizeNode), this.mergeOutput && (this.ifd1.enabled = !1), this.filterNestedSegmentTags(), this.traverseTiffDependencyTree(), this.checkLoadedPlugins();
+ super(), e === !0 ? this.setupFromTrue() : e === void 0 ? this.setupFromUndefined() : Array.isArray(e) ? this.setupFromArray(e) : typeof e == "object" ? this.setupFromObject(e) : $e(`Invalid options argument ${e}`), this.firstChunkSize === void 0 && (this.firstChunkSize = Qi ? this.firstChunkSizeBrowser : this.firstChunkSizeNode), this.mergeOutput && (this.ifd1.enabled = !1), this.filterNestedSegmentTags(), this.traverseTiffDependencyTree(), this.checkLoadedPlugins();
}
setupFromUndefined() {
let e;
- for (e of Fr) this[e] = Ye[e];
- for (e of $r) this[e] = Ye[e];
- for (e of Ir) this[e] = Ye[e];
- for (e of Tr) this[e] = new Ii(e, Ye[e], void 0, this);
+ for (e of Fr) this[e] = Ke[e];
+ for (e of $r) this[e] = Ke[e];
+ for (e of Ir) this[e] = Ke[e];
+ for (e of Tr) this[e] = new Ii(e, Ke[e], void 0, this);
}
setupFromTrue() {
let e;
- for (e of Fr) this[e] = Ye[e];
- for (e of $r) this[e] = Ye[e];
+ for (e of Fr) this[e] = Ke[e];
+ for (e of $r) this[e] = Ke[e];
for (e of Ir) this[e] = !0;
for (e of Tr) this[e] = new Ii(e, !0, void 0, this);
}
setupFromArray(e) {
let t;
- for (t of Fr) this[t] = Ye[t];
- for (t of $r) this[t] = Ye[t];
- for (t of Ir) this[t] = Ye[t];
+ for (t of Fr) this[t] = Ke[t];
+ for (t of $r) this[t] = Ke[t];
+ for (t of Ir) this[t] = Ke[t];
for (t of Tr) this[t] = new Ii(t, !1, void 0, this);
- this.setupGlobalFilters(e, void 0, Be);
+ this.setupGlobalFilters(e, void 0, Le);
}
setupFromObject(e) {
let t;
- for (t of (Be.ifd0 = Be.ifd0 || Be.image, Be.ifd1 = Be.ifd1 || Be.thumbnail, Object.assign(this, e), Fr)) this[t] = cs(e[t], Ye[t]);
- for (t of $r) this[t] = cs(e[t], Ye[t]);
- for (t of Ir) this[t] = cs(e[t], Ye[t]);
- for (t of js) this[t] = new Ii(t, Ye[t], e[t], this);
- for (t of Be) this[t] = new Ii(t, Ye[t], e[t], this.tiff);
- this.setupGlobalFilters(e.pick, e.skip, Be, Tr), e.tiff === !0 ? this.batchEnableWithBool(Be, !0) : e.tiff === !1 ? this.batchEnableWithUserValue(Be, e) : Array.isArray(e.tiff) ? this.setupGlobalFilters(e.tiff, void 0, Be) : typeof e.tiff == "object" && this.setupGlobalFilters(e.tiff.pick, e.tiff.skip, Be);
+ for (t of (Le.ifd0 = Le.ifd0 || Le.image, Le.ifd1 = Le.ifd1 || Le.thumbnail, Object.assign(this, e), Fr)) this[t] = cs(e[t], Ke[t]);
+ for (t of $r) this[t] = cs(e[t], Ke[t]);
+ for (t of Ir) this[t] = cs(e[t], Ke[t]);
+ for (t of js) this[t] = new Ii(t, Ke[t], e[t], this);
+ for (t of Le) this[t] = new Ii(t, Ke[t], e[t], this.tiff);
+ this.setupGlobalFilters(e.pick, e.skip, Le, Tr), e.tiff === !0 ? this.batchEnableWithBool(Le, !0) : e.tiff === !1 ? this.batchEnableWithUserValue(Le, e) : Array.isArray(e.tiff) ? this.setupGlobalFilters(e.tiff, void 0, Le) : typeof e.tiff == "object" && this.setupGlobalFilters(e.tiff.pick, e.tiff.skip, Le);
}
batchEnableWithBool(e, t) {
for (let i of e) this[i].enabled = t;
@@ -8019,10 +8019,10 @@ class Lo extends Vf {
setupGlobalFilters(e, t, i, r = i) {
if (e && e.length) {
for (let s of r) this[s].enabled = !1;
- let a = du(e, i);
+ let a = _u(e, i);
for (let [s, o] of a) ua(this[s].pick, o), this[s].enabled = !0;
} else if (t && t.length) {
- let a = du(t, i);
+ let a = _u(t, i);
for (let [s, o] of a) ua(this[s].skip, o);
}
}
@@ -8032,20 +8032,20 @@ class Lo extends Vf {
}
traverseTiffDependencyTree() {
let { ifd0: e, exif: t, gps: i, interop: r } = this;
- r.needed && (t.deps.add(40965), e.deps.add(40965)), t.needed && e.deps.add(34665), i.needed && e.deps.add(34853), this.tiff.enabled = Be.some((a) => this[a].enabled === !0) || this.makerNote || this.userComment;
- for (let a of Be) this[a].finalizeFilters();
+ r.needed && (t.deps.add(40965), e.deps.add(40965)), t.needed && e.deps.add(34665), i.needed && e.deps.add(34853), this.tiff.enabled = Le.some((a) => this[a].enabled === !0) || this.makerNote || this.userComment;
+ for (let a of Le) this[a].finalizeFilters();
}
get onlyTiff() {
- return !qf.map((e) => this[e].enabled).some((e) => e === !0) && this.tiff.enabled;
+ return !jf.map((e) => this[e].enabled).some((e) => e === !0) && this.tiff.enabled;
}
checkLoadedPlugins() {
- for (let e of js) this[e].enabled && !Ve.has(e) && Ns("segment parser", e);
+ for (let e of js) this[e].enabled && !We.has(e) && Ns("segment parser", e);
}
}
-function du(n, e) {
+function _u(n, e) {
let t, i, r, a, s = [];
for (r of e) {
- for (a of (t = lt.get(r), i = [], t)) (n.includes(a[0]) || n.includes(a[1])) && i.push(a[0]);
+ for (a of (t = ut.get(r), i = [], t)) (n.includes(a[0]) || n.includes(a[1])) && i.push(a[0]);
i.length && s.push([r, i]);
}
return s;
@@ -8056,10 +8056,10 @@ function cs(n, e) {
function ua(n, e) {
for (let t of e) n.add(t);
}
-U(Lo, "default", Ye);
+U(Ro, "default", Ke);
class e0 {
constructor(e) {
- U(this, "parsers", {}), U(this, "output", {}), U(this, "errors", []), U(this, "pushToErrors", (t) => this.errors.push(t)), this.options = Lo.useCached(e);
+ U(this, "parsers", {}), U(this, "output", {}), U(this, "errors", []), U(this, "pushToErrors", (t) => this.errors.push(t)), this.options = Ro.useCached(e);
}
async read(e) {
this.file = await Qg(e, this.options);
@@ -8068,7 +8068,7 @@ class e0 {
if (this.fileParser) return;
let { file: e } = this, t = e.getUint16(0);
for (let [i, r] of _i) if (r.canHandle(e, t)) return this.fileParser = new r(this.options, this.file, this.parsers), e[i] = !0;
- this.file.close && this.file.close(), Fe("Unknown file format");
+ this.file.close && this.file.close(), $e("Unknown file format");
}
async parse() {
let { output: e, errors: t } = this;
@@ -8085,14 +8085,14 @@ class e0 {
}
async extractThumbnail() {
this.setup();
- let { options: e, file: t } = this, i = Ve.get("tiff", e);
+ let { options: e, file: t } = this, i = We.get("tiff", e);
var r;
if (t.tiff ? r = { start: 0, type: "tiff" } : t.jpeg && (r = await this.fileParser.getOrFindSegment("tiff")), r === void 0) return;
let a = await this.fileParser.ensureSegmentChunk(r), s = this.parsers.tiff = new i(a, e, t), o = await s.extractThumbnail();
return t.close && t.close(), o;
}
}
-async function Wf(n, e) {
+async function Vs(n, e) {
let t = new e0(e);
return await t.read(n), t.parse();
}
@@ -8104,9 +8104,9 @@ class Ea {
else try {
r.chunk = await this.file.readChunk(a, s);
} catch (o) {
- Fe(`Couldn't read segment: ${JSON.stringify(r)}. ${o.message}`);
+ $e(`Couldn't read segment: ${JSON.stringify(r)}. ${o.message}`);
}
- else this.file.byteLength > a + s ? r.chunk = this.file.subarray(a, s) : r.size === void 0 ? r.chunk = this.file.subarray(a) : Fe("Segment unreachable: " + JSON.stringify(r));
+ else this.file.byteLength > a + s ? r.chunk = this.file.subarray(a, s) : r.size === void 0 ? r.chunk = this.file.subarray(a) : $e("Segment unreachable: " + JSON.stringify(r));
return r.chunk;
}), this.extendOptions && this.extendOptions(e), this.options = e, this.file = t, this.parsers = i;
}
@@ -8114,7 +8114,7 @@ class Ea {
this.options[e].enabled && this.createParser(e, t);
}
createParser(e, t) {
- let i = new (Ve.get(e))(t, this.options, this.file);
+ let i = new (We.get(e))(t, this.options, this.file);
return this.parsers[e] = i;
}
createParsers(e) {
@@ -8137,10 +8137,10 @@ let Bt = class {
return { offset: t, length: i, headerLength: r, start: a, size: s, end: a + s };
}
static parse(e, t = {}) {
- return new this(e, new Lo({ [this.type]: t }), e).parse();
+ return new this(e, new Ro({ [this.type]: t }), e).parse();
}
normalizeInput(e) {
- return e instanceof ot ? e : new ot(e);
+ return e instanceof lt ? e : new lt(e);
}
constructor(e, t = {}, i) {
U(this, "errors", []), U(this, "raw", /* @__PURE__ */ new Map()), U(this, "handleError", (r) => {
@@ -8155,7 +8155,7 @@ let Bt = class {
return this.translated ? this.translated : this.raw ? Object.fromEntries(this.raw) : void 0;
}
translateBlock(e, t) {
- let i = Gr.get(t), r = Xn.get(t), a = lt.get(t), s = this.options[t], o = s.reviveValues && !!i, l = s.translateValues && !!r, c = s.translateKeys && !!a, u = {};
+ let i = Gr.get(t), r = Zn.get(t), a = ut.get(t), s = this.options[t], o = s.reviveValues && !!i, l = s.translateValues && !!r, c = s.translateKeys && !!a, u = {};
for (let [f, h] of e) o && i.has(f) ? h = i.get(f)(h) : l && r.has(f) && (h = this.translateValue(h, r.get(f))), c && a.has(f) && (f = a.get(f) || f), u[f] = h;
return u;
}
@@ -8178,9 +8178,9 @@ function n0(n) {
return n >= 224 && n <= 239;
}
function i0(n, e, t) {
- for (let [i, r] of Ve) if (r.canHandle(n, e, t)) return i;
+ for (let [i, r] of We) if (r.canHandle(n, e, t)) return i;
}
-class _u extends Ea {
+class pu extends Ea {
constructor(...e) {
super(...e), U(this, "appSegments", []), U(this, "jpegSegments", []), U(this, "unknownSegments", []);
}
@@ -8191,13 +8191,13 @@ class _u extends Ea {
await this.findAppSegments(), await this.readSegments(this.appSegments), this.mergeMultiSegments(), this.createParsers(this.mergedAppSegments || this.appSegments);
}
setupSegmentFinderArgs(e) {
- e === !0 ? (this.findAll = !0, this.wanted = new Set(Ve.keyList())) : (e = e === void 0 ? Ve.keyList().filter((t) => this.options[t].enabled) : e.filter((t) => this.options[t].enabled && Ve.has(t)), this.findAll = !1, this.remaining = new Set(e), this.wanted = new Set(e)), this.unfinishedMultiSegment = !1;
+ e === !0 ? (this.findAll = !0, this.wanted = new Set(We.keyList())) : (e = e === void 0 ? We.keyList().filter((t) => this.options[t].enabled) : e.filter((t) => this.options[t].enabled && We.has(t)), this.findAll = !1, this.remaining = new Set(e), this.wanted = new Set(e)), this.unfinishedMultiSegment = !1;
}
async findAppSegments(e = 0, t) {
this.setupSegmentFinderArgs(t);
let { file: i, findAll: r, wanted: a, remaining: s } = this;
if (!r && this.file.chunked && (r = Array.from(a).some((o) => {
- let l = Ve.get(o), c = this.options[o];
+ let l = We.get(o), c = this.options[o];
return l.multiSegment && c.multiSegment;
}), r && await this.file.readWhole()), e = this.findAppSegmentsInRange(e, i.byteLength), !this.options.onlyTiff && i.chunked) {
let o = !1;
@@ -8212,7 +8212,7 @@ class _u extends Ea {
let i, r, a, s, o, l, { file: c, findAll: u, wanted: f, remaining: h, options: d } = this;
for (; e < t; e++) if (c.getUint8(e) === 255) {
if (i = c.getUint8(e + 1), n0(i)) {
- if (r = c.getUint16(e + 2), a = i0(c, e, r), a && f.has(a) && (s = Ve.get(a), o = s.findPosition(c, e), l = d[a], o.type = a, this.appSegments.push(o), !u && (s.multiSegment && l.multiSegment ? (this.unfinishedMultiSegment = o.chunkNumber < o.chunkCount, this.unfinishedMultiSegment || h.delete(a)) : h.delete(a), h.size === 0))) break;
+ if (r = c.getUint16(e + 2), a = i0(c, e, r), a && f.has(a) && (s = We.get(a), o = s.findPosition(c, e), l = d[a], o.type = a, this.appSegments.push(o), !u && (s.multiSegment && l.multiSegment ? (this.unfinishedMultiSegment = o.chunkNumber < o.chunkCount, this.unfinishedMultiSegment || h.delete(a)) : h.delete(a), h.size === 0))) break;
d.recordUnknownSegments && (o = Bt.findPosition(c, e), o.marker = i, this.unknownSegments.push(o)), e += r + 1;
} else if (t0(i)) {
if (r = c.getUint16(e + 2), i === 218 && d.stopAfterSos !== !1) return;
@@ -8229,7 +8229,7 @@ class _u extends Ea {
return Array.from(o);
}(this.appSegments, "type");
this.mergedAppSegments = e.map(([t, i]) => {
- let r = Ve.get(t, this.options);
+ let r = We.get(t, this.options);
return r.handleMultiSegments ? { type: t, chunk: r.handleMultiSegments(i) } : i[0];
});
}
@@ -8241,7 +8241,7 @@ class _u extends Ea {
return t === void 0 && (await this.findAppSegments(0, [e]), t = this.getSegment(e)), t;
}
}
-U(_u, "type", "jpeg"), _i.set("jpeg", _u);
+U(pu, "type", "jpeg"), _i.set("jpeg", pu);
const r0 = [void 0, 1, 1, 2, 4, 8, 1, 1, 2, 4, 8, 4, 8, 4];
class a0 extends Bt {
parseHeader() {
@@ -8264,8 +8264,8 @@ class a0 extends Bt {
}
parseTag(e, t, i) {
let { chunk: r } = this, a = r.getUint16(e + 2), s = r.getUint32(e + 4), o = r0[a];
- if (o * s <= 4 ? e += 8 : e = r.getUint32(e + 8), (a < 1 || a > 13) && Fe(`Invalid TIFF value type. block: ${i.toUpperCase()}, tag: ${t.toString(16)}, type: ${a}, offset ${e}`), e > r.byteLength && Fe(`Invalid TIFF value offset. block: ${i.toUpperCase()}, tag: ${t.toString(16)}, type: ${a}, offset ${e} is outside of chunk size ${r.byteLength}`), a === 1) return r.getUint8Array(e, s);
- if (a === 2) return Tn(r.getString(e, s));
+ if (o * s <= 4 ? e += 8 : e = r.getUint32(e + 8), (a < 1 || a > 13) && $e(`Invalid TIFF value type. block: ${i.toUpperCase()}, tag: ${t.toString(16)}, type: ${a}, offset ${e}`), e > r.byteLength && $e(`Invalid TIFF value offset. block: ${i.toUpperCase()}, tag: ${t.toString(16)}, type: ${a}, offset ${e} is outside of chunk size ${r.byteLength}`), a === 1) return r.getUint8Array(e, s);
+ if (a === 2) return In(r.getString(e, s));
if (a === 7) return r.getUint8Array(e, s);
if (s === 1) return this.parseTagValue(a, e);
{
@@ -8325,7 +8325,7 @@ class a0 extends Bt {
case 13:
return i.getUint32(t);
default:
- Fe(`Invalid tiff type ${e}`);
+ $e(`Invalid tiff type ${e}`);
}
}
}
@@ -8359,7 +8359,7 @@ class fs extends a0 {
async parseIfd0Block() {
if (this.ifd0) return;
let { file: e } = this;
- this.findIfd0Offset(), this.ifd0Offset < 8 && Fe("Malformed EXIF data"), !e.chunked && this.ifd0Offset > e.byteLength && Fe(`IFD0 offset points to outside of file.
+ this.findIfd0Offset(), this.ifd0Offset < 8 && $e("Malformed EXIF data"), !e.chunked && this.ifd0Offset > e.byteLength && $e(`IFD0 offset points to outside of file.
this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`), e.tiff && await e.ensureChunk(this.ifd0Offset, Rs(this.options));
let t = this.parseBlock(this.ifd0Offset, "ifd0");
return t.size !== 0 ? (this.exifOffset = t.get(34665), this.interopOffset = t.get(40965), this.gpsOffset = t.get(34853), this.xmp = t.get(700), this.iptc = t.get(33723), this.icc = t.get(34675), this.options.sanitize && (t.delete(34665), t.delete(40965), t.delete(34853), t.delete(700), t.delete(33723), t.delete(34675)), t) : void 0;
@@ -8377,7 +8377,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`), e.tiff
async parseGpsBlock() {
if (this.gps || (this.ifd0 || await this.parseIfd0Block(), this.gpsOffset === void 0)) return;
let e = this.parseBlock(this.gpsOffset, "gps");
- return e && e.has(2) && e.has(4) && (e.set("latitude", pu(...e.get(2), e.get(1))), e.set("longitude", pu(...e.get(4), e.get(3)))), e;
+ return e && e.has(2) && e.has(4) && (e.set("latitude", mu(...e.get(2), e.get(1))), e.set("longitude", mu(...e.get(4), e.get(3)))), e;
}
async parseInteropBlock() {
if (!this.interop && (this.ifd0 || await this.parseIfd0Block(), this.interopOffset !== void 0 || this.exif || await this.parseExifBlock(), this.interopOffset !== void 0)) return this.parseBlock(this.interopOffset, "interop");
@@ -8398,7 +8398,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`), e.tiff
}
createOutput() {
let e, t, i, r = {};
- for (t of Be) if (e = this[t], !Gf(e)) if (i = this.canTranslate ? this.translateBlock(e, t) : Object.fromEntries(e), this.options.mergeOutput) {
+ for (t of Le) if (e = this[t], !zf(e)) if (i = this.canTranslate ? this.translateBlock(e, t) : Object.fromEntries(e), this.options.mergeOutput) {
if (t === "ifd1") continue;
Object.assign(r, i);
} else r[t] = i;
@@ -8409,15 +8409,15 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`), e.tiff
else for (let [i, r] of Object.entries(t)) this.assignObjectToOutput(e, i, r);
}
}
-function pu(n, e, t, i) {
+function mu(n, e, t, i) {
var r = n + e / 60 + t / 3600;
return i !== "S" && i !== "W" || (r *= -1), r;
}
-U(fs, "type", "tiff"), U(fs, "headerLength", 10), Ve.set("tiff", fs);
-const Ro = { ifd0: !1, ifd1: !1, exif: !1, gps: !1, interop: !1, sanitize: !1, reviveValues: !0, translateKeys: !1, translateValues: !1, mergeOutput: !1 };
-Object.assign({}, Ro, { firstChunkSize: 4e4, gps: [1, 2, 3, 4] });
-Object.assign({}, Ro, { tiff: !1, ifd1: !0, mergeOutput: !1 });
-Object.assign({}, Ro, { firstChunkSize: 4e4, ifd0: [274] });
+U(fs, "type", "tiff"), U(fs, "headerLength", 10), We.set("tiff", fs);
+const Mo = { ifd0: !1, ifd1: !1, exif: !1, gps: !1, interop: !1, sanitize: !1, reviveValues: !0, translateKeys: !1, translateValues: !1, mergeOutput: !1 };
+Object.assign({}, Mo, { firstChunkSize: 4e4, gps: [1, 2, 3, 4] });
+Object.assign({}, Mo, { tiff: !1, ifd1: !0, mergeOutput: !1 });
+Object.assign({}, Mo, { firstChunkSize: 4e4, ifd0: [274] });
if (typeof navigator == "object") {
let n = navigator.userAgent;
if (n.includes("iPad") || n.includes("iPhone")) {
@@ -8434,7 +8434,7 @@ if (typeof navigator == "object") {
let [, e] = n.match(/Firefox\/(\d+)/);
}
}
-class s0 extends ot {
+class s0 extends lt {
constructor(...e) {
super(...e), U(this, "ranges", new o0()), this.byteLength !== 0 && this.ranges.add(0, this.byteLength);
}
@@ -8452,7 +8452,7 @@ class s0 extends ot {
}
_extend(e) {
let t;
- t = Po ? xo.allocUnsafe(e) : new Uint8Array(e);
+ t = Bo ? Po.allocUnsafe(e) : new Uint8Array(e);
let i = new DataView(t.buffer, t.byteOffset, t.byteLength);
return t.set(new Uint8Array(this.buffer, this.byteOffset, this.byteLength), 0), { uintView: t, dataView: i };
}
@@ -8479,7 +8479,7 @@ class o0 {
return this.list.length;
}
add(e, t, i = 0) {
- let r = e + t, a = this.list.filter((s) => mu(e, s.offset, r) || mu(e, s.end, r));
+ let r = e + t, a = this.list.filter((s) => gu(e, s.offset, r) || gu(e, s.end, r));
if (a.length > 0) {
e = Math.min(e, ...a.map((o) => o.offset)), r = Math.max(r, ...a.map((o) => o.end)), t = r - e;
let s = a.shift();
@@ -8491,7 +8491,7 @@ class o0 {
return this.list.some((r) => r.offset <= e && i <= r.end);
}
}
-function mu(n, e, t) {
+function gu(n, e, t) {
return n <= e && e <= t;
}
class Ca extends s0 {
@@ -8553,13 +8553,13 @@ wi.set("url", class extends Ca {
async _readChunk(n, e) {
let t = e ? n + e - 1 : void 0, i = this.options.httpHeaders || {};
(n || t) && (i.range = `bytes=${[n, t].join("-")}`);
- let r = await Bo(this.input, { headers: i }), a = await r.arrayBuffer(), s = a.byteLength;
+ let r = await Oo(this.input, { headers: i }), a = await r.arrayBuffer(), s = a.byteLength;
if (r.status !== 416) return s !== e && (this.size = n + s), this.set(a, n, !0);
}
});
-ot.prototype.getUint64 = function(n) {
+lt.prototype.getUint64 = function(n) {
let e = this.getUint32(n), t = this.getUint32(n + 4);
- return e < 1048575 ? e << 32 | t : typeof Ar !== void 0 ? (console.warn("Using BigInt because of type 64uint but JS can only handle 53b numbers."), Ar(e) << Ar(32) | Ar(t)) : void Fe("Trying to read 64b value but JS can only handle 53b numbers.");
+ return e < 1048575 ? e << 32 | t : typeof Ar !== void 0 ? (console.warn("Using BigInt because of type 64uint but JS can only handle 53b numbers."), Ar(e) << Ar(32) | Ar(t)) : void $e("Trying to read 64b value but JS can only handle 53b numbers.");
};
class l0 extends Ea {
parseBoxes(e = 0) {
@@ -8654,17 +8654,17 @@ Please create an issue at https://github.com/MikeKovarik/exifr with this file`),
class Zf extends Xf {
}
U(Zf, "type", "heic");
-class gu extends Xf {
+class bu extends Xf {
}
-U(gu, "type", "avif"), _i.set("heic", Zf), _i.set("avif", gu), Me(lt, ["ifd0", "ifd1"], [[256, "ImageWidth"], [257, "ImageHeight"], [258, "BitsPerSample"], [259, "Compression"], [262, "PhotometricInterpretation"], [270, "ImageDescription"], [271, "Make"], [272, "Model"], [273, "StripOffsets"], [274, "Orientation"], [277, "SamplesPerPixel"], [278, "RowsPerStrip"], [279, "StripByteCounts"], [282, "XResolution"], [283, "YResolution"], [284, "PlanarConfiguration"], [296, "ResolutionUnit"], [301, "TransferFunction"], [305, "Software"], [306, "ModifyDate"], [315, "Artist"], [316, "HostComputer"], [317, "Predictor"], [318, "WhitePoint"], [319, "PrimaryChromaticities"], [513, "ThumbnailOffset"], [514, "ThumbnailLength"], [529, "YCbCrCoefficients"], [530, "YCbCrSubSampling"], [531, "YCbCrPositioning"], [532, "ReferenceBlackWhite"], [700, "ApplicationNotes"], [33432, "Copyright"], [33723, "IPTC"], [34665, "ExifIFD"], [34675, "ICC"], [34853, "GpsIFD"], [330, "SubIFD"], [40965, "InteropIFD"], [40091, "XPTitle"], [40092, "XPComment"], [40093, "XPAuthor"], [40094, "XPKeywords"], [40095, "XPSubject"]]), Me(lt, "exif", [[33434, "ExposureTime"], [33437, "FNumber"], [34850, "ExposureProgram"], [34852, "SpectralSensitivity"], [34855, "ISO"], [34858, "TimeZoneOffset"], [34859, "SelfTimerMode"], [34864, "SensitivityType"], [34865, "StandardOutputSensitivity"], [34866, "RecommendedExposureIndex"], [34867, "ISOSpeed"], [34868, "ISOSpeedLatitudeyyy"], [34869, "ISOSpeedLatitudezzz"], [36864, "ExifVersion"], [36867, "DateTimeOriginal"], [36868, "CreateDate"], [36873, "GooglePlusUploadCode"], [36880, "OffsetTime"], [36881, "OffsetTimeOriginal"], [36882, "OffsetTimeDigitized"], [37121, "ComponentsConfiguration"], [37122, "CompressedBitsPerPixel"], [37377, "ShutterSpeedValue"], [37378, "ApertureValue"], [37379, "BrightnessValue"], [37380, "ExposureCompensation"], [37381, "MaxApertureValue"], [37382, "SubjectDistance"], [37383, "MeteringMode"], [37384, "LightSource"], [37385, "Flash"], [37386, "FocalLength"], [37393, "ImageNumber"], [37394, "SecurityClassification"], [37395, "ImageHistory"], [37396, "SubjectArea"], [37500, "MakerNote"], [37510, "UserComment"], [37520, "SubSecTime"], [37521, "SubSecTimeOriginal"], [37522, "SubSecTimeDigitized"], [37888, "AmbientTemperature"], [37889, "Humidity"], [37890, "Pressure"], [37891, "WaterDepth"], [37892, "Acceleration"], [37893, "CameraElevationAngle"], [40960, "FlashpixVersion"], [40961, "ColorSpace"], [40962, "ExifImageWidth"], [40963, "ExifImageHeight"], [40964, "RelatedSoundFile"], [41483, "FlashEnergy"], [41486, "FocalPlaneXResolution"], [41487, "FocalPlaneYResolution"], [41488, "FocalPlaneResolutionUnit"], [41492, "SubjectLocation"], [41493, "ExposureIndex"], [41495, "SensingMethod"], [41728, "FileSource"], [41729, "SceneType"], [41730, "CFAPattern"], [41985, "CustomRendered"], [41986, "ExposureMode"], [41987, "WhiteBalance"], [41988, "DigitalZoomRatio"], [41989, "FocalLengthIn35mmFormat"], [41990, "SceneCaptureType"], [41991, "GainControl"], [41992, "Contrast"], [41993, "Saturation"], [41994, "Sharpness"], [41996, "SubjectDistanceRange"], [42016, "ImageUniqueID"], [42032, "OwnerName"], [42033, "SerialNumber"], [42034, "LensInfo"], [42035, "LensMake"], [42036, "LensModel"], [42037, "LensSerialNumber"], [42080, "CompositeImage"], [42081, "CompositeImageCount"], [42082, "CompositeImageExposureTimes"], [42240, "Gamma"], [59932, "Padding"], [59933, "OffsetSchema"], [65e3, "OwnerName"], [65001, "SerialNumber"], [65002, "Lens"], [65100, "RawFile"], [65101, "Converter"], [65102, "WhiteBalance"], [65105, "Exposure"], [65106, "Shadows"], [65107, "Brightness"], [65108, "Contrast"], [65109, "Saturation"], [65110, "Sharpness"], [65111, "Smoothness"], [65112, "MoireFilter"], [40965, "InteropIFD"]]), Me(lt, "gps", [[0, "GPSVersionID"], [1, "GPSLatitudeRef"], [2, "GPSLatitude"], [3, "GPSLongitudeRef"], [4, "GPSLongitude"], [5, "GPSAltitudeRef"], [6, "GPSAltitude"], [7, "GPSTimeStamp"], [8, "GPSSatellites"], [9, "GPSStatus"], [10, "GPSMeasureMode"], [11, "GPSDOP"], [12, "GPSSpeedRef"], [13, "GPSSpeed"], [14, "GPSTrackRef"], [15, "GPSTrack"], [16, "GPSImgDirectionRef"], [17, "GPSImgDirection"], [18, "GPSMapDatum"], [19, "GPSDestLatitudeRef"], [20, "GPSDestLatitude"], [21, "GPSDestLongitudeRef"], [22, "GPSDestLongitude"], [23, "GPSDestBearingRef"], [24, "GPSDestBearing"], [25, "GPSDestDistanceRef"], [26, "GPSDestDistance"], [27, "GPSProcessingMethod"], [28, "GPSAreaInformation"], [29, "GPSDateStamp"], [30, "GPSDifferential"], [31, "GPSHPositioningError"]]), Me(Xn, ["ifd0", "ifd1"], [[274, { 1: "Horizontal (normal)", 2: "Mirror horizontal", 3: "Rotate 180", 4: "Mirror vertical", 5: "Mirror horizontal and rotate 270 CW", 6: "Rotate 90 CW", 7: "Mirror horizontal and rotate 90 CW", 8: "Rotate 270 CW" }], [296, { 1: "None", 2: "inches", 3: "cm" }]]);
-let ji = Me(Xn, "exif", [[34850, { 0: "Not defined", 1: "Manual", 2: "Normal program", 3: "Aperture priority", 4: "Shutter priority", 5: "Creative program", 6: "Action program", 7: "Portrait mode", 8: "Landscape mode" }], [37121, { 0: "-", 1: "Y", 2: "Cb", 3: "Cr", 4: "R", 5: "G", 6: "B" }], [37383, { 0: "Unknown", 1: "Average", 2: "CenterWeightedAverage", 3: "Spot", 4: "MultiSpot", 5: "Pattern", 6: "Partial", 255: "Other" }], [37384, { 0: "Unknown", 1: "Daylight", 2: "Fluorescent", 3: "Tungsten (incandescent light)", 4: "Flash", 9: "Fine weather", 10: "Cloudy weather", 11: "Shade", 12: "Daylight fluorescent (D 5700 - 7100K)", 13: "Day white fluorescent (N 4600 - 5400K)", 14: "Cool white fluorescent (W 3900 - 4500K)", 15: "White fluorescent (WW 3200 - 3700K)", 17: "Standard light A", 18: "Standard light B", 19: "Standard light C", 20: "D55", 21: "D65", 22: "D75", 23: "D50", 24: "ISO studio tungsten", 255: "Other" }], [37385, { 0: "Flash did not fire", 1: "Flash fired", 5: "Strobe return light not detected", 7: "Strobe return light detected", 9: "Flash fired, compulsory flash mode", 13: "Flash fired, compulsory flash mode, return light not detected", 15: "Flash fired, compulsory flash mode, return light detected", 16: "Flash did not fire, compulsory flash mode", 24: "Flash did not fire, auto mode", 25: "Flash fired, auto mode", 29: "Flash fired, auto mode, return light not detected", 31: "Flash fired, auto mode, return light detected", 32: "No flash function", 65: "Flash fired, red-eye reduction mode", 69: "Flash fired, red-eye reduction mode, return light not detected", 71: "Flash fired, red-eye reduction mode, return light detected", 73: "Flash fired, compulsory flash mode, red-eye reduction mode", 77: "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected", 79: "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected", 89: "Flash fired, auto mode, red-eye reduction mode", 93: "Flash fired, auto mode, return light not detected, red-eye reduction mode", 95: "Flash fired, auto mode, return light detected, red-eye reduction mode" }], [41495, { 1: "Not defined", 2: "One-chip color area sensor", 3: "Two-chip color area sensor", 4: "Three-chip color area sensor", 5: "Color sequential area sensor", 7: "Trilinear sensor", 8: "Color sequential linear sensor" }], [41728, { 1: "Film Scanner", 2: "Reflection Print Scanner", 3: "Digital Camera" }], [41729, { 1: "Directly photographed" }], [41985, { 0: "Normal", 1: "Custom", 2: "HDR (no original saved)", 3: "HDR (original saved)", 4: "Original (for HDR)", 6: "Panorama", 7: "Portrait HDR", 8: "Portrait" }], [41986, { 0: "Auto", 1: "Manual", 2: "Auto bracket" }], [41987, { 0: "Auto", 1: "Manual" }], [41990, { 0: "Standard", 1: "Landscape", 2: "Portrait", 3: "Night", 4: "Other" }], [41991, { 0: "None", 1: "Low gain up", 2: "High gain up", 3: "Low gain down", 4: "High gain down" }], [41996, { 0: "Unknown", 1: "Macro", 2: "Close", 3: "Distant" }], [42080, { 0: "Unknown", 1: "Not a Composite Image", 2: "General Composite Image", 3: "Composite Image Captured While Shooting" }]]);
-const bu = { 1: "No absolute unit of measurement", 2: "Inch", 3: "Centimeter" };
-ji.set(37392, bu), ji.set(41488, bu);
+U(bu, "type", "avif"), _i.set("heic", Zf), _i.set("avif", bu), He(ut, ["ifd0", "ifd1"], [[256, "ImageWidth"], [257, "ImageHeight"], [258, "BitsPerSample"], [259, "Compression"], [262, "PhotometricInterpretation"], [270, "ImageDescription"], [271, "Make"], [272, "Model"], [273, "StripOffsets"], [274, "Orientation"], [277, "SamplesPerPixel"], [278, "RowsPerStrip"], [279, "StripByteCounts"], [282, "XResolution"], [283, "YResolution"], [284, "PlanarConfiguration"], [296, "ResolutionUnit"], [301, "TransferFunction"], [305, "Software"], [306, "ModifyDate"], [315, "Artist"], [316, "HostComputer"], [317, "Predictor"], [318, "WhitePoint"], [319, "PrimaryChromaticities"], [513, "ThumbnailOffset"], [514, "ThumbnailLength"], [529, "YCbCrCoefficients"], [530, "YCbCrSubSampling"], [531, "YCbCrPositioning"], [532, "ReferenceBlackWhite"], [700, "ApplicationNotes"], [33432, "Copyright"], [33723, "IPTC"], [34665, "ExifIFD"], [34675, "ICC"], [34853, "GpsIFD"], [330, "SubIFD"], [40965, "InteropIFD"], [40091, "XPTitle"], [40092, "XPComment"], [40093, "XPAuthor"], [40094, "XPKeywords"], [40095, "XPSubject"]]), He(ut, "exif", [[33434, "ExposureTime"], [33437, "FNumber"], [34850, "ExposureProgram"], [34852, "SpectralSensitivity"], [34855, "ISO"], [34858, "TimeZoneOffset"], [34859, "SelfTimerMode"], [34864, "SensitivityType"], [34865, "StandardOutputSensitivity"], [34866, "RecommendedExposureIndex"], [34867, "ISOSpeed"], [34868, "ISOSpeedLatitudeyyy"], [34869, "ISOSpeedLatitudezzz"], [36864, "ExifVersion"], [36867, "DateTimeOriginal"], [36868, "CreateDate"], [36873, "GooglePlusUploadCode"], [36880, "OffsetTime"], [36881, "OffsetTimeOriginal"], [36882, "OffsetTimeDigitized"], [37121, "ComponentsConfiguration"], [37122, "CompressedBitsPerPixel"], [37377, "ShutterSpeedValue"], [37378, "ApertureValue"], [37379, "BrightnessValue"], [37380, "ExposureCompensation"], [37381, "MaxApertureValue"], [37382, "SubjectDistance"], [37383, "MeteringMode"], [37384, "LightSource"], [37385, "Flash"], [37386, "FocalLength"], [37393, "ImageNumber"], [37394, "SecurityClassification"], [37395, "ImageHistory"], [37396, "SubjectArea"], [37500, "MakerNote"], [37510, "UserComment"], [37520, "SubSecTime"], [37521, "SubSecTimeOriginal"], [37522, "SubSecTimeDigitized"], [37888, "AmbientTemperature"], [37889, "Humidity"], [37890, "Pressure"], [37891, "WaterDepth"], [37892, "Acceleration"], [37893, "CameraElevationAngle"], [40960, "FlashpixVersion"], [40961, "ColorSpace"], [40962, "ExifImageWidth"], [40963, "ExifImageHeight"], [40964, "RelatedSoundFile"], [41483, "FlashEnergy"], [41486, "FocalPlaneXResolution"], [41487, "FocalPlaneYResolution"], [41488, "FocalPlaneResolutionUnit"], [41492, "SubjectLocation"], [41493, "ExposureIndex"], [41495, "SensingMethod"], [41728, "FileSource"], [41729, "SceneType"], [41730, "CFAPattern"], [41985, "CustomRendered"], [41986, "ExposureMode"], [41987, "WhiteBalance"], [41988, "DigitalZoomRatio"], [41989, "FocalLengthIn35mmFormat"], [41990, "SceneCaptureType"], [41991, "GainControl"], [41992, "Contrast"], [41993, "Saturation"], [41994, "Sharpness"], [41996, "SubjectDistanceRange"], [42016, "ImageUniqueID"], [42032, "OwnerName"], [42033, "SerialNumber"], [42034, "LensInfo"], [42035, "LensMake"], [42036, "LensModel"], [42037, "LensSerialNumber"], [42080, "CompositeImage"], [42081, "CompositeImageCount"], [42082, "CompositeImageExposureTimes"], [42240, "Gamma"], [59932, "Padding"], [59933, "OffsetSchema"], [65e3, "OwnerName"], [65001, "SerialNumber"], [65002, "Lens"], [65100, "RawFile"], [65101, "Converter"], [65102, "WhiteBalance"], [65105, "Exposure"], [65106, "Shadows"], [65107, "Brightness"], [65108, "Contrast"], [65109, "Saturation"], [65110, "Sharpness"], [65111, "Smoothness"], [65112, "MoireFilter"], [40965, "InteropIFD"]]), He(ut, "gps", [[0, "GPSVersionID"], [1, "GPSLatitudeRef"], [2, "GPSLatitude"], [3, "GPSLongitudeRef"], [4, "GPSLongitude"], [5, "GPSAltitudeRef"], [6, "GPSAltitude"], [7, "GPSTimeStamp"], [8, "GPSSatellites"], [9, "GPSStatus"], [10, "GPSMeasureMode"], [11, "GPSDOP"], [12, "GPSSpeedRef"], [13, "GPSSpeed"], [14, "GPSTrackRef"], [15, "GPSTrack"], [16, "GPSImgDirectionRef"], [17, "GPSImgDirection"], [18, "GPSMapDatum"], [19, "GPSDestLatitudeRef"], [20, "GPSDestLatitude"], [21, "GPSDestLongitudeRef"], [22, "GPSDestLongitude"], [23, "GPSDestBearingRef"], [24, "GPSDestBearing"], [25, "GPSDestDistanceRef"], [26, "GPSDestDistance"], [27, "GPSProcessingMethod"], [28, "GPSAreaInformation"], [29, "GPSDateStamp"], [30, "GPSDifferential"], [31, "GPSHPositioningError"]]), He(Zn, ["ifd0", "ifd1"], [[274, { 1: "Horizontal (normal)", 2: "Mirror horizontal", 3: "Rotate 180", 4: "Mirror vertical", 5: "Mirror horizontal and rotate 270 CW", 6: "Rotate 90 CW", 7: "Mirror horizontal and rotate 90 CW", 8: "Rotate 270 CW" }], [296, { 1: "None", 2: "inches", 3: "cm" }]]);
+let ji = He(Zn, "exif", [[34850, { 0: "Not defined", 1: "Manual", 2: "Normal program", 3: "Aperture priority", 4: "Shutter priority", 5: "Creative program", 6: "Action program", 7: "Portrait mode", 8: "Landscape mode" }], [37121, { 0: "-", 1: "Y", 2: "Cb", 3: "Cr", 4: "R", 5: "G", 6: "B" }], [37383, { 0: "Unknown", 1: "Average", 2: "CenterWeightedAverage", 3: "Spot", 4: "MultiSpot", 5: "Pattern", 6: "Partial", 255: "Other" }], [37384, { 0: "Unknown", 1: "Daylight", 2: "Fluorescent", 3: "Tungsten (incandescent light)", 4: "Flash", 9: "Fine weather", 10: "Cloudy weather", 11: "Shade", 12: "Daylight fluorescent (D 5700 - 7100K)", 13: "Day white fluorescent (N 4600 - 5400K)", 14: "Cool white fluorescent (W 3900 - 4500K)", 15: "White fluorescent (WW 3200 - 3700K)", 17: "Standard light A", 18: "Standard light B", 19: "Standard light C", 20: "D55", 21: "D65", 22: "D75", 23: "D50", 24: "ISO studio tungsten", 255: "Other" }], [37385, { 0: "Flash did not fire", 1: "Flash fired", 5: "Strobe return light not detected", 7: "Strobe return light detected", 9: "Flash fired, compulsory flash mode", 13: "Flash fired, compulsory flash mode, return light not detected", 15: "Flash fired, compulsory flash mode, return light detected", 16: "Flash did not fire, compulsory flash mode", 24: "Flash did not fire, auto mode", 25: "Flash fired, auto mode", 29: "Flash fired, auto mode, return light not detected", 31: "Flash fired, auto mode, return light detected", 32: "No flash function", 65: "Flash fired, red-eye reduction mode", 69: "Flash fired, red-eye reduction mode, return light not detected", 71: "Flash fired, red-eye reduction mode, return light detected", 73: "Flash fired, compulsory flash mode, red-eye reduction mode", 77: "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected", 79: "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected", 89: "Flash fired, auto mode, red-eye reduction mode", 93: "Flash fired, auto mode, return light not detected, red-eye reduction mode", 95: "Flash fired, auto mode, return light detected, red-eye reduction mode" }], [41495, { 1: "Not defined", 2: "One-chip color area sensor", 3: "Two-chip color area sensor", 4: "Three-chip color area sensor", 5: "Color sequential area sensor", 7: "Trilinear sensor", 8: "Color sequential linear sensor" }], [41728, { 1: "Film Scanner", 2: "Reflection Print Scanner", 3: "Digital Camera" }], [41729, { 1: "Directly photographed" }], [41985, { 0: "Normal", 1: "Custom", 2: "HDR (no original saved)", 3: "HDR (original saved)", 4: "Original (for HDR)", 6: "Panorama", 7: "Portrait HDR", 8: "Portrait" }], [41986, { 0: "Auto", 1: "Manual", 2: "Auto bracket" }], [41987, { 0: "Auto", 1: "Manual" }], [41990, { 0: "Standard", 1: "Landscape", 2: "Portrait", 3: "Night", 4: "Other" }], [41991, { 0: "None", 1: "Low gain up", 2: "High gain up", 3: "Low gain down", 4: "High gain down" }], [41996, { 0: "Unknown", 1: "Macro", 2: "Close", 3: "Distant" }], [42080, { 0: "Unknown", 1: "Not a Composite Image", 2: "General Composite Image", 3: "Composite Image Captured While Shooting" }]]);
+const vu = { 1: "No absolute unit of measurement", 2: "Inch", 3: "Centimeter" };
+ji.set(37392, vu), ji.set(41488, vu);
const hs = { 0: "Normal", 1: "Low", 2: "High" };
-function vu(n) {
+function yu(n) {
return typeof n == "object" && n.length !== void 0 ? n[0] : n;
}
-function yu(n) {
+function wu(n) {
let e = Array.from(n).slice(1);
return e[1] > 15 && (e = e.map((t) => String.fromCharCode(t))), e[2] !== "0" && e[2] !== 0 || e.pop(), e.join(".");
}
@@ -8677,16 +8677,16 @@ function ds(n) {
function $i(n) {
if (typeof n == "string") return n;
let e = [];
- if (n[1] === 0 && n[n.length - 1] === 0) for (let t = 0; t < n.length; t += 2) e.push(wu(n[t + 1], n[t]));
- else for (let t = 0; t < n.length; t += 2) e.push(wu(n[t], n[t + 1]));
- return Tn(String.fromCodePoint(...e));
+ if (n[1] === 0 && n[n.length - 1] === 0) for (let t = 0; t < n.length; t += 2) e.push(Du(n[t + 1], n[t]));
+ else for (let t = 0; t < n.length; t += 2) e.push(Du(n[t], n[t + 1]));
+ return In(String.fromCodePoint(...e));
}
-function wu(n, e) {
+function Du(n, e) {
return n << 8 | e;
}
-ji.set(41992, hs), ji.set(41993, hs), ji.set(41994, hs), Me(Gr, ["ifd0", "ifd1"], [[50827, function(n) {
- return typeof n != "string" ? zf(n) : n;
-}], [306, ds], [40091, $i], [40092, $i], [40093, $i], [40094, $i], [40095, $i]]), Me(Gr, "exif", [[40960, yu], [36864, yu], [36867, ds], [36868, ds], [40962, vu], [40963, vu]]), Me(Gr, "gps", [[0, (n) => Array.from(n).join(".")], [7, (n) => Array.from(n).join(":")]]);
+ji.set(41992, hs), ji.set(41993, hs), ji.set(41994, hs), He(Gr, ["ifd0", "ifd1"], [[50827, function(n) {
+ return typeof n != "string" ? qf(n) : n;
+}], [306, ds], [40091, $i], [40092, $i], [40093, $i], [40094, $i], [40095, $i]]), He(Gr, "exif", [[40960, wu], [36864, wu], [36867, ds], [36868, ds], [40962, yu], [40963, yu]]), He(Gr, "gps", [[0, (n) => Array.from(n).join(".")], [7, (n) => Array.from(n).join(":")]]);
class _s extends Bt {
static canHandle(e, t) {
return e.getUint8(t + 1) === 225 && e.getUint32(t + 4) === 1752462448 && e.getString(t + 4, 20) === "http://ns.adobe.com/";
@@ -8702,7 +8702,7 @@ class _s extends Bt {
return e.map((t) => t.chunk.getString()).join("");
}
normalizeInput(e) {
- return typeof e == "string" ? e : ot.from(e).getString();
+ return typeof e == "string" ? e : lt.from(e).getString();
}
parse(e = this.chunk) {
if (!this.localOptions.parse) return e;
@@ -8743,7 +8743,7 @@ class _s extends Bt {
else e.xmp = t;
}
}
-U(_s, "type", "xmp"), U(_s, "multiSegment", !0), Ve.set("xmp", _s);
+U(_s, "type", "xmp"), U(_s, "multiSegment", !0), We.set("xmp", _s);
class ca {
static findAll(e) {
return Kf(e, /([a-zA-Z0-9-]+):([a-zA-Z0-9-]+)=("[^"]*"|'[^']*')/gm).map(ca.unpackMatch);
@@ -8819,15 +8819,15 @@ function Qf(n) {
return t === "true" || t !== "false" && n.trim();
}
const Jf = ["rdf:li", "rdf:Seq", "rdf:Bag", "rdf:Alt", "rdf:Description"], h0 = new RegExp(`(<|\\/)(${Jf.join("|")})`, "g");
-let Du = oa("fs", (n) => n.promises);
+let Eu = oa("fs", (n) => n.promises);
wi.set("fs", class extends Ca {
async readWhole() {
- this.chunked = !1, this.fs = await Du;
+ this.chunked = !1, this.fs = await Eu;
let n = await this.fs.readFile(this.input);
this._swapBuffer(n);
}
async readChunked() {
- this.chunked = !0, this.fs = await Du, await this.open(), await this.readChunk(0, this.options.firstChunkSize);
+ this.chunked = !0, this.fs = await Eu, await this.open(), await this.readChunk(0, this.options.firstChunkSize);
}
async open() {
this.fh === void 0 && (this.fh = await this.fs.open(this.input, "r"), this.size = (await this.fh.stat(this.input)).size);
@@ -8854,8 +8854,8 @@ wi.set("base64", class extends Ca {
let a = n + e, s = t + 4 * Math.ceil(a / 3);
r = r.slice(t, s);
let o = Math.min(e, this.size - n);
- if (Po) {
- let l = xo.from(r, "base64").slice(i, i + o);
+ if (Bo) {
+ let l = Po.from(r, "base64").slice(i, i + o);
return this.set(l, n, !0);
}
{
@@ -8865,7 +8865,7 @@ wi.set("base64", class extends Ca {
}
}
});
-let Eu = class extends Ea {
+let Cu = class extends Ea {
static canHandle(e, t) {
return t === 18761 || t === 19789;
}
@@ -8887,10 +8887,10 @@ let Eu = class extends Ea {
}
}
};
-U(Eu, "type", "tiff"), _i.set("tiff", Eu);
+U(Cu, "type", "tiff"), _i.set("tiff", Cu);
let d0 = oa("zlib");
const _0 = ["ihdr", "iccp", "text", "itxt", "exif"];
-class Cu extends Ea {
+class ku extends Ea {
constructor(...e) {
super(...e), U(this, "catchError", (t) => this.errors.push(t)), U(this, "metaChunks", []), U(this, "unknownChunks", []);
}
@@ -8944,9 +8944,9 @@ class Cu extends Ea {
}
}
}
-U(Cu, "type", "png"), _i.set("png", Cu), Me(lt, "interop", [[1, "InteropIndex"], [2, "InteropVersion"], [4096, "RelatedImageFileFormat"], [4097, "RelatedImageWidth"], [4098, "RelatedImageHeight"]]), qs(lt, "ifd0", [[11, "ProcessingSoftware"], [254, "SubfileType"], [255, "OldSubfileType"], [263, "Thresholding"], [264, "CellWidth"], [265, "CellLength"], [266, "FillOrder"], [269, "DocumentName"], [280, "MinSampleValue"], [281, "MaxSampleValue"], [285, "PageName"], [286, "XPosition"], [287, "YPosition"], [290, "GrayResponseUnit"], [297, "PageNumber"], [321, "HalftoneHints"], [322, "TileWidth"], [323, "TileLength"], [332, "InkSet"], [337, "TargetPrinter"], [18246, "Rating"], [18249, "RatingPercent"], [33550, "PixelScale"], [34264, "ModelTransform"], [34377, "PhotoshopSettings"], [50706, "DNGVersion"], [50707, "DNGBackwardVersion"], [50708, "UniqueCameraModel"], [50709, "LocalizedCameraModel"], [50736, "DNGLensInfo"], [50739, "ShadowScale"], [50740, "DNGPrivateData"], [33920, "IntergraphMatrix"], [33922, "ModelTiePoint"], [34118, "SEMInfo"], [34735, "GeoTiffDirectory"], [34736, "GeoTiffDoubleParams"], [34737, "GeoTiffAsciiParams"], [50341, "PrintIM"], [50721, "ColorMatrix1"], [50722, "ColorMatrix2"], [50723, "CameraCalibration1"], [50724, "CameraCalibration2"], [50725, "ReductionMatrix1"], [50726, "ReductionMatrix2"], [50727, "AnalogBalance"], [50728, "AsShotNeutral"], [50729, "AsShotWhiteXY"], [50730, "BaselineExposure"], [50731, "BaselineNoise"], [50732, "BaselineSharpness"], [50734, "LinearResponseLimit"], [50735, "CameraSerialNumber"], [50741, "MakerNoteSafety"], [50778, "CalibrationIlluminant1"], [50779, "CalibrationIlluminant2"], [50781, "RawDataUniqueID"], [50827, "OriginalRawFileName"], [50828, "OriginalRawFileData"], [50831, "AsShotICCProfile"], [50832, "AsShotPreProfileMatrix"], [50833, "CurrentICCProfile"], [50834, "CurrentPreProfileMatrix"], [50879, "ColorimetricReference"], [50885, "SRawType"], [50898, "PanasonicTitle"], [50899, "PanasonicTitle2"], [50931, "CameraCalibrationSig"], [50932, "ProfileCalibrationSig"], [50933, "ProfileIFD"], [50934, "AsShotProfileName"], [50936, "ProfileName"], [50937, "ProfileHueSatMapDims"], [50938, "ProfileHueSatMapData1"], [50939, "ProfileHueSatMapData2"], [50940, "ProfileToneCurve"], [50941, "ProfileEmbedPolicy"], [50942, "ProfileCopyright"], [50964, "ForwardMatrix1"], [50965, "ForwardMatrix2"], [50966, "PreviewApplicationName"], [50967, "PreviewApplicationVersion"], [50968, "PreviewSettingsName"], [50969, "PreviewSettingsDigest"], [50970, "PreviewColorSpace"], [50971, "PreviewDateTime"], [50972, "RawImageDigest"], [50973, "OriginalRawFileDigest"], [50981, "ProfileLookTableDims"], [50982, "ProfileLookTableData"], [51043, "TimeCodes"], [51044, "FrameRate"], [51058, "TStop"], [51081, "ReelName"], [51089, "OriginalDefaultFinalSize"], [51090, "OriginalBestQualitySize"], [51091, "OriginalDefaultCropSize"], [51105, "CameraLabel"], [51107, "ProfileHueSatMapEncoding"], [51108, "ProfileLookTableEncoding"], [51109, "BaselineExposureOffset"], [51110, "DefaultBlackRender"], [51111, "NewRawImageDigest"], [51112, "RawToPreviewGain"]]);
-let ku = [[273, "StripOffsets"], [279, "StripByteCounts"], [288, "FreeOffsets"], [289, "FreeByteCounts"], [291, "GrayResponseCurve"], [292, "T4Options"], [293, "T6Options"], [300, "ColorResponseUnit"], [320, "ColorMap"], [324, "TileOffsets"], [325, "TileByteCounts"], [326, "BadFaxLines"], [327, "CleanFaxData"], [328, "ConsecutiveBadFaxLines"], [330, "SubIFD"], [333, "InkNames"], [334, "NumberofInks"], [336, "DotRange"], [338, "ExtraSamples"], [339, "SampleFormat"], [340, "SMinSampleValue"], [341, "SMaxSampleValue"], [342, "TransferRange"], [343, "ClipPath"], [344, "XClipPathUnits"], [345, "YClipPathUnits"], [346, "Indexed"], [347, "JPEGTables"], [351, "OPIProxy"], [400, "GlobalParametersIFD"], [401, "ProfileType"], [402, "FaxProfile"], [403, "CodingMethods"], [404, "VersionYear"], [405, "ModeNumber"], [433, "Decode"], [434, "DefaultImageColor"], [435, "T82Options"], [437, "JPEGTables"], [512, "JPEGProc"], [515, "JPEGRestartInterval"], [517, "JPEGLosslessPredictors"], [518, "JPEGPointTransforms"], [519, "JPEGQTables"], [520, "JPEGDCTables"], [521, "JPEGACTables"], [559, "StripRowCounts"], [999, "USPTOMiscellaneous"], [18247, "XP_DIP_XML"], [18248, "StitchInfo"], [28672, "SonyRawFileType"], [28688, "SonyToneCurve"], [28721, "VignettingCorrection"], [28722, "VignettingCorrParams"], [28724, "ChromaticAberrationCorrection"], [28725, "ChromaticAberrationCorrParams"], [28726, "DistortionCorrection"], [28727, "DistortionCorrParams"], [29895, "SonyCropTopLeft"], [29896, "SonyCropSize"], [32781, "ImageID"], [32931, "WangTag1"], [32932, "WangAnnotation"], [32933, "WangTag3"], [32934, "WangTag4"], [32953, "ImageReferencePoints"], [32954, "RegionXformTackPoint"], [32955, "WarpQuadrilateral"], [32956, "AffineTransformMat"], [32995, "Matteing"], [32996, "DataType"], [32997, "ImageDepth"], [32998, "TileDepth"], [33300, "ImageFullWidth"], [33301, "ImageFullHeight"], [33302, "TextureFormat"], [33303, "WrapModes"], [33304, "FovCot"], [33305, "MatrixWorldToScreen"], [33306, "MatrixWorldToCamera"], [33405, "Model2"], [33421, "CFARepeatPatternDim"], [33422, "CFAPattern2"], [33423, "BatteryLevel"], [33424, "KodakIFD"], [33445, "MDFileTag"], [33446, "MDScalePixel"], [33447, "MDColorTable"], [33448, "MDLabName"], [33449, "MDSampleInfo"], [33450, "MDPrepDate"], [33451, "MDPrepTime"], [33452, "MDFileUnits"], [33589, "AdventScale"], [33590, "AdventRevision"], [33628, "UIC1Tag"], [33629, "UIC2Tag"], [33630, "UIC3Tag"], [33631, "UIC4Tag"], [33918, "IntergraphPacketData"], [33919, "IntergraphFlagRegisters"], [33921, "INGRReserved"], [34016, "Site"], [34017, "ColorSequence"], [34018, "IT8Header"], [34019, "RasterPadding"], [34020, "BitsPerRunLength"], [34021, "BitsPerExtendedRunLength"], [34022, "ColorTable"], [34023, "ImageColorIndicator"], [34024, "BackgroundColorIndicator"], [34025, "ImageColorValue"], [34026, "BackgroundColorValue"], [34027, "PixelIntensityRange"], [34028, "TransparencyIndicator"], [34029, "ColorCharacterization"], [34030, "HCUsage"], [34031, "TrapIndicator"], [34032, "CMYKEquivalent"], [34152, "AFCP_IPTC"], [34232, "PixelMagicJBIGOptions"], [34263, "JPLCartoIFD"], [34306, "WB_GRGBLevels"], [34310, "LeafData"], [34687, "TIFF_FXExtensions"], [34688, "MultiProfiles"], [34689, "SharedData"], [34690, "T88Options"], [34732, "ImageLayer"], [34750, "JBIGOptions"], [34856, "Opto-ElectricConvFactor"], [34857, "Interlace"], [34908, "FaxRecvParams"], [34909, "FaxSubAddress"], [34910, "FaxRecvTime"], [34929, "FedexEDR"], [34954, "LeafSubIFD"], [37387, "FlashEnergy"], [37388, "SpatialFrequencyResponse"], [37389, "Noise"], [37390, "FocalPlaneXResolution"], [37391, "FocalPlaneYResolution"], [37392, "FocalPlaneResolutionUnit"], [37397, "ExposureIndex"], [37398, "TIFF-EPStandardID"], [37399, "SensingMethod"], [37434, "CIP3DataFile"], [37435, "CIP3Sheet"], [37436, "CIP3Side"], [37439, "StoNits"], [37679, "MSDocumentText"], [37680, "MSPropertySetStorage"], [37681, "MSDocumentTextPosition"], [37724, "ImageSourceData"], [40965, "InteropIFD"], [40976, "SamsungRawPointersOffset"], [40977, "SamsungRawPointersLength"], [41217, "SamsungRawByteOrder"], [41218, "SamsungRawUnknown"], [41484, "SpatialFrequencyResponse"], [41485, "Noise"], [41489, "ImageNumber"], [41490, "SecurityClassification"], [41491, "ImageHistory"], [41494, "TIFF-EPStandardID"], [41995, "DeviceSettingDescription"], [42112, "GDALMetadata"], [42113, "GDALNoData"], [44992, "ExpandSoftware"], [44993, "ExpandLens"], [44994, "ExpandFilm"], [44995, "ExpandFilterLens"], [44996, "ExpandScanner"], [44997, "ExpandFlashLamp"], [46275, "HasselbladRawImage"], [48129, "PixelFormat"], [48130, "Transformation"], [48131, "Uncompressed"], [48132, "ImageType"], [48256, "ImageWidth"], [48257, "ImageHeight"], [48258, "WidthResolution"], [48259, "HeightResolution"], [48320, "ImageOffset"], [48321, "ImageByteCount"], [48322, "AlphaOffset"], [48323, "AlphaByteCount"], [48324, "ImageDataDiscard"], [48325, "AlphaDataDiscard"], [50215, "OceScanjobDesc"], [50216, "OceApplicationSelector"], [50217, "OceIDNumber"], [50218, "OceImageLogic"], [50255, "Annotations"], [50459, "HasselbladExif"], [50547, "OriginalFileName"], [50560, "USPTOOriginalContentType"], [50656, "CR2CFAPattern"], [50710, "CFAPlaneColor"], [50711, "CFALayout"], [50712, "LinearizationTable"], [50713, "BlackLevelRepeatDim"], [50714, "BlackLevel"], [50715, "BlackLevelDeltaH"], [50716, "BlackLevelDeltaV"], [50717, "WhiteLevel"], [50718, "DefaultScale"], [50719, "DefaultCropOrigin"], [50720, "DefaultCropSize"], [50733, "BayerGreenSplit"], [50737, "ChromaBlurRadius"], [50738, "AntiAliasStrength"], [50752, "RawImageSegmentation"], [50780, "BestQualityScale"], [50784, "AliasLayerMetadata"], [50829, "ActiveArea"], [50830, "MaskedAreas"], [50935, "NoiseReductionApplied"], [50974, "SubTileBlockSize"], [50975, "RowInterleaveFactor"], [51008, "OpcodeList1"], [51009, "OpcodeList2"], [51022, "OpcodeList3"], [51041, "NoiseProfile"], [51114, "CacheVersion"], [51125, "DefaultUserCrop"], [51157, "NikonNEFInfo"], [65024, "KdcIFD"]];
-qs(lt, "ifd0", ku), qs(lt, "exif", ku), Me(Xn, "gps", [[23, { M: "Magnetic North", T: "True North" }], [25, { K: "Kilometers", M: "Miles", N: "Nautical Miles" }]]);
+U(ku, "type", "png"), _i.set("png", ku), He(ut, "interop", [[1, "InteropIndex"], [2, "InteropVersion"], [4096, "RelatedImageFileFormat"], [4097, "RelatedImageWidth"], [4098, "RelatedImageHeight"]]), qs(ut, "ifd0", [[11, "ProcessingSoftware"], [254, "SubfileType"], [255, "OldSubfileType"], [263, "Thresholding"], [264, "CellWidth"], [265, "CellLength"], [266, "FillOrder"], [269, "DocumentName"], [280, "MinSampleValue"], [281, "MaxSampleValue"], [285, "PageName"], [286, "XPosition"], [287, "YPosition"], [290, "GrayResponseUnit"], [297, "PageNumber"], [321, "HalftoneHints"], [322, "TileWidth"], [323, "TileLength"], [332, "InkSet"], [337, "TargetPrinter"], [18246, "Rating"], [18249, "RatingPercent"], [33550, "PixelScale"], [34264, "ModelTransform"], [34377, "PhotoshopSettings"], [50706, "DNGVersion"], [50707, "DNGBackwardVersion"], [50708, "UniqueCameraModel"], [50709, "LocalizedCameraModel"], [50736, "DNGLensInfo"], [50739, "ShadowScale"], [50740, "DNGPrivateData"], [33920, "IntergraphMatrix"], [33922, "ModelTiePoint"], [34118, "SEMInfo"], [34735, "GeoTiffDirectory"], [34736, "GeoTiffDoubleParams"], [34737, "GeoTiffAsciiParams"], [50341, "PrintIM"], [50721, "ColorMatrix1"], [50722, "ColorMatrix2"], [50723, "CameraCalibration1"], [50724, "CameraCalibration2"], [50725, "ReductionMatrix1"], [50726, "ReductionMatrix2"], [50727, "AnalogBalance"], [50728, "AsShotNeutral"], [50729, "AsShotWhiteXY"], [50730, "BaselineExposure"], [50731, "BaselineNoise"], [50732, "BaselineSharpness"], [50734, "LinearResponseLimit"], [50735, "CameraSerialNumber"], [50741, "MakerNoteSafety"], [50778, "CalibrationIlluminant1"], [50779, "CalibrationIlluminant2"], [50781, "RawDataUniqueID"], [50827, "OriginalRawFileName"], [50828, "OriginalRawFileData"], [50831, "AsShotICCProfile"], [50832, "AsShotPreProfileMatrix"], [50833, "CurrentICCProfile"], [50834, "CurrentPreProfileMatrix"], [50879, "ColorimetricReference"], [50885, "SRawType"], [50898, "PanasonicTitle"], [50899, "PanasonicTitle2"], [50931, "CameraCalibrationSig"], [50932, "ProfileCalibrationSig"], [50933, "ProfileIFD"], [50934, "AsShotProfileName"], [50936, "ProfileName"], [50937, "ProfileHueSatMapDims"], [50938, "ProfileHueSatMapData1"], [50939, "ProfileHueSatMapData2"], [50940, "ProfileToneCurve"], [50941, "ProfileEmbedPolicy"], [50942, "ProfileCopyright"], [50964, "ForwardMatrix1"], [50965, "ForwardMatrix2"], [50966, "PreviewApplicationName"], [50967, "PreviewApplicationVersion"], [50968, "PreviewSettingsName"], [50969, "PreviewSettingsDigest"], [50970, "PreviewColorSpace"], [50971, "PreviewDateTime"], [50972, "RawImageDigest"], [50973, "OriginalRawFileDigest"], [50981, "ProfileLookTableDims"], [50982, "ProfileLookTableData"], [51043, "TimeCodes"], [51044, "FrameRate"], [51058, "TStop"], [51081, "ReelName"], [51089, "OriginalDefaultFinalSize"], [51090, "OriginalBestQualitySize"], [51091, "OriginalDefaultCropSize"], [51105, "CameraLabel"], [51107, "ProfileHueSatMapEncoding"], [51108, "ProfileLookTableEncoding"], [51109, "BaselineExposureOffset"], [51110, "DefaultBlackRender"], [51111, "NewRawImageDigest"], [51112, "RawToPreviewGain"]]);
+let Su = [[273, "StripOffsets"], [279, "StripByteCounts"], [288, "FreeOffsets"], [289, "FreeByteCounts"], [291, "GrayResponseCurve"], [292, "T4Options"], [293, "T6Options"], [300, "ColorResponseUnit"], [320, "ColorMap"], [324, "TileOffsets"], [325, "TileByteCounts"], [326, "BadFaxLines"], [327, "CleanFaxData"], [328, "ConsecutiveBadFaxLines"], [330, "SubIFD"], [333, "InkNames"], [334, "NumberofInks"], [336, "DotRange"], [338, "ExtraSamples"], [339, "SampleFormat"], [340, "SMinSampleValue"], [341, "SMaxSampleValue"], [342, "TransferRange"], [343, "ClipPath"], [344, "XClipPathUnits"], [345, "YClipPathUnits"], [346, "Indexed"], [347, "JPEGTables"], [351, "OPIProxy"], [400, "GlobalParametersIFD"], [401, "ProfileType"], [402, "FaxProfile"], [403, "CodingMethods"], [404, "VersionYear"], [405, "ModeNumber"], [433, "Decode"], [434, "DefaultImageColor"], [435, "T82Options"], [437, "JPEGTables"], [512, "JPEGProc"], [515, "JPEGRestartInterval"], [517, "JPEGLosslessPredictors"], [518, "JPEGPointTransforms"], [519, "JPEGQTables"], [520, "JPEGDCTables"], [521, "JPEGACTables"], [559, "StripRowCounts"], [999, "USPTOMiscellaneous"], [18247, "XP_DIP_XML"], [18248, "StitchInfo"], [28672, "SonyRawFileType"], [28688, "SonyToneCurve"], [28721, "VignettingCorrection"], [28722, "VignettingCorrParams"], [28724, "ChromaticAberrationCorrection"], [28725, "ChromaticAberrationCorrParams"], [28726, "DistortionCorrection"], [28727, "DistortionCorrParams"], [29895, "SonyCropTopLeft"], [29896, "SonyCropSize"], [32781, "ImageID"], [32931, "WangTag1"], [32932, "WangAnnotation"], [32933, "WangTag3"], [32934, "WangTag4"], [32953, "ImageReferencePoints"], [32954, "RegionXformTackPoint"], [32955, "WarpQuadrilateral"], [32956, "AffineTransformMat"], [32995, "Matteing"], [32996, "DataType"], [32997, "ImageDepth"], [32998, "TileDepth"], [33300, "ImageFullWidth"], [33301, "ImageFullHeight"], [33302, "TextureFormat"], [33303, "WrapModes"], [33304, "FovCot"], [33305, "MatrixWorldToScreen"], [33306, "MatrixWorldToCamera"], [33405, "Model2"], [33421, "CFARepeatPatternDim"], [33422, "CFAPattern2"], [33423, "BatteryLevel"], [33424, "KodakIFD"], [33445, "MDFileTag"], [33446, "MDScalePixel"], [33447, "MDColorTable"], [33448, "MDLabName"], [33449, "MDSampleInfo"], [33450, "MDPrepDate"], [33451, "MDPrepTime"], [33452, "MDFileUnits"], [33589, "AdventScale"], [33590, "AdventRevision"], [33628, "UIC1Tag"], [33629, "UIC2Tag"], [33630, "UIC3Tag"], [33631, "UIC4Tag"], [33918, "IntergraphPacketData"], [33919, "IntergraphFlagRegisters"], [33921, "INGRReserved"], [34016, "Site"], [34017, "ColorSequence"], [34018, "IT8Header"], [34019, "RasterPadding"], [34020, "BitsPerRunLength"], [34021, "BitsPerExtendedRunLength"], [34022, "ColorTable"], [34023, "ImageColorIndicator"], [34024, "BackgroundColorIndicator"], [34025, "ImageColorValue"], [34026, "BackgroundColorValue"], [34027, "PixelIntensityRange"], [34028, "TransparencyIndicator"], [34029, "ColorCharacterization"], [34030, "HCUsage"], [34031, "TrapIndicator"], [34032, "CMYKEquivalent"], [34152, "AFCP_IPTC"], [34232, "PixelMagicJBIGOptions"], [34263, "JPLCartoIFD"], [34306, "WB_GRGBLevels"], [34310, "LeafData"], [34687, "TIFF_FXExtensions"], [34688, "MultiProfiles"], [34689, "SharedData"], [34690, "T88Options"], [34732, "ImageLayer"], [34750, "JBIGOptions"], [34856, "Opto-ElectricConvFactor"], [34857, "Interlace"], [34908, "FaxRecvParams"], [34909, "FaxSubAddress"], [34910, "FaxRecvTime"], [34929, "FedexEDR"], [34954, "LeafSubIFD"], [37387, "FlashEnergy"], [37388, "SpatialFrequencyResponse"], [37389, "Noise"], [37390, "FocalPlaneXResolution"], [37391, "FocalPlaneYResolution"], [37392, "FocalPlaneResolutionUnit"], [37397, "ExposureIndex"], [37398, "TIFF-EPStandardID"], [37399, "SensingMethod"], [37434, "CIP3DataFile"], [37435, "CIP3Sheet"], [37436, "CIP3Side"], [37439, "StoNits"], [37679, "MSDocumentText"], [37680, "MSPropertySetStorage"], [37681, "MSDocumentTextPosition"], [37724, "ImageSourceData"], [40965, "InteropIFD"], [40976, "SamsungRawPointersOffset"], [40977, "SamsungRawPointersLength"], [41217, "SamsungRawByteOrder"], [41218, "SamsungRawUnknown"], [41484, "SpatialFrequencyResponse"], [41485, "Noise"], [41489, "ImageNumber"], [41490, "SecurityClassification"], [41491, "ImageHistory"], [41494, "TIFF-EPStandardID"], [41995, "DeviceSettingDescription"], [42112, "GDALMetadata"], [42113, "GDALNoData"], [44992, "ExpandSoftware"], [44993, "ExpandLens"], [44994, "ExpandFilm"], [44995, "ExpandFilterLens"], [44996, "ExpandScanner"], [44997, "ExpandFlashLamp"], [46275, "HasselbladRawImage"], [48129, "PixelFormat"], [48130, "Transformation"], [48131, "Uncompressed"], [48132, "ImageType"], [48256, "ImageWidth"], [48257, "ImageHeight"], [48258, "WidthResolution"], [48259, "HeightResolution"], [48320, "ImageOffset"], [48321, "ImageByteCount"], [48322, "AlphaOffset"], [48323, "AlphaByteCount"], [48324, "ImageDataDiscard"], [48325, "AlphaDataDiscard"], [50215, "OceScanjobDesc"], [50216, "OceApplicationSelector"], [50217, "OceIDNumber"], [50218, "OceImageLogic"], [50255, "Annotations"], [50459, "HasselbladExif"], [50547, "OriginalFileName"], [50560, "USPTOOriginalContentType"], [50656, "CR2CFAPattern"], [50710, "CFAPlaneColor"], [50711, "CFALayout"], [50712, "LinearizationTable"], [50713, "BlackLevelRepeatDim"], [50714, "BlackLevel"], [50715, "BlackLevelDeltaH"], [50716, "BlackLevelDeltaV"], [50717, "WhiteLevel"], [50718, "DefaultScale"], [50719, "DefaultCropOrigin"], [50720, "DefaultCropSize"], [50733, "BayerGreenSplit"], [50737, "ChromaBlurRadius"], [50738, "AntiAliasStrength"], [50752, "RawImageSegmentation"], [50780, "BestQualityScale"], [50784, "AliasLayerMetadata"], [50829, "ActiveArea"], [50830, "MaskedAreas"], [50935, "NoiseReductionApplied"], [50974, "SubTileBlockSize"], [50975, "RowInterleaveFactor"], [51008, "OpcodeList1"], [51009, "OpcodeList2"], [51022, "OpcodeList3"], [51041, "NoiseProfile"], [51114, "CacheVersion"], [51125, "DefaultUserCrop"], [51157, "NikonNEFInfo"], [65024, "KdcIFD"]];
+qs(ut, "ifd0", Su), qs(ut, "exif", Su), He(Zn, "gps", [[23, { M: "Magnetic North", T: "True North" }], [25, { K: "Kilometers", M: "Miles", N: "Nautical Miles" }]]);
class ps extends Bt {
static canHandle(e, t) {
return e.getUint8(t + 1) === 224 && e.getUint32(t + 4) === 1246120262 && e.getUint8(t + 8) === 0;
@@ -8958,8 +8958,8 @@ class ps extends Bt {
this.raw = /* @__PURE__ */ new Map([[0, this.chunk.getUint16(0)], [2, this.chunk.getUint8(2)], [3, this.chunk.getUint16(3)], [5, this.chunk.getUint16(5)], [7, this.chunk.getUint8(7)], [8, this.chunk.getUint8(8)]]);
}
}
-U(ps, "type", "jfif"), U(ps, "headerLength", 9), Ve.set("jfif", ps), Me(lt, "jfif", [[0, "JFIFVersion"], [2, "ResolutionUnit"], [3, "XResolution"], [5, "YResolution"], [7, "ThumbnailWidth"], [8, "ThumbnailHeight"]]);
-class Su extends Bt {
+U(ps, "type", "jfif"), U(ps, "headerLength", 9), We.set("jfif", ps), He(ut, "jfif", [[0, "JFIFVersion"], [2, "ResolutionUnit"], [3, "XResolution"], [5, "YResolution"], [7, "ThumbnailWidth"], [8, "ThumbnailHeight"]]);
+class Au extends Bt {
parse() {
return this.parseTags(), this.translate(), this.output;
}
@@ -8967,7 +8967,7 @@ class Su extends Bt {
this.raw = new Map([[0, this.chunk.getUint32(0)], [4, this.chunk.getUint32(4)], [8, this.chunk.getUint8(8)], [9, this.chunk.getUint8(9)], [10, this.chunk.getUint8(10)], [11, this.chunk.getUint8(11)], [12, this.chunk.getUint8(12)], ...Array.from(this.raw)]);
}
}
-U(Su, "type", "ihdr"), Ve.set("ihdr", Su), Me(lt, "ihdr", [[0, "ImageWidth"], [4, "ImageHeight"], [8, "BitDepth"], [9, "ColorType"], [10, "Compression"], [11, "Filter"], [12, "Interlace"]]), Me(Xn, "ihdr", [[9, { 0: "Grayscale", 2: "RGB", 3: "Palette", 4: "Grayscale with Alpha", 6: "RGB with Alpha", DEFAULT: "Unknown" }], [10, { 0: "Deflate/Inflate", DEFAULT: "Unknown" }], [11, { 0: "Adaptive", DEFAULT: "Unknown" }], [12, { 0: "Noninterlaced", 1: "Adam7 Interlace", DEFAULT: "Unknown" }]]);
+U(Au, "type", "ihdr"), We.set("ihdr", Au), He(ut, "ihdr", [[0, "ImageWidth"], [4, "ImageHeight"], [8, "BitDepth"], [9, "ColorType"], [10, "Compression"], [11, "Filter"], [12, "Interlace"]]), He(Zn, "ihdr", [[9, { 0: "Grayscale", 2: "RGB", 3: "Palette", 4: "Grayscale with Alpha", 6: "RGB with Alpha", DEFAULT: "Unknown" }], [10, { 0: "Deflate/Inflate", DEFAULT: "Unknown" }], [11, { 0: "Adaptive", DEFAULT: "Unknown" }], [12, { 0: "Noninterlaced", 1: "Adam7 Interlace", DEFAULT: "Unknown" }]]);
class zr extends Bt {
static canHandle(e, t) {
return e.getUint8(t + 1) === 226 && e.getUint32(t + 4) === 1229144927;
@@ -8985,7 +8985,7 @@ class zr extends Bt {
for (let c of r) o.set(c, l), l += c.length;
return o;
}(t.map((r) => r.chunk.toUint8()));
- return new ot(i);
+ return new lt(i);
}(e);
}
parse() {
@@ -8993,7 +8993,7 @@ class zr extends Bt {
}
parseHeader() {
let { raw: e } = this;
- this.chunk.byteLength < 84 && Fe("ICC header is too short");
+ this.chunk.byteLength < 84 && $e("ICC header is too short");
for (let [t, i] of Object.entries(p0)) {
t = parseInt(t, 10);
let r = i(this.chunk, t);
@@ -9022,18 +9022,18 @@ class zr extends Bt {
}
parseDesc(e) {
let t = this.chunk.getUint32(e + 8) - 1;
- return Tn(this.chunk.getString(e + 12, t));
+ return In(this.chunk.getString(e + 12, t));
}
parseText(e, t) {
- return Tn(this.chunk.getString(e + 8, t - 8));
+ return In(this.chunk.getString(e + 8, t - 8));
}
parseSig(e) {
- return Tn(this.chunk.getString(e + 8, 4));
+ return In(this.chunk.getString(e + 8, 4));
}
parseMluc(e) {
let { chunk: t } = this, i = t.getUint32(e + 8), r = t.getUint32(e + 12), a = e + 16, s = [];
for (let o = 0; o < i; o++) {
- let l = t.getString(a + 0, 2), c = t.getString(a + 2, 2), u = t.getUint32(a + 4), f = t.getUint32(a + 8) + e, h = Tn(t.getUnicodeString(f, u));
+ let l = t.getString(a + 0, 2), c = t.getString(a + 2, 2), u = t.getUint32(a + 4), f = t.getUint32(a + 8) + e, h = In(t.getUnicodeString(f, u));
s.push({ lang: l, country: c, text: h }), a += r;
}
return i === 1 ? s[0].text : s;
@@ -9043,18 +9043,18 @@ class zr extends Bt {
}
}
U(zr, "type", "icc"), U(zr, "multiSegment", !0), U(zr, "headerLength", 18);
-const p0 = { 4: sn, 8: function(n, e) {
+const p0 = { 4: on, 8: function(n, e) {
return [n.getUint8(e), n.getUint8(e + 1) >> 4, n.getUint8(e + 1) % 16].map((t) => t.toString(10)).join(".");
-}, 12: sn, 16: sn, 20: sn, 24: function(n, e) {
+}, 12: on, 16: on, 20: on, 24: function(n, e) {
const t = n.getUint16(e), i = n.getUint16(e + 2) - 1, r = n.getUint16(e + 4), a = n.getUint16(e + 6), s = n.getUint16(e + 8), o = n.getUint16(e + 10);
return new Date(Date.UTC(t, i, r, a, s, o));
-}, 36: sn, 40: sn, 48: sn, 52: sn, 64: (n, e) => n.getUint32(e), 80: sn };
-function sn(n, e) {
- return Tn(n.getString(e, 4));
+}, 36: on, 40: on, 48: on, 52: on, 64: (n, e) => n.getUint32(e), 80: on };
+function on(n, e) {
+ return In(n.getString(e, 4));
}
-Ve.set("icc", zr), Me(lt, "icc", [[4, "ProfileCMMType"], [8, "ProfileVersion"], [12, "ProfileClass"], [16, "ColorSpaceData"], [20, "ProfileConnectionSpace"], [24, "ProfileDateTime"], [36, "ProfileFileSignature"], [40, "PrimaryPlatform"], [44, "CMMFlags"], [48, "DeviceManufacturer"], [52, "DeviceModel"], [56, "DeviceAttributes"], [64, "RenderingIntent"], [68, "ConnectionSpaceIlluminant"], [80, "ProfileCreator"], [84, "ProfileID"], ["Header", "ProfileHeader"], ["MS00", "WCSProfiles"], ["bTRC", "BlueTRC"], ["bXYZ", "BlueMatrixColumn"], ["bfd", "UCRBG"], ["bkpt", "MediaBlackPoint"], ["calt", "CalibrationDateTime"], ["chad", "ChromaticAdaptation"], ["chrm", "Chromaticity"], ["ciis", "ColorimetricIntentImageState"], ["clot", "ColorantTableOut"], ["clro", "ColorantOrder"], ["clrt", "ColorantTable"], ["cprt", "ProfileCopyright"], ["crdi", "CRDInfo"], ["desc", "ProfileDescription"], ["devs", "DeviceSettings"], ["dmdd", "DeviceModelDesc"], ["dmnd", "DeviceMfgDesc"], ["dscm", "ProfileDescriptionML"], ["fpce", "FocalPlaneColorimetryEstimates"], ["gTRC", "GreenTRC"], ["gXYZ", "GreenMatrixColumn"], ["gamt", "Gamut"], ["kTRC", "GrayTRC"], ["lumi", "Luminance"], ["meas", "Measurement"], ["meta", "Metadata"], ["mmod", "MakeAndModel"], ["ncl2", "NamedColor2"], ["ncol", "NamedColor"], ["ndin", "NativeDisplayInfo"], ["pre0", "Preview0"], ["pre1", "Preview1"], ["pre2", "Preview2"], ["ps2i", "PS2RenderingIntent"], ["ps2s", "PostScript2CSA"], ["psd0", "PostScript2CRD0"], ["psd1", "PostScript2CRD1"], ["psd2", "PostScript2CRD2"], ["psd3", "PostScript2CRD3"], ["pseq", "ProfileSequenceDesc"], ["psid", "ProfileSequenceIdentifier"], ["psvm", "PS2CRDVMSize"], ["rTRC", "RedTRC"], ["rXYZ", "RedMatrixColumn"], ["resp", "OutputResponse"], ["rhoc", "ReflectionHardcopyOrigColorimetry"], ["rig0", "PerceptualRenderingIntentGamut"], ["rig2", "SaturationRenderingIntentGamut"], ["rpoc", "ReflectionPrintOutputColorimetry"], ["sape", "SceneAppearanceEstimates"], ["scoe", "SceneColorimetryEstimates"], ["scrd", "ScreeningDesc"], ["scrn", "Screening"], ["targ", "CharTarget"], ["tech", "Technology"], ["vcgt", "VideoCardGamma"], ["view", "ViewingConditions"], ["vued", "ViewingCondDesc"], ["wtpt", "MediaWhitePoint"]]);
-const xr = { "4d2p": "Erdt Systems", AAMA: "Aamazing Technologies", ACER: "Acer", ACLT: "Acolyte Color Research", ACTI: "Actix Sytems", ADAR: "Adara Technology", ADBE: "Adobe", ADI: "ADI Systems", AGFA: "Agfa Graphics", ALMD: "Alps Electric", ALPS: "Alps Electric", ALWN: "Alwan Color Expertise", AMTI: "Amiable Technologies", AOC: "AOC International", APAG: "Apago", APPL: "Apple Computer", AST: "AST", "AT&T": "AT&T", BAEL: "BARBIERI electronic", BRCO: "Barco NV", BRKP: "Breakpoint", BROT: "Brother", BULL: "Bull", BUS: "Bus Computer Systems", "C-IT": "C-Itoh", CAMR: "Intel", CANO: "Canon", CARR: "Carroll Touch", CASI: "Casio", CBUS: "Colorbus PL", CEL: "Crossfield", CELx: "Crossfield", CGS: "CGS Publishing Technologies International", CHM: "Rochester Robotics", CIGL: "Colour Imaging Group, London", CITI: "Citizen", CL00: "Candela", CLIQ: "Color IQ", CMCO: "Chromaco", CMiX: "CHROMiX", COLO: "Colorgraphic Communications", COMP: "Compaq", COMp: "Compeq/Focus Technology", CONR: "Conrac Display Products", CORD: "Cordata Technologies", CPQ: "Compaq", CPRO: "ColorPro", CRN: "Cornerstone", CTX: "CTX International", CVIS: "ColorVision", CWC: "Fujitsu Laboratories", DARI: "Darius Technology", DATA: "Dataproducts", DCP: "Dry Creek Photo", DCRC: "Digital Contents Resource Center, Chung-Ang University", DELL: "Dell Computer", DIC: "Dainippon Ink and Chemicals", DICO: "Diconix", DIGI: "Digital", "DL&C": "Digital Light & Color", DPLG: "Doppelganger", DS: "Dainippon Screen", DSOL: "DOOSOL", DUPN: "DuPont", EPSO: "Epson", ESKO: "Esko-Graphics", ETRI: "Electronics and Telecommunications Research Institute", EVER: "Everex Systems", EXAC: "ExactCODE", Eizo: "Eizo", FALC: "Falco Data Products", FF: "Fuji Photo Film", FFEI: "FujiFilm Electronic Imaging", FNRD: "Fnord Software", FORA: "Fora", FORE: "Forefront Technology", FP: "Fujitsu", FPA: "WayTech Development", FUJI: "Fujitsu", FX: "Fuji Xerox", GCC: "GCC Technologies", GGSL: "Global Graphics Software", GMB: "Gretagmacbeth", GMG: "GMG", GOLD: "GoldStar Technology", GOOG: "Google", GPRT: "Giantprint", GTMB: "Gretagmacbeth", GVC: "WayTech Development", GW2K: "Sony", HCI: "HCI", HDM: "Heidelberger Druckmaschinen", HERM: "Hermes", HITA: "Hitachi America", HP: "Hewlett-Packard", HTC: "Hitachi", HiTi: "HiTi Digital", IBM: "IBM", IDNT: "Scitex", IEC: "Hewlett-Packard", IIYA: "Iiyama North America", IKEG: "Ikegami Electronics", IMAG: "Image Systems", IMI: "Ingram Micro", INTC: "Intel", INTL: "N/A (INTL)", INTR: "Intra Electronics", IOCO: "Iocomm International Technology", IPS: "InfoPrint Solutions Company", IRIS: "Scitex", ISL: "Ichikawa Soft Laboratory", ITNL: "N/A (ITNL)", IVM: "IVM", IWAT: "Iwatsu Electric", Idnt: "Scitex", Inca: "Inca Digital Printers", Iris: "Scitex", JPEG: "Joint Photographic Experts Group", JSFT: "Jetsoft Development", JVC: "JVC Information Products", KART: "Scitex", KFC: "KFC Computek Components", KLH: "KLH Computers", KMHD: "Konica Minolta", KNCA: "Konica", KODA: "Kodak", KYOC: "Kyocera", Kart: "Scitex", LCAG: "Leica", LCCD: "Leeds Colour", LDAK: "Left Dakota", LEAD: "Leading Technology", LEXM: "Lexmark International", LINK: "Link Computer", LINO: "Linotronic", LITE: "Lite-On", Leaf: "Leaf", Lino: "Linotronic", MAGC: "Mag Computronic", MAGI: "MAG Innovision", MANN: "Mannesmann", MICN: "Micron Technology", MICR: "Microtek", MICV: "Microvitec", MINO: "Minolta", MITS: "Mitsubishi Electronics America", MITs: "Mitsuba", MNLT: "Minolta", MODG: "Modgraph", MONI: "Monitronix", MONS: "Monaco Systems", MORS: "Morse Technology", MOTI: "Motive Systems", MSFT: "Microsoft", MUTO: "MUTOH INDUSTRIES", Mits: "Mitsubishi Electric", NANA: "NANAO", NEC: "NEC", NEXP: "NexPress Solutions", NISS: "Nissei Sangyo America", NKON: "Nikon", NONE: "none", OCE: "Oce Technologies", OCEC: "OceColor", OKI: "Oki", OKID: "Okidata", OKIP: "Okidata", OLIV: "Olivetti", OLYM: "Olympus", ONYX: "Onyx Graphics", OPTI: "Optiquest", PACK: "Packard Bell", PANA: "Matsushita Electric Industrial", PANT: "Pantone", PBN: "Packard Bell", PFU: "PFU", PHIL: "Philips Consumer Electronics", PNTX: "HOYA", POne: "Phase One A/S", PREM: "Premier Computer Innovations", PRIN: "Princeton Graphic Systems", PRIP: "Princeton Publishing Labs", QLUX: "Hong Kong", QMS: "QMS", QPCD: "QPcard AB", QUAD: "QuadLaser", QUME: "Qume", RADI: "Radius", RDDx: "Integrated Color Solutions", RDG: "Roland DG", REDM: "REDMS Group", RELI: "Relisys", RGMS: "Rolf Gierling Multitools", RICO: "Ricoh", RNLD: "Edmund Ronald", ROYA: "Royal", RPC: "Ricoh Printing Systems", RTL: "Royal Information Electronics", SAMP: "Sampo", SAMS: "Samsung", SANT: "Jaime Santana Pomares", SCIT: "Scitex", SCRN: "Dainippon Screen", SDP: "Scitex", SEC: "Samsung", SEIK: "Seiko Instruments", SEIk: "Seikosha", SGUY: "ScanGuy.com", SHAR: "Sharp Laboratories", SICC: "International Color Consortium", SONY: "Sony", SPCL: "SpectraCal", STAR: "Star", STC: "Sampo Technology", Scit: "Scitex", Sdp: "Scitex", Sony: "Sony", TALO: "Talon Technology", TAND: "Tandy", TATU: "Tatung", TAXA: "TAXAN America", TDS: "Tokyo Denshi Sekei", TECO: "TECO Information Systems", TEGR: "Tegra", TEKT: "Tektronix", TI: "Texas Instruments", TMKR: "TypeMaker", TOSB: "Toshiba", TOSH: "Toshiba", TOTK: "TOTOKU ELECTRIC", TRIU: "Triumph", TSBT: "Toshiba", TTX: "TTX Computer Products", TVM: "TVM Professional Monitor", TW: "TW Casper", ULSX: "Ulead Systems", UNIS: "Unisys", UTZF: "Utz Fehlau & Sohn", VARI: "Varityper", VIEW: "Viewsonic", VISL: "Visual communication", VIVO: "Vivo Mobile Communication", WANG: "Wang", WLBR: "Wilbur Imaging", WTG2: "Ware To Go", WYSE: "WYSE Technology", XERX: "Xerox", XRIT: "X-Rite", ZRAN: "Zoran", Zebr: "Zebra Technologies", appl: "Apple Computer", bICC: "basICColor", berg: "bergdesign", ceyd: "Integrated Color Solutions", clsp: "MacDermid ColorSpan", ds: "Dainippon Screen", dupn: "DuPont", ffei: "FujiFilm Electronic Imaging", flux: "FluxData", iris: "Scitex", kart: "Scitex", lcms: "Little CMS", lino: "Linotronic", none: "none", ob4d: "Erdt Systems", obic: "Medigraph", quby: "Qubyx Sarl", scit: "Scitex", scrn: "Dainippon Screen", sdp: "Scitex", siwi: "SIWI GRAFIKA", yxym: "YxyMaster" }, Au = { scnr: "Scanner", mntr: "Monitor", prtr: "Printer", link: "Device Link", abst: "Abstract", spac: "Color Space Conversion Profile", nmcl: "Named Color", cenc: "ColorEncodingSpace profile", mid: "MultiplexIdentification profile", mlnk: "MultiplexLink profile", mvis: "MultiplexVisualization profile", nkpf: "Nikon Input Device Profile (NON-STANDARD!)" };
-Me(Xn, "icc", [[4, xr], [12, Au], [40, Object.assign({}, xr, Au)], [48, xr], [80, xr], [64, { 0: "Perceptual", 1: "Relative Colorimetric", 2: "Saturation", 3: "Absolute Colorimetric" }], ["tech", { amd: "Active Matrix Display", crt: "Cathode Ray Tube Display", kpcd: "Photo CD", pmd: "Passive Matrix Display", dcam: "Digital Camera", dcpj: "Digital Cinema Projector", dmpc: "Digital Motion Picture Camera", dsub: "Dye Sublimation Printer", epho: "Electrophotographic Printer", esta: "Electrostatic Printer", flex: "Flexography", fprn: "Film Writer", fscn: "Film Scanner", grav: "Gravure", ijet: "Ink Jet Printer", imgs: "Photo Image Setter", mpfr: "Motion Picture Film Recorder", mpfs: "Motion Picture Film Scanner", offs: "Offset Lithography", pjtv: "Projection Television", rpho: "Photographic Paper Printer", rscn: "Reflective Scanner", silk: "Silkscreen", twax: "Thermal Wax Printer", vidc: "Video Camera", vidm: "Video Monitor" }]]);
+We.set("icc", zr), He(ut, "icc", [[4, "ProfileCMMType"], [8, "ProfileVersion"], [12, "ProfileClass"], [16, "ColorSpaceData"], [20, "ProfileConnectionSpace"], [24, "ProfileDateTime"], [36, "ProfileFileSignature"], [40, "PrimaryPlatform"], [44, "CMMFlags"], [48, "DeviceManufacturer"], [52, "DeviceModel"], [56, "DeviceAttributes"], [64, "RenderingIntent"], [68, "ConnectionSpaceIlluminant"], [80, "ProfileCreator"], [84, "ProfileID"], ["Header", "ProfileHeader"], ["MS00", "WCSProfiles"], ["bTRC", "BlueTRC"], ["bXYZ", "BlueMatrixColumn"], ["bfd", "UCRBG"], ["bkpt", "MediaBlackPoint"], ["calt", "CalibrationDateTime"], ["chad", "ChromaticAdaptation"], ["chrm", "Chromaticity"], ["ciis", "ColorimetricIntentImageState"], ["clot", "ColorantTableOut"], ["clro", "ColorantOrder"], ["clrt", "ColorantTable"], ["cprt", "ProfileCopyright"], ["crdi", "CRDInfo"], ["desc", "ProfileDescription"], ["devs", "DeviceSettings"], ["dmdd", "DeviceModelDesc"], ["dmnd", "DeviceMfgDesc"], ["dscm", "ProfileDescriptionML"], ["fpce", "FocalPlaneColorimetryEstimates"], ["gTRC", "GreenTRC"], ["gXYZ", "GreenMatrixColumn"], ["gamt", "Gamut"], ["kTRC", "GrayTRC"], ["lumi", "Luminance"], ["meas", "Measurement"], ["meta", "Metadata"], ["mmod", "MakeAndModel"], ["ncl2", "NamedColor2"], ["ncol", "NamedColor"], ["ndin", "NativeDisplayInfo"], ["pre0", "Preview0"], ["pre1", "Preview1"], ["pre2", "Preview2"], ["ps2i", "PS2RenderingIntent"], ["ps2s", "PostScript2CSA"], ["psd0", "PostScript2CRD0"], ["psd1", "PostScript2CRD1"], ["psd2", "PostScript2CRD2"], ["psd3", "PostScript2CRD3"], ["pseq", "ProfileSequenceDesc"], ["psid", "ProfileSequenceIdentifier"], ["psvm", "PS2CRDVMSize"], ["rTRC", "RedTRC"], ["rXYZ", "RedMatrixColumn"], ["resp", "OutputResponse"], ["rhoc", "ReflectionHardcopyOrigColorimetry"], ["rig0", "PerceptualRenderingIntentGamut"], ["rig2", "SaturationRenderingIntentGamut"], ["rpoc", "ReflectionPrintOutputColorimetry"], ["sape", "SceneAppearanceEstimates"], ["scoe", "SceneColorimetryEstimates"], ["scrd", "ScreeningDesc"], ["scrn", "Screening"], ["targ", "CharTarget"], ["tech", "Technology"], ["vcgt", "VideoCardGamma"], ["view", "ViewingConditions"], ["vued", "ViewingCondDesc"], ["wtpt", "MediaWhitePoint"]]);
+const xr = { "4d2p": "Erdt Systems", AAMA: "Aamazing Technologies", ACER: "Acer", ACLT: "Acolyte Color Research", ACTI: "Actix Sytems", ADAR: "Adara Technology", ADBE: "Adobe", ADI: "ADI Systems", AGFA: "Agfa Graphics", ALMD: "Alps Electric", ALPS: "Alps Electric", ALWN: "Alwan Color Expertise", AMTI: "Amiable Technologies", AOC: "AOC International", APAG: "Apago", APPL: "Apple Computer", AST: "AST", "AT&T": "AT&T", BAEL: "BARBIERI electronic", BRCO: "Barco NV", BRKP: "Breakpoint", BROT: "Brother", BULL: "Bull", BUS: "Bus Computer Systems", "C-IT": "C-Itoh", CAMR: "Intel", CANO: "Canon", CARR: "Carroll Touch", CASI: "Casio", CBUS: "Colorbus PL", CEL: "Crossfield", CELx: "Crossfield", CGS: "CGS Publishing Technologies International", CHM: "Rochester Robotics", CIGL: "Colour Imaging Group, London", CITI: "Citizen", CL00: "Candela", CLIQ: "Color IQ", CMCO: "Chromaco", CMiX: "CHROMiX", COLO: "Colorgraphic Communications", COMP: "Compaq", COMp: "Compeq/Focus Technology", CONR: "Conrac Display Products", CORD: "Cordata Technologies", CPQ: "Compaq", CPRO: "ColorPro", CRN: "Cornerstone", CTX: "CTX International", CVIS: "ColorVision", CWC: "Fujitsu Laboratories", DARI: "Darius Technology", DATA: "Dataproducts", DCP: "Dry Creek Photo", DCRC: "Digital Contents Resource Center, Chung-Ang University", DELL: "Dell Computer", DIC: "Dainippon Ink and Chemicals", DICO: "Diconix", DIGI: "Digital", "DL&C": "Digital Light & Color", DPLG: "Doppelganger", DS: "Dainippon Screen", DSOL: "DOOSOL", DUPN: "DuPont", EPSO: "Epson", ESKO: "Esko-Graphics", ETRI: "Electronics and Telecommunications Research Institute", EVER: "Everex Systems", EXAC: "ExactCODE", Eizo: "Eizo", FALC: "Falco Data Products", FF: "Fuji Photo Film", FFEI: "FujiFilm Electronic Imaging", FNRD: "Fnord Software", FORA: "Fora", FORE: "Forefront Technology", FP: "Fujitsu", FPA: "WayTech Development", FUJI: "Fujitsu", FX: "Fuji Xerox", GCC: "GCC Technologies", GGSL: "Global Graphics Software", GMB: "Gretagmacbeth", GMG: "GMG", GOLD: "GoldStar Technology", GOOG: "Google", GPRT: "Giantprint", GTMB: "Gretagmacbeth", GVC: "WayTech Development", GW2K: "Sony", HCI: "HCI", HDM: "Heidelberger Druckmaschinen", HERM: "Hermes", HITA: "Hitachi America", HP: "Hewlett-Packard", HTC: "Hitachi", HiTi: "HiTi Digital", IBM: "IBM", IDNT: "Scitex", IEC: "Hewlett-Packard", IIYA: "Iiyama North America", IKEG: "Ikegami Electronics", IMAG: "Image Systems", IMI: "Ingram Micro", INTC: "Intel", INTL: "N/A (INTL)", INTR: "Intra Electronics", IOCO: "Iocomm International Technology", IPS: "InfoPrint Solutions Company", IRIS: "Scitex", ISL: "Ichikawa Soft Laboratory", ITNL: "N/A (ITNL)", IVM: "IVM", IWAT: "Iwatsu Electric", Idnt: "Scitex", Inca: "Inca Digital Printers", Iris: "Scitex", JPEG: "Joint Photographic Experts Group", JSFT: "Jetsoft Development", JVC: "JVC Information Products", KART: "Scitex", KFC: "KFC Computek Components", KLH: "KLH Computers", KMHD: "Konica Minolta", KNCA: "Konica", KODA: "Kodak", KYOC: "Kyocera", Kart: "Scitex", LCAG: "Leica", LCCD: "Leeds Colour", LDAK: "Left Dakota", LEAD: "Leading Technology", LEXM: "Lexmark International", LINK: "Link Computer", LINO: "Linotronic", LITE: "Lite-On", Leaf: "Leaf", Lino: "Linotronic", MAGC: "Mag Computronic", MAGI: "MAG Innovision", MANN: "Mannesmann", MICN: "Micron Technology", MICR: "Microtek", MICV: "Microvitec", MINO: "Minolta", MITS: "Mitsubishi Electronics America", MITs: "Mitsuba", MNLT: "Minolta", MODG: "Modgraph", MONI: "Monitronix", MONS: "Monaco Systems", MORS: "Morse Technology", MOTI: "Motive Systems", MSFT: "Microsoft", MUTO: "MUTOH INDUSTRIES", Mits: "Mitsubishi Electric", NANA: "NANAO", NEC: "NEC", NEXP: "NexPress Solutions", NISS: "Nissei Sangyo America", NKON: "Nikon", NONE: "none", OCE: "Oce Technologies", OCEC: "OceColor", OKI: "Oki", OKID: "Okidata", OKIP: "Okidata", OLIV: "Olivetti", OLYM: "Olympus", ONYX: "Onyx Graphics", OPTI: "Optiquest", PACK: "Packard Bell", PANA: "Matsushita Electric Industrial", PANT: "Pantone", PBN: "Packard Bell", PFU: "PFU", PHIL: "Philips Consumer Electronics", PNTX: "HOYA", POne: "Phase One A/S", PREM: "Premier Computer Innovations", PRIN: "Princeton Graphic Systems", PRIP: "Princeton Publishing Labs", QLUX: "Hong Kong", QMS: "QMS", QPCD: "QPcard AB", QUAD: "QuadLaser", QUME: "Qume", RADI: "Radius", RDDx: "Integrated Color Solutions", RDG: "Roland DG", REDM: "REDMS Group", RELI: "Relisys", RGMS: "Rolf Gierling Multitools", RICO: "Ricoh", RNLD: "Edmund Ronald", ROYA: "Royal", RPC: "Ricoh Printing Systems", RTL: "Royal Information Electronics", SAMP: "Sampo", SAMS: "Samsung", SANT: "Jaime Santana Pomares", SCIT: "Scitex", SCRN: "Dainippon Screen", SDP: "Scitex", SEC: "Samsung", SEIK: "Seiko Instruments", SEIk: "Seikosha", SGUY: "ScanGuy.com", SHAR: "Sharp Laboratories", SICC: "International Color Consortium", SONY: "Sony", SPCL: "SpectraCal", STAR: "Star", STC: "Sampo Technology", Scit: "Scitex", Sdp: "Scitex", Sony: "Sony", TALO: "Talon Technology", TAND: "Tandy", TATU: "Tatung", TAXA: "TAXAN America", TDS: "Tokyo Denshi Sekei", TECO: "TECO Information Systems", TEGR: "Tegra", TEKT: "Tektronix", TI: "Texas Instruments", TMKR: "TypeMaker", TOSB: "Toshiba", TOSH: "Toshiba", TOTK: "TOTOKU ELECTRIC", TRIU: "Triumph", TSBT: "Toshiba", TTX: "TTX Computer Products", TVM: "TVM Professional Monitor", TW: "TW Casper", ULSX: "Ulead Systems", UNIS: "Unisys", UTZF: "Utz Fehlau & Sohn", VARI: "Varityper", VIEW: "Viewsonic", VISL: "Visual communication", VIVO: "Vivo Mobile Communication", WANG: "Wang", WLBR: "Wilbur Imaging", WTG2: "Ware To Go", WYSE: "WYSE Technology", XERX: "Xerox", XRIT: "X-Rite", ZRAN: "Zoran", Zebr: "Zebra Technologies", appl: "Apple Computer", bICC: "basICColor", berg: "bergdesign", ceyd: "Integrated Color Solutions", clsp: "MacDermid ColorSpan", ds: "Dainippon Screen", dupn: "DuPont", ffei: "FujiFilm Electronic Imaging", flux: "FluxData", iris: "Scitex", kart: "Scitex", lcms: "Little CMS", lino: "Linotronic", none: "none", ob4d: "Erdt Systems", obic: "Medigraph", quby: "Qubyx Sarl", scit: "Scitex", scrn: "Dainippon Screen", sdp: "Scitex", siwi: "SIWI GRAFIKA", yxym: "YxyMaster" }, Fu = { scnr: "Scanner", mntr: "Monitor", prtr: "Printer", link: "Device Link", abst: "Abstract", spac: "Color Space Conversion Profile", nmcl: "Named Color", cenc: "ColorEncodingSpace profile", mid: "MultiplexIdentification profile", mlnk: "MultiplexLink profile", mvis: "MultiplexVisualization profile", nkpf: "Nikon Input Device Profile (NON-STANDARD!)" };
+He(Zn, "icc", [[4, xr], [12, Fu], [40, Object.assign({}, xr, Fu)], [48, xr], [80, xr], [64, { 0: "Perceptual", 1: "Relative Colorimetric", 2: "Saturation", 3: "Absolute Colorimetric" }], ["tech", { amd: "Active Matrix Display", crt: "Cathode Ray Tube Display", kpcd: "Photo CD", pmd: "Passive Matrix Display", dcam: "Digital Camera", dcpj: "Digital Cinema Projector", dmpc: "Digital Motion Picture Camera", dsub: "Dye Sublimation Printer", epho: "Electrophotographic Printer", esta: "Electrostatic Printer", flex: "Flexography", fprn: "Film Writer", fscn: "Film Scanner", grav: "Gravure", ijet: "Ink Jet Printer", imgs: "Photo Image Setter", mpfr: "Motion Picture Film Recorder", mpfs: "Motion Picture Film Scanner", offs: "Offset Lithography", pjtv: "Projection Television", rpho: "Photographic Paper Printer", rscn: "Reflective Scanner", silk: "Silkscreen", twax: "Thermal Wax Printer", vidc: "Video Camera", vidm: "Video Monitor" }]]);
class Pr extends Bt {
static canHandle(e, t, i) {
return e.getUint8(t + 1) === 237 && e.getString(t + 4, 9) === "Photoshop" && this.containsIptc8bim(e, t, i) !== void 0;
@@ -9082,49 +9082,49 @@ class Pr extends Bt {
return e !== void 0 ? e instanceof Array ? (e.push(t), e) : [e, t] : t;
}
}
-U(Pr, "type", "iptc"), U(Pr, "translateValues", !1), U(Pr, "reviveValues", !1), Ve.set("iptc", Pr), Me(lt, "iptc", [[0, "ApplicationRecordVersion"], [3, "ObjectTypeReference"], [4, "ObjectAttributeReference"], [5, "ObjectName"], [7, "EditStatus"], [8, "EditorialUpdate"], [10, "Urgency"], [12, "SubjectReference"], [15, "Category"], [20, "SupplementalCategories"], [22, "FixtureIdentifier"], [25, "Keywords"], [26, "ContentLocationCode"], [27, "ContentLocationName"], [30, "ReleaseDate"], [35, "ReleaseTime"], [37, "ExpirationDate"], [38, "ExpirationTime"], [40, "SpecialInstructions"], [42, "ActionAdvised"], [45, "ReferenceService"], [47, "ReferenceDate"], [50, "ReferenceNumber"], [55, "DateCreated"], [60, "TimeCreated"], [62, "DigitalCreationDate"], [63, "DigitalCreationTime"], [65, "OriginatingProgram"], [70, "ProgramVersion"], [75, "ObjectCycle"], [80, "Byline"], [85, "BylineTitle"], [90, "City"], [92, "Sublocation"], [95, "State"], [100, "CountryCode"], [101, "Country"], [103, "OriginalTransmissionReference"], [105, "Headline"], [110, "Credit"], [115, "Source"], [116, "CopyrightNotice"], [118, "Contact"], [120, "Caption"], [121, "LocalCaption"], [122, "Writer"], [125, "RasterizedCaption"], [130, "ImageType"], [131, "ImageOrientation"], [135, "LanguageIdentifier"], [150, "AudioType"], [151, "AudioSamplingRate"], [152, "AudioSamplingResolution"], [153, "AudioDuration"], [154, "AudioOutcue"], [184, "JobID"], [185, "MasterDocumentID"], [186, "ShortDocumentID"], [187, "UniqueDocumentID"], [188, "OwnerID"], [200, "ObjectPreviewFileFormat"], [201, "ObjectPreviewFileVersion"], [202, "ObjectPreviewData"], [221, "Prefs"], [225, "ClassifyState"], [228, "SimilarityIndex"], [230, "DocumentNotes"], [231, "DocumentHistory"], [232, "ExifCameraInfo"], [255, "CatalogSets"]]), Me(Xn, "iptc", [[10, { 0: "0 (reserved)", 1: "1 (most urgent)", 2: "2", 3: "3", 4: "4", 5: "5 (normal urgency)", 6: "6", 7: "7", 8: "8 (least urgent)", 9: "9 (user-defined priority)" }], [75, { a: "Morning", b: "Both Morning and Evening", p: "Evening" }], [131, { L: "Landscape", P: "Portrait", S: "Square" }]]);
+U(Pr, "type", "iptc"), U(Pr, "translateValues", !1), U(Pr, "reviveValues", !1), We.set("iptc", Pr), He(ut, "iptc", [[0, "ApplicationRecordVersion"], [3, "ObjectTypeReference"], [4, "ObjectAttributeReference"], [5, "ObjectName"], [7, "EditStatus"], [8, "EditorialUpdate"], [10, "Urgency"], [12, "SubjectReference"], [15, "Category"], [20, "SupplementalCategories"], [22, "FixtureIdentifier"], [25, "Keywords"], [26, "ContentLocationCode"], [27, "ContentLocationName"], [30, "ReleaseDate"], [35, "ReleaseTime"], [37, "ExpirationDate"], [38, "ExpirationTime"], [40, "SpecialInstructions"], [42, "ActionAdvised"], [45, "ReferenceService"], [47, "ReferenceDate"], [50, "ReferenceNumber"], [55, "DateCreated"], [60, "TimeCreated"], [62, "DigitalCreationDate"], [63, "DigitalCreationTime"], [65, "OriginatingProgram"], [70, "ProgramVersion"], [75, "ObjectCycle"], [80, "Byline"], [85, "BylineTitle"], [90, "City"], [92, "Sublocation"], [95, "State"], [100, "CountryCode"], [101, "Country"], [103, "OriginalTransmissionReference"], [105, "Headline"], [110, "Credit"], [115, "Source"], [116, "CopyrightNotice"], [118, "Contact"], [120, "Caption"], [121, "LocalCaption"], [122, "Writer"], [125, "RasterizedCaption"], [130, "ImageType"], [131, "ImageOrientation"], [135, "LanguageIdentifier"], [150, "AudioType"], [151, "AudioSamplingRate"], [152, "AudioSamplingResolution"], [153, "AudioDuration"], [154, "AudioOutcue"], [184, "JobID"], [185, "MasterDocumentID"], [186, "ShortDocumentID"], [187, "UniqueDocumentID"], [188, "OwnerID"], [200, "ObjectPreviewFileFormat"], [201, "ObjectPreviewFileVersion"], [202, "ObjectPreviewData"], [221, "Prefs"], [225, "ClassifyState"], [228, "SimilarityIndex"], [230, "DocumentNotes"], [231, "DocumentHistory"], [232, "ExifCameraInfo"], [255, "CatalogSets"]]), He(Zn, "iptc", [[10, { 0: "0 (reserved)", 1: "1 (most urgent)", 2: "2", 3: "3", 4: "4", 5: "5 (normal urgency)", 6: "6", 7: "7", 8: "8 (least urgent)", 9: "9 (user-defined priority)" }], [75, { a: "Morning", b: "Both Morning and Evening", p: "Evening" }], [131, { L: "Landscape", P: "Portrait", S: "Square" }]]);
const {
SvelteComponent: m0,
- append_hydration: Le,
+ append_hydration: Ne,
attr: mt,
binding_callbacks: g0,
bubble: Br,
check_outros: Mi,
children: vt,
claim_component: Qt,
- claim_element: Qe,
+ claim_element: Je,
claim_space: Nt,
- claim_text: Vs,
+ claim_text: Ws,
create_component: Jt,
destroy_component: en,
destroy_each: b0,
detach: ue,
- element: Je,
+ element: et,
empty: pi,
- ensure_array_like: Fu,
- get_svelte_dataset: Ws,
+ ensure_array_like: Tu,
+ get_svelte_dataset: Xs,
group_outros: Ni,
init: v0,
- insert_hydration: et,
- listen: Mo,
+ insert_hydration: tt,
+ listen: No,
mount_component: tn,
noop: y0,
safe_not_equal: w0,
- set_data: Xs,
- set_style: mn,
+ set_data: Zs,
+ set_style: gn,
space: Ut,
- text: Zs,
- toggle_class: Tu,
+ text: Ys,
+ toggle_class: Iu,
transition_in: ge,
- transition_out: Ae
+ transition_out: Ie
} = window.__gradio__svelte__internal, { createEventDispatcher: D0, onMount: y6 } = window.__gradio__svelte__internal;
-function Iu(n, e, t) {
+function $u(n, e, t) {
const i = n.slice();
return i[35] = e[t][0], i[36] = e[t][1], i;
}
function E0(n) {
let e, t, i, r, a, s, o, l, c;
- return t = new Cf({
+ return t = new kf({
props: {
display_top_corner: (
/*display_icon_button_wrapper_top_corner*/
@@ -9133,7 +9133,7 @@ function E0(n) {
$$slots: { default: [S0] },
$$scope: { ctx: n }
}
- }), s = new $o({
+ }), s = new xo({
props: {
src: (
/*value*/
@@ -9148,29 +9148,29 @@ function E0(n) {
n[29]
), {
c() {
- e = Je("div"), Jt(t.$$.fragment), i = Ut(), r = Je("button"), a = Je("div"), Jt(s.$$.fragment), this.h();
+ e = et("div"), Jt(t.$$.fragment), i = Ut(), r = et("button"), a = et("div"), Jt(s.$$.fragment), this.h();
},
l(u) {
- e = Qe(u, "DIV", { class: !0 });
+ e = Je(u, "DIV", { class: !0 });
var f = vt(e);
- Qt(t.$$.fragment, f), i = Nt(f), r = Qe(f, "BUTTON", { class: !0 });
+ Qt(t.$$.fragment, f), i = Nt(f), r = Je(f, "BUTTON", { class: !0 });
var h = vt(r);
- a = Qe(h, "DIV", { class: !0 });
+ a = Je(h, "DIV", { class: !0 });
var d = vt(a);
Qt(s.$$.fragment, d), d.forEach(ue), h.forEach(ue), f.forEach(ue), this.h();
},
h() {
- mt(a, "class", "image-frame svelte-157jyrf"), Tu(
+ mt(a, "class", "image-frame svelte-ui4ajv"), Iu(
a,
"selectable",
/*selectable*/
n[4]
- ), mt(r, "class", "svelte-157jyrf"), mt(e, "class", "image-container svelte-157jyrf"), mn(
+ ), mt(r, "class", "svelte-ui4ajv"), mt(e, "class", "image-container svelte-ui4ajv"), gn(
e,
"height",
/*height*/
n[12]
- ), mn(
+ ), gn(
e,
"width",
/*width*/
@@ -9178,7 +9178,7 @@ function E0(n) {
);
},
m(u, f) {
- et(u, e, f), tn(t, e, null), Le(e, i), Le(e, r), Le(r, a), tn(s, a, null), n[30](e), o = !0, l || (c = Mo(
+ tt(u, e, f), tn(t, e, null), Ne(e, i), Ne(e, r), Ne(r, a), tn(s, a, null), n[30](e), o = !0, l || (c = No(
r,
"click",
/*handle_click*/
@@ -9196,19 +9196,19 @@ function E0(n) {
f[0] & /*value*/
1 && (d.src = /*value*/
u[0].url), s.$set(d), (!o || f[0] & /*selectable*/
- 16) && Tu(
+ 16) && Iu(
a,
"selectable",
/*selectable*/
u[4]
), f[0] & /*height*/
- 4096 && mn(
+ 4096 && gn(
e,
"height",
/*height*/
u[12]
), f[0] & /*width*/
- 8192 && mn(
+ 8192 && gn(
e,
"width",
/*width*/
@@ -9219,7 +9219,7 @@ function E0(n) {
o || (ge(t.$$.fragment, u), ge(s.$$.fragment, u), o = !0);
},
o(u) {
- Ae(t.$$.fragment, u), Ae(s.$$.fragment, u), o = !1;
+ Ie(t.$$.fragment, u), Ie(s.$$.fragment, u), o = !1;
},
d(u) {
u && ue(e), en(t), en(s), n[30](null), l = !1, c();
@@ -9254,16 +9254,16 @@ function C0(n) {
t || (ge(e.$$.fragment, i), t = !0);
},
o(i) {
- Ae(e.$$.fragment, i), t = !1;
+ Ie(e.$$.fragment, i), t = !1;
},
d(i) {
en(e, i);
}
};
}
-function $u(n) {
+function xu(n) {
let e, t;
- return e = new If({
+ return e = new $f({
props: { fullscreen: (
/*fullscreen*/
n[9]
@@ -9292,18 +9292,18 @@ function $u(n) {
t || (ge(e.$$.fragment, i), t = !0);
},
o(i) {
- Ae(e.$$.fragment, i), t = !1;
+ Ie(e.$$.fragment, i), t = !1;
},
d(i) {
en(e, i);
}
};
}
-function xu(n) {
+function Pu(n) {
let e, t;
- return e = new wn({
+ return e = new Dn({
props: {
- Icon: vf,
+ Icon: yf,
label: "View Metadata",
"aria-label": "View and send image metadata"
}
@@ -9326,14 +9326,14 @@ function xu(n) {
t || (ge(e.$$.fragment, i), t = !0);
},
o(i) {
- Ae(e.$$.fragment, i), t = !1;
+ Ie(e.$$.fragment, i), t = !1;
},
d(i) {
en(e, i);
}
};
}
-function Pu(n) {
+function Bu(n) {
let e, t;
return e = new Pg({
props: {
@@ -9372,7 +9372,7 @@ function Pu(n) {
t || (ge(e.$$.fragment, i), t = !0);
},
o(i) {
- Ae(e.$$.fragment, i), t = !1;
+ Ie(e.$$.fragment, i), t = !1;
},
d(i) {
en(e, i);
@@ -9381,7 +9381,7 @@ function Pu(n) {
}
function k0(n) {
let e, t;
- return e = new wn({
+ return e = new Dn({
props: {
Icon: $p,
label: (
@@ -9409,14 +9409,14 @@ function k0(n) {
t || (ge(e.$$.fragment, i), t = !0);
},
o(i) {
- Ae(e.$$.fragment, i), t = !1;
+ Ie(e.$$.fragment, i), t = !1;
},
d(i) {
en(e, i);
}
};
}
-function Bu(n) {
+function Ou(n) {
let e, t;
return e = new Fm({
props: {
@@ -9463,7 +9463,7 @@ function Bu(n) {
t || (ge(e.$$.fragment, i), t = !0);
},
o(i) {
- Ae(e.$$.fragment, i), t = !1;
+ Ie(e.$$.fragment, i), t = !1;
},
d(i) {
en(e, i);
@@ -9473,16 +9473,16 @@ function Bu(n) {
function S0(n) {
let e, t, i, r, a, s = (
/*show_fullscreen_button*/
- n[7] && $u(n)
+ n[7] && xu(n)
), o = (
/*metadata*/
- n[14] !== null && xu(n)
+ n[14] !== null && Pu(n)
), l = (
/*show_download_button*/
- n[3] && Pu(n)
+ n[3] && Bu(n)
), c = (
/*show_share_button*/
- n[5] && Bu(n)
+ n[5] && Ou(n)
);
return {
c() {
@@ -9492,24 +9492,24 @@ function S0(n) {
s && s.l(u), e = Nt(u), o && o.l(u), t = Nt(u), l && l.l(u), i = Nt(u), c && c.l(u), r = pi();
},
m(u, f) {
- s && s.m(u, f), et(u, e, f), o && o.m(u, f), et(u, t, f), l && l.m(u, f), et(u, i, f), c && c.m(u, f), et(u, r, f), a = !0;
+ s && s.m(u, f), tt(u, e, f), o && o.m(u, f), tt(u, t, f), l && l.m(u, f), tt(u, i, f), c && c.m(u, f), tt(u, r, f), a = !0;
},
p(u, f) {
/*show_fullscreen_button*/
u[7] ? s ? (s.p(u, f), f[0] & /*show_fullscreen_button*/
- 128 && ge(s, 1)) : (s = $u(u), s.c(), ge(s, 1), s.m(e.parentNode, e)) : s && (Ni(), Ae(s, 1, 1, () => {
+ 128 && ge(s, 1)) : (s = xu(u), s.c(), ge(s, 1), s.m(e.parentNode, e)) : s && (Ni(), Ie(s, 1, 1, () => {
s = null;
}), Mi()), /*metadata*/
u[14] !== null ? o ? (o.p(u, f), f[0] & /*metadata*/
- 16384 && ge(o, 1)) : (o = xu(u), o.c(), ge(o, 1), o.m(t.parentNode, t)) : o && (Ni(), Ae(o, 1, 1, () => {
+ 16384 && ge(o, 1)) : (o = Pu(u), o.c(), ge(o, 1), o.m(t.parentNode, t)) : o && (Ni(), Ie(o, 1, 1, () => {
o = null;
}), Mi()), /*show_download_button*/
u[3] ? l ? (l.p(u, f), f[0] & /*show_download_button*/
- 8 && ge(l, 1)) : (l = Pu(u), l.c(), ge(l, 1), l.m(i.parentNode, i)) : l && (Ni(), Ae(l, 1, 1, () => {
+ 8 && ge(l, 1)) : (l = Bu(u), l.c(), ge(l, 1), l.m(i.parentNode, i)) : l && (Ni(), Ie(l, 1, 1, () => {
l = null;
}), Mi()), /*show_share_button*/
u[5] ? c ? (c.p(u, f), f[0] & /*show_share_button*/
- 32 && ge(c, 1)) : (c = Bu(u), c.c(), ge(c, 1), c.m(r.parentNode, r)) : c && (Ni(), Ae(c, 1, 1, () => {
+ 32 && ge(c, 1)) : (c = Ou(u), c.c(), ge(c, 1), c.m(r.parentNode, r)) : c && (Ni(), Ie(c, 1, 1, () => {
c = null;
}), Mi());
},
@@ -9517,7 +9517,7 @@ function S0(n) {
a || (ge(s), ge(o), ge(l), ge(c), a = !0);
},
o(u) {
- Ae(s), Ae(o), Ae(l), Ae(c), a = !1;
+ Ie(s), Ie(o), Ie(l), Ie(c), a = !1;
},
d(u) {
u && (ue(e), ue(t), ue(i), ue(r)), s && s.d(u), o && o.d(u), l && l.d(u), c && c.d(u);
@@ -9526,7 +9526,7 @@ function S0(n) {
}
function A0(n) {
let e, t;
- return e = new So({}), {
+ return e = new Ao({}), {
c() {
Jt(e.$$.fragment);
},
@@ -9540,14 +9540,14 @@ function A0(n) {
t || (ge(e.$$.fragment, i), t = !0);
},
o(i) {
- Ae(e.$$.fragment, i), t = !1;
+ Ie(e.$$.fragment, i), t = !1;
},
d(i) {
en(e, i);
}
};
}
-function Ou(n) {
+function Lu(n) {
let e, t, i, r = "X", a, s, o = "Image Metadata", l, c, u;
function f(p, v) {
return (
@@ -9558,17 +9558,17 @@ function Ou(n) {
let h = f(n), d = h(n);
return {
c() {
- e = Je("div"), t = Je("div"), i = Je("button"), i.textContent = r, a = Ut(), s = Je("h3"), s.textContent = o, l = Ut(), d.c(), this.h();
+ e = et("div"), t = et("div"), i = et("button"), i.textContent = r, a = Ut(), s = et("h3"), s.textContent = o, l = Ut(), d.c(), this.h();
},
l(p) {
- e = Qe(p, "DIV", { class: !0 });
+ e = Je(p, "DIV", { class: !0 });
var v = vt(e);
- t = Qe(v, "DIV", { class: !0 });
+ t = Je(v, "DIV", { class: !0 });
var w = vt(t);
- i = Qe(w, "BUTTON", { class: !0, "data-svelte-h": !0 }), Ws(i) !== "svelte-1irq3m4" && (i.textContent = r), a = Nt(w), s = Qe(w, "H3", { class: !0, "data-svelte-h": !0 }), Ws(s) !== "svelte-1tc7pig" && (s.textContent = o), l = Nt(w), d.l(w), w.forEach(ue), v.forEach(ue), this.h();
+ i = Je(w, "BUTTON", { class: !0, "data-svelte-h": !0 }), Xs(i) !== "svelte-1irq3m4" && (i.textContent = r), a = Nt(w), s = Je(w, "H3", { class: !0, "data-svelte-h": !0 }), Xs(s) !== "svelte-1tc7pig" && (s.textContent = o), l = Nt(w), d.l(w), w.forEach(ue), v.forEach(ue), this.h();
},
h() {
- mt(i, "class", "close-button svelte-157jyrf"), mt(s, "class", "popup-title svelte-157jyrf"), mt(t, "class", "popup-content svelte-157jyrf"), mt(e, "class", "metadata-popup svelte-157jyrf"), mn(e, "width", typeof /*popup_metadata_width*/
+ mt(i, "class", "close-button svelte-ui4ajv"), mt(s, "class", "popup-title svelte-ui4ajv"), mt(t, "class", "popup-content svelte-ui4ajv"), mt(e, "class", "metadata-popup svelte-ui4ajv"), gn(e, "width", typeof /*popup_metadata_width*/
n[10] == "number" ? `${Math.min(
/*popup_metadata_width*/
n[10],
@@ -9578,7 +9578,7 @@ function Ou(n) {
)
)}px` : `min(${/*popup_metadata_width*/
n[10]}, ${/*maxPopupWidth*/
- n[17]})`), mn(e, "height", typeof /*popup_metadata_height*/
+ n[17]})`), gn(e, "height", typeof /*popup_metadata_height*/
n[11] == "number" ? `${/*popup_metadata_height*/
n[11]}px` : (
/*popup_metadata_height*/
@@ -9586,7 +9586,7 @@ function Ou(n) {
));
},
m(p, v) {
- et(p, e, v), Le(e, t), Le(t, i), Le(t, a), Le(t, s), Le(t, l), d.m(t, null), c || (u = Mo(
+ tt(p, e, v), Ne(e, t), Ne(t, i), Ne(t, a), Ne(t, s), Ne(t, l), d.m(t, null), c || (u = No(
i,
"click",
/*closePopup*/
@@ -9595,7 +9595,7 @@ function Ou(n) {
},
p(p, v) {
h === (h = f(p)) && d ? d.p(p, v) : (d.d(1), d = h(p), d && (d.c(), d.m(t, null))), v[0] & /*popup_metadata_width, maxPopupWidth*/
- 132096 && mn(e, "width", typeof /*popup_metadata_width*/
+ 132096 && gn(e, "width", typeof /*popup_metadata_width*/
p[10] == "number" ? `${Math.min(
/*popup_metadata_width*/
p[10],
@@ -9606,7 +9606,7 @@ function Ou(n) {
)}px` : `min(${/*popup_metadata_width*/
p[10]}, ${/*maxPopupWidth*/
p[17]})`), v[0] & /*popup_metadata_height*/
- 2048 && mn(e, "height", typeof /*popup_metadata_height*/
+ 2048 && gn(e, "height", typeof /*popup_metadata_height*/
p[11] == "number" ? `${/*popup_metadata_height*/
p[11]}px` : (
/*popup_metadata_height*/
@@ -9619,38 +9619,38 @@ function Ou(n) {
};
}
function F0(n) {
- let e, t, i, r, a, s = "Load Metadata", o, l, c = Fu(Object.entries(
+ let e, t, i, r, a, s = "Load Metadata", o, l, c = Tu(Object.entries(
/*filteredMetadata*/
n[18]
)), u = [];
for (let f = 0; f < c.length; f += 1)
- u[f] = Ru(Iu(n, c, f));
+ u[f] = Mu($u(n, c, f));
return {
c() {
- e = Je("div"), t = Je("table"), i = Je("tbody");
+ e = et("div"), t = et("table"), i = et("tbody");
for (let f = 0; f < u.length; f += 1)
u[f].c();
- r = Ut(), a = Je("button"), a.textContent = s, this.h();
+ r = Ut(), a = et("button"), a.textContent = s, this.h();
},
l(f) {
- e = Qe(f, "DIV", { class: !0 });
+ e = Je(f, "DIV", { class: !0 });
var h = vt(e);
- t = Qe(h, "TABLE", { class: !0 });
+ t = Je(h, "TABLE", { class: !0 });
var d = vt(t);
- i = Qe(d, "TBODY", {});
+ i = Je(d, "TBODY", {});
var p = vt(i);
for (let v = 0; v < u.length; v += 1)
u[v].l(p);
- p.forEach(ue), d.forEach(ue), h.forEach(ue), r = Nt(f), a = Qe(f, "BUTTON", { class: !0, "data-svelte-h": !0 }), Ws(a) !== "svelte-1uwkq18" && (a.textContent = s), this.h();
+ p.forEach(ue), d.forEach(ue), h.forEach(ue), r = Nt(f), a = Je(f, "BUTTON", { class: !0, "data-svelte-h": !0 }), Xs(a) !== "svelte-1uwkq18" && (a.textContent = s), this.h();
},
h() {
- mt(t, "class", "metadata-table svelte-157jyrf"), mt(e, "class", "metadata-table-container svelte-157jyrf"), mt(a, "class", "load-metadata-button svelte-157jyrf");
+ mt(t, "class", "metadata-table svelte-ui4ajv"), mt(e, "class", "metadata-table-container svelte-ui4ajv"), mt(a, "class", "load-metadata-button svelte-ui4ajv");
},
m(f, h) {
- et(f, e, h), Le(e, t), Le(t, i);
+ tt(f, e, h), Ne(e, t), Ne(t, i);
for (let d = 0; d < u.length; d += 1)
u[d] && u[d].m(i, null);
- et(f, r, h), et(f, a, h), o || (l = Mo(
+ tt(f, r, h), tt(f, a, h), o || (l = No(
a,
"click",
/*dispatchLoadMetadata*/
@@ -9660,14 +9660,14 @@ function F0(n) {
p(f, h) {
if (h[0] & /*filteredMetadata*/
262144) {
- c = Fu(Object.entries(
+ c = Tu(Object.entries(
/*filteredMetadata*/
f[18]
));
let d;
for (d = 0; d < c.length; d += 1) {
- const p = Iu(f, c, d);
- u[d] ? u[d].p(p, h) : (u[d] = Ru(p), u[d].c(), u[d].m(i, null));
+ const p = $u(f, c, d);
+ u[d] ? u[d].p(p, h) : (u[d] = Mu(p), u[d].c(), u[d].m(i, null));
}
for (; d < u.length; d += 1)
u[d].d(1);
@@ -9686,27 +9686,27 @@ function T0(n) {
), i;
return {
c() {
- e = Je("p"), i = Zs(t);
+ e = et("p"), i = Ys(t);
},
l(r) {
- e = Qe(r, "P", {});
+ e = Je(r, "P", {});
var a = vt(e);
- i = Vs(a, t), a.forEach(ue);
+ i = Ws(a, t), a.forEach(ue);
},
m(r, a) {
- et(r, e, a), Le(e, i);
+ tt(r, e, a), Ne(e, i);
},
p(r, a) {
a[0] & /*filteredMetadata*/
262144 && t !== (t = /*filteredMetadata*/
- r[18].error + "") && Xs(i, t);
+ r[18].error + "") && Zs(i, t);
},
d(r) {
r && ue(e);
}
};
}
-function Lu(n) {
+function Ru(n) {
let e, t, i = (
/*key*/
n[35] + ""
@@ -9716,39 +9716,39 @@ function Lu(n) {
), l, c;
return {
c() {
- e = Je("tr"), t = Je("td"), r = Zs(i), a = Ut(), s = Je("td"), l = Zs(o), c = Ut(), this.h();
+ e = et("tr"), t = et("td"), r = Ys(i), a = Ut(), s = et("td"), l = Ys(o), c = Ut(), this.h();
},
l(u) {
- e = Qe(u, "TR", {});
+ e = Je(u, "TR", {});
var f = vt(e);
- t = Qe(f, "TD", { class: !0 });
+ t = Je(f, "TD", { class: !0 });
var h = vt(t);
- r = Vs(h, i), h.forEach(ue), a = Nt(f), s = Qe(f, "TD", { class: !0 });
+ r = Ws(h, i), h.forEach(ue), a = Nt(f), s = Je(f, "TD", { class: !0 });
var d = vt(s);
- l = Vs(d, o), d.forEach(ue), c = Nt(f), f.forEach(ue), this.h();
+ l = Ws(d, o), d.forEach(ue), c = Nt(f), f.forEach(ue), this.h();
},
h() {
- mt(t, "class", "metadata-label svelte-157jyrf"), mt(s, "class", "metadata-value svelte-157jyrf");
+ mt(t, "class", "metadata-label svelte-ui4ajv"), mt(s, "class", "metadata-value svelte-ui4ajv");
},
m(u, f) {
- et(u, e, f), Le(e, t), Le(t, r), Le(e, a), Le(e, s), Le(s, l), Le(e, c);
+ tt(u, e, f), Ne(e, t), Ne(t, r), Ne(e, a), Ne(e, s), Ne(s, l), Ne(e, c);
},
p(u, f) {
f[0] & /*filteredMetadata*/
262144 && i !== (i = /*key*/
- u[35] + "") && Xs(r, i), f[0] & /*filteredMetadata*/
+ u[35] + "") && Zs(r, i), f[0] & /*filteredMetadata*/
262144 && o !== (o = /*val*/
- u[36] + "") && Xs(l, o);
+ u[36] + "") && Zs(l, o);
},
d(u) {
u && ue(e);
}
};
}
-function Ru(n) {
+function Mu(n) {
let e, t = (
/*val*/
- n[36] && Lu(n)
+ n[36] && Ru(n)
);
return {
c() {
@@ -9758,11 +9758,11 @@ function Ru(n) {
t && t.l(i), e = pi();
},
m(i, r) {
- t && t.m(i, r), et(i, e, r);
+ t && t.m(i, r), tt(i, e, r);
},
p(i, r) {
/*val*/
- i[36] ? t ? t.p(i, r) : (t = Lu(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ i[36] ? t ? t.p(i, r) : (t = Ru(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(i) {
i && ue(e), t && t.d(i);
@@ -9771,13 +9771,13 @@ function Ru(n) {
}
function I0(n) {
let e, t, i, r, a, s, o;
- e = new mf({
+ e = new gf({
props: {
show_label: (
/*show_label*/
n[2]
),
- Icon: So,
+ Icon: Ao,
label: /*show_label*/ n[2] ? (
/*label*/
n[1] || /*i18n*/
@@ -9797,7 +9797,7 @@ function I0(n) {
let f = (
/*showMetadataPopup*/
n[15] && /*filteredMetadata*/
- n[18] !== null && Ou(n)
+ n[18] !== null && Lu(n)
);
return {
c() {
@@ -9807,7 +9807,7 @@ function I0(n) {
Qt(e.$$.fragment, h), t = Nt(h), r.l(h), a = Nt(h), f && f.l(h), s = pi();
},
m(h, d) {
- tn(e, h, d), et(h, t, d), c[i].m(h, d), et(h, a, d), f && f.m(h, d), et(h, s, d), o = !0;
+ tn(e, h, d), tt(h, t, d), c[i].m(h, d), tt(h, a, d), f && f.m(h, d), tt(h, s, d), o = !0;
},
p(h, d) {
const p = {};
@@ -9821,17 +9821,17 @@ function I0(n) {
h[6]("image.image")
) : ""), e.$set(p);
let v = i;
- i = u(h), i === v ? c[i].p(h, d) : (Ni(), Ae(c[v], 1, 1, () => {
+ i = u(h), i === v ? c[i].p(h, d) : (Ni(), Ie(c[v], 1, 1, () => {
c[v] = null;
}), Mi(), r = c[i], r ? r.p(h, d) : (r = c[i] = l[i](h), r.c()), ge(r, 1), r.m(a.parentNode, a)), /*showMetadataPopup*/
h[15] && /*filteredMetadata*/
- h[18] !== null ? f ? f.p(h, d) : (f = Ou(h), f.c(), f.m(s.parentNode, s)) : f && (f.d(1), f = null);
+ h[18] !== null ? f ? f.p(h, d) : (f = Lu(h), f.c(), f.m(s.parentNode, s)) : f && (f.d(1), f = null);
},
i(h) {
o || (ge(e.$$.fragment, h), ge(r), o = !0);
},
o(h) {
- Ae(e.$$.fragment, h), Ae(r), o = !1;
+ Ie(e.$$.fragment, h), Ie(r), o = !1;
},
d(h) {
h && (ue(t), ue(a), ue(s)), en(e, h), c[i].d(h), f && f.d(h);
@@ -9840,35 +9840,35 @@ function I0(n) {
}
function $0(n, e, t) {
let i, r;
- var a = this && this.__awaiter || function(x, z, Q, F) {
- function Ce(ke) {
- return ke instanceof Q ? ke : new Q(function(I) {
- I(ke);
+ var a = this && this.__awaiter || function(x, H, J, T) {
+ function ke(Se) {
+ return Se instanceof J ? Se : new J(function(I) {
+ I(Se);
});
}
- return new (Q || (Q = Promise))(function(ke, I) {
+ return new (J || (J = Promise))(function(Se, I) {
function q(ce) {
try {
- W(F.next(ce));
- } catch (T) {
- I(T);
+ V(T.next(ce));
+ } catch (Ee) {
+ I(Ee);
}
}
function j(ce) {
try {
- W(F.throw(ce));
- } catch (T) {
- I(T);
+ V(T.throw(ce));
+ } catch (Ee) {
+ I(Ee);
}
}
- function W(ce) {
- ce.done ? ke(ce.value) : Ce(ce.value).then(q, j);
+ function V(ce) {
+ ce.done ? Se(ce.value) : ke(ce.value).then(q, j);
}
- W((F = F.apply(x, z || [])).next());
+ V((T = T.apply(x, H || [])).next());
});
};
- let { value: s } = e, { label: o = void 0 } = e, { show_label: l } = e, { show_download_button: c = !0 } = e, { selectable: u = !1 } = e, { show_share_button: f = !1 } = e, { i18n: h } = e, { show_fullscreen_button: d = !0 } = e, { display_icon_button_wrapper_top_corner: p = !1 } = e, { fullscreen: v = !1 } = e, { only_custom_metadata: w = !0 } = e, { popup_metadata_width: E = 400 } = e, { popup_metadata_height: m = 300 } = e, { height: _ = void 0 } = e, { width: g = void 0 } = e, b = null, D = !1, C;
- const P = D0(), S = [
+ let { value: s } = e, { label: o = void 0 } = e, { show_label: l } = e, { show_download_button: c = !0 } = e, { selectable: u = !1 } = e, { show_share_button: f = !1 } = e, { i18n: h } = e, { show_fullscreen_button: d = !0 } = e, { display_icon_button_wrapper_top_corner: p = !1 } = e, { fullscreen: v = !1 } = e, { only_custom_metadata: w = !0 } = e, { popup_metadata_width: E = 400 } = e, { popup_metadata_height: m = 300 } = e, { height: _ = void 0 } = e, { width: g = void 0 } = e, b = null, D = !1, k;
+ const P = D0(), A = [
"ImageWidth",
"ImageHeight",
"BitDepth",
@@ -9887,10 +9887,10 @@ function $0(n, e, t) {
t(14, b = null);
else if (x.url.toLowerCase().endsWith(".png") || x.url.toLowerCase().endsWith(".jpg") || x.url.toLowerCase().endsWith(".jpeg"))
try {
- const z = yield Wf(x.url, { exif: !0, iptc: !0, xmp: !0 });
- if (t(14, b = {}), z)
- for (const [Q, F] of Object.entries(z))
- (typeof F == "string" || typeof F == "number" || typeof F == "boolean") && t(14, b[Q] = F, b);
+ const H = yield Vs(x.url, { exif: !0, iptc: !0, xmp: !0 });
+ if (t(14, b = {}), H)
+ for (const [J, T] of Object.entries(H))
+ (typeof T == "string" || typeof T == "number" || typeof T == "boolean") && t(14, b[J] = T, b);
} catch {
t(14, b = {});
}
@@ -9898,37 +9898,37 @@ function $0(n, e, t) {
t(14, b = {});
});
}
- function L(x) {
- let z = $f(x);
- z && P("select", { index: z, value: null });
+ function B(x) {
+ let H = xf(x);
+ H && P("select", { index: H, value: null });
}
- function O() {
+ function L() {
b !== null && t(15, D = !D);
}
- function he() {
- b !== null && (P("load_metadata"), G());
+ function de() {
+ b !== null && (P("load_metadata"), z());
}
- function G() {
+ function z() {
t(15, D = !1);
}
- function ne(x) {
+ function te(x) {
Br.call(this, n, x);
}
- const J = (x) => {
- O(), x.stopPropagation();
+ const Q = (x) => {
+ L(), x.stopPropagation();
}, oe = async (x) => x ? `
` : "";
- function V(x) {
+ function X(x) {
Br.call(this, n, x);
}
- function le(x) {
+ function ne(x) {
Br.call(this, n, x);
}
function De(x) {
Br.call(this, n, x);
}
- function A(x) {
+ function F(x) {
g0[x ? "unshift" : "push"](() => {
- C = x, t(16, C);
+ k = x, t(16, k);
});
}
return n.$$set = (x) => {
@@ -9936,7 +9936,7 @@ function $0(n, e, t) {
}, n.$$.update = () => {
n.$$.dirty[0] & /*value*/
1 && (s ? R(s) : t(14, b = null)), n.$$.dirty[0] & /*only_custom_metadata, metadata*/
- 8404992 && t(18, i = w ? Object.fromEntries(Object.entries(b || {}).filter(([x]) => !S.includes(x))) : b), n.$$.dirty[0] & /*width*/
+ 8404992 && t(18, i = w ? Object.fromEntries(Object.entries(b || {}).filter(([x]) => !A.includes(x))) : b), n.$$.dirty[0] & /*width*/
8192 && t(17, r = typeof g == "number" ? g - 20 : typeof g == "string" ? `calc(${g} - 20px)` : "380px");
}, [
s,
@@ -9955,21 +9955,21 @@ function $0(n, e, t) {
g,
b,
D,
- C,
+ k,
r,
i,
+ B,
L,
- O,
- he,
- G,
+ de,
+ z,
w,
- ne,
- J,
+ te,
+ Q,
oe,
- V,
- le,
+ X,
+ ne,
De,
- A
+ F
];
}
class x0 extends m0 {
@@ -10031,13 +10031,13 @@ class B0 {
}
}
typeof process < "u" && process.versions && process.versions.node;
-var cn;
+var fn;
class w6 extends TransformStream {
/** Constructs a new instance. */
constructor(t = { allowCR: !1 }) {
super({
transform: (i, r) => {
- for (i = ti(this, cn) + i; ; ) {
+ for (i = ti(this, fn) + i; ; ) {
const a = i.indexOf(`
`), s = t.allowCR ? i.indexOf("\r") : -1;
if (s !== -1 && s !== i.length - 1 && (a === -1 || a - 1 > s)) {
@@ -10049,20 +10049,20 @@ class w6 extends TransformStream {
const o = i[a - 1] === "\r" ? a - 1 : a;
r.enqueue(i.slice(0, o)), i = i.slice(a + 1);
}
- ol(this, cn, i);
+ ll(this, fn, i);
},
flush: (i) => {
- if (ti(this, cn) === "")
+ if (ti(this, fn) === "")
return;
- const r = t.allowCR && ti(this, cn).endsWith("\r") ? ti(this, cn).slice(0, -1) : ti(this, cn);
+ const r = t.allowCR && ti(this, fn).endsWith("\r") ? ti(this, fn).slice(0, -1) : ti(this, fn);
i.enqueue(r);
}
});
- Ra(this, cn, "");
+ Ra(this, fn, "");
}
}
-cn = new WeakMap();
-function Pn() {
+fn = new WeakMap();
+function Bn() {
}
function O0(n) {
return n();
@@ -10073,13 +10073,13 @@ function L0(n) {
function R0(n, ...e) {
if (n == null) {
for (const i of e) i(void 0);
- return Pn;
+ return Bn;
}
const t = n.subscribe(...e);
return t.unsubscribe ? () => t.unsubscribe() : t;
}
const eh = typeof window < "u";
-let Mu = eh ? () => window.performance.now() : () => Date.now(), th = eh ? (n) => requestAnimationFrame(n) : Pn;
+let Nu = eh ? () => window.performance.now() : () => Date.now(), th = eh ? (n) => requestAnimationFrame(n) : Bn;
const hi = /* @__PURE__ */ new Set();
function nh(n) {
hi.forEach((e) => {
@@ -10098,7 +10098,7 @@ const ai = [];
function N0(n, e) {
return { subscribe: sr(n, e).subscribe };
}
-function sr(n, e = Pn) {
+function sr(n, e = Bn) {
let t;
const i = /* @__PURE__ */ new Set();
function r(s) {
@@ -10115,9 +10115,9 @@ function sr(n, e = Pn) {
function a(s) {
r(s(n));
}
- return { set: r, update: a, subscribe: function(s, o = Pn) {
+ return { set: r, update: a, subscribe: function(s, o = Bn) {
const l = [s, o];
- return i.add(l), i.size === 1 && (t = e(r, a) || Pn), s(n), () => {
+ return i.add(l), i.size === 1 && (t = e(r, a) || Bn), s(n), () => {
i.delete(l), i.size === 0 && t && (t(), t = null);
};
} };
@@ -10129,12 +10129,12 @@ function Di(n, e, t) {
return N0(t, (s, o) => {
let l = !1;
const c = [];
- let u = 0, f = Pn;
+ let u = 0, f = Bn;
const h = () => {
if (u) return;
f();
const p = e(i ? c[0] : c, s, o);
- a ? s(p) : f = L0(p) ? p : Pn;
+ a ? s(p) : f = L0(p) ? p : Bn;
}, d = r.map((p, v) => R0(p, (w) => {
c[v] = w, u &= ~(1 << v), l && h();
}, () => {
@@ -10145,32 +10145,32 @@ function Di(n, e, t) {
};
});
}
-function Nu(n) {
+function Uu(n) {
return Object.prototype.toString.call(n) === "[object Date]";
}
-function Ys(n, e, t, i) {
- if (typeof t == "number" || Nu(t)) {
+function Ks(n, e, t, i) {
+ if (typeof t == "number" || Uu(t)) {
const r = i - t, a = (t - e) / (n.dt || 1 / 60), s = (a + (n.opts.stiffness * r - n.opts.damping * a) * n.inv_mass) * n.dt;
- return Math.abs(s) < n.opts.precision && Math.abs(r) < n.opts.precision ? i : (n.settled = !1, Nu(t) ? new Date(t.getTime() + s) : t + s);
+ return Math.abs(s) < n.opts.precision && Math.abs(r) < n.opts.precision ? i : (n.settled = !1, Uu(t) ? new Date(t.getTime() + s) : t + s);
}
- if (Array.isArray(t)) return t.map((r, a) => Ys(n, e[a], t[a], i[a]));
+ if (Array.isArray(t)) return t.map((r, a) => Ks(n, e[a], t[a], i[a]));
if (typeof t == "object") {
const r = {};
- for (const a in t) r[a] = Ys(n, e[a], t[a], i[a]);
+ for (const a in t) r[a] = Ks(n, e[a], t[a], i[a]);
return r;
}
throw new Error(`Cannot spring ${typeof t} values`);
}
-function Uu(n, e = {}) {
+function Hu(n, e = {}) {
const t = sr(n), { stiffness: i = 0.15, damping: r = 0.8, precision: a = 0.01 } = e;
let s, o, l, c = n, u = n, f = 1, h = 0, d = !1;
function p(w, E = {}) {
u = w;
const m = l = {};
- return n == null || E.hard || v.stiffness >= 1 && v.damping >= 1 ? (d = !0, s = Mu(), c = w, t.set(n = u), Promise.resolve()) : (E.soft && (h = 1 / (60 * (E.soft === !0 ? 0.5 : +E.soft)), f = 0), o || (s = Mu(), d = !1, o = M0((_) => {
+ return n == null || E.hard || v.stiffness >= 1 && v.damping >= 1 ? (d = !0, s = Nu(), c = w, t.set(n = u), Promise.resolve()) : (E.soft && (h = 1 / (60 * (E.soft === !0 ? 0.5 : +E.soft)), f = 0), o || (s = Nu(), d = !1, o = M0((_) => {
if (d) return d = !1, o = null, !1;
f = Math.min(f + h, 1);
- const g = { inv_mass: f, opts: v, settled: !0, dt: 60 * (_ - s) / 1e3 }, b = Ys(g, c, n, u);
+ const g = { inv_mass: f, opts: v, settled: !0, dt: 60 * (_ - s) / 1e3 }, b = Ks(g, c, n, u);
return s = _, c = n, t.set(n = b), g.settled && (o = null), !g.settled;
})), new Promise((_) => {
o.promise.then(() => {
@@ -10218,7 +10218,7 @@ function Y0(n) {
return Object.propertyIsEnumerable.call(n, e);
}) : [];
}
-function Hu(n) {
+function Gu(n) {
return Object.keys(n).concat(Y0(n));
}
function ih(n, e) {
@@ -10233,9 +10233,9 @@ function K0(n, e) {
}
function Q0(n, e, t) {
var i = {};
- return t.isMergeableObject(n) && Hu(n).forEach(function(r) {
+ return t.isMergeableObject(n) && Gu(n).forEach(function(r) {
i[r] = Ji(n[r], t);
- }), Hu(e).forEach(function(r) {
+ }), Gu(e).forEach(function(r) {
K0(n, r) || (ih(n, r) && t.isMergeableObject(e[r]) ? i[r] = Z0(r, t)(n[r], e[r], t) : i[r] = Ji(e[r], t));
}), i;
}
@@ -10251,30 +10251,30 @@ mi.all = function(e, t) {
return mi(i, r, t);
}, {});
};
-var Ks = function(n, e) {
- return Ks = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
+var Qs = function(n, e) {
+ return Qs = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
t.__proto__ = i;
} || function(t, i) {
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
- }, Ks(n, e);
+ }, Qs(n, e);
};
function ka(n, e) {
if (typeof e != "function" && e !== null)
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
- Ks(n, e);
+ Qs(n, e);
function t() {
this.constructor = n;
}
n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
}
-var te = function() {
- return te = Object.assign || function(e) {
+var ee = function() {
+ return ee = Object.assign || function(e) {
for (var t, i = 1, r = arguments.length; i < r; i++) {
t = arguments[i];
for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
}
return e;
- }, te.apply(this, arguments);
+ }, ee.apply(this, arguments);
};
function ms(n, e, t) {
if (t || arguments.length === 2) for (var i = 0, r = e.length, a; i < r; i++)
@@ -10293,7 +10293,7 @@ var gi;
(function(n) {
n[n.number = 0] = "number", n[n.dateTime = 1] = "dateTime";
})(gi || (gi = {}));
-function Gu(n) {
+function zu(n) {
return n.type === me.literal;
}
function J0(n) {
@@ -10323,7 +10323,7 @@ function uh(n) {
function ch(n) {
return !!(n && typeof n == "object" && n.type === gi.number);
}
-function Qs(n) {
+function Js(n) {
return !!(n && typeof n == "object" && n.type === gi.dateTime);
}
var fh = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, t1 = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
@@ -10440,8 +10440,8 @@ function r1(n) {
function a1(n) {
return n.replace(/^(.*?)-/, "");
}
-var zu = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hh = /^(@+)?(\+|#+)?[rs]?$/g, s1 = /(\*)(0+)|(#+)(0+)|(0+)/g, dh = /^(0+)$/;
-function qu(n) {
+var qu = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hh = /^(@+)?(\+|#+)?[rs]?$/g, s1 = /(\*)(0+)|(#+)(0+)|(0+)/g, dh = /^(0+)$/;
+function ju(n) {
var e = {};
return n[n.length - 1] === "r" ? e.roundingPriority = "morePrecision" : n[n.length - 1] === "s" && (e.roundingPriority = "lessPrecision"), n.replace(hh, function(t, i, r) {
return typeof r != "string" ? (e.minimumSignificantDigits = i.length, e.maximumSignificantDigits = i.length) : r === "+" ? e.minimumSignificantDigits = i.length : i[0] === "#" ? e.maximumSignificantDigits = i.length : (e.minimumSignificantDigits = i.length, e.maximumSignificantDigits = i.length + (typeof r == "string" ? r.length : 0)), "";
@@ -10501,7 +10501,7 @@ function o1(n) {
}
return e;
}
-function ju(n) {
+function Vu(n) {
var e = {}, t = _h(n);
return t || e;
}
@@ -10540,13 +10540,13 @@ function l1(n) {
e.notation = "compact", e.compactDisplay = "long";
continue;
case "scientific":
- e = te(te(te({}, e), { notation: "scientific" }), r.options.reduce(function(l, c) {
- return te(te({}, l), ju(c));
+ e = ee(ee(ee({}, e), { notation: "scientific" }), r.options.reduce(function(l, c) {
+ return ee(ee({}, l), Vu(c));
}, {}));
continue;
case "engineering":
- e = te(te(te({}, e), { notation: "engineering" }), r.options.reduce(function(l, c) {
- return te(te({}, l), ju(c));
+ e = ee(ee(ee({}, e), { notation: "engineering" }), r.options.reduce(function(l, c) {
+ return ee(ee({}, l), Vu(c));
}, {}));
continue;
case "notation-simple":
@@ -10587,24 +10587,24 @@ function l1(n) {
e.minimumIntegerDigits = r.stem.length;
continue;
}
- if (zu.test(r.stem)) {
+ if (qu.test(r.stem)) {
if (r.options.length > 1)
throw new RangeError("Fraction-precision stems only accept a single optional option");
- r.stem.replace(zu, function(l, c, u, f, h, d) {
+ r.stem.replace(qu, function(l, c, u, f, h, d) {
return u === "*" ? e.minimumFractionDigits = c.length : f && f[0] === "#" ? e.maximumFractionDigits = f.length : h && d ? (e.minimumFractionDigits = h.length, e.maximumFractionDigits = h.length + d.length) : (e.minimumFractionDigits = c.length, e.maximumFractionDigits = c.length), "";
});
var a = r.options[0];
- a === "w" ? e = te(te({}, e), { trailingZeroDisplay: "stripIfInteger" }) : a && (e = te(te({}, e), qu(a)));
+ a === "w" ? e = ee(ee({}, e), { trailingZeroDisplay: "stripIfInteger" }) : a && (e = ee(ee({}, e), ju(a)));
continue;
}
if (hh.test(r.stem)) {
- e = te(te({}, e), qu(r.stem));
+ e = ee(ee({}, e), ju(r.stem));
continue;
}
var s = _h(r.stem);
- s && (e = te(te({}, e), s));
+ s && (e = ee(ee({}, e), s));
var o = o1(r.stem);
- o && (e = te(te({}, e), o));
+ o && (e = ee(ee({}, e), o));
}
return e;
}
@@ -11988,14 +11988,14 @@ function Y(n, e) {
}
var d1 = !!String.prototype.startsWith, _1 = !!String.fromCodePoint, p1 = !!Object.fromEntries, m1 = !!String.prototype.codePointAt, g1 = !!String.prototype.trimStart, b1 = !!String.prototype.trimEnd, v1 = !!Number.isSafeInteger, y1 = v1 ? Number.isSafeInteger : function(n) {
return typeof n == "number" && isFinite(n) && Math.floor(n) === n && Math.abs(n) <= 9007199254740991;
-}, Js = !0;
+}, eo = !0;
try {
var w1 = mh("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
- Js = ((gs = w1.exec("a")) === null || gs === void 0 ? void 0 : gs[0]) === "a";
+ eo = ((gs = w1.exec("a")) === null || gs === void 0 ? void 0 : gs[0]) === "a";
} catch {
- Js = !1;
+ eo = !1;
}
-var Vu = d1 ? (
+var Wu = d1 ? (
// Native
function(e, t, i) {
return e.startsWith(t, i);
@@ -12005,7 +12005,7 @@ var Vu = d1 ? (
function(e, t, i) {
return e.slice(i, i + t.length) === t;
}
-), eo = _1 ? String.fromCodePoint : (
+), to = _1 ? String.fromCodePoint : (
// IE11
function() {
for (var e = [], t = 0; t < arguments.length; t++)
@@ -12017,7 +12017,7 @@ var Vu = d1 ? (
}
return i;
}
-), Wu = (
+), Xu = (
// native
p1 ? Object.fromEntries : (
// Ponyfill
@@ -12067,24 +12067,24 @@ var Vu = d1 ? (
function mh(n, e) {
return new RegExp(n, e);
}
-var to;
-if (Js) {
- var Xu = mh("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
- to = function(e, t) {
+var no;
+if (eo) {
+ var Zu = mh("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
+ no = function(e, t) {
var i;
- Xu.lastIndex = t;
- var r = Xu.exec(e);
+ Zu.lastIndex = t;
+ var r = Zu.exec(e);
return (i = r[1]) !== null && i !== void 0 ? i : "";
};
} else
- to = function(e, t) {
+ no = function(e, t) {
for (var i = []; ; ) {
var r = ph(e, t);
if (r === void 0 || gh(r) || A1(r))
break;
i.push(r), t += r >= 65536 ? 2 : 1;
}
- return eo.apply(void 0, i);
+ return to.apply(void 0, i);
};
var C1 = (
/** @class */
@@ -12117,7 +12117,7 @@ var C1 = (
if (i)
break;
return this.error(Z.UNMATCHED_CLOSING_TAG, Y(this.clonePosition(), this.clonePosition()));
- } else if (a === 60 && !this.ignoreTag && no(this.peek() || 0)) {
+ } else if (a === 60 && !this.ignoreTag && io(this.peek() || 0)) {
var s = this.parseTag(e, t);
if (s.err)
return s;
@@ -12150,7 +12150,7 @@ var C1 = (
return a;
var s = a.val, o = this.clonePosition();
if (this.bumpIf("")) {
- if (this.isEOF() || !no(this.char()))
+ if (this.isEOF() || !io(this.char()))
return this.error(Z.INVALID_TAG, Y(o, this.clonePosition()));
var l = this.clonePosition(), c = this.parseTagName();
return r !== c ? this.error(Z.UNMATCHED_CLOSING_TAG, Y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -12231,12 +12231,12 @@ var C1 = (
t.push(i);
this.bump();
}
- return eo.apply(void 0, t);
+ return to.apply(void 0, t);
}, n.prototype.tryParseUnquoted = function(e, t) {
if (this.isEOF())
return null;
var i = this.char();
- return i === 60 || i === 123 || i === 35 && (t === "plural" || t === "selectordinal") || i === 125 && e > 0 ? null : (this.bump(), eo(i));
+ return i === 60 || i === 123 || i === 35 && (t === "plural" || t === "selectordinal") || i === 125 && e > 0 ? null : (this.bump(), to(i));
}, n.prototype.parseArgument = function(e, t) {
var i = this.clonePosition();
if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -12265,7 +12265,7 @@ var C1 = (
return this.error(Z.MALFORMED_ARGUMENT, Y(i, this.clonePosition()));
}
}, n.prototype.parseIdentifierIfPossible = function() {
- var e = this.clonePosition(), t = this.offset(), i = to(this.message, t), r = t + i.length;
+ var e = this.clonePosition(), t = this.offset(), i = no(this.message, t), r = t + i.length;
this.bumpTo(r);
var a = this.clonePosition(), s = Y(e, a);
return { value: i, location: s };
@@ -12294,7 +12294,7 @@ var C1 = (
if (p.err)
return p;
var v = Y(r, this.clonePosition());
- if (c && Vu(c == null ? void 0 : c.style, "::", 0)) {
+ if (c && Wu(c == null ? void 0 : c.style, "::", 0)) {
var w = D1(c.style.slice(2));
if (o === "number") {
var f = this.parseNumberSkeletonFromString(w, c.styleLocation);
@@ -12334,7 +12334,7 @@ var C1 = (
case "select": {
var _ = this.clonePosition();
if (this.bumpSpace(), !this.bumpIf(","))
- return this.error(Z.EXPECT_SELECT_ARGUMENT_OPTIONS, Y(_, te({}, _)));
+ return this.error(Z.EXPECT_SELECT_ARGUMENT_OPTIONS, Y(_, ee({}, _)));
this.bumpSpace();
var g = this.parseIdentifierIfPossible(), b = 0;
if (o !== "select" && g.value === "offset") {
@@ -12352,23 +12352,23 @@ var C1 = (
var p = this.tryParseArgumentClose(r);
if (p.err)
return p;
- var C = Y(r, this.clonePosition());
+ var k = Y(r, this.clonePosition());
return o === "select" ? {
val: {
type: me.select,
value: i,
- options: Wu(D.val),
- location: C
+ options: Xu(D.val),
+ location: k
},
err: null
} : {
val: {
type: me.plural,
value: i,
- options: Wu(D.val),
+ options: Xu(D.val),
offset: b,
pluralType: o === "plural" ? "cardinal" : "ordinal",
- location: C
+ location: k
},
err: null
};
@@ -12507,7 +12507,7 @@ var C1 = (
e === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += e < 65536 ? 1 : 2);
}
}, n.prototype.bumpIf = function(e) {
- if (Vu(this.message, e, this.offset())) {
+ if (Wu(this.message, e, this.offset())) {
for (var t = 0; t < e.length; t++)
this.bump();
return !0;
@@ -12539,11 +12539,11 @@ var C1 = (
}, n;
}()
);
-function no(n) {
+function io(n) {
return n >= 97 && n <= 122 || n >= 65 && n <= 90;
}
function k1(n) {
- return no(n) || n === 47;
+ return io(n) || n === 47;
}
function S1(n) {
return n === 45 || n === 46 || n >= 48 && n <= 57 || n === 95 || n >= 97 && n <= 122 || n >= 65 && n <= 90 || n == 183 || n >= 192 && n <= 214 || n >= 216 && n <= 246 || n >= 248 && n <= 893 || n >= 895 && n <= 8191 || n >= 8204 && n <= 8205 || n >= 8255 && n <= 8256 || n >= 8304 && n <= 8591 || n >= 11264 && n <= 12271 || n >= 12289 && n <= 55295 || n >= 63744 && n <= 64975 || n >= 65008 && n <= 65533 || n >= 65536 && n <= 983039;
@@ -12554,22 +12554,22 @@ function gh(n) {
function A1(n) {
return n >= 33 && n <= 35 || n === 36 || n >= 37 && n <= 39 || n === 40 || n === 41 || n === 42 || n === 43 || n === 44 || n === 45 || n >= 46 && n <= 47 || n >= 58 && n <= 59 || n >= 60 && n <= 62 || n >= 63 && n <= 64 || n === 91 || n === 92 || n === 93 || n === 94 || n === 96 || n === 123 || n === 124 || n === 125 || n === 126 || n === 161 || n >= 162 && n <= 165 || n === 166 || n === 167 || n === 169 || n === 171 || n === 172 || n === 174 || n === 176 || n === 177 || n === 182 || n === 187 || n === 191 || n === 215 || n === 247 || n >= 8208 && n <= 8213 || n >= 8214 && n <= 8215 || n === 8216 || n === 8217 || n === 8218 || n >= 8219 && n <= 8220 || n === 8221 || n === 8222 || n === 8223 || n >= 8224 && n <= 8231 || n >= 8240 && n <= 8248 || n === 8249 || n === 8250 || n >= 8251 && n <= 8254 || n >= 8257 && n <= 8259 || n === 8260 || n === 8261 || n === 8262 || n >= 8263 && n <= 8273 || n === 8274 || n === 8275 || n >= 8277 && n <= 8286 || n >= 8592 && n <= 8596 || n >= 8597 && n <= 8601 || n >= 8602 && n <= 8603 || n >= 8604 && n <= 8607 || n === 8608 || n >= 8609 && n <= 8610 || n === 8611 || n >= 8612 && n <= 8613 || n === 8614 || n >= 8615 && n <= 8621 || n === 8622 || n >= 8623 && n <= 8653 || n >= 8654 && n <= 8655 || n >= 8656 && n <= 8657 || n === 8658 || n === 8659 || n === 8660 || n >= 8661 && n <= 8691 || n >= 8692 && n <= 8959 || n >= 8960 && n <= 8967 || n === 8968 || n === 8969 || n === 8970 || n === 8971 || n >= 8972 && n <= 8991 || n >= 8992 && n <= 8993 || n >= 8994 && n <= 9e3 || n === 9001 || n === 9002 || n >= 9003 && n <= 9083 || n === 9084 || n >= 9085 && n <= 9114 || n >= 9115 && n <= 9139 || n >= 9140 && n <= 9179 || n >= 9180 && n <= 9185 || n >= 9186 && n <= 9254 || n >= 9255 && n <= 9279 || n >= 9280 && n <= 9290 || n >= 9291 && n <= 9311 || n >= 9472 && n <= 9654 || n === 9655 || n >= 9656 && n <= 9664 || n === 9665 || n >= 9666 && n <= 9719 || n >= 9720 && n <= 9727 || n >= 9728 && n <= 9838 || n === 9839 || n >= 9840 && n <= 10087 || n === 10088 || n === 10089 || n === 10090 || n === 10091 || n === 10092 || n === 10093 || n === 10094 || n === 10095 || n === 10096 || n === 10097 || n === 10098 || n === 10099 || n === 10100 || n === 10101 || n >= 10132 && n <= 10175 || n >= 10176 && n <= 10180 || n === 10181 || n === 10182 || n >= 10183 && n <= 10213 || n === 10214 || n === 10215 || n === 10216 || n === 10217 || n === 10218 || n === 10219 || n === 10220 || n === 10221 || n === 10222 || n === 10223 || n >= 10224 && n <= 10239 || n >= 10240 && n <= 10495 || n >= 10496 && n <= 10626 || n === 10627 || n === 10628 || n === 10629 || n === 10630 || n === 10631 || n === 10632 || n === 10633 || n === 10634 || n === 10635 || n === 10636 || n === 10637 || n === 10638 || n === 10639 || n === 10640 || n === 10641 || n === 10642 || n === 10643 || n === 10644 || n === 10645 || n === 10646 || n === 10647 || n === 10648 || n >= 10649 && n <= 10711 || n === 10712 || n === 10713 || n === 10714 || n === 10715 || n >= 10716 && n <= 10747 || n === 10748 || n === 10749 || n >= 10750 && n <= 11007 || n >= 11008 && n <= 11055 || n >= 11056 && n <= 11076 || n >= 11077 && n <= 11078 || n >= 11079 && n <= 11084 || n >= 11085 && n <= 11123 || n >= 11124 && n <= 11125 || n >= 11126 && n <= 11157 || n === 11158 || n >= 11159 && n <= 11263 || n >= 11776 && n <= 11777 || n === 11778 || n === 11779 || n === 11780 || n === 11781 || n >= 11782 && n <= 11784 || n === 11785 || n === 11786 || n === 11787 || n === 11788 || n === 11789 || n >= 11790 && n <= 11798 || n === 11799 || n >= 11800 && n <= 11801 || n === 11802 || n === 11803 || n === 11804 || n === 11805 || n >= 11806 && n <= 11807 || n === 11808 || n === 11809 || n === 11810 || n === 11811 || n === 11812 || n === 11813 || n === 11814 || n === 11815 || n === 11816 || n === 11817 || n >= 11818 && n <= 11822 || n === 11823 || n >= 11824 && n <= 11833 || n >= 11834 && n <= 11835 || n >= 11836 && n <= 11839 || n === 11840 || n === 11841 || n === 11842 || n >= 11843 && n <= 11855 || n >= 11856 && n <= 11857 || n === 11858 || n >= 11859 && n <= 11903 || n >= 12289 && n <= 12291 || n === 12296 || n === 12297 || n === 12298 || n === 12299 || n === 12300 || n === 12301 || n === 12302 || n === 12303 || n === 12304 || n === 12305 || n >= 12306 && n <= 12307 || n === 12308 || n === 12309 || n === 12310 || n === 12311 || n === 12312 || n === 12313 || n === 12314 || n === 12315 || n === 12316 || n === 12317 || n >= 12318 && n <= 12319 || n === 12320 || n === 12336 || n === 64830 || n === 64831 || n >= 65093 && n <= 65094;
}
-function io(n) {
+function ro(n) {
n.forEach(function(e) {
if (delete e.location, oh(e) || lh(e))
for (var t in e.options)
- delete e.options[t].location, io(e.options[t].value);
- else rh(e) && ch(e.style) || (ah(e) || sh(e)) && Qs(e.style) ? delete e.style.location : uh(e) && io(e.children);
+ delete e.options[t].location, ro(e.options[t].value);
+ else rh(e) && ch(e.style) || (ah(e) || sh(e)) && Js(e.style) ? delete e.style.location : uh(e) && ro(e.children);
});
}
function F1(n, e) {
- e === void 0 && (e = {}), e = te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, e);
+ e === void 0 && (e = {}), e = ee({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, e);
var t = new C1(n, e).parse();
if (t.err) {
var i = SyntaxError(Z[t.err.kind]);
throw i.location = t.err.location, i.originalMessage = t.err.message, i;
}
- return e != null && e.captureLocation || io(t.val), t.val;
+ return e != null && e.captureLocation || ro(t.val), t.val;
}
function bs(n, e) {
var t = e && e.cache ? e.cache : B1, i = e && e.serializer ? e.serializer : P1, r = e && e.strategy ? e.strategy : $1;
@@ -12602,18 +12602,18 @@ function x1(n, e) {
var P1 = function() {
return JSON.stringify(arguments);
};
-function No() {
+function Uo() {
this.cache = /* @__PURE__ */ Object.create(null);
}
-No.prototype.get = function(n) {
+Uo.prototype.get = function(n) {
return this.cache[n];
};
-No.prototype.set = function(n, e) {
+Uo.prototype.set = function(n, e) {
this.cache[n] = e;
};
var B1 = {
create: function() {
- return new No();
+ return new Uo();
}
}, vs = {
variadic: x1
@@ -12633,7 +12633,7 @@ var Sa = (
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
}, e;
}(Error)
-), Zu = (
+), Yu = (
/** @class */
function(n) {
ka(e, n);
@@ -12660,39 +12660,39 @@ var Sa = (
}
return e;
}(Sa)
-), Ke;
+), Qe;
(function(n) {
n[n.literal = 0] = "literal", n[n.object = 1] = "object";
-})(Ke || (Ke = {}));
+})(Qe || (Qe = {}));
function R1(n) {
return n.length < 2 ? n : n.reduce(function(e, t) {
var i = e[e.length - 1];
- return !i || i.type !== Ke.literal || t.type !== Ke.literal ? e.push(t) : i.value += t.value, e;
+ return !i || i.type !== Qe.literal || t.type !== Qe.literal ? e.push(t) : i.value += t.value, e;
}, []);
}
function M1(n) {
return typeof n == "function";
}
function qr(n, e, t, i, r, a, s) {
- if (n.length === 1 && Gu(n[0]))
+ if (n.length === 1 && zu(n[0]))
return [
{
- type: Ke.literal,
+ type: Qe.literal,
value: n[0].value
}
];
for (var o = [], l = 0, c = n; l < c.length; l++) {
var u = c[l];
- if (Gu(u)) {
+ if (zu(u)) {
o.push({
- type: Ke.literal,
+ type: Qe.literal,
value: u.value
});
continue;
}
if (e1(u)) {
typeof a == "number" && o.push({
- type: Ke.literal,
+ type: Qe.literal,
value: t.getNumberFormat(e).format(a)
});
continue;
@@ -12703,23 +12703,23 @@ function qr(n, e, t, i, r, a, s) {
var h = r[f];
if (J0(u)) {
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), o.push({
- type: typeof h == "string" ? Ke.literal : Ke.object,
+ type: typeof h == "string" ? Qe.literal : Qe.object,
value: h
});
continue;
}
if (ah(u)) {
- var d = typeof u.style == "string" ? i.date[u.style] : Qs(u.style) ? u.style.parsedOptions : void 0;
+ var d = typeof u.style == "string" ? i.date[u.style] : Js(u.style) ? u.style.parsedOptions : void 0;
o.push({
- type: Ke.literal,
+ type: Qe.literal,
value: t.getDateTimeFormat(e, d).format(h)
});
continue;
}
if (sh(u)) {
- var d = typeof u.style == "string" ? i.time[u.style] : Qs(u.style) ? u.style.parsedOptions : i.time.medium;
+ var d = typeof u.style == "string" ? i.time[u.style] : Js(u.style) ? u.style.parsedOptions : i.time.medium;
o.push({
- type: Ke.literal,
+ type: Qe.literal,
value: t.getDateTimeFormat(e, d).format(h)
});
continue;
@@ -12727,7 +12727,7 @@ function qr(n, e, t, i, r, a, s) {
if (rh(u)) {
var d = typeof u.style == "string" ? i.number[u.style] : ch(u.style) ? u.style.parsedOptions : void 0;
d && d.scale && (h = h * (d.scale || 1)), o.push({
- type: Ke.literal,
+ type: Qe.literal,
value: t.getNumberFormat(e, d).format(h)
});
continue;
@@ -12741,7 +12741,7 @@ function qr(n, e, t, i, r, a, s) {
}));
Array.isArray(m) || (m = [m]), o.push.apply(o, m.map(function(b) {
return {
- type: typeof b == "string" ? Ke.literal : Ke.object,
+ type: typeof b == "string" ? Qe.literal : Qe.object,
value: b
};
}));
@@ -12749,7 +12749,7 @@ function qr(n, e, t, i, r, a, s) {
if (oh(u)) {
var _ = u.options[h] || u.options.other;
if (!_)
- throw new Zu(u.value, h, Object.keys(u.options), s);
+ throw new Yu(u.value, h, Object.keys(u.options), s);
o.push.apply(o, qr(_.value, e, t, i, r));
continue;
}
@@ -12764,7 +12764,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
_ = u.options[g] || u.options.other;
}
if (!_)
- throw new Zu(u.value, h, Object.keys(u.options), s);
+ throw new Yu(u.value, h, Object.keys(u.options), s);
o.push.apply(o, qr(_.value, e, t, i, r, h - (u.offset || 0)));
continue;
}
@@ -12772,14 +12772,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
return R1(o);
}
function N1(n, e) {
- return e ? te(te(te({}, n || {}), e || {}), Object.keys(n).reduce(function(t, i) {
- return t[i] = te(te({}, n[i]), e[i] || {}), t;
+ return e ? ee(ee(ee({}, n || {}), e || {}), Object.keys(n).reduce(function(t, i) {
+ return t[i] = ee(ee({}, n[i]), e[i] || {}), t;
}, {})) : n;
}
function U1(n, e) {
return e ? Object.keys(n).reduce(function(t, i) {
return t[i] = N1(n[i], e[i]), t;
- }, te({}, n)) : n;
+ }, ee({}, n)) : n;
}
function ys(n) {
return {
@@ -12841,7 +12841,7 @@ var G1 = (
if (o.length === 1)
return o[0].value;
var l = o.reduce(function(c, u) {
- return !c.length || u.type !== Ke.literal || typeof c[c.length - 1] != "string" ? c.push(u.value) : c[c.length - 1] += u.value, c;
+ return !c.length || u.type !== Qe.literal || typeof c[c.length - 1] != "string" ? c.push(u.value) : c[c.length - 1] += u.value, c;
}, []);
return l.length <= 1 ? l[0] || "" : l;
}, this.formatToParts = function(s) {
@@ -12956,11 +12956,11 @@ function z1(n, e) {
i = void 0;
return i;
}
-const gn = {}, q1 = (n, e, t) => t && (e in gn || (gn[e] = {}), n in gn[e] || (gn[e][n] = t), t), yh = (n, e) => {
+const bn = {}, q1 = (n, e, t) => t && (e in bn || (bn[e] = {}), n in bn[e] || (bn[e][n] = t), t), yh = (n, e) => {
if (e == null)
return;
- if (e in gn && n in gn[e])
- return gn[e][n];
+ if (e in bn && n in bn[e])
+ return bn[e][n];
const t = Aa(e);
for (let i = 0; i < t.length; i++) {
const r = t[i], a = V1(r, n);
@@ -12968,13 +12968,13 @@ const gn = {}, q1 = (n, e, t) => t && (e in gn || (gn[e] = {}), n in gn[e] || (g
return q1(n, e, a);
}
};
-let Uo;
+let Ho;
const or = sr({});
function j1(n) {
- return Uo[n] || null;
+ return Ho[n] || null;
}
function wh(n) {
- return n in Uo;
+ return n in Ho;
}
function V1(n, e) {
if (!wh(n))
@@ -12993,13 +12993,13 @@ function W1(n) {
}
}
function X1(n, ...e) {
- delete gn[n], or.update((t) => (t[n] = mi.all([t[n] || {}, ...e]), t));
+ delete bn[n], or.update((t) => (t[n] = mi.all([t[n] || {}, ...e]), t));
}
Di(
[or],
([n]) => Object.keys(n)
);
-or.subscribe((n) => Uo = n);
+or.subscribe((n) => Ho = n);
const jr = {};
function Z1(n, e) {
jr[n].delete(e), jr[n].size === 0 && delete jr[n];
@@ -13013,7 +13013,7 @@ function Y1(n) {
return [e, t ? [...t] : []];
}).filter(([, e]) => e.length > 0);
}
-function ro(n) {
+function ao(n) {
return n == null ? !1 : Aa(n).some(
(e) => {
var t;
@@ -13028,7 +13028,7 @@ function K1(n, e) {
}
const xi = {};
function Eh(n) {
- if (!ro(n))
+ if (!ao(n))
return n in xi ? xi[n] : Promise.resolve();
const e = Y1(n);
return xi[n] = Promise.all(
@@ -13036,7 +13036,7 @@ function Eh(n) {
([t, i]) => K1(t, i)
)
).then(() => {
- if (ro(n))
+ if (ao(n))
return Eh(n);
delete xi[n];
}), xi[n];
@@ -13082,34 +13082,34 @@ function vi() {
return eb;
}
const ws = sr(!1);
-var tb = Object.defineProperty, nb = Object.defineProperties, ib = Object.getOwnPropertyDescriptors, Yu = Object.getOwnPropertySymbols, rb = Object.prototype.hasOwnProperty, ab = Object.prototype.propertyIsEnumerable, Ku = (n, e, t) => e in n ? tb(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, sb = (n, e) => {
+var tb = Object.defineProperty, nb = Object.defineProperties, ib = Object.getOwnPropertyDescriptors, Ku = Object.getOwnPropertySymbols, rb = Object.prototype.hasOwnProperty, ab = Object.prototype.propertyIsEnumerable, Qu = (n, e, t) => e in n ? tb(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, sb = (n, e) => {
for (var t in e || (e = {}))
- rb.call(e, t) && Ku(n, t, e[t]);
- if (Yu)
- for (var t of Yu(e))
- ab.call(e, t) && Ku(n, t, e[t]);
+ rb.call(e, t) && Qu(n, t, e[t]);
+ if (Ku)
+ for (var t of Ku(e))
+ ab.call(e, t) && Qu(n, t, e[t]);
return n;
}, ob = (n, e) => nb(n, ib(e));
-let ao;
+let so;
const fa = sr(null);
-function Qu(n) {
+function Ju(n) {
return n.split("-").map((e, t, i) => i.slice(0, t + 1).join("-")).reverse();
}
function Aa(n, e = vi().fallbackLocale) {
- const t = Qu(n);
- return e ? [.../* @__PURE__ */ new Set([...t, ...Qu(e)])] : t;
+ const t = Ju(n);
+ return e ? [.../* @__PURE__ */ new Set([...t, ...Ju(e)])] : t;
}
-function Zn() {
- return ao ?? void 0;
+function Yn() {
+ return so ?? void 0;
}
fa.subscribe((n) => {
- ao = n ?? void 0, typeof window < "u" && n != null && document.documentElement.setAttribute("lang", n);
+ so = n ?? void 0, typeof window < "u" && n != null && document.documentElement.setAttribute("lang", n);
});
const lb = (n) => {
- if (n && W1(n) && ro(n)) {
+ if (n && W1(n) && ao(n)) {
const { loadingDelay: e } = vi();
let t;
- return typeof window < "u" && Zn() != null && e ? t = window.setTimeout(
+ return typeof window < "u" && Yn() != null && e ? t = window.setTimeout(
() => ws.set(!0),
e
) : ws.set(!0), Eh(n).then(() => {
@@ -13128,12 +13128,12 @@ const lb = (n) => {
return r in e ? e[r] : e[r] = n(i);
};
};
-var ub = Object.defineProperty, ha = Object.getOwnPropertySymbols, Ch = Object.prototype.hasOwnProperty, kh = Object.prototype.propertyIsEnumerable, Ju = (n, e, t) => e in n ? ub(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Ho = (n, e) => {
+var ub = Object.defineProperty, ha = Object.getOwnPropertySymbols, Ch = Object.prototype.hasOwnProperty, kh = Object.prototype.propertyIsEnumerable, ec = (n, e, t) => e in n ? ub(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Go = (n, e) => {
for (var t in e || (e = {}))
- Ch.call(e, t) && Ju(n, t, e[t]);
+ Ch.call(e, t) && ec(n, t, e[t]);
if (ha)
for (var t of ha(e))
- kh.call(e, t) && Ju(n, t, e[t]);
+ kh.call(e, t) && ec(n, t, e[t]);
return n;
}, Ei = (n, e) => {
var t = {};
@@ -13174,28 +13174,28 @@ const er = (n, e) => {
}
), db = (n = {}) => {
var e = n, {
- locale: t = Zn()
+ locale: t = Yn()
} = e, i = Ei(e, [
"locale"
]);
- return cb(Ho({ locale: t }, i));
+ return cb(Go({ locale: t }, i));
}, _b = (n = {}) => {
var e = n, {
- locale: t = Zn()
+ locale: t = Yn()
} = e, i = Ei(e, [
"locale"
]);
- return fb(Ho({ locale: t }, i));
+ return fb(Go({ locale: t }, i));
}, pb = (n = {}) => {
var e = n, {
- locale: t = Zn()
+ locale: t = Yn()
} = e, i = Ei(e, [
"locale"
]);
- return hb(Ho({ locale: t }, i));
+ return hb(Go({ locale: t }, i));
}, mb = Fa(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- (n, e = Zn()) => new G1(n, e, vi().formats, {
+ (n, e = Yn()) => new G1(n, e, vi().formats, {
ignoreTag: vi().ignoreTag
})
), gb = (n, e = {}) => {
@@ -13204,7 +13204,7 @@ const er = (n, e) => {
typeof n == "object" && (s = n, n = s.id);
const {
values: o,
- locale: l = Zn(),
+ locale: l = Yn(),
default: c
} = s;
if (l == null)
@@ -13230,7 +13230,7 @@ const er = (n, e) => {
);
}
return f;
-}, bb = (n, e) => pb(e).format(n), vb = (n, e) => _b(e).format(n), yb = (n, e) => db(e).format(n), wb = (n, e = Zn()) => yh(n, e);
+}, bb = (n, e) => pb(e).format(n), vb = (n, e) => _b(e).format(n), yb = (n, e) => db(e).format(n), wb = (n, e = Yn()) => yh(n, e);
Di([lr, or], () => gb);
Di([lr], () => bb);
Di([lr], () => vb);
@@ -13238,25 +13238,25 @@ Di([lr], () => yb);
Di([lr, or], () => wb);
const {
SvelteComponent: Db,
- append_hydration: st,
- attr: En,
- children: Cn,
- claim_element: kn,
- claim_space: so,
+ append_hydration: ot,
+ attr: Cn,
+ children: kn,
+ claim_element: Sn,
+ claim_space: oo,
claim_text: si,
- detach: un,
- element: Sn,
+ detach: cn,
+ element: An,
init: Eb,
insert_hydration: Sh,
- noop: ec,
+ noop: tc,
safe_not_equal: Cb,
set_data: da,
set_style: Ds,
- space: oo,
+ space: lo,
text: oi,
- toggle_class: tc
+ toggle_class: nc
} = window.__gradio__svelte__internal, { onMount: kb, createEventDispatcher: Sb, onDestroy: Ab } = window.__gradio__svelte__internal;
-function nc(n) {
+function ic(n) {
let e, t, i, r, a = Ui(
/*file_to_display*/
n[2]
@@ -13266,29 +13266,29 @@ function nc(n) {
), f;
return {
c() {
- e = Sn("div"), t = Sn("span"), i = Sn("div"), r = Sn("progress"), s = oi(a), l = oo(), c = Sn("span"), f = oi(u), this.h();
+ e = An("div"), t = An("span"), i = An("div"), r = An("progress"), s = oi(a), l = lo(), c = An("span"), f = oi(u), this.h();
},
l(h) {
- e = kn(h, "DIV", { class: !0 });
- var d = Cn(e);
- t = kn(d, "SPAN", {});
- var p = Cn(t);
- i = kn(p, "DIV", { class: !0 });
- var v = Cn(i);
- r = kn(v, "PROGRESS", { style: !0, max: !0, class: !0 });
- var w = Cn(r);
- s = si(w, a), w.forEach(un), v.forEach(un), p.forEach(un), l = so(d), c = kn(d, "SPAN", { class: !0 });
- var E = Cn(c);
- f = si(E, u), E.forEach(un), d.forEach(un), this.h();
+ e = Sn(h, "DIV", { class: !0 });
+ var d = kn(e);
+ t = Sn(d, "SPAN", {});
+ var p = kn(t);
+ i = Sn(p, "DIV", { class: !0 });
+ var v = kn(i);
+ r = Sn(v, "PROGRESS", { style: !0, max: !0, class: !0 });
+ var w = kn(r);
+ s = si(w, a), w.forEach(cn), v.forEach(cn), p.forEach(cn), l = oo(d), c = Sn(d, "SPAN", { class: !0 });
+ var E = kn(c);
+ f = si(E, u), E.forEach(cn), d.forEach(cn), this.h();
},
h() {
Ds(r, "visibility", "hidden"), Ds(r, "height", "0"), Ds(r, "width", "0"), r.value = o = Ui(
/*file_to_display*/
n[2]
- ), En(r, "max", "100"), En(r, "class", "svelte-cr2edf"), En(i, "class", "progress-bar svelte-cr2edf"), En(c, "class", "file-name svelte-cr2edf"), En(e, "class", "file svelte-cr2edf");
+ ), Cn(r, "max", "100"), Cn(r, "class", "svelte-cr2edf"), Cn(i, "class", "progress-bar svelte-cr2edf"), Cn(c, "class", "file-name svelte-cr2edf"), Cn(e, "class", "file svelte-cr2edf");
},
m(h, d) {
- Sh(h, e, d), st(e, t), st(t, i), st(i, r), st(r, s), st(e, l), st(e, c), st(c, f);
+ Sh(h, e, d), ot(e, t), ot(t, i), ot(i, r), ot(r, s), ot(e, l), ot(e, c), ot(c, f);
},
p(h, d) {
d & /*file_to_display*/
@@ -13304,7 +13304,7 @@ function nc(n) {
h[2].orig_name + "") && da(f, u);
},
d(h) {
- h && un(e);
+ h && cn(e);
}
};
}
@@ -13317,21 +13317,21 @@ function Fb(n) {
n[0].length > 1 ? "files" : "file"
), l, c, u, f = (
/*file_to_display*/
- n[2] && nc(n)
+ n[2] && ic(n)
);
return {
c() {
- e = Sn("div"), t = Sn("span"), i = oi("Uploading "), a = oi(r), s = oo(), l = oi(o), c = oi("..."), u = oo(), f && f.c(), this.h();
+ e = An("div"), t = An("span"), i = oi("Uploading "), a = oi(r), s = lo(), l = oi(o), c = oi("..."), u = lo(), f && f.c(), this.h();
},
l(h) {
- e = kn(h, "DIV", { class: !0 });
- var d = Cn(e);
- t = kn(d, "SPAN", { class: !0 });
- var p = Cn(t);
- i = si(p, "Uploading "), a = si(p, r), s = so(p), l = si(p, o), c = si(p, "..."), p.forEach(un), u = so(d), f && f.l(d), d.forEach(un), this.h();
+ e = Sn(h, "DIV", { class: !0 });
+ var d = kn(e);
+ t = Sn(d, "SPAN", { class: !0 });
+ var p = kn(t);
+ i = si(p, "Uploading "), a = si(p, r), s = oo(p), l = si(p, o), c = si(p, "..."), p.forEach(cn), u = oo(d), f && f.l(d), d.forEach(cn), this.h();
},
h() {
- En(t, "class", "uploading svelte-cr2edf"), En(e, "class", "wrap svelte-cr2edf"), tc(
+ Cn(t, "class", "uploading svelte-cr2edf"), Cn(e, "class", "wrap svelte-cr2edf"), nc(
e,
"progress",
/*progress*/
@@ -13339,7 +13339,7 @@ function Fb(n) {
);
},
m(h, d) {
- Sh(h, e, d), st(e, t), st(t, i), st(t, a), st(t, s), st(t, l), st(t, c), st(e, u), f && f.m(e, null);
+ Sh(h, e, d), ot(e, t), ot(t, i), ot(t, a), ot(t, s), ot(t, l), ot(t, c), ot(e, u), f && f.m(e, null);
},
p(h, [d]) {
d & /*files_with_progress*/
@@ -13347,18 +13347,18 @@ function Fb(n) {
h[0].length + "") && da(a, r), d & /*files_with_progress*/
1 && o !== (o = /*files_with_progress*/
h[0].length > 1 ? "files" : "file") && da(l, o), /*file_to_display*/
- h[2] ? f ? f.p(h, d) : (f = nc(h), f.c(), f.m(e, null)) : f && (f.d(1), f = null), d & /*progress*/
- 2 && tc(
+ h[2] ? f ? f.p(h, d) : (f = ic(h), f.c(), f.m(e, null)) : f && (f.d(1), f = null), d & /*progress*/
+ 2 && nc(
e,
"progress",
/*progress*/
h[1]
);
},
- i: ec,
- o: ec,
+ i: tc,
+ o: tc,
d(h) {
- h && un(e), f && f.d();
+ h && cn(e), f && f.d();
}
};
}
@@ -13379,22 +13379,22 @@ function Ib(n, e, t) {
});
}
return new (E || (E = Promise))(function(g, b) {
- function D(S) {
+ function D(A) {
try {
- P(m.next(S));
+ P(m.next(A));
} catch (R) {
b(R);
}
}
- function C(S) {
+ function k(A) {
try {
- P(m.throw(S));
+ P(m.throw(A));
} catch (R) {
b(R);
}
}
- function P(S) {
- S.done ? g(S.value) : _(S.value).then(D, C);
+ function P(A) {
+ A.done ? g(A.value) : _(A.value).then(D, k);
}
P((m = m.apply(v, w || [])).next());
});
@@ -13518,9 +13518,9 @@ const {
mount_component: Hb,
safe_not_equal: Gb,
set_style: pa,
- toggle_class: Ee,
- transition_in: vn,
- transition_out: Hn,
+ toggle_class: Ce,
+ transition_in: yn,
+ transition_out: Gn,
update_slot_base: Oh
} = window.__gradio__svelte__internal, { createEventDispatcher: zb, tick: qb, getContext: D6 } = window.__gradio__svelte__internal;
function jb(n) {
@@ -13552,32 +13552,32 @@ function jb(n) {
h() {
xt(e, "tabindex", t = /*hidden*/
n[9] ? -1 : 0), xt(e, "aria-label", i = /*aria_label*/
- n[14] || "Click to upload or drop files"), xt(e, "aria-dropeffect", "copy"), xt(e, "class", "svelte-1o7nwih"), Ee(
+ n[14] || "Click to upload or drop files"), xt(e, "aria-dropeffect", "copy"), xt(e, "class", "svelte-1o7nwih"), Ce(
e,
"hidden",
/*hidden*/
n[9]
- ), Ee(
+ ), Ce(
e,
"center",
/*center*/
n[4]
- ), Ee(
+ ), Ce(
e,
"boundedheight",
/*boundedheight*/
n[3]
- ), Ee(
+ ), Ce(
e,
"flex",
/*flex*/
n[5]
- ), Ee(
+ ), Ce(
e,
"disable_click",
/*disable_click*/
n[7]
- ), Ee(
+ ), Ce(
e,
"icon-mode",
/*icon_upload*/
@@ -13602,7 +13602,7 @@ function jb(n) {
m(u, f) {
Ta(u, e, f), c && c.m(e, null), a = !0, s || (o = Bb(r = /*drag*/
n[19].call(null, e, {
- on_drag_change: rc,
+ on_drag_change: ac,
on_files: (
/*drag_function_1*/
n[31]
@@ -13646,7 +13646,7 @@ function jb(n) {
16384 && i !== (i = /*aria_label*/
u[14] || "Click to upload or drop files")) && xt(e, "aria-label", i), r && Nb(r.update) && f[0] & /*accept_file_types, file_count, disable_click*/
262336 && r.update.call(null, {
- on_drag_change: rc,
+ on_drag_change: ac,
on_files: (
/*drag_function_1*/
u[31]
@@ -13664,37 +13664,37 @@ function jb(n) {
u[7]
)
}), (!a || f[0] & /*hidden*/
- 512) && Ee(
+ 512) && Ce(
e,
"hidden",
/*hidden*/
u[9]
), (!a || f[0] & /*center*/
- 16) && Ee(
+ 16) && Ce(
e,
"center",
/*center*/
u[4]
), (!a || f[0] & /*boundedheight*/
- 8) && Ee(
+ 8) && Ce(
e,
"boundedheight",
/*boundedheight*/
u[3]
), (!a || f[0] & /*flex*/
- 32) && Ee(
+ 32) && Ce(
e,
"flex",
/*flex*/
u[5]
), (!a || f[0] & /*disable_click*/
- 128) && Ee(
+ 128) && Ce(
e,
"disable_click",
/*disable_click*/
u[7]
), (!a || f[0] & /*icon_upload*/
- 4096) && Ee(
+ 4096) && Ce(
e,
"icon-mode",
/*icon_upload*/
@@ -13718,10 +13718,10 @@ function jb(n) {
);
},
i(u) {
- a || (vn(c, u), a = !0);
+ a || (yn(c, u), a = !0);
},
o(u) {
- Hn(c, u), a = !1;
+ Gn(c, u), a = !1;
},
d(u) {
u && yi(e), c && c.d(u), s = !1, o();
@@ -13730,7 +13730,7 @@ function jb(n) {
}
function Vb(n) {
let e, t, i = !/*hidden*/
- n[9] && ic(n);
+ n[9] && rc(n);
return {
c() {
i && i.c(), e = _a();
@@ -13743,16 +13743,16 @@ function Vb(n) {
},
p(r, a) {
/*hidden*/
- r[9] ? i && (Bh(), Hn(i, 1, 1, () => {
+ r[9] ? i && (Bh(), Gn(i, 1, 1, () => {
i = null;
}), Ah()) : i ? (i.p(r, a), a[0] & /*hidden*/
- 512 && vn(i, 1)) : (i = ic(r), i.c(), vn(i, 1), i.m(e.parentNode, e));
+ 512 && yn(i, 1)) : (i = rc(r), i.c(), yn(i, 1), i.m(e.parentNode, e));
},
i(r) {
- t || (vn(i), t = !0);
+ t || (yn(i), t = !0);
},
o(r) {
- Hn(i), t = !1;
+ Gn(i), t = !1;
},
d(r) {
r && yi(e), i && i.d(r);
@@ -13787,27 +13787,27 @@ function Wb(n) {
h() {
xt(e, "tabindex", t = /*hidden*/
n[9] ? -1 : 0), xt(e, "aria-label", i = /*aria_label*/
- n[14] || "Paste from clipboard"), xt(e, "class", "svelte-1o7nwih"), Ee(
+ n[14] || "Paste from clipboard"), xt(e, "class", "svelte-1o7nwih"), Ce(
e,
"hidden",
/*hidden*/
n[9]
- ), Ee(
+ ), Ce(
e,
"center",
/*center*/
n[4]
- ), Ee(
+ ), Ce(
e,
"boundedheight",
/*boundedheight*/
n[3]
- ), Ee(
+ ), Ce(
e,
"flex",
/*flex*/
n[5]
- ), Ee(
+ ), Ce(
e,
"icon-mode",
/*icon_upload*/
@@ -13861,31 +13861,31 @@ function Wb(n) {
c[9] ? -1 : 0)) && xt(e, "tabindex", t), (!r || u[0] & /*aria_label*/
16384 && i !== (i = /*aria_label*/
c[14] || "Paste from clipboard")) && xt(e, "aria-label", i), (!r || u[0] & /*hidden*/
- 512) && Ee(
+ 512) && Ce(
e,
"hidden",
/*hidden*/
c[9]
), (!r || u[0] & /*center*/
- 16) && Ee(
+ 16) && Ce(
e,
"center",
/*center*/
c[4]
), (!r || u[0] & /*boundedheight*/
- 8) && Ee(
+ 8) && Ce(
e,
"boundedheight",
/*boundedheight*/
c[3]
), (!r || u[0] & /*flex*/
- 32) && Ee(
+ 32) && Ce(
e,
"flex",
/*flex*/
c[5]
), (!r || u[0] & /*icon_upload*/
- 4096) && Ee(
+ 4096) && Ce(
e,
"icon-mode",
/*icon_upload*/
@@ -13909,17 +13909,17 @@ function Wb(n) {
);
},
i(c) {
- r || (vn(l, c), r = !0);
+ r || (yn(l, c), r = !0);
},
o(c) {
- Hn(l, c), r = !1;
+ Gn(l, c), r = !1;
},
d(c) {
c && yi(e), l && l.d(c), a = !1, s();
}
};
}
-function ic(n) {
+function rc(n) {
let e, t;
return e = new $b({
props: {
@@ -13963,10 +13963,10 @@ function ic(n) {
i[11]), e.$set(a);
},
i(i) {
- t || (vn(e.$$.fragment, i), t = !0);
+ t || (yn(e.$$.fragment, i), t = !0);
},
o(i) {
- Hn(e.$$.fragment, i), t = !1;
+ Gn(e.$$.fragment, i), t = !1;
},
d(i) {
Rb(e, i);
@@ -13998,15 +13998,15 @@ function Xb(n) {
},
p(l, c) {
let u = e;
- e = o(l), e === u ? s[e].p(l, c) : (Bh(), Hn(s[u], 1, 1, () => {
+ e = o(l), e === u ? s[e].p(l, c) : (Bh(), Gn(s[u], 1, 1, () => {
s[u] = null;
- }), Ah(), t = s[e], t ? t.p(l, c) : (t = s[e] = a[e](l), t.c()), vn(t, 1), t.m(i.parentNode, i));
+ }), Ah(), t = s[e], t ? t.p(l, c) : (t = s[e] = a[e](l), t.c()), yn(t, 1), t.m(i.parentNode, i));
},
i(l) {
- r || (vn(t), r = !0);
+ r || (yn(t), r = !0);
},
o(l) {
- Hn(t), r = !1;
+ Gn(t), r = !1;
},
d(l) {
l && yi(i), s[e].d(l);
@@ -14028,107 +14028,107 @@ function Zb(n, e, t) {
return r.endsWith("/*") && t.startsWith(a + "/");
});
}
-const rc = (n) => n = n;
+const ac = (n) => n = n;
function Yb(n, e, t) {
let i, { $$slots: r = {}, $$scope: a } = e;
- var s = this && this.__awaiter || function(I, q, j, W) {
- function ce(T) {
- return T instanceof j ? T : new j(function(ee) {
- ee(T);
+ var s = this && this.__awaiter || function(I, q, j, V) {
+ function ce(Ee) {
+ return Ee instanceof j ? Ee : new j(function(S) {
+ S(Ee);
});
}
- return new (j || (j = Promise))(function(T, ee) {
- function Ne(_e) {
+ return new (j || (j = Promise))(function(Ee, S) {
+ function le(Ae) {
try {
- $e(W.next(_e));
- } catch (be) {
- ee(be);
+ fe(V.next(Ae));
+ } catch (Fe) {
+ S(Fe);
}
}
- function Ue(_e) {
+ function Pe(Ae) {
try {
- $e(W.throw(_e));
- } catch (be) {
- ee(be);
+ fe(V.throw(Ae));
+ } catch (Fe) {
+ S(Fe);
}
}
- function $e(_e) {
- _e.done ? T(_e.value) : ce(_e.value).then(Ne, Ue);
+ function fe(Ae) {
+ Ae.done ? Ee(Ae.value) : ce(Ae.value).then(le, Pe);
}
- $e((W = W.apply(I, q || [])).next());
+ fe((V = V.apply(I, q || [])).next());
});
};
const { drag: o, open_file_upload: l } = xb();
- let { filetype: c = null } = e, { dragging: u = !1 } = e, { boundedheight: f = !0 } = e, { center: h = !0 } = e, { flex: d = !0 } = e, { file_count: p = "single" } = e, { disable_click: v = !1 } = e, { root: w } = e, { hidden: E = !1 } = e, { format: m = "file" } = e, { uploading: _ = !1 } = e, { show_progress: g = !0 } = e, { max_file_size: b = null } = e, { upload: D } = e, { stream_handler: C } = e, { icon_upload: P = !1 } = e, { height: S = void 0 } = e, { aria_label: R = void 0 } = e;
- function L() {
+ let { filetype: c = null } = e, { dragging: u = !1 } = e, { boundedheight: f = !0 } = e, { center: h = !0 } = e, { flex: d = !0 } = e, { file_count: p = "single" } = e, { disable_click: v = !1 } = e, { root: w } = e, { hidden: E = !1 } = e, { format: m = "file" } = e, { uploading: _ = !1 } = e, { show_progress: g = !0 } = e, { max_file_size: b = null } = e, { upload: D } = e, { stream_handler: k } = e, { icon_upload: P = !1 } = e, { height: A = void 0 } = e, { aria_label: R = void 0 } = e;
+ function B() {
l();
}
- let O, he, G, ne = null;
- const J = () => {
+ let L, de, z, te = null;
+ const Q = () => {
if (typeof navigator < "u") {
const I = navigator.userAgent.toLowerCase();
return I.indexOf("iphone") > -1 || I.indexOf("ipad") > -1;
}
return !1;
- }, oe = zb(), V = ["image", "video", "audio", "text", "file"], le = (I) => i && I.startsWith(".") ? (ne = !0, I) : i && I.includes("file/*") ? "*" : I.startsWith(".") || I.endsWith("/*") ? I : V.includes(I) ? I + "/*" : "." + I;
+ }, oe = zb(), X = ["image", "video", "audio", "text", "file"], ne = (I) => i && I.startsWith(".") ? (te = !0, I) : i && I.includes("file/*") ? "*" : I.startsWith(".") || I.endsWith("/*") ? I : X.includes(I) ? I + "/*" : "." + I;
function De() {
navigator.clipboard.read().then((I) => s(this, void 0, void 0, function* () {
for (let q = 0; q < I.length; q++) {
- const j = I[q].types.find((W) => W.startsWith("image/"));
+ const j = I[q].types.find((V) => V.startsWith("image/"));
if (j) {
- I[q].getType(j).then((W) => s(this, void 0, void 0, function* () {
- const ce = new File([W], `clipboard.${j.replace("image/", "")}`);
- yield z([ce]);
+ I[q].getType(j).then((V) => s(this, void 0, void 0, function* () {
+ const ce = new File([V], `clipboard.${j.replace("image/", "")}`);
+ yield H([ce]);
}));
break;
}
}
}));
}
- function A() {
+ function F() {
l();
}
function x(I) {
return s(this, void 0, void 0, function* () {
- yield qb(), t(16, O = Math.random().toString(36).substring(2, 15)), t(2, _ = !0);
+ yield qb(), t(16, L = Math.random().toString(36).substring(2, 15)), t(2, _ = !0);
try {
- const q = yield D(I, w, O, b ?? 1 / 0);
+ const q = yield D(I, w, L, b ?? 1 / 0);
return oe("load", p === "single" ? q == null ? void 0 : q[0] : q), t(2, _ = !1), q || [];
} catch (q) {
return oe("error", q.message), t(2, _ = !1), [];
}
});
}
- function z(I) {
+ function H(I) {
return s(this, void 0, void 0, function* () {
if (!I.length)
return;
let q = I.map((j) => new File([j], j instanceof File ? j.name : "file", { type: j.type }));
- return i && ne && (q = q.filter((j) => Q(j) ? !0 : (oe("error", `Invalid file type: ${j.name}. Only ${c} allowed.`), !1)), q.length === 0) ? [] : (t(17, he = yield P0(q)), yield x(he));
+ return i && te && (q = q.filter((j) => J(j) ? !0 : (oe("error", `Invalid file type: ${j.name}. Only ${c} allowed.`), !1)), q.length === 0) ? [] : (t(17, de = yield P0(q)), yield x(de));
});
}
- function Q(I) {
+ function J(I) {
return c ? (Array.isArray(c) ? c : [c]).some((j) => {
- const W = le(j);
- if (W.startsWith("."))
- return I.name.toLowerCase().endsWith(W.toLowerCase());
- if (W === "*")
+ const V = ne(j);
+ if (V.startsWith("."))
+ return I.name.toLowerCase().endsWith(V.toLowerCase());
+ if (V === "*")
return !0;
- if (W.endsWith("/*")) {
- const [ce] = W.split("/");
+ if (V.endsWith("/*")) {
+ const [ce] = V.split("/");
return I.type.startsWith(ce + "/");
}
- return I.type === W;
+ return I.type === V;
}) : !0;
}
- function F(I) {
+ function T(I) {
return s(this, void 0, void 0, function* () {
const q = I.filter((j) => {
- const W = "." + j.name.split(".").pop();
- return W && Zb(G, W, j.type) || (W && Array.isArray(c) ? c.includes(W) : W === c) ? !0 : (oe("error", `Invalid file type only ${c} allowed.`), !1);
+ const V = "." + j.name.split(".").pop();
+ return V && Zb(z, V, j.type) || (V && Array.isArray(c) ? c.includes(V) : V === c) ? !0 : (oe("error", `Invalid file type only ${c} allowed.`), !1);
});
if (m != "blob")
- yield z(q);
+ yield H(q);
else {
if (p === "single") {
oe("load", q[0]);
@@ -14138,13 +14138,13 @@ function Yb(n, e, t) {
}
});
}
- function Ce(I) {
+ function ke(I) {
return s(this, void 0, void 0, function* () {
var q;
if (t(1, u = !1), !(!((q = I.dataTransfer) === null || q === void 0) && q.files)) return;
- const j = Array.from(I.dataTransfer.files).filter(Q);
+ const j = Array.from(I.dataTransfer.files).filter(J);
if (m != "blob")
- yield z(j);
+ yield H(j);
else {
if (p === "single") {
oe("load", j[0]);
@@ -14154,13 +14154,13 @@ function Yb(n, e, t) {
}
});
}
- const ke = (I) => F(I);
+ const Se = (I) => T(I);
return n.$$set = (I) => {
- "filetype" in I && t(0, c = I.filetype), "dragging" in I && t(1, u = I.dragging), "boundedheight" in I && t(3, f = I.boundedheight), "center" in I && t(4, h = I.center), "flex" in I && t(5, d = I.flex), "file_count" in I && t(6, p = I.file_count), "disable_click" in I && t(7, v = I.disable_click), "root" in I && t(8, w = I.root), "hidden" in I && t(9, E = I.hidden), "format" in I && t(21, m = I.format), "uploading" in I && t(2, _ = I.uploading), "show_progress" in I && t(10, g = I.show_progress), "max_file_size" in I && t(22, b = I.max_file_size), "upload" in I && t(23, D = I.upload), "stream_handler" in I && t(11, C = I.stream_handler), "icon_upload" in I && t(12, P = I.icon_upload), "height" in I && t(13, S = I.height), "aria_label" in I && t(14, R = I.aria_label), "$$scope" in I && t(29, a = I.$$scope);
+ "filetype" in I && t(0, c = I.filetype), "dragging" in I && t(1, u = I.dragging), "boundedheight" in I && t(3, f = I.boundedheight), "center" in I && t(4, h = I.center), "flex" in I && t(5, d = I.flex), "file_count" in I && t(6, p = I.file_count), "disable_click" in I && t(7, v = I.disable_click), "root" in I && t(8, w = I.root), "hidden" in I && t(9, E = I.hidden), "format" in I && t(21, m = I.format), "uploading" in I && t(2, _ = I.uploading), "show_progress" in I && t(10, g = I.show_progress), "max_file_size" in I && t(22, b = I.max_file_size), "upload" in I && t(23, D = I.upload), "stream_handler" in I && t(11, k = I.stream_handler), "icon_upload" in I && t(12, P = I.icon_upload), "height" in I && t(13, A = I.height), "aria_label" in I && t(14, R = I.aria_label), "$$scope" in I && t(29, a = I.$$scope);
}, n.$$.update = () => {
n.$$.dirty[0] & /*filetype, ios*/
- 268435457 && (c == null ? t(18, G = null) : typeof c == "string" ? t(18, G = le(c)) : i && c.includes("file/*") ? t(18, G = "*") : (t(0, c = c.map(le)), t(18, G = c.join(", "))));
- }, t(28, i = J()), [
+ 268435457 && (c == null ? t(18, z = null) : typeof c == "string" ? t(18, z = ne(c)) : i && c.includes("file/*") ? t(18, z = "*") : (t(0, c = c.map(ne)), t(18, z = c.join(", "))));
+ }, t(28, i = Q()), [
c,
u,
_,
@@ -14172,27 +14172,27 @@ function Yb(n, e, t) {
w,
E,
g,
- C,
+ k,
P,
- S,
+ A,
R,
De,
- O,
- he,
- G,
+ L,
+ de,
+ z,
o,
- F,
+ T,
m,
b,
D,
- L,
- A,
- z,
- Ce,
+ B,
+ F,
+ H,
+ ke,
i,
a,
r,
- ke
+ Se
];
}
class Kb extends Pb {
@@ -14270,82 +14270,82 @@ const {
update_slot_base: H6
} = window.__gradio__svelte__internal, { createEventDispatcher: G6 } = window.__gradio__svelte__internal, {
SvelteComponent: Qb,
- add_flush_callback: ac,
- append_hydration: Re,
- attr: ht,
- bind: sc,
+ add_flush_callback: sc,
+ append_hydration: Ue,
+ attr: dt,
+ bind: oc,
binding_callbacks: ma,
- bubble: oc,
+ bubble: lc,
check_outros: tr,
children: yt,
- claim_component: Bn,
- claim_element: tt,
+ claim_component: On,
+ claim_element: nt,
claim_space: Ot,
- claim_text: lo,
- create_component: On,
+ claim_text: uo,
+ create_component: Ln,
create_slot: Jb,
- destroy_component: Ln,
+ destroy_component: Rn,
destroy_each: e2,
detach: re,
- element: nt,
- empty: yn,
- ensure_array_like: lc,
+ element: it,
+ empty: wn,
+ ensure_array_like: uc,
get_all_dirty_from_scope: t2,
get_slot_changes: n2,
- get_svelte_dataset: uo,
+ get_svelte_dataset: co,
group_outros: nr,
init: i2,
- insert_hydration: Xe,
+ insert_hydration: Ze,
listen: ir,
- mount_component: Rn,
+ mount_component: Mn,
noop: r2,
run_all: a2,
safe_not_equal: s2,
- set_data: co,
+ set_data: fo,
set_style: qt,
space: Lt,
- text: fo,
- toggle_class: uc,
+ text: ho,
+ toggle_class: cc,
transition_in: ve,
- transition_out: Oe,
+ transition_out: Re,
update_slot_base: o2
} = window.__gradio__svelte__internal, { createEventDispatcher: l2, tick: Es } = window.__gradio__svelte__internal;
-function cc(n, e, t) {
+function fc(n, e, t) {
const i = n.slice();
- return i[46] = e[t][0], i[47] = e[t][1], i;
+ return i[47] = e[t][0], i[48] = e[t][1], i;
}
-function fc(n) {
+function hc(n) {
let e, t, i, r, a = (
/*show_fullscreen_button*/
- n[11] && hc(n)
+ n[11] && dc(n)
), s = (
/*metadata*/
- n[17] !== null && dc(n)
+ n[17] !== null && _c(n)
);
- return i = new wn({
- props: { Icon: bf, label: "Remove Image" }
+ return i = new Dn({
+ props: { Icon: vf, label: "Remove Image" }
}), i.$on(
"click",
/*click_handler_1*/
n[36]
), {
c() {
- a && a.c(), e = Lt(), s && s.c(), t = Lt(), On(i.$$.fragment);
+ a && a.c(), e = Lt(), s && s.c(), t = Lt(), Ln(i.$$.fragment);
},
l(o) {
- a && a.l(o), e = Ot(o), s && s.l(o), t = Ot(o), Bn(i.$$.fragment, o);
+ a && a.l(o), e = Ot(o), s && s.l(o), t = Ot(o), On(i.$$.fragment, o);
},
m(o, l) {
- a && a.m(o, l), Xe(o, e, l), s && s.m(o, l), Xe(o, t, l), Rn(i, o, l), r = !0;
+ a && a.m(o, l), Ze(o, e, l), s && s.m(o, l), Ze(o, t, l), Mn(i, o, l), r = !0;
},
p(o, l) {
/*show_fullscreen_button*/
o[11] ? a ? (a.p(o, l), l[0] & /*show_fullscreen_button*/
- 2048 && ve(a, 1)) : (a = hc(o), a.c(), ve(a, 1), a.m(e.parentNode, e)) : a && (nr(), Oe(a, 1, 1, () => {
+ 2048 && ve(a, 1)) : (a = dc(o), a.c(), ve(a, 1), a.m(e.parentNode, e)) : a && (nr(), Re(a, 1, 1, () => {
a = null;
}), tr()), /*metadata*/
o[17] !== null ? s ? (s.p(o, l), l[0] & /*metadata*/
- 131072 && ve(s, 1)) : (s = dc(o), s.c(), ve(s, 1), s.m(t.parentNode, t)) : s && (nr(), Oe(s, 1, 1, () => {
+ 131072 && ve(s, 1)) : (s = _c(o), s.c(), ve(s, 1), s.m(t.parentNode, t)) : s && (nr(), Re(s, 1, 1, () => {
s = null;
}), tr());
},
@@ -14353,16 +14353,16 @@ function fc(n) {
r || (ve(a), ve(s), ve(i.$$.fragment, o), r = !0);
},
o(o) {
- Oe(a), Oe(s), Oe(i.$$.fragment, o), r = !1;
+ Re(a), Re(s), Re(i.$$.fragment, o), r = !1;
},
d(o) {
- o && (re(e), re(t)), a && a.d(o), s && s.d(o), Ln(i, o);
+ o && (re(e), re(t)), a && a.d(o), s && s.d(o), Rn(i, o);
}
};
}
-function hc(n) {
+function dc(n) {
let e, t;
- return e = new If({
+ return e = new $f({
props: { fullscreen: (
/*fullscreen*/
n[16]
@@ -14373,13 +14373,13 @@ function hc(n) {
n[34]
), {
c() {
- On(e.$$.fragment);
+ Ln(e.$$.fragment);
},
l(i) {
- Bn(e.$$.fragment, i);
+ On(e.$$.fragment, i);
},
m(i, r) {
- Rn(e, i, r), t = !0;
+ Mn(e, i, r), t = !0;
},
p(i, r) {
const a = {};
@@ -14391,18 +14391,18 @@ function hc(n) {
t || (ve(e.$$.fragment, i), t = !0);
},
o(i) {
- Oe(e.$$.fragment, i), t = !1;
+ Re(e.$$.fragment, i), t = !1;
},
d(i) {
- Ln(e, i);
+ Rn(e, i);
}
};
}
-function dc(n) {
+function _c(n) {
let e, t;
- return e = new wn({
+ return e = new Dn({
props: {
- Icon: vf,
+ Icon: yf,
label: "View Metadata",
"aria-label": "View and send image metadata"
}
@@ -14412,23 +14412,23 @@ function dc(n) {
n[35]
), {
c() {
- On(e.$$.fragment);
+ Ln(e.$$.fragment);
},
l(i) {
- Bn(e.$$.fragment, i);
+ On(e.$$.fragment, i);
},
m(i, r) {
- Rn(e, i, r), t = !0;
+ Mn(e, i, r), t = !0;
},
p: r2,
i(i) {
t || (ve(e.$$.fragment, i), t = !0);
},
o(i) {
- Oe(e.$$.fragment, i), t = !1;
+ Re(e.$$.fragment, i), t = !1;
},
d(i) {
- Ln(e, i);
+ Rn(e, i);
}
};
}
@@ -14436,23 +14436,23 @@ function u2(n) {
var r;
let e, t, i = (
/*value*/
- ((r = n[1]) == null ? void 0 : r.url) && fc(n)
+ ((r = n[0]) == null ? void 0 : r.url) && hc(n)
);
return {
c() {
- i && i.c(), e = yn();
+ i && i.c(), e = wn();
},
l(a) {
- i && i.l(a), e = yn();
+ i && i.l(a), e = wn();
},
m(a, s) {
- i && i.m(a, s), Xe(a, e, s), t = !0;
+ i && i.m(a, s), Ze(a, e, s), t = !0;
},
p(a, s) {
var o;
/*value*/
- (o = a[1]) != null && o.url ? i ? (i.p(a, s), s[0] & /*value*/
- 2 && ve(i, 1)) : (i = fc(a), i.c(), ve(i, 1), i.m(e.parentNode, e)) : i && (nr(), Oe(i, 1, 1, () => {
+ (o = a[0]) != null && o.url ? i ? (i.p(a, s), s[0] & /*value*/
+ 1 && ve(i, 1)) : (i = hc(a), i.c(), ve(i, 1), i.m(e.parentNode, e)) : i && (nr(), Re(i, 1, 1, () => {
i = null;
}), tr());
},
@@ -14460,14 +14460,14 @@ function u2(n) {
t || (ve(i), t = !0);
},
o(a) {
- Oe(i), t = !1;
+ Re(i), t = !1;
},
d(a) {
a && re(e), i && i.d(a);
}
};
}
-function _c(n) {
+function pc(n) {
let e;
const t = (
/*#slots*/
@@ -14514,7 +14514,7 @@ function _c(n) {
e || (ve(i, r), e = !0);
},
o(r) {
- Oe(i, r), e = !1;
+ Re(i, r), e = !1;
},
d(r) {
i && i.d(r);
@@ -14524,22 +14524,22 @@ function _c(n) {
function c2(n) {
let e, t, i = (
/*value*/
- n[1] === null && _c(n)
+ n[0] === null && pc(n)
);
return {
c() {
- i && i.c(), e = yn();
+ i && i.c(), e = wn();
},
l(r) {
- i && i.l(r), e = yn();
+ i && i.l(r), e = wn();
},
m(r, a) {
- i && i.m(r, a), Xe(r, e, a), t = !0;
+ i && i.m(r, a), Ze(r, e, a), t = !0;
},
p(r, a) {
/*value*/
- r[1] === null ? i ? (i.p(r, a), a[0] & /*value*/
- 2 && ve(i, 1)) : (i = _c(r), i.c(), ve(i, 1), i.m(e.parentNode, e)) : i && (nr(), Oe(i, 1, 1, () => {
+ r[0] === null ? i ? (i.p(r, a), a[0] & /*value*/
+ 1 && ve(i, 1)) : (i = pc(r), i.c(), ve(i, 1), i.m(e.parentNode, e)) : i && (nr(), Re(i, 1, 1, () => {
i = null;
}), tr());
},
@@ -14547,37 +14547,37 @@ function c2(n) {
t || (ve(i), t = !0);
},
o(r) {
- Oe(i), t = !1;
+ Re(i), t = !1;
},
d(r) {
r && re(e), i && i.d(r);
}
};
}
-function pc(n) {
+function mc(n) {
let e, t, i, r, a;
- return t = new $o({
+ return t = new xo({
props: {
src: (
/*value*/
- n[1].url
+ n[0].url
),
alt: (
/*value*/
- n[1].alt_text
+ n[0].alt_text
)
}
}), {
c() {
- e = nt("div"), On(t.$$.fragment), this.h();
+ e = it("div"), Ln(t.$$.fragment), this.h();
},
l(s) {
- e = tt(s, "DIV", { class: !0 });
+ e = nt(s, "DIV", { class: !0 });
var o = yt(e);
- Bn(t.$$.fragment, o), o.forEach(re), this.h();
+ On(t.$$.fragment, o), o.forEach(re), this.h();
},
h() {
- ht(e, "class", "image-frame svelte-16v1i9j"), uc(
+ dt(e, "class", "image-frame svelte-18daxnr"), cc(
e,
"selectable",
/*selectable*/
@@ -14585,7 +14585,7 @@ function pc(n) {
);
},
m(s, o) {
- Xe(s, e, o), Rn(t, e, null), i = !0, r || (a = ir(
+ Ze(s, e, o), Mn(t, e, null), i = !0, r || (a = ir(
e,
"click",
/*handle_click*/
@@ -14595,11 +14595,11 @@ function pc(n) {
p(s, o) {
const l = {};
o[0] & /*value*/
- 2 && (l.src = /*value*/
- s[1].url), o[0] & /*value*/
- 2 && (l.alt = /*value*/
- s[1].alt_text), t.$set(l), (!i || o[0] & /*selectable*/
- 32) && uc(
+ 1 && (l.src = /*value*/
+ s[0].url), o[0] & /*value*/
+ 1 && (l.alt = /*value*/
+ s[0].alt_text), t.$set(l), (!i || o[0] & /*selectable*/
+ 32) && cc(
e,
"selectable",
/*selectable*/
@@ -14610,14 +14610,14 @@ function pc(n) {
i || (ve(t.$$.fragment, s), i = !0);
},
o(s) {
- Oe(t.$$.fragment, s), i = !1;
+ Re(t.$$.fragment, s), i = !1;
},
d(s) {
- s && re(e), Ln(t), r = !1, a();
+ s && re(e), Rn(t), r = !1, a();
}
};
}
-function mc(n) {
+function gc(n) {
let e, t, i, r = "X", a, s, o = "Image Metadata", l, c, u;
function f(p, v) {
return (
@@ -14628,17 +14628,17 @@ function mc(n) {
let h = f(n), d = h(n);
return {
c() {
- e = nt("div"), t = nt("div"), i = nt("button"), i.textContent = r, a = Lt(), s = nt("h3"), s.textContent = o, l = Lt(), d.c(), this.h();
+ e = it("div"), t = it("div"), i = it("button"), i.textContent = r, a = Lt(), s = it("h3"), s.textContent = o, l = Lt(), d.c(), this.h();
},
l(p) {
- e = tt(p, "DIV", { class: !0 });
+ e = nt(p, "DIV", { class: !0 });
var v = yt(e);
- t = tt(v, "DIV", { class: !0 });
+ t = nt(v, "DIV", { class: !0 });
var w = yt(t);
- i = tt(w, "BUTTON", { class: !0, "data-svelte-h": !0 }), uo(i) !== "svelte-1irq3m4" && (i.textContent = r), a = Ot(w), s = tt(w, "H3", { class: !0, "data-svelte-h": !0 }), uo(s) !== "svelte-1tc7pig" && (s.textContent = o), l = Ot(w), d.l(w), w.forEach(re), v.forEach(re), this.h();
+ i = nt(w, "BUTTON", { class: !0, "data-svelte-h": !0 }), co(i) !== "svelte-1irq3m4" && (i.textContent = r), a = Ot(w), s = nt(w, "H3", { class: !0, "data-svelte-h": !0 }), co(s) !== "svelte-1tc7pig" && (s.textContent = o), l = Ot(w), d.l(w), w.forEach(re), v.forEach(re), this.h();
},
h() {
- ht(i, "class", "close-button svelte-16v1i9j"), ht(s, "class", "popup-title svelte-16v1i9j"), ht(t, "class", "popup-content svelte-16v1i9j"), ht(e, "class", "metadata-popup svelte-16v1i9j"), qt(e, "width", typeof /*popup_metadata_width*/
+ dt(i, "class", "close-button svelte-18daxnr"), dt(s, "class", "popup-title svelte-18daxnr"), dt(t, "class", "popup-content svelte-18daxnr"), dt(e, "class", "metadata-popup svelte-18daxnr"), qt(e, "width", typeof /*popup_metadata_width*/
n[14] == "number" ? `${Math.min(
/*popup_metadata_width*/
n[14],
@@ -14656,7 +14656,7 @@ function mc(n) {
));
},
m(p, v) {
- Xe(p, e, v), Re(e, t), Re(t, i), Re(t, a), Re(t, s), Re(t, l), d.m(t, null), c || (u = ir(
+ Ze(p, e, v), Ue(e, t), Ue(t, i), Ue(t, a), Ue(t, s), Ue(t, l), d.m(t, null), c || (u = ir(
i,
"click",
/*closePopup*/
@@ -14689,38 +14689,38 @@ function mc(n) {
};
}
function f2(n) {
- let e, t, i, r, a, s = "Load Metadata", o, l, c = lc(Object.entries(
+ let e, t, i, r, a, s = "Load Metadata", o, l, c = uc(Object.entries(
/*filteredMetadata*/
n[22]
)), u = [];
for (let f = 0; f < c.length; f += 1)
- u[f] = bc(cc(n, c, f));
+ u[f] = vc(fc(n, c, f));
return {
c() {
- e = nt("div"), t = nt("table"), i = nt("tbody");
+ e = it("div"), t = it("table"), i = it("tbody");
for (let f = 0; f < u.length; f += 1)
u[f].c();
- r = Lt(), a = nt("button"), a.textContent = s, this.h();
+ r = Lt(), a = it("button"), a.textContent = s, this.h();
},
l(f) {
- e = tt(f, "DIV", { class: !0 });
+ e = nt(f, "DIV", { class: !0 });
var h = yt(e);
- t = tt(h, "TABLE", { class: !0 });
+ t = nt(h, "TABLE", { class: !0 });
var d = yt(t);
- i = tt(d, "TBODY", {});
+ i = nt(d, "TBODY", {});
var p = yt(i);
for (let v = 0; v < u.length; v += 1)
u[v].l(p);
- p.forEach(re), d.forEach(re), h.forEach(re), r = Ot(f), a = tt(f, "BUTTON", { class: !0, "data-svelte-h": !0 }), uo(a) !== "svelte-1uwkq18" && (a.textContent = s), this.h();
+ p.forEach(re), d.forEach(re), h.forEach(re), r = Ot(f), a = nt(f, "BUTTON", { class: !0, "data-svelte-h": !0 }), co(a) !== "svelte-1uwkq18" && (a.textContent = s), this.h();
},
h() {
- ht(t, "class", "metadata-table svelte-16v1i9j"), ht(e, "class", "metadata-table-container svelte-16v1i9j"), ht(a, "class", "load-metadata-button svelte-16v1i9j");
+ dt(t, "class", "metadata-table svelte-18daxnr"), dt(e, "class", "metadata-table-container svelte-18daxnr"), dt(a, "class", "load-metadata-button svelte-18daxnr");
},
m(f, h) {
- Xe(f, e, h), Re(e, t), Re(t, i);
+ Ze(f, e, h), Ue(e, t), Ue(t, i);
for (let d = 0; d < u.length; d += 1)
u[d] && u[d].m(i, null);
- Xe(f, r, h), Xe(f, a, h), o || (l = ir(
+ Ze(f, r, h), Ze(f, a, h), o || (l = ir(
a,
"click",
/*dispatchLoadMetadata*/
@@ -14730,14 +14730,14 @@ function f2(n) {
p(f, h) {
if (h[0] & /*filteredMetadata*/
4194304) {
- c = lc(Object.entries(
+ c = uc(Object.entries(
/*filteredMetadata*/
f[22]
));
let d;
for (d = 0; d < c.length; d += 1) {
- const p = cc(f, c, d);
- u[d] ? u[d].p(p, h) : (u[d] = bc(p), u[d].c(), u[d].m(i, null));
+ const p = fc(f, c, d);
+ u[d] ? u[d].p(p, h) : (u[d] = vc(p), u[d].c(), u[d].m(i, null));
}
for (; d < u.length; d += 1)
u[d].d(1);
@@ -14756,83 +14756,83 @@ function h2(n) {
), i;
return {
c() {
- e = nt("p"), i = fo(t);
+ e = it("p"), i = ho(t);
},
l(r) {
- e = tt(r, "P", {});
+ e = nt(r, "P", {});
var a = yt(e);
- i = lo(a, t), a.forEach(re);
+ i = uo(a, t), a.forEach(re);
},
m(r, a) {
- Xe(r, e, a), Re(e, i);
+ Ze(r, e, a), Ue(e, i);
},
p(r, a) {
a[0] & /*filteredMetadata*/
4194304 && t !== (t = /*filteredMetadata*/
- r[22].error + "") && co(i, t);
+ r[22].error + "") && fo(i, t);
},
d(r) {
r && re(e);
}
};
}
-function gc(n) {
+function bc(n) {
let e, t, i = (
/*key*/
- n[46] + ""
+ n[47] + ""
), r, a, s, o = (
/*val*/
- n[47] + ""
+ n[48] + ""
), l, c;
return {
c() {
- e = nt("tr"), t = nt("td"), r = fo(i), a = Lt(), s = nt("td"), l = fo(o), c = Lt(), this.h();
+ e = it("tr"), t = it("td"), r = ho(i), a = Lt(), s = it("td"), l = ho(o), c = Lt(), this.h();
},
l(u) {
- e = tt(u, "TR", {});
+ e = nt(u, "TR", {});
var f = yt(e);
- t = tt(f, "TD", { class: !0 });
+ t = nt(f, "TD", { class: !0 });
var h = yt(t);
- r = lo(h, i), h.forEach(re), a = Ot(f), s = tt(f, "TD", { class: !0 });
+ r = uo(h, i), h.forEach(re), a = Ot(f), s = nt(f, "TD", { class: !0 });
var d = yt(s);
- l = lo(d, o), d.forEach(re), c = Ot(f), f.forEach(re), this.h();
+ l = uo(d, o), d.forEach(re), c = Ot(f), f.forEach(re), this.h();
},
h() {
- ht(t, "class", "metadata-label svelte-16v1i9j"), ht(s, "class", "metadata-value svelte-16v1i9j");
+ dt(t, "class", "metadata-label svelte-18daxnr"), dt(s, "class", "metadata-value svelte-18daxnr");
},
m(u, f) {
- Xe(u, e, f), Re(e, t), Re(t, r), Re(e, a), Re(e, s), Re(s, l), Re(e, c);
+ Ze(u, e, f), Ue(e, t), Ue(t, r), Ue(e, a), Ue(e, s), Ue(s, l), Ue(e, c);
},
p(u, f) {
f[0] & /*filteredMetadata*/
4194304 && i !== (i = /*key*/
- u[46] + "") && co(r, i), f[0] & /*filteredMetadata*/
+ u[47] + "") && fo(r, i), f[0] & /*filteredMetadata*/
4194304 && o !== (o = /*val*/
- u[47] + "") && co(l, o);
+ u[48] + "") && fo(l, o);
},
d(u) {
u && re(e);
}
};
}
-function bc(n) {
+function vc(n) {
let e, t = (
/*val*/
- n[47] && gc(n)
+ n[48] && bc(n)
);
return {
c() {
- t && t.c(), e = yn();
+ t && t.c(), e = wn();
},
l(i) {
- t && t.l(i), e = yn();
+ t && t.l(i), e = wn();
},
m(i, r) {
- t && t.m(i, r), Xe(i, e, r);
+ t && t.m(i, r), Ze(i, e, r);
},
p(i, r) {
/*val*/
- i[47] ? t ? t.p(i, r) : (t = gc(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ i[48] ? t ? t.p(i, r) : (t = bc(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(i) {
i && re(e), t && t.d(i);
@@ -14841,19 +14841,19 @@ function bc(n) {
}
function d2(n) {
let e, t, i, r, a, s, o, l, c, u, f, h, d, p, v;
- e = new mf({
+ e = new gf({
props: {
show_label: (
/*show_label*/
n[4]
),
- Icon: So,
+ Icon: Ao,
label: (
/*label*/
n[3] || "Image"
)
}
- }), r = new Cf({
+ }), r = new kf({
props: {
$$slots: { default: [u2] },
$$scope: { ctx: n }
@@ -14868,7 +14868,7 @@ function d2(n) {
let m = {
hidden: (
/*value*/
- n[1] !== null
+ n[0] !== null
),
filetype: "image/*",
root: (
@@ -14881,7 +14881,7 @@ function d2(n) {
),
disable_click: (
/*value*/
- n[1] !== null
+ n[0] !== null
),
upload: (
/*upload*/
@@ -14901,8 +14901,8 @@ function d2(n) {
/*uploading*/
n[2] !== void 0 && (m.uploading = /*uploading*/
n[2]), /*dragging*/
- n[0] !== void 0 && (m.dragging = /*dragging*/
- n[0]), o = new Kb({ props: m }), n[37](o), ma.push(() => sc(o, "uploading", w)), ma.push(() => sc(o, "dragging", E)), o.$on(
+ n[1] !== void 0 && (m.dragging = /*dragging*/
+ n[1]), o = new Kb({ props: m }), n[37](o), ma.push(() => oc(o, "uploading", w)), ma.push(() => oc(o, "dragging", E)), o.$on(
"load",
/*handle_upload*/
n[23]
@@ -14913,30 +14913,30 @@ function d2(n) {
);
let _ = (
/*value*/
- n[1] !== null && pc(n)
+ n[0] !== null && mc(n)
), g = (
/*showMetadataPopup*/
n[19] && /*filteredMetadata*/
- n[22] !== null && mc(n)
+ n[22] !== null && gc(n)
);
return {
c() {
- On(e.$$.fragment), t = Lt(), i = nt("div"), On(r.$$.fragment), a = Lt(), s = nt("div"), On(o.$$.fragment), u = Lt(), _ && _.c(), f = Lt(), g && g.c(), h = yn(), this.h();
+ Ln(e.$$.fragment), t = Lt(), i = it("div"), Ln(r.$$.fragment), a = Lt(), s = it("div"), Ln(o.$$.fragment), u = Lt(), _ && _.c(), f = Lt(), g && g.c(), h = wn(), this.h();
},
l(b) {
- Bn(e.$$.fragment, b), t = Ot(b), i = tt(b, "DIV", { "data-testid": !0, class: !0 });
+ On(e.$$.fragment, b), t = Ot(b), i = nt(b, "DIV", { "data-testid": !0, class: !0 });
var D = yt(i);
- Bn(r.$$.fragment, D), a = Ot(D), s = tt(D, "DIV", { class: !0 });
- var C = yt(s);
- Bn(o.$$.fragment, C), u = Ot(C), _ && _.l(C), C.forEach(re), D.forEach(re), f = Ot(b), g && g.l(b), h = yn(), this.h();
+ On(r.$$.fragment, D), a = Ot(D), s = nt(D, "DIV", { class: !0 });
+ var k = yt(s);
+ On(o.$$.fragment, k), u = Ot(k), _ && _.l(k), k.forEach(re), D.forEach(re), f = Ot(b), g && g.l(b), h = wn(), this.h();
},
h() {
- ht(s, "class", "upload-container svelte-16v1i9j"), qt(
+ dt(s, "class", "upload-container svelte-18daxnr"), qt(
s,
"width",
/*value*/
- n[1] ? "auto" : "100%"
- ), ht(i, "data-testid", "image"), ht(i, "class", "image-container svelte-16v1i9j"), qt(
+ n[0] ? "auto" : "100%"
+ ), dt(i, "data-testid", "image"), dt(i, "class", "image-container svelte-18daxnr"), qt(
i,
"height",
/*height*/
@@ -14949,7 +14949,7 @@ function d2(n) {
);
},
m(b, D) {
- Rn(e, b, D), Xe(b, t, D), Xe(b, i, D), Rn(r, i, null), Re(i, a), Re(i, s), Rn(o, s, null), Re(s, u), _ && _.m(s, null), n[41](i), Xe(b, f, D), g && g.m(b, D), Xe(b, h, D), d = !0, p || (v = [
+ Mn(e, b, D), Ze(b, t, D), Ze(b, i, D), Mn(r, i, null), Ue(i, a), Ue(i, s), Mn(o, s, null), Ue(s, u), _ && _.m(s, null), n[41](i), Ze(b, f, D), g && g.m(b, D), Ze(b, h, D), d = !0, p || (v = [
ir(
s,
"dragover",
@@ -14965,47 +14965,47 @@ function d2(n) {
], p = !0);
},
p(b, D) {
- const C = {};
+ const k = {};
D[0] & /*show_label*/
- 16 && (C.show_label = /*show_label*/
+ 16 && (k.show_label = /*show_label*/
b[4]), D[0] & /*label*/
- 8 && (C.label = /*label*/
- b[3] || "Image"), e.$set(C);
+ 8 && (k.label = /*label*/
+ b[3] || "Image"), e.$set(k);
const P = {};
D[0] & /*metadata, fullscreen, show_fullscreen_button, value*/
- 198658 | D[1] & /*$$scope*/
+ 198657 | D[1] & /*$$scope*/
2048 && (P.$$scope = { dirty: D, ctx: b }), r.$set(P);
- const S = {};
+ const A = {};
D[0] & /*value*/
- 2 && (S.hidden = /*value*/
- b[1] !== null), D[0] & /*root*/
- 64 && (S.root = /*root*/
+ 1 && (A.hidden = /*value*/
+ b[0] !== null), D[0] & /*root*/
+ 64 && (A.root = /*root*/
b[6]), D[0] & /*max_file_size*/
- 256 && (S.max_file_size = /*max_file_size*/
+ 256 && (A.max_file_size = /*max_file_size*/
b[8]), D[0] & /*value*/
- 2 && (S.disable_click = /*value*/
- b[1] !== null), D[0] & /*upload*/
- 512 && (S.upload = /*upload*/
+ 1 && (A.disable_click = /*value*/
+ b[0] !== null), D[0] & /*upload*/
+ 512 && (A.upload = /*upload*/
b[9]), D[0] & /*stream_handler*/
- 1024 && (S.stream_handler = /*stream_handler*/
+ 1024 && (A.stream_handler = /*stream_handler*/
b[10]), D[0] & /*i18n*/
- 128 && (S.aria_label = /*i18n*/
+ 128 && (A.aria_label = /*i18n*/
b[7]("image.drop_to_upload")), D[0] & /*value*/
- 2 | D[1] & /*$$scope*/
- 2048 && (S.$$scope = { dirty: D, ctx: b }), !l && D[0] & /*uploading*/
- 4 && (l = !0, S.uploading = /*uploading*/
- b[2], ac(() => l = !1)), !c && D[0] & /*dragging*/
- 1 && (c = !0, S.dragging = /*dragging*/
- b[0], ac(() => c = !1)), o.$set(S), /*value*/
- b[1] !== null ? _ ? (_.p(b, D), D[0] & /*value*/
- 2 && ve(_, 1)) : (_ = pc(b), _.c(), ve(_, 1), _.m(s, null)) : _ && (nr(), Oe(_, 1, 1, () => {
+ 1 | D[1] & /*$$scope*/
+ 2048 && (A.$$scope = { dirty: D, ctx: b }), !l && D[0] & /*uploading*/
+ 4 && (l = !0, A.uploading = /*uploading*/
+ b[2], sc(() => l = !1)), !c && D[0] & /*dragging*/
+ 2 && (c = !0, A.dragging = /*dragging*/
+ b[1], sc(() => c = !1)), o.$set(A), /*value*/
+ b[0] !== null ? _ ? (_.p(b, D), D[0] & /*value*/
+ 1 && ve(_, 1)) : (_ = mc(b), _.c(), ve(_, 1), _.m(s, null)) : _ && (nr(), Re(_, 1, 1, () => {
_ = null;
}), tr()), D[0] & /*value*/
- 2 && qt(
+ 1 && qt(
s,
"width",
/*value*/
- b[1] ? "auto" : "100%"
+ b[0] ? "auto" : "100%"
), D[0] & /*height*/
4096 && qt(
i,
@@ -15020,50 +15020,50 @@ function d2(n) {
b[13]
), /*showMetadataPopup*/
b[19] && /*filteredMetadata*/
- b[22] !== null ? g ? g.p(b, D) : (g = mc(b), g.c(), g.m(h.parentNode, h)) : g && (g.d(1), g = null);
+ b[22] !== null ? g ? g.p(b, D) : (g = gc(b), g.c(), g.m(h.parentNode, h)) : g && (g.d(1), g = null);
},
i(b) {
d || (ve(e.$$.fragment, b), ve(r.$$.fragment, b), ve(o.$$.fragment, b), ve(_), d = !0);
},
o(b) {
- Oe(e.$$.fragment, b), Oe(r.$$.fragment, b), Oe(o.$$.fragment, b), Oe(_), d = !1;
+ Re(e.$$.fragment, b), Re(r.$$.fragment, b), Re(o.$$.fragment, b), Re(_), d = !1;
},
d(b) {
- b && (re(t), re(i), re(f), re(h)), Ln(e, b), Ln(r), n[37](null), Ln(o), _ && _.d(), n[41](null), g && g.d(b), p = !1, a2(v);
+ b && (re(t), re(i), re(f), re(h)), Rn(e, b), Rn(r), n[37](null), Rn(o), _ && _.d(), n[41](null), g && g.d(b), p = !1, a2(v);
}
};
}
function _2(n, e, t) {
let i, r, { $$slots: a = {}, $$scope: s } = e;
- var o = this && this.__awaiter || function(T, ee, Ne, Ue) {
- function $e(_e) {
- return _e instanceof Ne ? _e : new Ne(function(be) {
- be(_e);
+ var o = this && this.__awaiter || function(S, le, Pe, fe) {
+ function Ae(Fe) {
+ return Fe instanceof Pe ? Fe : new Pe(function(Me) {
+ Me(Fe);
});
}
- return new (Ne || (Ne = Promise))(function(_e, be) {
- function Ct(k) {
+ return new (Pe || (Pe = Promise))(function(Fe, Me) {
+ function Ct(be) {
try {
- dt(Ue.next(k));
- } catch (Te) {
- be(Te);
+ C(fe.next(be));
+ } catch (Ht) {
+ Me(Ht);
}
}
- function Ht(k) {
+ function nn(be) {
try {
- dt(Ue.throw(k));
- } catch (Te) {
- be(Te);
+ C(fe.throw(be));
+ } catch (Ht) {
+ Me(Ht);
}
}
- function dt(k) {
- k.done ? _e(k.value) : $e(k.value).then(Ct, Ht);
+ function C(be) {
+ be.done ? Fe(be.value) : Ae(be.value).then(Ct, nn);
}
- dt((Ue = Ue.apply(T, ee || [])).next());
+ C((fe = fe.apply(S, le || [])).next());
});
};
- let { value: l = null } = e, { label: c = void 0 } = e, { show_label: u } = e, { selectable: f = !1 } = e, { root: h } = e, { i18n: d } = e, { max_file_size: p = null } = e, { upload: v } = e, { stream_handler: w } = e, { show_fullscreen_button: E = !0 } = e, { height: m = void 0 } = e, { width: _ = void 0 } = e, { only_custom_metadata: g = !0 } = e, { popup_metadata_width: b = 400 } = e, { popup_metadata_height: D = 300 } = e, C, { uploading: P = !1 } = e, { active_source: S = "upload" } = e, { fullscreen: R = !1 } = e, L = null, O = !1, he, { dragging: G = !1 } = e;
- const ne = l2(), J = [
+ let { value: l = null } = e, { label: c = void 0 } = e, { show_label: u } = e, { selectable: f = !1 } = e, { root: h } = e, { i18n: d } = e, { max_file_size: p = null } = e, { upload: v } = e, { stream_handler: w } = e, { show_fullscreen_button: E = !0 } = e, { height: m = void 0 } = e, { width: _ = void 0 } = e, { only_custom_metadata: g = !0 } = e, { popup_metadata_width: b = 400 } = e, { popup_metadata_height: D = 300 } = e, k, { uploading: P = !1 } = e, { active_source: A = "upload" } = e, { fullscreen: R = !1 } = e, B = null, L = !1, de, { dragging: z = !1 } = e;
+ const te = l2(), Q = [
"ImageWidth",
"ImageHeight",
"BitDepth",
@@ -15072,92 +15072,114 @@ function _2(n, e, t) {
"Filter",
"Interlace"
];
- function oe(T) {
- return o(this, arguments, void 0, function* ({ detail: ee }) {
- var Ne, Ue, $e, _e;
- let be = null;
- if (!((Ne = ee.path) === null || Ne === void 0) && Ne.toLowerCase().endsWith(".svg") && ee.url) {
- const Ht = yield (yield fetch(ee.url)).text();
- t(1, l = Object.assign(Object.assign({}, ee), {
- url: `data:image/svg+xml,${encodeURIComponent(Ht)}`,
+ function oe(S) {
+ return o(this, void 0, void 0, function* () {
+ if (!(S != null && S.url)) {
+ t(17, B = null);
+ return;
+ }
+ if (S.url.toLowerCase().endsWith(".svg"))
+ t(17, B = null);
+ else if (S.url.toLowerCase().endsWith(".png") || S.url.toLowerCase().endsWith(".jpg") || S.url.toLowerCase().endsWith(".jpeg"))
+ try {
+ const le = yield Vs(S.url, { exif: !0, iptc: !0, xmp: !0 });
+ if (t(17, B = {}), le)
+ for (const [Pe, fe] of Object.entries(le))
+ (typeof fe == "string" || typeof fe == "number" || typeof fe == "boolean") && t(17, B[Pe] = fe, B);
+ } catch {
+ t(17, B = { error: "Failed to extract metadata" });
+ }
+ else
+ t(17, B = { error: "Unsupported file type" });
+ });
+ }
+ function X(S) {
+ return o(this, arguments, void 0, function* ({ detail: le }) {
+ var Pe, fe, Ae, Fe;
+ let Me = null;
+ if (!((Pe = le.path) === null || Pe === void 0) && Pe.toLowerCase().endsWith(".svg") && le.url) {
+ const nn = yield (yield fetch(le.url)).text();
+ t(0, l = Object.assign(Object.assign({}, le), {
+ url: `data:image/svg+xml,${encodeURIComponent(nn)}`,
metadata: null
- })), be = null;
- } else if (ee.url && (!((Ue = ee.path) === null || Ue === void 0) && Ue.toLowerCase().endsWith(".png") || !(($e = ee.path) === null || $e === void 0) && $e.toLowerCase().endsWith(".jpg") || !((_e = ee.path) === null || _e === void 0) && _e.toLowerCase().endsWith(".jpeg")))
+ })), Me = null;
+ } else if (le.url && (!((fe = le.path) === null || fe === void 0) && fe.toLowerCase().endsWith(".png") || !((Ae = le.path) === null || Ae === void 0) && Ae.toLowerCase().endsWith(".jpg") || !((Fe = le.path) === null || Fe === void 0) && Fe.toLowerCase().endsWith(".jpeg")))
try {
- const Ct = yield Wf(ee.url, { exif: !0, iptc: !0, xmp: !0 });
- if (be = {}, Ct)
- for (const [Ht, dt] of Object.entries(Ct))
- (typeof dt == "string" || typeof dt == "number" || typeof dt == "boolean") && (be[Ht] = dt);
+ const Ct = yield Vs(le.url, { exif: !0, iptc: !0, xmp: !0 });
+ if (Me = {}, Ct)
+ for (const [nn, C] of Object.entries(Ct))
+ (typeof C == "string" || typeof C == "number" || typeof C == "boolean") && (Me[nn] = C);
} catch {
- be = {};
+ Me = { error: "Failed to extract metadata" };
}
else
- be = {};
- t(1, l = Object.assign(Object.assign({}, ee), { metadata: be })), t(17, L = be), yield Es(), ne("upload"), ne("change", l);
+ Me = { error: "Unsupported file type" };
+ t(0, l = Object.assign(Object.assign({}, le), { metadata: Me })), t(17, B = Me), yield Es(), te("upload"), te("change", l);
});
}
- function V() {
- t(1, l = null), t(17, L = null), t(19, O = !1), ne("clear"), ne("change", null);
+ function ne() {
+ t(0, l = null), t(17, B = null), t(19, L = !1), te("clear"), te("change", null);
}
- function le(T) {
- let ee = $f(T);
- ee && ne("select", { index: ee, value: null });
+ function De(S) {
+ let le = xf(S);
+ le && te("select", { index: le, value: null });
}
- function De(T) {
- T.preventDefault(), T.stopPropagation(), T.dataTransfer && (T.dataTransfer.dropEffect = "copy"), t(0, G = !0);
+ function F(S) {
+ S.preventDefault(), S.stopPropagation(), S.dataTransfer && (S.dataTransfer.dropEffect = "copy"), t(1, z = !0);
}
- function A(T) {
+ function x(S) {
return o(this, void 0, void 0, function* () {
- T.preventDefault(), T.stopPropagation(), t(0, G = !1), l && (V(), yield Es()), t(31, S = "upload"), yield Es(), C.load_files_from_drop(T);
+ S.preventDefault(), S.stopPropagation(), t(1, z = !1), l && (ne(), yield Es()), t(31, A = "upload"), yield Es(), k.load_files_from_drop(S);
});
}
- function x() {
- L !== null && t(19, O = !O);
+ function H() {
+ B !== null && t(19, L = !L);
}
- function z() {
- L !== null && (ne("load_metadata"), Q());
+ function J() {
+ B !== null && (te("load_metadata"), T());
}
- function Q() {
- t(19, O = !1);
+ function T() {
+ t(19, L = !1);
}
- function F(T) {
- oc.call(this, n, T);
+ function ke(S) {
+ lc.call(this, n, S);
}
- const Ce = (T) => {
- x(), T.stopPropagation();
- }, ke = (T) => {
- V(), T.stopPropagation();
+ const Se = (S) => {
+ H(), S.stopPropagation();
+ }, I = (S) => {
+ ne(), S.stopPropagation();
};
- function I(T) {
- ma[T ? "unshift" : "push"](() => {
- C = T, t(18, C);
+ function q(S) {
+ ma[S ? "unshift" : "push"](() => {
+ k = S, t(18, k);
});
}
- function q(T) {
- P = T, t(2, P);
+ function j(S) {
+ P = S, t(2, P);
}
- function j(T) {
- G = T, t(0, G);
+ function V(S) {
+ z = S, t(1, z);
}
- function W(T) {
- oc.call(this, n, T);
+ function ce(S) {
+ lc.call(this, n, S);
}
- function ce(T) {
- ma[T ? "unshift" : "push"](() => {
- he = T, t(20, he);
+ function Ee(S) {
+ ma[S ? "unshift" : "push"](() => {
+ de = S, t(20, de);
});
}
- return n.$$set = (T) => {
- "value" in T && t(1, l = T.value), "label" in T && t(3, c = T.label), "show_label" in T && t(4, u = T.show_label), "selectable" in T && t(5, f = T.selectable), "root" in T && t(6, h = T.root), "i18n" in T && t(7, d = T.i18n), "max_file_size" in T && t(8, p = T.max_file_size), "upload" in T && t(9, v = T.upload), "stream_handler" in T && t(10, w = T.stream_handler), "show_fullscreen_button" in T && t(11, E = T.show_fullscreen_button), "height" in T && t(12, m = T.height), "width" in T && t(13, _ = T.width), "only_custom_metadata" in T && t(32, g = T.only_custom_metadata), "popup_metadata_width" in T && t(14, b = T.popup_metadata_width), "popup_metadata_height" in T && t(15, D = T.popup_metadata_height), "uploading" in T && t(2, P = T.uploading), "active_source" in T && t(31, S = T.active_source), "fullscreen" in T && t(16, R = T.fullscreen), "dragging" in T && t(0, G = T.dragging), "$$scope" in T && t(42, s = T.$$scope);
+ return n.$$set = (S) => {
+ "value" in S && t(0, l = S.value), "label" in S && t(3, c = S.label), "show_label" in S && t(4, u = S.show_label), "selectable" in S && t(5, f = S.selectable), "root" in S && t(6, h = S.root), "i18n" in S && t(7, d = S.i18n), "max_file_size" in S && t(8, p = S.max_file_size), "upload" in S && t(9, v = S.upload), "stream_handler" in S && t(10, w = S.stream_handler), "show_fullscreen_button" in S && t(11, E = S.show_fullscreen_button), "height" in S && t(12, m = S.height), "width" in S && t(13, _ = S.width), "only_custom_metadata" in S && t(32, g = S.only_custom_metadata), "popup_metadata_width" in S && t(14, b = S.popup_metadata_width), "popup_metadata_height" in S && t(15, D = S.popup_metadata_height), "uploading" in S && t(2, P = S.uploading), "active_source" in S && t(31, A = S.active_source), "fullscreen" in S && t(16, R = S.fullscreen), "dragging" in S && t(1, z = S.dragging), "$$scope" in S && t(42, s = S.$$scope);
}, n.$$.update = () => {
n.$$.dirty[0] & /*dragging*/
- 1 && ne("drag", G), n.$$.dirty[0] & /*metadata*/
+ 2 && te("drag", z), n.$$.dirty[0] & /*value*/
+ 1 && (l ? l.metadata ? t(17, B = l.metadata) : oe(l) : t(17, B = null)), n.$$.dirty[0] & /*metadata*/
131072 | n.$$.dirty[1] & /*only_custom_metadata*/
- 2 && t(22, i = g ? Object.fromEntries(Object.entries(L || {}).filter(([T]) => !J.includes(T))) : L), n.$$.dirty[0] & /*width*/
+ 2 && t(22, i = g ? Object.fromEntries(Object.entries(B || {}).filter(([S]) => !Q.includes(S))) : B), n.$$.dirty[0] & /*width*/
8192 && t(21, r = typeof _ == "number" ? _ - 20 : typeof _ == "string" ? `calc(${_} - 20px)` : "380px");
}, [
- G,
l,
+ z,
P,
c,
u,
@@ -15173,31 +15195,31 @@ function _2(n, e, t) {
b,
D,
R,
+ B,
+ k,
L,
- C,
- O,
- he,
+ de,
r,
i,
- oe,
- V,
- le,
+ X,
+ ne,
De,
- A,
+ F,
x,
- z,
- Q,
- S,
+ H,
+ J,
+ T,
+ A,
g,
a,
- F,
- Ce,
ke,
+ Se,
I,
q,
j,
- W,
+ V,
ce,
+ Ee,
s
];
}
@@ -15210,7 +15232,7 @@ class p2 extends Qb {
d2,
s2,
{
- value: 1,
+ value: 0,
label: 3,
show_label: 4,
selectable: 5,
@@ -15228,7 +15250,7 @@ class p2 extends Qb {
uploading: 2,
active_source: 31,
fullscreen: 16,
- dragging: 0
+ dragging: 1
},
null,
[-1, -1]
@@ -15249,16 +15271,16 @@ const {
children: _t,
claim_element: g2,
claim_svg_element: Tt,
- component_subscribe: vc,
- detach: ct,
+ component_subscribe: yc,
+ detach: ft,
element: b2,
init: v2,
insert_hydration: y2,
- noop: yc,
+ noop: wc,
safe_not_equal: w2,
set_style: Lr,
svg_element: It,
- toggle_class: wc
+ toggle_class: Dc
} = window.__gradio__svelte__internal, { onMount: D2 } = window.__gradio__svelte__internal;
function E2(n) {
let e, t, i, r, a, s, o, l, c, u, f, h;
@@ -15283,31 +15305,31 @@ function E2(n) {
fill: !0,
"fill-opacity": !0,
class: !0
- }), _t(r).forEach(ct), a = Tt(w, "path", { d: !0, fill: !0, class: !0 }), _t(a).forEach(ct), s = Tt(w, "path", {
+ }), _t(r).forEach(ft), a = Tt(w, "path", { d: !0, fill: !0, class: !0 }), _t(a).forEach(ft), s = Tt(w, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), _t(s).forEach(ct), o = Tt(w, "path", { d: !0, fill: !0, class: !0 }), _t(o).forEach(ct), w.forEach(ct), l = Tt(v, "g", { style: !0 });
+ }), _t(s).forEach(ft), o = Tt(w, "path", { d: !0, fill: !0, class: !0 }), _t(o).forEach(ft), w.forEach(ft), l = Tt(v, "g", { style: !0 });
var E = _t(l);
c = Tt(E, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), _t(c).forEach(ct), u = Tt(E, "path", { d: !0, fill: !0, class: !0 }), _t(u).forEach(ct), f = Tt(E, "path", {
+ }), _t(c).forEach(ft), u = Tt(E, "path", { d: !0, fill: !0, class: !0 }), _t(u).forEach(ft), f = Tt(E, "path", {
d: !0,
fill: !0,
"fill-opacity": !0,
class: !0
- }), _t(f).forEach(ct), h = Tt(E, "path", { d: !0, fill: !0, class: !0 }), _t(h).forEach(ct), E.forEach(ct), v.forEach(ct), p.forEach(ct), this.h();
+ }), _t(f).forEach(ft), h = Tt(E, "path", { d: !0, fill: !0, class: !0 }), _t(h).forEach(ft), E.forEach(ft), v.forEach(ft), p.forEach(ft), this.h();
},
h() {
K(r, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), K(r, "fill", "#FF7C00"), K(r, "fill-opacity", "0.4"), K(r, "class", "svelte-43sxxs"), K(a, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), K(a, "fill", "#FF7C00"), K(a, "class", "svelte-43sxxs"), K(s, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), K(s, "fill", "#FF7C00"), K(s, "fill-opacity", "0.4"), K(s, "class", "svelte-43sxxs"), K(o, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), K(o, "fill", "#FF7C00"), K(o, "class", "svelte-43sxxs"), Lr(i, "transform", "translate(" + /*$top*/
n[1][0] + "px, " + /*$top*/
n[1][1] + "px)"), K(c, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), K(c, "fill", "#FF7C00"), K(c, "fill-opacity", "0.4"), K(c, "class", "svelte-43sxxs"), K(u, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), K(u, "fill", "#FF7C00"), K(u, "class", "svelte-43sxxs"), K(f, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), K(f, "fill", "#FF7C00"), K(f, "fill-opacity", "0.4"), K(f, "class", "svelte-43sxxs"), K(h, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), K(h, "fill", "#FF7C00"), K(h, "class", "svelte-43sxxs"), Lr(l, "transform", "translate(" + /*$bottom*/
n[2][0] + "px, " + /*$bottom*/
- n[2][1] + "px)"), K(t, "viewBox", "-1200 -1200 3000 3000"), K(t, "fill", "none"), K(t, "xmlns", "http://www.w3.org/2000/svg"), K(t, "class", "svelte-43sxxs"), K(e, "class", "svelte-43sxxs"), wc(
+ n[2][1] + "px)"), K(t, "viewBox", "-1200 -1200 3000 3000"), K(t, "fill", "none"), K(t, "xmlns", "http://www.w3.org/2000/svg"), K(t, "class", "svelte-43sxxs"), K(e, "class", "svelte-43sxxs"), Dc(
e,
"margin",
/*margin*/
@@ -15325,17 +15347,17 @@ function E2(n) {
4 && Lr(l, "transform", "translate(" + /*$bottom*/
d[2][0] + "px, " + /*$bottom*/
d[2][1] + "px)"), p & /*margin*/
- 1 && wc(
+ 1 && Dc(
e,
"margin",
/*margin*/
d[0]
);
},
- i: yc,
- o: yc,
+ i: wc,
+ o: wc,
d(d) {
- d && ct(e);
+ d && ft(e);
}
};
}
@@ -15348,31 +15370,31 @@ function C2(n, e, t) {
});
}
return new (v || (v = Promise))(function(m, _) {
- function g(C) {
+ function g(k) {
try {
- D(w.next(C));
+ D(w.next(k));
} catch (P) {
_(P);
}
}
- function b(C) {
+ function b(k) {
try {
- D(w.throw(C));
+ D(w.throw(k));
} catch (P) {
_(P);
}
}
- function D(C) {
- C.done ? m(C.value) : E(C.value).then(g, b);
+ function D(k) {
+ k.done ? m(k.value) : E(k.value).then(g, b);
}
D((w = w.apply(d, p || [])).next());
});
};
let { margin: s = !0 } = e;
- const o = Uu([0, 0]);
- vc(n, o, (d) => t(1, i = d));
- const l = Uu([0, 0]);
- vc(n, l, (d) => t(2, r = d));
+ const o = Hu([0, 0]);
+ yc(n, o, (d) => t(1, i = d));
+ const l = Hu([0, 0]);
+ yc(n, l, (d) => t(2, r = d));
let c;
function u() {
return a(this, void 0, void 0, function* () {
@@ -15400,10 +15422,10 @@ class k2 extends m2 {
}
const {
SvelteComponent: S2,
- append_hydration: In,
+ append_hydration: $n,
attr: Rt,
- binding_callbacks: Dc,
- check_outros: ho,
+ binding_callbacks: Ec,
+ check_outros: _o,
children: Xt,
claim_component: Lh,
claim_element: Zt,
@@ -15419,26 +15441,26 @@ const {
ensure_array_like: ga,
get_all_dirty_from_scope: Hh,
get_slot_changes: Gh,
- group_outros: _o,
+ group_outros: po,
init: A2,
- insert_hydration: H,
+ insert_hydration: G,
mount_component: zh,
- noop: po,
+ noop: mo,
safe_not_equal: F2,
set_data: Dt,
- set_style: bn,
+ set_style: vn,
space: bt,
text: we,
toggle_class: pt,
transition_in: Pt,
transition_out: Kt,
update_slot_base: qh
-} = window.__gradio__svelte__internal, { tick: T2 } = window.__gradio__svelte__internal, { onDestroy: I2 } = window.__gradio__svelte__internal, { createEventDispatcher: $2 } = window.__gradio__svelte__internal, x2 = (n) => ({}), Ec = (n) => ({}), P2 = (n) => ({}), Cc = (n) => ({});
-function kc(n, e, t) {
+} = window.__gradio__svelte__internal, { tick: T2 } = window.__gradio__svelte__internal, { onDestroy: I2 } = window.__gradio__svelte__internal, { createEventDispatcher: $2 } = window.__gradio__svelte__internal, x2 = (n) => ({}), Cc = (n) => ({}), P2 = (n) => ({}), kc = (n) => ({});
+function Sc(n, e, t) {
const i = n.slice();
return i[40] = e[t], i[42] = t, i;
}
-function Sc(n, e, t) {
+function Ac(n, e, t) {
const i = n.slice();
return i[40] = e[t], i;
}
@@ -15447,9 +15469,9 @@ function B2(n) {
/*i18n*/
n[1]("common.error") + ""
), s, o, l;
- t = new wn({
+ t = new Dn({
props: {
- Icon: bf,
+ Icon: vf,
label: (
/*i18n*/
n[1]("common.clear")
@@ -15469,7 +15491,7 @@ function B2(n) {
n,
/*$$scope*/
n[29],
- Ec
+ Cc
);
return {
c() {
@@ -15486,7 +15508,7 @@ function B2(n) {
Rt(e, "class", "clear-status svelte-17v219f"), Rt(r, "class", "error svelte-17v219f");
},
m(f, h) {
- H(f, e, h), zh(t, e, null), H(f, i, h), H(f, r, h), In(r, s), H(f, o, h), u && u.m(f, h), l = !0;
+ G(f, e, h), zh(t, e, null), G(f, i, h), G(f, r, h), $n(r, s), G(f, o, h), u && u.m(f, h), l = !0;
},
p(f, h) {
const d = {};
@@ -15511,7 +15533,7 @@ function B2(n) {
/*$$scope*/
f[29]
),
- Ec
+ Cc
);
},
i(f) {
@@ -15530,7 +15552,7 @@ function O2(n) {
/*variant*/
n[8] === "default" && /*show_eta_bar*/
n[18] && /*show_progress*/
- n[6] === "full" && Ac(n)
+ n[6] === "full" && Fc(n)
);
function f(_, g) {
if (
@@ -15550,7 +15572,7 @@ function O2(n) {
}
let h = f(n), d = h && h(n), p = (
/*timer*/
- n[5] && Ic(n)
+ n[5] && $c(n)
);
const v = [G2, H2], w = [];
function E(_, g) {
@@ -15564,7 +15586,7 @@ function O2(n) {
}
~(a = E(n)) && (s = w[a] = v[a](n));
let m = !/*timer*/
- n[5] && Rc(n);
+ n[5] && Mc(n);
return {
c() {
u && u.c(), e = bt(), t = Yt("div"), d && d.c(), i = bt(), p && p.c(), r = bt(), s && s.c(), o = bt(), m && m.c(), l = wt(), this.h();
@@ -15588,14 +15610,14 @@ function O2(n) {
);
},
m(_, g) {
- u && u.m(_, g), H(_, e, g), H(_, t, g), d && d.m(t, null), In(t, i), p && p.m(t, null), H(_, r, g), ~a && w[a].m(_, g), H(_, o, g), m && m.m(_, g), H(_, l, g), c = !0;
+ u && u.m(_, g), G(_, e, g), G(_, t, g), d && d.m(t, null), $n(t, i), p && p.m(t, null), G(_, r, g), ~a && w[a].m(_, g), G(_, o, g), m && m.m(_, g), G(_, l, g), c = !0;
},
p(_, g) {
/*variant*/
_[8] === "default" && /*show_eta_bar*/
_[18] && /*show_progress*/
- _[6] === "full" ? u ? u.p(_, g) : (u = Ac(_), u.c(), u.m(e.parentNode, e)) : u && (u.d(1), u = null), h === (h = f(_)) && d ? d.p(_, g) : (d && d.d(1), d = h && h(_), d && (d.c(), d.m(t, i))), /*timer*/
- _[5] ? p ? p.p(_, g) : (p = Ic(_), p.c(), p.m(t, null)) : p && (p.d(1), p = null), (!c || g[0] & /*variant*/
+ _[6] === "full" ? u ? u.p(_, g) : (u = Fc(_), u.c(), u.m(e.parentNode, e)) : u && (u.d(1), u = null), h === (h = f(_)) && d ? d.p(_, g) : (d && d.d(1), d = h && h(_), d && (d.c(), d.m(t, i))), /*timer*/
+ _[5] ? p ? p.p(_, g) : (p = $c(_), p.c(), p.m(t, null)) : p && (p.d(1), p = null), (!c || g[0] & /*variant*/
256) && pt(
t,
"meta-text-center",
@@ -15609,13 +15631,13 @@ function O2(n) {
_[8] === "default"
);
let b = a;
- a = E(_), a === b ? ~a && w[a].p(_, g) : (s && (_o(), Kt(w[b], 1, 1, () => {
+ a = E(_), a === b ? ~a && w[a].p(_, g) : (s && (po(), Kt(w[b], 1, 1, () => {
w[b] = null;
- }), ho()), ~a ? (s = w[a], s ? s.p(_, g) : (s = w[a] = v[a](_), s.c()), Pt(s, 1), s.m(o.parentNode, o)) : s = null), /*timer*/
- _[5] ? m && (_o(), Kt(m, 1, 1, () => {
+ }), _o()), ~a ? (s = w[a], s ? s.p(_, g) : (s = w[a] = v[a](_), s.c()), Pt(s, 1), s.m(o.parentNode, o)) : s = null), /*timer*/
+ _[5] ? m && (po(), Kt(m, 1, 1, () => {
m = null;
- }), ho()) : m ? (m.p(_, g), g[0] & /*timer*/
- 32 && Pt(m, 1)) : (m = Rc(_), m.c(), Pt(m, 1), m.m(l.parentNode, l));
+ }), _o()) : m ? (m.p(_, g), g[0] & /*timer*/
+ 32 && Pt(m, 1)) : (m = Mc(_), m.c(), Pt(m, 1), m.m(l.parentNode, l));
},
i(_) {
c || (Pt(s), Pt(m), c = !0);
@@ -15628,7 +15650,7 @@ function O2(n) {
}
};
}
-function Ac(n) {
+function Fc(n) {
let e, t = `translateX(${/*eta_level*/
(n[17] || 0) * 100 - 100}%)`;
return {
@@ -15639,15 +15661,15 @@ function Ac(n) {
e = Zt(i, "DIV", { class: !0 }), Xt(e).forEach(N), this.h();
},
h() {
- Rt(e, "class", "eta-bar svelte-17v219f"), bn(e, "transform", t);
+ Rt(e, "class", "eta-bar svelte-17v219f"), vn(e, "transform", t);
},
m(i, r) {
- H(i, e, r);
+ G(i, e, r);
},
p(i, r) {
r[0] & /*eta_level*/
131072 && t !== (t = `translateX(${/*eta_level*/
- (i[17] || 0) * 100 - 100}%)`) && bn(e, "transform", t);
+ (i[17] || 0) * 100 - 100}%)`) && vn(e, "transform", t);
},
d(i) {
i && N(e);
@@ -15664,9 +15686,9 @@ function L2(n) {
e = ye(t, "processing |");
},
m(t, i) {
- H(t, e, i);
+ G(t, e, i);
},
- p: po,
+ p: mo,
d(t) {
t && N(e);
}
@@ -15692,7 +15714,7 @@ function R2(n) {
), s = ye(o, " |");
},
m(o, l) {
- H(o, e, l), H(o, i, l), H(o, r, l), H(o, a, l), H(o, s, l);
+ G(o, e, l), G(o, i, l), G(o, r, l), G(o, a, l), G(o, s, l);
},
p(o, l) {
l[0] & /*queue_position*/
@@ -15715,7 +15737,7 @@ function M2(n) {
n[7]
), i = [];
for (let r = 0; r < t.length; r += 1)
- i[r] = Tc(Sc(n, t, r));
+ i[r] = Ic(Ac(n, t, r));
return {
c() {
for (let r = 0; r < i.length; r += 1)
@@ -15730,7 +15752,7 @@ function M2(n) {
m(r, a) {
for (let s = 0; s < i.length; s += 1)
i[s] && i[s].m(r, a);
- H(r, e, a);
+ G(r, e, a);
},
p(r, a) {
if (a[0] & /*progress*/
@@ -15741,8 +15763,8 @@ function M2(n) {
);
let s;
for (s = 0; s < t.length; s += 1) {
- const o = Sc(r, t, s);
- i[s] ? i[s].p(o, a) : (i[s] = Tc(o), i[s].c(), i[s].m(e.parentNode, e));
+ const o = Ac(r, t, s);
+ i[s] ? i[s].p(o, a) : (i[s] = Ic(o), i[s].c(), i[s].m(e.parentNode, e));
}
for (; s < i.length; s += 1)
i[s].d(1);
@@ -15754,7 +15776,7 @@ function M2(n) {
}
};
}
-function Fc(n) {
+function Tc(n) {
let e, t = (
/*p*/
n[40].unit + ""
@@ -15774,7 +15796,7 @@ function Fc(n) {
c.l(u), e = gt(u), i = ye(u, t), r = ye(u, " | "), s = ye(u, a);
},
m(u, f) {
- c.m(u, f), H(u, e, f), H(u, i, f), H(u, r, f), H(u, s, f);
+ c.m(u, f), G(u, e, f), G(u, i, f), G(u, r, f), G(u, s, f);
},
p(u, f) {
l === (l = o(u)) && c ? c.p(u, f) : (c.d(1), c = l(u), c && (c.c(), c.m(e.parentNode, e))), f[0] & /*progress*/
@@ -15799,7 +15821,7 @@ function N2(n) {
t = ye(i, e);
},
m(i, r) {
- H(i, t, r);
+ G(i, t, r);
},
p(i, r) {
r[0] & /*progress*/
@@ -15829,7 +15851,7 @@ function U2(n) {
t = ye(s, e), i = ye(s, "/"), a = ye(s, r);
},
m(s, o) {
- H(s, t, o), H(s, i, o), H(s, a, o);
+ G(s, t, o), G(s, i, o), G(s, a, o);
},
p(s, o) {
o[0] & /*progress*/
@@ -15847,10 +15869,10 @@ function U2(n) {
}
};
}
-function Tc(n) {
+function Ic(n) {
let e, t = (
/*p*/
- n[40].index != null && Fc(n)
+ n[40].index != null && Tc(n)
);
return {
c() {
@@ -15860,18 +15882,18 @@ function Tc(n) {
t && t.l(i), e = wt();
},
m(i, r) {
- t && t.m(i, r), H(i, e, r);
+ t && t.m(i, r), G(i, e, r);
},
p(i, r) {
/*p*/
- i[40].index != null ? t ? t.p(i, r) : (t = Fc(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ i[40].index != null ? t ? t.p(i, r) : (t = Tc(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(i) {
i && N(e), t && t.d(i);
}
};
}
-function Ic(n) {
+function $c(n) {
let e, t = (
/*eta*/
n[0] ? `/${/*formatted_eta*/
@@ -15892,7 +15914,7 @@ function Ic(n) {
), i = ye(a, t), r = ye(a, "s");
},
m(a, s) {
- H(a, e, s), H(a, i, s), H(a, r, s);
+ G(a, e, s), G(a, i, s), G(a, r, s);
},
p(a, s) {
s[0] & /*formatted_timer*/
@@ -15948,7 +15970,7 @@ function G2(n) {
let e, t, i, r, a, s = `${/*last_progress_level*/
n[15] * 100}%`, o = (
/*progress*/
- n[7] != null && $c(n)
+ n[7] != null && xc(n)
);
return {
c() {
@@ -15964,31 +15986,31 @@ function G2(n) {
a = Zt(f, "DIV", { class: !0 }), Xt(a).forEach(N), f.forEach(N), c.forEach(N), this.h();
},
h() {
- Rt(t, "class", "progress-level-inner svelte-17v219f"), Rt(a, "class", "progress-bar svelte-17v219f"), bn(a, "width", s), Rt(r, "class", "progress-bar-wrap svelte-17v219f"), Rt(e, "class", "progress-level svelte-17v219f");
+ Rt(t, "class", "progress-level-inner svelte-17v219f"), Rt(a, "class", "progress-bar svelte-17v219f"), vn(a, "width", s), Rt(r, "class", "progress-bar-wrap svelte-17v219f"), Rt(e, "class", "progress-level svelte-17v219f");
},
m(l, c) {
- H(l, e, c), In(e, t), o && o.m(t, null), In(e, i), In(e, r), In(r, a), n[31](a);
+ G(l, e, c), $n(e, t), o && o.m(t, null), $n(e, i), $n(e, r), $n(r, a), n[31](a);
},
p(l, c) {
/*progress*/
- l[7] != null ? o ? o.p(l, c) : (o = $c(l), o.c(), o.m(t, null)) : o && (o.d(1), o = null), c[0] & /*last_progress_level*/
+ l[7] != null ? o ? o.p(l, c) : (o = xc(l), o.c(), o.m(t, null)) : o && (o.d(1), o = null), c[0] & /*last_progress_level*/
32768 && s !== (s = `${/*last_progress_level*/
- l[15] * 100}%`) && bn(a, "width", s);
+ l[15] * 100}%`) && vn(a, "width", s);
},
- i: po,
- o: po,
+ i: mo,
+ o: mo,
d(l) {
l && N(e), o && o.d(), n[31](null);
}
};
}
-function $c(n) {
+function xc(n) {
let e, t = ga(
/*progress*/
n[7]
), i = [];
for (let r = 0; r < t.length; r += 1)
- i[r] = Lc(kc(n, t, r));
+ i[r] = Rc(Sc(n, t, r));
return {
c() {
for (let r = 0; r < i.length; r += 1)
@@ -16003,7 +16025,7 @@ function $c(n) {
m(r, a) {
for (let s = 0; s < i.length; s += 1)
i[s] && i[s].m(r, a);
- H(r, e, a);
+ G(r, e, a);
},
p(r, a) {
if (a[0] & /*progress_level, progress*/
@@ -16014,8 +16036,8 @@ function $c(n) {
);
let s;
for (s = 0; s < t.length; s += 1) {
- const o = kc(r, t, s);
- i[s] ? i[s].p(o, a) : (i[s] = Lc(o), i[s].c(), i[s].m(e.parentNode, e));
+ const o = Sc(r, t, s);
+ i[s] ? i[s].p(o, a) : (i[s] = Rc(o), i[s].c(), i[s].m(e.parentNode, e));
}
for (; s < i.length; s += 1)
i[s].d(1);
@@ -16027,13 +16049,13 @@ function $c(n) {
}
};
}
-function xc(n) {
+function Pc(n) {
let e, t, i, r, a = (
/*i*/
n[42] !== 0 && z2()
), s = (
/*p*/
- n[40].desc != null && Pc(n)
+ n[40].desc != null && Bc(n)
), o = (
/*p*/
n[40].desc != null && /*progress_level*/
@@ -16041,10 +16063,10 @@ function xc(n) {
n[14][
/*i*/
n[42]
- ] != null && Bc()
+ ] != null && Oc()
), l = (
/*progress_level*/
- n[14] != null && Oc(n)
+ n[14] != null && Lc(n)
);
return {
c() {
@@ -16054,18 +16076,18 @@ function xc(n) {
a && a.l(c), e = gt(c), s && s.l(c), t = gt(c), o && o.l(c), i = gt(c), l && l.l(c), r = wt();
},
m(c, u) {
- a && a.m(c, u), H(c, e, u), s && s.m(c, u), H(c, t, u), o && o.m(c, u), H(c, i, u), l && l.m(c, u), H(c, r, u);
+ a && a.m(c, u), G(c, e, u), s && s.m(c, u), G(c, t, u), o && o.m(c, u), G(c, i, u), l && l.m(c, u), G(c, r, u);
},
p(c, u) {
/*p*/
- c[40].desc != null ? s ? s.p(c, u) : (s = Pc(c), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), /*p*/
+ c[40].desc != null ? s ? s.p(c, u) : (s = Bc(c), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), /*p*/
c[40].desc != null && /*progress_level*/
c[14] && /*progress_level*/
c[14][
/*i*/
c[42]
- ] != null ? o || (o = Bc(), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null), /*progress_level*/
- c[14] != null ? l ? l.p(c, u) : (l = Oc(c), l.c(), l.m(r.parentNode, r)) : l && (l.d(1), l = null);
+ ] != null ? o || (o = Oc(), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null), /*progress_level*/
+ c[14] != null ? l ? l.p(c, u) : (l = Lc(c), l.c(), l.m(r.parentNode, r)) : l && (l.d(1), l = null);
},
d(c) {
c && (N(e), N(t), N(i), N(r)), a && a.d(c), s && s.d(c), o && o.d(c), l && l.d(c);
@@ -16082,14 +16104,14 @@ function z2(n) {
e = ye(t, "Â /");
},
m(t, i) {
- H(t, e, i);
+ G(t, e, i);
},
d(t) {
t && N(e);
}
};
}
-function Pc(n) {
+function Bc(n) {
let e = (
/*p*/
n[40].desc + ""
@@ -16102,7 +16124,7 @@ function Pc(n) {
t = ye(i, e);
},
m(i, r) {
- H(i, t, r);
+ G(i, t, r);
},
p(i, r) {
r[0] & /*progress*/
@@ -16114,7 +16136,7 @@ function Pc(n) {
}
};
}
-function Bc(n) {
+function Oc(n) {
let e;
return {
c() {
@@ -16124,14 +16146,14 @@ function Bc(n) {
e = ye(t, "-");
},
m(t, i) {
- H(t, e, i);
+ G(t, e, i);
},
d(t) {
t && N(e);
}
};
}
-function Oc(n) {
+function Lc(n) {
let e = (100 * /*progress_level*/
(n[14][
/*i*/
@@ -16145,7 +16167,7 @@ function Oc(n) {
t = ye(r, e), i = ye(r, "%");
},
m(r, a) {
- H(r, t, a), H(r, i, a);
+ G(r, t, a), G(r, i, a);
},
p(r, a) {
a[0] & /*progress_level*/
@@ -16160,7 +16182,7 @@ function Oc(n) {
}
};
}
-function Lc(n) {
+function Rc(n) {
let e, t = (
/*p*/
(n[40].desc != null || /*progress_level*/
@@ -16168,7 +16190,7 @@ function Lc(n) {
n[14][
/*i*/
n[42]
- ] != null) && xc(n)
+ ] != null) && Pc(n)
);
return {
c() {
@@ -16178,7 +16200,7 @@ function Lc(n) {
t && t.l(i), e = wt();
},
m(i, r) {
- t && t.m(i, r), H(i, e, r);
+ t && t.m(i, r), G(i, e, r);
},
p(i, r) {
/*p*/
@@ -16187,14 +16209,14 @@ function Lc(n) {
i[14][
/*i*/
i[42]
- ] != null ? t ? t.p(i, r) : (t = xc(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
+ ] != null ? t ? t.p(i, r) : (t = Pc(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
},
d(i) {
i && N(e), t && t.d(i);
}
};
}
-function Rc(n) {
+function Mc(n) {
let e, t, i, r;
const a = (
/*#slots*/
@@ -16204,7 +16226,7 @@ function Rc(n) {
n,
/*$$scope*/
n[29],
- Cc
+ kc
);
return {
c() {
@@ -16226,7 +16248,7 @@ function Rc(n) {
Rt(e, "class", "loading svelte-17v219f");
},
m(o, l) {
- H(o, e, l), In(e, t), H(o, i, l), s && s.m(o, l), r = !0;
+ G(o, e, l), $n(e, t), G(o, i, l), s && s.m(o, l), r = !0;
},
p(o, l) {
(!r || l[0] & /*loading_text*/
@@ -16251,7 +16273,7 @@ function Rc(n) {
/*$$scope*/
o[29]
),
- Cc
+ kc
);
},
i(o) {
@@ -16313,12 +16335,12 @@ function q2(n) {
"border",
/*border*/
n[12]
- ), bn(
+ ), vn(
e,
"position",
/*absolute*/
n[10] ? "absolute" : "static"
- ), bn(
+ ), vn(
e,
"padding",
/*absolute*/
@@ -16326,13 +16348,13 @@ function q2(n) {
);
},
m(c, u) {
- H(c, e, u), ~t && o[t].m(e, null), n[33](e), a = !0;
+ G(c, e, u), ~t && o[t].m(e, null), n[33](e), a = !0;
},
p(c, u) {
let f = t;
- t = l(c), t === f ? ~t && o[t].p(c, u) : (i && (_o(), Kt(o[f], 1, 1, () => {
+ t = l(c), t === f ? ~t && o[t].p(c, u) : (i && (po(), Kt(o[f], 1, 1, () => {
o[f] = null;
- }), ho()), ~t ? (i = o[t], i ? i.p(c, u) : (i = o[t] = s[t](c), i.c()), Pt(i, 1), i.m(e, null)) : i = null), (!a || u[0] & /*variant, show_progress*/
+ }), _o()), ~t ? (i = o[t], i ? i.p(c, u) : (i = o[t] = s[t](c), i.c()), Pt(i, 1), i.m(e, null)) : i = null), (!a || u[0] & /*variant, show_progress*/
320 && r !== (r = "wrap " + /*variant*/
c[8] + " " + /*show_progress*/
c[6] + " svelte-17v219f")) && Rt(e, "class", r), (!a || u[0] & /*variant, show_progress, status, show_progress*/
@@ -16364,13 +16386,13 @@ function q2(n) {
/*border*/
c[12]
), u[0] & /*absolute*/
- 1024 && bn(
+ 1024 && vn(
e,
"position",
/*absolute*/
c[10] ? "absolute" : "static"
), u[0] & /*absolute*/
- 1024 && bn(
+ 1024 && vn(
e,
"padding",
/*absolute*/
@@ -16437,50 +16459,50 @@ function W2(n) {
function X2(n, e, t) {
let i, { $$slots: r = {}, $$scope: a } = e;
const s = $2();
- let { i18n: o } = e, { eta: l = null } = e, { queue_position: c } = e, { queue_size: u } = e, { status: f } = e, { scroll_to_output: h = !1 } = e, { timer: d = !0 } = e, { show_progress: p = "full" } = e, { message: v = null } = e, { progress: w = null } = e, { variant: E = "default" } = e, { loading_text: m = "Loading..." } = e, { absolute: _ = !0 } = e, { translucent: g = !1 } = e, { border: b = !1 } = e, { autoscroll: D } = e, C, P = !1, S = 0, R = 0, L = null, O = null, he = 0, G = null, ne, J = null, oe = !0;
- const V = () => {
- t(0, l = t(27, L = t(19, A = null))), t(25, S = performance.now()), t(26, R = 0), P = !0, le();
+ let { i18n: o } = e, { eta: l = null } = e, { queue_position: c } = e, { queue_size: u } = e, { status: f } = e, { scroll_to_output: h = !1 } = e, { timer: d = !0 } = e, { show_progress: p = "full" } = e, { message: v = null } = e, { progress: w = null } = e, { variant: E = "default" } = e, { loading_text: m = "Loading..." } = e, { absolute: _ = !0 } = e, { translucent: g = !1 } = e, { border: b = !1 } = e, { autoscroll: D } = e, k, P = !1, A = 0, R = 0, B = null, L = null, de = 0, z = null, te, Q = null, oe = !0;
+ const X = () => {
+ t(0, l = t(27, B = t(19, F = null))), t(25, A = performance.now()), t(26, R = 0), P = !0, ne();
};
- function le() {
+ function ne() {
jh(() => {
- t(26, R = (performance.now() - S) / 1e3), P && le();
+ t(26, R = (performance.now() - A) / 1e3), P && ne();
});
}
function De() {
- t(26, R = 0), t(0, l = t(27, L = t(19, A = null))), P && (P = !1);
+ t(26, R = 0), t(0, l = t(27, B = t(19, F = null))), P && (P = !1);
}
I2(() => {
P && De();
});
- let A = null;
- function x(F) {
- Dc[F ? "unshift" : "push"](() => {
- J = F, t(16, J), t(7, w), t(14, G), t(15, ne);
+ let F = null;
+ function x(T) {
+ Ec[T ? "unshift" : "push"](() => {
+ Q = T, t(16, Q), t(7, w), t(14, z), t(15, te);
});
}
- const z = () => {
+ const H = () => {
s("clear_status");
};
- function Q(F) {
- Dc[F ? "unshift" : "push"](() => {
- C = F, t(13, C);
+ function J(T) {
+ Ec[T ? "unshift" : "push"](() => {
+ k = T, t(13, k);
});
}
- return n.$$set = (F) => {
- "i18n" in F && t(1, o = F.i18n), "eta" in F && t(0, l = F.eta), "queue_position" in F && t(2, c = F.queue_position), "queue_size" in F && t(3, u = F.queue_size), "status" in F && t(4, f = F.status), "scroll_to_output" in F && t(22, h = F.scroll_to_output), "timer" in F && t(5, d = F.timer), "show_progress" in F && t(6, p = F.show_progress), "message" in F && t(23, v = F.message), "progress" in F && t(7, w = F.progress), "variant" in F && t(8, E = F.variant), "loading_text" in F && t(9, m = F.loading_text), "absolute" in F && t(10, _ = F.absolute), "translucent" in F && t(11, g = F.translucent), "border" in F && t(12, b = F.border), "autoscroll" in F && t(24, D = F.autoscroll), "$$scope" in F && t(29, a = F.$$scope);
+ return n.$$set = (T) => {
+ "i18n" in T && t(1, o = T.i18n), "eta" in T && t(0, l = T.eta), "queue_position" in T && t(2, c = T.queue_position), "queue_size" in T && t(3, u = T.queue_size), "status" in T && t(4, f = T.status), "scroll_to_output" in T && t(22, h = T.scroll_to_output), "timer" in T && t(5, d = T.timer), "show_progress" in T && t(6, p = T.show_progress), "message" in T && t(23, v = T.message), "progress" in T && t(7, w = T.progress), "variant" in T && t(8, E = T.variant), "loading_text" in T && t(9, m = T.loading_text), "absolute" in T && t(10, _ = T.absolute), "translucent" in T && t(11, g = T.translucent), "border" in T && t(12, b = T.border), "autoscroll" in T && t(24, D = T.autoscroll), "$$scope" in T && t(29, a = T.$$scope);
}, n.$$.update = () => {
n.$$.dirty[0] & /*eta, old_eta, timer_start, eta_from_start*/
- 436207617 && (l === null && t(0, l = L), l != null && L !== l && (t(28, O = (performance.now() - S) / 1e3 + l), t(19, A = O.toFixed(1)), t(27, L = l))), n.$$.dirty[0] & /*eta_from_start, timer_diff*/
- 335544320 && t(17, he = O === null || O <= 0 || !R ? null : Math.min(R / O, 1)), n.$$.dirty[0] & /*progress*/
+ 436207617 && (l === null && t(0, l = B), l != null && B !== l && (t(28, L = (performance.now() - A) / 1e3 + l), t(19, F = L.toFixed(1)), t(27, B = l))), n.$$.dirty[0] & /*eta_from_start, timer_diff*/
+ 335544320 && t(17, de = L === null || L <= 0 || !R ? null : Math.min(R / L, 1)), n.$$.dirty[0] & /*progress*/
128 && w != null && t(18, oe = !1), n.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
- 114816 && (w != null ? t(14, G = w.map((F) => {
- if (F.index != null && F.length != null)
- return F.index / F.length;
- if (F.progress != null)
- return F.progress;
- })) : t(14, G = null), G ? (t(15, ne = G[G.length - 1]), J && (ne === 0 ? t(16, J.style.transition = "0", J) : t(16, J.style.transition = "150ms", J))) : t(15, ne = void 0)), n.$$.dirty[0] & /*status*/
- 16 && (f === "pending" ? V() : De()), n.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
- 20979728 && C && h && (f === "pending" || f === "complete") && W2(C, D), n.$$.dirty[0] & /*status, message*/
+ 114816 && (w != null ? t(14, z = w.map((T) => {
+ if (T.index != null && T.length != null)
+ return T.index / T.length;
+ if (T.progress != null)
+ return T.progress;
+ })) : t(14, z = null), z ? (t(15, te = z[z.length - 1]), Q && (te === 0 ? t(16, Q.style.transition = "0", Q) : t(16, Q.style.transition = "150ms", Q))) : t(15, te = void 0)), n.$$.dirty[0] & /*status*/
+ 16 && (f === "pending" ? X() : De()), n.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
+ 20979728 && k && h && (f === "pending" || f === "complete") && W2(k, D), n.$$.dirty[0] & /*status, message*/
8388624, n.$$.dirty[0] & /*timer_diff*/
67108864 && t(20, i = R.toFixed(1));
}, [
@@ -16497,27 +16519,27 @@ function X2(n, e, t) {
_,
g,
b,
- C,
- G,
- ne,
- J,
- he,
+ k,
+ z,
+ te,
+ Q,
+ de,
oe,
- A,
+ F,
i,
s,
h,
v,
D,
- S,
+ A,
R,
+ B,
L,
- O,
a,
r,
x,
- z,
- Q
+ H,
+ J
];
}
class Vh extends S2 {
@@ -16554,50 +16576,50 @@ class Vh extends S2 {
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
const {
entries: Wh,
- setPrototypeOf: Mc,
+ setPrototypeOf: Nc,
isFrozen: Z2,
getPrototypeOf: Y2,
getOwnPropertyDescriptor: K2
} = Object;
let {
- freeze: it,
+ freeze: rt,
seal: Et,
create: Xh
} = Object, {
- apply: mo,
- construct: go
+ apply: go,
+ construct: bo
} = typeof Reflect < "u" && Reflect;
-it || (it = function(e) {
+rt || (rt = function(e) {
return e;
});
Et || (Et = function(e) {
return e;
});
-mo || (mo = function(e, t, i) {
+go || (go = function(e, t, i) {
return e.apply(t, i);
});
-go || (go = function(e, t) {
+bo || (bo = function(e, t) {
return new e(...t);
});
-const Mr = rt(Array.prototype.forEach), Q2 = rt(Array.prototype.lastIndexOf), Nc = rt(Array.prototype.pop), Pi = rt(Array.prototype.push), J2 = rt(Array.prototype.splice), Vr = rt(String.prototype.toLowerCase), ks = rt(String.prototype.toString), Uc = rt(String.prototype.match), Bi = rt(String.prototype.replace), ev = rt(String.prototype.indexOf), tv = rt(String.prototype.trim), $t = rt(Object.prototype.hasOwnProperty), Ze = rt(RegExp.prototype.test), Oi = nv(TypeError);
-function rt(n) {
+const Mr = at(Array.prototype.forEach), Q2 = at(Array.prototype.lastIndexOf), Uc = at(Array.prototype.pop), Pi = at(Array.prototype.push), J2 = at(Array.prototype.splice), Vr = at(String.prototype.toLowerCase), ks = at(String.prototype.toString), Hc = at(String.prototype.match), Bi = at(String.prototype.replace), ev = at(String.prototype.indexOf), tv = at(String.prototype.trim), $t = at(Object.prototype.hasOwnProperty), Ye = at(RegExp.prototype.test), Oi = nv(TypeError);
+function at(n) {
return function(e) {
e instanceof RegExp && (e.lastIndex = 0);
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
i[r - 1] = arguments[r];
- return mo(n, e, i);
+ return go(n, e, i);
};
}
function nv(n) {
return function() {
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
t[i] = arguments[i];
- return go(n, t);
+ return bo(n, t);
};
}
-function X(n, e) {
+function W(n, e) {
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Vr;
- Mc && Mc(n, null);
+ Nc && Nc(n, null);
let i = e.length;
for (; i--; ) {
let r = e[i];
@@ -16614,10 +16636,10 @@ function iv(n) {
$t(n, e) || (n[e] = null);
return n;
}
-function ln(n) {
+function un(n) {
const e = Xh(null);
for (const [t, i] of Wh(n))
- $t(n, t) && (Array.isArray(i) ? e[t] = iv(i) : i && typeof i == "object" && i.constructor === Object ? e[t] = ln(i) : e[t] = i);
+ $t(n, t) && (Array.isArray(i) ? e[t] = iv(i) : i && typeof i == "object" && i.constructor === Object ? e[t] = un(i) : e[t] = i);
return e;
}
function Li(n, e) {
@@ -16625,9 +16647,9 @@ function Li(n, e) {
const i = K2(n, e);
if (i) {
if (i.get)
- return rt(i.get);
+ return at(i.get);
if (typeof i.value == "function")
- return rt(i.value);
+ return at(i.value);
}
n = Y2(n);
}
@@ -16636,14 +16658,14 @@ function Li(n, e) {
}
return t;
}
-const Hc = it(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ss = it(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), As = it(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), rv = it(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Fs = it(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), av = it(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Gc = it(["#text"]), zc = it(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ts = it(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), qc = it(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Nr = it(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), sv = Et(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ov = Et(/<%[\w\W]*|[\w\W]*%>/gm), lv = Et(/\$\{[\w\W]*/gm), uv = Et(/^data-[\-\w.\u00B7-\uFFFF]+$/), cv = Et(/^aria-[\-\w]+$/), Zh = Et(
+const Gc = rt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ss = rt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), As = rt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), rv = rt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Fs = rt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), av = rt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), zc = rt(["#text"]), qc = rt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ts = rt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), jc = rt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Nr = rt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), sv = Et(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ov = Et(/<%[\w\W]*|[\w\W]*%>/gm), lv = Et(/\$\{[\w\W]*/gm), uv = Et(/^data-[\-\w.\u00B7-\uFFFF]+$/), cv = Et(/^aria-[\-\w]+$/), Zh = Et(
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
// eslint-disable-line no-useless-escape
), fv = Et(/^(?:\w+script|data):/i), hv = Et(
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
// eslint-disable-line no-control-regex
), Yh = Et(/^html$/i), dv = Et(/^[a-z][.\w]*(-[.\w]+)+$/i);
-var jc = /* @__PURE__ */ Object.freeze({
+var Vc = /* @__PURE__ */ Object.freeze({
__proto__: null,
ARIA_ATTR: cv,
ATTR_WHITESPACE: hv,
@@ -16684,7 +16706,7 @@ const Ri = {
} catch {
return console.warn("TrustedTypes policy " + a + " could not be created."), null;
}
-}, Vc = function() {
+}, Wc = function() {
return {
afterSanitizeAttributes: [],
afterSanitizeElements: [],
@@ -16723,31 +16745,31 @@ function Kh() {
let g, b = "";
const {
implementation: D,
- createNodeIterator: C,
+ createNodeIterator: k,
createDocumentFragment: P,
- getElementsByTagName: S
+ getElementsByTagName: A
} = t, {
importNode: R
} = i;
- let L = Vc();
+ let B = Wc();
e.isSupported = typeof Wh == "function" && typeof _ == "function" && D && D.createHTMLDocument !== void 0;
const {
- MUSTACHE_EXPR: O,
- ERB_EXPR: he,
- TMPLIT_EXPR: G,
- DATA_ATTR: ne,
- ARIA_ATTR: J,
+ MUSTACHE_EXPR: L,
+ ERB_EXPR: de,
+ TMPLIT_EXPR: z,
+ DATA_ATTR: te,
+ ARIA_ATTR: Q,
IS_SCRIPT_OR_DATA: oe,
- ATTR_WHITESPACE: V,
- CUSTOM_ELEMENT: le
- } = jc;
+ ATTR_WHITESPACE: X,
+ CUSTOM_ELEMENT: ne
+ } = Vc;
let {
IS_ALLOWED_URI: De
- } = jc, A = null;
- const x = X({}, [...Hc, ...Ss, ...As, ...Fs, ...Gc]);
- let z = null;
- const Q = X({}, [...zc, ...Ts, ...qc, ...Nr]);
- let F = Object.seal(Xh(null, {
+ } = Vc, F = null;
+ const x = W({}, [...Gc, ...Ss, ...As, ...Fs, ...zc]);
+ let H = null;
+ const J = W({}, [...qc, ...Ts, ...jc, ...Nr]);
+ let T = Object.seal(Xh(null, {
tagNameCheck: {
writable: !0,
configurable: !1,
@@ -16766,28 +16788,28 @@ function Kh() {
enumerable: !0,
value: !1
}
- })), Ce = null, ke = null, I = !0, q = !0, j = !1, W = !0, ce = !1, T = !0, ee = !1, Ne = !1, Ue = !1, $e = !1, _e = !1, be = !1, Ct = !0, Ht = !1;
- const dt = "user-content-";
- let k = !0, Te = !1, Yn = {}, Kn = null;
- const qo = X({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
- let jo = null;
- const Vo = X({}, ["audio", "video", "img", "source", "image", "track"]);
+ })), ke = null, Se = null, I = !0, q = !0, j = !1, V = !0, ce = !1, Ee = !0, S = !1, le = !1, Pe = !1, fe = !1, Ae = !1, Fe = !1, Me = !0, Ct = !1;
+ const nn = "user-content-";
+ let C = !0, be = !1, Ht = {}, Kn = null;
+ const jo = W({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
+ let Vo = null;
+ const Wo = W({}, ["audio", "video", "img", "source", "image", "track"]);
let Ia = null;
- const Wo = X({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ur = "http://www.w3.org/1998/Math/MathML", cr = "http://www.w3.org/2000/svg", nn = "http://www.w3.org/1999/xhtml";
- let Qn = nn, $a = !1, xa = null;
- const id = X({}, [ur, cr, nn], ks);
- let fr = X({}, ["mi", "mo", "mn", "ms", "mtext"]), hr = X({}, ["annotation-xml"]);
- const rd = X({}, ["title", "style", "font", "a", "script"]);
+ const Xo = W({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ur = "http://www.w3.org/1998/Math/MathML", cr = "http://www.w3.org/2000/svg", rn = "http://www.w3.org/1999/xhtml";
+ let Qn = rn, $a = !1, xa = null;
+ const id = W({}, [ur, cr, rn], ks);
+ let fr = W({}, ["mi", "mo", "mn", "ms", "mtext"]), hr = W({}, ["annotation-xml"]);
+ const rd = W({}, ["title", "style", "font", "a", "script"]);
let Ci = null;
const ad = ["application/xhtml+xml", "text/html"], sd = "text/html";
- let xe = null, Jn = null;
- const od = t.createElement("form"), Xo = function(y) {
+ let Be = null, Jn = null;
+ const od = t.createElement("form"), Zo = function(y) {
return y instanceof RegExp || y instanceof Function;
}, Pa = function() {
let y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
if (!(Jn && Jn === y)) {
- if ((!y || typeof y != "object") && (y = {}), y = ln(y), Ci = // eslint-disable-next-line unicorn/prefer-includes
- ad.indexOf(y.PARSER_MEDIA_TYPE) === -1 ? sd : y.PARSER_MEDIA_TYPE, xe = Ci === "application/xhtml+xml" ? ks : Vr, A = $t(y, "ALLOWED_TAGS") ? X({}, y.ALLOWED_TAGS, xe) : x, z = $t(y, "ALLOWED_ATTR") ? X({}, y.ALLOWED_ATTR, xe) : Q, xa = $t(y, "ALLOWED_NAMESPACES") ? X({}, y.ALLOWED_NAMESPACES, ks) : id, Ia = $t(y, "ADD_URI_SAFE_ATTR") ? X(ln(Wo), y.ADD_URI_SAFE_ATTR, xe) : Wo, jo = $t(y, "ADD_DATA_URI_TAGS") ? X(ln(Vo), y.ADD_DATA_URI_TAGS, xe) : Vo, Kn = $t(y, "FORBID_CONTENTS") ? X({}, y.FORBID_CONTENTS, xe) : qo, Ce = $t(y, "FORBID_TAGS") ? X({}, y.FORBID_TAGS, xe) : ln({}), ke = $t(y, "FORBID_ATTR") ? X({}, y.FORBID_ATTR, xe) : ln({}), Yn = $t(y, "USE_PROFILES") ? y.USE_PROFILES : !1, I = y.ALLOW_ARIA_ATTR !== !1, q = y.ALLOW_DATA_ATTR !== !1, j = y.ALLOW_UNKNOWN_PROTOCOLS || !1, W = y.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = y.SAFE_FOR_TEMPLATES || !1, T = y.SAFE_FOR_XML !== !1, ee = y.WHOLE_DOCUMENT || !1, $e = y.RETURN_DOM || !1, _e = y.RETURN_DOM_FRAGMENT || !1, be = y.RETURN_TRUSTED_TYPE || !1, Ue = y.FORCE_BODY || !1, Ct = y.SANITIZE_DOM !== !1, Ht = y.SANITIZE_NAMED_PROPS || !1, k = y.KEEP_CONTENT !== !1, Te = y.IN_PLACE || !1, De = y.ALLOWED_URI_REGEXP || Zh, Qn = y.NAMESPACE || nn, fr = y.MATHML_TEXT_INTEGRATION_POINTS || fr, hr = y.HTML_INTEGRATION_POINTS || hr, F = y.CUSTOM_ELEMENT_HANDLING || {}, y.CUSTOM_ELEMENT_HANDLING && Xo(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = y.CUSTOM_ELEMENT_HANDLING.tagNameCheck), y.CUSTOM_ELEMENT_HANDLING && Xo(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), y.CUSTOM_ELEMENT_HANDLING && typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (q = !1), _e && ($e = !0), Yn && (A = X({}, Gc), z = [], Yn.html === !0 && (X(A, Hc), X(z, zc)), Yn.svg === !0 && (X(A, Ss), X(z, Ts), X(z, Nr)), Yn.svgFilters === !0 && (X(A, As), X(z, Ts), X(z, Nr)), Yn.mathMl === !0 && (X(A, Fs), X(z, qc), X(z, Nr))), y.ADD_TAGS && (A === x && (A = ln(A)), X(A, y.ADD_TAGS, xe)), y.ADD_ATTR && (z === Q && (z = ln(z)), X(z, y.ADD_ATTR, xe)), y.ADD_URI_SAFE_ATTR && X(Ia, y.ADD_URI_SAFE_ATTR, xe), y.FORBID_CONTENTS && (Kn === qo && (Kn = ln(Kn)), X(Kn, y.FORBID_CONTENTS, xe)), k && (A["#text"] = !0), ee && X(A, ["html", "head", "body"]), A.table && (X(A, ["tbody"]), delete Ce.tbody), y.TRUSTED_TYPES_POLICY) {
+ if ((!y || typeof y != "object") && (y = {}), y = un(y), Ci = // eslint-disable-next-line unicorn/prefer-includes
+ ad.indexOf(y.PARSER_MEDIA_TYPE) === -1 ? sd : y.PARSER_MEDIA_TYPE, Be = Ci === "application/xhtml+xml" ? ks : Vr, F = $t(y, "ALLOWED_TAGS") ? W({}, y.ALLOWED_TAGS, Be) : x, H = $t(y, "ALLOWED_ATTR") ? W({}, y.ALLOWED_ATTR, Be) : J, xa = $t(y, "ALLOWED_NAMESPACES") ? W({}, y.ALLOWED_NAMESPACES, ks) : id, Ia = $t(y, "ADD_URI_SAFE_ATTR") ? W(un(Xo), y.ADD_URI_SAFE_ATTR, Be) : Xo, Vo = $t(y, "ADD_DATA_URI_TAGS") ? W(un(Wo), y.ADD_DATA_URI_TAGS, Be) : Wo, Kn = $t(y, "FORBID_CONTENTS") ? W({}, y.FORBID_CONTENTS, Be) : jo, ke = $t(y, "FORBID_TAGS") ? W({}, y.FORBID_TAGS, Be) : un({}), Se = $t(y, "FORBID_ATTR") ? W({}, y.FORBID_ATTR, Be) : un({}), Ht = $t(y, "USE_PROFILES") ? y.USE_PROFILES : !1, I = y.ALLOW_ARIA_ATTR !== !1, q = y.ALLOW_DATA_ATTR !== !1, j = y.ALLOW_UNKNOWN_PROTOCOLS || !1, V = y.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = y.SAFE_FOR_TEMPLATES || !1, Ee = y.SAFE_FOR_XML !== !1, S = y.WHOLE_DOCUMENT || !1, fe = y.RETURN_DOM || !1, Ae = y.RETURN_DOM_FRAGMENT || !1, Fe = y.RETURN_TRUSTED_TYPE || !1, Pe = y.FORCE_BODY || !1, Me = y.SANITIZE_DOM !== !1, Ct = y.SANITIZE_NAMED_PROPS || !1, C = y.KEEP_CONTENT !== !1, be = y.IN_PLACE || !1, De = y.ALLOWED_URI_REGEXP || Zh, Qn = y.NAMESPACE || rn, fr = y.MATHML_TEXT_INTEGRATION_POINTS || fr, hr = y.HTML_INTEGRATION_POINTS || hr, T = y.CUSTOM_ELEMENT_HANDLING || {}, y.CUSTOM_ELEMENT_HANDLING && Zo(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = y.CUSTOM_ELEMENT_HANDLING.tagNameCheck), y.CUSTOM_ELEMENT_HANDLING && Zo(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), y.CUSTOM_ELEMENT_HANDLING && typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (q = !1), Ae && (fe = !0), Ht && (F = W({}, zc), H = [], Ht.html === !0 && (W(F, Gc), W(H, qc)), Ht.svg === !0 && (W(F, Ss), W(H, Ts), W(H, Nr)), Ht.svgFilters === !0 && (W(F, As), W(H, Ts), W(H, Nr)), Ht.mathMl === !0 && (W(F, Fs), W(H, jc), W(H, Nr))), y.ADD_TAGS && (F === x && (F = un(F)), W(F, y.ADD_TAGS, Be)), y.ADD_ATTR && (H === J && (H = un(H)), W(H, y.ADD_ATTR, Be)), y.ADD_URI_SAFE_ATTR && W(Ia, y.ADD_URI_SAFE_ATTR, Be), y.FORBID_CONTENTS && (Kn === jo && (Kn = un(Kn)), W(Kn, y.FORBID_CONTENTS, Be)), C && (F["#text"] = !0), S && W(F, ["html", "head", "body"]), F.table && (W(F, ["tbody"]), delete ke.tbody), y.TRUSTED_TYPES_POLICY) {
if (typeof y.TRUSTED_TYPES_POLICY.createHTML != "function")
throw Oi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
if (typeof y.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -16795,16 +16817,16 @@ function Kh() {
g = y.TRUSTED_TYPES_POLICY, b = g.createHTML("");
} else
g === void 0 && (g = pv(d, r)), g !== null && typeof b == "string" && (b = g.createHTML(""));
- it && it(y), Jn = y;
+ rt && rt(y), Jn = y;
}
- }, Zo = X({}, [...Ss, ...As, ...rv]), Yo = X({}, [...Fs, ...av]), ld = function(y) {
+ }, Yo = W({}, [...Ss, ...As, ...rv]), Ko = W({}, [...Fs, ...av]), ld = function(y) {
let $ = _(y);
(!$ || !$.tagName) && ($ = {
namespaceURI: Qn,
tagName: "template"
});
- const B = Vr(y.tagName), pe = Vr($.tagName);
- return xa[y.namespaceURI] ? y.namespaceURI === cr ? $.namespaceURI === nn ? B === "svg" : $.namespaceURI === ur ? B === "svg" && (pe === "annotation-xml" || fr[pe]) : !!Zo[B] : y.namespaceURI === ur ? $.namespaceURI === nn ? B === "math" : $.namespaceURI === cr ? B === "math" && hr[pe] : !!Yo[B] : y.namespaceURI === nn ? $.namespaceURI === cr && !hr[pe] || $.namespaceURI === ur && !fr[pe] ? !1 : !Yo[B] && (rd[B] || !Zo[B]) : !!(Ci === "application/xhtml+xml" && xa[y.namespaceURI]) : !1;
+ const O = Vr(y.tagName), pe = Vr($.tagName);
+ return xa[y.namespaceURI] ? y.namespaceURI === cr ? $.namespaceURI === rn ? O === "svg" : $.namespaceURI === ur ? O === "svg" && (pe === "annotation-xml" || fr[pe]) : !!Yo[O] : y.namespaceURI === ur ? $.namespaceURI === rn ? O === "math" : $.namespaceURI === cr ? O === "math" && hr[pe] : !!Ko[O] : y.namespaceURI === rn ? $.namespaceURI === cr && !hr[pe] || $.namespaceURI === ur && !fr[pe] ? !1 : !Ko[O] && (rd[O] || !Yo[O]) : !!(Ci === "application/xhtml+xml" && xa[y.namespaceURI]) : !1;
}, Gt = function(y) {
Pi(e.removed, {
element: y
@@ -16827,7 +16849,7 @@ function Kh() {
});
}
if ($.removeAttribute(y), y === "is")
- if ($e || _e)
+ if (fe || Ae)
try {
Gt($);
} catch {
@@ -16837,17 +16859,17 @@ function Kh() {
$.setAttribute(y, "");
} catch {
}
- }, Ko = function(y) {
- let $ = null, B = null;
- if (Ue)
+ }, Qo = function(y) {
+ let $ = null, O = null;
+ if (Pe)
y = "" + y;
else {
- const Ie = Uc(y, /^[\r\n\t ]+/);
- B = Ie && Ie[0];
+ const xe = Hc(y, /^[\r\n\t ]+/);
+ O = xe && xe[0];
}
- Ci === "application/xhtml+xml" && Qn === nn && (y = '' + y + "");
+ Ci === "application/xhtml+xml" && Qn === rn && (y = '' + y + "");
const pe = g ? g.createHTML(y) : y;
- if (Qn === nn)
+ if (Qn === rn)
try {
$ = new h().parseFromString(pe, Ci);
} catch {
@@ -16859,10 +16881,10 @@ function Kh() {
} catch {
}
}
- const He = $.body || $.documentElement;
- return y && B && He.insertBefore(t.createTextNode(B), He.childNodes[0] || null), Qn === nn ? S.call($, ee ? "html" : "body")[0] : ee ? $.documentElement : He;
- }, Qo = function(y) {
- return C.call(
+ const Ge = $.body || $.documentElement;
+ return y && O && Ge.insertBefore(t.createTextNode(O), Ge.childNodes[0] || null), Qn === rn ? A.call($, S ? "html" : "body")[0] : S ? $.documentElement : Ge;
+ }, Jo = function(y) {
+ return k.call(
y.ownerDocument || y,
y,
// eslint-disable-next-line no-bitwise
@@ -16871,63 +16893,63 @@ function Kh() {
);
}, Ba = function(y) {
return y instanceof f && (typeof y.nodeName != "string" || typeof y.textContent != "string" || typeof y.removeChild != "function" || !(y.attributes instanceof u) || typeof y.removeAttribute != "function" || typeof y.setAttribute != "function" || typeof y.namespaceURI != "string" || typeof y.insertBefore != "function" || typeof y.hasChildNodes != "function");
- }, Jo = function(y) {
+ }, el = function(y) {
return typeof o == "function" && y instanceof o;
};
- function rn(M, y, $) {
- Mr(M, (B) => {
- B.call(e, y, $, Jn);
+ function an(M, y, $) {
+ Mr(M, (O) => {
+ O.call(e, y, $, Jn);
});
}
- const el = function(y) {
+ const tl = function(y) {
let $ = null;
- if (rn(L.beforeSanitizeElements, y, null), Ba(y))
+ if (an(B.beforeSanitizeElements, y, null), Ba(y))
return Gt(y), !0;
- const B = xe(y.nodeName);
- if (rn(L.uponSanitizeElement, y, {
- tagName: B,
- allowedTags: A
- }), T && y.hasChildNodes() && !Jo(y.firstElementChild) && Ze(/<[/\w!]/g, y.innerHTML) && Ze(/<[/\w!]/g, y.textContent) || y.nodeType === Ri.progressingInstruction || T && y.nodeType === Ri.comment && Ze(/<[/\w]/g, y.data))
+ const O = Be(y.nodeName);
+ if (an(B.uponSanitizeElement, y, {
+ tagName: O,
+ allowedTags: F
+ }), Ee && y.hasChildNodes() && !el(y.firstElementChild) && Ye(/<[/\w!]/g, y.innerHTML) && Ye(/<[/\w!]/g, y.textContent) || y.nodeType === Ri.progressingInstruction || Ee && y.nodeType === Ri.comment && Ye(/<[/\w]/g, y.data))
return Gt(y), !0;
- if (!A[B] || Ce[B]) {
- if (!Ce[B] && nl(B) && (F.tagNameCheck instanceof RegExp && Ze(F.tagNameCheck, B) || F.tagNameCheck instanceof Function && F.tagNameCheck(B)))
+ if (!F[O] || ke[O]) {
+ if (!ke[O] && il(O) && (T.tagNameCheck instanceof RegExp && Ye(T.tagNameCheck, O) || T.tagNameCheck instanceof Function && T.tagNameCheck(O)))
return !1;
- if (k && !Kn[B]) {
- const pe = _(y) || y.parentNode, He = m(y) || y.childNodes;
- if (He && pe) {
- const Ie = He.length;
- for (let at = Ie - 1; at >= 0; --at) {
- const an = v(He[at], !0);
- an.__removalCount = (y.__removalCount || 0) + 1, pe.insertBefore(an, E(y));
+ if (C && !Kn[O]) {
+ const pe = _(y) || y.parentNode, Ge = m(y) || y.childNodes;
+ if (Ge && pe) {
+ const xe = Ge.length;
+ for (let st = xe - 1; st >= 0; --st) {
+ const sn = v(Ge[st], !0);
+ sn.__removalCount = (y.__removalCount || 0) + 1, pe.insertBefore(sn, E(y));
}
}
}
return Gt(y), !0;
}
- return y instanceof l && !ld(y) || (B === "noscript" || B === "noembed" || B === "noframes") && Ze(/<\/no(script|embed|frames)/i, y.innerHTML) ? (Gt(y), !0) : (ce && y.nodeType === Ri.text && ($ = y.textContent, Mr([O, he, G], (pe) => {
+ return y instanceof l && !ld(y) || (O === "noscript" || O === "noembed" || O === "noframes") && Ye(/<\/no(script|embed|frames)/i, y.innerHTML) ? (Gt(y), !0) : (ce && y.nodeType === Ri.text && ($ = y.textContent, Mr([L, de, z], (pe) => {
$ = Bi($, pe, " ");
}), y.textContent !== $ && (Pi(e.removed, {
element: y.cloneNode()
- }), y.textContent = $)), rn(L.afterSanitizeElements, y, null), !1);
- }, tl = function(y, $, B) {
- if (Ct && ($ === "id" || $ === "name") && (B in t || B in od))
+ }), y.textContent = $)), an(B.afterSanitizeElements, y, null), !1);
+ }, nl = function(y, $, O) {
+ if (Me && ($ === "id" || $ === "name") && (O in t || O in od))
return !1;
- if (!(q && !ke[$] && Ze(ne, $))) {
- if (!(I && Ze(J, $))) {
- if (!z[$] || ke[$]) {
+ if (!(q && !Se[$] && Ye(te, $))) {
+ if (!(I && Ye(Q, $))) {
+ if (!H[$] || Se[$]) {
if (
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
- !(nl(y) && (F.tagNameCheck instanceof RegExp && Ze(F.tagNameCheck, y) || F.tagNameCheck instanceof Function && F.tagNameCheck(y)) && (F.attributeNameCheck instanceof RegExp && Ze(F.attributeNameCheck, $) || F.attributeNameCheck instanceof Function && F.attributeNameCheck($)) || // Alternative, second condition checks if it's an `is`-attribute, AND
+ !(il(y) && (T.tagNameCheck instanceof RegExp && Ye(T.tagNameCheck, y) || T.tagNameCheck instanceof Function && T.tagNameCheck(y)) && (T.attributeNameCheck instanceof RegExp && Ye(T.attributeNameCheck, $) || T.attributeNameCheck instanceof Function && T.attributeNameCheck($)) || // Alternative, second condition checks if it's an `is`-attribute, AND
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
- $ === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && Ze(F.tagNameCheck, B) || F.tagNameCheck instanceof Function && F.tagNameCheck(B)))
+ $ === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && Ye(T.tagNameCheck, O) || T.tagNameCheck instanceof Function && T.tagNameCheck(O)))
) return !1;
} else if (!Ia[$]) {
- if (!Ze(De, Bi(B, V, ""))) {
- if (!(($ === "src" || $ === "xlink:href" || $ === "href") && y !== "script" && ev(B, "data:") === 0 && jo[y])) {
- if (!(j && !Ze(oe, Bi(B, V, "")))) {
- if (B)
+ if (!Ye(De, Bi(O, X, ""))) {
+ if (!(($ === "src" || $ === "xlink:href" || $ === "href") && y !== "script" && ev(O, "data:") === 0 && Vo[y])) {
+ if (!(j && !Ye(oe, Bi(O, X, "")))) {
+ if (O)
return !1;
}
}
@@ -16936,81 +16958,81 @@ function Kh() {
}
}
return !0;
- }, nl = function(y) {
- return y !== "annotation-xml" && Uc(y, le);
}, il = function(y) {
- rn(L.beforeSanitizeAttributes, y, null);
+ return y !== "annotation-xml" && Hc(y, ne);
+ }, rl = function(y) {
+ an(B.beforeSanitizeAttributes, y, null);
const {
attributes: $
} = y;
if (!$ || Ba(y))
return;
- const B = {
+ const O = {
attrName: "",
attrValue: "",
keepAttr: !0,
- allowedAttributes: z,
+ allowedAttributes: H,
forceKeepAttr: void 0
};
let pe = $.length;
for (; pe--; ) {
- const He = $[pe], {
- name: Ie,
- namespaceURI: at,
- value: an
- } = He, ki = xe(Ie), Oa = an;
- let Ge = Ie === "value" ? Oa : tv(Oa);
- if (B.attrName = ki, B.attrValue = Ge, B.keepAttr = !0, B.forceKeepAttr = void 0, rn(L.uponSanitizeAttribute, y, B), Ge = B.attrValue, Ht && (ki === "id" || ki === "name") && (ei(Ie, y), Ge = dt + Ge), T && Ze(/((--!?|])>)|<\/(style|title)/i, Ge)) {
- ei(Ie, y);
+ const Ge = $[pe], {
+ name: xe,
+ namespaceURI: st,
+ value: sn
+ } = Ge, ki = Be(xe), Oa = sn;
+ let ze = xe === "value" ? Oa : tv(Oa);
+ if (O.attrName = ki, O.attrValue = ze, O.keepAttr = !0, O.forceKeepAttr = void 0, an(B.uponSanitizeAttribute, y, O), ze = O.attrValue, Ct && (ki === "id" || ki === "name") && (ei(xe, y), ze = nn + ze), Ee && Ye(/((--!?|])>)|<\/(style|title)/i, ze)) {
+ ei(xe, y);
continue;
}
- if (B.forceKeepAttr)
+ if (O.forceKeepAttr)
continue;
- if (!B.keepAttr) {
- ei(Ie, y);
+ if (!O.keepAttr) {
+ ei(xe, y);
continue;
}
- if (!W && Ze(/\/>/i, Ge)) {
- ei(Ie, y);
+ if (!V && Ye(/\/>/i, ze)) {
+ ei(xe, y);
continue;
}
- ce && Mr([O, he, G], (al) => {
- Ge = Bi(Ge, al, " ");
+ ce && Mr([L, de, z], (sl) => {
+ ze = Bi(ze, sl, " ");
});
- const rl = xe(y.nodeName);
- if (!tl(rl, ki, Ge)) {
- ei(Ie, y);
+ const al = Be(y.nodeName);
+ if (!nl(al, ki, ze)) {
+ ei(xe, y);
continue;
}
- if (g && typeof d == "object" && typeof d.getAttributeType == "function" && !at)
- switch (d.getAttributeType(rl, ki)) {
+ if (g && typeof d == "object" && typeof d.getAttributeType == "function" && !st)
+ switch (d.getAttributeType(al, ki)) {
case "TrustedHTML": {
- Ge = g.createHTML(Ge);
+ ze = g.createHTML(ze);
break;
}
case "TrustedScriptURL": {
- Ge = g.createScriptURL(Ge);
+ ze = g.createScriptURL(ze);
break;
}
}
- if (Ge !== Oa)
+ if (ze !== Oa)
try {
- at ? y.setAttributeNS(at, Ie, Ge) : y.setAttribute(Ie, Ge), Ba(y) ? Gt(y) : Nc(e.removed);
+ st ? y.setAttributeNS(st, xe, ze) : y.setAttribute(xe, ze), Ba(y) ? Gt(y) : Uc(e.removed);
} catch {
- ei(Ie, y);
+ ei(xe, y);
}
}
- rn(L.afterSanitizeAttributes, y, null);
+ an(B.afterSanitizeAttributes, y, null);
}, ud = function M(y) {
let $ = null;
- const B = Qo(y);
- for (rn(L.beforeSanitizeShadowDOM, y, null); $ = B.nextNode(); )
- rn(L.uponSanitizeShadowNode, $, null), el($), il($), $.content instanceof a && M($.content);
- rn(L.afterSanitizeShadowDOM, y, null);
+ const O = Jo(y);
+ for (an(B.beforeSanitizeShadowDOM, y, null); $ = O.nextNode(); )
+ an(B.uponSanitizeShadowNode, $, null), tl($), rl($), $.content instanceof a && M($.content);
+ an(B.afterSanitizeShadowDOM, y, null);
};
return e.sanitize = function(M) {
- let y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, $ = null, B = null, pe = null, He = null;
- if ($a = !M, $a && (M = ""), typeof M != "string" && !Jo(M))
+ let y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, $ = null, O = null, pe = null, Ge = null;
+ if ($a = !M, $a && (M = ""), typeof M != "string" && !el(M))
if (typeof M.toString == "function") {
if (M = M.toString(), typeof M != "string")
throw Oi("dirty is not a string, aborting");
@@ -17018,61 +17040,61 @@ function Kh() {
throw Oi("toString is not a function");
if (!e.isSupported)
return M;
- if (Ne || Pa(y), e.removed = [], typeof M == "string" && (Te = !1), Te) {
+ if (le || Pa(y), e.removed = [], typeof M == "string" && (be = !1), be) {
if (M.nodeName) {
- const an = xe(M.nodeName);
- if (!A[an] || Ce[an])
+ const sn = Be(M.nodeName);
+ if (!F[sn] || ke[sn])
throw Oi("root node is forbidden and cannot be sanitized in-place");
}
} else if (M instanceof o)
- $ = Ko(""), B = $.ownerDocument.importNode(M, !0), B.nodeType === Ri.element && B.nodeName === "BODY" || B.nodeName === "HTML" ? $ = B : $.appendChild(B);
+ $ = Qo(""), O = $.ownerDocument.importNode(M, !0), O.nodeType === Ri.element && O.nodeName === "BODY" || O.nodeName === "HTML" ? $ = O : $.appendChild(O);
else {
- if (!$e && !ce && !ee && // eslint-disable-next-line unicorn/prefer-includes
+ if (!fe && !ce && !S && // eslint-disable-next-line unicorn/prefer-includes
M.indexOf("<") === -1)
- return g && be ? g.createHTML(M) : M;
- if ($ = Ko(M), !$)
- return $e ? null : be ? b : "";
+ return g && Fe ? g.createHTML(M) : M;
+ if ($ = Qo(M), !$)
+ return fe ? null : Fe ? b : "";
}
- $ && Ue && Gt($.firstChild);
- const Ie = Qo(Te ? M : $);
- for (; pe = Ie.nextNode(); )
- el(pe), il(pe), pe.content instanceof a && ud(pe.content);
- if (Te)
+ $ && Pe && Gt($.firstChild);
+ const xe = Jo(be ? M : $);
+ for (; pe = xe.nextNode(); )
+ tl(pe), rl(pe), pe.content instanceof a && ud(pe.content);
+ if (be)
return M;
- if ($e) {
- if (_e)
- for (He = P.call($.ownerDocument); $.firstChild; )
- He.appendChild($.firstChild);
+ if (fe) {
+ if (Ae)
+ for (Ge = P.call($.ownerDocument); $.firstChild; )
+ Ge.appendChild($.firstChild);
else
- He = $;
- return (z.shadowroot || z.shadowrootmode) && (He = R.call(i, He, !0)), He;
+ Ge = $;
+ return (H.shadowroot || H.shadowrootmode) && (Ge = R.call(i, Ge, !0)), Ge;
}
- let at = ee ? $.outerHTML : $.innerHTML;
- return ee && A["!doctype"] && $.ownerDocument && $.ownerDocument.doctype && $.ownerDocument.doctype.name && Ze(Yh, $.ownerDocument.doctype.name) && (at = "
-` + at), ce && Mr([O, he, G], (an) => {
- at = Bi(at, an, " ");
- }), g && be ? g.createHTML(at) : at;
+ let st = S ? $.outerHTML : $.innerHTML;
+ return S && F["!doctype"] && $.ownerDocument && $.ownerDocument.doctype && $.ownerDocument.doctype.name && Ye(Yh, $.ownerDocument.doctype.name) && (st = "
+` + st), ce && Mr([L, de, z], (sn) => {
+ st = Bi(st, sn, " ");
+ }), g && Fe ? g.createHTML(st) : st;
}, e.setConfig = function() {
let M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
- Pa(M), Ne = !0;
+ Pa(M), le = !0;
}, e.clearConfig = function() {
- Jn = null, Ne = !1;
+ Jn = null, le = !1;
}, e.isValidAttribute = function(M, y, $) {
Jn || Pa({});
- const B = xe(M), pe = xe(y);
- return tl(B, pe, $);
+ const O = Be(M), pe = Be(y);
+ return nl(O, pe, $);
}, e.addHook = function(M, y) {
- typeof y == "function" && Pi(L[M], y);
+ typeof y == "function" && Pi(B[M], y);
}, e.removeHook = function(M, y) {
if (y !== void 0) {
- const $ = Q2(L[M], y);
- return $ === -1 ? void 0 : J2(L[M], $, 1)[0];
+ const $ = Q2(B[M], y);
+ return $ === -1 ? void 0 : J2(B[M], $, 1)[0];
}
- return Nc(L[M]);
+ return Uc(B[M]);
}, e.removeHooks = function(M) {
- L[M] = [];
+ B[M] = [];
}, e.removeAllHooks = function() {
- L = Vc();
+ B = Wc();
}, e;
}
Kh();
@@ -17162,20 +17184,20 @@ const {
claim_element: wv,
create_component: Dv,
destroy_component: Ev,
- detach: Wc,
+ detach: Xc,
element: Cv,
group_outros: kv,
init: Sv,
insert_hydration: Av,
mount_component: Fv,
safe_not_equal: Tv,
- toggle_class: pn,
+ toggle_class: mn,
transition_in: Wr,
- transition_out: bo
+ transition_out: vo
} = window.__gradio__svelte__internal;
-function Xc(n) {
+function Zc(n) {
let e, t;
- return e = new $o({
+ return e = new xo({
props: { src: (
/*value*/
n[0].url
@@ -17200,7 +17222,7 @@ function Xc(n) {
t || (Wr(e.$$.fragment, i), t = !0);
},
o(i) {
- bo(e.$$.fragment, i), t = !1;
+ vo(e.$$.fragment, i), t = !1;
},
d(i) {
Ev(e, i);
@@ -17210,7 +17232,7 @@ function Xc(n) {
function Iv(n) {
let e, t, i = (
/*value*/
- n[0] && Xc(n)
+ n[0] && Zc(n)
);
return {
c() {
@@ -17219,25 +17241,25 @@ function Iv(n) {
l(r) {
e = wv(r, "DIV", { class: !0 });
var a = vv(e);
- i && i.l(a), a.forEach(Wc), this.h();
+ i && i.l(a), a.forEach(Xc), this.h();
},
h() {
- gv(e, "class", "container svelte-1sgcyba"), pn(
+ gv(e, "class", "container svelte-1sgcyba"), mn(
e,
"table",
/*type*/
n[1] === "table"
- ), pn(
+ ), mn(
e,
"gallery",
/*type*/
n[1] === "gallery"
- ), pn(
+ ), mn(
e,
"selected",
/*selected*/
n[2]
- ), pn(
+ ), mn(
e,
"border",
/*value*/
@@ -17250,28 +17272,28 @@ function Iv(n) {
p(r, [a]) {
/*value*/
r[0] ? i ? (i.p(r, a), a & /*value*/
- 1 && Wr(i, 1)) : (i = Xc(r), i.c(), Wr(i, 1), i.m(e, null)) : i && (kv(), bo(i, 1, 1, () => {
+ 1 && Wr(i, 1)) : (i = Zc(r), i.c(), Wr(i, 1), i.m(e, null)) : i && (kv(), vo(i, 1, 1, () => {
i = null;
}), bv()), (!t || a & /*type*/
- 2) && pn(
+ 2) && mn(
e,
"table",
/*type*/
r[1] === "table"
), (!t || a & /*type*/
- 2) && pn(
+ 2) && mn(
e,
"gallery",
/*type*/
r[1] === "gallery"
), (!t || a & /*selected*/
- 4) && pn(
+ 4) && mn(
e,
"selected",
/*selected*/
r[2]
), (!t || a & /*value*/
- 1) && pn(
+ 1) && mn(
e,
"border",
/*value*/
@@ -17282,10 +17304,10 @@ function Iv(n) {
t || (Wr(i), t = !0);
},
o(r) {
- bo(i), t = !1;
+ vo(i), t = !1;
},
d(r) {
- r && Wc(e), i && i.d();
+ r && Xc(e), i && i.d();
}
};
}
@@ -17305,25 +17327,25 @@ const {
add_flush_callback: ui,
assign: Qh,
bind: ci,
- binding_callbacks: $n,
+ binding_callbacks: xn,
check_outros: Pv,
- claim_component: Gn,
+ claim_component: zn,
claim_space: Jh,
- create_component: zn,
- destroy_component: qn,
- detach: Go,
- empty: Zc,
- flush: fe,
+ create_component: qn,
+ destroy_component: jn,
+ detach: zo,
+ empty: Yc,
+ flush: he,
get_spread_object: ed,
get_spread_update: td,
group_outros: Bv,
init: Ov,
- insert_hydration: zo,
- mount_component: jn,
+ insert_hydration: qo,
+ mount_component: Vn,
safe_not_equal: Lv,
space: nd,
- transition_in: fn,
- transition_out: hn
+ transition_in: hn,
+ transition_out: dn
} = window.__gradio__svelte__internal, { afterUpdate: Rv } = window.__gradio__svelte__internal;
function Mv(n) {
let e, t, i;
@@ -17379,7 +17401,7 @@ function Mv(n) {
return (
/*fullscreen*/
n[26] !== void 0 && (a.fullscreen = /*fullscreen*/
- n[26]), e = new nf({ props: a }), $n.push(() => ci(e, "fullscreen", r)), e.$on(
+ n[26]), e = new rf({ props: a }), xn.push(() => ci(e, "fullscreen", r)), e.$on(
"dragenter",
/*handle_drag_event*/
n[30]
@@ -17397,13 +17419,13 @@ function Mv(n) {
n[31]
), {
c() {
- zn(e.$$.fragment);
+ qn(e.$$.fragment);
},
l(s) {
- Gn(e.$$.fragment, s);
+ zn(e.$$.fragment, s);
},
m(s, o) {
- jn(e, s, o), i = !0;
+ Vn(e, s, o), i = !0;
},
p(s, o) {
const l = {};
@@ -17434,13 +17456,13 @@ function Mv(n) {
s[26], ui(() => t = !1)), e.$set(l);
},
i(s) {
- i || (fn(e.$$.fragment, s), i = !0);
+ i || (hn(e.$$.fragment, s), i = !0);
},
o(s) {
- hn(e.$$.fragment, s), i = !1;
+ dn(e.$$.fragment, s), i = !1;
},
d(s) {
- qn(e, s);
+ jn(e, s);
}
}
);
@@ -17496,15 +17518,15 @@ function Nv(n) {
return (
/*fullscreen*/
n[26] !== void 0 && (a.fullscreen = /*fullscreen*/
- n[26]), e = new nf({ props: a }), $n.push(() => ci(e, "fullscreen", r)), {
+ n[26]), e = new rf({ props: a }), xn.push(() => ci(e, "fullscreen", r)), {
c() {
- zn(e.$$.fragment);
+ qn(e.$$.fragment);
},
l(s) {
- Gn(e.$$.fragment, s);
+ zn(e.$$.fragment, s);
},
m(s, o) {
- jn(e, s, o), i = !0;
+ Vn(e, s, o), i = !0;
},
p(s, o) {
const l = {};
@@ -17533,13 +17555,13 @@ function Nv(n) {
s[26], ui(() => t = !1)), e.$set(l);
},
i(s) {
- i || (fn(e.$$.fragment, s), i = !0);
+ i || (hn(e.$$.fragment, s), i = !0);
},
o(s) {
- hn(e.$$.fragment, s), i = !1;
+ dn(e.$$.fragment, s), i = !1;
},
d(s) {
- qn(e, s);
+ jn(e, s);
}
}
);
@@ -17560,13 +17582,13 @@ function Uv(n) {
}
}), {
c() {
- zn(e.$$.fragment);
+ qn(e.$$.fragment);
},
l(i) {
- Gn(e.$$.fragment, i);
+ zn(e.$$.fragment, i);
},
m(i, r) {
- jn(e, i, r), t = !0;
+ Vn(e, i, r), t = !0;
},
p(i, r) {
const a = {};
@@ -17577,13 +17599,13 @@ function Uv(n) {
i[22]), e.$set(a);
},
i(i) {
- t || (fn(e.$$.fragment, i), t = !0);
+ t || (hn(e.$$.fragment, i), t = !0);
},
o(i) {
- hn(e.$$.fragment, i), t = !1;
+ dn(e.$$.fragment, i), t = !1;
},
d(i) {
- qn(e, i);
+ jn(e, i);
}
};
}
@@ -17697,7 +17719,7 @@ function Hv(n) {
n[0] !== void 0 && (v.value = /*value*/
n[0]), /*dragging*/
n[27] !== void 0 && (v.dragging = /*dragging*/
- n[27]), i = new p2({ props: v }), n[42](i), $n.push(() => ci(i, "uploading", f)), $n.push(() => ci(i, "active_source", h)), $n.push(() => ci(i, "value", d)), $n.push(() => ci(i, "dragging", p)), i.$on(
+ n[27]), i = new p2({ props: v }), n[42](i), xn.push(() => ci(i, "uploading", f)), xn.push(() => ci(i, "active_source", h)), xn.push(() => ci(i, "value", d)), xn.push(() => ci(i, "dragging", p)), i.$on(
"edit",
/*edit_handler*/
n[47]
@@ -17735,13 +17757,13 @@ function Hv(n) {
n[54]
), {
c() {
- zn(e.$$.fragment), t = nd(), zn(i.$$.fragment);
+ qn(e.$$.fragment), t = nd(), qn(i.$$.fragment);
},
l(E) {
- Gn(e.$$.fragment, E), t = Jh(E), Gn(i.$$.fragment, E);
+ zn(e.$$.fragment, E), t = Jh(E), zn(i.$$.fragment, E);
},
m(E, m) {
- jn(e, E, m), zo(E, t, m), jn(i, E, m), l = !0;
+ Vn(e, E, m), qo(E, t, m), Vn(i, E, m), l = !0;
},
p(E, m) {
var b;
@@ -17810,13 +17832,13 @@ function Hv(n) {
E[27], ui(() => o = !1)), i.$set(g);
},
i(E) {
- l || (fn(e.$$.fragment, E), fn(i.$$.fragment, E), l = !0);
+ l || (hn(e.$$.fragment, E), hn(i.$$.fragment, E), l = !0);
},
o(E) {
- hn(e.$$.fragment, E), hn(i.$$.fragment, E), l = !1;
+ dn(e.$$.fragment, E), dn(i.$$.fragment, E), l = !1;
},
d(E) {
- E && Go(t), qn(e, E), n[42](null), qn(i, E);
+ E && zo(t), jn(e, E), n[42](null), jn(i, E);
}
}
);
@@ -17913,13 +17935,13 @@ function Gv(n) {
n[38]
), {
c() {
- zn(e.$$.fragment), t = nd(), zn(i.$$.fragment);
+ qn(e.$$.fragment), t = nd(), qn(i.$$.fragment);
},
l(o) {
- Gn(e.$$.fragment, o), t = Jh(o), Gn(i.$$.fragment, o);
+ zn(e.$$.fragment, o), t = Jh(o), zn(i.$$.fragment, o);
},
m(o, l) {
- jn(e, o, l), zo(o, t, l), jn(i, o, l), r = !0;
+ Vn(e, o, l), qo(o, t, l), Vn(i, o, l), r = !0;
},
p(o, l) {
const c = l[0] & /*gradio, loading_status*/
@@ -17971,13 +17993,13 @@ function Gv(n) {
o[11]), i.$set(u);
},
i(o) {
- r || (fn(e.$$.fragment, o), fn(i.$$.fragment, o), r = !0);
+ r || (hn(e.$$.fragment, o), hn(i.$$.fragment, o), r = !0);
},
o(o) {
- hn(e.$$.fragment, o), hn(i.$$.fragment, o), r = !1;
+ dn(e.$$.fragment, o), dn(i.$$.fragment, o), r = !1;
},
d(o) {
- o && Go(t), qn(e, o), qn(i, o);
+ o && zo(t), jn(e, o), jn(i, o);
}
};
}
@@ -17992,89 +18014,89 @@ function zv(n) {
}
return e = o(n), t = s[e] = a[e](n), {
c() {
- t.c(), i = Zc();
+ t.c(), i = Yc();
},
l(l) {
- t.l(l), i = Zc();
+ t.l(l), i = Yc();
},
m(l, c) {
- s[e].m(l, c), zo(l, i, c), r = !0;
+ s[e].m(l, c), qo(l, i, c), r = !0;
},
p(l, c) {
let u = e;
- e = o(l), e === u ? s[e].p(l, c) : (Bv(), hn(s[u], 1, 1, () => {
+ e = o(l), e === u ? s[e].p(l, c) : (Bv(), dn(s[u], 1, 1, () => {
s[u] = null;
- }), Pv(), t = s[e], t ? t.p(l, c) : (t = s[e] = a[e](l), t.c()), fn(t, 1), t.m(i.parentNode, i));
+ }), Pv(), t = s[e], t ? t.p(l, c) : (t = s[e] = a[e](l), t.c()), hn(t, 1), t.m(i.parentNode, i));
},
i(l) {
- r || (fn(t), r = !0);
+ r || (hn(t), r = !0);
},
o(l) {
- hn(t), r = !1;
+ dn(t), r = !1;
},
d(l) {
- l && Go(i), s[e].d(l);
+ l && zo(i), s[e].d(l);
}
};
}
function qv(n, e, t) {
- let { value_is_output: i = !1 } = e, { elem_id: r = "" } = e, { elem_classes: a = [] } = e, { visible: s = !0 } = e, { value: o = null } = e, { label: l } = e, { show_label: c } = e, { show_download_button: u } = e, { root: f } = e, { only_custom_metadata: h = !0 } = e, { popup_metadata_width: d = 400 } = e, { popup_metadata_height: p = 300 } = e, { height: v } = e, { width: w } = e, { _selectable: E = !1 } = e, { container: m = !0 } = e, { scale: _ = null } = e, { min_width: g = void 0 } = e, { loading_status: b } = e, { show_share_button: D = !1 } = e, { sources: C = ["upload"] } = e, { interactive: P } = e, { pending: S } = e, { placeholder: R = void 0 } = e, { show_fullscreen_button: L } = e, { gradio: O } = e, he = null, G = !1, ne = !1, J, oe = "upload", V;
+ let { value_is_output: i = !1 } = e, { elem_id: r = "" } = e, { elem_classes: a = [] } = e, { visible: s = !0 } = e, { value: o = null } = e, { label: l } = e, { show_label: c } = e, { show_download_button: u } = e, { root: f } = e, { only_custom_metadata: h = !0 } = e, { popup_metadata_width: d = 400 } = e, { popup_metadata_height: p = 300 } = e, { height: v } = e, { width: w } = e, { _selectable: E = !1 } = e, { container: m = !0 } = e, { scale: _ = null } = e, { min_width: g = void 0 } = e, { loading_status: b } = e, { show_share_button: D = !1 } = e, { sources: k = ["upload"] } = e, { interactive: P } = e, { pending: A } = e, { placeholder: R = void 0 } = e, { show_fullscreen_button: B } = e, { gradio: L } = e, de = null, z = !1, te = !1, Q, oe = "upload", X;
Rv(() => {
t(33, i = !1);
});
- const le = (k) => {
- const Te = k;
- Te.preventDefault(), Te.stopPropagation(), Te.type === "dragenter" || Te.type === "dragover" ? t(27, J = !0) : Te.type === "dragleave" && t(27, J = !1);
- }, De = (k) => {
+ const ne = (C) => {
+ const be = C;
+ be.preventDefault(), be.stopPropagation(), be.type === "dragenter" || be.type === "dragover" ? t(27, Q = !0) : be.type === "dragleave" && t(27, Q = !1);
+ }, De = (C) => {
if (P) {
- const Te = k;
- Te.preventDefault(), Te.stopPropagation(), t(27, J = !1), V && V.loadFilesFromDrop(Te);
+ const be = C;
+ be.preventDefault(), be.stopPropagation(), t(27, Q = !1), X && X.loadFilesFromDrop(be);
}
};
- function A() {
- O.dispatch("load_metadata");
+ function F() {
+ L.dispatch("load_metadata");
}
- const x = ({ detail: k }) => O.dispatch("select", k), z = ({ detail: k }) => O.dispatch("share", k), Q = ({ detail: k }) => O.dispatch("error", k), F = ({ detail: k }) => {
- t(26, G = k);
+ const x = ({ detail: C }) => L.dispatch("select", C), H = ({ detail: C }) => L.dispatch("share", C), J = ({ detail: C }) => L.dispatch("error", C), T = ({ detail: C }) => {
+ t(26, z = C);
};
- function Ce(k) {
- G = k, t(26, G);
+ function ke(C) {
+ z = C, t(26, z);
}
- const ke = () => O.dispatch("clear_status", b), I = (...k) => O.client.upload(...k);
- function q(k) {
- $n[k ? "unshift" : "push"](() => {
- V = k, t(29, V);
+ const Se = () => L.dispatch("clear_status", b), I = (...C) => L.client.upload(...C);
+ function q(C) {
+ xn[C ? "unshift" : "push"](() => {
+ X = C, t(29, X);
});
}
- function j(k) {
- ne = k, t(25, ne);
+ function j(C) {
+ te = C, t(25, te);
}
- function W(k) {
- oe = k, t(28, oe);
+ function V(C) {
+ oe = C, t(28, oe);
}
- function ce(k) {
- o = k, t(0, o);
+ function ce(C) {
+ o = C, t(0, o);
}
- function T(k) {
- J = k, t(27, J);
+ function Ee(C) {
+ Q = C, t(27, Q);
}
- const ee = () => O.dispatch("edit"), Ne = () => {
- O.dispatch("clear");
- }, Ue = ({ detail: k }) => t(27, J = k), $e = () => O.dispatch("upload"), _e = ({ detail: k }) => O.dispatch("select", k), be = ({ detail: k }) => O.dispatch("share", k), Ct = ({ detail: k }) => {
- t(1, b = b || {}), t(1, b.status = "error", b), O.dispatch("error", k);
- }, Ht = ({ detail: k }) => {
- t(26, G = k);
+ const S = () => L.dispatch("edit"), le = () => {
+ L.dispatch("clear");
+ }, Pe = ({ detail: C }) => t(27, Q = C), fe = () => L.dispatch("upload"), Ae = ({ detail: C }) => L.dispatch("select", C), Fe = ({ detail: C }) => L.dispatch("share", C), Me = ({ detail: C }) => {
+ t(1, b = b || {}), t(1, b.status = "error", b), L.dispatch("error", C);
+ }, Ct = ({ detail: C }) => {
+ t(26, z = C);
};
- function dt(k) {
- G = k, t(26, G);
+ function nn(C) {
+ z = C, t(26, z);
}
- return n.$$set = (k) => {
- "value_is_output" in k && t(33, i = k.value_is_output), "elem_id" in k && t(2, r = k.elem_id), "elem_classes" in k && t(3, a = k.elem_classes), "visible" in k && t(4, s = k.visible), "value" in k && t(0, o = k.value), "label" in k && t(5, l = k.label), "show_label" in k && t(6, c = k.show_label), "show_download_button" in k && t(7, u = k.show_download_button), "root" in k && t(8, f = k.root), "only_custom_metadata" in k && t(9, h = k.only_custom_metadata), "popup_metadata_width" in k && t(10, d = k.popup_metadata_width), "popup_metadata_height" in k && t(11, p = k.popup_metadata_height), "height" in k && t(12, v = k.height), "width" in k && t(13, w = k.width), "_selectable" in k && t(14, E = k._selectable), "container" in k && t(15, m = k.container), "scale" in k && t(16, _ = k.scale), "min_width" in k && t(17, g = k.min_width), "loading_status" in k && t(1, b = k.loading_status), "show_share_button" in k && t(18, D = k.show_share_button), "sources" in k && t(19, C = k.sources), "interactive" in k && t(20, P = k.interactive), "pending" in k && t(21, S = k.pending), "placeholder" in k && t(22, R = k.placeholder), "show_fullscreen_button" in k && t(23, L = k.show_fullscreen_button), "gradio" in k && t(24, O = k.gradio);
+ return n.$$set = (C) => {
+ "value_is_output" in C && t(33, i = C.value_is_output), "elem_id" in C && t(2, r = C.elem_id), "elem_classes" in C && t(3, a = C.elem_classes), "visible" in C && t(4, s = C.visible), "value" in C && t(0, o = C.value), "label" in C && t(5, l = C.label), "show_label" in C && t(6, c = C.show_label), "show_download_button" in C && t(7, u = C.show_download_button), "root" in C && t(8, f = C.root), "only_custom_metadata" in C && t(9, h = C.only_custom_metadata), "popup_metadata_width" in C && t(10, d = C.popup_metadata_width), "popup_metadata_height" in C && t(11, p = C.popup_metadata_height), "height" in C && t(12, v = C.height), "width" in C && t(13, w = C.width), "_selectable" in C && t(14, E = C._selectable), "container" in C && t(15, m = C.container), "scale" in C && t(16, _ = C.scale), "min_width" in C && t(17, g = C.min_width), "loading_status" in C && t(1, b = C.loading_status), "show_share_button" in C && t(18, D = C.show_share_button), "sources" in C && t(19, k = C.sources), "interactive" in C && t(20, P = C.interactive), "pending" in C && t(21, A = C.pending), "placeholder" in C && t(22, R = C.placeholder), "show_fullscreen_button" in C && t(23, B = C.show_fullscreen_button), "gradio" in C && t(24, L = C.gradio);
}, n.$$.update = () => {
n.$$.dirty[0] & /*uploading*/
33554432, n.$$.dirty[0] & /*value, gradio*/
16777217 | n.$$.dirty[1] & /*old_value, value_is_output*/
- 12 && JSON.stringify(o) !== JSON.stringify(he) && (t(34, he = o), O.dispatch("change"), i || O.dispatch("input"));
+ 12 && JSON.stringify(o) !== JSON.stringify(de) && (t(34, de = o), L.dispatch("change"), i || L.dispatch("input"));
}, [
o,
b,
@@ -18095,43 +18117,43 @@ function qv(n, e, t) {
_,
g,
D,
- C,
+ k,
P,
- S,
+ A,
R,
+ B,
L,
- O,
- ne,
- G,
- J,
+ te,
+ z,
+ Q,
oe,
- V,
- le,
+ X,
+ ne,
De,
- A,
+ F,
i,
- he,
+ de,
x,
- z,
- Q,
- F,
- Ce,
+ H,
+ J,
+ T,
ke,
+ Se,
I,
q,
j,
- W,
+ V,
ce,
- T,
- ee,
- Ne,
- Ue,
- $e,
- _e,
- be,
+ Ee,
+ S,
+ le,
+ Pe,
+ fe,
+ Ae,
+ Fe,
+ Me,
Ct,
- Ht,
- dt
+ nn
];
}
class hI extends xv {
@@ -18178,162 +18200,162 @@ class hI extends xv {
return this.$$.ctx[33];
}
set value_is_output(e) {
- this.$$set({ value_is_output: e }), fe();
+ this.$$set({ value_is_output: e }), he();
}
get elem_id() {
return this.$$.ctx[2];
}
set elem_id(e) {
- this.$$set({ elem_id: e }), fe();
+ this.$$set({ elem_id: e }), he();
}
get elem_classes() {
return this.$$.ctx[3];
}
set elem_classes(e) {
- this.$$set({ elem_classes: e }), fe();
+ this.$$set({ elem_classes: e }), he();
}
get visible() {
return this.$$.ctx[4];
}
set visible(e) {
- this.$$set({ visible: e }), fe();
+ this.$$set({ visible: e }), he();
}
get value() {
return this.$$.ctx[0];
}
set value(e) {
- this.$$set({ value: e }), fe();
+ this.$$set({ value: e }), he();
}
get label() {
return this.$$.ctx[5];
}
set label(e) {
- this.$$set({ label: e }), fe();
+ this.$$set({ label: e }), he();
}
get show_label() {
return this.$$.ctx[6];
}
set show_label(e) {
- this.$$set({ show_label: e }), fe();
+ this.$$set({ show_label: e }), he();
}
get show_download_button() {
return this.$$.ctx[7];
}
set show_download_button(e) {
- this.$$set({ show_download_button: e }), fe();
+ this.$$set({ show_download_button: e }), he();
}
get root() {
return this.$$.ctx[8];
}
set root(e) {
- this.$$set({ root: e }), fe();
+ this.$$set({ root: e }), he();
}
get only_custom_metadata() {
return this.$$.ctx[9];
}
set only_custom_metadata(e) {
- this.$$set({ only_custom_metadata: e }), fe();
+ this.$$set({ only_custom_metadata: e }), he();
}
get popup_metadata_width() {
return this.$$.ctx[10];
}
set popup_metadata_width(e) {
- this.$$set({ popup_metadata_width: e }), fe();
+ this.$$set({ popup_metadata_width: e }), he();
}
get popup_metadata_height() {
return this.$$.ctx[11];
}
set popup_metadata_height(e) {
- this.$$set({ popup_metadata_height: e }), fe();
+ this.$$set({ popup_metadata_height: e }), he();
}
get height() {
return this.$$.ctx[12];
}
set height(e) {
- this.$$set({ height: e }), fe();
+ this.$$set({ height: e }), he();
}
get width() {
return this.$$.ctx[13];
}
set width(e) {
- this.$$set({ width: e }), fe();
+ this.$$set({ width: e }), he();
}
get _selectable() {
return this.$$.ctx[14];
}
set _selectable(e) {
- this.$$set({ _selectable: e }), fe();
+ this.$$set({ _selectable: e }), he();
}
get container() {
return this.$$.ctx[15];
}
set container(e) {
- this.$$set({ container: e }), fe();
+ this.$$set({ container: e }), he();
}
get scale() {
return this.$$.ctx[16];
}
set scale(e) {
- this.$$set({ scale: e }), fe();
+ this.$$set({ scale: e }), he();
}
get min_width() {
return this.$$.ctx[17];
}
set min_width(e) {
- this.$$set({ min_width: e }), fe();
+ this.$$set({ min_width: e }), he();
}
get loading_status() {
return this.$$.ctx[1];
}
set loading_status(e) {
- this.$$set({ loading_status: e }), fe();
+ this.$$set({ loading_status: e }), he();
}
get show_share_button() {
return this.$$.ctx[18];
}
set show_share_button(e) {
- this.$$set({ show_share_button: e }), fe();
+ this.$$set({ show_share_button: e }), he();
}
get sources() {
return this.$$.ctx[19];
}
set sources(e) {
- this.$$set({ sources: e }), fe();
+ this.$$set({ sources: e }), he();
}
get interactive() {
return this.$$.ctx[20];
}
set interactive(e) {
- this.$$set({ interactive: e }), fe();
+ this.$$set({ interactive: e }), he();
}
get pending() {
return this.$$.ctx[21];
}
set pending(e) {
- this.$$set({ pending: e }), fe();
+ this.$$set({ pending: e }), he();
}
get placeholder() {
return this.$$.ctx[22];
}
set placeholder(e) {
- this.$$set({ placeholder: e }), fe();
+ this.$$set({ placeholder: e }), he();
}
get show_fullscreen_button() {
return this.$$.ctx[23];
}
set show_fullscreen_button(e) {
- this.$$set({ show_fullscreen_button: e }), fe();
+ this.$$set({ show_fullscreen_button: e }), he();
}
get gradio() {
return this.$$.ctx[24];
}
set gradio(e) {
- this.$$set({ gradio: e }), fe();
+ this.$$set({ gradio: e }), he();
}
}
export {
fI as BaseExample,
- $o as BaseImage,
+ xo as BaseImage,
p2 as BaseImageUploader,
x0 as BaseStaticImage,
hI as default