@pie-element/number-line 13.1.2-next.5 → 13.1.2-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author/arrows.js +1 -1
- package/dist/author/domain.js +1 -1
- package/dist/author/index.d.ts +1 -0
- package/dist/author/index.js +5 -2
- package/dist/author/main.js +145 -145
- package/dist/author/ticks.js +1 -1
- package/dist/browser/author/index.js +16367 -19542
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +4 -4
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{delivery-bcOQIdko.js → delivery-CO2qrOqk.js} +4117 -4207
- package/dist/browser/delivery-CO2qrOqk.js.map +1 -0
- package/dist/browser/{dist-BnIaVPcz.js → dist-DkCincUw.js} +1417 -1417
- package/dist/browser/{dist-BnIaVPcz.js.map → dist-DkCincUw.js.map} +1 -1
- package/dist/browser/{impureFunctionsAny.generated-BwG6hrJc.js → impureFunctionsAny.generated-DlzbJQpQ.js} +1061 -1058
- package/dist/browser/{impureFunctionsAny.generated-BwG6hrJc.js.map → impureFunctionsAny.generated-DlzbJQpQ.js.map} +1 -1
- package/dist/controller/tickUtils.js +1 -1
- package/dist/delivery/data-converter.js +1 -1
- package/dist/delivery/index.js +3 -3
- package/dist/delivery/number-line/graph/arrow.js +1 -1
- package/dist/delivery/number-line/graph/elements/line.js +2 -2
- package/dist/delivery/number-line/graph/elements/point.js +5 -4
- package/dist/delivery/number-line/graph/elements/ray.js +3 -3
- package/dist/delivery/number-line/graph/index.js +6 -6
- package/dist/delivery/number-line/graph/line.js +1 -1
- package/dist/delivery/number-line/graph/stacks.js +1 -1
- package/dist/delivery/number-line/graph/tick-utils.js +2 -2
- package/dist/delivery/number-line/graph/ticks.js +1 -1
- package/dist/delivery/number-line/index.js +3 -3
- package/dist/delivery/number-line/point-chooser/index.js +1 -1
- package/dist/index.iife.js +57 -57
- package/package.json +12 -7
- package/dist/browser/delivery-bcOQIdko.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as e, $a as t, $i as n, $n as r, $o as i, $r as a, $t as o, A as s, Aa as c, Ai as l, An as u, Ao as d, Ar as f, As as p, At as m, B as h, Ba as g, Bi as _, Bn as v, Bo as y, Br as b, Bt as x, C as S, Ca as C, Ci as w, Cn as T, Co as E, Cr as D, Cs as O, Ct as k, D as A, Da as j, Di as M, Dn as N, Do as P, Dr as F, Ds as
|
|
1
|
+
import { $ as e, $a as t, $i as n, $n as r, $o as i, $r as a, $t as o, A as s, Aa as c, Ai as l, An as u, Ao as d, Ar as f, As as p, At as m, B as h, Ba as g, Bi as _, Bn as v, Bo as y, Br as b, Bt as x, C as S, Ca as C, Ci as w, Cn as T, Co as E, Cr as D, Cs as O, Ct as k, D as A, Da as j, Di as M, Dn as N, Do as P, Dr as F, Ds as ee, Dt as I, E as te, Ea as ne, Ei as L, En as re, Eo as ie, Er as ae, Es as oe, Et as se, F as ce, Fa as le, Fi as ue, Fn as de, Fo as fe, Fr as pe, Fs as me, Ft as he, G as ge, Ga as _e, Gi as ve, Gn as ye, Go as be, Gr as xe, Gt as Se, H as Ce, Ha as we, Hi as Te, Hn as Ee, Ho as De, Hr as Oe, Ht as ke, I as Ae, Ia as je, Ii as Me, In as Ne, Io as Pe, Ir as Fe, It as Ie, J as R, Ja as Le, Ji as Re, Jn as ze, Jo as Be, Jr as Ve, Jt as He, K as Ue, Ka as We, Ki as Ge, Kn as Ke, Ko as z, Kr as qe, Kt as Je, L as Ye, La as Xe, Li as Ze, Ln as Qe, Lo as $e, Lr as et, Lt as tt, M as nt, Ma as rt, Mi as it, Mn as at, Mo as ot, Mr as st, Ms as ct, Mt as lt, N as ut, Na as dt, Ni as ft, Nn as pt, No as mt, Nr as ht, Ns as gt, Nt as _t, O as vt, Oa as yt, Oi as bt, On as xt, Oo as St, Or as Ct, Os as wt, Ot as Tt, P as Et, Pa as Dt, Pi as Ot, Pn as kt, Po as At, Pr as jt, Ps as Mt, Pt as Nt, Q as B, Qa as Pt, Qi as Ft, Qn as It, Qo as Lt, Qr as Rt, Qt as zt, R as Bt, Ra as Vt, Ri as Ht, Rn as Ut, Ro as Wt, Rr as V, Rs as Gt, Rt as Kt, S as qt, Sa as Jt, Si as Yt, Sn as Xt, So as Zt, Sr as Qt, Ss as $t, St as en, T as tn, Ta as nn, Ti as rn, Tn as an, To as on, Tr as sn, Ts as cn, Tt as ln, U as un, Ua as dn, Ui as fn, Un as pn, Uo as mn, Ur as hn, Ut as gn, V as _n, Va as vn, Vi as yn, Vn as bn, Vo as xn, Vr as Sn, Vt as Cn, W as wn, Wa as H, Wi as Tn, Wn as En, Wo as Dn, Wr as On, Wt as kn, X as An, Xa as jn, Xi as Mn, Xn as Nn, Xo as U, Xr as Pn, Xt as Fn, Y as In, Ya as Ln, Yi as Rn, Yn as zn, Yo as Bn, Yr as Vn, Yt as Hn, Z as Un, Za as Wn, Zi as Gn, Zn as Kn, Zo as qn, Zr as Jn, Zt as Yn, _a as Xn, _i as Zn, _n as Qn, _o as $n, _r as er, _s as W, _t as tr, aa as nr, ai as rr, an as ir, ao as ar, ar as or, as as sr, at as cr, ba as lr, bi as ur, bn as dr, bo as fr, br as pr, bs as mr, bt as hr, ca as gr, ci as _r, cn as vr, co as yr, cr as br, cs as xr, ct as Sr, da as Cr, di as wr, dn as Tr, do as Er, dr as Dr, ds as Or, dt as kr, ea as Ar, ei as jr, en as Mr, eo as Nr, er as Pr, es as Fr, et as Ir, fa as Lr, fi as Rr, fn as zr, fo as Br, fr as Vr, fs as Hr, ft as Ur, ga as Wr, gi as Gr, gn as Kr, go as qr, gr as Jr, gs as Yr, gt as Xr, ha as Zr, hi as Qr, hn as $r, ho as ei, hr as ti, hs as ni, ht as ri, ia as ii, ii as ai, in as oi, io as si, ir as ci, is as li, it as ui, j as di, ja as fi, ji as pi, jn as mi, jo as hi, jr as gi, js as G, jt as _i, k as vi, ka as yi, ki as bi, kn as xi, ko as Si, kr as Ci, ks as wi, kt as Ti, la as Ei, li as Di, ln as Oi, lo as ki, lr as Ai, ls as ji, lt as Mi, ma as Ni, mi as Pi, mn as Fi, mo as Ii, mr as Li, ms as K, mt as Ri, na as zi, ni as Bi, nn as Vi, no as Hi, nr as Ui, ns as Wi, nt as Gi, oa as Ki, oi as qi, on as Ji, oo as Yi, or as Xi, os as q, ot as Zi, pa as Qi, pi as $i, pn as ea, po as ta, pr as na, ps as ra, pt as ia, q as aa, qa as oa, qi as sa, qn as ca, qo as la, qr as ua, qt as da, ra as fa, ri as pa, rn as ma, ro as ha, rr as ga, rs as _a, rt as va, sa as ya, si as ba, sn as xa, so as Sa, sr as Ca, ss as wa, st as Ta, ta as Ea, ti as Da, tn as Oa, to as ka, tr as Aa, ts as ja, tt as Ma, ua as Na, ui as Pa, un as Fa, uo as Ia, ur as La, us as Ra, ut as za, va as Ba, vi as Va, vn as Ha, vo as J, vr as Ua, vs as Wa, vt as Ga, w as Ka, wa as qa, wi as Ja, wn as Ya, wo as Xa, wr as Za, ws as Qa, wt as $a, x as eo, xa as to, xi as no, xn as ro, xo as io, xr as ao, xs as Y, xt as oo, ya as so, yi as co, yn as lo, yr as uo, ys as fo, yt as po, z as mo, za as ho, zi as go, zn as _o, zo as vo, zr as yo, zt as bo } from "./dist-DkCincUw.js";
|
|
2
2
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/keywords.js
|
|
3
|
-
var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"], (e) => {
|
|
3
|
+
var xo = /* @__PURE__ */ new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"], (e) => {
|
|
4
4
|
var { mathWithTransform: t } = e;
|
|
5
5
|
function n(e) {
|
|
6
6
|
for (var t of [...xo]) if (e.has(t)) throw Error("Scope contains an illegal symbol, \"" + t + "\" is a reserved keyword");
|
|
@@ -18,7 +18,7 @@ var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"],
|
|
|
18
18
|
compile() {
|
|
19
19
|
var e = this._compile(t, {}), r = {}, i = null;
|
|
20
20
|
function a(t) {
|
|
21
|
-
var a =
|
|
21
|
+
var a = wt(t);
|
|
22
22
|
return n(a), e(a, r, i);
|
|
23
23
|
}
|
|
24
24
|
return { evaluate: a };
|
|
@@ -33,7 +33,7 @@ var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"],
|
|
|
33
33
|
throw Error("Cannot run map on a Node interface");
|
|
34
34
|
}
|
|
35
35
|
_ifNode(e) {
|
|
36
|
-
if (!
|
|
36
|
+
if (!K(e)) throw TypeError("Callback function must return a Node");
|
|
37
37
|
return e;
|
|
38
38
|
}
|
|
39
39
|
traverse(e) {
|
|
@@ -67,7 +67,7 @@ var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"],
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
equals(e) {
|
|
70
|
-
return e ? this.type === e.type &&
|
|
70
|
+
return e ? this.type === e.type && Bn(this, e) : !1;
|
|
71
71
|
}
|
|
72
72
|
toString(e) {
|
|
73
73
|
var t = this._getCustomString(e);
|
|
@@ -116,7 +116,7 @@ var xo = new Set(["end"]), So = /* #__PURE__ */ z("Node", ["mathWithTransform"],
|
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/transform/utils/errorTransform.js
|
|
118
118
|
function X(e) {
|
|
119
|
-
return e && e.isIndexError ? new
|
|
119
|
+
return e && e.isIndexError ? new y(e.index + 1, e.min + 1, e.max === void 0 ? void 0 : e.max + 1) : e;
|
|
120
120
|
}
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/node/utils/access.js
|
|
@@ -129,7 +129,7 @@ function Co(e) {
|
|
|
129
129
|
if (typeof e == "string") return t(e, n);
|
|
130
130
|
if (typeof e == "object") {
|
|
131
131
|
if (!n.isObjectProperty()) throw TypeError("Cannot apply a numeric index as object property");
|
|
132
|
-
return
|
|
132
|
+
return G(e, n.getObjectProperty());
|
|
133
133
|
} else throw TypeError("Cannot apply index: unsupported type of object");
|
|
134
134
|
} catch (e) {
|
|
135
135
|
throw X(e);
|
|
@@ -140,14 +140,14 @@ function Co(e) {
|
|
|
140
140
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/node/AccessorNode.js
|
|
141
141
|
var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
142
142
|
var { subset: t, Node: n } = e, r = Co({ subset: t });
|
|
143
|
-
function
|
|
144
|
-
return !(
|
|
143
|
+
function i(e) {
|
|
144
|
+
return !(Lt(e) || Fr(e) || q(e) || Ra(e) || Yr(e) || Wa(e) || Y(e));
|
|
145
145
|
}
|
|
146
|
-
class
|
|
146
|
+
class a extends n {
|
|
147
147
|
constructor(e, t) {
|
|
148
|
-
var n = arguments.length > 2 && arguments[2] !== void 0
|
|
149
|
-
if (super(), !
|
|
150
|
-
if (!
|
|
148
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
149
|
+
if (super(), !K(e)) throw TypeError("Node expected for parameter \"object\"");
|
|
150
|
+
if (!Hr(t)) throw TypeError("IndexNode expected for parameter \"index\"");
|
|
151
151
|
this.object = e, this.index = t, this.optionalChaining = n;
|
|
152
152
|
}
|
|
153
153
|
get name() {
|
|
@@ -160,7 +160,7 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
160
160
|
return !0;
|
|
161
161
|
}
|
|
162
162
|
_compile(e, t) {
|
|
163
|
-
var n = this.object._compile(e, t), i = this.index._compile(e, t), a = this.optionalChaining, o =
|
|
163
|
+
var n = this.object._compile(e, t), i = this.index._compile(e, t), a = this.optionalChaining, o = Lt(this.object) && this.object.optionalChaining;
|
|
164
164
|
if (this.index.isObjectProperty()) {
|
|
165
165
|
var s = this.index.getObjectProperty();
|
|
166
166
|
return function(e, t, r) {
|
|
@@ -169,7 +169,7 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
169
169
|
i.optionalShortCircuit = !0;
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
if (!(o && i != null && i.optionalShortCircuit)) return
|
|
172
|
+
if (!(o && i != null && i.optionalShortCircuit)) return G(c, s);
|
|
173
173
|
};
|
|
174
174
|
} else return function(e, t, s) {
|
|
175
175
|
var c = s || {}, l = n(e, t, c);
|
|
@@ -184,24 +184,24 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
184
184
|
e(this.object, "object", this), e(this.index, "index", this);
|
|
185
185
|
}
|
|
186
186
|
map(e) {
|
|
187
|
-
return new
|
|
187
|
+
return new a(this._ifNode(e(this.object, "object", this)), this._ifNode(e(this.index, "index", this)), this.optionalChaining);
|
|
188
188
|
}
|
|
189
189
|
clone() {
|
|
190
|
-
return new
|
|
190
|
+
return new a(this.object, this.index, this.optionalChaining);
|
|
191
191
|
}
|
|
192
192
|
_toString(e) {
|
|
193
193
|
var t = this.object.toString(e);
|
|
194
|
-
|
|
194
|
+
i(this.object) && (t = "(" + t + ")");
|
|
195
195
|
var n = this.optionalChaining ? this.index.dotNotation ? "?" : "?." : "";
|
|
196
196
|
return t + n + this.index.toString(e);
|
|
197
197
|
}
|
|
198
198
|
_toHTML(e) {
|
|
199
199
|
var t = this.object.toHTML(e);
|
|
200
|
-
return
|
|
200
|
+
return i(this.object) && (t = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + t + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), t + this.index.toHTML(e);
|
|
201
201
|
}
|
|
202
202
|
_toTex(e) {
|
|
203
203
|
var t = this.object.toTex(e);
|
|
204
|
-
return
|
|
204
|
+
return i(this.object) && (t = "\\left(' + object + '\\right)"), t + this.index.toTex(e);
|
|
205
205
|
}
|
|
206
206
|
toJSON() {
|
|
207
207
|
return {
|
|
@@ -212,10 +212,10 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
static fromJSON(e) {
|
|
215
|
-
return new
|
|
215
|
+
return new a(e.object, e.index, e.optionalChaining);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
return
|
|
218
|
+
return J(a, "name", wo), a;
|
|
219
219
|
}, {
|
|
220
220
|
isClass: !0,
|
|
221
221
|
isNode: !0
|
|
@@ -223,7 +223,7 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
223
223
|
var { Node: t } = e;
|
|
224
224
|
class n extends t {
|
|
225
225
|
constructor(e) {
|
|
226
|
-
if (super(), this.items = e || [], !Array.isArray(this.items) || !this.items.every(
|
|
226
|
+
if (super(), this.items = e || [], !Array.isArray(this.items) || !this.items.every(K)) throw TypeError("Array containing Nodes expected");
|
|
227
227
|
}
|
|
228
228
|
get type() {
|
|
229
229
|
return Eo;
|
|
@@ -232,18 +232,18 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
232
232
|
return !0;
|
|
233
233
|
}
|
|
234
234
|
_compile(e, t) {
|
|
235
|
-
var n =
|
|
235
|
+
var n = vo(this.items, function(n) {
|
|
236
236
|
return n._compile(e, t);
|
|
237
237
|
});
|
|
238
238
|
if (e.config.matrix !== "Array") {
|
|
239
239
|
var r = e.matrix;
|
|
240
240
|
return function(e, t, i) {
|
|
241
|
-
return r(
|
|
241
|
+
return r(vo(n, function(n) {
|
|
242
242
|
return n(e, t, i);
|
|
243
243
|
}));
|
|
244
244
|
};
|
|
245
245
|
} else return function(e, t, r) {
|
|
246
|
-
return
|
|
246
|
+
return vo(n, function(n) {
|
|
247
247
|
return n(e, t, r);
|
|
248
248
|
});
|
|
249
249
|
};
|
|
@@ -282,15 +282,15 @@ var wo = "AccessorNode", To = /* #__PURE__ */ z(wo, ["subset", "Node"], (e) => {
|
|
|
282
282
|
}
|
|
283
283
|
_toTex(e) {
|
|
284
284
|
function t(n, r) {
|
|
285
|
-
var
|
|
285
|
+
var i = n.some(Fr) && !n.every(Fr), a = r || i, o = a ? "&" : "\\\\", s = n.map(function(n) {
|
|
286
286
|
return n.items ? t(n.items, !r) : n.toTex(e);
|
|
287
|
-
}).join(
|
|
288
|
-
return
|
|
287
|
+
}).join(o);
|
|
288
|
+
return i || !a || a && !r ? "\\begin{bmatrix}" + s + "\\end{bmatrix}" : s;
|
|
289
289
|
}
|
|
290
290
|
return t(this.items, !1);
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
return
|
|
293
|
+
return J(n, "name", Eo), n;
|
|
294
294
|
}, {
|
|
295
295
|
isClass: !0,
|
|
296
296
|
isNode: !0
|
|
@@ -308,7 +308,7 @@ function Oo(e) {
|
|
|
308
308
|
if (typeof e == "string") return t(e, r, i);
|
|
309
309
|
if (typeof e == "object") {
|
|
310
310
|
if (!r.isObjectProperty()) throw TypeError("Cannot apply a numeric index as object property");
|
|
311
|
-
return
|
|
311
|
+
return gt(e, r.getObjectProperty(), i), e;
|
|
312
312
|
} else throw TypeError("Cannot apply index: unsupported type of object");
|
|
313
313
|
} catch (e) {
|
|
314
314
|
throw X(e);
|
|
@@ -524,7 +524,7 @@ var ko = [
|
|
|
524
524
|
];
|
|
525
525
|
function Ao(e, t) {
|
|
526
526
|
if (!t || t !== "auto") return e;
|
|
527
|
-
for (var n = e;
|
|
527
|
+
for (var n = e; Wa(n);) n = n.content;
|
|
528
528
|
return n;
|
|
529
529
|
}
|
|
530
530
|
function Z(e, t, n, r) {
|
|
@@ -536,7 +536,7 @@ function Z(e, t, n, r) {
|
|
|
536
536
|
}
|
|
537
537
|
if (a === "OperatorNode:multiply" && i.implicit && n !== "show") {
|
|
538
538
|
var c = Ao(i.args[0], t);
|
|
539
|
-
!(
|
|
539
|
+
!(q(c) && r && r.getIdentifier() === "OperatorNode:divide" && O(Ao(r.args[0], t))) && !(c.getIdentifier() === "OperatorNode:divide" && O(Ao(c.args[0], t)) && q(Ao(c.args[1]))) && (o += 1);
|
|
540
540
|
}
|
|
541
541
|
return o;
|
|
542
542
|
}
|
|
@@ -546,7 +546,7 @@ function jo(e, t) {
|
|
|
546
546
|
var r = n.getIdentifier(), i = Z(n, t);
|
|
547
547
|
if (i === null) return null;
|
|
548
548
|
var a = ko[i][r];
|
|
549
|
-
if (
|
|
549
|
+
if (U(a, "associativity")) {
|
|
550
550
|
if (a.associativity === "left") return "left";
|
|
551
551
|
if (a.associativity === "right") return "right";
|
|
552
552
|
throw Error("'" + r + "' has the invalid associativity '" + a.associativity + "'.");
|
|
@@ -557,7 +557,7 @@ function Mo(e, t, n) {
|
|
|
557
557
|
var r = n === "keep" ? e : e.getContent(), i = n === "keep" ? t : e.getContent(), a = r.getIdentifier(), o = i.getIdentifier(), s = Z(r, n);
|
|
558
558
|
if (s === null) return null;
|
|
559
559
|
var c = ko[s][a];
|
|
560
|
-
if (
|
|
560
|
+
if (U(c, "associativeWith") && c.associativeWith instanceof Array) {
|
|
561
561
|
for (var l = 0; l < c.associativeWith.length; l++) if (c.associativeWith[l] === o) return !0;
|
|
562
562
|
return !1;
|
|
563
563
|
}
|
|
@@ -586,10 +586,10 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
586
586
|
}
|
|
587
587
|
class s extends r {
|
|
588
588
|
constructor(e, t, n) {
|
|
589
|
-
if (super(), this.object = e, this.index = n ? t : null, this.value = n || t, !
|
|
590
|
-
if (
|
|
591
|
-
if (this.index && !
|
|
592
|
-
if (!
|
|
589
|
+
if (super(), this.object = e, this.index = n ? t : null, this.value = n || t, !Y(e) && !Lt(e)) throw TypeError("SymbolNode or AccessorNode expected as \"object\"");
|
|
590
|
+
if (Y(e) && e.name === "end") throw Error("Cannot assign to symbol \"end\"");
|
|
591
|
+
if (this.index && !Hr(this.index)) throw TypeError("IndexNode expected as \"index\"");
|
|
592
|
+
if (!K(this.value)) throw TypeError("Node expected as \"value\"");
|
|
593
593
|
}
|
|
594
594
|
get name() {
|
|
595
595
|
return this.index ? this.index.isObjectProperty() ? this.index.getObjectProperty() : "" : this.object.name || "";
|
|
@@ -603,7 +603,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
603
603
|
_compile(e, t) {
|
|
604
604
|
var n = this.object._compile(e, t), r = this.index ? this.index._compile(e, t) : null, o = this.value._compile(e, t), s = this.object.name;
|
|
605
605
|
if (!this.index) {
|
|
606
|
-
if (!
|
|
606
|
+
if (!Y(this.object)) throw TypeError("SymbolNode expected as object");
|
|
607
607
|
return function(e, t, n) {
|
|
608
608
|
var r = o(e, t, n);
|
|
609
609
|
return e.set(s, r), r;
|
|
@@ -612,9 +612,9 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
612
612
|
var c = this.index.getObjectProperty();
|
|
613
613
|
return function(e, t, r) {
|
|
614
614
|
var i = n(e, t, r), a = o(e, t, r);
|
|
615
|
-
return
|
|
615
|
+
return gt(i, c, a), a;
|
|
616
616
|
};
|
|
617
|
-
} else if (
|
|
617
|
+
} else if (Y(this.object)) return function(e, t, i) {
|
|
618
618
|
var c = n(e, t, i), l = o(e, t, i), u = r(e, t, c);
|
|
619
619
|
return e.set(s, a(c, u, l)), l;
|
|
620
620
|
};
|
|
@@ -623,8 +623,8 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
623
623
|
if (this.object.index.isObjectProperty()) {
|
|
624
624
|
var u = this.object.index.getObjectProperty();
|
|
625
625
|
return function(e, t, n) {
|
|
626
|
-
var i = l(e, t, n), s =
|
|
627
|
-
return
|
|
626
|
+
var i = l(e, t, n), s = G(i, u), c = r(e, t, s), d = o(e, t, n);
|
|
627
|
+
return gt(i, u, a(s, c, d)), d;
|
|
628
628
|
};
|
|
629
629
|
} else {
|
|
630
630
|
var d = this.object.index._compile(e, t);
|
|
@@ -639,7 +639,8 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
639
639
|
e(this.object, "object", this), this.index && e(this.index, "index", this), e(this.value, "value", this);
|
|
640
640
|
}
|
|
641
641
|
map(e) {
|
|
642
|
-
|
|
642
|
+
var t = this._ifNode(e(this.object, "object", this)), n = this.index ? this._ifNode(e(this.index, "index", this)) : null, r = this._ifNode(e(this.value, "value", this));
|
|
643
|
+
return new s(t, n, r);
|
|
643
644
|
}
|
|
644
645
|
clone() {
|
|
645
646
|
return new s(this.object, this.index, this.value);
|
|
@@ -668,7 +669,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
668
669
|
return o(this, e && e.parenthesis, e && e.implicit) && (r = `\\left(${r}\\right)`), t + n + "=" + r;
|
|
669
670
|
}
|
|
670
671
|
}
|
|
671
|
-
return
|
|
672
|
+
return J(s, "name", Po), s;
|
|
672
673
|
}, {
|
|
673
674
|
isClass: !0,
|
|
674
675
|
isNode: !0
|
|
@@ -679,7 +680,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
679
680
|
if (super(), !Array.isArray(e)) throw Error("Array expected");
|
|
680
681
|
this.blocks = e.map(function(e) {
|
|
681
682
|
var t = e && e.node, n = e && e.visible !== void 0 ? e.visible : !0;
|
|
682
|
-
if (!
|
|
683
|
+
if (!K(t)) throw TypeError("Property \"node\" must be a Node");
|
|
683
684
|
if (typeof n != "boolean") throw TypeError("Property \"visible\" must be a boolean");
|
|
684
685
|
return {
|
|
685
686
|
node: t,
|
|
@@ -694,7 +695,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
694
695
|
return !0;
|
|
695
696
|
}
|
|
696
697
|
_compile(e, n) {
|
|
697
|
-
var r =
|
|
698
|
+
var r = vo(this.blocks, function(t) {
|
|
698
699
|
return {
|
|
699
700
|
evaluate: t.node._compile(e, n),
|
|
700
701
|
visible: t.visible
|
|
@@ -702,7 +703,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
702
703
|
});
|
|
703
704
|
return function(e, n, i) {
|
|
704
705
|
var a = [];
|
|
705
|
-
return
|
|
706
|
+
return $e(r, function(t) {
|
|
706
707
|
var r = t.evaluate(e, n, i);
|
|
707
708
|
t.visible && a.push(r);
|
|
708
709
|
}), new t(a);
|
|
@@ -722,12 +723,13 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
722
723
|
return new r(t);
|
|
723
724
|
}
|
|
724
725
|
clone() {
|
|
725
|
-
|
|
726
|
+
var e = this.blocks.map(function(e) {
|
|
726
727
|
return {
|
|
727
728
|
node: e.node,
|
|
728
729
|
visible: e.visible
|
|
729
730
|
};
|
|
730
|
-
})
|
|
731
|
+
});
|
|
732
|
+
return new r(e);
|
|
731
733
|
}
|
|
732
734
|
_toString(e) {
|
|
733
735
|
return this.blocks.map(function(t) {
|
|
@@ -754,7 +756,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
754
756
|
}).join("\\;\\;\n");
|
|
755
757
|
}
|
|
756
758
|
}
|
|
757
|
-
return
|
|
759
|
+
return J(r, "name", Io), r;
|
|
758
760
|
}, {
|
|
759
761
|
isClass: !0,
|
|
760
762
|
isNode: !0
|
|
@@ -763,18 +765,18 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
763
765
|
function n(e) {
|
|
764
766
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "string") return !!e;
|
|
765
767
|
if (e) {
|
|
766
|
-
if (
|
|
767
|
-
if (
|
|
768
|
-
if (
|
|
768
|
+
if (Wi(e)) return !e.isZero();
|
|
769
|
+
if (sr(e)) return !!(e.re || e.im);
|
|
770
|
+
if ($t(e)) return !!e.value;
|
|
769
771
|
}
|
|
770
772
|
if (e == null) return !1;
|
|
771
|
-
throw TypeError("Unsupported type of condition \"" +
|
|
773
|
+
throw TypeError("Unsupported type of condition \"" + Qa(e) + "\"");
|
|
772
774
|
}
|
|
773
775
|
class r extends t {
|
|
774
776
|
constructor(e, t, n) {
|
|
775
|
-
if (super(), !
|
|
776
|
-
if (!
|
|
777
|
-
if (!
|
|
777
|
+
if (super(), !K(e)) throw TypeError("Parameter condition must be a Node");
|
|
778
|
+
if (!K(t)) throw TypeError("Parameter trueExpr must be a Node");
|
|
779
|
+
if (!K(n)) throw TypeError("Parameter falseExpr must be a Node");
|
|
778
780
|
this.condition = e, this.trueExpr = t, this.falseExpr = n;
|
|
779
781
|
}
|
|
780
782
|
get type() {
|
|
@@ -829,11 +831,11 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
829
831
|
return "\\begin{cases} {" + this.trueExpr.toTex(e) + "}, &\\quad{\\text{if }\\;" + this.condition.toTex(e) + "}\\\\{" + this.falseExpr.toTex(e) + "}, &\\quad{\\text{otherwise}}\\end{cases}";
|
|
830
832
|
}
|
|
831
833
|
}
|
|
832
|
-
return
|
|
834
|
+
return J(r, "name", Ro), r;
|
|
833
835
|
}, {
|
|
834
836
|
isClass: !0,
|
|
835
837
|
isNode: !0
|
|
836
|
-
}), Bo = /* @__PURE__ */
|
|
838
|
+
}), Bo = /* @__PURE__ */ Gt((/* @__PURE__ */ me(((e, t) => {
|
|
837
839
|
var n = Object.assign || function(e) {
|
|
838
840
|
for (var t = 1; t < arguments.length; t++) {
|
|
839
841
|
var n = arguments[t];
|
|
@@ -862,7 +864,7 @@ var Po = "AssignmentNode", Fo = /* #__PURE__ */ z(Po, [
|
|
|
862
864
|
return n({}, e, t);
|
|
863
865
|
};
|
|
864
866
|
t.exports = function(e) {
|
|
865
|
-
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = t.preserveFormatting, s = o
|
|
867
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = t.preserveFormatting, s = o !== void 0 && o, c = t.escapeMapFn, l = c === void 0 ? a : c, u = String(e), d = "", f = l(n({}, r), s ? n({}, i) : {}), p = Object.keys(f), m = function() {
|
|
866
868
|
var e = !1;
|
|
867
869
|
p.forEach(function(t, n) {
|
|
868
870
|
e || u.length >= t.length && u.slice(0, t.length) === t && (d += f[p[n]], u = u.slice(t.length, u.length), e = !0);
|
|
@@ -1127,7 +1129,7 @@ function Go(e) {
|
|
|
1127
1129
|
return (0, Bo.default)(e, { preserveFormatting: !0 });
|
|
1128
1130
|
}
|
|
1129
1131
|
function Ko(e, t) {
|
|
1130
|
-
return t = t
|
|
1132
|
+
return t = t !== void 0 && t, t ? U(Wo, e) ? Wo[e] : "\\mathrm{" + Go(e) + "}" : U(Vo, e) ? Vo[e] : Go(e);
|
|
1131
1133
|
}
|
|
1132
1134
|
//#endregion
|
|
1133
1135
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/node/ConstantNode.js
|
|
@@ -1157,11 +1159,11 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1157
1159
|
return new r(this.value);
|
|
1158
1160
|
}
|
|
1159
1161
|
_toString(e) {
|
|
1160
|
-
return
|
|
1162
|
+
return De(this.value, e);
|
|
1161
1163
|
}
|
|
1162
1164
|
_toHTML(e) {
|
|
1163
1165
|
var t = this._toString(e);
|
|
1164
|
-
switch (
|
|
1166
|
+
switch (Qa(this.value)) {
|
|
1165
1167
|
case "number":
|
|
1166
1168
|
case "bigint":
|
|
1167
1169
|
case "BigNumber":
|
|
@@ -1184,7 +1186,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1184
1186
|
}
|
|
1185
1187
|
_toTex(e) {
|
|
1186
1188
|
var t = this._toString(e);
|
|
1187
|
-
switch (
|
|
1189
|
+
switch (Qa(this.value)) {
|
|
1188
1190
|
case "string": return "\\mathtt{" + Go(t) + "}";
|
|
1189
1191
|
case "number":
|
|
1190
1192
|
case "BigNumber":
|
|
@@ -1197,7 +1199,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1197
1199
|
}
|
|
1198
1200
|
}
|
|
1199
1201
|
}
|
|
1200
|
-
return
|
|
1202
|
+
return J(r, "name", qo), r;
|
|
1201
1203
|
}, {
|
|
1202
1204
|
isClass: !0,
|
|
1203
1205
|
isNode: !0
|
|
@@ -1211,7 +1213,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1211
1213
|
constructor(e, t, n) {
|
|
1212
1214
|
if (super(), typeof e != "string") throw TypeError("String expected for parameter \"name\"");
|
|
1213
1215
|
if (!Array.isArray(t)) throw TypeError("Array containing strings or objects expected for parameter \"params\"");
|
|
1214
|
-
if (!
|
|
1216
|
+
if (!K(n)) throw TypeError("Node expected for parameter \"expr\"");
|
|
1215
1217
|
if (xo.has(e)) throw Error("Illegal function name, \"" + e + "\" is a reserved keyword");
|
|
1216
1218
|
var r = /* @__PURE__ */ new Set();
|
|
1217
1219
|
for (var i of t) {
|
|
@@ -1233,10 +1235,10 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1233
1235
|
}
|
|
1234
1236
|
_compile(e, n) {
|
|
1235
1237
|
var r = Object.create(n);
|
|
1236
|
-
|
|
1238
|
+
$e(this.params, function(e) {
|
|
1237
1239
|
r[e] = !0;
|
|
1238
1240
|
});
|
|
1239
|
-
var i = this.expr, a = i._compile(e, r), o = this.name, s = this.params, c =
|
|
1241
|
+
var i = this.expr, a = i._compile(e, r), o = this.name, s = this.params, c = Wt(this.types, ","), l = o + "(" + Wt(this.params, ", ") + ")";
|
|
1240
1242
|
return function(e, n, r) {
|
|
1241
1243
|
var u = {};
|
|
1242
1244
|
u[c] = function() {
|
|
@@ -1279,16 +1281,16 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1279
1281
|
return new i(e.name, e.params, e.expr);
|
|
1280
1282
|
}
|
|
1281
1283
|
_toHTML(e) {
|
|
1282
|
-
for (var t = e && e.parenthesis ? e.parenthesis : "keep", n = [], i = 0; i < this.params.length; i++) n.push("<span class=\"math-symbol math-parameter\">" +
|
|
1284
|
+
for (var t = e && e.parenthesis ? e.parenthesis : "keep", n = [], i = 0; i < this.params.length; i++) n.push("<span class=\"math-symbol math-parameter\">" + xn(this.params[i]) + "</span>");
|
|
1283
1285
|
var a = this.expr.toHTML(e);
|
|
1284
|
-
return r(this, t, e && e.implicit) && (a = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + a + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), "<span class=\"math-function\">" +
|
|
1286
|
+
return r(this, t, e && e.implicit) && (a = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + a + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), "<span class=\"math-function\">" + xn(this.name) + "</span><span class=\"math-parenthesis math-round-parenthesis\">(</span>" + n.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-parenthesis math-round-parenthesis\">)</span><span class=\"math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator\">=</span>" + a;
|
|
1285
1287
|
}
|
|
1286
1288
|
_toTex(e) {
|
|
1287
1289
|
var t = e && e.parenthesis ? e.parenthesis : "keep", n = this.expr.toTex(e);
|
|
1288
1290
|
return r(this, t, e && e.implicit) && (n = `\\left(${n}\\right)`), "\\mathrm{" + this.name + "}\\left(" + this.params.map(Ko).join(",") + "\\right)=" + n;
|
|
1289
1291
|
}
|
|
1290
1292
|
}
|
|
1291
|
-
return
|
|
1293
|
+
return J(i, "name", Yo), i;
|
|
1292
1294
|
}, {
|
|
1293
1295
|
isClass: !0,
|
|
1294
1296
|
isNode: !0
|
|
@@ -1296,7 +1298,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1296
1298
|
var { Node: t, size: n } = e;
|
|
1297
1299
|
class r extends t {
|
|
1298
1300
|
constructor(e, t) {
|
|
1299
|
-
if (super(), this.dimensions = e, this.dotNotation = t || !1, !Array.isArray(e) || !e.every(
|
|
1301
|
+
if (super(), this.dimensions = e, this.dotNotation = t || !1, !Array.isArray(e) || !e.every(K)) throw TypeError("Array containing Nodes expected for parameter \"dimensions\"");
|
|
1300
1302
|
if (this.dotNotation && !this.isObjectProperty()) throw Error("dotNotation only applicable for object properties");
|
|
1301
1303
|
}
|
|
1302
1304
|
get type() {
|
|
@@ -1306,20 +1308,20 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1306
1308
|
return !0;
|
|
1307
1309
|
}
|
|
1308
1310
|
_compile(e, t) {
|
|
1309
|
-
var r =
|
|
1311
|
+
var r = vo(this.dimensions, function(r, a) {
|
|
1310
1312
|
if (r.filter((e) => e.isSymbolNode && e.name === "end").length > 0) {
|
|
1311
|
-
var
|
|
1312
|
-
|
|
1313
|
-
var
|
|
1313
|
+
var o = Object.create(t);
|
|
1314
|
+
o.end = !0;
|
|
1315
|
+
var s = r._compile(e, o);
|
|
1314
1316
|
return function(e, t, r) {
|
|
1315
|
-
if (!
|
|
1316
|
-
var
|
|
1317
|
-
return
|
|
1317
|
+
if (!ra(r) && !i(r) && !mr(r)) throw TypeError("Cannot resolve \"end\": context must be a Matrix, Array, or string but is " + Qa(r));
|
|
1318
|
+
var o = n(r), c = Object.create(t);
|
|
1319
|
+
return c.end = o[a], s(e, c, r);
|
|
1318
1320
|
};
|
|
1319
1321
|
} else return r._compile(e, t);
|
|
1320
|
-
}),
|
|
1322
|
+
}), a = G(e, "index");
|
|
1321
1323
|
return function(e, t, n) {
|
|
1322
|
-
return
|
|
1324
|
+
return a(...vo(r, function(r) {
|
|
1323
1325
|
return r(e, t, n);
|
|
1324
1326
|
}));
|
|
1325
1327
|
};
|
|
@@ -1335,7 +1337,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1335
1337
|
return new r(this.dimensions.slice(0), this.dotNotation);
|
|
1336
1338
|
}
|
|
1337
1339
|
isObjectProperty() {
|
|
1338
|
-
return this.dimensions.length === 1 &&
|
|
1340
|
+
return this.dimensions.length === 1 && q(this.dimensions[0]) && typeof this.dimensions[0].value == "string";
|
|
1339
1341
|
}
|
|
1340
1342
|
getObjectProperty() {
|
|
1341
1343
|
return this.isObjectProperty() ? this.dimensions[0].value : null;
|
|
@@ -1355,7 +1357,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1355
1357
|
}
|
|
1356
1358
|
_toHTML(e) {
|
|
1357
1359
|
for (var t = [], n = 0; n < this.dimensions.length; n++) t[n] = this.dimensions[n].toHTML();
|
|
1358
|
-
return this.dotNotation ? "<span class=\"math-operator math-accessor-operator\">.</span><span class=\"math-symbol math-property\">" +
|
|
1360
|
+
return this.dotNotation ? "<span class=\"math-operator math-accessor-operator\">.</span><span class=\"math-symbol math-property\">" + xn(this.getObjectProperty()) + "</span>" : "<span class=\"math-parenthesis math-square-parenthesis\">[</span>" + t.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-parenthesis math-square-parenthesis\">]</span>";
|
|
1359
1361
|
}
|
|
1360
1362
|
_toTex(e) {
|
|
1361
1363
|
var t = this.dimensions.map(function(t) {
|
|
@@ -1364,7 +1366,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1364
1366
|
return this.dotNotation ? "." + this.getObjectProperty() : "_{" + t.join(",") + "}";
|
|
1365
1367
|
}
|
|
1366
1368
|
}
|
|
1367
|
-
return
|
|
1369
|
+
return J(r, "name", Zo), r;
|
|
1368
1370
|
}, {
|
|
1369
1371
|
isClass: !0,
|
|
1370
1372
|
isNode: !0
|
|
@@ -1373,7 +1375,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1373
1375
|
class n extends t {
|
|
1374
1376
|
constructor(e) {
|
|
1375
1377
|
if (super(), this.properties = e || {}, e && (typeof e != "object" || !Object.keys(e).every(function(t) {
|
|
1376
|
-
return
|
|
1378
|
+
return K(e[t]);
|
|
1377
1379
|
}))) throw TypeError("Object containing Nodes expected");
|
|
1378
1380
|
}
|
|
1379
1381
|
get type() {
|
|
@@ -1384,32 +1386,32 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1384
1386
|
}
|
|
1385
1387
|
_compile(e, t) {
|
|
1386
1388
|
var n = {};
|
|
1387
|
-
for (var r in this.properties) if (
|
|
1388
|
-
var i =
|
|
1389
|
-
n[a] =
|
|
1389
|
+
for (var r in this.properties) if (U(this.properties, r)) {
|
|
1390
|
+
var i = mn(r), a = JSON.parse(i);
|
|
1391
|
+
n[a] = G(this.properties, r)._compile(e, t);
|
|
1390
1392
|
}
|
|
1391
1393
|
return function(e, t, r) {
|
|
1392
1394
|
var i = {};
|
|
1393
|
-
for (var a in n)
|
|
1395
|
+
for (var a in n) U(n, a) && (i[a] = n[a](e, t, r));
|
|
1394
1396
|
return i;
|
|
1395
1397
|
};
|
|
1396
1398
|
}
|
|
1397
1399
|
forEach(e) {
|
|
1398
|
-
for (var t in this.properties)
|
|
1400
|
+
for (var t in this.properties) U(this.properties, t) && e(this.properties[t], "properties[" + mn(t) + "]", this);
|
|
1399
1401
|
}
|
|
1400
1402
|
map(e) {
|
|
1401
1403
|
var t = {};
|
|
1402
|
-
for (var r in this.properties)
|
|
1404
|
+
for (var r in this.properties) U(this.properties, r) && (t[r] = this._ifNode(e(this.properties[r], "properties[" + mn(r) + "]", this)));
|
|
1403
1405
|
return new n(t);
|
|
1404
1406
|
}
|
|
1405
1407
|
clone() {
|
|
1406
1408
|
var e = {};
|
|
1407
|
-
for (var t in this.properties)
|
|
1409
|
+
for (var t in this.properties) U(this.properties, t) && (e[t] = this.properties[t]);
|
|
1408
1410
|
return new n(e);
|
|
1409
1411
|
}
|
|
1410
1412
|
_toString(e) {
|
|
1411
1413
|
var t = [];
|
|
1412
|
-
for (var n in this.properties)
|
|
1414
|
+
for (var n in this.properties) U(this.properties, n) && t.push(mn(n) + ": " + this.properties[n].toString(e));
|
|
1413
1415
|
return "{" + t.join(", ") + "}";
|
|
1414
1416
|
}
|
|
1415
1417
|
toJSON() {
|
|
@@ -1423,16 +1425,16 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1423
1425
|
}
|
|
1424
1426
|
_toHTML(e) {
|
|
1425
1427
|
var t = [];
|
|
1426
|
-
for (var n in this.properties)
|
|
1428
|
+
for (var n in this.properties) U(this.properties, n) && t.push("<span class=\"math-symbol math-property\">" + xn(n) + "</span><span class=\"math-operator math-assignment-operator math-property-assignment-operator math-binary-operator\">:</span>" + this.properties[n].toHTML(e));
|
|
1427
1429
|
return "<span class=\"math-parenthesis math-curly-parenthesis\">{</span>" + t.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-parenthesis math-curly-parenthesis\">}</span>";
|
|
1428
1430
|
}
|
|
1429
1431
|
_toTex(e) {
|
|
1430
1432
|
var t = [];
|
|
1431
|
-
for (var n in this.properties)
|
|
1433
|
+
for (var n in this.properties) U(this.properties, n) && t.push("\\mathbf{" + n + ":} & " + this.properties[n].toTex(e) + "\\\\");
|
|
1432
1434
|
return "\\left\\{\\begin{array}{ll}" + t.join("\n") + "\\end{array}\\right\\}";
|
|
1433
1435
|
}
|
|
1434
1436
|
}
|
|
1435
|
-
return
|
|
1437
|
+
return J(n, "name", $o), n;
|
|
1436
1438
|
}, {
|
|
1437
1439
|
isClass: !0,
|
|
1438
1440
|
isNode: !0
|
|
@@ -1440,7 +1442,7 @@ var qo = "ConstantNode", Jo = /* #__PURE__ */ z(qo, ["Node", "isBounded"], (e) =
|
|
|
1440
1442
|
//#endregion
|
|
1441
1443
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/utils/scope.js
|
|
1442
1444
|
function ts(e, t) {
|
|
1443
|
-
return new
|
|
1445
|
+
return new oe(e, new cn(t), new Set(Object.keys(t)));
|
|
1444
1446
|
}
|
|
1445
1447
|
//#endregion
|
|
1446
1448
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/node/OperatorNode.js
|
|
@@ -1448,8 +1450,8 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1448
1450
|
var { Node: t } = e;
|
|
1449
1451
|
function n(e, t) {
|
|
1450
1452
|
var r = e;
|
|
1451
|
-
if (t === "auto") for (;
|
|
1452
|
-
return
|
|
1453
|
+
if (t === "auto") for (; Wa(r);) r = r.content;
|
|
1454
|
+
return q(r) ? !0 : W(r) ? n(r.args[0], t) : !1;
|
|
1453
1455
|
}
|
|
1454
1456
|
function r(e, t, r, i, a) {
|
|
1455
1457
|
var o = Z(e, t, r), s = jo(e, t);
|
|
@@ -1492,9 +1494,9 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1492
1494
|
break;
|
|
1493
1495
|
case 2:
|
|
1494
1496
|
var f, p = Z(i[0], t, r, e), m = Mo(e, i[0], t);
|
|
1495
|
-
f = p === null ? !1 : p === o && s === "right" && !m
|
|
1497
|
+
f = p === null ? !1 : p === o && s === "right" && !m || p < o;
|
|
1496
1498
|
var h, g = Z(i[1], t, r, e), _ = Mo(e, i[1], t);
|
|
1497
|
-
if (h = g === null ? !1 : g === o && s === "left" && !_
|
|
1499
|
+
if (h = g === null ? !1 : g === o && s === "left" && !_ || g < o, a) {
|
|
1498
1500
|
var v, y, b;
|
|
1499
1501
|
t === "keep" ? (v = e.getIdentifier(), y = e.args[0].getIdentifier(), b = e.args[1].getIdentifier()) : (v = e.getContent().getIdentifier(), y = e.args[0].getContent().getIdentifier(), b = e.args[1].getContent().getIdentifier()), p !== null && (ko[o][v].latexLeftParens === !1 && (f = !1), ko[p][y].latexParens === !1 && (f = !1)), g !== null && (ko[o][v].latexRightParens === !1 && (h = !1), ko[g][b].latexParens === !1 && (h = !1));
|
|
1500
1502
|
}
|
|
@@ -1503,18 +1505,18 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1503
1505
|
default:
|
|
1504
1506
|
(e.getIdentifier() === "OperatorNode:add" || e.getIdentifier() === "OperatorNode:multiply") && (c = i.map(function(n) {
|
|
1505
1507
|
var i = Z(n, t, r, e), a = Mo(e, n, t), c = jo(n, t);
|
|
1506
|
-
return i === null ? !1 : o === i && s === c && !a
|
|
1508
|
+
return i === null ? !1 : o === i && s === c && !a || i < o;
|
|
1507
1509
|
}));
|
|
1508
1510
|
break;
|
|
1509
1511
|
}
|
|
1510
|
-
if (i.length >= 2 && e.getIdentifier() === "OperatorNode:multiply" && e.implicit && t !== "all" && r === "hide") for (var x = 1; x < c.length; ++x) n(i[x], t) && !c[x - 1] && (t !== "keep" ||
|
|
1512
|
+
if (i.length >= 2 && e.getIdentifier() === "OperatorNode:multiply" && e.implicit && t !== "all" && r === "hide") for (var x = 1; x < c.length; ++x) n(i[x], t) && !c[x - 1] && (t !== "keep" || !Wa(i[x - 1])) && (c[x] = !0);
|
|
1511
1513
|
return c;
|
|
1512
1514
|
}
|
|
1513
1515
|
class i extends t {
|
|
1514
1516
|
constructor(e, t, n, r, i) {
|
|
1515
1517
|
if (super(), typeof e != "string") throw TypeError("string expected for parameter \"op\"");
|
|
1516
1518
|
if (typeof t != "string") throw TypeError("string expected for parameter \"fn\"");
|
|
1517
|
-
if (!Array.isArray(n) || !n.every(
|
|
1519
|
+
if (!Array.isArray(n) || !n.every(K)) throw TypeError("Array containing Nodes expected for parameter \"args\"");
|
|
1518
1520
|
this.implicit = r === !0, this.isPercentage = i === !0, this.op = e, this.fn = t, this.args = n || [];
|
|
1519
1521
|
}
|
|
1520
1522
|
get type() {
|
|
@@ -1524,8 +1526,8 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1524
1526
|
return !0;
|
|
1525
1527
|
}
|
|
1526
1528
|
_compile(e, t) {
|
|
1527
|
-
if (typeof this.fn != "string" || !
|
|
1528
|
-
var n =
|
|
1529
|
+
if (typeof this.fn != "string" || !ct(e, this.fn)) throw e[this.fn] ? Error("No access to function \"" + this.fn + "\"") : Error("Function " + this.fn + " missing in provided namespace \"math\"");
|
|
1530
|
+
var n = G(e, this.fn), r = vo(this.args, function(n) {
|
|
1529
1531
|
return n._compile(e, t);
|
|
1530
1532
|
});
|
|
1531
1533
|
if (typeof n == "function" && n.rawArgs === !0) {
|
|
@@ -1544,7 +1546,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1544
1546
|
return n(o(e, t, r), s(e, t, r));
|
|
1545
1547
|
};
|
|
1546
1548
|
} else return function(e, t, i) {
|
|
1547
|
-
return n.apply(null,
|
|
1549
|
+
return n.apply(null, vo(r, function(n) {
|
|
1548
1550
|
return n(e, t, i);
|
|
1549
1551
|
}));
|
|
1550
1552
|
};
|
|
@@ -1599,15 +1601,15 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1599
1601
|
var t = e && e.parenthesis ? e.parenthesis : "keep", n = e && e.implicit ? e.implicit : "hide", i = this.args, a = r(this, t, n, i, !1);
|
|
1600
1602
|
if (i.length === 1) {
|
|
1601
1603
|
var o = jo(this, t), s = i[0].toHTML(e);
|
|
1602
|
-
return a[0] && (s = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + s + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), o === "right" ? "<span class=\"math-operator math-unary-operator math-lefthand-unary-operator\">" +
|
|
1604
|
+
return a[0] && (s = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + s + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), o === "right" ? "<span class=\"math-operator math-unary-operator math-lefthand-unary-operator\">" + xn(this.op) + "</span>" + s : s + "<span class=\"math-operator math-unary-operator math-righthand-unary-operator\">" + xn(this.op) + "</span>";
|
|
1603
1605
|
} else if (i.length === 2) {
|
|
1604
1606
|
var c = i[0].toHTML(e), l = i[1].toHTML(e);
|
|
1605
|
-
return a[0] && (c = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + c + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), a[1] && (l = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + l + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), this.implicit && this.getIdentifier() === "OperatorNode:multiply" && n === "hide" ? c + "<span class=\"math-operator math-binary-operator math-implicit-binary-operator\"></span>" + l : c + "<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" +
|
|
1607
|
+
return a[0] && (c = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + c + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), a[1] && (l = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + l + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), this.implicit && this.getIdentifier() === "OperatorNode:multiply" && n === "hide" ? c + "<span class=\"math-operator math-binary-operator math-implicit-binary-operator\"></span>" + l : c + "<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" + xn(this.op) + "</span>" + l;
|
|
1606
1608
|
} else {
|
|
1607
1609
|
var u = i.map(function(t, n) {
|
|
1608
1610
|
return t = t.toHTML(e), a[n] && (t = "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + t + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>"), t;
|
|
1609
1611
|
});
|
|
1610
|
-
return i.length > 2 && (this.getIdentifier() === "OperatorNode:add" || this.getIdentifier() === "OperatorNode:multiply") ? this.implicit && this.getIdentifier() === "OperatorNode:multiply" && n === "hide" ? u.join("<span class=\"math-operator math-binary-operator math-implicit-binary-operator\"></span>") : u.join("<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" +
|
|
1612
|
+
return i.length > 2 && (this.getIdentifier() === "OperatorNode:add" || this.getIdentifier() === "OperatorNode:multiply") ? this.implicit && this.getIdentifier() === "OperatorNode:multiply" && n === "hide" ? u.join("<span class=\"math-operator math-binary-operator math-implicit-binary-operator\"></span>") : u.join("<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" + xn(this.op) + "</span>") : "<span class=\"math-function\">" + xn(this.fn) + "</span><span class=\"math-paranthesis math-round-parenthesis\">(</span>" + u.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-paranthesis math-round-parenthesis\">)</span>";
|
|
1611
1613
|
}
|
|
1612
1614
|
}
|
|
1613
1615
|
_toTex(e) {
|
|
@@ -1645,7 +1647,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1645
1647
|
return this.type + ":" + this.fn;
|
|
1646
1648
|
}
|
|
1647
1649
|
}
|
|
1648
|
-
return
|
|
1650
|
+
return J(i, "name", ns), i;
|
|
1649
1651
|
}, {
|
|
1650
1652
|
isClass: !0,
|
|
1651
1653
|
isNode: !0
|
|
@@ -1653,7 +1655,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1653
1655
|
var { Node: t } = e;
|
|
1654
1656
|
class n extends t {
|
|
1655
1657
|
constructor(e) {
|
|
1656
|
-
if (super(), !
|
|
1658
|
+
if (super(), !K(e)) throw TypeError("Node expected for parameter \"content\"");
|
|
1657
1659
|
this.content = e;
|
|
1658
1660
|
}
|
|
1659
1661
|
get type() {
|
|
@@ -1672,7 +1674,8 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1672
1674
|
e(this.content, "content", this);
|
|
1673
1675
|
}
|
|
1674
1676
|
map(e) {
|
|
1675
|
-
|
|
1677
|
+
var t = e(this.content, "content", this);
|
|
1678
|
+
return new n(t);
|
|
1676
1679
|
}
|
|
1677
1680
|
clone() {
|
|
1678
1681
|
return new n(this.content);
|
|
@@ -1696,7 +1699,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1696
1699
|
return !e || e && !e.parenthesis || e && e.parenthesis === "keep" ? `\\left(${this.content.toTex(e)}\\right)` : this.content.toTex(e);
|
|
1697
1700
|
}
|
|
1698
1701
|
}
|
|
1699
|
-
return
|
|
1702
|
+
return J(n, "name", is), n;
|
|
1700
1703
|
}, {
|
|
1701
1704
|
isClass: !0,
|
|
1702
1705
|
isNode: !0
|
|
@@ -1713,7 +1716,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1713
1716
|
}
|
|
1714
1717
|
class r extends t {
|
|
1715
1718
|
constructor(e, t, n) {
|
|
1716
|
-
if (super(), !
|
|
1719
|
+
if (super(), !K(e) || !K(t) || n && !K(n)) throw TypeError("Node expected");
|
|
1717
1720
|
if (arguments.length > 3) throw Error("Too many arguments");
|
|
1718
1721
|
this.start = e, this.end = t, this.step = n || null;
|
|
1719
1722
|
}
|
|
@@ -1725,7 +1728,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1725
1728
|
}
|
|
1726
1729
|
needsEnd() {
|
|
1727
1730
|
return this.filter(function(e) {
|
|
1728
|
-
return
|
|
1731
|
+
return Y(e) && e.name === "end";
|
|
1729
1732
|
}).length > 0;
|
|
1730
1733
|
}
|
|
1731
1734
|
_compile(e, t) {
|
|
@@ -1787,7 +1790,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1787
1790
|
return r.end && (o = `\\left(${o}\\right)`), i += ":" + o, i;
|
|
1788
1791
|
}
|
|
1789
1792
|
}
|
|
1790
|
-
return
|
|
1793
|
+
return J(r, "name", os), r;
|
|
1791
1794
|
}, {
|
|
1792
1795
|
isClass: !0,
|
|
1793
1796
|
isNode: !0
|
|
@@ -1816,7 +1819,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1816
1819
|
_compile(e, t) {
|
|
1817
1820
|
var n = this, r = this.params.map((n) => n._compile(e, t));
|
|
1818
1821
|
return function(t, i, a) {
|
|
1819
|
-
for (var o, s = r[0](t, i, a), c = 0; c < n.conditionals.length; c++) if (o = s, s = r[c + 1](t, i, a), !
|
|
1822
|
+
for (var o, s = r[0](t, i, a), c = 0; c < n.conditionals.length; c++) if (o = s, s = r[c + 1](t, i, a), !G(e, n.conditionals[c])(o, s)) return !1;
|
|
1820
1823
|
return !0;
|
|
1821
1824
|
};
|
|
1822
1825
|
}
|
|
@@ -1850,7 +1853,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1850
1853
|
for (var t = e && e.parenthesis ? e.parenthesis : "keep", r = Z(this, t, e && e.implicit), i = this.params.map(function(n, i) {
|
|
1851
1854
|
var a = Z(n, t, e && e.implicit);
|
|
1852
1855
|
return t === "all" || a !== null && a <= r ? "<span class=\"math-parenthesis math-round-parenthesis\">(</span>" + n.toHTML(e) + "<span class=\"math-parenthesis math-round-parenthesis\">)</span>" : n.toHTML(e);
|
|
1853
|
-
}), a = i[0], o = 0; o < this.conditionals.length; o++) a += "<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" +
|
|
1856
|
+
}), a = i[0], o = 0; o < this.conditionals.length; o++) a += "<span class=\"math-operator math-binary-operator math-explicit-binary-operator\">" + xn(n[this.conditionals[o]]) + "</span>" + i[o + 1];
|
|
1854
1857
|
return a;
|
|
1855
1858
|
}
|
|
1856
1859
|
_toTex(e) {
|
|
@@ -1861,7 +1864,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1861
1864
|
return i;
|
|
1862
1865
|
}
|
|
1863
1866
|
}
|
|
1864
|
-
return
|
|
1867
|
+
return J(r, "name", cs), r;
|
|
1865
1868
|
}, {
|
|
1866
1869
|
isClass: !0,
|
|
1867
1870
|
isNode: !0
|
|
@@ -1888,10 +1891,10 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1888
1891
|
_compile(e, t) {
|
|
1889
1892
|
var r = this.name;
|
|
1890
1893
|
if (t[r] === !0) return function(e, t, n) {
|
|
1891
|
-
return
|
|
1894
|
+
return G(t, r);
|
|
1892
1895
|
};
|
|
1893
1896
|
if (r in e) return function(t, n, i) {
|
|
1894
|
-
return t.has(r) ? t.get(r) :
|
|
1897
|
+
return t.has(r) ? t.get(r) : G(e, r);
|
|
1895
1898
|
};
|
|
1896
1899
|
var o = i(r);
|
|
1897
1900
|
return function(e, t, i) {
|
|
@@ -1912,7 +1915,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1912
1915
|
return this.name;
|
|
1913
1916
|
}
|
|
1914
1917
|
_toHTML(e) {
|
|
1915
|
-
var t =
|
|
1918
|
+
var t = xn(this.name);
|
|
1916
1919
|
return t === "true" || t === "false" ? "<span class=\"math-symbol math-boolean\">" + t + "</span>" : t === "i" ? "<span class=\"math-symbol math-imaginary-symbol\">" + t + "</span>" : t === "Infinity" ? "<span class=\"math-symbol math-infinity-symbol\">" + t + "</span>" : t === "NaN" ? "<span class=\"math-symbol math-nan-symbol\">" + t + "</span>" : t === "null" ? "<span class=\"math-symbol math-null-symbol\">" + t + "</span>" : t === "undefined" ? "<span class=\"math-symbol math-undefined-symbol\">" + t + "</span>" : "<span class=\"math-symbol\">" + t + "</span>";
|
|
1917
1920
|
}
|
|
1918
1921
|
toJSON() {
|
|
@@ -1940,7 +1943,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1940
1943
|
"Node",
|
|
1941
1944
|
"SymbolNode"
|
|
1942
1945
|
], (e) => {
|
|
1943
|
-
var t, { math: n, Node: r, SymbolNode: i } = e, a = (e) =>
|
|
1946
|
+
var t, { math: n, Node: r, SymbolNode: i } = e, a = (e) => De(e, { truncate: 78 });
|
|
1944
1947
|
function o(e, t, n) {
|
|
1945
1948
|
for (var r = "", i = /\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi, a = 0, o; (o = i.exec(e)) !== null;) if (r += e.substring(a, o.index), a = o.index, o[0] === "$$") r += "$", a++;
|
|
1946
1949
|
else {
|
|
@@ -1952,24 +1955,24 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1952
1955
|
r += s;
|
|
1953
1956
|
break;
|
|
1954
1957
|
case "object":
|
|
1955
|
-
if (
|
|
1958
|
+
if (K(s)) r += s.toTex(n);
|
|
1956
1959
|
else if (Array.isArray(s)) r += s.map(function(e, t) {
|
|
1957
|
-
if (
|
|
1960
|
+
if (K(e)) return e.toTex(n);
|
|
1958
1961
|
throw TypeError("Template: " + o[1] + "[" + t + "] is not a Node.");
|
|
1959
1962
|
}).join(",");
|
|
1960
1963
|
else throw TypeError("Template: " + o[1] + " has to be a Node, String or array of Nodes");
|
|
1961
1964
|
break;
|
|
1962
1965
|
default: throw TypeError("Template: " + o[1] + " has to be a Node, String or array of Nodes");
|
|
1963
1966
|
}
|
|
1964
|
-
else if (
|
|
1967
|
+
else if (K(s[o[2]] && s[o[2]])) r += s[o[2]].toTex(n);
|
|
1965
1968
|
else throw TypeError("Template: " + o[1] + "[" + o[2] + "] is not a Node.");
|
|
1966
1969
|
}
|
|
1967
1970
|
return r += e.slice(a), r;
|
|
1968
1971
|
}
|
|
1969
1972
|
class s extends r {
|
|
1970
1973
|
constructor(e, t, n) {
|
|
1971
|
-
if (super(), typeof e == "string" && (e = new i(e)), !
|
|
1972
|
-
if (!Array.isArray(t) || !t.every(
|
|
1974
|
+
if (super(), typeof e == "string" && (e = new i(e)), !K(e)) throw TypeError("Node expected as parameter \"fn\"");
|
|
1975
|
+
if (!Array.isArray(t) || !t.every(K)) throw TypeError("Array containing Nodes expected for parameter \"args\"");
|
|
1973
1976
|
var r = typeof n;
|
|
1974
1977
|
if (!(r === "undefined" || r === "boolean")) throw TypeError("optional flag, if specified, must be boolean");
|
|
1975
1978
|
this.fn = e, this.args = t || [], this.optional = !!n;
|
|
@@ -1984,13 +1987,13 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1984
1987
|
return !0;
|
|
1985
1988
|
}
|
|
1986
1989
|
_compile(e, t) {
|
|
1987
|
-
var n = this.args.map((n) => n._compile(e, t)), r = this.optional ||
|
|
1988
|
-
if (
|
|
1990
|
+
var n = this.args.map((n) => n._compile(e, t)), r = this.optional || Lt(this.fn) && this.fn.optionalChaining;
|
|
1991
|
+
if (Y(this.fn)) {
|
|
1989
1992
|
var i = this.fn.name;
|
|
1990
1993
|
if (t[i]) {
|
|
1991
1994
|
var o = this.args;
|
|
1992
1995
|
return function(t, s, c) {
|
|
1993
|
-
var l =
|
|
1996
|
+
var l = G(s, i);
|
|
1994
1997
|
if (!(r && l === void 0)) {
|
|
1995
1998
|
if (typeof l != "function") throw TypeError(`Argument '${i}' was not a function; received: ${a(l)}`);
|
|
1996
1999
|
if (l.rawArgs) return l(o, e, ts(t, s));
|
|
@@ -1999,10 +2002,10 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
1999
2002
|
}
|
|
2000
2003
|
};
|
|
2001
2004
|
} else {
|
|
2002
|
-
var c = i in e ?
|
|
2005
|
+
var c = i in e ? G(e, i) : void 0, l = typeof c == "function" && c.rawArgs === !0, u = (t) => {
|
|
2003
2006
|
var n;
|
|
2004
2007
|
if (t.has(i)) n = t.get(i);
|
|
2005
|
-
else if (i in e) n =
|
|
2008
|
+
else if (i in e) n = G(e, i);
|
|
2006
2009
|
else if (r) n = void 0;
|
|
2007
2010
|
else return s.onUndefinedFunction(i);
|
|
2008
2011
|
if (typeof n == "function" || r && n === void 0) return n;
|
|
@@ -2040,12 +2043,12 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2040
2043
|
};
|
|
2041
2044
|
}
|
|
2042
2045
|
}
|
|
2043
|
-
} else if (
|
|
2046
|
+
} else if (Lt(this.fn) && Hr(this.fn.index) && this.fn.index.isObjectProperty()) {
|
|
2044
2047
|
var f = this.fn.object._compile(e, t), m = this.fn.index.getObjectProperty(), h = this.args;
|
|
2045
2048
|
return function(t, i, a) {
|
|
2046
2049
|
var o = f(t, i, a);
|
|
2047
2050
|
if (!(r && (o == null || o[m] === void 0))) {
|
|
2048
|
-
var s =
|
|
2051
|
+
var s = p(o, m);
|
|
2049
2052
|
if (s != null && s.rawArgs) return s(h, e, ts(t, i));
|
|
2050
2053
|
var c = n.map((e) => e(t, i, a));
|
|
2051
2054
|
return s.apply(o, c);
|
|
@@ -2078,13 +2081,13 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2078
2081
|
}
|
|
2079
2082
|
toString(e) {
|
|
2080
2083
|
var t, n = this.fn.toString(e);
|
|
2081
|
-
return e && typeof e.handler == "object" &&
|
|
2084
|
+
return e && typeof e.handler == "object" && U(e.handler, n) && (t = e.handler[n](this, e)), t === void 0 ? super.toString(e) : t;
|
|
2082
2085
|
}
|
|
2083
2086
|
_toString(e) {
|
|
2084
2087
|
var t = this.args.map(function(t) {
|
|
2085
2088
|
return t.toString(e);
|
|
2086
2089
|
});
|
|
2087
|
-
return (
|
|
2090
|
+
return (ji(this.fn) ? "(" + this.fn.toString(e) + ")" : this.fn.toString(e)) + "(" + t.join(", ") + ")";
|
|
2088
2091
|
}
|
|
2089
2092
|
toJSON() {
|
|
2090
2093
|
return {
|
|
@@ -2097,11 +2100,11 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2097
2100
|
var t = this.args.map(function(t) {
|
|
2098
2101
|
return t.toHTML(e);
|
|
2099
2102
|
});
|
|
2100
|
-
return "<span class=\"math-function\">" +
|
|
2103
|
+
return "<span class=\"math-function\">" + xn(this.fn) + "</span><span class=\"math-paranthesis math-round-parenthesis\">(</span>" + t.join("<span class=\"math-separator\">,</span>") + "<span class=\"math-paranthesis math-round-parenthesis\">)</span>";
|
|
2101
2104
|
}
|
|
2102
2105
|
toTex(e) {
|
|
2103
2106
|
var t;
|
|
2104
|
-
return e && typeof e.handler == "object" &&
|
|
2107
|
+
return e && typeof e.handler == "object" && U(e.handler, this.name) && (t = e.handler[this.name](this, e)), t === void 0 ? super.toTex(e) : t;
|
|
2105
2108
|
}
|
|
2106
2109
|
_toTex(e) {
|
|
2107
2110
|
var t = this.args.map(function(t) {
|
|
@@ -2131,9 +2134,9 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2131
2134
|
return this.type + ":" + this.name;
|
|
2132
2135
|
}
|
|
2133
2136
|
}
|
|
2134
|
-
return t = s,
|
|
2137
|
+
return t = s, J(s, "name", ds), J(s, "onUndefinedFunction", function(e) {
|
|
2135
2138
|
throw Error("Undefined function " + e);
|
|
2136
|
-
}),
|
|
2139
|
+
}), J(s, "fromJSON", function(e) {
|
|
2137
2140
|
return new t(e.fn, e.args);
|
|
2138
2141
|
}), s;
|
|
2139
2142
|
}, {
|
|
@@ -2161,21 +2164,21 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2161
2164
|
], (e) => {
|
|
2162
2165
|
var { typed: t, numeric: n, config: r, AccessorNode: i, ArrayNode: a, AssignmentNode: o, BlockNode: s, ConditionalNode: c, ConstantNode: l, FunctionAssignmentNode: u, FunctionNode: d, IndexNode: f, ObjectNode: p, OperatorNode: m, ParenthesisNode: h, RangeNode: g, RelationalNode: _, SymbolNode: v } = e, y = t(ps, {
|
|
2163
2166
|
string: function(e) {
|
|
2164
|
-
return
|
|
2167
|
+
return te(e, {});
|
|
2165
2168
|
},
|
|
2166
2169
|
"Array | Matrix": function(e) {
|
|
2167
2170
|
return b(e, {});
|
|
2168
2171
|
},
|
|
2169
2172
|
"string, Object": function(e, t) {
|
|
2170
|
-
return
|
|
2173
|
+
return te(e, t.nodes === void 0 ? {} : t.nodes);
|
|
2171
2174
|
},
|
|
2172
2175
|
"Array | Matrix, Object": b
|
|
2173
2176
|
});
|
|
2174
2177
|
function b(e) {
|
|
2175
2178
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.nodes === void 0 ? {} : t.nodes;
|
|
2176
|
-
return
|
|
2179
|
+
return Pe(e, function(e) {
|
|
2177
2180
|
if (typeof e != "string") throw TypeError("String expected");
|
|
2178
|
-
return
|
|
2181
|
+
return te(e, n);
|
|
2179
2182
|
});
|
|
2180
2183
|
}
|
|
2181
2184
|
var x = {
|
|
@@ -2259,90 +2262,90 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2259
2262
|
conditionalLevel: null
|
|
2260
2263
|
};
|
|
2261
2264
|
}
|
|
2262
|
-
function
|
|
2265
|
+
function k(e, t) {
|
|
2263
2266
|
return e.expression.substr(e.index, t);
|
|
2264
2267
|
}
|
|
2265
|
-
function k(e) {
|
|
2266
|
-
return O(e, 1);
|
|
2267
|
-
}
|
|
2268
2268
|
function A(e) {
|
|
2269
|
-
e
|
|
2269
|
+
return k(e, 1);
|
|
2270
2270
|
}
|
|
2271
2271
|
function j(e) {
|
|
2272
|
-
|
|
2272
|
+
e.index++;
|
|
2273
2273
|
}
|
|
2274
2274
|
function M(e) {
|
|
2275
|
-
return e.expression.charAt(e.index
|
|
2275
|
+
return e.expression.charAt(e.index - 1);
|
|
2276
2276
|
}
|
|
2277
2277
|
function N(e) {
|
|
2278
|
+
return e.expression.charAt(e.index + 1);
|
|
2279
|
+
}
|
|
2280
|
+
function P(e) {
|
|
2278
2281
|
for (e.tokenType = x.NULL, e.token = "", e.comment = "";;) {
|
|
2279
|
-
if (
|
|
2280
|
-
if (y.isWhitespace(
|
|
2282
|
+
if (A(e) === "#") for (; A(e) !== "\n" && A(e) !== "";) e.comment += A(e), j(e);
|
|
2283
|
+
if (y.isWhitespace(A(e), e.nestingLevel)) j(e);
|
|
2281
2284
|
else break;
|
|
2282
2285
|
}
|
|
2283
|
-
if (
|
|
2286
|
+
if (A(e) === "") {
|
|
2284
2287
|
e.tokenType = x.DELIMITER;
|
|
2285
2288
|
return;
|
|
2286
2289
|
}
|
|
2287
|
-
if (
|
|
2288
|
-
e.tokenType = x.DELIMITER, e.token =
|
|
2290
|
+
if (A(e) === "\n" && !e.nestingLevel) {
|
|
2291
|
+
e.tokenType = x.DELIMITER, e.token = A(e), j(e);
|
|
2289
2292
|
return;
|
|
2290
2293
|
}
|
|
2291
|
-
var t =
|
|
2294
|
+
var t = A(e), n = k(e, 2), r = k(e, 3);
|
|
2292
2295
|
if (r.length === 3 && S[r]) {
|
|
2293
|
-
e.tokenType = x.DELIMITER, e.token = r,
|
|
2296
|
+
e.tokenType = x.DELIMITER, e.token = r, j(e), j(e), j(e);
|
|
2294
2297
|
return;
|
|
2295
2298
|
}
|
|
2296
2299
|
if (n.length === 2 && S[n] && (n !== "?." || !y.isDigit(e.expression.charAt(e.index + 2)))) {
|
|
2297
|
-
e.tokenType = x.DELIMITER, e.token = n,
|
|
2300
|
+
e.tokenType = x.DELIMITER, e.token = n, j(e), j(e);
|
|
2298
2301
|
return;
|
|
2299
2302
|
}
|
|
2300
2303
|
if (S[t]) {
|
|
2301
|
-
e.tokenType = x.DELIMITER, e.token = t,
|
|
2304
|
+
e.tokenType = x.DELIMITER, e.token = t, j(e);
|
|
2302
2305
|
return;
|
|
2303
2306
|
}
|
|
2304
2307
|
if (y.isDigitDot(t)) {
|
|
2305
2308
|
e.tokenType = x.NUMBER;
|
|
2306
|
-
var i =
|
|
2309
|
+
var i = k(e, 2);
|
|
2307
2310
|
if (i === "0b" || i === "0o" || i === "0x") {
|
|
2308
|
-
for (e.token +=
|
|
2309
|
-
if (
|
|
2310
|
-
else if (
|
|
2311
|
+
for (e.token += A(e), j(e), e.token += A(e), j(e); y.isAlpha(A(e), M(e), N(e)) || y.isDigit(A(e));) e.token += A(e), j(e);
|
|
2312
|
+
if (A(e) === ".") for (e.token += ".", j(e); y.isAlpha(A(e), M(e), N(e)) || y.isDigit(A(e));) e.token += A(e), j(e);
|
|
2313
|
+
else if (A(e) === "i") for (e.token += "i", j(e); y.isDigit(A(e));) e.token += A(e), j(e);
|
|
2311
2314
|
return;
|
|
2312
2315
|
}
|
|
2313
|
-
if (
|
|
2314
|
-
if (e.token +=
|
|
2316
|
+
if (A(e) === ".") {
|
|
2317
|
+
if (e.token += A(e), j(e), !y.isDigit(A(e))) {
|
|
2315
2318
|
e.tokenType = x.DELIMITER;
|
|
2316
2319
|
return;
|
|
2317
2320
|
}
|
|
2318
2321
|
} else {
|
|
2319
|
-
for (; y.isDigit(
|
|
2320
|
-
y.isDecimalMark(
|
|
2322
|
+
for (; y.isDigit(A(e));) e.token += A(e), j(e);
|
|
2323
|
+
y.isDecimalMark(A(e), N(e)) && (e.token += A(e), j(e));
|
|
2321
2324
|
}
|
|
2322
|
-
for (; y.isDigit(
|
|
2323
|
-
if (
|
|
2324
|
-
if (y.isDigit(
|
|
2325
|
-
if (e.token +=
|
|
2326
|
-
for (; y.isDigit(
|
|
2327
|
-
if (y.isDecimalMark(
|
|
2328
|
-
} else if (y.isDecimalMark(
|
|
2325
|
+
for (; y.isDigit(A(e));) e.token += A(e), j(e);
|
|
2326
|
+
if (A(e) === "E" || A(e) === "e") {
|
|
2327
|
+
if (y.isDigit(N(e)) || N(e) === "-" || N(e) === "+") {
|
|
2328
|
+
if (e.token += A(e), j(e), (A(e) === "+" || A(e) === "-") && (e.token += A(e), j(e)), !y.isDigit(A(e))) throw R(e, "Digit expected, got \"" + A(e) + "\"");
|
|
2329
|
+
for (; y.isDigit(A(e));) e.token += A(e), j(e);
|
|
2330
|
+
if (y.isDecimalMark(A(e), N(e))) throw R(e, "Digit expected, got \"" + A(e) + "\"");
|
|
2331
|
+
} else if (y.isDecimalMark(N(e), e.expression.charAt(e.index + 2))) throw j(e), R(e, "Digit expected, got \"" + A(e) + "\"");
|
|
2329
2332
|
}
|
|
2330
2333
|
return;
|
|
2331
2334
|
}
|
|
2332
|
-
if (y.isAlpha(
|
|
2333
|
-
for (; y.isAlpha(
|
|
2334
|
-
|
|
2335
|
+
if (y.isAlpha(A(e), M(e), N(e))) {
|
|
2336
|
+
for (; y.isAlpha(A(e), M(e), N(e)) || y.isDigit(A(e));) e.token += A(e), j(e);
|
|
2337
|
+
U(C, e.token) ? e.tokenType = x.DELIMITER : e.tokenType = x.SYMBOL;
|
|
2335
2338
|
return;
|
|
2336
2339
|
}
|
|
2337
|
-
for (e.tokenType = x.UNKNOWN;
|
|
2338
|
-
throw
|
|
2340
|
+
for (e.tokenType = x.UNKNOWN; A(e) !== "";) e.token += A(e), j(e);
|
|
2341
|
+
throw R(e, "Syntax error in part \"" + e.token + "\"");
|
|
2339
2342
|
}
|
|
2340
|
-
function
|
|
2343
|
+
function F(e) {
|
|
2341
2344
|
do
|
|
2342
|
-
|
|
2345
|
+
P(e);
|
|
2343
2346
|
while (e.token === "\n");
|
|
2344
2347
|
}
|
|
2345
|
-
function
|
|
2348
|
+
function ee(e) {
|
|
2346
2349
|
e.nestingLevel++;
|
|
2347
2350
|
}
|
|
2348
2351
|
function I(e) {
|
|
@@ -2363,327 +2366,327 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2363
2366
|
}, y.isDigit = function(e) {
|
|
2364
2367
|
return e >= "0" && e <= "9";
|
|
2365
2368
|
};
|
|
2366
|
-
function
|
|
2369
|
+
function te(e, t) {
|
|
2367
2370
|
var n = D();
|
|
2368
|
-
|
|
2371
|
+
Mt(n, {
|
|
2369
2372
|
expression: e,
|
|
2370
2373
|
extraNodes: t
|
|
2371
|
-
}),
|
|
2372
|
-
var r =
|
|
2373
|
-
if (n.token !== "") throw n.tokenType === x.DELIMITER ?
|
|
2374
|
+
}), P(n);
|
|
2375
|
+
var r = ne(n);
|
|
2376
|
+
if (n.token !== "") throw n.tokenType === x.DELIMITER ? Le(n, "Unexpected operator " + n.token) : R(n, "Unexpected part \"" + n.token + "\"");
|
|
2374
2377
|
return r;
|
|
2375
2378
|
}
|
|
2376
|
-
function
|
|
2379
|
+
function ne(e) {
|
|
2377
2380
|
var t, n = [], r;
|
|
2378
2381
|
for (e.token !== "" && e.token !== "\n" && e.token !== ";" && (t = L(e), e.comment && (t.comment = e.comment)); e.token === "\n" || e.token === ";";) n.length === 0 && t && (r = e.token !== ";", n.push({
|
|
2379
2382
|
node: t,
|
|
2380
2383
|
visible: r
|
|
2381
|
-
})),
|
|
2384
|
+
})), P(e), e.token !== "\n" && e.token !== ";" && e.token !== "" && (t = L(e), e.comment && (t.comment = e.comment), r = e.token !== ";", n.push({
|
|
2382
2385
|
node: t,
|
|
2383
2386
|
visible: r
|
|
2384
2387
|
}));
|
|
2385
2388
|
return n.length > 0 ? new s(n) : (t || (t = new l(void 0), e.comment && (t.comment = e.comment)), t);
|
|
2386
2389
|
}
|
|
2387
2390
|
function L(e) {
|
|
2388
|
-
var t, n, r, i, a =
|
|
2391
|
+
var t, n, r, i, a = re(e);
|
|
2389
2392
|
if (e.token === "=") {
|
|
2390
|
-
if (
|
|
2391
|
-
if (
|
|
2392
|
-
if (a.optionalChaining) throw
|
|
2393
|
-
return
|
|
2394
|
-
} else if (
|
|
2395
|
-
|
|
2396
|
-
}), i)) return
|
|
2397
|
-
throw
|
|
2393
|
+
if (Y(a)) return t = a.name, F(e), r = L(e), new o(new v(t), r);
|
|
2394
|
+
if (Lt(a)) {
|
|
2395
|
+
if (a.optionalChaining) throw R(e, "Cannot assign to optional chain");
|
|
2396
|
+
return F(e), r = L(e), new o(a.object, a.index, r);
|
|
2397
|
+
} else if (Ra(a) && Y(a.fn) && (i = !0, n = [], t = a.name, a.args.forEach(function(e, t) {
|
|
2398
|
+
Y(e) ? n[t] = e.name : i = !1;
|
|
2399
|
+
}), i)) return F(e), r = L(e), new u(t, n, r);
|
|
2400
|
+
throw R(e, "Invalid left hand side of assignment operator =");
|
|
2398
2401
|
}
|
|
2399
2402
|
return a;
|
|
2400
2403
|
}
|
|
2401
|
-
function
|
|
2402
|
-
for (var t =
|
|
2404
|
+
function re(e) {
|
|
2405
|
+
for (var t = ie(e); e.token === "?";) {
|
|
2403
2406
|
var n = e.conditionalLevel;
|
|
2404
|
-
e.conditionalLevel = e.nestingLevel,
|
|
2407
|
+
e.conditionalLevel = e.nestingLevel, F(e);
|
|
2405
2408
|
var r = t, i = L(e);
|
|
2406
|
-
if (e.token !== ":") throw
|
|
2407
|
-
e.conditionalLevel = null,
|
|
2409
|
+
if (e.token !== ":") throw R(e, "False part of conditional expression expected");
|
|
2410
|
+
e.conditionalLevel = null, F(e), t = new c(r, i, L(e)), e.conditionalLevel = n;
|
|
2408
2411
|
}
|
|
2409
2412
|
return t;
|
|
2410
2413
|
}
|
|
2411
|
-
function re(e) {
|
|
2412
|
-
for (var t = ie(e); e.token === "or";) P(e), t = new m("or", "or", [t, ie(e)]);
|
|
2413
|
-
return t;
|
|
2414
|
-
}
|
|
2415
2414
|
function ie(e) {
|
|
2416
|
-
for (var t =
|
|
2417
|
-
return t;
|
|
2418
|
-
}
|
|
2419
|
-
function R(e) {
|
|
2420
|
-
for (var t = ae(e); e.token === "and";) P(e), t = new m("and", "and", [t, ae(e)]);
|
|
2415
|
+
for (var t = ae(e); e.token === "or";) F(e), t = new m("or", "or", [t, ae(e)]);
|
|
2421
2416
|
return t;
|
|
2422
2417
|
}
|
|
2423
2418
|
function ae(e) {
|
|
2424
|
-
for (var t = oe(e); e.token === "
|
|
2419
|
+
for (var t = oe(e); e.token === "xor";) F(e), t = new m("xor", "xor", [t, oe(e)]);
|
|
2425
2420
|
return t;
|
|
2426
2421
|
}
|
|
2427
2422
|
function oe(e) {
|
|
2428
|
-
for (var t = se(e); e.token === "
|
|
2423
|
+
for (var t = se(e); e.token === "and";) F(e), t = new m("and", "and", [t, se(e)]);
|
|
2429
2424
|
return t;
|
|
2430
2425
|
}
|
|
2431
2426
|
function se(e) {
|
|
2432
|
-
for (var t = ce(e); e.token === "
|
|
2427
|
+
for (var t = ce(e); e.token === "|";) F(e), t = new m("|", "bitOr", [t, ce(e)]);
|
|
2433
2428
|
return t;
|
|
2434
2429
|
}
|
|
2435
2430
|
function ce(e) {
|
|
2436
|
-
for (var t =
|
|
2431
|
+
for (var t = le(e); e.token === "^|";) F(e), t = new m("^|", "bitXor", [t, le(e)]);
|
|
2432
|
+
return t;
|
|
2433
|
+
}
|
|
2434
|
+
function le(e) {
|
|
2435
|
+
for (var t = ue(e); e.token === "&";) F(e), t = new m("&", "bitAnd", [t, ue(e)]);
|
|
2436
|
+
return t;
|
|
2437
|
+
}
|
|
2438
|
+
function ue(e) {
|
|
2439
|
+
for (var t = [de(e)], n = [], r = {
|
|
2437
2440
|
"==": "equal",
|
|
2438
2441
|
"!=": "unequal",
|
|
2439
2442
|
"<": "smaller",
|
|
2440
2443
|
">": "larger",
|
|
2441
2444
|
"<=": "smallerEq",
|
|
2442
2445
|
">=": "largerEq"
|
|
2443
|
-
};
|
|
2446
|
+
}; U(r, e.token);) {
|
|
2444
2447
|
var i = {
|
|
2445
2448
|
name: e.token,
|
|
2446
2449
|
fn: r[e.token]
|
|
2447
2450
|
};
|
|
2448
|
-
n.push(i),
|
|
2451
|
+
n.push(i), F(e), t.push(de(e));
|
|
2449
2452
|
}
|
|
2450
2453
|
return t.length === 1 ? t[0] : t.length === 2 ? new m(n[0].name, n[0].fn, t) : new _(n.map((e) => e.fn), t);
|
|
2451
2454
|
}
|
|
2452
|
-
function
|
|
2453
|
-
for (var t =
|
|
2455
|
+
function de(e) {
|
|
2456
|
+
for (var t = fe(e), n, r, i, a = {
|
|
2454
2457
|
"<<": "leftShift",
|
|
2455
2458
|
">>": "rightArithShift",
|
|
2456
2459
|
">>>": "rightLogShift"
|
|
2457
|
-
};
|
|
2460
|
+
}; U(a, e.token);) n = e.token, r = a[n], F(e), i = [t, fe(e)], t = new m(n, r, i);
|
|
2458
2461
|
return t;
|
|
2459
2462
|
}
|
|
2460
|
-
function
|
|
2461
|
-
for (var t =
|
|
2463
|
+
function fe(e) {
|
|
2464
|
+
for (var t = pe(e), n, r, i, a = {
|
|
2462
2465
|
to: "to",
|
|
2463
2466
|
in: "to"
|
|
2464
|
-
};
|
|
2467
|
+
}; U(a, e.token);) n = e.token, r = a[n], F(e), n === "in" && "])},;".includes(e.token) ? t = new m("*", "multiply", [t, new v("in")], !0) : (i = [t, pe(e)], t = new m(n, r, i));
|
|
2465
2468
|
return t;
|
|
2466
2469
|
}
|
|
2467
|
-
function
|
|
2470
|
+
function pe(e) {
|
|
2468
2471
|
var t, n = [];
|
|
2469
2472
|
if (e.token === ":") {
|
|
2470
|
-
if (e.conditionalLevel === e.nestingLevel) throw
|
|
2473
|
+
if (e.conditionalLevel === e.nestingLevel) throw R(e, "The true-expression of a conditional operator may not be empty");
|
|
2471
2474
|
t = new l(1);
|
|
2472
|
-
} else t =
|
|
2475
|
+
} else t = me(e);
|
|
2473
2476
|
if (e.token === ":" && e.conditionalLevel !== e.nestingLevel) {
|
|
2474
|
-
for (n.push(t); e.token === ":" && n.length < 3;)
|
|
2477
|
+
for (n.push(t); e.token === ":" && n.length < 3;) F(e), e.token === ")" || e.token === "]" || e.token === "," || e.token === "" ? n.push(new v("end")) : n.push(me(e));
|
|
2475
2478
|
t = n.length === 3 ? new g(n[0], n[2], n[1]) : new g(n[0], n[1]);
|
|
2476
2479
|
}
|
|
2477
2480
|
return t;
|
|
2478
2481
|
}
|
|
2479
|
-
function
|
|
2480
|
-
for (var t =
|
|
2482
|
+
function me(e) {
|
|
2483
|
+
for (var t = he(e), n, r, i, a = {
|
|
2481
2484
|
"+": "add",
|
|
2482
2485
|
"-": "subtract"
|
|
2483
|
-
};
|
|
2484
|
-
n = e.token, r = a[n],
|
|
2485
|
-
var o =
|
|
2486
|
+
}; U(a, e.token);) {
|
|
2487
|
+
n = e.token, r = a[n], F(e);
|
|
2488
|
+
var o = he(e);
|
|
2486
2489
|
i = o.isPercentage ? [t, new m("*", "multiply", [t, o])] : [t, o], t = new m(n, r, i);
|
|
2487
2490
|
}
|
|
2488
2491
|
return t;
|
|
2489
2492
|
}
|
|
2490
|
-
function
|
|
2491
|
-
for (var t =
|
|
2493
|
+
function he(e) {
|
|
2494
|
+
for (var t = ge(e), n = t, r, i, a = {
|
|
2492
2495
|
"*": "multiply",
|
|
2493
2496
|
".*": "dotMultiply",
|
|
2494
2497
|
"/": "divide",
|
|
2495
2498
|
"./": "dotDivide",
|
|
2496
2499
|
"%": "mod",
|
|
2497
2500
|
mod: "mod"
|
|
2498
|
-
};
|
|
2501
|
+
}; U(a, e.token);) r = e.token, i = a[r], F(e), n = ge(e), t = new m(r, i, [t, n]);
|
|
2499
2502
|
return t;
|
|
2500
2503
|
}
|
|
2501
|
-
function
|
|
2502
|
-
for (var t =
|
|
2504
|
+
function ge(e) {
|
|
2505
|
+
for (var t = _e(e), n = t; e.tokenType === x.SYMBOL || e.token === "in" && q(t) || e.token === "in" && W(t) && t.fn === "unaryMinus" && q(t.args[0]) || e.tokenType === x.NUMBER && !q(n) && (!W(n) || n.op === "!") || e.token === "(";) n = _e(e), t = new m("*", "multiply", [t, n], !0);
|
|
2503
2506
|
return t;
|
|
2504
2507
|
}
|
|
2505
|
-
function
|
|
2506
|
-
for (var t =
|
|
2508
|
+
function _e(e) {
|
|
2509
|
+
for (var t = ve(e), n = t, r = []; e.token === "/" && O(n);) if (r.push(Mt({}, e)), F(e), e.tokenType === x.NUMBER) if (r.push(Mt({}, e)), F(e), e.tokenType === x.SYMBOL || e.token === "(" || e.token === "in") Mt(e, r.pop()), r.pop(), n = ve(e), t = new m("/", "divide", [t, n]);
|
|
2507
2510
|
else {
|
|
2508
|
-
r.pop(),
|
|
2511
|
+
r.pop(), Mt(e, r.pop());
|
|
2509
2512
|
break;
|
|
2510
2513
|
}
|
|
2511
2514
|
else {
|
|
2512
|
-
|
|
2515
|
+
Mt(e, r.pop());
|
|
2513
2516
|
break;
|
|
2514
2517
|
}
|
|
2515
2518
|
return t;
|
|
2516
2519
|
}
|
|
2517
|
-
function
|
|
2518
|
-
var t =
|
|
2520
|
+
function ve(e) {
|
|
2521
|
+
var t = ye(e);
|
|
2519
2522
|
if (e.token === "%") {
|
|
2520
|
-
var n =
|
|
2521
|
-
|
|
2523
|
+
var n = Mt({}, e);
|
|
2524
|
+
F(e);
|
|
2522
2525
|
try {
|
|
2523
|
-
|
|
2526
|
+
ye(e), Mt(e, n);
|
|
2524
2527
|
} catch {
|
|
2525
2528
|
t = new m("/", "divide", [t, new l(100)], !1, !0);
|
|
2526
2529
|
}
|
|
2527
2530
|
}
|
|
2528
2531
|
return t;
|
|
2529
2532
|
}
|
|
2530
|
-
function
|
|
2533
|
+
function ye(e) {
|
|
2531
2534
|
var t, n, r, i = {
|
|
2532
2535
|
"-": "unaryMinus",
|
|
2533
2536
|
"+": "unaryPlus",
|
|
2534
2537
|
"~": "bitNot",
|
|
2535
2538
|
not: "not"
|
|
2536
2539
|
};
|
|
2537
|
-
return
|
|
2540
|
+
return U(i, e.token) ? (r = i[e.token], t = e.token, F(e), n = [ye(e)], new m(t, r, n)) : xe(e);
|
|
2538
2541
|
}
|
|
2539
|
-
function
|
|
2540
|
-
var t =
|
|
2541
|
-
return (e.token === "^" || e.token === ".^") && (n = e.token, r = n === "^" ? "pow" : "dotPow",
|
|
2542
|
+
function xe(e) {
|
|
2543
|
+
var t = Se(e), n, r, i;
|
|
2544
|
+
return (e.token === "^" || e.token === ".^") && (n = e.token, r = n === "^" ? "pow" : "dotPow", F(e), i = [t, ye(e)], t = new m(n, r, i)), t;
|
|
2542
2545
|
}
|
|
2543
|
-
function
|
|
2544
|
-
for (var t =
|
|
2546
|
+
function Se(e) {
|
|
2547
|
+
for (var t = Ce(e); e.token === "??";) F(e), t = new m("??", "nullish", [t, Ce(e)]);
|
|
2545
2548
|
return t;
|
|
2546
2549
|
}
|
|
2547
|
-
function
|
|
2548
|
-
for (var t =
|
|
2550
|
+
function Ce(e) {
|
|
2551
|
+
for (var t = we(e), n, r, i, a = {
|
|
2549
2552
|
"!": "factorial",
|
|
2550
2553
|
"'": "ctranspose"
|
|
2551
|
-
};
|
|
2554
|
+
}; U(a, e.token);) n = e.token, r = a[n], P(e), i = [t], t = new m(n, r, i), t = Ee(e, t);
|
|
2552
2555
|
return t;
|
|
2553
2556
|
}
|
|
2554
|
-
function
|
|
2557
|
+
function we(e) {
|
|
2555
2558
|
var t = [];
|
|
2556
|
-
if (e.tokenType === x.SYMBOL &&
|
|
2559
|
+
if (e.tokenType === x.SYMBOL && U(e.extraNodes, e.token)) {
|
|
2557
2560
|
var n = e.extraNodes[e.token];
|
|
2558
|
-
if (
|
|
2559
|
-
if (t = [],
|
|
2560
|
-
if (e.token !== ")") throw
|
|
2561
|
-
I(e),
|
|
2561
|
+
if (P(e), e.token === "(") {
|
|
2562
|
+
if (t = [], ee(e), P(e), e.token !== ")") for (t.push(L(e)); e.token === ",";) P(e), t.push(L(e));
|
|
2563
|
+
if (e.token !== ")") throw R(e, "Parenthesis ) expected");
|
|
2564
|
+
I(e), P(e);
|
|
2562
2565
|
}
|
|
2563
2566
|
return new n(t);
|
|
2564
2567
|
}
|
|
2565
|
-
return
|
|
2568
|
+
return Te(e);
|
|
2566
2569
|
}
|
|
2567
|
-
function
|
|
2570
|
+
function Te(e) {
|
|
2568
2571
|
var t, r;
|
|
2569
|
-
return e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C ? (r = e.token,
|
|
2572
|
+
return e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C ? (r = e.token, P(e), t = U(w, r) ? new l(w[r]) : T.includes(r) ? new l(n(r, "number")) : new v(r), t = Ee(e, t), t) : De(e);
|
|
2570
2573
|
}
|
|
2571
|
-
function
|
|
2574
|
+
function Ee(e, t, n) {
|
|
2572
2575
|
for (var r;;) {
|
|
2573
2576
|
var a = !1;
|
|
2574
|
-
e.token === "?." && (a = !0,
|
|
2577
|
+
e.token === "?." && (a = !0, P(e));
|
|
2575
2578
|
var o = (e.token === "(" || e.token === "[" || e.token === ".") && (!n || n.includes(e.token));
|
|
2576
2579
|
if (!(a || o)) break;
|
|
2577
|
-
if (r = [], e.token === "(") if (a ||
|
|
2578
|
-
if (
|
|
2579
|
-
if (e.token !== ")") throw
|
|
2580
|
-
I(e),
|
|
2580
|
+
if (r = [], e.token === "(") if (a || Y(t) || Lt(t)) {
|
|
2581
|
+
if (ee(e), P(e), e.token !== ")") for (r.push(L(e)); e.token === ",";) P(e), r.push(L(e));
|
|
2582
|
+
if (e.token !== ")") throw R(e, "Parenthesis ) expected");
|
|
2583
|
+
I(e), P(e), t = new d(t, r, a);
|
|
2581
2584
|
} else return t;
|
|
2582
2585
|
else if (e.token === "[") {
|
|
2583
|
-
if (
|
|
2584
|
-
if (e.token !== "]") throw
|
|
2585
|
-
I(e),
|
|
2586
|
+
if (ee(e), P(e), e.token !== "]") for (r.push(L(e)); e.token === ",";) P(e), r.push(L(e));
|
|
2587
|
+
if (e.token !== "]") throw R(e, "Parenthesis ] expected");
|
|
2588
|
+
I(e), P(e), t = new i(t, new f(r), a);
|
|
2586
2589
|
} else {
|
|
2587
|
-
if (a ||
|
|
2590
|
+
if (a || P(e), !(e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C)) {
|
|
2588
2591
|
var s = "Property name expected after ";
|
|
2589
|
-
throw s += a ? "optional chain" : "dot",
|
|
2592
|
+
throw s += a ? "optional chain" : "dot", R(e, s);
|
|
2590
2593
|
}
|
|
2591
|
-
r.push(new l(e.token)),
|
|
2594
|
+
r.push(new l(e.token)), P(e), t = new i(t, new f(r, !0), a);
|
|
2592
2595
|
}
|
|
2593
2596
|
}
|
|
2594
2597
|
return t;
|
|
2595
2598
|
}
|
|
2596
|
-
function
|
|
2599
|
+
function De(e) {
|
|
2597
2600
|
var t, n;
|
|
2598
|
-
return e.token === "\"" || e.token === "'" ? (n =
|
|
2601
|
+
return e.token === "\"" || e.token === "'" ? (n = Oe(e, e.token), t = new l(n), t = Ee(e, t), t) : ke(e);
|
|
2599
2602
|
}
|
|
2600
|
-
function
|
|
2601
|
-
for (var n = "";
|
|
2602
|
-
|
|
2603
|
-
var r =
|
|
2603
|
+
function Oe(e, t) {
|
|
2604
|
+
for (var n = ""; A(e) !== "" && A(e) !== t;) if (A(e) === "\\") {
|
|
2605
|
+
j(e);
|
|
2606
|
+
var r = A(e), i = E[r];
|
|
2604
2607
|
if (i !== void 0) n += i, e.index += 1;
|
|
2605
2608
|
else if (r === "u") {
|
|
2606
2609
|
var a = e.expression.slice(e.index + 1, e.index + 5);
|
|
2607
2610
|
if (/^[0-9A-Fa-f]{4}$/.test(a)) n += String.fromCharCode(parseInt(a, 16)), e.index += 5;
|
|
2608
|
-
else throw
|
|
2609
|
-
} else throw
|
|
2610
|
-
} else n +=
|
|
2611
|
-
if (
|
|
2612
|
-
return
|
|
2611
|
+
else throw R(e, `Invalid unicode character \\u${a}`);
|
|
2612
|
+
} else throw R(e, `Bad escape character \\${r}`);
|
|
2613
|
+
} else n += A(e), j(e);
|
|
2614
|
+
if (P(e), e.token !== t) throw R(e, `End of string ${t} expected`);
|
|
2615
|
+
return P(e), n;
|
|
2613
2616
|
}
|
|
2614
|
-
function
|
|
2617
|
+
function ke(e) {
|
|
2615
2618
|
var t, n, r, i;
|
|
2616
2619
|
if (e.token === "[") {
|
|
2617
|
-
if (
|
|
2618
|
-
var o =
|
|
2620
|
+
if (ee(e), P(e), e.token !== "]") {
|
|
2621
|
+
var o = Ae(e);
|
|
2619
2622
|
if (e.token === ";") {
|
|
2620
|
-
for (r = 1, n = [o]; e.token === ";";)
|
|
2621
|
-
if (e.token !== "]") throw
|
|
2622
|
-
I(e),
|
|
2623
|
-
for (var s = 1; s < r; s++) if (n[s].items.length !== i) throw
|
|
2623
|
+
for (r = 1, n = [o]; e.token === ";";) P(e), e.token !== "]" && (n[r] = Ae(e), r++);
|
|
2624
|
+
if (e.token !== "]") throw R(e, "End of matrix ] expected");
|
|
2625
|
+
I(e), P(e), i = n[0].items.length;
|
|
2626
|
+
for (var s = 1; s < r; s++) if (n[s].items.length !== i) throw Le(e, "Column dimensions mismatch (" + n[s].items.length + " !== " + i + ")");
|
|
2624
2627
|
t = new a(n);
|
|
2625
2628
|
} else {
|
|
2626
|
-
if (e.token !== "]") throw
|
|
2627
|
-
I(e),
|
|
2629
|
+
if (e.token !== "]") throw R(e, "End of matrix ] expected");
|
|
2630
|
+
I(e), P(e), t = o;
|
|
2628
2631
|
}
|
|
2629
|
-
} else I(e),
|
|
2630
|
-
return
|
|
2632
|
+
} else I(e), P(e), t = new a([]);
|
|
2633
|
+
return Ee(e, t);
|
|
2631
2634
|
}
|
|
2632
|
-
return
|
|
2635
|
+
return je(e);
|
|
2633
2636
|
}
|
|
2634
|
-
function
|
|
2635
|
-
for (var t = [L(e)], n = 1; e.token === ",";)
|
|
2637
|
+
function Ae(e) {
|
|
2638
|
+
for (var t = [L(e)], n = 1; e.token === ",";) P(e), e.token !== "]" && e.token !== ";" && (t[n] = L(e), n++);
|
|
2636
2639
|
return new a(t);
|
|
2637
2640
|
}
|
|
2638
|
-
function
|
|
2641
|
+
function je(e) {
|
|
2639
2642
|
if (e.token === "{") {
|
|
2640
|
-
|
|
2643
|
+
ee(e);
|
|
2641
2644
|
var t, n = {};
|
|
2642
2645
|
do
|
|
2643
|
-
if (
|
|
2644
|
-
if (e.token === "\"" || e.token === "'") t =
|
|
2645
|
-
else if (e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C) t = e.token,
|
|
2646
|
-
else throw
|
|
2647
|
-
if (e.token !== ":") throw
|
|
2648
|
-
|
|
2646
|
+
if (P(e), e.token !== "}") {
|
|
2647
|
+
if (e.token === "\"" || e.token === "'") t = Oe(e, e.token);
|
|
2648
|
+
else if (e.tokenType === x.SYMBOL || e.tokenType === x.DELIMITER && e.token in C) t = e.token, P(e);
|
|
2649
|
+
else throw R(e, "Symbol or string expected as object key");
|
|
2650
|
+
if (e.token !== ":") throw R(e, "Colon : expected after object key");
|
|
2651
|
+
P(e), n[t] = L(e);
|
|
2649
2652
|
}
|
|
2650
2653
|
while (e.token === ",");
|
|
2651
|
-
if (e.token !== "}") throw
|
|
2652
|
-
I(e),
|
|
2654
|
+
if (e.token !== "}") throw R(e, "Comma , or bracket } expected after object value");
|
|
2655
|
+
I(e), P(e);
|
|
2653
2656
|
var r = new p(n);
|
|
2654
|
-
return r =
|
|
2657
|
+
return r = Ee(e, r), r;
|
|
2655
2658
|
}
|
|
2656
|
-
return
|
|
2659
|
+
return Me(e);
|
|
2657
2660
|
}
|
|
2658
|
-
function
|
|
2661
|
+
function Me(e) {
|
|
2659
2662
|
var t;
|
|
2660
2663
|
if (e.tokenType === x.NUMBER) {
|
|
2661
|
-
t = e.token,
|
|
2662
|
-
var i =
|
|
2664
|
+
t = e.token, P(e);
|
|
2665
|
+
var i = be(t, r);
|
|
2663
2666
|
return new l(n(t, i));
|
|
2664
2667
|
}
|
|
2665
|
-
return
|
|
2668
|
+
return Ne(e);
|
|
2666
2669
|
}
|
|
2667
|
-
function
|
|
2670
|
+
function Ne(e) {
|
|
2668
2671
|
var t;
|
|
2669
2672
|
if (e.token === "(") {
|
|
2670
|
-
if (
|
|
2671
|
-
return I(e),
|
|
2673
|
+
if (ee(e), P(e), t = L(e), e.token !== ")") throw R(e, "Parenthesis ) expected");
|
|
2674
|
+
return I(e), P(e), t = new h(t), t = Ee(e, t), t;
|
|
2672
2675
|
}
|
|
2673
|
-
return
|
|
2676
|
+
return Fe(e);
|
|
2674
2677
|
}
|
|
2675
|
-
function
|
|
2676
|
-
throw e.token === "" ?
|
|
2678
|
+
function Fe(e) {
|
|
2679
|
+
throw e.token === "" ? R(e, "Unexpected end of expression") : R(e, "Value expected");
|
|
2677
2680
|
}
|
|
2678
|
-
function
|
|
2681
|
+
function Ie(e) {
|
|
2679
2682
|
return e.index - e.token.length + 1;
|
|
2680
2683
|
}
|
|
2681
|
-
function
|
|
2682
|
-
var n =
|
|
2684
|
+
function R(e, t) {
|
|
2685
|
+
var n = Ie(e), r = /* @__PURE__ */ SyntaxError(t + " (char " + n + ")");
|
|
2683
2686
|
return r.char = n, r;
|
|
2684
2687
|
}
|
|
2685
|
-
function
|
|
2686
|
-
var n =
|
|
2688
|
+
function Le(e, t) {
|
|
2689
|
+
var n = Ie(e), r = /* @__PURE__ */ SyntaxError(t + " (char " + n + ")");
|
|
2687
2690
|
return r.char = n, r;
|
|
2688
2691
|
}
|
|
2689
2692
|
return t.addConversion({
|
|
@@ -2698,7 +2701,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2698
2701
|
return n(e).compile();
|
|
2699
2702
|
},
|
|
2700
2703
|
"Array | Matrix": function(e) {
|
|
2701
|
-
return
|
|
2704
|
+
return Pe(e, function(e) {
|
|
2702
2705
|
return n(e).compile();
|
|
2703
2706
|
});
|
|
2704
2707
|
}
|
|
@@ -2707,20 +2710,20 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2707
2710
|
var { typed: t, parse: n } = e;
|
|
2708
2711
|
return t(_s, {
|
|
2709
2712
|
string: function(e) {
|
|
2710
|
-
var t =
|
|
2713
|
+
var t = ee();
|
|
2711
2714
|
return n(e).compile().evaluate(t);
|
|
2712
2715
|
},
|
|
2713
2716
|
"string, Map | Object": function(e, t) {
|
|
2714
2717
|
return n(e).compile().evaluate(t);
|
|
2715
2718
|
},
|
|
2716
2719
|
"Array | Matrix": function(e) {
|
|
2717
|
-
var t =
|
|
2718
|
-
return
|
|
2720
|
+
var t = ee();
|
|
2721
|
+
return Pe(e, function(e) {
|
|
2719
2722
|
return n(e).compile().evaluate(t);
|
|
2720
2723
|
});
|
|
2721
2724
|
},
|
|
2722
2725
|
"Array | Matrix, Map | Object": function(e, t) {
|
|
2723
|
-
return
|
|
2726
|
+
return Pe(e, function(e) {
|
|
2724
2727
|
return n(e).compile().evaluate(t);
|
|
2725
2728
|
});
|
|
2726
2729
|
}
|
|
@@ -2730,7 +2733,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2730
2733
|
function r() {
|
|
2731
2734
|
if (!(this instanceof r)) throw SyntaxError("Constructor must be called with the new operator");
|
|
2732
2735
|
Object.defineProperty(this, "scope", {
|
|
2733
|
-
value:
|
|
2736
|
+
value: ee(),
|
|
2734
2737
|
writable: !1
|
|
2735
2738
|
});
|
|
2736
2739
|
}
|
|
@@ -2739,7 +2742,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2739
2742
|
}, r.prototype.get = function(e) {
|
|
2740
2743
|
if (this.scope.has(e)) return this.scope.get(e);
|
|
2741
2744
|
}, r.prototype.getAll = function() {
|
|
2742
|
-
return
|
|
2745
|
+
return wi(this.scope);
|
|
2743
2746
|
}, r.prototype.getAllAsMap = function() {
|
|
2744
2747
|
return this.scope;
|
|
2745
2748
|
};
|
|
@@ -2764,7 +2767,7 @@ var ns = "OperatorNode", rs = /* #__PURE__ */ z(ns, ["Node"], (e) => {
|
|
|
2764
2767
|
variables: {},
|
|
2765
2768
|
functions: {}
|
|
2766
2769
|
};
|
|
2767
|
-
for (var [t, n] of this.scope) if (
|
|
2770
|
+
for (var [t, n] of this.scope) if (xr(n)) {
|
|
2768
2771
|
if (!bs(n)) throw Error(`Cannot serialize external function ${t}`);
|
|
2769
2772
|
e.functions[t] = `${n.syntax} = ${n.expr}`;
|
|
2770
2773
|
} else e.variables[t] = n;
|
|
@@ -2810,13 +2813,13 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
2810
2813
|
} catch (e) {
|
|
2811
2814
|
c = e;
|
|
2812
2815
|
}
|
|
2813
|
-
c !== void 0 && !
|
|
2816
|
+
c !== void 0 && !Or(c) && (n += " " + De(c, { precision: 14 }) + "\n");
|
|
2814
2817
|
}
|
|
2815
2818
|
n += "\n", r && t("config(originalConfig)", { originalConfig: i });
|
|
2816
2819
|
}
|
|
2817
2820
|
return e.mayThrow && e.mayThrow.length && (n += "Throws: " + e.mayThrow.join(", ") + "\n\n"), e.seealso && e.seealso.length && (n += "See also: " + e.seealso.join(", ") + "\n"), n;
|
|
2818
2821
|
}, n.prototype.toJSON = function() {
|
|
2819
|
-
var e =
|
|
2822
|
+
var e = Be(this.doc);
|
|
2820
2823
|
return e.mathjs = "Help", e;
|
|
2821
2824
|
}, n.fromJSON = function(e) {
|
|
2822
2825
|
var t = {};
|
|
@@ -2832,14 +2835,14 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
2832
2835
|
var { on: t, math: n, typed: r } = e;
|
|
2833
2836
|
function i(e) {
|
|
2834
2837
|
if (!(this instanceof i)) throw SyntaxError("Constructor must be called with the new operator");
|
|
2835
|
-
|
|
2838
|
+
_a(e) ? this.value = e.value : this.value = e;
|
|
2836
2839
|
}
|
|
2837
2840
|
i.prototype.type = "Chain", i.prototype.isChain = !0, i.prototype.done = function() {
|
|
2838
2841
|
return this.value;
|
|
2839
2842
|
}, i.prototype.valueOf = function() {
|
|
2840
2843
|
return this.value;
|
|
2841
2844
|
}, i.prototype.toString = function() {
|
|
2842
|
-
return
|
|
2845
|
+
return De(this.value);
|
|
2843
2846
|
}, i.prototype.toJSON = function() {
|
|
2844
2847
|
return {
|
|
2845
2848
|
mathjs: "Chain",
|
|
@@ -2852,7 +2855,7 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
2852
2855
|
typeof t == "function" && (i.prototype[e] = s(t));
|
|
2853
2856
|
}
|
|
2854
2857
|
function o(e, t) {
|
|
2855
|
-
|
|
2858
|
+
qn(i.prototype, e, function() {
|
|
2856
2859
|
var e = t();
|
|
2857
2860
|
if (typeof e == "function") return s(e);
|
|
2858
2861
|
});
|
|
@@ -2873,7 +2876,7 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
2873
2876
|
if (typeof e == "string") a(e, t);
|
|
2874
2877
|
else {
|
|
2875
2878
|
var n = function(t) {
|
|
2876
|
-
|
|
2879
|
+
U(e, t) && c[t] === void 0 && o(t, () => e[t]);
|
|
2877
2880
|
};
|
|
2878
2881
|
for (var r in e) n(r);
|
|
2879
2882
|
}
|
|
@@ -7168,12 +7171,12 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
7168
7171
|
return t(Rs, { any: function(e) {
|
|
7169
7172
|
var t, i = e;
|
|
7170
7173
|
if (typeof e != "string") {
|
|
7171
|
-
for (t in n) if (
|
|
7174
|
+
for (t in n) if (U(n, t) && e === n[t]) {
|
|
7172
7175
|
i = t;
|
|
7173
7176
|
break;
|
|
7174
7177
|
}
|
|
7175
7178
|
}
|
|
7176
|
-
var a =
|
|
7179
|
+
var a = G(Ls, i);
|
|
7177
7180
|
if (!a) {
|
|
7178
7181
|
var o = typeof i == "function" ? i.name : i;
|
|
7179
7182
|
throw Error("No documentation found on \"" + o + "\"");
|
|
@@ -7205,10 +7208,10 @@ var xs = "parser", Ss = /* #__PURE__ */ z(xs, ["typed", "Parser"], (e) => {
|
|
|
7205
7208
|
//#endregion
|
|
7206
7209
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/function/algebra/simplify/wildcards.js
|
|
7207
7210
|
function Ws(e) {
|
|
7208
|
-
return
|
|
7211
|
+
return q(e) || W(e) && e.isUnary() && q(e.args[0]);
|
|
7209
7212
|
}
|
|
7210
7213
|
function Gs(e) {
|
|
7211
|
-
return !!(
|
|
7214
|
+
return !!(q(e) || (Ra(e) || W(e)) && e.args.every(Gs) || Wa(e) && Gs(e.content));
|
|
7212
7215
|
}
|
|
7213
7216
|
//#endregion
|
|
7214
7217
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/function/algebra/simplify/util.js
|
|
@@ -7226,7 +7229,7 @@ function qs(e) {
|
|
|
7226
7229
|
for (var t = 1; t < arguments.length; t++) {
|
|
7227
7230
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
7228
7231
|
t % 2 ? Ks(Object(n), !0).forEach(function(t) {
|
|
7229
|
-
|
|
7232
|
+
J(e, t, n[t]);
|
|
7230
7233
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ks(Object(n)).forEach(function(t) {
|
|
7231
7234
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
7232
7235
|
});
|
|
@@ -7291,18 +7294,18 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7291
7294
|
};
|
|
7292
7295
|
function u(e, t) {
|
|
7293
7296
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : s, r = o;
|
|
7294
|
-
if (typeof e == "string" ? r = e :
|
|
7297
|
+
if (typeof e == "string" ? r = e : W(e) ? r = e.fn.toString() : Ra(e) ? r = e.name : Wa(e) && (r = "paren"), U(n, r)) {
|
|
7295
7298
|
var i = n[r];
|
|
7296
|
-
if (
|
|
7297
|
-
if (
|
|
7299
|
+
if (U(i, t)) return i[t];
|
|
7300
|
+
if (U(s, r)) return s[r][t];
|
|
7298
7301
|
}
|
|
7299
|
-
if (
|
|
7302
|
+
if (U(n, o)) {
|
|
7300
7303
|
var a = n[o];
|
|
7301
|
-
return
|
|
7304
|
+
return U(a, t) ? a[t] : s[o][t];
|
|
7302
7305
|
}
|
|
7303
|
-
if (
|
|
7306
|
+
if (U(s, r)) {
|
|
7304
7307
|
var c = s[r];
|
|
7305
|
-
if (
|
|
7308
|
+
if (U(c, t)) return c[t];
|
|
7306
7309
|
}
|
|
7307
7310
|
return s[o][t];
|
|
7308
7311
|
}
|
|
@@ -7314,7 +7317,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7314
7317
|
}
|
|
7315
7318
|
function p(e, t) {
|
|
7316
7319
|
var n = qs({}, e);
|
|
7317
|
-
for (var r in t)
|
|
7320
|
+
for (var r in t) U(e, r) ? n[r] = qs(qs({}, t[r]), e[r]) : n[r] = t[r];
|
|
7318
7321
|
return n;
|
|
7319
7322
|
}
|
|
7320
7323
|
function m(e, t) {
|
|
@@ -7326,7 +7329,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7326
7329
|
var n, r = [], i = function(e) {
|
|
7327
7330
|
for (var t = 0; t < e.args.length; t++) {
|
|
7328
7331
|
var a = e.args[t];
|
|
7329
|
-
|
|
7332
|
+
W(a) && n === a.op ? i(a) : r.push(a);
|
|
7330
7333
|
}
|
|
7331
7334
|
};
|
|
7332
7335
|
return f(e, t) ? (n = e.op, i(e), r) : e.args;
|
|
@@ -7350,7 +7353,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7350
7353
|
}
|
|
7351
7354
|
}
|
|
7352
7355
|
function v(e) {
|
|
7353
|
-
return
|
|
7356
|
+
return W(e) ? function(t) {
|
|
7354
7357
|
try {
|
|
7355
7358
|
return new n(e.op, e.fn, t, e.implicit);
|
|
7356
7359
|
} catch (e) {
|
|
@@ -7400,7 +7403,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7400
7403
|
t.addConversion({
|
|
7401
7404
|
from: "Object",
|
|
7402
7405
|
to: "Map",
|
|
7403
|
-
convert:
|
|
7406
|
+
convert: wt
|
|
7404
7407
|
});
|
|
7405
7408
|
var O = t("simplify", {
|
|
7406
7409
|
Node: F,
|
|
@@ -7413,11 +7416,11 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7413
7416
|
t.removeConversion({
|
|
7414
7417
|
from: "Object",
|
|
7415
7418
|
to: "Map",
|
|
7416
|
-
convert:
|
|
7419
|
+
convert: wt
|
|
7417
7420
|
}), O.defaultContext = T, O.realContext = E, O.positiveContext = D;
|
|
7418
7421
|
function k(e) {
|
|
7419
7422
|
return e.transform(function(e) {
|
|
7420
|
-
return
|
|
7423
|
+
return Wa(e) ? k(e.content) : e;
|
|
7421
7424
|
});
|
|
7422
7425
|
}
|
|
7423
7426
|
var A = {
|
|
@@ -7711,7 +7714,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7711
7714
|
return new h("_p" + N++);
|
|
7712
7715
|
}
|
|
7713
7716
|
function F(e, t) {
|
|
7714
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
7717
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ee(), r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = r.consoleDebug;
|
|
7715
7718
|
t = M(t || O.rules, r.context);
|
|
7716
7719
|
var o = i(e, n);
|
|
7717
7720
|
o = k(o);
|
|
@@ -7731,7 +7734,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7731
7734
|
}
|
|
7732
7735
|
return o;
|
|
7733
7736
|
}
|
|
7734
|
-
function
|
|
7737
|
+
function I(e, t, n) {
|
|
7735
7738
|
var r = e;
|
|
7736
7739
|
if (e) for (var i = 0; i < e.length; ++i) {
|
|
7737
7740
|
var a = te(e[i], t, n);
|
|
@@ -7745,7 +7748,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7745
7748
|
}
|
|
7746
7749
|
var a = b(t.imposeContext, n), o = e;
|
|
7747
7750
|
if (o instanceof p || o instanceof u) {
|
|
7748
|
-
var l =
|
|
7751
|
+
var l = I(o.args, t, n);
|
|
7749
7752
|
l !== o.args && (o = o.clone(), o.args = l);
|
|
7750
7753
|
} else if (o instanceof m) {
|
|
7751
7754
|
if (o.content) {
|
|
@@ -7753,7 +7756,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7753
7756
|
h !== o.content && (o = new m(h));
|
|
7754
7757
|
}
|
|
7755
7758
|
} else if (o instanceof c) {
|
|
7756
|
-
var g =
|
|
7759
|
+
var g = I(o.items, t, n);
|
|
7757
7760
|
g !== o.items && (o = new c(g));
|
|
7758
7761
|
} else if (o instanceof s) {
|
|
7759
7762
|
var v = o.object;
|
|
@@ -7761,23 +7764,23 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7761
7764
|
var y = o.index;
|
|
7762
7765
|
o.index && (y = te(o.index, t, n)), (v !== o.object || y !== o.index) && (o = new s(v, y));
|
|
7763
7766
|
} else if (o instanceof d) {
|
|
7764
|
-
var x =
|
|
7767
|
+
var x = I(o.dimensions, t, n);
|
|
7765
7768
|
x !== o.dimensions && (o = new d(x));
|
|
7766
7769
|
} else if (o instanceof f) {
|
|
7767
7770
|
var S = !1, C = {};
|
|
7768
7771
|
for (var w in o.properties) C[w] = te(o.properties[w], t, n), C[w] !== o.properties[w] && (S = !0);
|
|
7769
7772
|
S && (o = new f(C));
|
|
7770
7773
|
}
|
|
7771
|
-
var T = t.r, E =
|
|
7772
|
-
if (!E && t.expanded && (T = t.expanded.r, E =
|
|
7774
|
+
var T = t.r, E = ae(t.l, o, a)[0];
|
|
7775
|
+
if (!E && t.expanded && (T = t.expanded.r, E = ae(t.expanded.l, o, a)[0]), !E && t.expandedNC1 && (T = t.expandedNC1.r, E = ae(t.expandedNC1.l, o, a)[0], E ||= (T = t.expandedNC2.r, ae(t.expandedNC2.l, o, a)[0])), E) {
|
|
7773
7776
|
var D = o.implicit;
|
|
7774
7777
|
o = T.clone(), D && "implicit" in T && (o.implicit = !0), o = o.transform(function(e) {
|
|
7775
|
-
return e.isSymbolNode &&
|
|
7778
|
+
return e.isSymbolNode && U(E.placeholders, e.name) ? E.placeholders[e.name].clone() : e;
|
|
7776
7779
|
});
|
|
7777
7780
|
}
|
|
7778
7781
|
return t.repeat && o !== e && (o = te(o, t, n)), o;
|
|
7779
7782
|
}
|
|
7780
|
-
function
|
|
7783
|
+
function ne(e, t) {
|
|
7781
7784
|
var n = [], r, i, a = w(e);
|
|
7782
7785
|
if (v(e, t)) for (var o = 0; o < e.args.length; o++) i = e.args.slice(0), i.splice(o, 1), r = i.length === 1 ? i[0] : a(i), n.push(a([e.args[o], r]));
|
|
7783
7786
|
else for (var s = 1; s < e.args.length; s++) {
|
|
@@ -7786,19 +7789,19 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7786
7789
|
}
|
|
7787
7790
|
return n;
|
|
7788
7791
|
}
|
|
7789
|
-
function
|
|
7792
|
+
function L(e, t) {
|
|
7790
7793
|
var n = { placeholders: {} };
|
|
7791
7794
|
if (!e.placeholders && !t.placeholders) return n;
|
|
7792
7795
|
if (!e.placeholders) return t;
|
|
7793
7796
|
if (!t.placeholders) return e;
|
|
7794
|
-
for (var r in e.placeholders) if (
|
|
7795
|
-
for (var i in t.placeholders)
|
|
7797
|
+
for (var r in e.placeholders) if (U(e.placeholders, r) && (n.placeholders[r] = e.placeholders[r], U(t.placeholders, r) && !oe(e.placeholders[r], t.placeholders[r]))) return null;
|
|
7798
|
+
for (var i in t.placeholders) U(t.placeholders, i) && (n.placeholders[i] = t.placeholders[i]);
|
|
7796
7799
|
return n;
|
|
7797
7800
|
}
|
|
7798
7801
|
function re(e, t) {
|
|
7799
7802
|
var n = [];
|
|
7800
7803
|
if (e.length === 0 || t.length === 0) return n;
|
|
7801
|
-
for (var r, i = 0; i < e.length; i++) for (var a = 0; a < t.length; a++) r =
|
|
7804
|
+
for (var r, i = 0; i < e.length; i++) for (var a = 0; a < t.length; a++) r = L(e[i], t[a]), r && n.push(r);
|
|
7802
7805
|
return n;
|
|
7803
7806
|
}
|
|
7804
7807
|
function ie(e) {
|
|
@@ -7809,7 +7812,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7809
7812
|
}
|
|
7810
7813
|
return n;
|
|
7811
7814
|
}
|
|
7812
|
-
function
|
|
7815
|
+
function ae(e, t, n, i) {
|
|
7813
7816
|
var a = [{ placeholders: {} }];
|
|
7814
7817
|
if (e instanceof p && t instanceof p || e instanceof u && t instanceof u) {
|
|
7815
7818
|
if (e instanceof p) {
|
|
@@ -7817,23 +7820,23 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7817
7820
|
} else if (e instanceof u && e.name !== t.name) return [];
|
|
7818
7821
|
if (t.args.length === 1 && e.args.length === 1 || !y(t, n) && t.args.length === e.args.length || i) {
|
|
7819
7822
|
for (var o = [], s = 0; s < e.args.length; s++) {
|
|
7820
|
-
var c =
|
|
7823
|
+
var c = ae(e.args[s], t.args[s], n);
|
|
7821
7824
|
if (c.length === 0) break;
|
|
7822
7825
|
o.push(c);
|
|
7823
7826
|
}
|
|
7824
7827
|
if (o.length !== e.args.length) {
|
|
7825
7828
|
if (!v(t, n) || e.args.length === 1) return [];
|
|
7826
7829
|
if (e.args.length > 2) throw Error("permuting >2 commutative non-associative rule arguments not yet implemented");
|
|
7827
|
-
var d =
|
|
7830
|
+
var d = ae(e.args[0], t.args[1], n);
|
|
7828
7831
|
if (d.length === 0) return [];
|
|
7829
|
-
var f =
|
|
7832
|
+
var f = ae(e.args[1], t.args[0], n);
|
|
7830
7833
|
if (f.length === 0) return [];
|
|
7831
7834
|
o = [d, f];
|
|
7832
7835
|
}
|
|
7833
7836
|
a = ie(o);
|
|
7834
7837
|
} else if (t.args.length >= 2 && e.args.length === 2) {
|
|
7835
|
-
for (var m =
|
|
7836
|
-
var b =
|
|
7838
|
+
for (var m = ne(t, n), g = [], _ = 0; _ < m.length; _++) {
|
|
7839
|
+
var b = ae(e, m[_], n, !0);
|
|
7837
7840
|
g = g.concat(b);
|
|
7838
7841
|
}
|
|
7839
7842
|
return g;
|
|
@@ -7850,15 +7853,15 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7850
7853
|
break;
|
|
7851
7854
|
case "c":
|
|
7852
7855
|
case "cl":
|
|
7853
|
-
if (
|
|
7856
|
+
if (q(t)) a[0].placeholders[e.name] = t;
|
|
7854
7857
|
else return [];
|
|
7855
7858
|
break;
|
|
7856
7859
|
case "v":
|
|
7857
|
-
if (!
|
|
7860
|
+
if (!q(t)) a[0].placeholders[e.name] = t;
|
|
7858
7861
|
else return [];
|
|
7859
7862
|
break;
|
|
7860
7863
|
case "vl":
|
|
7861
|
-
if (
|
|
7864
|
+
if (Y(t)) a[0].placeholders[e.name] = t;
|
|
7862
7865
|
else return [];
|
|
7863
7866
|
break;
|
|
7864
7867
|
case "cd":
|
|
@@ -7916,61 +7919,61 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7916
7919
|
"OperatorNode",
|
|
7917
7920
|
"SymbolNode"
|
|
7918
7921
|
], (e) => {
|
|
7919
|
-
var { typed: t, config: n, mathWithTransform: r, matrix:
|
|
7920
|
-
FunctionNode:
|
|
7921
|
-
OperatorNode:
|
|
7922
|
-
SymbolNode:
|
|
7923
|
-
}),
|
|
7924
|
-
Node: (e) =>
|
|
7922
|
+
var { typed: t, config: n, mathWithTransform: r, matrix: i, isBounded: a, fraction: o, bignumber: s, AccessorNode: c, ArrayNode: l, ConstantNode: u, FunctionNode: d, IndexNode: f, ObjectNode: p, OperatorNode: m, SymbolNode: h } = e, { isCommutative: g, isAssociative: _, allChildren: v, createMakeNodeFunction: y } = Js({
|
|
7923
|
+
FunctionNode: d,
|
|
7924
|
+
OperatorNode: m,
|
|
7925
|
+
SymbolNode: h
|
|
7926
|
+
}), b = t("simplifyConstant", {
|
|
7927
|
+
Node: (e) => w(M(e, {})),
|
|
7925
7928
|
"Node, Object": function(e, t) {
|
|
7926
|
-
return
|
|
7929
|
+
return w(M(e, t));
|
|
7927
7930
|
}
|
|
7928
7931
|
});
|
|
7929
|
-
function
|
|
7930
|
-
return
|
|
7932
|
+
function x(e) {
|
|
7933
|
+
return wa(e) ? e.valueOf() : e instanceof Array ? e.map(x) : ra(e) ? i(x(e.valueOf())) : e;
|
|
7931
7934
|
}
|
|
7932
|
-
function
|
|
7935
|
+
function S(e, t, n) {
|
|
7933
7936
|
try {
|
|
7934
7937
|
return r[e].apply(null, t);
|
|
7935
7938
|
} catch {
|
|
7936
|
-
return t = t.map(
|
|
7939
|
+
return t = t.map(x), D(r[e].apply(null, t), n);
|
|
7937
7940
|
}
|
|
7938
7941
|
}
|
|
7939
|
-
var
|
|
7940
|
-
Fraction:
|
|
7942
|
+
var C = t({
|
|
7943
|
+
Fraction: k,
|
|
7941
7944
|
number: function(e) {
|
|
7942
|
-
return e < 0 ?
|
|
7945
|
+
return e < 0 ? O(new u(-e)) : new u(e);
|
|
7943
7946
|
},
|
|
7944
7947
|
BigNumber: function(e) {
|
|
7945
|
-
return e < 0 ?
|
|
7948
|
+
return e < 0 ? O(new u(-e)) : new u(e);
|
|
7946
7949
|
},
|
|
7947
7950
|
bigint: function(e) {
|
|
7948
|
-
return e < 0n ?
|
|
7951
|
+
return e < 0n ? O(new u(-e)) : new u(e);
|
|
7949
7952
|
},
|
|
7950
7953
|
Complex: function(e) {
|
|
7951
7954
|
throw Error("Cannot convert Complex number to Node");
|
|
7952
7955
|
},
|
|
7953
7956
|
string: function(e) {
|
|
7954
|
-
return new
|
|
7957
|
+
return new u(e);
|
|
7955
7958
|
},
|
|
7956
7959
|
Matrix: function(e) {
|
|
7957
|
-
return new
|
|
7960
|
+
return new l(e.valueOf().map((e) => C(e)));
|
|
7958
7961
|
}
|
|
7959
7962
|
});
|
|
7960
|
-
function
|
|
7961
|
-
return
|
|
7963
|
+
function w(e) {
|
|
7964
|
+
return K(e) ? e : C(e);
|
|
7962
7965
|
}
|
|
7963
|
-
function
|
|
7964
|
-
if (t && t.exactFractions !== !1 &&
|
|
7965
|
-
var n =
|
|
7966
|
+
function T(e, t) {
|
|
7967
|
+
if (t && t.exactFractions !== !1 && a(e) && o) {
|
|
7968
|
+
var n = o(e), r = t && typeof t.fractionsLimit == "number" ? t.fractionsLimit : Infinity;
|
|
7966
7969
|
if (n.valueOf() === e && n.n < r && n.d < r) return n;
|
|
7967
7970
|
}
|
|
7968
7971
|
return e;
|
|
7969
7972
|
}
|
|
7970
|
-
var
|
|
7973
|
+
var D = t({
|
|
7971
7974
|
"string, Object": function(e, t) {
|
|
7972
|
-
var r =
|
|
7973
|
-
return r === "BigNumber" ? (
|
|
7975
|
+
var r = be(e, n);
|
|
7976
|
+
return r === "BigNumber" ? (s === void 0 && E(), s(e)) : r === "bigint" ? BigInt(e) : r === "Fraction" ? (o === void 0 && Xa(), o(e)) : T(parseFloat(e), t);
|
|
7974
7977
|
},
|
|
7975
7978
|
"Fraction, Object": function(e, t) {
|
|
7976
7979
|
return e;
|
|
@@ -7979,112 +7982,112 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
7979
7982
|
return e;
|
|
7980
7983
|
},
|
|
7981
7984
|
"number, Object": function(e, t) {
|
|
7982
|
-
return
|
|
7985
|
+
return T(e, t);
|
|
7983
7986
|
},
|
|
7984
7987
|
"bigint, Object": function(e, t) {
|
|
7985
7988
|
return e;
|
|
7986
7989
|
},
|
|
7987
7990
|
"Complex, Object": function(e, t) {
|
|
7988
|
-
return e.im === 0 ?
|
|
7991
|
+
return e.im === 0 ? T(e.re, t) : e;
|
|
7989
7992
|
},
|
|
7990
7993
|
"Matrix, Object": function(e, t) {
|
|
7991
|
-
return
|
|
7994
|
+
return i(T(e.valueOf()));
|
|
7992
7995
|
},
|
|
7993
7996
|
"Array, Object": function(e, t) {
|
|
7994
|
-
return e.map(
|
|
7997
|
+
return e.map(T);
|
|
7995
7998
|
}
|
|
7996
7999
|
});
|
|
8000
|
+
function O(e) {
|
|
8001
|
+
return new m("-", "unaryMinus", [e]);
|
|
8002
|
+
}
|
|
7997
8003
|
function k(e) {
|
|
7998
|
-
|
|
8004
|
+
var t = (e) => n.number === "BigNumber" && s ? s(e) : Number(e), r = e.s * e.n, i = r < 0n ? new m("-", "unaryMinus", [new u(-t(r))]) : new u(t(r));
|
|
8005
|
+
return e.d === 1n ? i : new m("/", "divide", [i, new u(t(e.d))]);
|
|
7999
8006
|
}
|
|
8000
|
-
function A(e) {
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
var
|
|
8009
|
-
|
|
8010
|
-
} else if (r.length > 1 && G(r[1]) && typeof r[1].value != "string") {
|
|
8011
|
-
var s = O(r[1].value, n), c = [], f = i(e) ? e.items : e.valueOf();
|
|
8012
|
-
for (var m of f) if (i(m)) c.push(m.items[s - 1]);
|
|
8013
|
-
else if (zr(e)) c.push(m[s - 1]);
|
|
8007
|
+
function A(e, t, n) {
|
|
8008
|
+
if (!Hr(t)) return new c(w(e), w(t));
|
|
8009
|
+
if (Fr(e) || ra(e)) {
|
|
8010
|
+
for (var r = Array.from(t.dimensions); r.length > 0;) if (q(r[0]) && typeof r[0].value != "string") {
|
|
8011
|
+
var a = D(r.shift().value, n);
|
|
8012
|
+
Fr(e) ? e = e.items[a - 1] : (e = e.valueOf()[a - 1], e instanceof Array && (e = i(e)));
|
|
8013
|
+
} else if (r.length > 1 && q(r[1]) && typeof r[1].value != "string") {
|
|
8014
|
+
var o = D(r[1].value, n), s = [], d = Fr(e) ? e.items : e.valueOf();
|
|
8015
|
+
for (var p of d) if (Fr(p)) s.push(p.items[o - 1]);
|
|
8016
|
+
else if (ra(e)) s.push(p[o - 1]);
|
|
8014
8017
|
else break;
|
|
8015
|
-
if (
|
|
8018
|
+
if (s.length === d.length) e = Fr(e) ? new l(s) : i(s), r.splice(1, 1);
|
|
8016
8019
|
else break;
|
|
8017
8020
|
} else break;
|
|
8018
|
-
return r.length === t.dimensions.length ? new
|
|
8021
|
+
return r.length === t.dimensions.length ? new c(w(e), t) : r.length > 0 ? (t = new f(r), new c(w(e), t)) : e;
|
|
8019
8022
|
}
|
|
8020
|
-
if (
|
|
8021
|
-
var
|
|
8022
|
-
return
|
|
8023
|
+
if (Yr(e) && t.dimensions.length === 1 && q(t.dimensions[0])) {
|
|
8024
|
+
var m = t.dimensions[0].value;
|
|
8025
|
+
return m in e.properties ? e.properties[m] : new u();
|
|
8023
8026
|
}
|
|
8024
|
-
return new
|
|
8027
|
+
return new c(w(e), t);
|
|
8025
8028
|
}
|
|
8026
|
-
function
|
|
8029
|
+
function j(e, t, n, r) {
|
|
8027
8030
|
var i = t.shift(), a = t.reduce((t, i) => {
|
|
8028
|
-
if (!
|
|
8031
|
+
if (!K(i)) {
|
|
8029
8032
|
var a = t.pop();
|
|
8030
|
-
if (
|
|
8033
|
+
if (K(a)) return [a, i];
|
|
8031
8034
|
try {
|
|
8032
|
-
return t.push(
|
|
8035
|
+
return t.push(S(e, [a, i], r)), t;
|
|
8033
8036
|
} catch {
|
|
8034
8037
|
t.push(a);
|
|
8035
8038
|
}
|
|
8036
8039
|
}
|
|
8037
|
-
return t.push(
|
|
8040
|
+
return t.push(w(t.pop())), [n([t.length === 1 ? t[0] : n(t), w(i)])];
|
|
8038
8041
|
}, [i]);
|
|
8039
|
-
return a.length === 1 ? a[0] : n([a[0],
|
|
8042
|
+
return a.length === 1 ? a[0] : n([a[0], C(a[1])]);
|
|
8040
8043
|
}
|
|
8041
|
-
function
|
|
8044
|
+
function M(e, t) {
|
|
8042
8045
|
switch (e.type) {
|
|
8043
8046
|
case "SymbolNode": return e;
|
|
8044
8047
|
case "ConstantNode":
|
|
8045
8048
|
switch (typeof e.value) {
|
|
8046
|
-
case "number": return
|
|
8047
|
-
case "bigint": return
|
|
8049
|
+
case "number": return D(e.value, t);
|
|
8050
|
+
case "bigint": return D(e.value, t);
|
|
8048
8051
|
case "string": return e.value;
|
|
8049
|
-
default: if (!isNaN(e.value)) return
|
|
8052
|
+
default: if (!isNaN(e.value)) return D(e.value, t);
|
|
8050
8053
|
}
|
|
8051
8054
|
return e;
|
|
8052
8055
|
case "FunctionNode":
|
|
8053
8056
|
if (r[e.name] && r[e.name].rawArgs) return e;
|
|
8054
8057
|
if (!["add", "multiply"].includes(e.name)) {
|
|
8055
|
-
var n = e.args.map((e) =>
|
|
8056
|
-
if (!n.some(
|
|
8057
|
-
return
|
|
8058
|
+
var n = e.args.map((e) => M(e, t));
|
|
8059
|
+
if (!n.some(K)) try {
|
|
8060
|
+
return S(e.name, n, t);
|
|
8058
8061
|
} catch {}
|
|
8059
|
-
if (e.name === "size" && n.length === 1 &&
|
|
8060
|
-
for (var
|
|
8061
|
-
return a
|
|
8062
|
+
if (e.name === "size" && n.length === 1 && Fr(n[0])) {
|
|
8063
|
+
for (var a = [], o = n[0]; Fr(o);) a.push(o.items.length), o = o.items[0];
|
|
8064
|
+
return i(a);
|
|
8062
8065
|
}
|
|
8063
|
-
return new
|
|
8066
|
+
return new d(e.name, n.map(w));
|
|
8064
8067
|
}
|
|
8065
8068
|
case "OperatorNode":
|
|
8066
|
-
var
|
|
8067
|
-
if (
|
|
8068
|
-
else if (
|
|
8069
|
-
for (var
|
|
8070
|
-
|
|
8071
|
-
} else
|
|
8072
|
-
else
|
|
8073
|
-
return
|
|
8074
|
-
case "ParenthesisNode": return
|
|
8075
|
-
case "AccessorNode": return
|
|
8069
|
+
var s = e.fn.toString(), c, u, m = y(e);
|
|
8070
|
+
if (W(e) && e.isUnary()) c = [M(e.args[0], t)], u = K(c[0]) ? m(c) : S(s, c, t);
|
|
8071
|
+
else if (_(e, t.context)) if (c = v(e, t.context), c = c.map((e) => M(e, t)), g(s, t.context)) {
|
|
8072
|
+
for (var h = [], x = [], C = 0; C < c.length; C++) K(c[C]) ? x.push(c[C]) : h.push(c[C]);
|
|
8073
|
+
h.length > 1 ? (u = j(s, h, m, t), x.unshift(u), u = j(s, x, m, t)) : u = j(s, c, m, t);
|
|
8074
|
+
} else u = j(s, c, m, t);
|
|
8075
|
+
else c = e.args.map((e) => M(e, t)), u = j(s, c, m, t);
|
|
8076
|
+
return u;
|
|
8077
|
+
case "ParenthesisNode": return M(e.content, t);
|
|
8078
|
+
case "AccessorNode": return A(M(e.object, t), M(e.index, t), t);
|
|
8076
8079
|
case "ArrayNode":
|
|
8077
|
-
var
|
|
8078
|
-
return
|
|
8079
|
-
case "IndexNode": return new
|
|
8080
|
+
var T = e.items.map((e) => M(e, t));
|
|
8081
|
+
return T.some(K) ? new l(T.map(w)) : i(T);
|
|
8082
|
+
case "IndexNode": return new f(e.dimensions.map((e) => b(e, t)));
|
|
8080
8083
|
case "ObjectNode":
|
|
8081
|
-
var
|
|
8082
|
-
for (var
|
|
8083
|
-
return new
|
|
8084
|
+
var E = {};
|
|
8085
|
+
for (var O in e.properties) E[O] = b(e.properties[O], t);
|
|
8086
|
+
return new p(E);
|
|
8084
8087
|
default: throw Error(`Unimplemented node type in simplifyConstant: ${e.type}`);
|
|
8085
8088
|
}
|
|
8086
8089
|
}
|
|
8087
|
-
return
|
|
8090
|
+
return b;
|
|
8088
8091
|
}), Zs = "simplifyCore", Qs = /* #__PURE__ */ z(Zs, [
|
|
8089
8092
|
"typed",
|
|
8090
8093
|
"parse",
|
|
@@ -8105,106 +8108,106 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8105
8108
|
"ParenthesisNode",
|
|
8106
8109
|
"SymbolNode"
|
|
8107
8110
|
], (e) => {
|
|
8108
|
-
var { typed: t, parse: n, equal: r, isZero:
|
|
8109
|
-
function
|
|
8110
|
-
return
|
|
8111
|
+
var { typed: t, parse: n, equal: r, isZero: i, add: a, subtract: o, multiply: s, divide: c, pow: l, AccessorNode: u, ArrayNode: d, ConstantNode: f, FunctionNode: p, IndexNode: m, ObjectNode: h, OperatorNode: g, ParenthesisNode: _, SymbolNode: v } = e, y = new f(0), b = new f(1), x = new f(!0), S = new f(!1);
|
|
8112
|
+
function C(e) {
|
|
8113
|
+
return W(e) && [
|
|
8111
8114
|
"and",
|
|
8112
8115
|
"not",
|
|
8113
8116
|
"or"
|
|
8114
8117
|
].includes(e.op);
|
|
8115
8118
|
}
|
|
8116
|
-
var { hasProperty:
|
|
8117
|
-
FunctionNode:
|
|
8118
|
-
OperatorNode:
|
|
8119
|
-
SymbolNode:
|
|
8119
|
+
var { hasProperty: w, isCommutative: T } = Js({
|
|
8120
|
+
FunctionNode: p,
|
|
8121
|
+
OperatorNode: g,
|
|
8122
|
+
SymbolNode: v
|
|
8120
8123
|
});
|
|
8121
|
-
function
|
|
8124
|
+
function E(e) {
|
|
8122
8125
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t ? t.context : void 0;
|
|
8123
|
-
if (
|
|
8124
|
-
if (
|
|
8125
|
-
var
|
|
8126
|
+
if (w(e, "trivial", n)) {
|
|
8127
|
+
if (Ra(e) && e.args.length === 1) return E(e.args[0], t);
|
|
8128
|
+
var a = !1, o = 0;
|
|
8126
8129
|
if (e.forEach((e) => {
|
|
8127
|
-
++
|
|
8128
|
-
}),
|
|
8129
|
-
}
|
|
8130
|
-
var
|
|
8131
|
-
if (
|
|
8132
|
-
var
|
|
8133
|
-
if (
|
|
8134
|
-
if (
|
|
8135
|
-
var
|
|
8136
|
-
|
|
8130
|
+
++o, o === 1 && (a = E(e, t));
|
|
8131
|
+
}), o === 1) return a;
|
|
8132
|
+
}
|
|
8133
|
+
var s = e;
|
|
8134
|
+
if (Ra(s)) {
|
|
8135
|
+
var c = No(s.name);
|
|
8136
|
+
if (c) {
|
|
8137
|
+
if (s.args.length > 2 && w(s, "associative", n)) for (; s.args.length > 2;) {
|
|
8138
|
+
var l = s.args.pop(), f = s.args.pop();
|
|
8139
|
+
s.args.push(new g(c, s.name, [l, f]));
|
|
8137
8140
|
}
|
|
8138
|
-
|
|
8139
|
-
} else return new
|
|
8140
|
-
}
|
|
8141
|
-
if (
|
|
8142
|
-
var
|
|
8143
|
-
if (
|
|
8144
|
-
var
|
|
8145
|
-
if (
|
|
8146
|
-
if (
|
|
8147
|
-
}
|
|
8148
|
-
if (
|
|
8149
|
-
var
|
|
8150
|
-
if (
|
|
8151
|
-
if (
|
|
8152
|
-
if (
|
|
8153
|
-
|
|
8141
|
+
s = new g(c, s.name, s.args);
|
|
8142
|
+
} else return new p(E(s.fn), s.args.map((e) => E(e, t)));
|
|
8143
|
+
}
|
|
8144
|
+
if (W(s) && s.isUnary()) {
|
|
8145
|
+
var _ = E(s.args[0], t);
|
|
8146
|
+
if (s.op === "~" && W(_) && _.isUnary() && _.op === "~" || s.op === "not" && W(_) && _.isUnary() && _.op === "not" && C(_.args[0])) return _.args[0];
|
|
8147
|
+
var v = !0;
|
|
8148
|
+
if (s.op === "-" && W(_) && (_.isBinary() && _.fn === "subtract" && (s = new g("-", "subtract", [_.args[1], _.args[0]]), v = !1), _.isUnary() && _.op === "-")) return _.args[0];
|
|
8149
|
+
if (v) return new g(s.op, s.fn, [_]);
|
|
8150
|
+
}
|
|
8151
|
+
if (W(s) && s.isBinary()) {
|
|
8152
|
+
var D = E(s.args[0], t), O = E(s.args[1], t);
|
|
8153
|
+
if (s.op === "+") {
|
|
8154
|
+
if (q(D) && i(D.value)) return O;
|
|
8155
|
+
if (q(O) && i(O.value)) return D;
|
|
8156
|
+
W(O) && O.isUnary() && O.op === "-" && (O = O.args[0], s = new g("-", "subtract", [D, O]));
|
|
8154
8157
|
}
|
|
8155
|
-
if (
|
|
8156
|
-
if (
|
|
8157
|
-
if (
|
|
8158
|
-
if (
|
|
8159
|
-
if (r(
|
|
8158
|
+
if (s.op === "-") return W(O) && O.isUnary() && O.op === "-" ? E(new g("+", "add", [D, O.args[0]]), t) : q(D) && i(D.value) ? E(new g("-", "unaryMinus", [O])) : q(O) && i(O.value) ? D : new g(s.op, s.fn, [D, O]);
|
|
8159
|
+
if (s.op === "*") {
|
|
8160
|
+
if (q(D)) {
|
|
8161
|
+
if (i(D.value)) return y;
|
|
8162
|
+
if (r(D.value, 1)) return O;
|
|
8160
8163
|
}
|
|
8161
|
-
if (
|
|
8162
|
-
if (
|
|
8163
|
-
if (r(
|
|
8164
|
-
if (
|
|
8164
|
+
if (q(O)) {
|
|
8165
|
+
if (i(O.value)) return y;
|
|
8166
|
+
if (r(O.value, 1)) return D;
|
|
8167
|
+
if (T(s, n)) return new g(s.op, s.fn, [O, D], s.implicit);
|
|
8165
8168
|
}
|
|
8166
|
-
return new
|
|
8169
|
+
return new g(s.op, s.fn, [D, O], s.implicit);
|
|
8167
8170
|
}
|
|
8168
|
-
if (
|
|
8169
|
-
if (
|
|
8170
|
-
if (
|
|
8171
|
-
if (r(
|
|
8171
|
+
if (s.op === "/") return q(D) && i(D.value) ? y : q(O) && r(O.value, 1) ? D : new g(s.op, s.fn, [D, O]);
|
|
8172
|
+
if (s.op === "^" && q(O)) {
|
|
8173
|
+
if (i(O.value)) return b;
|
|
8174
|
+
if (r(O.value, 1)) return D;
|
|
8172
8175
|
}
|
|
8173
|
-
if (
|
|
8174
|
-
if (
|
|
8175
|
-
if (
|
|
8176
|
-
if (
|
|
8177
|
-
} else return
|
|
8178
|
-
if (
|
|
8179
|
-
if (
|
|
8180
|
-
} else return
|
|
8176
|
+
if (s.op === "and") {
|
|
8177
|
+
if (q(D)) if (D.value) {
|
|
8178
|
+
if (C(O)) return O;
|
|
8179
|
+
if (q(O)) return O.value ? x : S;
|
|
8180
|
+
} else return S;
|
|
8181
|
+
if (q(O)) if (O.value) {
|
|
8182
|
+
if (C(D)) return D;
|
|
8183
|
+
} else return S;
|
|
8181
8184
|
}
|
|
8182
|
-
if (
|
|
8183
|
-
if (
|
|
8184
|
-
if (
|
|
8185
|
-
if (
|
|
8185
|
+
if (s.op === "or") {
|
|
8186
|
+
if (q(D)) {
|
|
8187
|
+
if (D.value) return x;
|
|
8188
|
+
if (C(O)) return O;
|
|
8186
8189
|
}
|
|
8187
|
-
if (
|
|
8188
|
-
if (
|
|
8189
|
-
if (
|
|
8190
|
+
if (q(O)) {
|
|
8191
|
+
if (O.value) return x;
|
|
8192
|
+
if (C(D)) return D;
|
|
8190
8193
|
}
|
|
8191
8194
|
}
|
|
8192
|
-
return new
|
|
8195
|
+
return new g(s.op, s.fn, [D, O]);
|
|
8193
8196
|
}
|
|
8194
|
-
if (
|
|
8195
|
-
if (
|
|
8196
|
-
if (
|
|
8197
|
-
if (
|
|
8198
|
-
if (
|
|
8199
|
-
var
|
|
8200
|
-
for (var
|
|
8201
|
-
return new
|
|
8197
|
+
if (W(s)) return new g(s.op, s.fn, s.args.map((e) => E(e, t)));
|
|
8198
|
+
if (Fr(s)) return new d(s.items.map((e) => E(e, t)));
|
|
8199
|
+
if (Lt(s)) return new u(E(s.object, t), E(s.index, t));
|
|
8200
|
+
if (Hr(s)) return new m(s.dimensions.map((e) => E(e, t)));
|
|
8201
|
+
if (Yr(s)) {
|
|
8202
|
+
var k = {};
|
|
8203
|
+
for (var A in s.properties) k[A] = E(s.properties[A], t);
|
|
8204
|
+
return new h(k);
|
|
8202
8205
|
}
|
|
8203
|
-
return
|
|
8206
|
+
return s;
|
|
8204
8207
|
}
|
|
8205
8208
|
return t(Zs, {
|
|
8206
|
-
Node:
|
|
8207
|
-
"Node,Object":
|
|
8209
|
+
Node: E,
|
|
8210
|
+
"Node,Object": E
|
|
8208
8211
|
});
|
|
8209
8212
|
}), $s = /* #__PURE__ */ z("resolve", [
|
|
8210
8213
|
"typed",
|
|
@@ -8218,25 +8221,25 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8218
8221
|
function s(e, t) {
|
|
8219
8222
|
var c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : /* @__PURE__ */ new Set();
|
|
8220
8223
|
if (!t) return e;
|
|
8221
|
-
if (
|
|
8224
|
+
if (Y(e)) {
|
|
8222
8225
|
if (c.has(e.name)) {
|
|
8223
8226
|
var l = Array.from(c).join(", ");
|
|
8224
8227
|
throw ReferenceError(`recursive loop of variable definitions among {${l}}`);
|
|
8225
8228
|
}
|
|
8226
8229
|
var u = t.get(e.name);
|
|
8227
|
-
if (
|
|
8230
|
+
if (K(u)) {
|
|
8228
8231
|
var d = new Set(c);
|
|
8229
8232
|
return d.add(e.name), s(u, t, d);
|
|
8230
8233
|
} else if (typeof u == "number") return n(String(u));
|
|
8231
8234
|
else if (u !== void 0) return new r(u);
|
|
8232
8235
|
else return e;
|
|
8233
|
-
} else if (
|
|
8236
|
+
} else if (W(e)) {
|
|
8234
8237
|
var f = e.args.map(function(e) {
|
|
8235
8238
|
return s(e, t, c);
|
|
8236
8239
|
});
|
|
8237
8240
|
return new a(e.op, e.fn, f, e.implicit);
|
|
8238
|
-
} else if (
|
|
8239
|
-
else if (
|
|
8241
|
+
} else if (Wa(e)) return new o(s(e.content, t, c));
|
|
8242
|
+
else if (Ra(e)) {
|
|
8240
8243
|
var p = e.args.map(function(e) {
|
|
8241
8244
|
return s(e, t, c);
|
|
8242
8245
|
});
|
|
@@ -8247,11 +8250,11 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8247
8250
|
return t("resolve", {
|
|
8248
8251
|
Node: s,
|
|
8249
8252
|
"Node, Map | null | undefined": s,
|
|
8250
|
-
"Node, Object": (e, t) => s(e,
|
|
8253
|
+
"Node, Object": (e, t) => s(e, wt(t)),
|
|
8251
8254
|
"Array | Matrix": t.referToSelf((e) => (t) => t.map((t) => e(t))),
|
|
8252
8255
|
"Array | Matrix, null | undefined": t.referToSelf((e) => (t) => t.map((t) => e(t))),
|
|
8253
|
-
"Array, Object": t.referTo("Array,Map", (e) => (t, n) => e(t,
|
|
8254
|
-
"Matrix, Object": t.referTo("Matrix,Map", (e) => (t, n) => e(t,
|
|
8256
|
+
"Array, Object": t.referTo("Array,Map", (e) => (t, n) => e(t, wt(n))),
|
|
8257
|
+
"Matrix, Object": t.referTo("Matrix,Map", (e) => (t, n) => e(t, wt(n))),
|
|
8255
8258
|
"Array | Matrix, Map": t.referToSelf((e) => (t, n) => t.map((t) => e(t, n)))
|
|
8256
8259
|
});
|
|
8257
8260
|
}), ec = "symbolicEqual", tc = /* #__PURE__ */ z(ec, [
|
|
@@ -8263,7 +8266,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8263
8266
|
var { parse: t, simplify: n, typed: r, OperatorNode: i } = e;
|
|
8264
8267
|
function a(e, t) {
|
|
8265
8268
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = n(new i("-", "subtract", [e, t]), {}, r);
|
|
8266
|
-
return
|
|
8269
|
+
return q(a) && !a.value;
|
|
8267
8270
|
}
|
|
8268
8271
|
return r(ec, {
|
|
8269
8272
|
"Node, Node": a,
|
|
@@ -8311,10 +8314,10 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8311
8314
|
};
|
|
8312
8315
|
var g = t("_derivTex", {
|
|
8313
8316
|
"Node, SymbolNode": function(e, t) {
|
|
8314
|
-
return
|
|
8317
|
+
return q(e) && Qa(e.value) === "string" ? g(r(e.value).toString(), t.toString(), 1) : g(e.toTex(), t.toString(), 1);
|
|
8315
8318
|
},
|
|
8316
8319
|
"Node, ConstantNode": function(e, t) {
|
|
8317
|
-
if (
|
|
8320
|
+
if (Qa(t.value) === "string") return g(e, r(t.value));
|
|
8318
8321
|
throw Error("The second parameter to 'derivative' is a non-string constant");
|
|
8319
8322
|
},
|
|
8320
8323
|
"Node, SymbolNode, ConstantNode": function(e, t, n) {
|
|
@@ -8334,7 +8337,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8334
8337
|
return e(t.content, n);
|
|
8335
8338
|
},
|
|
8336
8339
|
"function, FunctionAssignmentNode, string": function(e, t, n) {
|
|
8337
|
-
return t.params.includes(n)
|
|
8340
|
+
return !t.params.includes(n) || e(t.expr, n);
|
|
8338
8341
|
},
|
|
8339
8342
|
"function, FunctionNode | OperatorNode, string": function(e, t, n) {
|
|
8340
8343
|
return t.args.every((t) => e(t, n));
|
|
@@ -8489,9 +8492,9 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8489
8492
|
}
|
|
8490
8493
|
if (e.op === "^" && e.isBinary()) {
|
|
8491
8494
|
var d = e.args[0], f = e.args[1];
|
|
8492
|
-
if (t(d)) return
|
|
8495
|
+
if (t(d)) return q(d) && (o(d.value) || a(d.value, 1)) ? y(0) : new u("*", "multiply", [e, new u("*", "multiply", [new l("log", [d.clone()]), v(f.clone(), t)])]);
|
|
8493
8496
|
if (t(f)) {
|
|
8494
|
-
if (
|
|
8497
|
+
if (q(f)) {
|
|
8495
8498
|
if (o(f.value)) return y(0);
|
|
8496
8499
|
if (a(f.value, 1)) return v(d, t);
|
|
8497
8500
|
}
|
|
@@ -8504,13 +8507,13 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8504
8507
|
}
|
|
8505
8508
|
});
|
|
8506
8509
|
function y(e, t) {
|
|
8507
|
-
return new c(s(e, t ||
|
|
8510
|
+
return new c(s(e, t || be(String(e), n)));
|
|
8508
8511
|
}
|
|
8509
8512
|
return h;
|
|
8510
8513
|
}), ic = "rationalize", ac = /* #__PURE__ */ z(ic, /* @__PURE__ */ "config.typed.equal.isZero.add.subtract.multiply.divide.pow.parse.simplifyConstant.simplifyCore.simplify.?bignumber.?fraction.mathWithTransform.matrix.AccessorNode.ArrayNode.ConstantNode.FunctionNode.IndexNode.ObjectNode.OperatorNode.SymbolNode.ParenthesisNode".split("."), (e) => {
|
|
8511
8514
|
var { config: t, typed: n, equal: r, isZero: i, add: a, subtract: o, multiply: s, divide: c, pow: l, parse: u, simplifyConstant: d, simplifyCore: f, simplify: p, fraction: m, bignumber: h, mathWithTransform: g, matrix: _, AccessorNode: v, ArrayNode: y, ConstantNode: b, FunctionNode: x, IndexNode: S, ObjectNode: C, OperatorNode: w, SymbolNode: T, ParenthesisNode: E } = e;
|
|
8512
8515
|
function D(e) {
|
|
8513
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0
|
|
8516
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = k(), i = O(e, t, !0, r.firstRules), a = i.variables.length, o = { exactFractions: !1 }, s = { exactFractions: !0 };
|
|
8514
8517
|
if (e = i.expression, a >= 1) {
|
|
8515
8518
|
e = A(e);
|
|
8516
8519
|
var c, l, u = !0, d = !1;
|
|
@@ -8538,7 +8541,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8538
8541
|
var t = e.type;
|
|
8539
8542
|
if (t === "FunctionNode") throw Error("There is an unsolved function call");
|
|
8540
8543
|
if (t === "OperatorNode") if (e.op === "^") {
|
|
8541
|
-
if (e.args[1].type !== "ConstantNode" || !
|
|
8544
|
+
if (e.args[1].type !== "ConstantNode" || !Dn(parseFloat(e.args[1].value))) throw Error("There is a non-integer exponent");
|
|
8542
8545
|
c(e.args[0]);
|
|
8543
8546
|
} else {
|
|
8544
8547
|
if (!o.includes(e.op)) throw Error("Operator " + e.op + " invalid in polynomial expression");
|
|
@@ -8781,7 +8784,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8781
8784
|
var r = e.type, i = arguments.length > 1;
|
|
8782
8785
|
if (r === "OperatorNode" && e.isBinary()) {
|
|
8783
8786
|
var a = !1, o;
|
|
8784
|
-
if (e.op === "^" && (e.args[0].type === "ParenthesisNode" || e.args[0].type === "OperatorNode") && e.args[1].type === "ConstantNode" && (o = parseFloat(e.args[1].value), a = o >= 2 &&
|
|
8787
|
+
if (e.op === "^" && (e.args[0].type === "ParenthesisNode" || e.args[0].type === "OperatorNode") && e.args[1].type === "ConstantNode" && (o = parseFloat(e.args[1].value), a = o >= 2 && Dn(o)), a) {
|
|
8785
8788
|
if (o > 2) {
|
|
8786
8789
|
var s = e.args[0];
|
|
8787
8790
|
e = new w("*", "multiply", [s, new w("^", "pow", [e.args[0].cloneDeep(), new b(o - 1)])]);
|
|
@@ -8838,7 +8841,7 @@ var Js = /* #__PURE__ */ z("simplifyUtil", [
|
|
|
8838
8841
|
}
|
|
8839
8842
|
if (n.op === "^") {
|
|
8840
8843
|
if (a.noFil !== 1) throw Error("Constant cannot be powered");
|
|
8841
|
-
if (!
|
|
8844
|
+
if (!Dn(c) || c <= 0) throw Error("Non-integer exponent is not allowed");
|
|
8842
8845
|
for (var l = r + 1; l < c; l++) t[l] = 0;
|
|
8843
8846
|
c > r && (t[c] = 0), t[c] += a.cte * (a.oper === "+" ? 1 : -1), r = Math.max(c, r);
|
|
8844
8847
|
return;
|
|
@@ -8870,7 +8873,7 @@ function cc(e) {
|
|
|
8870
8873
|
for (var t = 1; t < arguments.length; t++) {
|
|
8871
8874
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8872
8875
|
t % 2 ? sc(Object(n), !0).forEach(function(t) {
|
|
8873
|
-
|
|
8876
|
+
J(e, t, n[t]);
|
|
8874
8877
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sc(Object(n)).forEach(function(t) {
|
|
8875
8878
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8876
8879
|
});
|
|
@@ -8878,26 +8881,26 @@ function cc(e) {
|
|
|
8878
8881
|
return e;
|
|
8879
8882
|
}
|
|
8880
8883
|
var lc = /* #__PURE__ */ z("mapSlices", ["typed", "isInteger"], (e) => {
|
|
8881
|
-
var { typed: t, isInteger: n } = e, r =
|
|
8884
|
+
var { typed: t, isInteger: n } = e, r = fe({
|
|
8882
8885
|
typed: t,
|
|
8883
8886
|
isInteger: n
|
|
8884
8887
|
});
|
|
8885
8888
|
return t("mapSlices", { "...any": function(e) {
|
|
8886
8889
|
var t = e[1];
|
|
8887
|
-
|
|
8890
|
+
ni(t) ? e[1] = t - 1 : Wi(t) && (e[1] = t.minus(1));
|
|
8888
8891
|
try {
|
|
8889
8892
|
return r.apply(null, e);
|
|
8890
8893
|
} catch (e) {
|
|
8891
8894
|
throw X(e);
|
|
8892
8895
|
}
|
|
8893
8896
|
} });
|
|
8894
|
-
}, cc({ isTransformFunction: !0 },
|
|
8897
|
+
}, cc({ isTransformFunction: !0 }, fe.meta)), uc = /* #__PURE__ */ z("column", [
|
|
8895
8898
|
"typed",
|
|
8896
8899
|
"Index",
|
|
8897
8900
|
"matrix",
|
|
8898
8901
|
"range"
|
|
8899
8902
|
], (e) => {
|
|
8900
|
-
var { typed: t, Index: n, matrix: r, range: i } = e, a =
|
|
8903
|
+
var { typed: t, Index: n, matrix: r, range: i } = e, a = Si({
|
|
8901
8904
|
typed: t,
|
|
8902
8905
|
Index: n,
|
|
8903
8906
|
matrix: r,
|
|
@@ -8905,7 +8908,7 @@ var lc = /* #__PURE__ */ z("mapSlices", ["typed", "isInteger"], (e) => {
|
|
|
8905
8908
|
});
|
|
8906
8909
|
return t("column", { "...any": function(e) {
|
|
8907
8910
|
var t = e.length - 1, n = e[t];
|
|
8908
|
-
|
|
8911
|
+
ni(n) && (e[t] = n - 1);
|
|
8909
8912
|
try {
|
|
8910
8913
|
return a.apply(null, e);
|
|
8911
8914
|
} catch (e) {
|
|
@@ -8917,10 +8920,10 @@ var lc = /* #__PURE__ */ z("mapSlices", ["typed", "isInteger"], (e) => {
|
|
|
8917
8920
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/transform/utils/compileInlineExpression.js
|
|
8918
8921
|
function dc(e, t, n) {
|
|
8919
8922
|
var r = e.filter(function(e) {
|
|
8920
|
-
return
|
|
8923
|
+
return Y(e) && !(e.name in t) && !n.has(e.name);
|
|
8921
8924
|
})[0];
|
|
8922
8925
|
if (!r) throw Error("No undefined variable found in inline expression \"" + e + "\"");
|
|
8923
|
-
var i = r.name, a = /* @__PURE__ */ new Map(), o = new
|
|
8926
|
+
var i = r.name, a = /* @__PURE__ */ new Map(), o = new oe(n, a, /* @__PURE__ */ new Set([i])), s = e.compile();
|
|
8924
8927
|
return function(e) {
|
|
8925
8928
|
return a.set(i, e), s.evaluate(o);
|
|
8926
8929
|
};
|
|
@@ -8953,12 +8956,12 @@ function mc(e) {
|
|
|
8953
8956
|
var hc = /* #__PURE__ */ z("filter", ["typed"], (e) => {
|
|
8954
8957
|
var { typed: t } = e;
|
|
8955
8958
|
function n(e, n, i) {
|
|
8956
|
-
var a =
|
|
8959
|
+
var a = St({ typed: t }), o = fc({ typed: t });
|
|
8957
8960
|
if (e.length === 0) return a();
|
|
8958
8961
|
var s = e[0];
|
|
8959
8962
|
if (e.length === 1) return a(s);
|
|
8960
8963
|
var c = e.length - 1, l = e[c];
|
|
8961
|
-
return s &&= r(s, i), l &&=
|
|
8964
|
+
return s &&= r(s, i), l &&= Y(l) || ji(l) ? r(l, i) : dc(l, n, i), a(s, o(l, c));
|
|
8962
8965
|
}
|
|
8963
8966
|
n.rawArgs = !0;
|
|
8964
8967
|
function r(e, t) {
|
|
@@ -8966,13 +8969,13 @@ var hc = /* #__PURE__ */ z("filter", ["typed"], (e) => {
|
|
|
8966
8969
|
}
|
|
8967
8970
|
return n;
|
|
8968
8971
|
}, { isTransformFunction: !0 }), gc = /* #__PURE__ */ z("forEach", ["typed"], (e) => {
|
|
8969
|
-
var { typed: t } = e, n =
|
|
8972
|
+
var { typed: t } = e, n = P({ typed: t }), r = fc({ typed: t });
|
|
8970
8973
|
function i(e, t, i) {
|
|
8971
8974
|
if (e.length === 0) return n();
|
|
8972
8975
|
var o = e[0];
|
|
8973
8976
|
if (e.length === 1) return n(o);
|
|
8974
8977
|
var s = e.length - 1, c = e[s];
|
|
8975
|
-
return o &&= a(o, i), c &&=
|
|
8978
|
+
return o &&= a(o, i), c &&= Y(c) || ji(c) ? a(c, i) : dc(c, t, i), n(o, r(c, s));
|
|
8976
8979
|
}
|
|
8977
8980
|
i.rawArgs = !0;
|
|
8978
8981
|
function a(e, t) {
|
|
@@ -8982,30 +8985,30 @@ var hc = /* #__PURE__ */ z("filter", ["typed"], (e) => {
|
|
|
8982
8985
|
}, { isTransformFunction: !0 }), _c = /* #__PURE__ */ z("index", ["Index", "getMatrixDataType"], (e) => {
|
|
8983
8986
|
var { Index: t, getMatrixDataType: n } = e;
|
|
8984
8987
|
return function() {
|
|
8985
|
-
for (var e = [], r = 0,
|
|
8986
|
-
var
|
|
8987
|
-
if (
|
|
8988
|
-
else if (
|
|
8988
|
+
for (var e = [], r = 0, a = arguments.length; r < a; r++) {
|
|
8989
|
+
var o = arguments[r];
|
|
8990
|
+
if (fo(o)) o.start--, o.end -= o.step > 0 ? 0 : 2;
|
|
8991
|
+
else if (o && o.isSet === !0) o = o.map(function(e) {
|
|
8989
8992
|
return e - 1;
|
|
8990
8993
|
});
|
|
8991
|
-
else if (
|
|
8994
|
+
else if (i(o) || ra(o)) n(o) !== "boolean" && (o = o.map(function(e) {
|
|
8992
8995
|
return e - 1;
|
|
8993
8996
|
}));
|
|
8994
|
-
else if (
|
|
8995
|
-
else if (
|
|
8996
|
-
else if (typeof
|
|
8997
|
-
e[r] =
|
|
8997
|
+
else if (ni(o) || ja(o)) o--;
|
|
8998
|
+
else if (Wi(o)) o = o.toNumber() - 1;
|
|
8999
|
+
else if (typeof o != "string") throw TypeError("Dimension must be an Array, Matrix, number, bigint, string, or Range");
|
|
9000
|
+
e[r] = o;
|
|
8998
9001
|
}
|
|
8999
|
-
var
|
|
9000
|
-
return t.apply(
|
|
9002
|
+
var s = new t();
|
|
9003
|
+
return t.apply(s, e), s;
|
|
9001
9004
|
};
|
|
9002
9005
|
}, { isTransformFunction: !0 }), vc = /* #__PURE__ */ z("map", ["typed"], (e) => {
|
|
9003
|
-
var { typed: t } = e, n =
|
|
9006
|
+
var { typed: t } = e, n = ie({ typed: t }), r = fc({ typed: t });
|
|
9004
9007
|
function i(e, t, i) {
|
|
9005
9008
|
if (e.length === 0) return n();
|
|
9006
9009
|
if (e.length === 1) return n(e[0]);
|
|
9007
9010
|
var a = e.length - 1, o = e.slice(0, a), s = e[a];
|
|
9008
|
-
return o = o.map((e) => c(e, i)), s &&=
|
|
9011
|
+
return o = o.map((e) => c(e, i)), s &&= Y(s) || ji(s) ? c(s, i) : dc(s, t, i), n(...o, r(s, a));
|
|
9009
9012
|
function c(e, t) {
|
|
9010
9013
|
return e.compile().evaluate(t);
|
|
9011
9014
|
}
|
|
@@ -9015,15 +9018,15 @@ var hc = /* #__PURE__ */ z("filter", ["typed"], (e) => {
|
|
|
9015
9018
|
//#endregion
|
|
9016
9019
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/transform/utils/dimToZeroBase.js
|
|
9017
9020
|
function yc(e) {
|
|
9018
|
-
return
|
|
9021
|
+
return ni(e) ? e - 1 : Wi(e) ? e.minus(1) : e;
|
|
9019
9022
|
}
|
|
9020
9023
|
function bc(e) {
|
|
9021
|
-
return
|
|
9024
|
+
return ni(e) || Wi(e);
|
|
9022
9025
|
}
|
|
9023
9026
|
//#endregion
|
|
9024
9027
|
//#region ../../../node_modules/.bun/mathjs@15.2.0/node_modules/mathjs/lib/esm/expression/transform/utils/lastDimToZeroBase.js
|
|
9025
9028
|
function xc(e) {
|
|
9026
|
-
if (e.length === 2 &&
|
|
9029
|
+
if (e.length === 2 && li(e[0])) {
|
|
9027
9030
|
e = e.slice();
|
|
9028
9031
|
var t = e[1];
|
|
9029
9032
|
bc(t) && (e[1] = yc(t));
|
|
@@ -9037,7 +9040,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9037
9040
|
"larger",
|
|
9038
9041
|
"isNaN"
|
|
9039
9042
|
], (e) => {
|
|
9040
|
-
var { typed: t, config: n, numeric: r, larger: i, isNaN: a } = e, o =
|
|
9043
|
+
var { typed: t, config: n, numeric: r, larger: i, isNaN: a } = e, o = Ii({
|
|
9041
9044
|
typed: t,
|
|
9042
9045
|
config: n,
|
|
9043
9046
|
numeric: r,
|
|
@@ -9057,7 +9060,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9057
9060
|
"add",
|
|
9058
9061
|
"divide"
|
|
9059
9062
|
], (e) => {
|
|
9060
|
-
var { typed: t, add: n, divide: r } = e, i =
|
|
9063
|
+
var { typed: t, add: n, divide: r } = e, i = Ia({
|
|
9061
9064
|
typed: t,
|
|
9062
9065
|
add: n,
|
|
9063
9066
|
divide: r
|
|
@@ -9077,7 +9080,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9077
9080
|
"smaller",
|
|
9078
9081
|
"isNaN"
|
|
9079
9082
|
], (e) => {
|
|
9080
|
-
var { typed: t, config: n, numeric: r, smaller: i, isNaN: a } = e, o =
|
|
9083
|
+
var { typed: t, config: n, numeric: r, smaller: i, isNaN: a } = e, o = ta({
|
|
9081
9084
|
typed: t,
|
|
9082
9085
|
config: n,
|
|
9083
9086
|
numeric: r,
|
|
@@ -9106,7 +9109,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9106
9109
|
"isZero",
|
|
9107
9110
|
"isPositive"
|
|
9108
9111
|
], (e) => {
|
|
9109
|
-
var { typed: t, config: n, matrix: r, bignumber: i, equal: a, smaller: o, smallerEq: s, larger: c, largerEq: l, add: u, isZero: d, isPositive: f } = e, p =
|
|
9112
|
+
var { typed: t, config: n, matrix: r, bignumber: i, equal: a, smaller: o, smallerEq: s, larger: c, largerEq: l, add: u, isZero: d, isPositive: f } = e, p = Zt({
|
|
9110
9113
|
typed: t,
|
|
9111
9114
|
config: n,
|
|
9112
9115
|
matrix: r,
|
|
@@ -9129,7 +9132,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9129
9132
|
"matrix",
|
|
9130
9133
|
"range"
|
|
9131
9134
|
], (e) => {
|
|
9132
|
-
var { typed: t, Index: n, matrix: r, range: i } = e, a =
|
|
9135
|
+
var { typed: t, Index: n, matrix: r, range: i } = e, a = io({
|
|
9133
9136
|
typed: t,
|
|
9134
9137
|
Index: n,
|
|
9135
9138
|
matrix: r,
|
|
@@ -9137,7 +9140,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9137
9140
|
});
|
|
9138
9141
|
return t("row", { "...any": function(e) {
|
|
9139
9142
|
var t = e.length - 1, n = e[t];
|
|
9140
|
-
|
|
9143
|
+
ni(n) && (e[t] = n - 1);
|
|
9141
9144
|
try {
|
|
9142
9145
|
return a.apply(null, e);
|
|
9143
9146
|
} catch (e) {
|
|
@@ -9150,7 +9153,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9150
9153
|
"zeros",
|
|
9151
9154
|
"add"
|
|
9152
9155
|
], (e) => {
|
|
9153
|
-
var { typed: t, matrix: n, zeros: r, add: i } = e, a =
|
|
9156
|
+
var { typed: t, matrix: n, zeros: r, add: i } = e, a = fr({
|
|
9154
9157
|
typed: t,
|
|
9155
9158
|
matrix: n,
|
|
9156
9159
|
zeros: r,
|
|
@@ -9168,14 +9171,14 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9168
9171
|
"matrix",
|
|
9169
9172
|
"isInteger"
|
|
9170
9173
|
], (e) => {
|
|
9171
|
-
var { typed: t, matrix: n, isInteger: r } = e, i =
|
|
9174
|
+
var { typed: t, matrix: n, isInteger: r } = e, i = d({
|
|
9172
9175
|
typed: t,
|
|
9173
9176
|
matrix: n,
|
|
9174
9177
|
isInteger: r
|
|
9175
9178
|
});
|
|
9176
9179
|
return t("concat", { "...any": function(e) {
|
|
9177
9180
|
var t = e.length - 1, n = e[t];
|
|
9178
|
-
|
|
9181
|
+
ni(n) ? e[t] = n - 1 : Wi(n) && (e[t] = n.minus(1));
|
|
9179
9182
|
try {
|
|
9180
9183
|
return i.apply(null, e);
|
|
9181
9184
|
} catch (e) {
|
|
@@ -9189,7 +9192,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9189
9192
|
"number",
|
|
9190
9193
|
"bignumber"
|
|
9191
9194
|
], (e) => {
|
|
9192
|
-
var { typed: t, matrix: n, subtract: r, number: i, bignumber: a } = e, o =
|
|
9195
|
+
var { typed: t, matrix: n, subtract: r, number: i, bignumber: a } = e, o = on({
|
|
9193
9196
|
typed: t,
|
|
9194
9197
|
matrix: n,
|
|
9195
9198
|
subtract: r,
|
|
@@ -9210,7 +9213,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9210
9213
|
"sqrt",
|
|
9211
9214
|
"variance"
|
|
9212
9215
|
], (e) => {
|
|
9213
|
-
var { typed: t, map: n, sqrt: r, variance: i } = e, a =
|
|
9216
|
+
var { typed: t, map: n, sqrt: r, variance: i } = e, a = Sa({
|
|
9214
9217
|
typed: t,
|
|
9215
9218
|
map: n,
|
|
9216
9219
|
sqrt: r,
|
|
@@ -9230,7 +9233,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9230
9233
|
"add",
|
|
9231
9234
|
"numeric"
|
|
9232
9235
|
], (e) => {
|
|
9233
|
-
var { typed: t, config: n, add: r, numeric: i } = e, a =
|
|
9236
|
+
var { typed: t, config: n, add: r, numeric: i } = e, a = Br({
|
|
9234
9237
|
typed: t,
|
|
9235
9238
|
config: n,
|
|
9236
9239
|
add: r,
|
|
@@ -9259,7 +9262,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9259
9262
|
"larger",
|
|
9260
9263
|
"mapSlices"
|
|
9261
9264
|
], (e) => {
|
|
9262
|
-
var { typed: t, bignumber: n, add: r, subtract: i, divide: a, multiply: o, partitionSelect: s, compare: c, isInteger: l, smaller: u, smallerEq: d, larger: f, mapSlices: p } = e, m =
|
|
9265
|
+
var { typed: t, bignumber: n, add: r, subtract: i, divide: a, multiply: o, partitionSelect: s, compare: c, isInteger: l, smaller: u, smallerEq: d, larger: f, mapSlices: p } = e, m = yr({
|
|
9263
9266
|
typed: t,
|
|
9264
9267
|
bignumber: n,
|
|
9265
9268
|
add: r,
|
|
@@ -9292,15 +9295,15 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9292
9295
|
"add",
|
|
9293
9296
|
"unaryPlus"
|
|
9294
9297
|
], (e) => {
|
|
9295
|
-
var { typed: t, add: n, unaryPlus: r } = e, i =
|
|
9298
|
+
var { typed: t, add: n, unaryPlus: r } = e, i = Er({
|
|
9296
9299
|
typed: t,
|
|
9297
9300
|
add: n,
|
|
9298
9301
|
unaryPlus: r
|
|
9299
9302
|
});
|
|
9300
9303
|
return t(Fc, { "...any": function(e) {
|
|
9301
|
-
if (e.length === 2 &&
|
|
9304
|
+
if (e.length === 2 && li(e[0])) {
|
|
9302
9305
|
var t = e[1];
|
|
9303
|
-
|
|
9306
|
+
ni(t) ? e[1] = t - 1 : Wi(t) && (e[1] = t.minus(1));
|
|
9304
9307
|
}
|
|
9305
9308
|
try {
|
|
9306
9309
|
return i.apply(null, e);
|
|
@@ -9317,7 +9320,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9317
9320
|
"mapSlices",
|
|
9318
9321
|
"isNaN"
|
|
9319
9322
|
], (e) => {
|
|
9320
|
-
var { typed: t, add: n, subtract: r, multiply: i, divide: a, mapSlices: o, isNaN: s } = e, c =
|
|
9323
|
+
var { typed: t, add: n, subtract: r, multiply: i, divide: a, mapSlices: o, isNaN: s } = e, c = ki({
|
|
9321
9324
|
typed: t,
|
|
9322
9325
|
add: n,
|
|
9323
9326
|
subtract: r,
|
|
@@ -9340,7 +9343,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9340
9343
|
"zeros",
|
|
9341
9344
|
"add"
|
|
9342
9345
|
], (e) => {
|
|
9343
|
-
var { typed: t, matrix: n, zeros: r, add: i } = e, a =
|
|
9346
|
+
var { typed: t, matrix: n, zeros: r, add: i } = e, a = qr({
|
|
9344
9347
|
typed: t,
|
|
9345
9348
|
matrix: n,
|
|
9346
9349
|
zeros: r,
|
|
@@ -9355,7 +9358,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9355
9358
|
}
|
|
9356
9359
|
});
|
|
9357
9360
|
function o(e) {
|
|
9358
|
-
return e.replace(
|
|
9361
|
+
return e.replace($n, (e) => "$" + e.slice(1).split(".").map(function(e) {
|
|
9359
9362
|
return !isNaN(e) && e.length > 0 ? parseInt(e) - 1 : e;
|
|
9360
9363
|
}).join("."));
|
|
9361
9364
|
}
|
|
@@ -9368,7 +9371,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9368
9371
|
"not",
|
|
9369
9372
|
"concat"
|
|
9370
9373
|
], (e) => {
|
|
9371
|
-
var { typed: t, matrix: n, equalScalar: r, zeros: i, not: a, concat: o } = e, s =
|
|
9374
|
+
var { typed: t, matrix: n, equalScalar: r, zeros: i, not: a, concat: o } = e, s = ei({
|
|
9372
9375
|
typed: t,
|
|
9373
9376
|
matrix: n,
|
|
9374
9377
|
equalScalar: r,
|
|
@@ -9378,7 +9381,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9378
9381
|
});
|
|
9379
9382
|
function c(e, t, n) {
|
|
9380
9383
|
var r = e[0].compile().evaluate(n);
|
|
9381
|
-
return !
|
|
9384
|
+
return !li(r) && !s(r, !0) ? !1 : s(r, e[1].compile().evaluate(n));
|
|
9382
9385
|
}
|
|
9383
9386
|
return c.rawArgs = !0, c;
|
|
9384
9387
|
}, { isTransformFunction: !0 }), Hc = /* #__PURE__ */ z("or", [
|
|
@@ -9388,7 +9391,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9388
9391
|
"DenseMatrix",
|
|
9389
9392
|
"concat"
|
|
9390
9393
|
], (e) => {
|
|
9391
|
-
var { typed: t, matrix: n, equalScalar: r, DenseMatrix: i, concat: a } = e, o =
|
|
9394
|
+
var { typed: t, matrix: n, equalScalar: r, DenseMatrix: i, concat: a } = e, o = hi({
|
|
9392
9395
|
typed: t,
|
|
9393
9396
|
matrix: n,
|
|
9394
9397
|
equalScalar: r,
|
|
@@ -9397,7 +9400,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9397
9400
|
});
|
|
9398
9401
|
function s(e, t, n) {
|
|
9399
9402
|
var r = e[0].compile().evaluate(n);
|
|
9400
|
-
return !
|
|
9403
|
+
return !li(r) && o(r, !1) ? !0 : o(r, e[1].compile().evaluate(n));
|
|
9401
9404
|
}
|
|
9402
9405
|
return s.rawArgs = !0, s;
|
|
9403
9406
|
}, { isTransformFunction: !0 }), Uc = /* #__PURE__ */ z("nullish", [
|
|
@@ -9407,7 +9410,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9407
9410
|
"flatten",
|
|
9408
9411
|
"deepEqual"
|
|
9409
9412
|
], (e) => {
|
|
9410
|
-
var { typed: t, matrix: n, size: r, flatten: i, deepEqual: a } = e, o =
|
|
9413
|
+
var { typed: t, matrix: n, size: r, flatten: i, deepEqual: a } = e, o = ot({
|
|
9411
9414
|
typed: t,
|
|
9412
9415
|
matrix: n,
|
|
9413
9416
|
size: r,
|
|
@@ -9416,7 +9419,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9416
9419
|
});
|
|
9417
9420
|
function s(e, t, n) {
|
|
9418
9421
|
var r = e[0].compile().evaluate(n);
|
|
9419
|
-
return !
|
|
9422
|
+
return !li(r) && r != null && r !== void 0 ? r : o(r, e[1].compile().evaluate(n));
|
|
9420
9423
|
}
|
|
9421
9424
|
return s.rawArgs = !0, s;
|
|
9422
9425
|
}, { isTransformFunction: !0 }), Wc = /* #__PURE__ */ z("bitAnd", [
|
|
@@ -9428,7 +9431,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9428
9431
|
"not",
|
|
9429
9432
|
"concat"
|
|
9430
9433
|
], (e) => {
|
|
9431
|
-
var { typed: t, matrix: n, equalScalar: r, zeros: i, not: a, concat: o } = e, s =
|
|
9434
|
+
var { typed: t, matrix: n, equalScalar: r, zeros: i, not: a, concat: o } = e, s = At({
|
|
9432
9435
|
typed: t,
|
|
9433
9436
|
matrix: n,
|
|
9434
9437
|
equalScalar: r,
|
|
@@ -9438,7 +9441,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9438
9441
|
});
|
|
9439
9442
|
function c(e, t, n) {
|
|
9440
9443
|
var r = e[0].compile().evaluate(n);
|
|
9441
|
-
if (!
|
|
9444
|
+
if (!li(r)) {
|
|
9442
9445
|
if (isNaN(r)) return NaN;
|
|
9443
9446
|
if (r === 0 || r === !1) return 0;
|
|
9444
9447
|
}
|
|
@@ -9452,7 +9455,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9452
9455
|
"DenseMatrix",
|
|
9453
9456
|
"concat"
|
|
9454
9457
|
], (e) => {
|
|
9455
|
-
var { typed: t, matrix: n, equalScalar: r, DenseMatrix: i, concat: a } = e, o =
|
|
9458
|
+
var { typed: t, matrix: n, equalScalar: r, DenseMatrix: i, concat: a } = e, o = mt({
|
|
9456
9459
|
typed: t,
|
|
9457
9460
|
matrix: n,
|
|
9458
9461
|
equalScalar: r,
|
|
@@ -9461,7 +9464,7 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9461
9464
|
});
|
|
9462
9465
|
function s(e, t, n) {
|
|
9463
9466
|
var r = e[0].compile().evaluate(n);
|
|
9464
|
-
if (!
|
|
9467
|
+
if (!li(r)) {
|
|
9465
9468
|
if (isNaN(r)) return NaN;
|
|
9466
9469
|
if (r === -1) return -1;
|
|
9467
9470
|
if (r === !0) return 1;
|
|
@@ -9471,27 +9474,27 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9471
9474
|
return s.rawArgs = !0, s;
|
|
9472
9475
|
}, { isTransformFunction: !0 }), Kc = {}, qc = {}, Jc = {}, $ = So({ mathWithTransform: qc }), Yc = es({ Node: $ }), Xc = rs({ Node: $ }), Zc = as({ Node: $ }), Qc = ls({ Node: $ }), $c = Do({ Node: $ }), el = Lo({
|
|
9473
9476
|
Node: $,
|
|
9474
|
-
ResultSet:
|
|
9477
|
+
ResultSet: Et
|
|
9475
9478
|
}), tl = zo({ Node: $ }), nl = ss({ Node: $ }), rl = oc({ classes: Jc }), il = ws({
|
|
9476
9479
|
math: Kc,
|
|
9477
|
-
typed:
|
|
9480
|
+
typed: H
|
|
9478
9481
|
}), al = Xo({
|
|
9479
9482
|
Node: $,
|
|
9480
|
-
typed:
|
|
9483
|
+
typed: H
|
|
9481
9484
|
}), ol = Vs({
|
|
9482
9485
|
Chain: il,
|
|
9483
|
-
typed:
|
|
9486
|
+
typed: H
|
|
9484
9487
|
}), sl = Jo({
|
|
9485
9488
|
Node: $,
|
|
9486
|
-
isBounded:
|
|
9489
|
+
isBounded: Xi
|
|
9487
9490
|
}), cl = Qo({
|
|
9488
9491
|
Node: $,
|
|
9489
|
-
size:
|
|
9492
|
+
size: Qi
|
|
9490
9493
|
}), ll = To({
|
|
9491
9494
|
Node: $,
|
|
9492
9495
|
subset: c
|
|
9493
9496
|
}), ul = Fo({
|
|
9494
|
-
matrix:
|
|
9497
|
+
matrix: V,
|
|
9495
9498
|
Node: $,
|
|
9496
9499
|
subset: c
|
|
9497
9500
|
}), dl = us({
|
|
@@ -9518,18 +9521,18 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9518
9521
|
RangeNode: nl,
|
|
9519
9522
|
RelationalNode: Qc,
|
|
9520
9523
|
SymbolNode: dl,
|
|
9521
|
-
config:
|
|
9522
|
-
numeric:
|
|
9523
|
-
typed:
|
|
9524
|
+
config: la,
|
|
9525
|
+
numeric: Pa,
|
|
9526
|
+
typed: H
|
|
9524
9527
|
}), ml = $s({
|
|
9525
9528
|
ConstantNode: sl,
|
|
9526
9529
|
FunctionNode: fl,
|
|
9527
9530
|
OperatorNode: Xc,
|
|
9528
9531
|
ParenthesisNode: Zc,
|
|
9529
9532
|
parse: pl,
|
|
9530
|
-
typed:
|
|
9533
|
+
typed: H
|
|
9531
9534
|
}), hl = Xs({
|
|
9532
|
-
bignumber:
|
|
9535
|
+
bignumber: Ri,
|
|
9533
9536
|
fraction: _o,
|
|
9534
9537
|
AccessorNode: ll,
|
|
9535
9538
|
ArrayNode: $c,
|
|
@@ -9539,17 +9542,17 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9539
9542
|
ObjectNode: Yc,
|
|
9540
9543
|
OperatorNode: Xc,
|
|
9541
9544
|
SymbolNode: dl,
|
|
9542
|
-
config:
|
|
9543
|
-
isBounded:
|
|
9545
|
+
config: la,
|
|
9546
|
+
isBounded: Xi,
|
|
9544
9547
|
mathWithTransform: qc,
|
|
9545
|
-
matrix:
|
|
9546
|
-
typed:
|
|
9548
|
+
matrix: V,
|
|
9549
|
+
typed: H
|
|
9547
9550
|
}), gl = gs({
|
|
9548
9551
|
parse: pl,
|
|
9549
|
-
typed:
|
|
9552
|
+
typed: H
|
|
9550
9553
|
}), _l = vs({
|
|
9551
9554
|
parse: pl,
|
|
9552
|
-
typed:
|
|
9555
|
+
typed: H
|
|
9553
9556
|
}), vl = Cs({ evaluate: _l }), yl = ys({
|
|
9554
9557
|
evaluate: _l,
|
|
9555
9558
|
parse: pl
|
|
@@ -9563,19 +9566,19 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9563
9566
|
OperatorNode: Xc,
|
|
9564
9567
|
ParenthesisNode: Zc,
|
|
9565
9568
|
SymbolNode: dl,
|
|
9566
|
-
add:
|
|
9567
|
-
divide:
|
|
9568
|
-
equal:
|
|
9569
|
-
isZero:
|
|
9569
|
+
add: B,
|
|
9570
|
+
divide: vr,
|
|
9571
|
+
equal: dr,
|
|
9572
|
+
isZero: Li,
|
|
9570
9573
|
multiply: a,
|
|
9571
9574
|
parse: pl,
|
|
9572
9575
|
pow: M,
|
|
9573
|
-
subtract:
|
|
9574
|
-
typed:
|
|
9576
|
+
subtract: fi,
|
|
9577
|
+
typed: H
|
|
9575
9578
|
}), xl = zs({
|
|
9576
9579
|
Help: vl,
|
|
9577
9580
|
mathWithTransform: qc,
|
|
9578
|
-
typed:
|
|
9581
|
+
typed: H
|
|
9579
9582
|
}), Sl = Ys({
|
|
9580
9583
|
AccessorNode: ll,
|
|
9581
9584
|
ArrayNode: $c,
|
|
@@ -9586,325 +9589,325 @@ var Sc = /* #__PURE__ */ z("max", [
|
|
|
9586
9589
|
OperatorNode: Xc,
|
|
9587
9590
|
ParenthesisNode: Zc,
|
|
9588
9591
|
SymbolNode: dl,
|
|
9589
|
-
equal:
|
|
9592
|
+
equal: dr,
|
|
9590
9593
|
parse: pl,
|
|
9591
9594
|
replacer: go,
|
|
9592
9595
|
resolve: ml,
|
|
9593
9596
|
simplifyConstant: hl,
|
|
9594
9597
|
simplifyCore: bl,
|
|
9595
|
-
typed:
|
|
9598
|
+
typed: H
|
|
9596
9599
|
});
|
|
9597
|
-
|
|
9598
|
-
e:
|
|
9599
|
-
false:
|
|
9600
|
-
fineStructure:
|
|
9601
|
-
i:
|
|
9600
|
+
Mt(Kc, {
|
|
9601
|
+
e: Fi,
|
|
9602
|
+
false: Ce,
|
|
9603
|
+
fineStructure: at,
|
|
9604
|
+
i: Kn,
|
|
9602
9605
|
Infinity: h,
|
|
9603
|
-
LN10:
|
|
9606
|
+
LN10: vt,
|
|
9604
9607
|
LOG10E: s,
|
|
9605
|
-
NaN:
|
|
9606
|
-
null:
|
|
9607
|
-
phi:
|
|
9608
|
-
SQRT1_2:
|
|
9609
|
-
sackurTetrode:
|
|
9610
|
-
tau:
|
|
9611
|
-
true:
|
|
9612
|
-
E:
|
|
9608
|
+
NaN: _n,
|
|
9609
|
+
null: un,
|
|
9610
|
+
phi: Gr,
|
|
9611
|
+
SQRT1_2: ce,
|
|
9612
|
+
sackurTetrode: Rn,
|
|
9613
|
+
tau: Xe,
|
|
9614
|
+
true: wn,
|
|
9615
|
+
E: Fi,
|
|
9613
9616
|
version: t,
|
|
9614
|
-
efimovFactor:
|
|
9615
|
-
LN2:
|
|
9616
|
-
pi:
|
|
9617
|
+
efimovFactor: $r,
|
|
9618
|
+
LN2: vi,
|
|
9619
|
+
pi: Zn,
|
|
9617
9620
|
replacer: go,
|
|
9618
9621
|
reviver: rl,
|
|
9619
|
-
SQRT2:
|
|
9620
|
-
typed:
|
|
9621
|
-
PI:
|
|
9622
|
-
weakMixingAngle:
|
|
9623
|
-
abs:
|
|
9624
|
-
acos:
|
|
9625
|
-
acot:
|
|
9626
|
-
acsc:
|
|
9622
|
+
SQRT2: Ae,
|
|
9623
|
+
typed: H,
|
|
9624
|
+
PI: Zn,
|
|
9625
|
+
weakMixingAngle: Nr,
|
|
9626
|
+
abs: ge,
|
|
9627
|
+
acos: Ue,
|
|
9628
|
+
acot: R,
|
|
9629
|
+
acsc: An,
|
|
9627
9630
|
addScalar: e,
|
|
9628
|
-
arg:
|
|
9629
|
-
asech:
|
|
9630
|
-
asinh:
|
|
9631
|
-
atan:
|
|
9632
|
-
atanh:
|
|
9633
|
-
bigint:
|
|
9634
|
-
bitNot:
|
|
9631
|
+
arg: Ma,
|
|
9632
|
+
asech: va,
|
|
9633
|
+
asinh: cr,
|
|
9634
|
+
atan: Zi,
|
|
9635
|
+
atanh: Sr,
|
|
9636
|
+
bigint: ia,
|
|
9637
|
+
bitNot: tr,
|
|
9635
9638
|
boolean: k,
|
|
9636
|
-
clone:
|
|
9639
|
+
clone: Tt,
|
|
9637
9640
|
combinations: m,
|
|
9638
|
-
complex:
|
|
9641
|
+
complex: he,
|
|
9639
9642
|
conj: bo,
|
|
9640
|
-
cos:
|
|
9641
|
-
cot:
|
|
9642
|
-
csc:
|
|
9643
|
+
cos: Cn,
|
|
9644
|
+
cot: gn,
|
|
9645
|
+
csc: Fn,
|
|
9643
9646
|
cube: o,
|
|
9644
|
-
equalScalar:
|
|
9647
|
+
equalScalar: ro,
|
|
9645
9648
|
erf: T,
|
|
9646
|
-
exp:
|
|
9649
|
+
exp: Ya,
|
|
9647
9650
|
expm1: re,
|
|
9648
|
-
filter:
|
|
9649
|
-
flatten:
|
|
9650
|
-
forEach:
|
|
9651
|
-
format:
|
|
9652
|
-
getMatrixDataType:
|
|
9653
|
-
hex:
|
|
9654
|
-
im:
|
|
9655
|
-
isBounded:
|
|
9656
|
-
isNaN:
|
|
9657
|
-
isNumeric:
|
|
9658
|
-
isPrime:
|
|
9659
|
-
LOG2E:
|
|
9660
|
-
lgamma:
|
|
9661
|
-
log10:
|
|
9662
|
-
log2:
|
|
9663
|
-
map:
|
|
9664
|
-
mode:
|
|
9665
|
-
multiplyScalar:
|
|
9666
|
-
not:
|
|
9667
|
-
number:
|
|
9668
|
-
oct:
|
|
9669
|
-
pickRandom:
|
|
9670
|
-
print:
|
|
9671
|
-
random:
|
|
9672
|
-
re:
|
|
9673
|
-
sec:
|
|
9674
|
-
sign:
|
|
9675
|
-
sin:
|
|
9676
|
-
size:
|
|
9677
|
-
splitUnit:
|
|
9678
|
-
square:
|
|
9679
|
-
string:
|
|
9680
|
-
subtractScalar:
|
|
9681
|
-
tan:
|
|
9651
|
+
filter: mi,
|
|
9652
|
+
flatten: de,
|
|
9653
|
+
forEach: Qe,
|
|
9654
|
+
format: Ut,
|
|
9655
|
+
getMatrixDataType: En,
|
|
9656
|
+
hex: zn,
|
|
9657
|
+
im: Pr,
|
|
9658
|
+
isBounded: Xi,
|
|
9659
|
+
isNaN: Ai,
|
|
9660
|
+
isNumeric: Dr,
|
|
9661
|
+
isPrime: na,
|
|
9662
|
+
LOG2E: di,
|
|
9663
|
+
lgamma: Qt,
|
|
9664
|
+
log10: Za,
|
|
9665
|
+
log2: ae,
|
|
9666
|
+
map: Fe,
|
|
9667
|
+
mode: ua,
|
|
9668
|
+
multiplyScalar: jr,
|
|
9669
|
+
not: pa,
|
|
9670
|
+
number: Di,
|
|
9671
|
+
oct: wr,
|
|
9672
|
+
pickRandom: Va,
|
|
9673
|
+
print: bt,
|
|
9674
|
+
random: Ot,
|
|
9675
|
+
re: Ze,
|
|
9676
|
+
sec: Gn,
|
|
9677
|
+
sign: Na,
|
|
9678
|
+
sin: Cr,
|
|
9679
|
+
size: Qi,
|
|
9680
|
+
splitUnit: to,
|
|
9681
|
+
square: qa,
|
|
9682
|
+
string: yi,
|
|
9683
|
+
subtractScalar: rt,
|
|
9684
|
+
tan: le,
|
|
9682
9685
|
toBest: g,
|
|
9683
|
-
typeOf:
|
|
9684
|
-
acosh:
|
|
9685
|
-
acsch:
|
|
9686
|
-
asec:
|
|
9687
|
-
bignumber:
|
|
9686
|
+
typeOf: dn,
|
|
9687
|
+
acosh: aa,
|
|
9688
|
+
acsch: Un,
|
|
9689
|
+
asec: Gi,
|
|
9690
|
+
bignumber: Ri,
|
|
9688
9691
|
chain: ol,
|
|
9689
|
-
combinationsWithRep:
|
|
9690
|
-
cosh:
|
|
9691
|
-
csch:
|
|
9692
|
-
dot:
|
|
9693
|
-
hasNumericValue:
|
|
9694
|
-
isFinite:
|
|
9695
|
-
isNegative:
|
|
9696
|
-
isZero:
|
|
9697
|
-
matrix:
|
|
9692
|
+
combinationsWithRep: _i,
|
|
9693
|
+
cosh: ke,
|
|
9694
|
+
csch: Yn,
|
|
9695
|
+
dot: Fa,
|
|
9696
|
+
hasNumericValue: ze,
|
|
9697
|
+
isFinite: Ca,
|
|
9698
|
+
isNegative: La,
|
|
9699
|
+
isZero: Li,
|
|
9700
|
+
matrix: V,
|
|
9698
9701
|
matrixFromFunction: b,
|
|
9699
9702
|
multiply: a,
|
|
9700
|
-
ones:
|
|
9701
|
-
randomInt:
|
|
9702
|
-
resize:
|
|
9703
|
-
sech:
|
|
9704
|
-
sinh:
|
|
9705
|
-
sparse:
|
|
9706
|
-
sqrt:
|
|
9707
|
-
squeeze:
|
|
9708
|
-
tanh:
|
|
9709
|
-
transpose:
|
|
9710
|
-
xgcd:
|
|
9711
|
-
zeros:
|
|
9712
|
-
acoth:
|
|
9713
|
-
asin:
|
|
9714
|
-
bin:
|
|
9715
|
-
coth:
|
|
9716
|
-
ctranspose:
|
|
9717
|
-
diag:
|
|
9718
|
-
equal:
|
|
9703
|
+
ones: Rr,
|
|
9704
|
+
randomInt: ue,
|
|
9705
|
+
resize: yn,
|
|
9706
|
+
sech: Ft,
|
|
9707
|
+
sinh: Lr,
|
|
9708
|
+
sparse: so,
|
|
9709
|
+
sqrt: Jt,
|
|
9710
|
+
squeeze: nn,
|
|
9711
|
+
tanh: je,
|
|
9712
|
+
transpose: we,
|
|
9713
|
+
xgcd: Hi,
|
|
9714
|
+
zeros: si,
|
|
9715
|
+
acoth: In,
|
|
9716
|
+
asin: ui,
|
|
9717
|
+
bin: ri,
|
|
9718
|
+
coth: kn,
|
|
9719
|
+
ctranspose: zt,
|
|
9720
|
+
diag: ir,
|
|
9721
|
+
equal: dr,
|
|
9719
9722
|
fraction: _o,
|
|
9720
|
-
identity:
|
|
9721
|
-
isInteger:
|
|
9722
|
-
kron:
|
|
9723
|
-
mapSlices:
|
|
9723
|
+
identity: It,
|
|
9724
|
+
isInteger: br,
|
|
9725
|
+
kron: er,
|
|
9726
|
+
mapSlices: et,
|
|
9724
9727
|
matrixFromColumns: yo,
|
|
9725
|
-
num:
|
|
9728
|
+
num: _r,
|
|
9726
9729
|
reshape: _,
|
|
9727
|
-
round:
|
|
9728
|
-
unaryMinus:
|
|
9729
|
-
bernoulli:
|
|
9730
|
-
cbrt:
|
|
9731
|
-
concat:
|
|
9732
|
-
deepEqual:
|
|
9733
|
-
dotMultiply:
|
|
9734
|
-
floor:
|
|
9735
|
-
gcd:
|
|
9736
|
-
isPositive:
|
|
9737
|
-
larger:
|
|
9738
|
-
lcm:
|
|
9739
|
-
leftShift:
|
|
9740
|
-
mod:
|
|
9741
|
-
nthRoot:
|
|
9742
|
-
nullish:
|
|
9743
|
-
numeric:
|
|
9744
|
-
prod:
|
|
9745
|
-
rightArithShift:
|
|
9746
|
-
smaller:
|
|
9747
|
-
subtract:
|
|
9730
|
+
round: Ge,
|
|
9731
|
+
unaryMinus: _e,
|
|
9732
|
+
bernoulli: Ur,
|
|
9733
|
+
cbrt: ln,
|
|
9734
|
+
concat: tt,
|
|
9735
|
+
deepEqual: Oa,
|
|
9736
|
+
dotMultiply: zr,
|
|
9737
|
+
floor: Ne,
|
|
9738
|
+
gcd: pn,
|
|
9739
|
+
isPositive: Vr,
|
|
9740
|
+
larger: Ua,
|
|
9741
|
+
lcm: pr,
|
|
9742
|
+
leftShift: ao,
|
|
9743
|
+
mod: qe,
|
|
9744
|
+
nthRoot: ai,
|
|
9745
|
+
nullish: ba,
|
|
9746
|
+
numeric: Pa,
|
|
9747
|
+
prod: bi,
|
|
9748
|
+
rightArithShift: Te,
|
|
9749
|
+
smaller: Zr,
|
|
9750
|
+
subtract: fi,
|
|
9748
9751
|
to: ho,
|
|
9749
|
-
unaryPlus:
|
|
9750
|
-
xor:
|
|
9751
|
-
add:
|
|
9752
|
-
atan2:
|
|
9753
|
-
bitAnd:
|
|
9754
|
-
bitOr:
|
|
9752
|
+
unaryPlus: We,
|
|
9753
|
+
xor: ha,
|
|
9754
|
+
add: B,
|
|
9755
|
+
atan2: Ta,
|
|
9756
|
+
bitAnd: Xr,
|
|
9757
|
+
bitOr: Ga,
|
|
9755
9758
|
bitXor: po,
|
|
9756
|
-
ceil:
|
|
9757
|
-
compare:
|
|
9758
|
-
compareText:
|
|
9759
|
-
composition:
|
|
9760
|
-
count:
|
|
9761
|
-
cross:
|
|
9762
|
-
diff:
|
|
9763
|
-
divideScalar:
|
|
9764
|
-
equalText:
|
|
9765
|
-
fix:
|
|
9766
|
-
hypot:
|
|
9767
|
-
intersect:
|
|
9768
|
-
invmod:
|
|
9759
|
+
ceil: se,
|
|
9760
|
+
compare: lt,
|
|
9761
|
+
compareText: Nt,
|
|
9762
|
+
composition: Ie,
|
|
9763
|
+
count: da,
|
|
9764
|
+
cross: Hn,
|
|
9765
|
+
diff: Ji,
|
|
9766
|
+
divideScalar: Oi,
|
|
9767
|
+
equalText: Xt,
|
|
9768
|
+
fix: kt,
|
|
9769
|
+
hypot: Nn,
|
|
9770
|
+
intersect: Ui,
|
|
9771
|
+
invmod: or,
|
|
9769
9772
|
largerEq: uo,
|
|
9770
9773
|
log: D,
|
|
9771
|
-
lsolve:
|
|
9772
|
-
matrixFromRows:
|
|
9773
|
-
min:
|
|
9774
|
-
nthRoots:
|
|
9775
|
-
partitionSelect:
|
|
9776
|
-
qr:
|
|
9777
|
-
rightLogShift:
|
|
9778
|
-
slu:
|
|
9774
|
+
lsolve: Ct,
|
|
9775
|
+
matrixFromRows: Sn,
|
|
9776
|
+
min: xe,
|
|
9777
|
+
nthRoots: rr,
|
|
9778
|
+
partitionSelect: Pi,
|
|
9779
|
+
qr: pi,
|
|
9780
|
+
rightLogShift: fn,
|
|
9781
|
+
slu: Ni,
|
|
9779
9782
|
subset: c,
|
|
9780
|
-
sum:
|
|
9781
|
-
trace:
|
|
9782
|
-
usolve:
|
|
9783
|
-
zpk2tf:
|
|
9784
|
-
catalan:
|
|
9785
|
-
compareNatural:
|
|
9786
|
-
cumsum:
|
|
9787
|
-
det:
|
|
9788
|
-
dotDivide:
|
|
9789
|
-
index:
|
|
9790
|
-
inv:
|
|
9791
|
-
log1p:
|
|
9792
|
-
lsolveAll:
|
|
9793
|
-
max:
|
|
9794
|
-
or:
|
|
9795
|
-
pinv:
|
|
9783
|
+
sum: dt,
|
|
9784
|
+
trace: vn,
|
|
9785
|
+
usolve: Ln,
|
|
9786
|
+
zpk2tf: Yi,
|
|
9787
|
+
catalan: $a,
|
|
9788
|
+
compareNatural: _t,
|
|
9789
|
+
cumsum: Mr,
|
|
9790
|
+
det: ma,
|
|
9791
|
+
dotDivide: Tr,
|
|
9792
|
+
index: Aa,
|
|
9793
|
+
inv: ga,
|
|
9794
|
+
log1p: sn,
|
|
9795
|
+
lsolveAll: Ci,
|
|
9796
|
+
max: Oe,
|
|
9797
|
+
or: $i,
|
|
9798
|
+
pinv: co,
|
|
9796
9799
|
pow: M,
|
|
9797
|
-
setCartesian:
|
|
9798
|
-
setDistinct:
|
|
9799
|
-
setIsSubset:
|
|
9800
|
-
setPowerset:
|
|
9801
|
-
smallerEq:
|
|
9802
|
-
sort:
|
|
9800
|
+
setCartesian: Ar,
|
|
9801
|
+
setDistinct: zi,
|
|
9802
|
+
setIsSubset: ii,
|
|
9803
|
+
setPowerset: Ki,
|
|
9804
|
+
smallerEq: Wr,
|
|
9805
|
+
sort: Ba,
|
|
9803
9806
|
sqrtm: C,
|
|
9804
|
-
unequal:
|
|
9805
|
-
usolveAll:
|
|
9806
|
-
and:
|
|
9807
|
-
den:
|
|
9808
|
-
distance:
|
|
9809
|
-
dotPow:
|
|
9810
|
-
expm:
|
|
9807
|
+
unequal: oa,
|
|
9808
|
+
usolveAll: jn,
|
|
9809
|
+
and: Ir,
|
|
9810
|
+
den: Vi,
|
|
9811
|
+
distance: xa,
|
|
9812
|
+
dotPow: ea,
|
|
9813
|
+
expm: an,
|
|
9811
9814
|
fft: u,
|
|
9812
|
-
gamma:
|
|
9815
|
+
gamma: bn,
|
|
9813
9816
|
ifft: r,
|
|
9814
9817
|
lup: f,
|
|
9815
|
-
range:
|
|
9816
|
-
row:
|
|
9817
|
-
setDifference:
|
|
9818
|
-
setMultiplicity:
|
|
9819
|
-
setSymDifference:
|
|
9820
|
-
vacuumImpedance:
|
|
9821
|
-
wienDisplacement:
|
|
9822
|
-
atomicMass:
|
|
9823
|
-
bohrMagneton:
|
|
9824
|
-
boltzmann:
|
|
9825
|
-
column:
|
|
9826
|
-
conductanceQuantum:
|
|
9827
|
-
coulomb:
|
|
9828
|
-
createUnit:
|
|
9829
|
-
deuteronMass:
|
|
9830
|
-
eigs:
|
|
9831
|
-
electronMass:
|
|
9818
|
+
range: Me,
|
|
9819
|
+
row: sa,
|
|
9820
|
+
setDifference: Ea,
|
|
9821
|
+
setMultiplicity: nr,
|
|
9822
|
+
setSymDifference: gr,
|
|
9823
|
+
vacuumImpedance: Wn,
|
|
9824
|
+
wienDisplacement: ka,
|
|
9825
|
+
atomicMass: Mi,
|
|
9826
|
+
bohrMagneton: hr,
|
|
9827
|
+
boltzmann: en,
|
|
9828
|
+
column: Ti,
|
|
9829
|
+
conductanceQuantum: Kt,
|
|
9830
|
+
coulomb: Se,
|
|
9831
|
+
createUnit: He,
|
|
9832
|
+
deuteronMass: oi,
|
|
9833
|
+
eigs: Kr,
|
|
9834
|
+
electronMass: Ha,
|
|
9832
9835
|
factorial: N,
|
|
9833
|
-
fermiCoupling:
|
|
9834
|
-
gasConstant:
|
|
9835
|
-
gravity:
|
|
9836
|
-
klitzing:
|
|
9836
|
+
fermiCoupling: xi,
|
|
9837
|
+
gasConstant: Ee,
|
|
9838
|
+
gravity: Ke,
|
|
9839
|
+
klitzing: Jr,
|
|
9837
9840
|
loschmidt: F,
|
|
9838
|
-
magneticConstant:
|
|
9839
|
-
molarMass:
|
|
9840
|
-
molarPlanckConstant:
|
|
9841
|
-
neutronMass:
|
|
9842
|
-
nuclearMagneton:
|
|
9843
|
-
permutations:
|
|
9844
|
-
planckConstant:
|
|
9841
|
+
magneticConstant: jt,
|
|
9842
|
+
molarMass: Ve,
|
|
9843
|
+
molarPlanckConstant: Pn,
|
|
9844
|
+
neutronMass: Da,
|
|
9845
|
+
nuclearMagneton: qi,
|
|
9846
|
+
permutations: Qr,
|
|
9847
|
+
planckConstant: no,
|
|
9845
9848
|
planckMass: w,
|
|
9846
|
-
planckTime:
|
|
9849
|
+
planckTime: rn,
|
|
9847
9850
|
protonMass: l,
|
|
9848
|
-
quantumOfCirculation:
|
|
9849
|
-
reducedPlanckConstant:
|
|
9851
|
+
quantumOfCirculation: ft,
|
|
9852
|
+
reducedPlanckConstant: Ht,
|
|
9850
9853
|
secondRadiation: n,
|
|
9851
|
-
setSize:
|
|
9852
|
-
speedOfLight:
|
|
9854
|
+
setSize: ya,
|
|
9855
|
+
speedOfLight: lr,
|
|
9853
9856
|
stefanBoltzmann: j,
|
|
9854
|
-
thomsonCrossSection:
|
|
9855
|
-
avogadro:
|
|
9856
|
-
bohrRadius:
|
|
9857
|
-
coulombConstant:
|
|
9858
|
-
divide:
|
|
9859
|
-
elementaryCharge:
|
|
9860
|
-
faraday:
|
|
9857
|
+
thomsonCrossSection: Vt,
|
|
9858
|
+
avogadro: za,
|
|
9859
|
+
bohrRadius: oo,
|
|
9860
|
+
coulombConstant: Je,
|
|
9861
|
+
divide: vr,
|
|
9862
|
+
elementaryCharge: lo,
|
|
9863
|
+
faraday: xt,
|
|
9861
9864
|
freqz: v,
|
|
9862
|
-
gravitationConstant:
|
|
9863
|
-
inverseConductanceQuantum:
|
|
9864
|
-
lusolve:
|
|
9865
|
-
magneticFluxQuantum:
|
|
9866
|
-
molarMassC12:
|
|
9867
|
-
multinomial:
|
|
9868
|
-
planckCharge:
|
|
9869
|
-
planckTemperature:
|
|
9870
|
-
quantileSeq:
|
|
9871
|
-
rydberg:
|
|
9872
|
-
setIntersect:
|
|
9873
|
-
solveODE:
|
|
9874
|
-
stirlingS2:
|
|
9875
|
-
unit:
|
|
9876
|
-
bellNumbers:
|
|
9877
|
-
electricConstant:
|
|
9878
|
-
firstRadiation:
|
|
9879
|
-
hartreeEnergy:
|
|
9880
|
-
kldivergence:
|
|
9881
|
-
mean:
|
|
9882
|
-
molarVolume:
|
|
9883
|
-
planckLength:
|
|
9884
|
-
setUnion:
|
|
9885
|
-
variance:
|
|
9886
|
-
classicalElectronRadius:
|
|
9865
|
+
gravitationConstant: ye,
|
|
9866
|
+
inverseConductanceQuantum: ci,
|
|
9867
|
+
lusolve: gi,
|
|
9868
|
+
magneticFluxQuantum: pe,
|
|
9869
|
+
molarMassC12: Vn,
|
|
9870
|
+
multinomial: Rt,
|
|
9871
|
+
planckCharge: ur,
|
|
9872
|
+
planckTemperature: Ja,
|
|
9873
|
+
quantileSeq: it,
|
|
9874
|
+
rydberg: Re,
|
|
9875
|
+
setIntersect: fa,
|
|
9876
|
+
solveODE: Xn,
|
|
9877
|
+
stirlingS2: yt,
|
|
9878
|
+
unit: Le,
|
|
9879
|
+
bellNumbers: kr,
|
|
9880
|
+
electricConstant: Qn,
|
|
9881
|
+
firstRadiation: pt,
|
|
9882
|
+
hartreeEnergy: ca,
|
|
9883
|
+
kldivergence: ti,
|
|
9884
|
+
mean: hn,
|
|
9885
|
+
molarVolume: Jn,
|
|
9886
|
+
planckLength: Yt,
|
|
9887
|
+
setUnion: Ei,
|
|
9888
|
+
variance: Pt,
|
|
9889
|
+
classicalElectronRadius: I,
|
|
9887
9890
|
corr: x,
|
|
9888
|
-
median:
|
|
9891
|
+
median: On,
|
|
9889
9892
|
parse: pl,
|
|
9890
|
-
polynomialRoot:
|
|
9893
|
+
polynomialRoot: L,
|
|
9891
9894
|
resolve: ml,
|
|
9892
9895
|
simplifyConstant: hl,
|
|
9893
|
-
std:
|
|
9894
|
-
zeta:
|
|
9896
|
+
std: ne,
|
|
9897
|
+
zeta: ar,
|
|
9895
9898
|
compile: gl,
|
|
9896
9899
|
evaluate: _l,
|
|
9897
|
-
mad:
|
|
9900
|
+
mad: ht,
|
|
9898
9901
|
simplifyCore: bl,
|
|
9899
9902
|
help: xl,
|
|
9900
|
-
norm:
|
|
9901
|
-
rotationMatrix:
|
|
9903
|
+
norm: Bi,
|
|
9904
|
+
rotationMatrix: ve,
|
|
9902
9905
|
simplify: Sl,
|
|
9903
9906
|
symbolicEqual: tc({
|
|
9904
9907
|
OperatorNode: Xc,
|
|
9905
9908
|
parse: pl,
|
|
9906
9909
|
simplify: Sl,
|
|
9907
|
-
typed:
|
|
9910
|
+
typed: H
|
|
9908
9911
|
}),
|
|
9909
9912
|
derivative: rc({
|
|
9910
9913
|
ConstantNode: sl,
|
|
@@ -9912,25 +9915,25 @@ ht(Kc, {
|
|
|
9912
9915
|
OperatorNode: Xc,
|
|
9913
9916
|
ParenthesisNode: Zc,
|
|
9914
9917
|
SymbolNode: dl,
|
|
9915
|
-
config:
|
|
9916
|
-
equal:
|
|
9917
|
-
isZero:
|
|
9918
|
-
numeric:
|
|
9918
|
+
config: la,
|
|
9919
|
+
equal: dr,
|
|
9920
|
+
isZero: Li,
|
|
9921
|
+
numeric: Pa,
|
|
9919
9922
|
parse: pl,
|
|
9920
9923
|
simplify: Sl,
|
|
9921
|
-
typed:
|
|
9924
|
+
typed: H
|
|
9922
9925
|
}),
|
|
9923
9926
|
parser: Ss({
|
|
9924
9927
|
Parser: yl,
|
|
9925
|
-
typed:
|
|
9928
|
+
typed: H
|
|
9926
9929
|
}),
|
|
9927
|
-
rotate:
|
|
9930
|
+
rotate: Tn,
|
|
9928
9931
|
leafCount: Us({
|
|
9929
9932
|
parse: pl,
|
|
9930
|
-
typed:
|
|
9933
|
+
typed: H
|
|
9931
9934
|
}),
|
|
9932
9935
|
rationalize: ac({
|
|
9933
|
-
bignumber:
|
|
9936
|
+
bignumber: Ri,
|
|
9934
9937
|
fraction: _o,
|
|
9935
9938
|
AccessorNode: ll,
|
|
9936
9939
|
ArrayNode: $c,
|
|
@@ -9941,199 +9944,199 @@ ht(Kc, {
|
|
|
9941
9944
|
OperatorNode: Xc,
|
|
9942
9945
|
ParenthesisNode: Zc,
|
|
9943
9946
|
SymbolNode: dl,
|
|
9944
|
-
add:
|
|
9945
|
-
config:
|
|
9946
|
-
divide:
|
|
9947
|
-
equal:
|
|
9948
|
-
isZero:
|
|
9947
|
+
add: B,
|
|
9948
|
+
config: la,
|
|
9949
|
+
divide: vr,
|
|
9950
|
+
equal: dr,
|
|
9951
|
+
isZero: Li,
|
|
9949
9952
|
mathWithTransform: qc,
|
|
9950
|
-
matrix:
|
|
9953
|
+
matrix: V,
|
|
9951
9954
|
multiply: a,
|
|
9952
9955
|
parse: pl,
|
|
9953
9956
|
pow: M,
|
|
9954
9957
|
simplify: Sl,
|
|
9955
9958
|
simplifyConstant: hl,
|
|
9956
9959
|
simplifyCore: bl,
|
|
9957
|
-
subtract:
|
|
9958
|
-
typed:
|
|
9960
|
+
subtract: fi,
|
|
9961
|
+
typed: H
|
|
9959
9962
|
}),
|
|
9960
|
-
schur:
|
|
9961
|
-
sylvester:
|
|
9962
|
-
lyap:
|
|
9963
|
-
config:
|
|
9964
|
-
}),
|
|
9965
|
-
map: vc({ typed:
|
|
9966
|
-
filter: hc({ typed:
|
|
9967
|
-
forEach: gc({ typed:
|
|
9963
|
+
schur: Mn,
|
|
9964
|
+
sylvester: Dt,
|
|
9965
|
+
lyap: st,
|
|
9966
|
+
config: la
|
|
9967
|
+
}), Mt(qc, Kc, {
|
|
9968
|
+
map: vc({ typed: H }),
|
|
9969
|
+
filter: hc({ typed: H }),
|
|
9970
|
+
forEach: gc({ typed: H }),
|
|
9968
9971
|
mapSlices: lc({
|
|
9969
|
-
isInteger:
|
|
9970
|
-
typed:
|
|
9972
|
+
isInteger: br,
|
|
9973
|
+
typed: H
|
|
9971
9974
|
}),
|
|
9972
9975
|
or: Hc({
|
|
9973
9976
|
DenseMatrix: S,
|
|
9974
|
-
concat:
|
|
9975
|
-
equalScalar:
|
|
9976
|
-
matrix:
|
|
9977
|
-
typed:
|
|
9977
|
+
concat: tt,
|
|
9978
|
+
equalScalar: ro,
|
|
9979
|
+
matrix: V,
|
|
9980
|
+
typed: H
|
|
9978
9981
|
}),
|
|
9979
9982
|
and: Vc({
|
|
9980
|
-
add:
|
|
9981
|
-
concat:
|
|
9982
|
-
equalScalar:
|
|
9983
|
-
matrix:
|
|
9984
|
-
not:
|
|
9985
|
-
typed:
|
|
9986
|
-
zeros:
|
|
9983
|
+
add: B,
|
|
9984
|
+
concat: tt,
|
|
9985
|
+
equalScalar: ro,
|
|
9986
|
+
matrix: V,
|
|
9987
|
+
not: pa,
|
|
9988
|
+
typed: H,
|
|
9989
|
+
zeros: si
|
|
9987
9990
|
}),
|
|
9988
9991
|
cumsum: Ic({
|
|
9989
|
-
add:
|
|
9990
|
-
typed:
|
|
9991
|
-
unaryPlus:
|
|
9992
|
+
add: B,
|
|
9993
|
+
typed: H,
|
|
9994
|
+
unaryPlus: We
|
|
9992
9995
|
}),
|
|
9993
9996
|
max: Sc({
|
|
9994
|
-
config:
|
|
9995
|
-
isNaN:
|
|
9996
|
-
larger:
|
|
9997
|
-
numeric:
|
|
9998
|
-
typed:
|
|
9997
|
+
config: la,
|
|
9998
|
+
isNaN: Ai,
|
|
9999
|
+
larger: Ua,
|
|
10000
|
+
numeric: Pa,
|
|
10001
|
+
typed: H
|
|
9999
10002
|
}),
|
|
10000
10003
|
nullish: Uc({
|
|
10001
|
-
deepEqual:
|
|
10002
|
-
flatten:
|
|
10003
|
-
matrix:
|
|
10004
|
-
size:
|
|
10005
|
-
typed:
|
|
10004
|
+
deepEqual: Oa,
|
|
10005
|
+
flatten: de,
|
|
10006
|
+
matrix: V,
|
|
10007
|
+
size: Qi,
|
|
10008
|
+
typed: H
|
|
10006
10009
|
}),
|
|
10007
10010
|
print: Bc({
|
|
10008
|
-
add:
|
|
10009
|
-
matrix:
|
|
10010
|
-
typed:
|
|
10011
|
-
zeros:
|
|
10011
|
+
add: B,
|
|
10012
|
+
matrix: V,
|
|
10013
|
+
typed: H,
|
|
10014
|
+
zeros: si
|
|
10012
10015
|
}),
|
|
10013
10016
|
bitAnd: Wc({
|
|
10014
|
-
add:
|
|
10015
|
-
concat:
|
|
10016
|
-
equalScalar:
|
|
10017
|
-
matrix:
|
|
10018
|
-
not:
|
|
10019
|
-
typed:
|
|
10020
|
-
zeros:
|
|
10017
|
+
add: B,
|
|
10018
|
+
concat: tt,
|
|
10019
|
+
equalScalar: ro,
|
|
10020
|
+
matrix: V,
|
|
10021
|
+
not: pa,
|
|
10022
|
+
typed: H,
|
|
10023
|
+
zeros: si
|
|
10021
10024
|
}),
|
|
10022
10025
|
concat: Oc({
|
|
10023
|
-
isInteger:
|
|
10024
|
-
matrix:
|
|
10025
|
-
typed:
|
|
10026
|
+
isInteger: br,
|
|
10027
|
+
matrix: V,
|
|
10028
|
+
typed: H
|
|
10026
10029
|
}),
|
|
10027
10030
|
diff: Ac({
|
|
10028
|
-
bignumber:
|
|
10029
|
-
matrix:
|
|
10030
|
-
number:
|
|
10031
|
-
subtract:
|
|
10032
|
-
typed:
|
|
10031
|
+
bignumber: Ri,
|
|
10032
|
+
matrix: V,
|
|
10033
|
+
number: Di,
|
|
10034
|
+
subtract: fi,
|
|
10035
|
+
typed: H
|
|
10033
10036
|
}),
|
|
10034
10037
|
min: wc({
|
|
10035
|
-
config:
|
|
10036
|
-
isNaN:
|
|
10037
|
-
numeric:
|
|
10038
|
-
smaller:
|
|
10039
|
-
typed:
|
|
10038
|
+
config: la,
|
|
10039
|
+
isNaN: Ai,
|
|
10040
|
+
numeric: Pa,
|
|
10041
|
+
smaller: Zr,
|
|
10042
|
+
typed: H
|
|
10040
10043
|
}),
|
|
10041
10044
|
subset: Dc({
|
|
10042
|
-
add:
|
|
10043
|
-
matrix:
|
|
10044
|
-
typed:
|
|
10045
|
-
zeros:
|
|
10045
|
+
add: B,
|
|
10046
|
+
matrix: V,
|
|
10047
|
+
typed: H,
|
|
10048
|
+
zeros: si
|
|
10046
10049
|
}),
|
|
10047
10050
|
bitOr: Gc({
|
|
10048
10051
|
DenseMatrix: S,
|
|
10049
|
-
concat:
|
|
10050
|
-
equalScalar:
|
|
10051
|
-
matrix:
|
|
10052
|
-
typed:
|
|
10052
|
+
concat: tt,
|
|
10053
|
+
equalScalar: ro,
|
|
10054
|
+
matrix: V,
|
|
10055
|
+
typed: H
|
|
10053
10056
|
}),
|
|
10054
10057
|
sum: Nc({
|
|
10055
|
-
add:
|
|
10056
|
-
config:
|
|
10057
|
-
numeric:
|
|
10058
|
-
typed:
|
|
10058
|
+
add: B,
|
|
10059
|
+
config: la,
|
|
10060
|
+
numeric: Pa,
|
|
10061
|
+
typed: H
|
|
10059
10062
|
}),
|
|
10060
10063
|
index: _c({
|
|
10061
10064
|
Index: A,
|
|
10062
|
-
getMatrixDataType:
|
|
10065
|
+
getMatrixDataType: En
|
|
10063
10066
|
}),
|
|
10064
10067
|
row: Ec({
|
|
10065
10068
|
Index: A,
|
|
10066
|
-
matrix:
|
|
10067
|
-
range:
|
|
10068
|
-
typed:
|
|
10069
|
+
matrix: V,
|
|
10070
|
+
range: Me,
|
|
10071
|
+
typed: H
|
|
10069
10072
|
}),
|
|
10070
10073
|
column: uc({
|
|
10071
10074
|
Index: A,
|
|
10072
|
-
matrix:
|
|
10073
|
-
range:
|
|
10074
|
-
typed:
|
|
10075
|
+
matrix: V,
|
|
10076
|
+
range: Me,
|
|
10077
|
+
typed: H
|
|
10075
10078
|
}),
|
|
10076
10079
|
mean: Cc({
|
|
10077
|
-
add:
|
|
10078
|
-
divide:
|
|
10079
|
-
typed:
|
|
10080
|
+
add: B,
|
|
10081
|
+
divide: vr,
|
|
10082
|
+
typed: H
|
|
10080
10083
|
}),
|
|
10081
10084
|
range: Tc({
|
|
10082
|
-
bignumber:
|
|
10083
|
-
matrix:
|
|
10084
|
-
add:
|
|
10085
|
-
config:
|
|
10086
|
-
equal:
|
|
10087
|
-
isPositive:
|
|
10088
|
-
isZero:
|
|
10089
|
-
larger:
|
|
10085
|
+
bignumber: Ri,
|
|
10086
|
+
matrix: V,
|
|
10087
|
+
add: B,
|
|
10088
|
+
config: la,
|
|
10089
|
+
equal: dr,
|
|
10090
|
+
isPositive: Vr,
|
|
10091
|
+
isZero: Li,
|
|
10092
|
+
larger: Ua,
|
|
10090
10093
|
largerEq: uo,
|
|
10091
|
-
smaller:
|
|
10092
|
-
smallerEq:
|
|
10093
|
-
typed:
|
|
10094
|
+
smaller: Zr,
|
|
10095
|
+
smallerEq: Wr,
|
|
10096
|
+
typed: H
|
|
10094
10097
|
}),
|
|
10095
10098
|
variance: Rc({
|
|
10096
|
-
add:
|
|
10097
|
-
divide:
|
|
10098
|
-
isNaN:
|
|
10099
|
-
mapSlices:
|
|
10099
|
+
add: B,
|
|
10100
|
+
divide: vr,
|
|
10101
|
+
isNaN: Ai,
|
|
10102
|
+
mapSlices: et,
|
|
10100
10103
|
multiply: a,
|
|
10101
|
-
subtract:
|
|
10102
|
-
typed:
|
|
10104
|
+
subtract: fi,
|
|
10105
|
+
typed: H
|
|
10103
10106
|
}),
|
|
10104
10107
|
quantileSeq: Pc({
|
|
10105
|
-
add:
|
|
10106
|
-
bignumber:
|
|
10107
|
-
compare:
|
|
10108
|
-
divide:
|
|
10109
|
-
isInteger:
|
|
10110
|
-
larger:
|
|
10111
|
-
mapSlices:
|
|
10108
|
+
add: B,
|
|
10109
|
+
bignumber: Ri,
|
|
10110
|
+
compare: lt,
|
|
10111
|
+
divide: vr,
|
|
10112
|
+
isInteger: br,
|
|
10113
|
+
larger: Ua,
|
|
10114
|
+
mapSlices: et,
|
|
10112
10115
|
multiply: a,
|
|
10113
|
-
partitionSelect:
|
|
10114
|
-
smaller:
|
|
10115
|
-
smallerEq:
|
|
10116
|
-
subtract:
|
|
10117
|
-
typed:
|
|
10116
|
+
partitionSelect: Pi,
|
|
10117
|
+
smaller: Zr,
|
|
10118
|
+
smallerEq: Wr,
|
|
10119
|
+
subtract: fi,
|
|
10120
|
+
typed: H
|
|
10118
10121
|
}),
|
|
10119
10122
|
std: jc({
|
|
10120
|
-
map:
|
|
10121
|
-
sqrt:
|
|
10122
|
-
typed:
|
|
10123
|
-
variance:
|
|
10123
|
+
map: Fe,
|
|
10124
|
+
sqrt: Jt,
|
|
10125
|
+
typed: H,
|
|
10126
|
+
variance: Pt
|
|
10124
10127
|
})
|
|
10125
|
-
}),
|
|
10126
|
-
BigNumber:
|
|
10127
|
-
Complex:
|
|
10128
|
-
Fraction:
|
|
10129
|
-
Matrix:
|
|
10128
|
+
}), Mt(Jc, {
|
|
10129
|
+
BigNumber: eo,
|
|
10130
|
+
Complex: qt,
|
|
10131
|
+
Fraction: tn,
|
|
10132
|
+
Matrix: nt,
|
|
10130
10133
|
Node: $,
|
|
10131
10134
|
ObjectNode: Yc,
|
|
10132
10135
|
OperatorNode: Xc,
|
|
10133
10136
|
ParenthesisNode: Zc,
|
|
10134
|
-
Range:
|
|
10137
|
+
Range: ut,
|
|
10135
10138
|
RelationalNode: Qc,
|
|
10136
|
-
ResultSet:
|
|
10139
|
+
ResultSet: Et,
|
|
10137
10140
|
ArrayNode: $c,
|
|
10138
10141
|
BlockNode: el,
|
|
10139
10142
|
ConditionalNode: tl,
|
|
@@ -10141,13 +10144,13 @@ ht(Kc, {
|
|
|
10141
10144
|
RangeNode: nl,
|
|
10142
10145
|
Chain: il,
|
|
10143
10146
|
FunctionAssignmentNode: al,
|
|
10144
|
-
SparseMatrix:
|
|
10147
|
+
SparseMatrix: Bt,
|
|
10145
10148
|
ConstantNode: sl,
|
|
10146
10149
|
IndexNode: cl,
|
|
10147
|
-
FibonacciHeap:
|
|
10150
|
+
FibonacciHeap: Ka,
|
|
10148
10151
|
ImmutableDenseMatrix: te,
|
|
10149
10152
|
Index: A,
|
|
10150
|
-
Spa:
|
|
10153
|
+
Spa: Ye,
|
|
10151
10154
|
AccessorNode: ll,
|
|
10152
10155
|
AssignmentNode: ul,
|
|
10153
10156
|
Unit: mo,
|
|
@@ -10159,4 +10162,4 @@ ht(Kc, {
|
|
|
10159
10162
|
//#endregion
|
|
10160
10163
|
export { _l as t };
|
|
10161
10164
|
|
|
10162
|
-
//# sourceMappingURL=impureFunctionsAny.generated-
|
|
10165
|
+
//# sourceMappingURL=impureFunctionsAny.generated-DlzbJQpQ.js.map
|