wwl-ui-msg-yy
Version:
一个简单的ui组件库,elementui测试3
539 lines • 1.97 MB
JavaScript
import { resolveComponent as Yg, openBlock as Mf, createElementBlock as Af, createElementVNode as Fd, renderSlot as L1, createVNode as Jg, withCtx as Kg, createTextVNode as Qg, Fragment as k1, ref as Hg, normalizeClass as O1, unref as Wg, toDisplayString as F1 } from "vue";
const If = (Fi, vi) => {
const ki = Fi.__vccOpts || Fi;
for (const [Fr, ao] of vi)
ki[Fr] = ao;
return ki;
}, B1 = {
//一定要写组件名
name: "vue-button"
}, N1 = { class: "btn" };
function V1(Fi, vi, ki, Fr, ao, Lo) {
const ko = Yg("el-button");
return Mf(), Af("button", N1, [
Fd("span", null, [
L1(Fi.$slots, "default", {}, void 0, !0),
Jg(ko, { type: "success" }, {
default: Kg(() => vi[0] || (vi[0] = [
Qg("Success")
])),
_: 1
})
])
]);
}
const U1 = /* @__PURE__ */ If(B1, [["render", V1], ["__scopeId", "data-v-a08ed7f3"]]), j1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: U1
}, Symbol.toStringTag, { value: "Module" }));
var G1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function q1(Fi) {
return Fi && Fi.__esModule && Object.prototype.hasOwnProperty.call(Fi, "default") ? Fi.default : Fi;
}
var ey = { exports: {} };
(function(Fi, vi) {
(function(ki, Fr) {
Fi.exports = Fr();
})(G1, function() {
var ki, Fr, ao;
function Lo(s, Ji) {
if (!ki)
ki = Ji;
else if (!Fr)
Fr = Ji;
else {
var Br = "self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; (" + ki + ")(sharedChunk); (" + Fr + ")(sharedChunk); self.onerror = null;", Ei = {};
ki(Ei), ao = Ji(Ei), typeof window < "u" && window && window.URL && window.URL.createObjectURL && (ao.workerUrl = window.URL.createObjectURL(new Blob([Br], { type: "text/javascript" })));
}
}
Lo(["exports"], function(s) {
function Ji(n) {
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
}
var Br, Ei = {}, cr = {};
function _r() {
if (Br) return cr;
Br = 1, Object.defineProperty(cr, "__esModule", { value: !0 }), cr.setMatrixArrayType = function(h) {
cr.ARRAY_TYPE = e = h;
}, cr.toRadian = function(h) {
return h * o;
}, cr.equals = function(h, a) {
return Math.abs(h - a) <= n * Math.max(1, Math.abs(h), Math.abs(a));
}, cr.RANDOM = cr.ARRAY_TYPE = cr.EPSILON = void 0;
var n = 1e-6;
cr.EPSILON = n;
var e = typeof Float32Array < "u" ? Float32Array : Array;
cr.ARRAY_TYPE = e;
var i = Math.random;
cr.RANDOM = i;
var o = Math.PI / 180;
return Math.hypot || (Math.hypot = function() {
for (var h = 0, a = arguments.length; a--; ) h += arguments[a] * arguments[a];
return Math.sqrt(h);
}), cr;
}
var Gn, mi = {};
function ri() {
if (Gn) return mi;
function n(a) {
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
return typeof u;
} : function(u) {
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
}, n(a);
}
Gn = 1, Object.defineProperty(mi, "__esModule", { value: !0 }), mi.create = function() {
var a = new e.ARRAY_TYPE(4);
return e.ARRAY_TYPE != Float32Array && (a[1] = 0, a[2] = 0), a[0] = 1, a[3] = 1, a;
}, mi.clone = function(a) {
var u = new e.ARRAY_TYPE(4);
return u[0] = a[0], u[1] = a[1], u[2] = a[2], u[3] = a[3], u;
}, mi.copy = function(a, u) {
return a[0] = u[0], a[1] = u[1], a[2] = u[2], a[3] = u[3], a;
}, mi.identity = function(a) {
return a[0] = 1, a[1] = 0, a[2] = 0, a[3] = 1, a;
}, mi.fromValues = function(a, u, m, x) {
var w = new e.ARRAY_TYPE(4);
return w[0] = a, w[1] = u, w[2] = m, w[3] = x, w;
}, mi.set = function(a, u, m, x, w) {
return a[0] = u, a[1] = m, a[2] = x, a[3] = w, a;
}, mi.transpose = function(a, u) {
if (a === u) {
var m = u[1];
a[1] = u[2], a[2] = m;
} else a[0] = u[0], a[1] = u[2], a[2] = u[1], a[3] = u[3];
return a;
}, mi.invert = function(a, u) {
var m = u[0], x = u[1], w = u[2], p = u[3], y = m * p - w * x;
return y ? (a[0] = p * (y = 1 / y), a[1] = -x * y, a[2] = -w * y, a[3] = m * y, a) : null;
}, mi.adjoint = function(a, u) {
var m = u[0];
return a[0] = u[3], a[1] = -u[1], a[2] = -u[2], a[3] = m, a;
}, mi.determinant = function(a) {
return a[0] * a[3] - a[2] * a[1];
}, mi.multiply = o, mi.rotate = function(a, u, m) {
var x = u[0], w = u[1], p = u[2], y = u[3], b = Math.sin(m), g = Math.cos(m);
return a[0] = x * g + p * b, a[1] = w * g + y * b, a[2] = x * -b + p * g, a[3] = w * -b + y * g, a;
}, mi.scale = function(a, u, m) {
var x = u[1], w = u[2], p = u[3], y = m[0], b = m[1];
return a[0] = u[0] * y, a[1] = x * y, a[2] = w * b, a[3] = p * b, a;
}, mi.fromRotation = function(a, u) {
var m = Math.sin(u), x = Math.cos(u);
return a[0] = x, a[1] = m, a[2] = -m, a[3] = x, a;
}, mi.fromScaling = function(a, u) {
return a[0] = u[0], a[1] = 0, a[2] = 0, a[3] = u[1], a;
}, mi.str = function(a) {
return "mat2(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")";
}, mi.frob = function(a) {
return Math.hypot(a[0], a[1], a[2], a[3]);
}, mi.LDU = function(a, u, m, x) {
return a[2] = x[2] / x[0], m[0] = x[0], m[1] = x[1], m[3] = x[3] - a[2] * m[1], [a, u, m];
}, mi.add = function(a, u, m) {
return a[0] = u[0] + m[0], a[1] = u[1] + m[1], a[2] = u[2] + m[2], a[3] = u[3] + m[3], a;
}, mi.subtract = h, mi.exactEquals = function(a, u) {
return a[0] === u[0] && a[1] === u[1] && a[2] === u[2] && a[3] === u[3];
}, mi.equals = function(a, u) {
var m = a[0], x = a[1], w = a[2], p = a[3], y = u[0], b = u[1], g = u[2], v = u[3];
return Math.abs(m - y) <= e.EPSILON * Math.max(1, Math.abs(m), Math.abs(y)) && Math.abs(x - b) <= e.EPSILON * Math.max(1, Math.abs(x), Math.abs(b)) && Math.abs(w - g) <= e.EPSILON * Math.max(1, Math.abs(w), Math.abs(g)) && Math.abs(p - v) <= e.EPSILON * Math.max(1, Math.abs(p), Math.abs(v));
}, mi.multiplyScalar = function(a, u, m) {
return a[0] = u[0] * m, a[1] = u[1] * m, a[2] = u[2] * m, a[3] = u[3] * m, a;
}, mi.multiplyScalarAndAdd = function(a, u, m, x) {
return a[0] = u[0] + m[0] * x, a[1] = u[1] + m[1] * x, a[2] = u[2] + m[2] * x, a[3] = u[3] + m[3] * x, a;
}, mi.sub = mi.mul = void 0;
var e = function(a, u) {
if (a && a.__esModule) return a;
if (a === null || n(a) !== "object" && typeof a != "function") return { default: a };
var m = i(void 0);
if (m && m.has(a)) return m.get(a);
var x = {}, w = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var p in a) if (p !== "default" && Object.prototype.hasOwnProperty.call(a, p)) {
var y = w ? Object.getOwnPropertyDescriptor(a, p) : null;
y && (y.get || y.set) ? Object.defineProperty(x, p, y) : x[p] = a[p];
}
return x.default = a, m && m.set(a, x), x;
}(_r());
function i(a) {
if (typeof WeakMap != "function") return null;
var u = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
return (i = function(x) {
return x ? m : u;
})(a);
}
function o(a, u, m) {
var x = u[0], w = u[1], p = u[2], y = u[3], b = m[0], g = m[1], v = m[2], S = m[3];
return a[0] = x * b + p * g, a[1] = w * b + y * g, a[2] = x * v + p * S, a[3] = w * v + y * S, a;
}
function h(a, u, m) {
return a[0] = u[0] - m[0], a[1] = u[1] - m[1], a[2] = u[2] - m[2], a[3] = u[3] - m[3], a;
}
return mi.mul = o, mi.sub = h, mi;
}
var gr, oi = {};
function lo() {
if (gr) return oi;
function n(a) {
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
return typeof u;
} : function(u) {
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
}, n(a);
}
gr = 1, Object.defineProperty(oi, "__esModule", { value: !0 }), oi.create = function() {
var a = new e.ARRAY_TYPE(6);
return e.ARRAY_TYPE != Float32Array && (a[1] = 0, a[2] = 0, a[4] = 0, a[5] = 0), a[0] = 1, a[3] = 1, a;
}, oi.clone = function(a) {
var u = new e.ARRAY_TYPE(6);
return u[0] = a[0], u[1] = a[1], u[2] = a[2], u[3] = a[3], u[4] = a[4], u[5] = a[5], u;
}, oi.copy = function(a, u) {
return a[0] = u[0], a[1] = u[1], a[2] = u[2], a[3] = u[3], a[4] = u[4], a[5] = u[5], a;
}, oi.identity = function(a) {
return a[0] = 1, a[1] = 0, a[2] = 0, a[3] = 1, a[4] = 0, a[5] = 0, a;
}, oi.fromValues = function(a, u, m, x, w, p) {
var y = new e.ARRAY_TYPE(6);
return y[0] = a, y[1] = u, y[2] = m, y[3] = x, y[4] = w, y[5] = p, y;
}, oi.set = function(a, u, m, x, w, p, y) {
return a[0] = u, a[1] = m, a[2] = x, a[3] = w, a[4] = p, a[5] = y, a;
}, oi.invert = function(a, u) {
var m = u[0], x = u[1], w = u[2], p = u[3], y = u[4], b = u[5], g = m * p - x * w;
return g ? (a[0] = p * (g = 1 / g), a[1] = -x * g, a[2] = -w * g, a[3] = m * g, a[4] = (w * b - p * y) * g, a[5] = (x * y - m * b) * g, a) : null;
}, oi.determinant = function(a) {
return a[0] * a[3] - a[1] * a[2];
}, oi.multiply = o, oi.rotate = function(a, u, m) {
var x = u[0], w = u[1], p = u[2], y = u[3], b = u[4], g = u[5], v = Math.sin(m), S = Math.cos(m);
return a[0] = x * S + p * v, a[1] = w * S + y * v, a[2] = x * -v + p * S, a[3] = w * -v + y * S, a[4] = b, a[5] = g, a;
}, oi.scale = function(a, u, m) {
var x = u[1], w = u[2], p = u[3], y = u[4], b = u[5], g = m[0], v = m[1];
return a[0] = u[0] * g, a[1] = x * g, a[2] = w * v, a[3] = p * v, a[4] = y, a[5] = b, a;
}, oi.translate = function(a, u, m) {
var x = u[0], w = u[1], p = u[2], y = u[3], b = u[4], g = u[5], v = m[0], S = m[1];
return a[0] = x, a[1] = w, a[2] = p, a[3] = y, a[4] = x * v + p * S + b, a[5] = w * v + y * S + g, a;
}, oi.fromRotation = function(a, u) {
var m = Math.sin(u), x = Math.cos(u);
return a[0] = x, a[1] = m, a[2] = -m, a[3] = x, a[4] = 0, a[5] = 0, a;
}, oi.fromScaling = function(a, u) {
return a[0] = u[0], a[1] = 0, a[2] = 0, a[3] = u[1], a[4] = 0, a[5] = 0, a;
}, oi.fromTranslation = function(a, u) {
return a[0] = 1, a[1] = 0, a[2] = 0, a[3] = 1, a[4] = u[0], a[5] = u[1], a;
}, oi.str = function(a) {
return "mat2d(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ")";
}, oi.frob = function(a) {
return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], 1);
}, oi.add = function(a, u, m) {
return a[0] = u[0] + m[0], a[1] = u[1] + m[1], a[2] = u[2] + m[2], a[3] = u[3] + m[3], a[4] = u[4] + m[4], a[5] = u[5] + m[5], a;
}, oi.subtract = h, oi.multiplyScalar = function(a, u, m) {
return a[0] = u[0] * m, a[1] = u[1] * m, a[2] = u[2] * m, a[3] = u[3] * m, a[4] = u[4] * m, a[5] = u[5] * m, a;
}, oi.multiplyScalarAndAdd = function(a, u, m, x) {
return a[0] = u[0] + m[0] * x, a[1] = u[1] + m[1] * x, a[2] = u[2] + m[2] * x, a[3] = u[3] + m[3] * x, a[4] = u[4] + m[4] * x, a[5] = u[5] + m[5] * x, a;
}, oi.exactEquals = function(a, u) {
return a[0] === u[0] && a[1] === u[1] && a[2] === u[2] && a[3] === u[3] && a[4] === u[4] && a[5] === u[5];
}, oi.equals = function(a, u) {
var m = a[0], x = a[1], w = a[2], p = a[3], y = a[4], b = a[5], g = u[0], v = u[1], S = u[2], A = u[3], C = u[4], R = u[5];
return Math.abs(m - g) <= e.EPSILON * Math.max(1, Math.abs(m), Math.abs(g)) && Math.abs(x - v) <= e.EPSILON * Math.max(1, Math.abs(x), Math.abs(v)) && Math.abs(w - S) <= e.EPSILON * Math.max(1, Math.abs(w), Math.abs(S)) && Math.abs(p - A) <= e.EPSILON * Math.max(1, Math.abs(p), Math.abs(A)) && Math.abs(y - C) <= e.EPSILON * Math.max(1, Math.abs(y), Math.abs(C)) && Math.abs(b - R) <= e.EPSILON * Math.max(1, Math.abs(b), Math.abs(R));
}, oi.sub = oi.mul = void 0;
var e = function(a, u) {
if (a && a.__esModule) return a;
if (a === null || n(a) !== "object" && typeof a != "function") return { default: a };
var m = i(void 0);
if (m && m.has(a)) return m.get(a);
var x = {}, w = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var p in a) if (p !== "default" && Object.prototype.hasOwnProperty.call(a, p)) {
var y = w ? Object.getOwnPropertyDescriptor(a, p) : null;
y && (y.get || y.set) ? Object.defineProperty(x, p, y) : x[p] = a[p];
}
return x.default = a, m && m.set(a, x), x;
}(_r());
function i(a) {
if (typeof WeakMap != "function") return null;
var u = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
return (i = function(x) {
return x ? m : u;
})(a);
}
function o(a, u, m) {
var x = u[0], w = u[1], p = u[2], y = u[3], b = u[4], g = u[5], v = m[0], S = m[1], A = m[2], C = m[3], R = m[4], L = m[5];
return a[0] = x * v + p * S, a[1] = w * v + y * S, a[2] = x * A + p * C, a[3] = w * A + y * C, a[4] = x * R + p * L + b, a[5] = w * R + y * L + g, a;
}
function h(a, u, m) {
return a[0] = u[0] - m[0], a[1] = u[1] - m[1], a[2] = u[2] - m[2], a[3] = u[3] - m[3], a[4] = u[4] - m[4], a[5] = u[5] - m[5], a;
}
return oi.mul = o, oi.sub = h, oi;
}
var Ns, Qt = {};
function Vs() {
if (Ns) return Qt;
function n(a) {
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
return typeof u;
} : function(u) {
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
}, n(a);
}
Ns = 1, Object.defineProperty(Qt, "__esModule", { value: !0 }), Qt.create = function() {
var a = new e.ARRAY_TYPE(9);
return e.ARRAY_TYPE != Float32Array && (a[1] = 0, a[2] = 0, a[3] = 0, a[5] = 0, a[6] = 0, a[7] = 0), a[0] = 1, a[4] = 1, a[8] = 1, a;
}, Qt.fromMat4 = function(a, u) {
return a[0] = u[0], a[1] = u[1], a[2] = u[2], a[3] = u[4], a[4] = u[5], a[5] = u[6], a[6] = u[8], a[7] = u[9], a[8] = u[10], a;
}, Qt.clone = function(a) {
var u = new e.ARRAY_TYPE(9);
return u[0] = a[0], u[1] = a[1], u[2] = a[2], u[3] = a[3], u[4] = a[4], u[5] = a[5], u[6] = a[6], u[7] = a[7], u[8] = a[8], u;
}, Qt.copy = function(a, u) {
return a[0] = u[0], a[1] = u[1], a[2] = u[2], a[3] = u[3], a[4] = u[4], a[5] = u[5], a[6] = u[6], a[7] = u[7], a[8] = u[8], a;
}, Qt.fromValues = function(a, u, m, x, w, p, y, b, g) {
var v = new e.ARRAY_TYPE(9);
return v[0] = a, v[1] = u, v[2] = m, v[3] = x, v[4] = w, v[5] = p, v[6] = y, v[7] = b, v[8] = g, v;
}, Qt.set = function(a, u, m, x, w, p, y, b, g, v) {
return a[0] = u, a[1] = m, a[2] = x, a[3] = w, a[4] = p, a[5] = y, a[6] = b, a[7] = g, a[8] = v, a;
}, Qt.identity = function(a) {
return a[0] = 1, a[1] = 0, a[2] = 0, a[3] = 0, a[4] = 1, a[5] = 0, a[6] = 0, a[7] = 0, a[8] = 1, a;
}, Qt.transpose = function(a, u) {
if (a === u) {
var m = u[1], x = u[2], w = u[5];
a[1] = u[3], a[2] = u[6], a[3] = m, a[5] = u[7], a[6] = x, a[7] = w;
} else a[0] = u[0], a[1] = u[3], a[2] = u[6], a[3] = u[1], a[4] = u[4], a[5] = u[7], a[6] = u[2], a[7] = u[5], a[8] = u[8];
return a;
}, Qt.invert = function(a, u) {
var m = u[0], x = u[1], w = u[2], p = u[3], y = u[4], b = u[5], g = u[6], v = u[7], S = u[8], A = S * y - b * v, C = -S * p + b * g, R = v * p - y * g, L = m * A + x * C + w * R;
return L ? (a[0] = A * (L = 1 / L), a[1] = (-S * x + w * v) * L, a[2] = (b * x - w * y) * L, a[3] = C * L, a[4] = (S * m - w * g) * L, a[5] = (-b * m + w * p) * L, a[6] = R * L, a[7] = (-v * m + x * g) * L, a[8] = (y * m - x * p) * L, a) : null;
}, Qt.adjoint = function(a, u) {
var m = u[0], x = u[1], w = u[2], p = u[3], y = u[4], b = u[5], g = u[6], v = u[7], S = u[8];
return a[0] = y * S - b * v, a[1] = w * v - x * S, a[2] = x * b - w * y, a[3] = b * g - p * S, a[4] = m * S - w * g, a[5] = w * p - m * b, a[6] = p * v - y * g, a[7] = x * g - m * v, a[8] = m * y - x * p, a;
}, Qt.determinant = function(a) {
var u = a[3], m = a[4], x = a[5], w = a[6], p = a[7], y = a[8];
return a[0] * (y * m - x * p) + a[1] * (-y * u + x * w) + a[2] * (p * u - m * w);
}, Qt.multiply = o, Qt.translate = function(a, u, m) {
var x = u[0], w = u[1], p = u[2], y = u[3], b = u[4], g = u[5], v = u[6], S = u[7], A = u[8], C = m[0], R = m[1];
return a[0] = x, a[1] = w, a[2] = p, a[3] = y, a[4] = b, a[5] = g, a[6] = C * x + R * y + v, a[7] = C * w + R * b + S, a[8] = C * p + R * g + A, a;
}, Qt.rotate = function(a, u, m) {
var x = u[0], w = u[1], p = u[2], y = u[3], b = u[4], g = u[5], v = u[6], S = u[7], A = u[8], C = Math.sin(m), R = Math.cos(m);
return a[0] = R * x + C * y, a[1] = R * w + C * b, a[2] = R * p + C * g, a[3] = R * y - C * x, a[4] = R * b - C * w, a[5] = R * g - C * p, a[6] = v, a[7] = S, a[8] = A, a;
}, Qt.scale = function(a, u, m) {
var x = m[0], w = m[1];
return a[0] = x * u[0], a[1] = x * u[1], a[2] = x * u[2], a[3] = w * u[3], a[4] = w * u[4], a[5] = w * u[5], a[6] = u[6], a[7] = u[7], a[8] = u[8], a;
}, Qt.fromTranslation = function(a, u) {
return a[0] = 1, a[1] = 0, a[2] = 0, a[3] = 0, a[4] = 1, a[5] = 0, a[6] = u[0], a[7] = u[1], a[8] = 1, a;
}, Qt.fromRotation = function(a, u) {
var m = Math.sin(u), x = Math.cos(u);
return a[0] = x, a[1] = m, a[2] = 0, a[3] = -m, a[4] = x, a[5] = 0, a[6] = 0, a[7] = 0, a[8] = 1, a;
}, Qt.fromScaling = function(a, u) {
return a[0] = u[0], a[1] = 0, a[2] = 0, a[3] = 0, a[4] = u[1], a[5] = 0, a[6] = 0, a[7] = 0, a[8] = 1, a;
}, Qt.fromMat2d = function(a, u) {
return a[0] = u[0], a[1] = u[1], a[2] = 0, a[3] = u[2], a[4] = u[3], a[5] = 0, a[6] = u[4], a[7] = u[5], a[8] = 1, a;
}, Qt.fromQuat = function(a, u) {
var m = u[0], x = u[1], w = u[2], p = u[3], y = m + m, b = x + x, g = w + w, v = m * y, S = x * y, A = x * b, C = w * y, R = w * b, L = w * g, z = p * y, O = p * b, F = p * g;
return a[0] = 1 - A - L, a[3] = S - F, a[6] = C + O, a[1] = S + F, a[4] = 1 - v - L, a[7] = R - z, a[2] = C - O, a[5] = R + z, a[8] = 1 - v - A, a;
}, Qt.normalFromMat4 = function(a, u) {
var m = u[0], x = u[1], w = u[2], p = u[3], y = u[4], b = u[5], g = u[6], v = u[7], S = u[8], A = u[9], C = u[10], R = u[11], L = u[12], z = u[13], O = u[14], F = u[15], G = m * b - x * y, J = m * g - w * y, $ = m * v - p * y, W = x * g - w * b, oe = x * v - p * b, H = w * v - p * g, re = S * z - A * L, ce = S * O - C * L, he = S * F - R * L, fe = A * O - C * z, xe = A * F - R * z, be = C * F - R * O, ge = G * be - J * xe + $ * fe + W * he - oe * ce + H * re;
return ge ? (a[0] = (b * be - g * xe + v * fe) * (ge = 1 / ge), a[1] = (g * he - y * be - v * ce) * ge, a[2] = (y * xe - b * he + v * re) * ge, a[3] = (w * xe - x * be - p * fe) * ge, a[4] = (m * be - w * he + p * ce) * ge, a[5] = (x * he - m * xe - p * re) * ge, a[6] = (z * H - O * oe + F * W) * ge, a[7] = (O * $ - L * H - F * J) * ge, a[8] = (L * oe - z * $ + F * G) * ge, a) : null;
}, Qt.projection = function(a, u, m) {
return a[0] = 2 / u, a[1] = 0, a[2] = 0, a[3] = 0, a[4] = -2 / m, a[5] = 0, a[6] = -1, a[7] = 1, a[8] = 1, a;
}, Qt.str = function(a) {
return "mat3(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ")";
}, Qt.frob = function(a) {
return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]);
}, Qt.add = function(a, u, m) {
return a[0] = u[0] + m[0], a[1] = u[1] + m[1], a[2] = u[2] + m[2], a[3] = u[3] + m[3], a[4] = u[4] + m[4], a[5] = u[5] + m[5], a[6] = u[6] + m[6], a[7] = u[7] + m[7], a[8] = u[8] + m[8], a;
}, Qt.subtract = h, Qt.multiplyScalar = function(a, u, m) {
return a[0] = u[0] * m, a[1] = u[1] * m, a[2] = u[2] * m, a[3] = u[3] * m, a[4] = u[4] * m, a[5] = u[5] * m, a[6] = u[6] * m, a[7] = u[7] * m, a[8] = u[8] * m, a;
}, Qt.multiplyScalarAndAdd = function(a, u, m, x) {
return a[0] = u[0] + m[0] * x, a[1] = u[1] + m[1] * x, a[2] = u[2] + m[2] * x, a[3] = u[3] + m[3] * x, a[4] = u[4] + m[4] * x, a[5] = u[5] + m[5] * x, a[6] = u[6] + m[6] * x, a[7] = u[7] + m[7] * x, a[8] = u[8] + m[8] * x, a;
}, Qt.exactEquals = function(a, u) {
return a[0] === u[0] && a[1] === u[1] && a[2] === u[2] && a[3] === u[3] && a[4] === u[4] && a[5] === u[5] && a[6] === u[6] && a[7] === u[7] && a[8] === u[8];
}, Qt.equals = function(a, u) {
var m = a[0], x = a[1], w = a[2], p = a[3], y = a[4], b = a[5], g = a[6], v = a[7], S = a[8], A = u[0], C = u[1], R = u[2], L = u[3], z = u[4], O = u[5], F = u[6], G = u[7], J = u[8];
return Math.abs(m - A) <= e.EPSILON * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(x - C) <= e.EPSILON * Math.max(1, Math.abs(x), Math.abs(C)) && Math.abs(w - R) <= e.EPSILON * Math.max(1, Math.abs(w), Math.abs(R)) && Math.abs(p - L) <= e.EPSILON * Math.max(1, Math.abs(p), Math.abs(L)) && Math.abs(y - z) <= e.EPSILON * Math.max(1, Math.abs(y), Math.abs(z)) && Math.abs(b - O) <= e.EPSILON * Math.max(1, Math.abs(b), Math.abs(O)) && Math.abs(g - F) <= e.EPSILON * Math.max(1, Math.abs(g), Math.abs(F)) && Math.abs(v - G) <= e.EPSILON * Math.max(1, Math.abs(v), Math.abs(G)) && Math.abs(S - J) <= e.EPSILON * Math.max(1, Math.abs(S), Math.abs(J));
}, Qt.sub = Qt.mul = void 0;
var e = function(a, u) {
if (a && a.__esModule) return a;
if (a === null || n(a) !== "object" && typeof a != "function") return { default: a };
var m = i(void 0);
if (m && m.has(a)) return m.get(a);
var x = {}, w = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var p in a) if (p !== "default" && Object.prototype.hasOwnProperty.call(a, p)) {
var y = w ? Object.getOwnPropertyDescriptor(a, p) : null;
y && (y.get || y.set) ? Object.defineProperty(x, p, y) : x[p] = a[p];
}
return x.default = a, m && m.set(a, x), x;
}(_r());
function i(a) {
if (typeof WeakMap != "function") return null;
var u = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
return (i = function(x) {
return x ? m : u;
})(a);
}
function o(a, u, m) {
var x = u[0], w = u[1], p = u[2], y = u[3], b = u[4], g = u[5], v = u[6], S = u[7], A = u[8], C = m[0], R = m[1], L = m[2], z = m[3], O = m[4], F = m[5], G = m[6], J = m[7], $ = m[8];
return a[0] = C * x + R * y + L * v, a[1] = C * w + R * b + L * S, a[2] = C * p + R * g + L * A, a[3] = z * x + O * y + F * v, a[4] = z * w + O * b + F * S, a[5] = z * p + O * g + F * A, a[6] = G * x + J * y + $ * v, a[7] = G * w + J * b + $ * S, a[8] = G * p + J * g + $ * A, a;
}
function h(a, u, m) {
return a[0] = u[0] - m[0], a[1] = u[1] - m[1], a[2] = u[2] - m[2], a[3] = u[3] - m[3], a[4] = u[4] - m[4], a[5] = u[5] - m[5], a[6] = u[6] - m[6], a[7] = u[7] - m[7], a[8] = u[8] - m[8], a;
}
return Qt.mul = o, Qt.sub = h, Qt;
}
var xn, xt = {};
function qn() {
if (xn) return xt;
function n(p) {
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(y) {
return typeof y;
} : function(y) {
return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
}, n(p);
}
xn = 1, Object.defineProperty(xt, "__esModule", { value: !0 }), xt.create = function() {
var p = new e.ARRAY_TYPE(16);
return e.ARRAY_TYPE != Float32Array && (p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[6] = 0, p[7] = 0, p[8] = 0, p[9] = 0, p[11] = 0, p[12] = 0, p[13] = 0, p[14] = 0), p[0] = 1, p[5] = 1, p[10] = 1, p[15] = 1, p;
}, xt.clone = function(p) {
var y = new e.ARRAY_TYPE(16);
return y[0] = p[0], y[1] = p[1], y[2] = p[2], y[3] = p[3], y[4] = p[4], y[5] = p[5], y[6] = p[6], y[7] = p[7], y[8] = p[8], y[9] = p[9], y[10] = p[10], y[11] = p[11], y[12] = p[12], y[13] = p[13], y[14] = p[14], y[15] = p[15], y;
}, xt.copy = function(p, y) {
return p[0] = y[0], p[1] = y[1], p[2] = y[2], p[3] = y[3], p[4] = y[4], p[5] = y[5], p[6] = y[6], p[7] = y[7], p[8] = y[8], p[9] = y[9], p[10] = y[10], p[11] = y[11], p[12] = y[12], p[13] = y[13], p[14] = y[14], p[15] = y[15], p;
}, xt.fromValues = function(p, y, b, g, v, S, A, C, R, L, z, O, F, G, J, $) {
var W = new e.ARRAY_TYPE(16);
return W[0] = p, W[1] = y, W[2] = b, W[3] = g, W[4] = v, W[5] = S, W[6] = A, W[7] = C, W[8] = R, W[9] = L, W[10] = z, W[11] = O, W[12] = F, W[13] = G, W[14] = J, W[15] = $, W;
}, xt.set = function(p, y, b, g, v, S, A, C, R, L, z, O, F, G, J, $, W) {
return p[0] = y, p[1] = b, p[2] = g, p[3] = v, p[4] = S, p[5] = A, p[6] = C, p[7] = R, p[8] = L, p[9] = z, p[10] = O, p[11] = F, p[12] = G, p[13] = J, p[14] = $, p[15] = W, p;
}, xt.identity = o, xt.transpose = function(p, y) {
if (p === y) {
var b = y[1], g = y[2], v = y[3], S = y[6], A = y[7], C = y[11];
p[1] = y[4], p[2] = y[8], p[3] = y[12], p[4] = b, p[6] = y[9], p[7] = y[13], p[8] = g, p[9] = S, p[11] = y[14], p[12] = v, p[13] = A, p[14] = C;
} else p[0] = y[0], p[1] = y[4], p[2] = y[8], p[3] = y[12], p[4] = y[1], p[5] = y[5], p[6] = y[9], p[7] = y[13], p[8] = y[2], p[9] = y[6], p[10] = y[10], p[11] = y[14], p[12] = y[3], p[13] = y[7], p[14] = y[11], p[15] = y[15];
return p;
}, xt.invert = function(p, y) {
var b = y[0], g = y[1], v = y[2], S = y[3], A = y[4], C = y[5], R = y[6], L = y[7], z = y[8], O = y[9], F = y[10], G = y[11], J = y[12], $ = y[13], W = y[14], oe = y[15], H = b * C - g * A, re = b * R - v * A, ce = b * L - S * A, he = g * R - v * C, fe = g * L - S * C, xe = v * L - S * R, be = z * $ - O * J, ge = z * W - F * J, ze = z * oe - G * J, Be = O * W - F * $, Ae = O * oe - G * $, Je = F * oe - G * W, qe = H * Je - re * Ae + ce * Be + he * ze - fe * ge + xe * be;
return qe ? (p[0] = (C * Je - R * Ae + L * Be) * (qe = 1 / qe), p[1] = (v * Ae - g * Je - S * Be) * qe, p[2] = ($ * xe - W * fe + oe * he) * qe, p[3] = (F * fe - O * xe - G * he) * qe, p[4] = (R * ze - A * Je - L * ge) * qe, p[5] = (b * Je - v * ze + S * ge) * qe, p[6] = (W * ce - J * xe - oe * re) * qe, p[7] = (z * xe - F * ce + G * re) * qe, p[8] = (A * Ae - C * ze + L * be) * qe, p[9] = (g * ze - b * Ae - S * be) * qe, p[10] = (J * fe - $ * ce + oe * H) * qe, p[11] = (O * ce - z * fe - G * H) * qe, p[12] = (C * ge - A * Be - R * be) * qe, p[13] = (b * Be - g * ge + v * be) * qe, p[14] = ($ * re - J * he - W * H) * qe, p[15] = (z * he - O * re + F * H) * qe, p) : null;
}, xt.adjoint = function(p, y) {
var b = y[0], g = y[1], v = y[2], S = y[3], A = y[4], C = y[5], R = y[6], L = y[7], z = y[8], O = y[9], F = y[10], G = y[11], J = y[12], $ = y[13], W = y[14], oe = y[15];
return p[0] = C * (F * oe - G * W) - O * (R * oe - L * W) + $ * (R * G - L * F), p[1] = -(g * (F * oe - G * W) - O * (v * oe - S * W) + $ * (v * G - S * F)), p[2] = g * (R * oe - L * W) - C * (v * oe - S * W) + $ * (v * L - S * R), p[3] = -(g * (R * G - L * F) - C * (v * G - S * F) + O * (v * L - S * R)), p[4] = -(A * (F * oe - G * W) - z * (R * oe - L * W) + J * (R * G - L * F)), p[5] = b * (F * oe - G * W) - z * (v * oe - S * W) + J * (v * G - S * F), p[6] = -(b * (R * oe - L * W) - A * (v * oe - S * W) + J * (v * L - S * R)), p[7] = b * (R * G - L * F) - A * (v * G - S * F) + z * (v * L - S * R), p[8] = A * (O * oe - G * $) - z * (C * oe - L * $) + J * (C * G - L * O), p[9] = -(b * (O * oe - G * $) - z * (g * oe - S * $) + J * (g * G - S * O)), p[10] = b * (C * oe - L * $) - A * (g * oe - S * $) + J * (g * L - S * C), p[11] = -(b * (C * G - L * O) - A * (g * G - S * O) + z * (g * L - S * C)), p[12] = -(A * (O * W - F * $) - z * (C * W - R * $) + J * (C * F - R * O)), p[13] = b * (O * W - F * $) - z * (g * W - v * $) + J * (g * F - v * O), p[14] = -(b * (C * W - R * $) - A * (g * W - v * $) + J * (g * R - v * C)), p[15] = b * (C * F - R * O) - A * (g * F - v * O) + z * (g * R - v * C), p;
}, xt.determinant = function(p) {
var y = p[0], b = p[1], g = p[2], v = p[3], S = p[4], A = p[5], C = p[6], R = p[7], L = p[8], z = p[9], O = p[10], F = p[11], G = p[12], J = p[13], $ = p[14], W = p[15];
return (y * A - b * S) * (O * W - F * $) - (y * C - g * S) * (z * W - F * J) + (y * R - v * S) * (z * $ - O * J) + (b * C - g * A) * (L * W - F * G) - (b * R - v * A) * (L * $ - O * G) + (g * R - v * C) * (L * J - z * G);
}, xt.multiply = h, xt.translate = function(p, y, b) {
var g, v, S, A, C, R, L, z, O, F, G, J, $ = b[0], W = b[1], oe = b[2];
return y === p ? (p[12] = y[0] * $ + y[4] * W + y[8] * oe + y[12], p[13] = y[1] * $ + y[5] * W + y[9] * oe + y[13], p[14] = y[2] * $ + y[6] * W + y[10] * oe + y[14], p[15] = y[3] * $ + y[7] * W + y[11] * oe + y[15]) : (v = y[1], S = y[2], A = y[3], C = y[4], R = y[5], L = y[6], z = y[7], O = y[8], F = y[9], G = y[10], J = y[11], p[0] = g = y[0], p[1] = v, p[2] = S, p[3] = A, p[4] = C, p[5] = R, p[6] = L, p[7] = z, p[8] = O, p[9] = F, p[10] = G, p[11] = J, p[12] = g * $ + C * W + O * oe + y[12], p[13] = v * $ + R * W + F * oe + y[13], p[14] = S * $ + L * W + G * oe + y[14], p[15] = A * $ + z * W + J * oe + y[15]), p;
}, xt.scale = function(p, y, b) {
var g = b[0], v = b[1], S = b[2];
return p[0] = y[0] * g, p[1] = y[1] * g, p[2] = y[2] * g, p[3] = y[3] * g, p[4] = y[4] * v, p[5] = y[5] * v, p[6] = y[6] * v, p[7] = y[7] * v, p[8] = y[8] * S, p[9] = y[9] * S, p[10] = y[10] * S, p[11] = y[11] * S, p[12] = y[12], p[13] = y[13], p[14] = y[14], p[15] = y[15], p;
}, xt.rotate = function(p, y, b, g) {
var v, S, A, C, R, L, z, O, F, G, J, $, W, oe, H, re, ce, he, fe, xe, be, ge, ze, Be, Ae = g[0], Je = g[1], qe = g[2], Ue = Math.hypot(Ae, Je, qe);
return Ue < e.EPSILON ? null : (Ae *= Ue = 1 / Ue, Je *= Ue, qe *= Ue, v = Math.sin(b), S = Math.cos(b), R = y[1], L = y[2], z = y[3], F = y[5], G = y[6], J = y[7], W = y[9], oe = y[10], H = y[11], re = Ae * Ae * (A = 1 - S) + S, fe = Ae * Je * A - qe * v, xe = Je * Je * A + S, be = qe * Je * A + Ae * v, ge = Ae * qe * A + Je * v, ze = Je * qe * A - Ae * v, Be = qe * qe * A + S, p[0] = (C = y[0]) * re + (O = y[4]) * (ce = Je * Ae * A + qe * v) + ($ = y[8]) * (he = qe * Ae * A - Je * v), p[1] = R * re + F * ce + W * he, p[2] = L * re + G * ce + oe * he, p[3] = z * re + J * ce + H * he, p[4] = C * fe + O * xe + $ * be, p[5] = R * fe + F * xe + W * be, p[6] = L * fe + G * xe + oe * be, p[7] = z * fe + J * xe + H * be, p[8] = C * ge + O * ze + $ * Be, p[9] = R * ge + F * ze + W * Be, p[10] = L * ge + G * ze + oe * Be, p[11] = z * ge + J * ze + H * Be, y !== p && (p[12] = y[12], p[13] = y[13], p[14] = y[14], p[15] = y[15]), p);
}, xt.rotateX = function(p, y, b) {
var g = Math.sin(b), v = Math.cos(b), S = y[4], A = y[5], C = y[6], R = y[7], L = y[8], z = y[9], O = y[10], F = y[11];
return y !== p && (p[0] = y[0], p[1] = y[1], p[2] = y[2], p[3] = y[3], p[12] = y[12], p[13] = y[13], p[14] = y[14], p[15] = y[15]), p[4] = S * v + L * g, p[5] = A * v + z * g, p[6] = C * v + O * g, p[7] = R * v + F * g, p[8] = L * v - S * g, p[9] = z * v - A * g, p[10] = O * v - C * g, p[11] = F * v - R * g, p;
}, xt.rotateY = function(p, y, b) {
var g = Math.sin(b), v = Math.cos(b), S = y[0], A = y[1], C = y[2], R = y[3], L = y[8], z = y[9], O = y[10], F = y[11];
return y !== p && (p[4] = y[4], p[5] = y[5], p[6] = y[6], p[7] = y[7], p[12] = y[12], p[13] = y[13], p[14] = y[14], p[15] = y[15]), p[0] = S * v - L * g, p[1] = A * v - z * g, p[2] = C * v - O * g, p[3] = R * v - F * g, p[8] = S * g + L * v, p[9] = A * g + z * v, p[10] = C * g + O * v, p[11] = R * g + F * v, p;
}, xt.rotateZ = function(p, y, b) {
var g = Math.sin(b), v = Math.cos(b), S = y[0], A = y[1], C = y[2], R = y[3], L = y[4], z = y[5], O = y[6], F = y[7];
return y !== p && (p[8] = y[8], p[9] = y[9], p[10] = y[10], p[11] = y[11], p[12] = y[12], p[13] = y[13], p[14] = y[14], p[15] = y[15]), p[0] = S * v + L * g, p[1] = A * v + z * g, p[2] = C * v + O * g, p[3] = R * v + F * g, p[4] = L * v - S * g, p[5] = z * v - A * g, p[6] = O * v - C * g, p[7] = F * v - R * g, p;
}, xt.fromTranslation = function(p, y) {
return p[0] = 1, p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[5] = 1, p[6] = 0, p[7] = 0, p[8] = 0, p[9] = 0, p[10] = 1, p[11] = 0, p[12] = y[0], p[13] = y[1], p[14] = y[2], p[15] = 1, p;
}, xt.fromScaling = function(p, y) {
return p[0] = y[0], p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[5] = y[1], p[6] = 0, p[7] = 0, p[8] = 0, p[9] = 0, p[10] = y[2], p[11] = 0, p[12] = 0, p[13] = 0, p[14] = 0, p[15] = 1, p;
}, xt.fromRotation = function(p, y, b) {
var g, v, S, A = b[0], C = b[1], R = b[2], L = Math.hypot(A, C, R);
return L < e.EPSILON ? null : (A *= L = 1 / L, C *= L, R *= L, g = Math.sin(y), v = Math.cos(y), p[0] = A * A * (S = 1 - v) + v, p[1] = C * A * S + R * g, p[2] = R * A * S - C * g, p[3] = 0, p[4] = A * C * S - R * g, p[5] = C * C * S + v, p[6] = R * C * S + A * g, p[7] = 0, p[8] = A * R * S + C * g, p[9] = C * R * S - A * g, p[10] = R * R * S + v, p[11] = 0, p[12] = 0, p[13] = 0, p[14] = 0, p[15] = 1, p);
}, xt.fromXRotation = function(p, y) {
var b = Math.sin(y), g = Math.cos(y);
return p[0] = 1, p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[5] = g, p[6] = b, p[7] = 0, p[8] = 0, p[9] = -b, p[10] = g, p[11] = 0, p[12] = 0, p[13] = 0, p[14] = 0, p[15] = 1, p;
}, xt.fromYRotation = function(p, y) {
var b = Math.sin(y), g = Math.cos(y);
return p[0] = g, p[1] = 0, p[2] = -b, p[3] = 0, p[4] = 0, p[5] = 1, p[6] = 0, p[7] = 0, p[8] = b, p[9] = 0, p[10] = g, p[11] = 0, p[12] = 0, p[13] = 0, p[14] = 0, p[15] = 1, p;
}, xt.fromZRotation = function(p, y) {
var b = Math.sin(y), g = Math.cos(y);
return p[0] = g, p[1] = b, p[2] = 0, p[3] = 0, p[4] = -b, p[5] = g, p[6] = 0, p[7] = 0, p[8] = 0, p[9] = 0, p[10] = 1, p[11] = 0, p[12] = 0, p[13] = 0, p[14] = 0, p[15] = 1, p;
}, xt.fromRotationTranslation = a, xt.fromQuat2 = function(p, y) {
var b = new e.ARRAY_TYPE(3), g = -y[0], v = -y[1], S = -y[2], A = y[3], C = y[4], R = y[5], L = y[6], z = y[7], O = g * g + v * v + S * S + A * A;
return O > 0 ? (b[0] = 2 * (C * A + z * g + R * S - L * v) / O, b[1] = 2 * (R * A + z * v + L * g - C * S) / O, b[2] = 2 * (L * A + z * S + C * v - R * g) / O) : (b[0] = 2 * (C * A + z * g + R * S - L * v), b[1] = 2 * (R * A + z * v + L * g - C * S), b[2] = 2 * (L * A + z * S + C * v - R * g)), a(p, y, b), p;
}, xt.getTranslation = function(p, y) {
return p[0] = y[12], p[1] = y[13], p[2] = y[14], p;
}, xt.getScaling = u, xt.getRotation = function(p, y) {
var b = new e.ARRAY_TYPE(3);
u(b, y);
var g = 1 / b[0], v = 1 / b[1], S = 1 / b[2], A = y[0] * g, C = y[1] * v, R = y[2] * S, L = y[4] * g, z = y[5] * v, O = y[6] * S, F = y[8] * g, G = y[9] * v, J = y[10] * S, $ = A + z + J, W = 0;
return $ > 0 ? (W = 2 * Math.sqrt($ + 1), p[3] = 0.25 * W, p[0] = (O - G) / W, p[1] = (F - R) / W, p[2] = (C - L) / W) : A > z && A > J ? (W = 2 * Math.sqrt(1 + A - z - J), p[3] = (O - G) / W, p[0] = 0.25 * W, p[1] = (C + L) / W, p[2] = (F + R) / W) : z > J ? (W = 2 * Math.sqrt(1 + z - A - J), p[3] = (F - R) / W, p[0] = (C + L) / W, p[1] = 0.25 * W, p[2] = (O + G) / W) : (W = 2 * Math.sqrt(1 + J - A - z), p[3] = (C - L) / W, p[0] = (F + R) / W, p[1] = (O + G) / W, p[2] = 0.25 * W), p;
}, xt.fromRotationTranslationScale = function(p, y, b, g) {
var v = y[0], S = y[1], A = y[2], C = y[3], R = v + v, L = S + S, z = A + A, O = v * R, F = v * L, G = v * z, J = S * L, $ = S * z, W = A * z, oe = C * R, H = C * L, re = C * z, ce = g[0], he = g[1], fe = g[2];
return p[0] = (1 - (J + W)) * ce, p[1] = (F + re) * ce, p[2] = (G - H) * ce, p[3] = 0, p[4] = (F - re) * he, p[5] = (1 - (O + W)) * he, p[6] = ($ + oe) * he, p[7] = 0, p[8] = (G + H) * fe, p[9] = ($ - oe) * fe, p[10] = (1 - (O + J)) * fe, p[11] = 0, p[12] = b[0], p[13] = b[1], p[14] = b[2], p[15] = 1, p;
}, xt.fromRotationTranslationScaleOrigin = function(p, y, b, g, v) {
var S = y[0], A = y[1], C = y[2], R = y[3], L = S + S, z = A + A, O = C + C, F = S * L, G = S * z, J = S * O, $ = A * z, W = A * O, oe = C * O, H = R * L, re = R * z, ce = R * O, he = g[0], fe = g[1], xe = g[2], be = v[0], ge = v[1], ze = v[2], Be = (1 - ($ + oe)) * he, Ae = (G + ce) * he, Je = (J - re) * he, qe = (G - ce) * fe, Ue = (1 - (F + oe)) * fe, Fe = (W + H) * fe, at = (J + re) * xe, Ye = (W - H) * xe, et = (1 - (F + $)) * xe;
return p[0] = Be, p[1] = Ae, p[2] = Je, p[3] = 0, p[4] = qe, p[5] = Ue, p[6] = Fe, p[7] = 0, p[8] = at, p[9] = Ye, p[10] = et, p[11] = 0, p[12] = b[0] + be - (Be * be + qe * ge + at * ze), p[13] = b[1] + ge - (Ae * be + Ue * ge + Ye * ze), p[14] = b[2] + ze - (Je * be + Fe * ge + et * ze), p[15] = 1, p;
}, xt.fromQuat = function(p, y) {
var b = y[0], g = y[1], v = y[2], S = y[3], A = b + b, C = g + g, R = v + v, L = b * A, z = g * A, O = g * C, F = v * A, G = v * C, J = v * R, $ = S * A, W = S * C, oe = S * R;
return p[0] = 1 - O - J, p[1] = z + oe, p[2] = F - W, p[3] = 0, p[4] = z - oe, p[5] = 1 - L - J, p[6] = G + $, p[7] = 0, p[8] = F + W, p[9] = G - $, p[10] = 1 - L - O, p[11] = 0, p[12] = 0, p[13] = 0, p[14] = 0, p[15] = 1, p;
}, xt.frustum = function(p, y, b, g, v, S, A) {
var C = 1 / (b - y), R = 1 / (v - g), L = 1 / (S - A);
return p[0] = 2 * S * C, p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[5] = 2 * S * R, p[6] = 0, p[7] = 0, p[8] = (b + y) * C, p[9] = (v + g) * R, p[10] = (A + S) * L, p[11] = -1, p[12] = 0, p[13] = 0, p[14] = A * S * 2 * L, p[15] = 0, p;
}, xt.perspectiveNO = m, xt.perspectiveZO = function(p, y, b, g, v) {
var S, A = 1 / Math.tan(y / 2);
return p[0] = A / b, p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[5] = A, p[6] = 0, p[7] = 0, p[8] = 0, p[9] = 0, p[11] = -1, p[12] = 0, p[13] = 0, p[15] = 0, v != null && v !== 1 / 0 ? (p[10] = v * (S = 1 / (g - v)), p[14] = v * g * S) : (p[10] = -1, p[14] = -g), p;
}, xt.perspectiveFromFieldOfView = function(p, y, b, g) {
var v = Math.tan(y.upDegrees * Math.PI / 180), S = Math.tan(y.downDegrees * Math.PI / 180), A = Math.tan(y.leftDegrees * Math.PI / 180), C = Math.tan(y.rightDegrees * Math.PI / 180), R = 2 / (A + C), L = 2 / (v + S);
return p[0] = R, p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[5] = L, p[6] = 0, p[7] = 0, p[8] = -(A - C) * R * 0.5, p[9] = (v - S) * L * 0.5, p[10] = g / (b - g), p[11] = -1, p[12] = 0, p[13] = 0, p[14] = g * b / (b - g), p[15] = 0, p;
}, xt.orthoNO = x, xt.orthoZO = function(p, y, b, g, v, S, A) {
var C = 1 / (y - b), R = 1 / (g - v), L = 1 / (S - A);
return p[0] = -2 * C, p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[5] = -2 * R, p[6] = 0, p[7] = 0, p[8] = 0, p[9] = 0, p[10] = L, p[11] = 0, p[12] = (y + b) * C, p[13] = (v + g) * R, p[14] = S * L, p[15] = 1, p;
}, xt.lookAt = function(p, y, b, g) {
var v, S, A, C, R, L, z, O, F, G, J = y[0], $ = y[1], W = y[2], oe = g[0], H = g[1], re = g[2], ce = b[0], he = b[1], fe = b[2];
return Math.abs(J - ce) < e.EPSILON && Math.abs($ - he) < e.EPSILON && Math.abs(W - fe) < e.EPSILON ? o(p) : (z = J - ce, O = $ - he, F = W - fe, v = H * (F *= G = 1 / Math.hypot(z, O, F)) - re * (O *= G), S = re * (z *= G) - oe * F, A = oe * O - H * z, (G = Math.hypot(v, S, A)) ? (v *= G = 1 / G, S *= G, A *= G) : (v = 0, S = 0, A = 0), C = O * A - F * S, R = F * v - z * A, L = z * S - O * v, (G = Math.hypot(C, R, L)) ? (C *= G = 1 / G, R *= G, L *= G) : (C = 0, R = 0, L = 0), p[0] = v, p[1] = C, p[2] = z, p[3] = 0, p[4] = S, p[5] = R, p[6] = O, p[7] = 0, p[8] = A, p[9] = L, p[10] = F, p[11] = 0, p[12] = -(v * J + S * $ + A * W), p[13] = -(C * J + R * $ + L * W), p[14] = -(z * J + O * $ + F * W), p[15] = 1, p);
}, xt.targetTo = function(p, y, b, g) {
var v = y[0], S = y[1], A = y[2], C = g[0], R = g[1], L = g[2], z = v - b[0], O = S - b[1], F = A - b[2], G = z * z + O * O + F * F;
G > 0 && (z *= G = 1 / Math.sqrt(G), O *= G, F *= G);
var J = R * F - L * O, $ = L * z - C * F, W = C * O - R * z;
return (G = J * J + $ * $ + W * W) > 0 && (J *= G = 1 / Math.sqrt(G), $ *= G, W *= G), p[0] = J, p[1] = $, p[2] = W, p[3] = 0, p[4] = O * W - F * $, p[5] = F * J - z * W, p[6] = z * $ - O * J, p[7] = 0, p[8] = z, p[9] = O, p[10] = F, p[11] = 0, p[12] = v, p[13] = S, p[14] = A, p[15] = 1, p;
}, xt.str = function(p) {
return "mat4(" + p[0] + ", " + p[1] + ", " + p[2] + ", " + p[3] + ", " + p[4] + ", " + p[5] + ", " + p[6] + ", " + p[7] + ", " + p[8] + ", " + p[9] + ", " + p[10] + ", " + p[11] + ", " + p[12] + ", " + p[13] + ", " + p[14] + ", " + p[15] + ")";
}, xt.frob = function(p) {
return Math.hypot(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]);
}, xt.add = function(p, y, b) {
return p[0] = y[0] + b[0], p[1] = y[1] + b[1], p[2] = y[2] + b[2], p[3] = y[3] + b[3], p[4] = y[4] + b[4], p[5] = y[5] + b[5], p[6] = y[6] + b[6], p[7] = y[7] + b[7], p[8] = y[8] + b[8], p[9] = y[9] + b[9], p[10] = y[10] + b[10], p[11] = y[11] + b[11], p[12] = y[12] + b[12], p[13] = y[13] + b[13], p[14] = y[14] + b[14], p[15] = y[15] + b[15], p;
}, xt.subtract = w, xt.multiplyScalar = function(p, y, b) {
return p[0] = y[0] * b, p[1] = y[1] * b, p[2] = y[2] * b, p[3] = y[3] * b, p[4] = y[4] * b, p[5] = y[5] * b, p[6] = y[6] * b, p[7] = y[7] * b, p[8] = y[8] * b, p[9] = y[9] * b, p[10] = y[10] * b, p[11] = y[11] * b, p[12] = y[12] * b, p[13] = y[13] * b, p[14] = y[14] * b, p[15] = y[15] * b, p;
}, xt.multiplyScalarAndAdd = function(p, y, b, g) {
return p[0] = y[0] + b[0] * g, p[1] = y[1] + b[1] * g, p[2] = y[2] + b[2] * g, p[3] = y[3] + b[3] * g, p[4] = y[4] + b[4] * g, p[5] = y[5] + b[5] * g, p[6] = y[6] + b[6] * g, p[7] = y[7] + b[7] * g, p[8] = y[8] + b[8] * g, p[9] = y[9] + b[9] * g, p[10] = y[10] + b[10] * g, p[11] = y[11] + b[11] * g, p[12] = y[12] + b[12] * g, p[13] = y[13] + b[13] * g, p[14] = y[14] + b[14] * g, p[15] = y[15] + b[15] * g, p;
}, xt.exactEquals = function(p, y) {
return p[0] === y[0] && p[1] === y[1] && p[2] === y[2] && p[3] === y[3] && p[4] === y[4] && p[5] === y[5] && p[6] === y[6] && p[7] === y[7] && p[8] === y[8] && p[9] === y[9] && p[10] === y[10] && p[11] === y[11] && p[12] === y[12] && p[13] === y[13] && p[14] === y[14] && p[15] === y[15];
}, xt.equals = function(p, y) {
var b = p[0], g = p[1], v = p[2], S = p[3], A = p[4], C = p[5], R = p[6], L = p[7], z = p[8], O = p[9], F = p[10], G = p[11], J = p[12], $ = p[13], W = p[14], oe = p[15], H = y[0], re = y[1], ce = y[2], he = y[3], fe = y[4], xe = y[5], be = y[6], ge = y[7], ze = y[8], Be = y[9], Ae = y[10], Je = y[11], qe = y[12], Ue = y[13], Fe = y[14], at = y[15];
return Math.abs(b - H) <= e.EPSILON * Math.max(1, Math.abs(b), Math.abs(H)) && Math.abs(g - re) <= e.EPSILON * Math.max(1, Math.abs(g), Math.abs(re)) && Math.abs(v - ce) <= e.EPSILON * Math.max(1, Math.abs(v), Math.abs(ce)) && Math.abs(S - he) <= e.EPSILON * Math.max(1, Math.abs(S), Math.abs(he)) && Math.abs(A - fe) <= e.EPSILON * Math.max(1, Math.abs(A), Math.abs(fe)) && Math.abs(C - xe) <= e.EPSILON * Math.max(1, Math.abs(C), Math.abs(xe)) && Math.abs(R - be) <= e.EPSILON * Math.max(1, Math.abs(R), Math.abs(be)) && Math.abs(L - ge) <= e.EPSILON * Math.max(1, Math.abs(L), Math.abs(ge)) && Math.abs(z - ze) <= e.EPSILON * Math.max(1, Math.abs(z), Math.abs(ze)) && Math.abs(O - Be) <= e.EPSILON * Math.max(1, Math.abs(O), Math.abs(Be)) && Math.abs(F - Ae) <= e.EPSILON * Math.max(1, Math.abs(F), Math.abs(Ae)) && Math.abs(G - Je) <= e.EPSILON * Math.max(1, Math.abs(G), Math.abs(Je)) && Math.abs(J - qe) <= e.EPSILON * Math.max(1, Math.abs(J), Math.abs(qe)) && Math.abs($ - Ue) <= e.EPSILON * Math.max(1, Math.abs($), Math.abs(Ue)) && Math.abs(W - Fe) <= e.EPSILON * Math.max(1, Math.abs(W), Math.abs(Fe)) && Math.abs(oe - at) <= e.EPSILON * Math.max(1, Math.abs(oe), Math.abs(at));
}, xt.sub = xt.mul = xt.ortho = xt.perspective = void 0;
var e = function(p, y) {
if (p && p.__esModule) return p;
if (p === null || n(p) !== "object" && typeof p != "function") return { default: p };
var b = i(void 0);
if (b && b.has(p)) return b.get(p);
var g = {}, v = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var S in p) if (S !== "default" && Object.prototype.hasOwnProperty.call(p, S)) {
var A = v ? Object.getOwnPropertyDescriptor(p, S) : null;
A && (A.get || A.set) ? Object.defineProperty(g, S, A) : g[S] = p[S];
}
return g.default = p, b && b.set(p, g), g;
}(_r());
function i(p) {
if (typeof WeakMap != "function") return null;
var y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap();
return (i = function(g) {
return g ? b : y;
})(p);
}
function o(p) {
return p[0] = 1, p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[5] = 1, p[6] = 0, p[7] = 0, p[8] = 0, p[9] = 0, p[10] = 1, p[11] = 0, p[12] = 0, p[13] = 0, p[14] = 0, p[15] = 1, p;
}
function h(p, y, b) {
var g = y[0], v = y[1], S = y[2], A = y[3], C = y[4], R = y[5], L = y[6], z = y[7], O = y[8], F = y[9], G = y[10], J = y[11], $ = y[12], W = y[13], oe = y[14], H = y[15], re = b[0], ce = b[1], he = b[2], fe = b[3];
return p[0] = re * g + ce * C + he * O + fe * $, p[1] = re * v + ce * R + he * F + fe * W, p[2] = re * S + ce * L + he * G + fe * oe, p[3] = re * A + ce * z + he * J + fe * H, p[4] = (re = b[4]) * g + (ce = b[5]) * C + (he = b[6]) * O + (fe = b[7]) * $, p[5] = re * v + ce * R + he * F + fe * W, p[6] = re * S + ce * L + he * G + fe * oe, p[7] = re * A + ce * z + he * J + fe * H, p[8] = (re = b[8]) * g + (ce = b[9]) * C + (he = b[10]) * O + (fe = b[11]) * $, p[9] = re * v + ce * R + he * F + fe * W, p[10] = re * S + ce * L + he * G + fe * oe, p[11] = re * A + ce * z + he * J + fe * H, p[12] = (re = b[12]) * g + (ce = b[13]) * C + (he = b[14]) * O + (fe = b[15]) * $, p[13] = re * v + ce * R + he * F + fe * W, p[14] = re * S + ce * L + he * G + fe * oe, p[15] = re * A + ce * z + he * J + fe * H, p;
}
function a(p, y, b) {
var g = y[0], v = y[1], S = y[2], A = y[3], C = g + g, R = v + v, L = S + S, z = g * C, O = g * R, F = g * L, G = v * R, J = v * L, $ = S * L, W = A * C, oe = A * R, H = A * L;
return p[0] = 1 - (G + $), p[1] = O + H, p[2] = F - oe, p[3] = 0, p[4] = O - H, p[5] = 1 - (z + $), p[6] = J + W, p[7] = 0, p[8] = F + oe, p[9] = J - W, p[10] = 1 - (z + G), p[11] = 0, p[12] = b[0], p[13] = b[1], p[14] = b[2], p[15] = 1, p;
}
function u(p, y) {
var b = y[4], g = y[5], v = y[6], S = y[8], A = y[9], C = y[10];
return p[0] = Math.hypot(y[0], y[1], y[2]), p[1] = Math.hypot(b, g, v), p[2] = Math.hypot(S, A, C), p;
}
function m(p, y, b, g, v) {
var S, A = 1 / Math.tan(y / 2);
return p[0] = A / b, p[1] = 0, p[2] = 0, p[3] = 0, p[4] = 0, p[5] = A, p[6] = 0, p[7] = 0, p[8] = 0, p[9] = 0, p[11] = -1, p[12] = 0, p[13] = 0, p[15] = 0, v != null && v !== 1 / 0 ? (p[10] = (v + g) * (S = 1 / (g - v)), p[14] = 2 * v * g * S) : (p[10] = -1, p[14] = -2 * g), p;
}
function x(p, y, b, g, v, S, A) {
var C = 1 / (y - b), R = 1 / (g - v), L = 1 / (S -