storybook
Version:
Storybook framework-agnostic API
1,673 lines (1,647 loc) • 1.01 MB
JavaScript
"use strict";
var ak = Object.create;
var ro = Object.defineProperty;
var sk = Object.getOwnPropertyDescriptor;
var lk = Object.getOwnPropertyNames;
var uk = Object.getPrototypeOf, ck = Object.prototype.hasOwnProperty;
var o = (e, t) => ro(e, "name", { value: t, configurable: !0 });
var Re = (e, t) => () => (e && (t = e(e = 0)), t);
var f = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), no = (e, t) => {
for (var r in t)
ro(e, r, { get: t[r], enumerable: !0 });
}, qE = (e, t, r, n) => {
if (t && typeof t == "object" || typeof t == "function")
for (let i of lk(t))
!ck.call(e, i) && i !== r && ro(e, i, { get: () => t[i], enumerable: !(n = sk(t, i)) || n.enumerable });
return e;
};
var Bi = (e, t, r) => (r = e != null ? ak(uk(e)) : {}, qE(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
t || !e || !e.__esModule ? ro(r, "default", { value: e, enumerable: !0 }) : r,
e
)), Wt = (e) => qE(ro({}, "__esModule", { value: !0 }), e);
// ../node_modules/min-indent/index.js
var qw = f((Phe, Cw) => {
"use strict";
Cw.exports = (e) => {
let t = e.match(/^[ \t]*(?=\S)/gm);
return t ? t.reduce((r, n) => Math.min(r, n.length), 1 / 0) : 0;
};
});
// ../node_modules/strip-indent/index.js
var xw = f((xhe, Pw) => {
"use strict";
var jk = qw();
Pw.exports = (e) => {
let t = jk(e);
if (t === 0)
return e;
let r = new RegExp(`^[ \\t]{${t}}`, "gm");
return e.replace(r, "");
};
});
// ../node_modules/indent-string/index.js
var Tw = f((Rhe, Rw) => {
"use strict";
Rw.exports = (e, t = 1, r) => {
if (r = {
indent: " ",
includeEmptyLines: !1,
...r
}, typeof e != "string")
throw new TypeError(
`Expected \`input\` to be a \`string\`, got \`${typeof e}\``
);
if (typeof t != "number")
throw new TypeError(
`Expected \`count\` to be a \`number\`, got \`${typeof t}\``
);
if (typeof r.indent != "string")
throw new TypeError(
`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``
);
if (t === 0)
return e;
let n = r.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
return e.replace(n, r.indent.repeat(t));
};
});
// ../node_modules/redent/index.js
var eh = f((The, Ow) => {
"use strict";
var $k = xw(), Lk = Tw();
Ow.exports = (e, t = 0, r) => Lk($k(e), t, r);
});
// ../node_modules/@adobe/css-tools/dist/index.mjs
var ih = {};
no(ih, {
CssTypes: () => Q,
default: () => Uk,
parse: () => Iw,
stringify: () => Nw
});
function Sw(e) {
Object.defineProperty(e, "__esModule", { value: !0, configurable: !0 });
}
function oh(e, t, r, n) {
Object.defineProperty(e, t, { get: r, set: n, enumerable: !0, configurable: !0 });
}
function mt(e) {
return e ? e.trim() : "";
}
function rh(e, t) {
let r = e && typeof e.type == "string", n = r ? e : t;
for (let i in e) {
let a = e[i];
Array.isArray(a) ? a.forEach((s) => {
rh(s, n);
}) : a && typeof a == "object" && rh(a, n);
}
return r && Object.defineProperty(e, "parent", {
configurable: !0,
writable: !0,
enumerable: !1,
value: t || null
}), e;
}
var Mw, ra, Aw, na, Bk, Q, th, kk, Dk, nh, Fk, Hk, Iw, Nw, Uk, ah = Re(() => {
o(Sw, "$parcel$defineInteropFlag");
o(oh, "$parcel$export");
Mw = {};
Sw(Mw);
oh(Mw, "default", () => ra);
ra = class extends Error {
static {
o(this, "$009ddb00d3ec72b8$export$2e2bcd8739ae039");
}
constructor(t, r, n, i, a) {
super(t + ":" + n + ":" + i + ": " + r), this.reason = r, this.filename = t, this.line = n, this.column = i, this.source = a;
}
}, Aw = {};
Sw(Aw);
oh(Aw, "default", () => na);
na = class {
static {
o(this, "$0865a9fb4cc365fe$export$2e2bcd8739ae039");
}
constructor(t, r, n) {
this.start = t, this.end = r, this.source = n;
}
}, Bk = {};
oh(Bk, "CssTypes", () => Q);
Q = /* @__PURE__ */ function(e) {
return e.stylesheet = "stylesheet", e.rule = "rule", e.declaration = "declaration", e.comment = "comment", e.container = "container", e.
charset = "charset", e.document = "document", e.customMedia = "custom-media", e.fontFace = "font-face", e.host = "host", e.import = "imp\
ort", e.keyframes = "keyframes", e.keyframe = "keyframe", e.layer = "layer", e.media = "media", e.namespace = "namespace", e.page = "page", e.
startingStyle = "starting-style", e.supports = "supports", e;
}({}), th = /\/\*[^]*?(?:\*\/|$)/g, kk = /* @__PURE__ */ o((e, t) => {
t = t || {};
let r = 1, n = 1;
function i(N) {
let I = N.match(/\n/g);
I && (r += I.length);
let F = N.lastIndexOf(`
`);
n = ~F ? N.length - F : n + N.length;
}
o(i, "updatePosition");
function a() {
let N = {
line: r,
column: n
};
return function(I) {
return I.position = new na(N, {
line: r,
column: n
}, t?.source || ""), m(), I;
};
}
o(a, "position");
let s = [];
function l(N) {
let I = new ra(t?.source || "", N, r, n, e);
if (t?.silent) s.push(I);
else throw I;
}
o(l, "error");
function c() {
let N = p();
return {
type: Q.stylesheet,
stylesheet: {
source: t?.source,
rules: N,
parsingErrors: s
}
};
}
o(c, "stylesheet");
function u() {
return b(/^{\s*/);
}
o(u, "open");
function d() {
return b(/^}/);
}
o(d, "close");
function p() {
let N, I = [];
for (m(), y(I); e.length && e.charAt(0) !== "}" && (N = Ae() || Xe()); ) N && (I.push(N), y(I));
return I;
}
o(p, "rules");
function b(N) {
let I = N.exec(e);
if (!I) return;
let F = I[0];
return i(F), e = e.slice(F.length), I;
}
o(b, "match");
function m() {
b(/^\s*/);
}
o(m, "whitespace");
function y(N) {
let I;
for (N = N || []; I = h(); ) I && N.push(I);
return N;
}
o(y, "comments");
function h() {
let N = a();
if (e.charAt(0) !== "/" || e.charAt(1) !== "*") return;
let I = b(/^\/\*[^]*?\*\//);
return I ? N({
type: Q.comment,
comment: I[0].slice(2, -2)
}) : l("End of comment missing");
}
o(h, "comment");
function w(N, I, F) {
let H = I + 1, Y = !1, xe = N.indexOf(")", H);
for (; !Y && xe !== -1; ) {
let $e = N.indexOf("(", H);
$e !== -1 && $e < xe ? (H = w(N, $e + 1, F + 1) + 1, xe = N.indexOf(")", H)) : Y = !0;
}
return Y && xe !== -1 ? xe : -1;
}
o(w, "findClosingParenthese");
function v() {
let N = b(/^([^{]+)/);
if (!N) return;
let I = mt(N[0]).replace(th, "");
if (I.indexOf(",") === -1) return [
I
];
let F = 0, H = I.indexOf("(", F);
for (; H !== -1; ) {
let Y = w(I, H, 0);
if (Y === -1) break;
F = Y + 1, I = I.substring(0, H) + I.substring(H, Y).replace(/,/g, "\u200C") + I.substring(Y), H = I.indexOf("(", F);
}
return I = I.replace(/("|')(?:\\\1|.)*?\1/g, (Y) => Y.replace(/,/g, "\u200C")), I.split(",").map((Y) => mt(Y.replace(/\u200C/g, ",")));
}
o(v, "selector");
function q() {
let N = a(), I = b(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);
if (!I) return;
let F = mt(I[0]);
if (!b(/^:\s*/)) return l("property missing ':'");
let H = b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)])*?\)|[^};])+)/), Y = N({
type: Q.declaration,
property: F.replace(th, ""),
value: H ? mt(H[0]).replace(th, "") : ""
});
return b(/^[;\s]*/), Y;
}
o(q, "declaration");
function P() {
let N = [];
if (!u()) return l("missing '{'");
y(N);
let I;
for (; I = q(); ) I && (N.push(I), y(N));
return d() ? N : l("missing '}'");
}
o(P, "declarations");
function _() {
let N, I = [], F = a();
for (; N = b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); )
I.push(N[1]), b(/^,\s*/);
if (I.length)
return F({
type: Q.keyframe,
values: I,
declarations: P() || []
});
}
o(_, "keyframe");
function C() {
let N = a(), I = b(/^@([-\w]+)?keyframes\s*/);
if (!I) return;
let F = I[1], H = b(/^([-\w]+)\s*/);
if (!H) return l("@keyframes missing name");
let Y = H[1];
if (!u()) return l("@keyframes missing '{'");
let xe, $e = y();
for (; xe = _(); )
$e.push(xe), $e = $e.concat(y());
return d() ? N({
type: Q.keyframes,
name: Y,
vendor: F,
keyframes: $e
}) : l("@keyframes missing '}'");
}
o(C, "atkeyframes");
function O() {
let N = a(), I = b(/^@supports *([^{]+)/);
if (!I) return;
let F = mt(I[1]);
if (!u()) return l("@supports missing '{'");
let H = y().concat(p());
return d() ? N({
type: Q.supports,
supports: F,
rules: H
}) : l("@supports missing '}'");
}
o(O, "atsupports");
function T() {
let N = a();
if (!b(/^@host\s*/)) return;
if (!u()) return l("@host missing '{'");
let F = y().concat(p());
return d() ? N({
type: Q.host,
rules: F
}) : l("@host missing '}'");
}
o(T, "athost");
function A() {
let N = a(), I = b(/^@container *([^{]+)/);
if (!I) return;
let F = mt(I[1]);
if (!u()) return l("@container missing '{'");
let H = y().concat(p());
return d() ? N({
type: Q.container,
container: F,
rules: H
}) : l("@container missing '}'");
}
o(A, "atcontainer");
function L() {
let N = a(), I = b(/^@layer *([^{;@]+)/);
if (!I) return;
let F = mt(I[1]);
if (!u())
return b(/^[;\s]*/), N({
type: Q.layer,
layer: F
});
let H = y().concat(p());
return d() ? N({
type: Q.layer,
layer: F,
rules: H
}) : l("@layer missing '}'");
}
o(L, "atlayer");
function Z() {
let N = a(), I = b(/^@media *([^{]+)/);
if (!I) return;
let F = mt(I[1]);
if (!u()) return l("@media missing '{'");
let H = y().concat(p());
return d() ? N({
type: Q.media,
media: F,
rules: H
}) : l("@media missing '}'");
}
o(Z, "atmedia");
function S() {
let N = a(), I = b(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);
if (I)
return N({
type: Q.customMedia,
name: mt(I[1]),
media: mt(I[2])
});
}
o(S, "atcustommedia");
function V() {
let N = a();
if (!b(/^@page */)) return;
let F = v() || [];
if (!u()) return l("@page missing '{'");
let H = y(), Y;
for (; Y = q(); )
H.push(Y), H = H.concat(y());
return d() ? N({
type: Q.page,
selectors: F,
declarations: H
}) : l("@page missing '}'");
}
o(V, "atpage");
function ue() {
let N = a(), I = b(/^@([-\w]+)?document *([^{]+)/);
if (!I) return;
let F = mt(I[1]), H = mt(I[2]);
if (!u()) return l("@document missing '{'");
let Y = y().concat(p());
return d() ? N({
type: Q.document,
document: H,
vendor: F,
rules: Y
}) : l("@document missing '}'");
}
o(ue, "atdocument");
function W() {
let N = a();
if (!b(/^@font-face\s*/)) return;
if (!u()) return l("@font-face missing '{'");
let F = y(), H;
for (; H = q(); )
F.push(H), F = F.concat(y());
return d() ? N({
type: Q.fontFace,
declarations: F
}) : l("@font-face missing '}'");
}
o(W, "atfontface");
function D() {
let N = a();
if (!b(/^@starting-style\s*/)) return;
if (!u()) return l("@starting-style missing '{'");
let F = y().concat(p());
return d() ? N({
type: Q.startingStyle,
rules: F
}) : l("@starting-style missing '}'");
}
o(D, "atstartingstyle");
let k = ge("import"), ee = ge("charset"), U = ge("namespace");
function ge(N) {
let I = new RegExp("^@" + N + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);
return function() {
let F = a(), H = b(I);
if (!H) return;
let Y = {
type: N
};
return Y[N] = H[1].trim(), F(Y);
};
}
o(ge, "_compileAtrule");
function Ae() {
if (e[0] === "@")
return C() || Z() || S() || O() || k() || ee() || U() || ue() || V() || T() || W() || A() || D() || L();
}
o(Ae, "atrule");
function Xe() {
let N = a(), I = v();
return I ? (y(), N({
type: Q.rule,
selectors: I,
declarations: P() || []
})) : l("selector missing");
}
return o(Xe, "rule"), rh(c());
}, "$d708735ed1303b43$export$98e6a39c04603d36");
o(mt, "$d708735ed1303b43$var$trim");
o(rh, "$d708735ed1303b43$var$addParent");
Dk = kk, nh = class {
static {
o(this, "$de9540138ed1fd01$var$Compiler");
}
constructor(t) {
this.level = 0, this.indentation = " ", this.compress = !1, typeof t?.indent == "string" && (this.indentation = t?.indent), t?.compress &&
(this.compress = !0);
}
// We disable no-unused-vars for _position. We keep position for potential reintroduction of source-map
// eslint-disable-next-line @typescript-eslint/no-unused-vars
emit(t, r) {
return t;
}
/**
* Increase, decrease or return current indentation.
*/
indent(t) {
return this.level = this.level || 1, t ? (this.level += t, "") : Array(this.level).join(this.indentation);
}
visit(t) {
switch (t.type) {
case Q.stylesheet:
return this.stylesheet(t);
case Q.rule:
return this.rule(t);
case Q.declaration:
return this.declaration(t);
case Q.comment:
return this.comment(t);
case Q.container:
return this.container(t);
case Q.charset:
return this.charset(t);
case Q.document:
return this.document(t);
case Q.customMedia:
return this.customMedia(t);
case Q.fontFace:
return this.fontFace(t);
case Q.host:
return this.host(t);
case Q.import:
return this.import(t);
case Q.keyframes:
return this.keyframes(t);
case Q.keyframe:
return this.keyframe(t);
case Q.layer:
return this.layer(t);
case Q.media:
return this.media(t);
case Q.namespace:
return this.namespace(t);
case Q.page:
return this.page(t);
case Q.startingStyle:
return this.startingStyle(t);
case Q.supports:
return this.supports(t);
}
}
mapVisit(t, r) {
let n = "";
r = r || "";
for (let i = 0, a = t.length; i < a; i++)
n += this.visit(t[i]), r && i < a - 1 && (n += this.emit(r));
return n;
}
compile(t) {
return this.compress ? t.stylesheet.rules.map(this.visit, this).join("") : this.stylesheet(t);
}
/**
* Visit stylesheet node.
*/
stylesheet(t) {
return this.mapVisit(t.stylesheet.rules, `
`);
}
/**
* Visit comment node.
*/
comment(t) {
return this.compress ? this.emit("", t.position) : this.emit(this.indent() + "/*" + t.comment + "*/", t.position);
}
/**
* Visit container node.
*/
container(t) {
return this.compress ? this.emit("@container " + t.container, t.position) + this.emit("{") + this.mapVisit(t.rules) + this.emit("}") :
this.emit(this.indent() + "@container " + t.container, t.position) + this.emit(` {
` + this.indent(1)) + this.mapVisit(t.rules, `
`) + this.emit(`
` + this.indent(-1) + this.indent() + "}");
}
/**
* Visit container node.
*/
layer(t) {
return this.compress ? this.emit("@layer " + t.layer, t.position) + (t.rules ? this.emit("{") + this.mapVisit(t.rules) + this.emit("}") :
";") : this.emit(this.indent() + "@layer " + t.layer, t.position) + (t.rules ? this.emit(` {
` + this.indent(1)) + this.mapVisit(t.rules, `
`) + this.emit(`
` + this.indent(-1) + this.indent() + "}") : ";");
}
/**
* Visit import node.
*/
import(t) {
return this.emit("@import " + t.import + ";", t.position);
}
/**
* Visit media node.
*/
media(t) {
return this.compress ? this.emit("@media " + t.media, t.position) + this.emit("{") + this.mapVisit(t.rules) + this.emit("}") : this.emit(
this.indent() + "@media " + t.media, t.position) + this.emit(` {
` + this.indent(1)) + this.mapVisit(t.rules, `
`) + this.emit(`
` + this.indent(-1) + this.indent() + "}");
}
/**
* Visit document node.
*/
document(t) {
let r = "@" + (t.vendor || "") + "document " + t.document;
return this.compress ? this.emit(r, t.position) + this.emit("{") + this.mapVisit(t.rules) + this.emit("}") : this.emit(r, t.position) +
this.emit(` {
` + this.indent(1)) + this.mapVisit(t.rules, `
`) + this.emit(this.indent(-1) + `
}`);
}
/**
* Visit charset node.
*/
charset(t) {
return this.emit("@charset " + t.charset + ";", t.position);
}
/**
* Visit namespace node.
*/
namespace(t) {
return this.emit("@namespace " + t.namespace + ";", t.position);
}
/**
* Visit container node.
*/
startingStyle(t) {
return this.compress ? this.emit("@starting-style", t.position) + this.emit("{") + this.mapVisit(t.rules) + this.emit("}") : this.emit(
this.indent() + "@starting-style", t.position) + this.emit(` {
` + this.indent(1)) + this.mapVisit(t.rules, `
`) + this.emit(`
` + this.indent(-1) + this.indent() + "}");
}
/**
* Visit supports node.
*/
supports(t) {
return this.compress ? this.emit("@supports " + t.supports, t.position) + this.emit("{") + this.mapVisit(t.rules) + this.emit("}") : this.
emit(this.indent() + "@supports " + t.supports, t.position) + this.emit(` {
` + this.indent(1)) + this.mapVisit(t.rules, `
`) + this.emit(`
` + this.indent(-1) + this.indent() + "}");
}
/**
* Visit keyframes node.
*/
keyframes(t) {
return this.compress ? this.emit("@" + (t.vendor || "") + "keyframes " + t.name, t.position) + this.emit("{") + this.mapVisit(t.keyframes) +
this.emit("}") : this.emit("@" + (t.vendor || "") + "keyframes " + t.name, t.position) + this.emit(` {
` + this.indent(1)) + this.mapVisit(t.keyframes, `
`) + this.emit(this.indent(-1) + "}");
}
/**
* Visit keyframe node.
*/
keyframe(t) {
let r = t.declarations;
return this.compress ? this.emit(t.values.join(","), t.position) + this.emit("{") + this.mapVisit(r) + this.emit("}") : this.emit(this.
indent()) + this.emit(t.values.join(", "), t.position) + this.emit(` {
` + this.indent(1)) + this.mapVisit(r, `
`) + this.emit(this.indent(-1) + `
` + this.indent() + `}
`);
}
/**
* Visit page node.
*/
page(t) {
if (this.compress) {
let n = t.selectors.length ? t.selectors.join(", ") : "";
return this.emit("@page " + n, t.position) + this.emit("{") + this.mapVisit(t.declarations) + this.emit("}");
}
let r = t.selectors.length ? t.selectors.join(", ") + " " : "";
return this.emit("@page " + r, t.position) + this.emit(`{
`) + this.emit(this.indent(1)) + this.mapVisit(t.declarations, `
`) + this.emit(this.indent(-1)) + this.emit(`
}`);
}
/**
* Visit font-face node.
*/
fontFace(t) {
return this.compress ? this.emit("@font-face", t.position) + this.emit("{") + this.mapVisit(t.declarations) + this.emit("}") : this.emit(
"@font-face ", t.position) + this.emit(`{
`) + this.emit(this.indent(1)) + this.mapVisit(t.declarations, `
`) + this.emit(this.indent(-1)) + this.emit(`
}`);
}
/**
* Visit host node.
*/
host(t) {
return this.compress ? this.emit("@host", t.position) + this.emit("{") + this.mapVisit(t.rules) + this.emit("}") : this.emit("@host", t.
position) + this.emit(` {
` + this.indent(1)) + this.mapVisit(t.rules, `
`) + this.emit(this.indent(-1) + `
}`);
}
/**
* Visit custom-media node.
*/
customMedia(t) {
return this.emit("@custom-media " + t.name + " " + t.media + ";", t.position);
}
/**
* Visit rule node.
*/
rule(t) {
let r = t.declarations;
if (!r.length) return "";
if (this.compress) return this.emit(t.selectors.join(","), t.position) + this.emit("{") + this.mapVisit(r) + this.emit("}");
let n = this.indent();
return this.emit(t.selectors.map((i) => n + i).join(`,
`), t.position) + this.emit(` {
`) + this.emit(this.indent(1)) + this.mapVisit(r, `
`) + this.emit(this.indent(-1)) + this.emit(`
` + this.indent() + "}");
}
/**
* Visit declaration node.
*/
declaration(t) {
return this.compress ? this.emit(t.property + ":" + t.value, t.position) + this.emit(";") : this.emit(this.indent()) + this.emit(t.property +
": " + t.value, t.position) + this.emit(";");
}
}, Fk = nh, Hk = /* @__PURE__ */ o((e, t) => new Fk(t || {}).compile(e), "$fdf773ab87e20450$export$2e2bcd8739ae039"), Iw = Dk, Nw = Hk, Uk =
{
parse: Iw,
stringify: Nw
};
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
function jw(e) {
return typeof e == "function" || Vk.call(e) === "[object Function]";
}
function zk(e) {
var t = Number(e);
return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
}
function Gk(e) {
var t = zk(e);
return Math.min(Math.max(t, 0), Wk);
}
function ut(e, t) {
var r = Array, n = Object(e);
if (e == null)
throw new TypeError("Array.from requires an array-like object - not null or undefined");
if (typeof t < "u" && !jw(t))
throw new TypeError("Array.from: when provided, the second argument must be a function");
for (var i = Gk(n.length), a = jw(r) ? Object(new r(i)) : new Array(i), s = 0, l; s < i; )
l = n[s], t ? a[s] = t(l, s) : a[s] = l, s += 1;
return a.length = i, a;
}
var Vk, Wk, $w = Re(() => {
Vk = Object.prototype.toString;
o(jw, "isCallable");
o(zk, "toInteger");
Wk = Math.pow(2, 53) - 1;
o(Gk, "toLength");
o(ut, "arrayFrom");
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
function fo(e) {
"@babel/helpers - typeof";
return fo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, fo(e);
}
function Kk(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function");
}
function Lw(e, t) {
for (var r = 0; r < t.length; r++) {
var n = t[r];
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Bw(n.key), n);
}
}
function Yk(e, t, r) {
return t && Lw(e.prototype, t), r && Lw(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
}
function Xk(e, t, r) {
return t = Bw(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
}
function Bw(e) {
var t = Jk(e, "string");
return fo(t) === "symbol" ? t : String(t);
}
function Jk(e, t) {
if (fo(e) !== "object" || e === null) return e;
var r = e[Symbol.toPrimitive];
if (r !== void 0) {
var n = r.call(e, t || "default");
if (fo(n) !== "object") return n;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
var Qk, kw, Dw = Re(() => {
o(fo, "_typeof");
o(Kk, "_classCallCheck");
o(Lw, "_defineProperties");
o(Yk, "_createClass");
o(Xk, "_defineProperty");
o(Bw, "_toPropertyKey");
o(Jk, "_toPrimitive");
Qk = /* @__PURE__ */ function() {
function e() {
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
Kk(this, e), Xk(this, "items", void 0), this.items = t;
}
return o(e, "SetLike"), Yk(e, [{
key: "add",
value: /* @__PURE__ */ o(function(r) {
return this.has(r) === !1 && this.items.push(r), this;
}, "add")
}, {
key: "clear",
value: /* @__PURE__ */ o(function() {
this.items = [];
}, "clear")
}, {
key: "delete",
value: /* @__PURE__ */ o(function(r) {
var n = this.items.length;
return this.items = this.items.filter(function(i) {
return i !== r;
}), n !== this.items.length;
}, "_delete")
}, {
key: "forEach",
value: /* @__PURE__ */ o(function(r) {
var n = this;
this.items.forEach(function(i) {
r(i, i, n);
});
}, "forEach")
}, {
key: "has",
value: /* @__PURE__ */ o(function(r) {
return this.items.indexOf(r) !== -1;
}, "has")
}, {
key: "size",
get: /* @__PURE__ */ o(function() {
return this.items.length;
}, "get")
}]), e;
}(), kw = typeof Set > "u" ? Set : Qk;
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/getRole.mjs
function Te(e) {
var t;
return (
// eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
(t = e.localName) !== null && t !== void 0 ? t : (
// eslint-disable-next-line no-restricted-properties -- required for the fallback
e.tagName.toLowerCase()
)
);
}
function tD(e, t) {
return [
"aria-atomic",
"aria-busy",
"aria-controls",
"aria-current",
"aria-description",
"aria-describedby",
"aria-details",
// "disabled",
"aria-dropeffect",
// "errormessage",
"aria-flowto",
"aria-grabbed",
// "haspopup",
"aria-hidden",
// "invalid",
"aria-keyshortcuts",
"aria-label",
"aria-labelledby",
"aria-live",
"aria-owns",
"aria-relevant",
"aria-roledescription"
].some(function(r) {
var n;
return e.hasAttribute(r) && !((n = eD[t]) !== null && n !== void 0 && n.has(r));
});
}
function Fw(e, t) {
return tD(e, t);
}
function mo(e) {
var t = nD(e);
if (t === null || po.indexOf(t) !== -1) {
var r = rD(e);
if (po.indexOf(t || "") === -1 || Fw(e, r || ""))
return r;
}
return t;
}
function rD(e) {
var t = Zk[Te(e)];
if (t !== void 0)
return t;
switch (Te(e)) {
case "a":
case "area":
case "link":
if (e.hasAttribute("href"))
return "link";
break;
case "img":
return e.getAttribute("alt") === "" && !Fw(e, "img") ? "presentation" : "img";
case "input": {
var r = e, n = r.type;
switch (n) {
case "button":
case "image":
case "reset":
case "submit":
return "button";
case "checkbox":
case "radio":
return n;
case "range":
return "slider";
case "email":
case "tel":
case "text":
case "url":
return e.hasAttribute("list") ? "combobox" : "textbox";
case "search":
return e.hasAttribute("list") ? "combobox" : "searchbox";
case "number":
return "spinbutton";
default:
return null;
}
}
case "select":
return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox";
}
return null;
}
function nD(e) {
var t = e.getAttribute("role");
if (t !== null) {
var r = t.trim().split(" ")[0];
if (r.length > 0)
return r;
}
return null;
}
var Zk, eD, ho = Re(() => {
bo();
o(Te, "getLocalName");
Zk = {
article: "article",
aside: "complementary",
button: "button",
datalist: "listbox",
dd: "definition",
details: "group",
dialog: "dialog",
dt: "term",
fieldset: "group",
figure: "figure",
// WARNING: Only with an accessible name
form: "form",
footer: "contentinfo",
h1: "heading",
h2: "heading",
h3: "heading",
h4: "heading",
h5: "heading",
h6: "heading",
header: "banner",
hr: "separator",
html: "document",
legend: "legend",
li: "listitem",
math: "math",
main: "main",
menu: "list",
nav: "navigation",
ol: "list",
optgroup: "group",
// WARNING: Only in certain context
option: "option",
output: "status",
progress: "progressbar",
// WARNING: Only with an accessible name
section: "region",
summary: "button",
table: "table",
tbody: "rowgroup",
textarea: "textbox",
tfoot: "rowgroup",
// WARNING: Only in certain context
td: "cell",
th: "columnheader",
thead: "rowgroup",
tr: "row",
ul: "list"
}, eD = {
caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
none: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
};
o(tD, "hasGlobalAriaAttributes");
o(Fw, "ignorePresentationalRole");
o(mo, "getRole");
o(rD, "getImplicitRole");
o(nD, "getExplicitRole");
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/util.mjs
function Ee(e) {
return e !== null && e.nodeType === e.ELEMENT_NODE;
}
function sh(e) {
return Ee(e) && Te(e) === "caption";
}
function yo(e) {
return Ee(e) && Te(e) === "input";
}
function Hw(e) {
return Ee(e) && Te(e) === "optgroup";
}
function Uw(e) {
return Ee(e) && Te(e) === "select";
}
function Vw(e) {
return Ee(e) && Te(e) === "table";
}
function zw(e) {
return Ee(e) && Te(e) === "textarea";
}
function Ww(e) {
var t = e.ownerDocument === null ? e : e.ownerDocument, r = t.defaultView;
if (r === null)
throw new TypeError("no window available");
return r;
}
function Gw(e) {
return Ee(e) && Te(e) === "fieldset";
}
function Kw(e) {
return Ee(e) && Te(e) === "legend";
}
function Yw(e) {
return Ee(e) && Te(e) === "slot";
}
function oD(e) {
return Ee(e) && e.ownerSVGElement !== void 0;
}
function Xw(e) {
return Ee(e) && Te(e) === "svg";
}
function Jw(e) {
return oD(e) && Te(e) === "title";
}
function ln(e, t) {
if (Ee(e) && e.hasAttribute(t)) {
var r = e.getAttribute(t).split(" "), n = e.getRootNode ? e.getRootNode() : e.ownerDocument;
return r.map(function(i) {
return n.getElementById(i);
}).filter(
function(i) {
return i !== null;
}
// TODO: why does this not narrow?
);
}
return [];
}
function xt(e, t) {
return Ee(e) ? t.indexOf(mo(e)) !== -1 : !1;
}
var po, bo = Re(() => {
ho();
ho();
po = ["presentation", "none"];
o(Ee, "isElement");
o(sh, "isHTMLTableCaptionElement");
o(yo, "isHTMLInputElement");
o(Hw, "isHTMLOptGroupElement");
o(Uw, "isHTMLSelectElement");
o(Vw, "isHTMLTableElement");
o(zw, "isHTMLTextAreaElement");
o(Ww, "safeWindow");
o(Gw, "isHTMLFieldSetElement");
o(Kw, "isHTMLLegendElement");
o(Yw, "isHTMLSlotElement");
o(oD, "isSVGElement");
o(Xw, "isSVGSVGElement");
o(Jw, "isSVGTitleElement");
o(ln, "queryIdRefs");
o(xt, "hasAnyConcreteRoles");
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
function iD(e) {
return e.trim().replace(/\s\s+/g, " ");
}
function aD(e, t) {
if (!Ee(e))
return !1;
if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true")
return !0;
var r = t(e);
return r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden";
}
function sD(e) {
return xt(e, ["button", "combobox", "listbox", "textbox"]) || e_(e, "range");
}
function e_(e, t) {
if (!Ee(e))
return !1;
switch (t) {
case "range":
return xt(e, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
default:
throw new TypeError("No knowledge about abstract role '".concat(t, "'. This is likely a bug :("));
}
}
function Qw(e, t) {
var r = ut(e.querySelectorAll(t));
return ln(e, "aria-owns").forEach(function(n) {
r.push.apply(r, ut(n.querySelectorAll(t)));
}), r;
}
function lD(e) {
return Uw(e) ? e.selectedOptions || Qw(e, "[selected]") : Qw(e, '[aria-selected="true"]');
}
function uD(e) {
return xt(e, po);
}
function cD(e) {
return sh(e);
}
function dD(e) {
return xt(e, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbo\
x", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
}
function fD(e) {
return !1;
}
function pD(e) {
return yo(e) || zw(e) ? e.value : e.textContent || "";
}
function Zw(e) {
var t = e.getPropertyValue("content");
return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
}
function t_(e) {
var t = Te(e);
return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t ===
"select" || t === "textarea";
}
function r_(e) {
if (t_(e))
return e;
var t = null;
return e.childNodes.forEach(function(r) {
if (t === null && Ee(r)) {
var n = r_(r);
n !== null && (t = n);
}
}), t;
}
function mD(e) {
if (e.control !== void 0)
return e.control;
var t = e.getAttribute("for");
return t !== null ? e.ownerDocument.getElementById(t) : r_(e);
}
function hD(e) {
var t = e.labels;
if (t === null)
return t;
if (t !== void 0)
return ut(t);
if (!t_(e))
return null;
var r = e.ownerDocument;
return ut(r.querySelectorAll("label")).filter(function(n) {
return mD(n) === e;
});
}
function bD(e) {
var t = e.assignedNodes();
return t.length === 0 ? ut(e.childNodes) : t;
}
function oa(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new kw(), n = Ww(e), i = t.compute, a = i === void 0 ? "n\
ame" : i, s = t.computedStyleSupportsPseudoElements, l = s === void 0 ? t.getComputedStyle !== void 0 : s, c = t.getComputedStyle, u = c ===
void 0 ? n.getComputedStyle.bind(n) : c, d = t.hidden, p = d === void 0 ? !1 : d;
function b(v, q) {
var P = "";
if (Ee(v) && l) {
var _ = u(v, "::before"), C = Zw(_);
P = "".concat(C, " ").concat(P);
}
var O = Yw(v) ? bD(v) : ut(v.childNodes).concat(ln(v, "aria-owns"));
if (O.forEach(function(L) {
var Z = w(L, {
isEmbeddedInLabel: q.isEmbeddedInLabel,
isReferenced: !1,
recursion: !0
}), S = Ee(L) ? u(L).getPropertyValue("display") : "inline", V = S !== "inline" ? " " : "";
P += "".concat(V).concat(Z).concat(V);
}), Ee(v) && l) {
var T = u(v, "::after"), A = Zw(T);
P = "".concat(P, " ").concat(A);
}
return P.trim();
}
o(b, "computeMiscTextAlternative");
function m(v, q) {
var P = v.getAttributeNode(q);
return P !== null && !r.has(P) && P.value.trim() !== "" ? (r.add(P), P.value) : null;
}
o(m, "useAttribute");
function y(v) {
return Ee(v) ? m(v, "title") : null;
}
o(y, "computeTooltipAttributeValue");
function h(v) {
if (!Ee(v))
return null;
if (Gw(v)) {
r.add(v);
for (var q = ut(v.childNodes), P = 0; P < q.length; P += 1) {
var _ = q[P];
if (Kw(_))
return w(_, {
isEmbeddedInLabel: !1,
isReferenced: !1,
recursion: !1
});
}
} else if (Vw(v)) {
r.add(v);
for (var C = ut(v.childNodes), O = 0; O < C.length; O += 1) {
var T = C[O];
if (sh(T))
return w(T, {
isEmbeddedInLabel: !1,
isReferenced: !1,
recursion: !1
});
}
} else if (Xw(v)) {
r.add(v);
for (var A = ut(v.childNodes), L = 0; L < A.length; L += 1) {
var Z = A[L];
if (Jw(Z))
return Z.textContent;
}
return null;
} else if (Te(v) === "img" || Te(v) === "area") {
var S = m(v, "alt");
if (S !== null)
return S;
} else if (Hw(v)) {
var V = m(v, "label");
if (V !== null)
return V;
}
if (yo(v) && (v.type === "button" || v.type === "submit" || v.type === "reset")) {
var ue = m(v, "value");
if (ue !== null)
return ue;
if (v.type === "submit")
return "Submit";
if (v.type === "reset")
return "Reset";
}
var W = hD(v);
if (W !== null && W.length !== 0)
return r.add(v), ut(W).map(function(U) {
return w(U, {
isEmbeddedInLabel: !0,
isReferenced: !1,
recursion: !0
});
}).filter(function(U) {
return U.length > 0;
}).join(" ");
if (yo(v) && v.type === "image") {
var D = m(v, "alt");
if (D !== null)
return D;
var k = m(v, "title");
return k !== null ? k : "Submit Query";
}
if (xt(v, ["button"])) {
var ee = b(v, {
isEmbeddedInLabel: !1,
isReferenced: !1
});
if (ee !== "")
return ee;
}
return null;
}
o(h, "computeElementTextAlternative");
function w(v, q) {
if (r.has(v))
return "";
if (!p && aD(v, u) && !q.isReferenced)
return r.add(v), "";
var P = Ee(v) ? v.getAttributeNode("aria-labelledby") : null, _ = P !== null && !r.has(P) ? ln(v, "aria-labelledby") : [];
if (a === "name" && !q.isReferenced && _.length > 0)
return r.add(P), _.map(function(S) {
return w(S, {
isEmbeddedInLabel: q.isEmbeddedInLabel,
isReferenced: !0,
// this isn't recursion as specified, otherwise we would skip
// `aria-label` in
// <input id="myself" aria-label="foo" aria-labelledby="myself"
recursion: !1
});
}).join(" ");
var C = q.recursion && sD(v) && a === "name";
if (!C) {
var O = (Ee(v) && v.getAttribute("aria-label") || "").trim();
if (O !== "" && a === "name")
return r.add(v), O;
if (!uD(v)) {
var T = h(v);
if (T !== null)
return r.add(v), T;
}
}
if (xt(v, ["menu"]))
return r.add(v), "";
if (C || q.isEmbeddedInLabel || q.isReferenced) {
if (xt(v, ["combobox", "listbox"])) {
r.add(v);
var A = lD(v);
return A.length === 0 ? yo(v) ? v.value : "" : ut(A).map(function(S) {
return w(S, {
isEmbeddedInLabel: q.isEmbeddedInLabel,
isReferenced: !1,
recursion: !0
});
}).join(" ");
}
if (e_(v, "range"))
return r.add(v), v.hasAttribute("aria-valuetext") ? v.getAttribute("aria-valuetext") : v.hasAttribute("aria-valuenow") ? v.getAttribute(
"aria-valuenow") : v.getAttribute("value") || "";
if (xt(v, ["textbox"]))
return r.add(v), pD(v);
}
if (dD(v) || Ee(v) && q.isReferenced || cD(v) || fD(v)) {
var L = b(v, {
isEmbeddedInLabel: q.isEmbeddedInLabel,
isReferenced: !1
});
if (L !== "")
return r.add(v), L;
}
if (v.nodeType === v.TEXT_NODE)
return r.add(v), v.textContent || "";
if (q.recursion)
return r.add(v), b(v, {
isEmbeddedInLabel: q.isEmbeddedInLabel,
isReferenced: !1
});
var Z = y(v);
return Z !== null ? (r.add(v), Z) : (r.add(v), "");
}
return o(w, "computeTextAlternative"), iD(w(e, {
isEmbeddedInLabel: !1,
// by spec computeAccessibleDescription starts with the referenced elements as roots
isReferenced: a === "description",
recursion: !1
}));
}
var lh = Re(() => {
$w();
Dw();
bo();
o(iD, "asFlatString");
o(aD, "isHidden");
o(sD, "isControl");
o(e_, "hasAbstractRole");
o(Qw, "querySelectorAllSubtree");
o(lD, "querySelectedOptions");
o(uD, "isMarkedPresentational");
o(cD, "isNativeHostLanguageTextAlternativeElement");
o(dD, "allowsNameFromContent");
o(fD, "isDescendantOfNativeHostLanguageTextAlternativeElement");
o(pD, "getValueOfTextbox");
o(Zw, "getTextualContent");
o(t_, "isLabelableElement");
o(r_, "findLabelableElement");
o(mD, "getControlOfLabel");
o(hD, "getLabels");
o(bD, "getSlotContents");
o(oa, "computeTextAlternative");
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-description.mjs
function vo(e) {
"@babel/helpers - typeof";
return vo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, vo(e);
}
function n_(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
t && (n = n.filter(function(i) {
return Object.getOwnPropertyDescriptor(e, i).enumerable;
})), r.push.apply(r, n);
}
return r;
}
function o_(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t] != null ? arguments[t] : {};
t % 2 ? n_(Object(r), !0).forEach(function(n) {
yD(e, n, r[n]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : n_(Object(r)).forEach(function(n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
});
}
return e;
}
function yD(e, t, r) {
return t = vD(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
}
function vD(e) {
var t = gD(e, "string");
return vo(t) === "symbol" ? t : String(t);
}
function gD(e, t) {
if (vo(e) !== "object" || e === null) return e;
var r = e[Symbol.toPrimitive];
if (r !== void 0) {
var n = r.call(e, t || "default");
if (vo(n) !== "object") return n;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
function i_(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = ln(e, "aria-describedby").map(function(a) {
return oa(a, o_(o_({}, t), {}, {
compute: "description"
}));
}).join(" ");
if (r === "") {
var n = e.getAttribute("aria-description");
r = n === null ? "" : n;
}
if (r === "") {
var i = e.getAttribute("title");
r = i === null ? "" : i;
}
return r;
}
var a_ = Re(() => {
lh();
bo();
o(vo, "_typeof");
o(n_, "ownKeys");
o(o_, "_objectSpread");
o(yD, "_defineProperty");
o(vD, "_toPropertyKey");
o(gD, "_toPrimitive");
o(i_, "computeAccessibleDescription");
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs
function ED(e) {
return xt(e, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "none", "paragraph", "presentation", "strong", "subscript",
"superscript"]);
}
function s_(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return ED(e) ? "" : oa(e, t);
}
var l_ = Re(() => {
lh();
bo();
o(ED, "prohibitsNaming");
o(s_, "computeAccessibleName");
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-inaccessible.mjs
function wD(e) {
var t, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.getComputedStyle, i = n === void 0 ? (t = e.ownerDocument.
defaultView) === null || t === void 0 ? void 0 : t.getComputedStyle : n, a = r.isSubtreeInaccessible, s = a === void 0 ? u_ : a;
if (typeof i != "function")
throw new TypeError("Owner document of the element needs to have an associated window.");
if (i(e).visibility === "hidden")
return !0;
for (var l = e; l; ) {
if (s(l, {
getComputedStyle: i
}))
return !0;
l = l.parentElement;
}
return !1;
}
function u_(e) {
var t, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.getComputedStyle, i = n === void 0 ? (t = e.ownerDocument.
defaultView) === null || t === void 0 ? void 0 : t.getComputedStyle : n;
if (typeof i != "function")
throw new TypeError("Owner document of the element needs to have an associated window.");
return e.hidden === !0 || e.getAttribute("aria-hidden") === "true" || i(e).display === "none";
}
var c_ = Re(() => {
o(wD, "isInaccessible");
o(u_, "isSubtreeInaccessible");
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/is-disabled.mjs
function d_(e) {
var t = Te(e);
return _D.has(t) && e.hasAttribute("disabled") ? !0 : e.getAttribute("aria-disabled") === "true";
}
var _D, f_ = Re(() => {
ho();
_D = /* @__PURE__ */ new Set(["button", "fieldset", "input", "optgroup", "option", "select", "textarea"]);
o(d_, "isDisabled");
});
// ../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/index.mjs
var uh = {};
no(uh, {
computeAccessibleDescription: () => i_,
computeAccessibleName: () => s_,
getRole: () => mo,
isDisabled: () => d_,
isInaccessible: () => wD,
isSubtreeInaccessible: () => u_
});
var ch = Re(() => {
a_();
l_();
ho();
c_();
f_();
});
// ../node_modules/aria-query/lib/util/iteratorProxy.js
var p_ = f((ia) => {
"use strict";
Object.defineProperty(ia, "__esModule", {
value: !0
});
ia.default = void 0;
function CD() {
var e = this, t = 0, r = {
"@@iterator": /* @__PURE__ */ o(function() {
return r;
}, "iterator"),
next: /* @__PURE__ */ o(function() {
if (t < e.length) {
var i = e[t];
return t = t + 1, {
done: !1,
value: i
};
} else
return {
done: !0
};
}, "next")
};
return r;
}
o(CD, "iteratorProxy");
var cbe = ia.default = CD;
});
// ../node_modules/aria-query/lib/util/iterationDecorator.js
var un = f((fh) => {
"use strict";
Object.defineProperty(fh, "__esModule", {
value: !0
});
fh.default = xD;
var qD = PD(p_());
function PD(e) {
return e && e.__esModule ? e : { default: e };
}
o(PD, "_interopRequireDefault");
function dh(e) {
"@babel/helpers - typeof";
return dh = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, dh(e);
}
o(dh, "_typeof");
function xD(e, t) {
return typeof Symbol == "function" && dh(Symbol.iterator) === "symbol" && Object.defineProperty(e, Symbol.iterator, {
value: qD.default.bind(t)
}), e;
}
o(xD, "iterationDecorator");
});
// ../node_modules/aria-query/lib/ariaPropsMap.js
var h_ = f((aa) => {
"use strict";
Object.defineProperty(aa, "__esModule", {
value: !0
});
aa.default = void 0;
var RD = TD(un());
function TD(e) {
return e && e.__esModule ? e : { default: e };
}
o(TD, "_interopRequireDefault");
function ph(e, t) {
return AD(e) || MD(e, t) || SD(e, t) || OD();
}
o(ph, "_slicedToArray");
function OD() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
o(OD, "_nonIterableRest");
function SD(e, t) {
if (e) {
if (typeof e == "string") return m_(e, t);
var r = {}.toString.call(e).slice(8, -1);
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.
test(r) ? m_(e, t) : void 0;
}
}
o(SD, "_unsupportedIterableToArray");
function m_(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
return n;
}
o(m_, "_arrayLikeToArray");
function MD(e, t) {
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (r != null) {
var n, i, a, s, l = [], c = !0, u = !1;
try {
if (a = (r = r.call(e)).next, t === 0) {
if (Object(r) !== r) return;
c = !1;
} else for (; !(c = (n = a.call(r)).done) && (l.push(n.value), l.length !== t); c = !0) ;
} catch (d) {
u = !0, i = d;
} finally {
try {
if (!c && r.return != null