Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

848 lines
25 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 080d73f6a8a7055f.15232f16bf.js
* Module id: 692423
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (t) => {
"use strict";
var e = { value: () => {} };
function n() {
for (var t, e = 0, n = arguments.length, i = {}; e < n; ++e) {
if (!(t = arguments[e] + "") || t in i || /[\s.]/.test(t))
throw Error("illegal type: " + t);
i[t] = [];
}
return new r(i);
}
function r(t) {
this._ = t;
}
function i(t, n, r) {
for (var i = 0, o = t.length; i < o; ++i)
if (t[i].name === n) {
(t[i] = e), (t = t.slice(0, i).concat(t.slice(i + 1)));
break;
}
return null != r && t.push({ name: n, value: r }), t;
}
function o() {}
function a(t) {
return null == t
? o
: function () {
return this.querySelector(t);
};
}
function u() {
return [];
}
function s(t) {
return null == t
? u
: function () {
return this.querySelectorAll(t);
};
}
function l(t) {
return function () {
return this.matches(t);
};
}
function c(t) {
return function (e) {
return e.matches(t);
};
}
(r.prototype = n.prototype =
{
constructor: r,
on: function (t, e) {
var n,
r = this._,
o = (t + "")
.trim()
.split(/^|\s+/)
.map(function (t) {
var e = "",
n = t.indexOf(".");
if (
(n >= 0 && ((e = t.slice(n + 1)), (t = t.slice(0, n))),
t && !r.hasOwnProperty(t))
)
throw Error("unknown type: " + t);
return { type: t, name: e };
}),
a = -1,
u = o.length;
if (arguments.length < 2) {
for (; ++a < u; )
if (
(n = (t = o[a]).type) &&
(n = (function (t, e) {
for (var n, r = 0, i = t.length; r < i; ++r)
if ((n = t[r]).name === e) return n.value;
})(r[n], t.name))
)
return n;
return;
}
if (null != e && "function" != typeof e)
throw Error("invalid callback: " + e);
for (; ++a < u; )
if ((n = (t = o[a]).type)) r[n] = i(r[n], t.name, e);
else if (null == e) for (n in r) r[n] = i(r[n], t.name, null);
return this;
},
copy: function () {
var t = {},
e = this._;
for (var n in e) t[n] = e[n].slice();
return new r(t);
},
call: function (t, e) {
if ((n = arguments.length - 2) > 0)
for (var n, r, i = Array(n), o = 0; o < n; ++o)
i[o] = arguments[o + 2];
if (!this._.hasOwnProperty(t)) throw Error("unknown type: " + t);
for (r = this._[t], o = 0, n = r.length; o < n; ++o)
r[o].value.apply(e, i);
},
apply: function (t, e, n) {
if (!this._.hasOwnProperty(t)) throw Error("unknown type: " + t);
for (var r = this._[t], i = 0, o = r.length; i < o; ++i)
r[i].value.apply(e, n);
},
}),
t.s(["dispatch", 0, n], 8164),
t.s(["Selection", () => L, "default", () => G, "root", () => H], 247699),
t.s(["default", 0, a], 483560),
t.s(["default", 0, s], 657531),
t.s(["childMatcher", () => c, "default", 0, l], 82258);
var f = Array.prototype.find;
function h() {
return this.firstElementChild;
}
var p = Array.prototype.filter;
function d() {
return Array.from(this.children);
}
function v(t) {
return Array(t.length);
}
function m(t, e) {
(this.ownerDocument = t.ownerDocument),
(this.namespaceURI = t.namespaceURI),
(this._next = null),
(this._parent = t),
(this.__data__ = e);
}
function y(t, e, n, r, i, o) {
for (var a, u = 0, s = e.length, l = o.length; u < l; ++u)
(a = e[u])
? ((a.__data__ = o[u]), (r[u] = a))
: (n[u] = new m(t, o[u]));
for (; u < s; ++u) (a = e[u]) && (i[u] = a);
}
function g(t, e, n, r, i, o, a) {
var u,
s,
l,
c = new Map(),
f = e.length,
h = o.length,
p = Array(f);
for (u = 0; u < f; ++u)
(s = e[u]) &&
((p[u] = l = a.call(s, s.__data__, u, e) + ""),
c.has(l) ? (i[u] = s) : c.set(l, s));
for (u = 0; u < h; ++u)
(l = a.call(t, o[u], u, o) + ""),
(s = c.get(l))
? ((r[u] = s), (s.__data__ = o[u]), c.delete(l))
: (n[u] = new m(t, o[u]));
for (u = 0; u < f; ++u) (s = e[u]) && c.get(p[u]) === s && (i[u] = s);
}
function _(t) {
return t.__data__;
}
function w(t, e) {
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
}
m.prototype = {
constructor: m,
appendChild: function (t) {
return this._parent.insertBefore(t, this._next);
},
insertBefore: function (t, e) {
return this._parent.insertBefore(t, e);
},
querySelector: function (t) {
return this._parent.querySelector(t);
},
querySelectorAll: function (t) {
return this._parent.querySelectorAll(t);
},
};
var x = "http://www.w3.org/1999/xhtml";
let b = {
svg: "http://www.w3.org/2000/svg",
xhtml: x,
xlink: "http://www.w3.org/1999/xlink",
xml: "http://www.w3.org/XML/1998/namespace",
xmlns: "http://www.w3.org/2000/xmlns/",
};
function k(t) {
var e = (t += ""),
n = e.indexOf(":");
return (
n >= 0 && "xmlns" !== (e = t.slice(0, n)) && (t = t.slice(n + 1)),
b.hasOwnProperty(e) ? { space: b[e], local: t } : t
);
}
function A(t) {
return (
(t.ownerDocument && t.ownerDocument.defaultView) ||
(t.document && t) ||
t.defaultView
);
}
function M(t, e, n) {
return arguments.length > 1
? this.each(
(null == e
? function (t) {
return function () {
this.style.removeProperty(t);
};
}
: "function" == typeof e
? function (t, e, n) {
return function () {
var r = e.apply(this, arguments);
null == r
? this.style.removeProperty(t)
: this.style.setProperty(t, r, n);
};
}
: function (t, e, n) {
return function () {
this.style.setProperty(t, e, n);
};
})(t, e, null == n ? "" : n),
)
: N(this.node(), t);
}
function N(t, e) {
return (
t.style.getPropertyValue(e) ||
A(t).getComputedStyle(t, null).getPropertyValue(e)
);
}
function E(t) {
return t.trim().split(/^|\s+/);
}
function z(t) {
return t.classList || new S(t);
}
function S(t) {
(this._node = t), (this._names = E(t.getAttribute("class") || ""));
}
function T(t, e) {
for (var n = z(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
}
function $(t, e) {
for (var n = z(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
}
function C() {
this.textContent = "";
}
function P() {
this.innerHTML = "";
}
function V() {
this.nextSibling && this.parentNode.appendChild(this);
}
function X() {
this.previousSibling &&
this.parentNode.insertBefore(this, this.parentNode.firstChild);
}
function q(t) {
var e = k(t);
return (
e.local
? function (t) {
return function () {
return this.ownerDocument.createElementNS(t.space, t.local);
};
}
: function (t) {
return function () {
var e = this.ownerDocument,
n = this.namespaceURI;
return n === x && e.documentElement.namespaceURI === x
? e.createElement(t)
: e.createElementNS(n, t);
};
}
)(e);
}
function R() {
return null;
}
function D() {
var t = this.parentNode;
t && t.removeChild(this);
}
function O() {
var t = this.cloneNode(!1),
e = this.parentNode;
return e ? e.insertBefore(t, this.nextSibling) : t;
}
function Y() {
var t = this.cloneNode(!0),
e = this.parentNode;
return e ? e.insertBefore(t, this.nextSibling) : t;
}
function I(t) {
return function () {
var e = this.__on;
if (e) {
for (var n, r = 0, i = -1, o = e.length; r < o; ++r)
((n = e[r]), (t.type && n.type !== t.type) || n.name !== t.name)
? (e[++i] = n)
: this.removeEventListener(n.type, n.listener, n.options);
++i ? (e.length = i) : delete this.__on;
}
};
}
function B(t, e, n) {
return function () {
var r,
i = this.__on,
o = function (t) {
e.call(this, t, this.__data__);
};
if (i) {
for (var a = 0, u = i.length; a < u; ++a)
if ((r = i[a]).type === t.type && r.name === t.name) {
this.removeEventListener(r.type, r.listener, r.options),
this.addEventListener(
r.type,
(r.listener = o),
(r.options = n),
),
(r.value = e);
return;
}
}
this.addEventListener(t.type, o, n),
(r = {
type: t.type,
name: t.name,
value: e,
listener: o,
options: n,
}),
i ? i.push(r) : (this.__on = [r]);
};
}
function j(t, e, n) {
var r = A(t),
i = r.CustomEvent;
"function" == typeof i
? (i = new i(e, n))
: ((i = r.document.createEvent("Event")),
n
? (i.initEvent(e, n.bubbles, n.cancelable), (i.detail = n.detail))
: i.initEvent(e, !1, !1)),
t.dispatchEvent(i);
}
t.s(["default", 0, k], 793560),
t.s(["default", 0, M, "styleValue", () => N], 107949),
(S.prototype = {
add: function (t) {
0 > this._names.indexOf(t) &&
(this._names.push(t),
this._node.setAttribute("class", this._names.join(" ")));
},
remove: function (t) {
var e = this._names.indexOf(t);
e >= 0 &&
(this._names.splice(e, 1),
this._node.setAttribute("class", this._names.join(" ")));
},
contains: function (t) {
return this._names.indexOf(t) >= 0;
},
});
var H = [null];
function L(t, e) {
(this._groups = t), (this._parents = e);
}
function U() {
return new L([[document.documentElement]], H);
}
L.prototype = U.prototype = {
constructor: L,
select: function (t) {
"function" != typeof t && (t = a(t));
for (
var e = this._groups, n = e.length, r = Array(n), i = 0;
i < n;
++i
)
for (
var o, u, s = e[i], l = s.length, c = (r[i] = Array(l)), f = 0;
f < l;
++f
)
(o = s[f]) &&
(u = t.call(o, o.__data__, f, s)) &&
("__data__" in o && (u.__data__ = o.__data__), (c[f] = u));
return new L(r, this._parents);
},
selectAll: function (t) {
if ("function" == typeof t) {
var e;
(e = t),
(t = function () {
var t;
return (
(t = e.apply(this, arguments)),
null == t ? [] : Array.isArray(t) ? t : Array.from(t)
);
});
} else t = s(t);
for (
var n = this._groups, r = n.length, i = [], o = [], a = 0;
a < r;
++a
)
for (var u, l = n[a], c = l.length, f = 0; f < c; ++f)
(u = l[f]) && (i.push(t.call(u, u.__data__, f, l)), o.push(u));
return new L(i, o);
},
selectChild: function (t) {
var e;
return this.select(
null == t
? h
: ((e = "function" == typeof t ? t : c(t)),
function () {
return f.call(this.children, e);
}),
);
},
selectChildren: function (t) {
var e;
return this.selectAll(
null == t
? d
: ((e = "function" == typeof t ? t : c(t)),
function () {
return p.call(this.children, e);
}),
);
},
filter: function (t) {
"function" != typeof t && (t = l(t));
for (
var e = this._groups, n = e.length, r = Array(n), i = 0;
i < n;
++i
)
for (
var o, a = e[i], u = a.length, s = (r[i] = []), c = 0;
c < u;
++c
)
(o = a[c]) && t.call(o, o.__data__, c, a) && s.push(o);
return new L(r, this._parents);
},
data: function (t, e) {
if (!arguments.length) return Array.from(this, _);
var n = e ? g : y,
r = this._parents,
i = this._groups;
"function" != typeof t &&
((x = t),
(t = function () {
return x;
}));
for (
var o = i.length, a = Array(o), u = Array(o), s = Array(o), l = 0;
l < o;
++l
) {
var c = r[l],
f = i[l],
h = f.length,
p =
"object" == typeof (w = t.call(c, c && c.__data__, l, r)) &&
"length" in w
? w
: Array.from(w),
d = p.length,
v = (u[l] = Array(d)),
m = (a[l] = Array(d));
n(c, f, v, m, (s[l] = Array(h)), p, e);
for (var w, x, b, k, A = 0, M = 0; A < d; ++A)
if ((b = v[A])) {
for (A >= M && (M = A + 1); !(k = m[M]) && ++M < d; );
b._next = k || null;
}
}
return ((a = new L(a, r))._enter = u), (a._exit = s), a;
},
enter: function () {
return new L(this._enter || this._groups.map(v), this._parents);
},
exit: function () {
return new L(this._exit || this._groups.map(v), this._parents);
},
join: function (t, e, n) {
var r = this.enter(),
i = this,
o = this.exit();
return (
"function" == typeof t
? (r = t(r)) && (r = r.selection())
: (r = r.append(t + "")),
null != e && (i = e(i)) && (i = i.selection()),
null == n ? o.remove() : n(o),
r && i ? r.merge(i).order() : i
);
},
merge: function (t) {
for (
var e = t.selection ? t.selection() : t,
n = this._groups,
r = e._groups,
i = n.length,
o = r.length,
a = Math.min(i, o),
u = Array(i),
s = 0;
s < a;
++s
)
for (
var l,
c = n[s],
f = r[s],
h = c.length,
p = (u[s] = Array(h)),
d = 0;
d < h;
++d
)
(l = c[d] || f[d]) && (p[d] = l);
for (; s < i; ++s) u[s] = n[s];
return new L(u, this._parents);
},
selection: function () {
return this;
},
order: function () {
for (var t = this._groups, e = -1, n = t.length; ++e < n; )
for (var r, i = t[e], o = i.length - 1, a = i[o]; --o >= 0; )
(r = i[o]) &&
(a &&
4 ^ r.compareDocumentPosition(a) &&
a.parentNode.insertBefore(r, a),
(a = r));
return this;
},
sort: function (t) {
function e(e, n) {
return e && n ? t(e.__data__, n.__data__) : !e - !n;
}
t || (t = w);
for (
var n = this._groups, r = n.length, i = Array(r), o = 0;
o < r;
++o
) {
for (
var a, u = n[o], s = u.length, l = (i[o] = Array(s)), c = 0;
c < s;
++c
)
(a = u[c]) && (l[c] = a);
l.sort(e);
}
return new L(i, this._parents).order();
},
call: function () {
var t = arguments[0];
return (arguments[0] = this), t.apply(null, arguments), this;
},
nodes: function () {
return Array.from(this);
},
node: function () {
for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
for (var r = t[e], i = 0, o = r.length; i < o; ++i) {
var a = r[i];
if (a) return a;
}
return null;
},
size: function () {
let t = 0;
for (let e of this) ++t;
return t;
},
empty: function () {
return !this.node();
},
each: function (t) {
for (var e = this._groups, n = 0, r = e.length; n < r; ++n)
for (var i, o = e[n], a = 0, u = o.length; a < u; ++a)
(i = o[a]) && t.call(i, i.__data__, a, o);
return this;
},
attr: function (t, e) {
var n = k(t);
if (arguments.length < 2) {
var r = this.node();
return n.local
? r.getAttributeNS(n.space, n.local)
: r.getAttribute(n);
}
return this.each(
(null == e
? n.local
? function (t) {
return function () {
this.removeAttributeNS(t.space, t.local);
};
}
: function (t) {
return function () {
this.removeAttribute(t);
};
}
: "function" == typeof e
? n.local
? function (t, e) {
return function () {
var n = e.apply(this, arguments);
null == n
? this.removeAttributeNS(t.space, t.local)
: this.setAttributeNS(t.space, t.local, n);
};
}
: function (t, e) {
return function () {
var n = e.apply(this, arguments);
null == n
? this.removeAttribute(t)
: this.setAttribute(t, n);
};
}
: n.local
? function (t, e) {
return function () {
this.setAttributeNS(t.space, t.local, e);
};
}
: function (t, e) {
return function () {
this.setAttribute(t, e);
};
})(n, e),
);
},
style: M,
property: function (t, e) {
return arguments.length > 1
? this.each(
(null == e
? function (t) {
return function () {
delete this[t];
};
}
: "function" == typeof e
? function (t, e) {
return function () {
var n = e.apply(this, arguments);
null == n ? delete this[t] : (this[t] = n);
};
}
: function (t, e) {
return function () {
this[t] = e;
};
})(t, e),
)
: this.node()[t];
},
classed: function (t, e) {
var n = E(t + "");
if (arguments.length < 2) {
for (var r = z(this.node()), i = -1, o = n.length; ++i < o; )
if (!r.contains(n[i])) return !1;
return !0;
}
return this.each(
("function" == typeof e
? function (t, e) {
return function () {
(e.apply(this, arguments) ? T : $)(this, t);
};
}
: e
? function (t) {
return function () {
T(this, t);
};
}
: function (t) {
return function () {
$(this, t);
};
})(n, e),
);
},
text: function (t) {
return arguments.length
? this.each(
null == t
? C
: ("function" == typeof t
? function (t) {
return function () {
var e = t.apply(this, arguments);
this.textContent = null == e ? "" : e;
};
}
: function (t) {
return function () {
this.textContent = t;
};
})(t),
)
: this.node().textContent;
},
html: function (t) {
return arguments.length
? this.each(
null == t
? P
: ("function" == typeof t
? function (t) {
return function () {
var e = t.apply(this, arguments);
this.innerHTML = null == e ? "" : e;
};
}
: function (t) {
return function () {
this.innerHTML = t;
};
})(t),
)
: this.node().innerHTML;
},
raise: function () {
return this.each(V);
},
lower: function () {
return this.each(X);
},
append: function (t) {
var e = "function" == typeof t ? t : q(t);
return this.select(function () {
return this.appendChild(e.apply(this, arguments));
});
},
insert: function (t, e) {
var n = "function" == typeof t ? t : q(t),
r = null == e ? R : "function" == typeof e ? e : a(e);
return this.select(function () {
return this.insertBefore(
n.apply(this, arguments),
r.apply(this, arguments) || null,
);
});
},
remove: function () {
return this.each(D);
},
clone: function (t) {
return this.select(t ? Y : O);
},
datum: function (t) {
return arguments.length
? this.property("__data__", t)
: this.node().__data__;
},
on: function (t, e, n) {
var r,
i,
o = (t + "")
.trim()
.split(/^|\s+/)
.map(function (t) {
var e = "",
n = t.indexOf(".");
return (
n >= 0 && ((e = t.slice(n + 1)), (t = t.slice(0, n))),
{ type: t, name: e }
);
}),
a = o.length;
if (arguments.length < 2) {
var u = this.node().__on;
if (u) {
for (var s, l = 0, c = u.length; l < c; ++l)
for (r = 0, s = u[l]; r < a; ++r)
if ((i = o[r]).type === s.type && i.name === s.name)
return s.value;
}
return;
}
for (r = 0, u = e ? B : I; r < a; ++r) this.each(u(o[r], e, n));
return this;
},
dispatch: function (t, e) {
return this.each(
("function" == typeof e
? function (t, e) {
return function () {
return j(this, t, e.apply(this, arguments));
};
}
: function (t, e) {
return function () {
return j(this, t, e);
};
})(t, e),
);
},
[Symbol.iterator]: function* () {
for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
for (var r, i = t[e], o = 0, a = i.length; o < a; ++o)
(r = i[o]) && (yield r);
},
};
let G = U;
t.s(
[
"select",
0,
function (t) {
return "string" == typeof t
? new L([[document.querySelector(t)]], [document.documentElement])
: new L([[t]], H);
},
],
692423,
);
};
export default moduleFactory;