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

210 lines
6.1 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 080d73f6a8a7055f.15232f16bf.js
* Module id: 320252
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (t) => {
"use strict";
var e,
n = t.i(842541),
r = 180 / Math.PI,
i = {
translateX: 0,
translateY: 0,
rotate: 0,
skewX: 0,
scaleX: 1,
scaleY: 1,
};
function o(t, e, n, i, o, a) {
var u, s, l;
return (
(u = Math.sqrt(t * t + e * e)) && ((t /= u), (e /= u)),
(l = t * n + e * i) && ((n -= t * l), (i -= e * l)),
(s = Math.sqrt(n * n + i * i)) && ((n /= s), (i /= s), (l /= s)),
t * i < e * n && ((t = -t), (e = -e), (l = -l), (u = -u)),
{
translateX: o,
translateY: a,
rotate: Math.atan2(e, t) * r,
skewX: Math.atan(l) * r,
scaleX: u,
scaleY: s,
}
);
}
function a(t, e, r, i) {
function o(t) {
return t.length ? t.pop() + " " : "";
}
return function (a, u) {
var s,
l,
c,
f,
h = [],
p = [];
return (
(a = t(a)),
(u = t(u)),
!(function (t, i, o, a, u, s) {
if (t !== o || i !== a) {
var l = u.push("translate(", null, e, null, r);
s.push(
{ i: l - 4, x: (0, n.default)(t, o) },
{ i: l - 2, x: (0, n.default)(i, a) },
);
} else (o || a) && u.push("translate(" + o + e + a + r);
})(a.translateX, a.translateY, u.translateX, u.translateY, h, p),
(s = a.rotate),
(l = u.rotate),
s !== l
? (s - l > 180 ? (l += 360) : l - s > 180 && (s += 360),
p.push({
i: h.push(o(h) + "rotate(", null, i) - 2,
x: (0, n.default)(s, l),
}))
: l && h.push(o(h) + "rotate(" + l + i),
(c = a.skewX),
(f = u.skewX),
c !== f
? p.push({
i: h.push(o(h) + "skewX(", null, i) - 2,
x: (0, n.default)(c, f),
})
: f && h.push(o(h) + "skewX(" + f + i),
!(function (t, e, r, i, a, u) {
if (t !== r || e !== i) {
var s = a.push(o(a) + "scale(", null, ",", null, ")");
u.push(
{ i: s - 4, x: (0, n.default)(t, r) },
{ i: s - 2, x: (0, n.default)(e, i) },
);
} else
(1 !== r || 1 !== i) &&
a.push(o(a) + "scale(" + r + "," + i + ")");
})(a.scaleX, a.scaleY, u.scaleX, u.scaleY, h, p),
(a = u = null),
function (t) {
for (var e, n = -1, r = p.length; ++n < r; )
h[(e = p[n]).i] = e.x(t);
return h.join("");
}
);
};
}
var u = a(
function (t) {
let e = new (
"function" == typeof DOMMatrix ? DOMMatrix : WebKitCSSMatrix
)(t + "");
return e.isIdentity ? i : o(e.a, e.b, e.c, e.d, e.e, e.f);
},
"px, ",
"px)",
"deg)",
),
s = a(
function (t) {
return null == t
? i
: (e ||
(e = document.createElementNS(
"http://www.w3.org/2000/svg",
"g",
)),
e.setAttribute("transform", t),
(t = e.transform.baseVal.consolidate()))
? o((t = t.matrix).a, t.b, t.c, t.d, t.e, t.f)
: i;
},
", ",
")",
")",
);
t.s(
["interpolateTransformCss", () => u, "interpolateTransformSvg", () => s],
425105,
);
var l = t.i(793560);
t.s(["namespace", () => l.default], 588044);
var c = t.i(533091);
function f(t, e, n) {
var r = t._id;
return (
t.each(function () {
var t = (0, c.set)(this, r);
(t.value || (t.value = {}))[e] = n.apply(this, arguments);
}),
function (t) {
return (0, c.get)(t, r).value[e];
}
);
}
t.s(
[
"default",
0,
function (t, e) {
var n = this._id;
if (((t += ""), arguments.length < 2)) {
for (
var r, i = (0, c.get)(this.node(), n).tween, o = 0, a = i.length;
o < a;
++o
)
if ((r = i[o]).name === t) return r.value;
return null;
}
return this.each(
(null == e
? function (t, e) {
var n, r;
return function () {
var i = (0, c.set)(this, t),
o = i.tween;
if (o !== n) {
r = n = o;
for (var a = 0, u = r.length; a < u; ++a)
if (r[a].name === e) {
(r = r.slice()).splice(a, 1);
break;
}
}
i.tween = r;
};
}
: function (t, e, n) {
var r, i;
if ("function" != typeof n) throw Error();
return function () {
var o = (0, c.set)(this, t),
a = o.tween;
if (a !== r) {
i = (r = a).slice();
for (
var u = { name: e, value: n }, s = 0, l = i.length;
s < l;
++s
)
if (i[s].name === e) {
i[s] = u;
break;
}
s === l && i.push(u);
}
o.tween = i;
};
})(n, t, e),
);
},
"tweenValue",
() => f,
],
320252,
);
};
export default moduleFactory;