@motionscript/math 0.2.0 → 0.3.0
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/CHANGELOG.md +12 -0
- package/README.md +2 -2
- package/dist/annotate/curly-brace.d.ts +3 -3
- package/dist/annotate/emphasis-mark.d.ts +3 -3
- package/dist/browser/chunks/chunk-347RSDIW.js +2 -0
- package/dist/browser/chunks/chunk-347RSDIW.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/kit.js +1 -1
- package/dist/browser/manifest.json +1 -1
- package/dist/engine.d.ts +1 -1
- package/dist/engine.js +1 -1
- package/dist/engine.js.map +1 -1
- package/dist/index.d.ts +28 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -28
- package/dist/index.js.map +1 -1
- package/dist/marks/curve-area.d.ts +3 -3
- package/dist/marks/drop-lines.d.ts +3 -3
- package/dist/marks/riemann-sum.d.ts +3 -3
- package/dist/marks/tangent-line.d.ts +3 -3
- package/dist/marks/vector-arrow.d.ts +3 -3
- package/dist/plots/function-plot.d.ts +4 -4
- package/dist/plots/points-plot.d.ts +3 -3
- package/dist/plots/stream-lines.d.ts +6 -6
- package/dist/plots/traced-path.d.ts +6 -6
- package/dist/plots/vector-field.d.ts +6 -6
- package/dist/systems/number-line.d.ts +3 -3
- package/dist/systems/number-plane.d.ts +6 -6
- package/dist/tex/matrix.d.ts +3 -3
- package/dist/tex/node.d.ts +3 -3
- package/dist/three/curve-plot3d.d.ts +3 -3
- package/dist/three/surface-plot3d.d.ts +8 -8
- package/dist/unstable.d.ts +29 -0
- package/dist/unstable.d.ts.map +1 -0
- package/dist/unstable.js +31 -0
- package/dist/unstable.js.map +1 -0
- package/package.json +6 -6
- package/registry.json +1 -1
- package/src/engine.ts +1 -1
- package/src/index.ts +29 -28
- package/src/unstable.ts +30 -0
- package/dist/browser/chunks/chunk-FZ2YBTPL.js +0 -2
- package/dist/browser/chunks/chunk-FZ2YBTPL.js.map +0 -7
|
@@ -5,11 +5,11 @@ export declare const VectorField: import("@motionscript/sdk").Component<"vectorF
|
|
|
5
5
|
spacing: import("@motionscript/sdk").Type<number, number, false>;
|
|
6
6
|
/** How long an arrow is drawn for a vector of length one, in graph units. */
|
|
7
7
|
arrowScale: import("@motionscript/sdk").Type<number, number, false>;
|
|
8
|
-
expression: import("@motionscript/sdk").Type<string | import("../
|
|
8
|
+
expression: import("@motionscript/sdk").Type<string | import("../engine.js").PlotSource, import("../engine.js").PlotSource, false>;
|
|
9
9
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
10
10
|
strengthFills: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
|
|
11
11
|
maxMagnitude: import("@motionscript/sdk").Type<number, number, false>;
|
|
12
|
-
graph: import("@motionscript/sdk").Type<import("../
|
|
12
|
+
graph: import("@motionscript/sdk").Type<import("../engine.js").GraphPlane | null, import("../engine.js").GraphPlane | null, true>;
|
|
13
13
|
stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
|
|
14
14
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
15
15
|
}>, {
|
|
@@ -22,11 +22,11 @@ export declare const VectorField: import("@motionscript/sdk").Component<"vectorF
|
|
|
22
22
|
spacing: import("@motionscript/sdk").Type<number, number, false>;
|
|
23
23
|
/** How long an arrow is drawn for a vector of length one, in graph units. */
|
|
24
24
|
arrowScale: import("@motionscript/sdk").Type<number, number, false>;
|
|
25
|
-
expression: import("@motionscript/sdk").Type<string | import("../
|
|
25
|
+
expression: import("@motionscript/sdk").Type<string | import("../engine.js").PlotSource, import("../engine.js").PlotSource, false>;
|
|
26
26
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
27
27
|
strengthFills: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
|
|
28
28
|
maxMagnitude: import("@motionscript/sdk").Type<number, number, false>;
|
|
29
|
-
graph: import("@motionscript/sdk").Type<import("../
|
|
29
|
+
graph: import("@motionscript/sdk").Type<import("../engine.js").GraphPlane | null, import("../engine.js").GraphPlane | null, true>;
|
|
30
30
|
stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
|
|
31
31
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
32
32
|
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
@@ -34,11 +34,11 @@ export declare const VectorField: import("@motionscript/sdk").Component<"vectorF
|
|
|
34
34
|
spacing: import("@motionscript/sdk").Type<number, number, false>;
|
|
35
35
|
/** How long an arrow is drawn for a vector of length one, in graph units. */
|
|
36
36
|
arrowScale: import("@motionscript/sdk").Type<number, number, false>;
|
|
37
|
-
expression: import("@motionscript/sdk").Type<string | import("../
|
|
37
|
+
expression: import("@motionscript/sdk").Type<string | import("../engine.js").PlotSource, import("../engine.js").PlotSource, false>;
|
|
38
38
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
39
39
|
strengthFills: import("@motionscript/sdk").Type<_Fill[], _FillResolved[][], false>;
|
|
40
40
|
maxMagnitude: import("@motionscript/sdk").Type<number, number, false>;
|
|
41
|
-
graph: import("@motionscript/sdk").Type<import("../
|
|
41
|
+
graph: import("@motionscript/sdk").Type<import("../engine.js").GraphPlane | null, import("../engine.js").GraphPlane | null, true>;
|
|
42
42
|
stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
|
|
43
43
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
44
44
|
}>, {
|
|
@@ -4,7 +4,7 @@ import { type NodeOf, type Color as _Color, type NormalizedColor, type StrokeRes
|
|
|
4
4
|
* `y` is pixels above it, so a dot or a label sits on a number.
|
|
5
5
|
*/
|
|
6
6
|
export declare const NumberLine: import("@motionscript/sdk").Component<"numberLine", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
7
|
-
range: import("@motionscript/sdk").Type<import("../
|
|
7
|
+
range: import("@motionscript/sdk").Type<import("../engine.js").Interval, import("../engine.js").Interval, false>;
|
|
8
8
|
/** The spacing of the ticks; zero picks a tidy one for the line's length. */
|
|
9
9
|
step: import("@motionscript/sdk").Type<number, number, false>;
|
|
10
10
|
scaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
@@ -33,7 +33,7 @@ export declare const NumberLine: import("@motionscript/sdk").Component<"numberLi
|
|
|
33
33
|
readonly portion: import("@motionscript/sdk").Type<number, number, false>;
|
|
34
34
|
};
|
|
35
35
|
}, null, _Node2D<_Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
36
|
-
range: import("@motionscript/sdk").Type<import("../
|
|
36
|
+
range: import("@motionscript/sdk").Type<import("../engine.js").Interval, import("../engine.js").Interval, false>;
|
|
37
37
|
/** The spacing of the ticks; zero picks a tidy one for the line's length. */
|
|
38
38
|
step: import("@motionscript/sdk").Type<number, number, false>;
|
|
39
39
|
scaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
@@ -53,7 +53,7 @@ export declare const NumberLine: import("@motionscript/sdk").Component<"numberLi
|
|
|
53
53
|
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
54
54
|
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
55
55
|
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
56
|
-
range: import("@motionscript/sdk").Type<import("../
|
|
56
|
+
range: import("@motionscript/sdk").Type<import("../engine.js").Interval, import("../engine.js").Interval, false>;
|
|
57
57
|
/** The spacing of the ticks; zero picks a tidy one for the line's length. */
|
|
58
58
|
step: import("@motionscript/sdk").Type<number, number, false>;
|
|
59
59
|
scaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
@@ -29,8 +29,8 @@ export declare const NumberPlane: import("@motionscript/sdk").Component<"numberP
|
|
|
29
29
|
warp: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
30
30
|
/** Leave the plane as it was, faintly, behind one that has been transformed or warped. */
|
|
31
31
|
ghost: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
32
|
-
xRange: import("@motionscript/sdk").Type<import("../
|
|
33
|
-
yRange: import("@motionscript/sdk").Type<import("../
|
|
32
|
+
xRange: import("@motionscript/sdk").Type<import("../engine.js").Interval, import("../engine.js").Interval, false>;
|
|
33
|
+
yRange: import("@motionscript/sdk").Type<import("../engine.js").Interval, import("../engine.js").Interval, false>;
|
|
34
34
|
xStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
35
35
|
yStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
36
36
|
xScaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
@@ -77,8 +77,8 @@ export declare const NumberPlane: import("@motionscript/sdk").Component<"numberP
|
|
|
77
77
|
warp: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
78
78
|
/** Leave the plane as it was, faintly, behind one that has been transformed or warped. */
|
|
79
79
|
ghost: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
80
|
-
xRange: import("@motionscript/sdk").Type<import("../
|
|
81
|
-
yRange: import("@motionscript/sdk").Type<import("../
|
|
80
|
+
xRange: import("@motionscript/sdk").Type<import("../engine.js").Interval, import("../engine.js").Interval, false>;
|
|
81
|
+
yRange: import("@motionscript/sdk").Type<import("../engine.js").Interval, import("../engine.js").Interval, false>;
|
|
82
82
|
xStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
83
83
|
yStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
84
84
|
xScaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
@@ -114,8 +114,8 @@ export declare const NumberPlane: import("@motionscript/sdk").Component<"numberP
|
|
|
114
114
|
warp: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
115
115
|
/** Leave the plane as it was, faintly, behind one that has been transformed or warped. */
|
|
116
116
|
ghost: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
117
|
-
xRange: import("@motionscript/sdk").Type<import("../
|
|
118
|
-
yRange: import("@motionscript/sdk").Type<import("../
|
|
117
|
+
xRange: import("@motionscript/sdk").Type<import("../engine.js").Interval, import("../engine.js").Interval, false>;
|
|
118
|
+
yRange: import("@motionscript/sdk").Type<import("../engine.js").Interval, import("../engine.js").Interval, false>;
|
|
119
119
|
xStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
120
120
|
yStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
121
121
|
xScaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
package/dist/tex/matrix.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const LatexMatrix: import("@motionscript/sdk").Component<"latexMa
|
|
|
10
10
|
entries: import("@motionscript/sdk").Type<string[][], Morphing<string[][]>, false>;
|
|
11
11
|
brackets: import("@motionscript/sdk").Type<MatrixBrackets, Morphing<MatrixBrackets>, false>;
|
|
12
12
|
fontSize: number;
|
|
13
|
-
partFills: import("@motionscript/sdk").Type<import("../
|
|
13
|
+
partFills: import("@motionscript/sdk").Type<import("../engine.js").PartFill[], import("../engine.js").PartFillResolved[], false>;
|
|
14
14
|
written: import("@motionscript/sdk").Type<number, number, false>;
|
|
15
15
|
morphProgress: import("@motionscript/sdk").Type<number, number, false>;
|
|
16
16
|
flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
|
|
@@ -42,7 +42,7 @@ export declare const LatexMatrix: import("@motionscript/sdk").Component<"latexMa
|
|
|
42
42
|
entries: import("@motionscript/sdk").Type<string[][], Morphing<string[][]>, false>;
|
|
43
43
|
brackets: import("@motionscript/sdk").Type<MatrixBrackets, Morphing<MatrixBrackets>, false>;
|
|
44
44
|
fontSize: number;
|
|
45
|
-
partFills: import("@motionscript/sdk").Type<import("../
|
|
45
|
+
partFills: import("@motionscript/sdk").Type<import("../engine.js").PartFill[], import("../engine.js").PartFillResolved[], false>;
|
|
46
46
|
written: import("@motionscript/sdk").Type<number, number, false>;
|
|
47
47
|
morphProgress: import("@motionscript/sdk").Type<number, number, false>;
|
|
48
48
|
flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
|
|
@@ -61,7 +61,7 @@ export declare const LatexMatrix: import("@motionscript/sdk").Component<"latexMa
|
|
|
61
61
|
entries: import("@motionscript/sdk").Type<string[][], Morphing<string[][]>, false>;
|
|
62
62
|
brackets: import("@motionscript/sdk").Type<MatrixBrackets, Morphing<MatrixBrackets>, false>;
|
|
63
63
|
fontSize: number;
|
|
64
|
-
partFills: import("@motionscript/sdk").Type<import("../
|
|
64
|
+
partFills: import("@motionscript/sdk").Type<import("../engine.js").PartFill[], import("../engine.js").PartFillResolved[], false>;
|
|
65
65
|
written: import("@motionscript/sdk").Type<number, number, false>;
|
|
66
66
|
morphProgress: import("@motionscript/sdk").Type<number, number, false>;
|
|
67
67
|
flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
|
package/dist/tex/node.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const Latex: import("@motionscript/sdk").Component<"latex", impor
|
|
|
22
22
|
/** The formula. Mid-tween it holds both ends, and the glyphs morph from the one into the other. */
|
|
23
23
|
latex: import("@motionscript/sdk").Type<string, Morphing<string>, false>;
|
|
24
24
|
fontSize: number;
|
|
25
|
-
partFills: import("@motionscript/sdk").Type<PartFill[], import("../
|
|
25
|
+
partFills: import("@motionscript/sdk").Type<PartFill[], import("../engine.js").PartFillResolved[], false>;
|
|
26
26
|
written: import("@motionscript/sdk").Type<number, number, false>;
|
|
27
27
|
morphProgress: import("@motionscript/sdk").Type<number, number, false>;
|
|
28
28
|
flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
|
|
@@ -51,7 +51,7 @@ export declare const Latex: import("@motionscript/sdk").Component<"latex", impor
|
|
|
51
51
|
/** The formula. Mid-tween it holds both ends, and the glyphs morph from the one into the other. */
|
|
52
52
|
latex: import("@motionscript/sdk").Type<string, Morphing<string>, false>;
|
|
53
53
|
fontSize: number;
|
|
54
|
-
partFills: import("@motionscript/sdk").Type<PartFill[], import("../
|
|
54
|
+
partFills: import("@motionscript/sdk").Type<PartFill[], import("../engine.js").PartFillResolved[], false>;
|
|
55
55
|
written: import("@motionscript/sdk").Type<number, number, false>;
|
|
56
56
|
morphProgress: import("@motionscript/sdk").Type<number, number, false>;
|
|
57
57
|
flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
|
|
@@ -68,7 +68,7 @@ export declare const Latex: import("@motionscript/sdk").Component<"latex", impor
|
|
|
68
68
|
/** The formula. Mid-tween it holds both ends, and the glyphs morph from the one into the other. */
|
|
69
69
|
latex: import("@motionscript/sdk").Type<string, Morphing<string>, false>;
|
|
70
70
|
fontSize: number;
|
|
71
|
-
partFills: import("@motionscript/sdk").Type<PartFill[], import("../
|
|
71
|
+
partFills: import("@motionscript/sdk").Type<PartFill[], import("../engine.js").PartFillResolved[], false>;
|
|
72
72
|
written: import("@motionscript/sdk").Type<number, number, false>;
|
|
73
73
|
morphProgress: import("@motionscript/sdk").Type<number, number, false>;
|
|
74
74
|
flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
|
|
@@ -4,7 +4,7 @@ import { type PlotSource } from "../kit/source.js";
|
|
|
4
4
|
export declare const CurvePlot3d: import("@motionscript/sdk").Component<"curvePlot3d", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Transform3DState, {
|
|
5
5
|
expression: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
6
6
|
/** The span of `t` that is drawn; 0 to 1 when left out. */
|
|
7
|
-
domain: import("@motionscript/sdk").Type<import("../
|
|
7
|
+
domain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
8
8
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
9
9
|
/** How many points the curve is drawn through. */
|
|
10
10
|
samples: import("@motionscript/sdk").Type<number, number, false>;
|
|
@@ -42,7 +42,7 @@ export declare const CurvePlot3d: import("@motionscript/sdk").Component<"curvePl
|
|
|
42
42
|
}, null, _Node3D<_Node3DProps>, import("@motionscript/sdk").CallProps3D<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Transform3DState, {
|
|
43
43
|
expression: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
44
44
|
/** The span of `t` that is drawn; 0 to 1 when left out. */
|
|
45
|
-
domain: import("@motionscript/sdk").Type<import("../
|
|
45
|
+
domain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
46
46
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
47
47
|
/** How many points the curve is drawn through. */
|
|
48
48
|
samples: import("@motionscript/sdk").Type<number, number, false>;
|
|
@@ -75,7 +75,7 @@ export declare const CurvePlot3d: import("@motionscript/sdk").Component<"curvePl
|
|
|
75
75
|
}>, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Transform3DState, {
|
|
76
76
|
expression: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
77
77
|
/** The span of `t` that is drawn; 0 to 1 when left out. */
|
|
78
|
-
domain: import("@motionscript/sdk").Type<import("../
|
|
78
|
+
domain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
79
79
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
80
80
|
/** How many points the curve is drawn through. */
|
|
81
81
|
samples: import("@motionscript/sdk").Type<number, number, false>;
|
|
@@ -7,8 +7,8 @@ declare const state: {
|
|
|
7
7
|
* the width of the axes when left out, u and v for a parametric surface,
|
|
8
8
|
* which run from 0 to 1.
|
|
9
9
|
*/
|
|
10
|
-
uDomain: import("@motionscript/sdk").Type<import("../
|
|
11
|
-
vDomain: import("@motionscript/sdk").Type<import("../
|
|
10
|
+
uDomain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
11
|
+
vDomain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
12
12
|
/** The equation's named values: any name in it that is not a variable, a function or a constant. */
|
|
13
13
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
14
14
|
/** How finely the surface is sampled, each way. */
|
|
@@ -58,8 +58,8 @@ export declare const SurfacePlot3d: import("@motionscript/sdk").Component<"surfa
|
|
|
58
58
|
* the width of the axes when left out, u and v for a parametric surface,
|
|
59
59
|
* which run from 0 to 1.
|
|
60
60
|
*/
|
|
61
|
-
uDomain: import("@motionscript/sdk").Type<import("../
|
|
62
|
-
vDomain: import("@motionscript/sdk").Type<import("../
|
|
61
|
+
uDomain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
62
|
+
vDomain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
63
63
|
/** The equation's named values: any name in it that is not a variable, a function or a constant. */
|
|
64
64
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
65
65
|
/** How finely the surface is sampled, each way. */
|
|
@@ -103,8 +103,8 @@ export declare const SurfacePlot3d: import("@motionscript/sdk").Component<"surfa
|
|
|
103
103
|
* the width of the axes when left out, u and v for a parametric surface,
|
|
104
104
|
* which run from 0 to 1.
|
|
105
105
|
*/
|
|
106
|
-
uDomain: import("@motionscript/sdk").Type<import("../
|
|
107
|
-
vDomain: import("@motionscript/sdk").Type<import("../
|
|
106
|
+
uDomain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
107
|
+
vDomain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
108
108
|
/** The equation's named values: any name in it that is not a variable, a function or a constant. */
|
|
109
109
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
110
110
|
/** How finely the surface is sampled, each way. */
|
|
@@ -144,8 +144,8 @@ export declare const SurfacePlot3d: import("@motionscript/sdk").Component<"surfa
|
|
|
144
144
|
* the width of the axes when left out, u and v for a parametric surface,
|
|
145
145
|
* which run from 0 to 1.
|
|
146
146
|
*/
|
|
147
|
-
uDomain: import("@motionscript/sdk").Type<import("../
|
|
148
|
-
vDomain: import("@motionscript/sdk").Type<import("../
|
|
147
|
+
uDomain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
148
|
+
vDomain: import("@motionscript/sdk").Type<import("../engine.js").Interval | null, import("../engine.js").Interval | null, false>;
|
|
149
149
|
/** The equation's named values: any name in it that is not a variable, a function or a constant. */
|
|
150
150
|
params: import("@motionscript/sdk").Type<Readonly<Record<string, number>>, Readonly<Record<string, number>>, false>;
|
|
151
151
|
/** How finely the surface is sampled, each way. */
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export * from './tex/node.js';
|
|
2
|
+
export * from './tex/matrix.js';
|
|
3
|
+
export * from './systems/number-line.js';
|
|
4
|
+
export * from './systems/axes2d.js';
|
|
5
|
+
export * from './systems/number-plane.js';
|
|
6
|
+
export * from './plots/function-plot.js';
|
|
7
|
+
export * from './plots/points-plot.js';
|
|
8
|
+
export * from './marks/plot-point.js';
|
|
9
|
+
export * from './marks/vector-arrow.js';
|
|
10
|
+
export * from './marks/curve-area.js';
|
|
11
|
+
export * from './marks/riemann-sum.js';
|
|
12
|
+
export * from './marks/tangent-line.js';
|
|
13
|
+
export * from './marks/drop-lines.js';
|
|
14
|
+
export * from './annotate/curly-brace.js';
|
|
15
|
+
export * from './annotate/angle-mark.js';
|
|
16
|
+
export * from './annotate/emphasis-mark.js';
|
|
17
|
+
export * from './three/axes3d.js';
|
|
18
|
+
export * from './three/surface-plot3d.js';
|
|
19
|
+
export * from './three/curve-plot3d.js';
|
|
20
|
+
export * from './three/plot-point3d.js';
|
|
21
|
+
export * from './three/vector-arrow3d.js';
|
|
22
|
+
export * from './systems/polar-plane.js';
|
|
23
|
+
export * from './plots/vector-field.js';
|
|
24
|
+
export * from './plots/stream-lines.js';
|
|
25
|
+
export * from './plots/traced-path.js';
|
|
26
|
+
export * from './structures/network-graph.js';
|
|
27
|
+
export * from './structures/sample-space.js';
|
|
28
|
+
export * from './engine.js';
|
|
29
|
+
//# sourceMappingURL=unstable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unstable.d.ts","sourceRoot":"","sources":["../src/unstable.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC"}
|
package/dist/unstable.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// `@motionscript/math/kit`: everything the package holds, for a copied node and code built on its internals.
|
|
2
|
+
// Any release may change it; the root barrel is what stays.
|
|
3
|
+
export * from './tex/node.js';
|
|
4
|
+
export * from './tex/matrix.js';
|
|
5
|
+
export * from './systems/number-line.js';
|
|
6
|
+
export * from './systems/axes2d.js';
|
|
7
|
+
export * from './systems/number-plane.js';
|
|
8
|
+
export * from './plots/function-plot.js';
|
|
9
|
+
export * from './plots/points-plot.js';
|
|
10
|
+
export * from './marks/plot-point.js';
|
|
11
|
+
export * from './marks/vector-arrow.js';
|
|
12
|
+
export * from './marks/curve-area.js';
|
|
13
|
+
export * from './marks/riemann-sum.js';
|
|
14
|
+
export * from './marks/tangent-line.js';
|
|
15
|
+
export * from './marks/drop-lines.js';
|
|
16
|
+
export * from './annotate/curly-brace.js';
|
|
17
|
+
export * from './annotate/angle-mark.js';
|
|
18
|
+
export * from './annotate/emphasis-mark.js';
|
|
19
|
+
export * from './three/axes3d.js';
|
|
20
|
+
export * from './three/surface-plot3d.js';
|
|
21
|
+
export * from './three/curve-plot3d.js';
|
|
22
|
+
export * from './three/plot-point3d.js';
|
|
23
|
+
export * from './three/vector-arrow3d.js';
|
|
24
|
+
export * from './systems/polar-plane.js';
|
|
25
|
+
export * from './plots/vector-field.js';
|
|
26
|
+
export * from './plots/stream-lines.js';
|
|
27
|
+
export * from './plots/traced-path.js';
|
|
28
|
+
export * from './structures/network-graph.js';
|
|
29
|
+
export * from './structures/sample-space.js';
|
|
30
|
+
export * from './engine.js';
|
|
31
|
+
//# sourceMappingURL=unstable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unstable.js","sourceRoot":"","sources":["../src/unstable.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,4DAA4D;AAC5D,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC","sourcesContent":["// `@motionscript/math/kit`: everything the package holds, for a copied node and code built on its internals.\n// Any release may change it; the root barrel is what stays.\nexport * from './tex/node';\nexport * from './tex/matrix';\nexport * from './systems/number-line';\nexport * from './systems/axes2d';\nexport * from './systems/number-plane';\nexport * from './plots/function-plot';\nexport * from './plots/points-plot';\nexport * from './marks/plot-point';\nexport * from './marks/vector-arrow';\nexport * from './marks/curve-area';\nexport * from './marks/riemann-sum';\nexport * from './marks/tangent-line';\nexport * from './marks/drop-lines';\nexport * from './annotate/curly-brace';\nexport * from './annotate/angle-mark';\nexport * from './annotate/emphasis-mark';\nexport * from './three/axes3d';\nexport * from './three/surface-plot3d';\nexport * from './three/curve-plot3d';\nexport * from './three/plot-point3d';\nexport * from './three/vector-arrow3d';\nexport * from './systems/polar-plane';\nexport * from './plots/vector-field';\nexport * from './plots/stream-lines';\nexport * from './plots/traced-path';\nexport * from './structures/network-graph';\nexport * from './structures/sample-space';\nexport * from './engine';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motionscript/math",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Math for Motion Script: coordinate systems, function and vector-field plots, 3D graphs and surfaces, network graphs, and LaTeX formulas typeset to glyph paths that morph token by token.",
|
|
6
6
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"default": "./dist/index.js"
|
|
34
34
|
},
|
|
35
35
|
"./kit": {
|
|
36
|
-
"types": "./dist/
|
|
37
|
-
"default": "./dist/
|
|
36
|
+
"types": "./dist/unstable.d.ts",
|
|
37
|
+
"default": "./dist/unstable.js"
|
|
38
38
|
},
|
|
39
39
|
"./tex": {
|
|
40
40
|
"types": "./dist/tex/index.d.ts",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"license": "Apache-2.0",
|
|
55
55
|
"author": "Motionscript",
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@motionscript/sdk": "^0.
|
|
57
|
+
"@motionscript/sdk": "^0.3.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@mathjax/mathjax-newcm-font": "^4.1.1",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"typescript": "^6.0.3",
|
|
70
70
|
"typescript-eslint": "^8.48.0",
|
|
71
71
|
"vitest": "^4.1.5",
|
|
72
|
-
"@motionscript/core": "0.
|
|
73
|
-
"@motionscript/sdk": "0.
|
|
72
|
+
"@motionscript/core": "0.3.0",
|
|
73
|
+
"@motionscript/sdk": "0.3.0"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json --resolve-full-paths && node ../../../scripts/build-browser.mjs",
|
package/registry.json
CHANGED
package/src/engine.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The math **kit**: what the nodes share, and what a copied one does not copy.
|
|
3
3
|
*
|
|
4
4
|
* A copy takes a node's own files into a project and rewrites its reach for
|
|
5
|
-
* these to `@motionscript/math`, so MathJax, the morph and every shared module
|
|
5
|
+
* these to `@motionscript/math/kit`, so MathJax, the morph and every shared module
|
|
6
6
|
* stay a real dependency with one identity.
|
|
7
7
|
*/
|
|
8
8
|
export {
|
package/src/index.ts
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
1
|
+
// The public surface, named one by one; everything else is `./kit` (`unstable.ts`).
|
|
2
|
+
export { Latex } from './tex/node';
|
|
3
|
+
export { LatexMatrix } from './tex/matrix';
|
|
4
|
+
export { loadMathJax } from './tex/geometry';
|
|
5
|
+
export { NumberLine } from './systems/number-line';
|
|
6
|
+
export { Axes2d } from './systems/axes2d';
|
|
7
|
+
export { NumberPlane } from './systems/number-plane';
|
|
8
|
+
export { PolarPlane } from './systems/polar-plane';
|
|
9
|
+
export { FunctionPlot } from './plots/function-plot';
|
|
10
|
+
export { PointsPlot } from './plots/points-plot';
|
|
11
|
+
export { VectorField } from './plots/vector-field';
|
|
12
|
+
export { StreamLines } from './plots/stream-lines';
|
|
13
|
+
export { TracedPath } from './plots/traced-path';
|
|
14
|
+
export { PlotPoint } from './marks/plot-point';
|
|
15
|
+
export { VectorArrow } from './marks/vector-arrow';
|
|
16
|
+
export { CurveArea } from './marks/curve-area';
|
|
17
|
+
export { RiemannSum } from './marks/riemann-sum';
|
|
18
|
+
export { TangentLine } from './marks/tangent-line';
|
|
19
|
+
export { DropLines } from './marks/drop-lines';
|
|
20
|
+
export { CurlyBrace } from './annotate/curly-brace';
|
|
21
|
+
export { AngleMark } from './annotate/angle-mark';
|
|
22
|
+
export { EmphasisMark } from './annotate/emphasis-mark';
|
|
23
|
+
export { Axes3d } from './three/axes3d';
|
|
24
|
+
export { SurfacePlot3d } from './three/surface-plot3d';
|
|
25
|
+
export { CurvePlot3d } from './three/curve-plot3d';
|
|
26
|
+
export { PlotPoint3d } from './three/plot-point3d';
|
|
27
|
+
export { VectorArrow3d } from './three/vector-arrow3d';
|
|
28
|
+
export { NetworkGraph } from './structures/network-graph';
|
|
29
|
+
export { SampleSpace } from './structures/sample-space';
|
|
29
30
|
export { NODES } from "./nodes";
|
package/src/unstable.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// `@motionscript/math/kit`: everything the package holds, for a copied node and code built on its internals.
|
|
2
|
+
// Any release may change it; the root barrel is what stays.
|
|
3
|
+
export * from './tex/node';
|
|
4
|
+
export * from './tex/matrix';
|
|
5
|
+
export * from './systems/number-line';
|
|
6
|
+
export * from './systems/axes2d';
|
|
7
|
+
export * from './systems/number-plane';
|
|
8
|
+
export * from './plots/function-plot';
|
|
9
|
+
export * from './plots/points-plot';
|
|
10
|
+
export * from './marks/plot-point';
|
|
11
|
+
export * from './marks/vector-arrow';
|
|
12
|
+
export * from './marks/curve-area';
|
|
13
|
+
export * from './marks/riemann-sum';
|
|
14
|
+
export * from './marks/tangent-line';
|
|
15
|
+
export * from './marks/drop-lines';
|
|
16
|
+
export * from './annotate/curly-brace';
|
|
17
|
+
export * from './annotate/angle-mark';
|
|
18
|
+
export * from './annotate/emphasis-mark';
|
|
19
|
+
export * from './three/axes3d';
|
|
20
|
+
export * from './three/surface-plot3d';
|
|
21
|
+
export * from './three/curve-plot3d';
|
|
22
|
+
export * from './three/plot-point3d';
|
|
23
|
+
export * from './three/vector-arrow3d';
|
|
24
|
+
export * from './systems/polar-plane';
|
|
25
|
+
export * from './plots/vector-field';
|
|
26
|
+
export * from './plots/stream-lines';
|
|
27
|
+
export * from './plots/traced-path';
|
|
28
|
+
export * from './structures/network-graph';
|
|
29
|
+
export * from './structures/sample-space';
|
|
30
|
+
export * from './engine';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{J as Yt,L as Dt,M as vt,O as Yn,a as T,b as Xn,c as X,d as lt,e as pt,h as Ct,j as Rt,n as F,o as L,p as mt,q as N,r as Xt}from"./chunk-T42HWKBC.js";import{Graphics2D as er,insetsOps as or,Paint as Me,provides as Ee}from"@motionscript/sdk";import{createContext as Gn,Types as Qt}from"@motionscript/sdk";import{lerpNumber as Vr}from"@motionscript/sdk";function xt(t,n="linear"){let[r,e]=t??[0,1];return(!Number.isFinite(r)||!Number.isFinite(e))&&([r,e]=[0,1]),r>e&&([r,e]=[e,r]),n==="log"&&(e>0||(e=10),r>0||(r=e/1e3)),e>r?[r,e]:[r,r+1]}function qt(t,n,r,e="linear"){let[o,i]=t;if(e==="log"){let a=Math.log10(o),f=(r-n)/(Math.log10(i)-a);return{to:u=>n+(Math.log10(u)-a)*f,from:u=>10**(a+(u-n)/f)}}let s=(r-n)/(i-o);return{to:a=>n+(a-o)*s,from:a=>o+(a-n)/s}}function zt({xRange:t,yRange:n,area:r,xScaling:e="linear",yScaling:o="linear"}){let i=qt(t,r.minX,r.maxX,e),s=qt(n,r.minY,r.maxY,o);return{toPoint:(a,f,u={x:0,y:0})=>(u.x=i.to(a),u.y=s.to(f),u),toCoords:(a,f,u={x:0,y:0})=>(u.x=i.from(a),u.y=s.from(f),u),area:r,xRange:t,yRange:n,revision:[t,n,r.minX,r.minY,r.maxX,r.maxY,e,o].join("|")}}var $r={minX:-1/0,minY:-1/0,maxX:1/0,maxY:1/0},U={toPoint:(t,n,r={x:0,y:0})=>(r.x=t,r.y=n,r),toCoords:(t,n,r={x:0,y:0})=>(r.x=t,r.y=n,r),area:$r,xRange:[-1/0,1/0],yRange:[-1/0,1/0],revision:"pixels"},zn=[1,0,0,1];function Hr(t,n=zn){let r=Array.isArray(t)?t.flat():[];return r.length!==4||r.some(e=>typeof e!="number"||!Number.isFinite(e))?n:[r[0],r[1],r[2],r[3]]}function Gr(t,n,r){return[0,1,2,3].map(e=>Vr(t[e],n[e],r))}function Wr([t,n,r,e]){return t===1&&n===0&&r===0&&e===1}var Qr=4;function Dn([t,n]){let r=(t+n)/2,e=(n-t)/2*Qr;return[r-e,r+e]}function Jr(t,n){let[r,e,o,i]=n,s=r*i-e*o,a=Math.abs(s)<1e-9,f=(d,y,h)=>(a?(h.x=d,h.y=y):(h.x=(i*d-e*y)/s,h.y=(r*y-o*d)/s),h),u=Dn(t.xRange),c=Dn(t.yRange),l=u,p=c;if(!a){let d={x:0,y:0},y=1/0,h=1/0,E=-1/0,x=-1/0;for(let g of t.xRange)for(let m of t.yRange)f(g,m,d),y=Math.min(y,d.x),E=Math.max(E,d.x),h=Math.min(h,d.y),x=Math.max(x,d.y);l=[Math.max(y,u[0]),Math.min(E,u[1])],p=[Math.max(h,c[0]),Math.min(x,c[1])]}return{toPoint:(d,y,h={x:0,y:0})=>t.toPoint(r*d+e*y,o*d+i*y,h),toCoords:(d,y,h={x:0,y:0})=>(t.toCoords(d,y,h),f(h.x,h.y,h)),area:t.area,xRange:l,yRange:p,revision:`${t.revision}|m${n.join(",")}`,spills:!0}}function Kr(t,n,r){let e=(f,u,c)=>(n(f,u,c)||(c.x=f,c.y=u),c),o={x:0,y:0},i={x:0,y:0},s={x:0,y:0},a=1e-4;return{toPoint:(f,u,c={x:0,y:0})=>(e(f,u,c),t.toPoint(c.x,c.y,c)),toCoords:(f,u,c={x:0,y:0})=>{let l=t.toCoords(f,u),p=l.x,d=l.y;for(let y=0;y<8;y++){e(p,d,o);let h=o.x-l.x,E=o.y-l.y;if(Math.abs(h)+Math.abs(E)<1e-9)break;e(p+a,d,i),e(p,d+a,s);let x=(i.x-o.x)/a,g=(i.y-o.y)/a,m=(s.x-o.x)/a,M=(s.y-o.y)/a,S=x*M-m*g;if(!(Math.abs(S)>1e-12))break;p-=(M*h-m*E)/S,d-=(x*E-g*h)/S}return c.x=Number.isFinite(p)?p:l.x,c.y=Number.isFinite(d)?d:l.y,c},area:t.area,xRange:vn(t.xRange),yRange:vn(t.yRange),revision:`${t.revision}|w${r}`,curved:!0,spills:!0}}var Zr=.3;function vn([t,n]){let r=(n-t)*Zr;return Number.isFinite(r)?[t-r,n+r]:[t,n]}var qn=48;function ht(t,n,r,e,o){if(!t.curved)return[t.toPoint(n,r),t.toPoint(e,o)];let i=[];for(let s=0;s<=qn;s++){let a=s/qn;i.push(t.toPoint(n+(e-n)*a,r+(o-r)*a))}return i}import{expressionOps as ee}from"@motionscript/sdk";import{expressionOps as te}from"@motionscript/sdk";var Ut={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh,cosh:Math.cosh,tanh:Math.tanh,sqrt:Math.sqrt,cbrt:Math.cbrt,abs:Math.abs,exp:Math.exp,log:Math.log,ln:Math.log,log2:Math.log2,log10:Math.log10,floor:Math.floor,ceil:Math.ceil,round:Math.round,sign:Math.sign,trunc:Math.trunc},Bt={atan2:{fn:Math.atan2,arity:[2,2]},pow:{fn:Math.pow,arity:[2,2]},mod:{fn:(t,n)=>t%n,arity:[2,2]},hypot:{fn:Math.hypot,arity:[1,1/0]},min:{fn:Math.min,arity:[1,1/0]},max:{fn:Math.max,arity:[1,1/0]}},jt={pi:Math.PI,PI:Math.PI,e:Math.E,E:Math.E,tau:Math.PI*2,phi:(1+Math.sqrt(5))/2},Q={functions:{...Object.fromEntries(Object.keys(Ut).map(t=>[t,{arity:[1,1]}])),...Object.fromEntries(Object.entries(Bt).map(([t,{arity:n}])=>[t,{arity:n}]))},constants:jt,refs:"bare",unknownName:t=>`Unknown name '${t}'`};function ne(t){return{variables:t,functions:[...Object.keys(Ut),...Object.keys(Bt)].sort(),constants:Object.keys(jt).filter(n=>n===n.toLowerCase())}}function Un(t,n,r=[]){for(let e of[...n,...r])if(Object.hasOwn(jt,e))throw new Error(`'${e}' is a constant, so it cannot be a variable`);return W(te.parse(t,Q).root,n,r)}function W(t,n,r){switch(t.kind){case"const":{let{value:e}=t;return()=>e}case"ref":{let{name:e}=t,o=n.indexOf(e);if(o===0)return i=>i;if(o===1)return(i,s)=>s;if(r.includes(e))return(i,s,a)=>a?.[e]??NaN;throw new Error(Q.unknownName(e))}case"unary":{let e=W(t.operand,n,r);return(o,i,s)=>-e(o,i,s)}case"binary":{let e=W(t.left,n,r),o=W(t.right,n,r);switch(t.op){case"+":return(i,s,a)=>e(i,s,a)+o(i,s,a);case"-":return(i,s,a)=>e(i,s,a)-o(i,s,a);case"*":return(i,s,a)=>e(i,s,a)*o(i,s,a);case"/":return(i,s,a)=>e(i,s,a)/o(i,s,a);case"%":return(i,s,a)=>e(i,s,a)%o(i,s,a);case"^":return(i,s,a)=>Math.pow(e(i,s,a),o(i,s,a))}break}case"call":{let e=t.args.map(s=>W(s,n,r)),o=Ut[t.name];if(o){let[s]=e;return(a,f,u)=>o(s(a,f,u))}let{fn:i}=Bt[t.name];if(e.length===2){let[s,a]=e;return(f,u,c)=>i(s(f,u,c),a(f,u,c))}return(s,a,f)=>i(...e.map(u=>u(s,a,f)))}}throw new Error("Unsupported expression")}var re=T(256);function Bn(t,n,r=[]){return Xn(re,`${n.join(",")}|${r.join(",")}|${t}`,()=>Un(t,n,r))}function Y(t){return(n,r)=>{let e=Bn(n.trim(),r,t);if(e instanceof Error)throw e;return e}}var dt={function:["x"],polar:["theta"],parametric:["t"],implicit:["x","y"]},B=X(256,ie);function Vt(t){if(t.trim()==="")return null;let n=B(t,P(t));return n instanceof Error?n.message:null}var oe=new Set(["r",...Object.values(dt).flat()]),jn=T(256);function j(t){let n=jn.get(t);if(n!==void 0)return n;let r=new Set,e=t.trim();try{for(let i of D(e)??K(e,"="))J(ee.parse(i.trim(),Q).root,r)}catch{r.clear()}let o=[...r];return jn.set(t,o),o}function P(t){return j(t).filter(n=>!oe.has(n))}function J(t,n){switch(t.kind){case"ref":n.add(t.name);return;case"unary":J(t.operand,n);return;case"binary":J(t.left,n),J(t.right,n);return;case"call":for(let r of t.args)J(r,n);return;default:}}function ie(t,n){let r=Y(n),e=D(t);if(e?.length===2)return{kind:"parametric",x:r(e[0],["t"]),y:r(e[1],["t"])};let o=K(t,"=");if(o.length>2)throw new Error("An equation has one '='");if(o.length===1)return{kind:"function",of:"x",f:r(t,["x"])};let[i,s]=o,a=i.trim(),f=()=>{let u=r(i,["x","y"]),c=r(s,["x","y"]);return{kind:"implicit",f:(l,p,d)=>u(l,p,d)-c(l,p,d)}};if(a==="r")return{kind:"polar",f:r(s,["theta"])};if(a==="y"||a==="x"){let u=a==="y"?"x":"y";try{return{kind:"function",of:u,f:r(s,[u])}}catch(c){try{return f()}catch{throw c}}}return f()}function D(t){if(!t.startsWith("(")||!t.endsWith(")"))return null;let n=0;for(let e=0;e<t.length-1;e++)if(t[e]==="(")n++;else if(t[e]===")"&&--n===0)return null;let r=K(t.slice(1,-1),",");return r.length>=2?r:null}function K(t,n){let r=[],e=0,o=0;for(let i=0;i<t.length;i++){let s=t[i];s==="("?e++:s===")"?e--:s===n&&e===0&&(r.push(t.slice(o,i)),o=i+1)}return r.push(t.slice(o)),r}function Z(t){return typeof t=="string"?{source:t}:t??{source:""}}function tt(t,n,r){return r<=0||t.source===n.source?r<=0?t:n:r>=1?n:{source:n.source,blend:{from:t.source,t:r}}}function nt(t,n,r){return!t||!n?r<1?t:n:[t[0]+(n[0]-t[0])*r,t[1]+(n[1]-t[1])*r]}var $t=1;function rt(t,n,r){let e={...t};for(let[o,i]of Object.entries(n)){let s=t[o]??$t;e[o]=s+(i-s)*r}return e}function _(t,n){let r=null;for(let e of t)typeof n[e]!="number"&&((r??={...n})[e]=$t);return r??n}function se(t){let n=2166136261;for(let r=0;r<t.length;r++)n^=t.charCodeAt(r),n=Math.imul(n,16777619);return n>>>0}var yt=["functionPlot","tracedPath"];function ae(t,n){let{source:r,blend:e}=t.expression,o=t.graph?t:ce,i=Vn(r,t.params,n-o.x)+o.y;if(!e)return i;let s=Vn(e.from,t.params,n-o.x)+o.y;return s+(i-s)*e.t}function Ht(t){return typeof t=="object"&&t!==null&&yt.includes(t.key??"")}var ce={x:0,y:0};function Vn(t,n,r){let e=B(t,P(t));return e instanceof Error||e.kind!=="function"||e.of!=="x"?NaN:e.f(r,0,_(P(t),n))}var v=Gn(null,"mathSystem"),gt=Gn(null,"mathPlot"),Jt=Qt.custom(null,{private:!0,inherit:t=>t(v)}),Kt=Qt.custom(null,{private:!0,inherit:t=>t(gt)??t(v)}),ue=Qt.custom("",{kind:"nodeRef",nodeTypes:["functionPlot"],animatable:!1}),Wn=new Map,Gt=class{map=U;curves=Wn;enclosing=null},Wt=class{parent;enclosing;constructor(n,r){this.parent=n,this.enclosing=r}get map(){return this.parent?.map??U}get curves(){return this.parent?.curves??Wn}},$n=new WeakMap,Hn=new WeakMap;function Mt(t){let n=$n.get(t);return n||$n.set(t,n=new Gt),n}function Zt(t,n,r){t.map=n;let e=new Map;Qn(r,e),t.curves=e}function Et(t,n){let r=Hn.get(t);return(!r||r.parent!==n)&&Hn.set(t,r=new Wt(n,t)),r}function fe(t,n,r=!0){if(!t)return Ht(n)?n.state:null;let e=St(n);return(e===""?void 0:t.curves.get(e))??(r?t.enclosing:null)}function St(t){return typeof t=="string"?t:typeof t=="object"&&t!==null&&typeof t.id=="string"?t.id:""}function Qn(t,n){for(let r of t)r.id!==""&&yt.includes(r.key)&&n.set(r.id,r.state),Qn(r.children,n)}function et(t,n=!1){let r=[];for(let e of t)if(!(e.length<2)){r.push({type:"M",x:e[0].x,y:e[0].y});for(let o=1;o<e.length;o++)r.push({type:"L",x:e[o].x,y:e[o].y});n&&r.push({type:"Z"})}return r}function b(t){let n=1/0,r=1/0,e=-1/0,o=-1/0;for(let i of t)if(!(i.length<2))for(let s of i)s.x<n&&(n=s.x),s.x>e&&(e=s.x),s.y<r&&(r=s.y),s.y>o&&(o=s.y);return n<=e?{minX:n,minY:r,maxX:e,maxY:o}:null}function le(t,n){return{minX:t.minX-n,minY:t.minY-n,maxX:t.maxX+n,maxY:t.maxY+n}}function tn(t){return t*Math.PI/180}function q(t,n,r){return t<n?n:t>r?r:t}function pe(t){let n={};if(!t)return n;for(let r of Object.keys(t))t[r]!==void 0&&(n[r]=t[r]);return n}import{Graphics2D as me}from"@motionscript/sdk";var Jn={x:0,y:0},Kn=[];function nn(t,n){return Kn.push({is:r=>t.is(r),trace:n}),t}function rn(t,n,r){let e=Kn.find(i=>i.is(t));if(!e)return;let o=t.state;return e.trace(o,{map:n,shift:{x:o.x,y:o.y},plane:r})}function V(t){let n=t.graph;return n?{map:n.map,shift:{x:t.x,y:t.y},plane:n}:{map:U,shift:Jn,plane:null}}function en(t){let n=b(t);return n?{width:n.maxX-n.minX,height:n.maxY-n.minY}:{width:0,height:0}}function $(t){let n=b(t);return n?{x:(n.minX+n.maxX)/2,y:(n.minY+n.maxY)/2}:Jn}function xe(t,n,r){let e=t.map.toPoint(r.x+t.shift.x,r.y+t.shift.y),o=$(n);return{x:e.x-o.x,y:e.y-o.y}}function he(t,n,r){let e=$(n),o=t.map.toCoords(r.x+e.x,r.y+e.y);return{x:o.x-t.shift.x,y:o.y-t.shift.y}}var on=[];function Zn(t,n,r=!1){let e=b(t),o=et(t,r);if(!e||o.length===0)return null;let i=[e.minX,e.minY,e.maxX,e.maxY];return()=>new me().path({data:o,centerBounds:i,start:n.start??0,end:n.end??1})}function ot(t,n,r,e={}){let o=Zn(r,n,e.closed),i=n.fill??on;Xt(t,()=>{o&&e.fills!==!1&&t.draw(o().shadow(n.shadow).fill(i));let s=e.ink?b(r):null;s&&e.ink?e.ink(t,s):o&&tr(t,o,n)})}function tr(t,n,r){let e=r.stroke??on;e.length!==0&&t.draw(nr(r)?n().shadow(r.shadow).stroke(e):n().stroke(e))}function nr(t){return t.shadow.length===0?!1:!(t.fill??on).some(n=>(n.opacity??1)>0)}var rr=[];function de(t,n){return rr.push({is:r=>t.is(r),anchor:n}),t}function it(t,n,r,e,o){return t.map(i=>{let s=rn(i,n,o);if(s){let c=b(s),l=c?(c.minX+c.maxX)/2:r.x,p=c?(c.minY+c.maxY)/2:r.y;return{x:l-r.x,y:p-r.y,width:c?c.maxX-c.minX:0,height:c?c.maxY-c.minY:0,plane:ge(n,l,p)}}let a=i.measure({width:e.width,height:e.height}),f=rr.find(c=>c.is(i)),u=f?f.anchor(i.state,o):null;return{x:-r.x,y:-r.y,width:a.width,height:a.height,plane:ye(n,u)}})}function st(t,n){return{toOffset:(r,e)=>{let o=t.toPoint(r,e);return{x:o.x-n.x,y:o.y-n.y}},toCoords:(r,e)=>t.toCoords(r+n.x,e+n.y)}}function ye(t,n){let r={x:0,y:0};return{toOffset:(e,o)=>{let i=n?.(e,o);return i?t.toPoint(i.x,i.y,r):t.toPoint(e,o,r)},toCoords:(e,o)=>t.toCoords(e,o)}}function ge(t,n,r){let e={x:0,y:0};return{toOffset:()=>e,toCoords:(o,i)=>t.toCoords(n+o,r+i)}}var ir={x:0,y:0};function sr(t,n){let r=or.insetBounds(t.width,t.height,n);return{minX:r.x-r.width/2,maxX:r.x+r.width/2,minY:-r.y-r.height/2,maxY:-r.y+r.height/2}}function at(t,n,r){return r(sr(t,n.padding),n)}function sn(t){let{left:n,right:r,top:e,bottom:o}=t.padding;return{width:n+r,height:e+o}}function an(t){return[Ee(v,Mt(t))]}function cn(t,n,r,e){let o=at(t,n,e),i=Mt(n);Zt(i,o,r);let s=or.insetBounds(t.width,t.height,n.padding);return it(r,o,ir,s,i)}function un(t,n,r){return st(at(t,n,r),ir)}function fn(t,n,r,e){let{width:o,height:i}=t.size,{minX:s,minY:a,maxX:f,maxY:u}=r.area,c=new er().rect({x:(s+f)/2,y:(a+u)/2,width:f-s,height:u-a});t.inFront(()=>{t.draw(new er().rect({x:0,y:0,width:o,height:i}).shadow(n.shadow).fill(n.fill));let l=e(r);r.spills?t.clip(c,()=>t.draw(l)):t.draw(l)}),Me.draw(t,n,null,{clipShape:c})}import{component2d as _e,Graphics2D as mr,Types as k}from"@motionscript/sdk";import{niceStep as Se}from"@motionscript/sdk/component";var cr=200,Ae=64;function At(t,n,r,e="linear"){let[o,i]=t;if(e==="log")return we(o,i);let s=i-o;if(!(s>0))return{values:[],step:1};let a=n>0?n:Se(Ae/Math.max(1,r)*s);return{values:Oe(o,i,a),step:a}}function we(t,n){let r=[];for(let e=Math.ceil(Math.log10(t)-1e-9);e<=Math.floor(Math.log10(n)+1e-9)&&r.length<cr;e++)r.push(10**e);return{values:r,step:0}}function Oe(t,n,r){let e=Math.ceil(t/r-1e-9),i=Math.floor(n/r+1e-9)-e+1;if(!Number.isFinite(i)||i<=0||i>cr)return[];let s=new Array(i);for(let a=0;a<i;a++)s[a]=(e+a)*r;return s}function ln(t){return Math.floor(Math.log10(t)+1e-12)}function wt(t,n){if(t===0)return"0";if(!Number.isFinite(t))return"";if(!(n>0)){let s=ln(Math.abs(t));return s>=6||s<=-5?ar(t.toExponential(0)):String(Number(t.toPrecision(12)))}let r=ln(Math.abs(t)),e=Math.max(1,r-ln(n)+1);if((r>=6||r<=-5)&&e<=6)return ar(t.toExponential(e-1));let o=Te(n),i=t.toFixed(o);return o>0?i.replace(/\.?0+$/,""):i}function Te(t){for(let n=0;n<12;n++){let r=t*10**n;if(Math.abs(r-Math.round(r))<1e-9*Math.max(1,r))return n}return 12}function ar(t){let[n,r]=t.split("e");return`${n.replace(/\.?0+$/,"")}e${Number(r)}`}import{Fills as Pe,Graphics2D as fr,lerpNumber as ur,toPathString as ke,Types as Ne}from"@motionscript/sdk";var Ot="#9ca3af",pn="#58a6ff";function mn(t){return t.map(n=>({...n,startCap:void 0,endCap:void 0}))}var Ie=8,xn=/^\$([\s\S]+)\$$/;function Fe(t,n){n.some(r=>xn.test(r.trim()))&&t.loader(lt,pt,{gate:"layout"})}function hn(t,n){n.some(r=>xn.test(r.trim()))&&t.task(lt,pt,{before:"layout"})}function dn(t,n){let r=[],e=Pe.color(n.color),o=new fr,i=n.fontSize*Ie,s=!1;for(let a of t){let f=xn.exec(a.text.trim()),u=f?Le(f[1],a,n.fontSize):null;if(u){for(let p of u)r.push(p.fill(e));continue}let{at:c,align:l}=a;s=!0,o.text({text:a.text,fontSize:n.fontSize,...n.fontFamily===""?{}:{fontFamily:n.fontFamily},wrap:!1,width:i,textAlign:l,x:l==="center"?c.x:l==="right"?c.x-i/2:c.x+i/2,y:c.y})}return s&&r.push(o.fill(e)),r}function Le(t,{at:n,align:r},e){let o;try{o=Rt(t,e)}catch(l){return l instanceof Ct?[]:null}let[i,s,a,f]=o.bounds,u=n.x+(r==="left"?o.width/2:r==="right"?-o.width/2:0),c=[i-u,s+n.y,a-u,f+n.y];return o.tokens.map(l=>new fr().path({data:ke(l.path),centerBounds:c}))}function yn(t,n,r){return t>=n-1e-9&&t<=r+1e-9}function gn(t,n,r){let e=r.x-n.x,o=r.y-n.y,i=e*e+o*o;return i===0?0:((t.x-n.x)*e+(t.y-n.y)*o)/i}function lr(t,n,r){return[ur(t[0],n[0],r),ur(t[1],n[1],r)]}function Tt(t){return Ne.custom(t,{resolve:pr,lerp:lr})}function pr(t,n){let[r,e]=Array.isArray(t)?t:n??[0,1];return[Number(r),Number(e)]}var xr={...F,xRange:Tt([-5,5]),yRange:Tt([-3,3]),xStep:k.number(0,{min:0}),yStep:k.number(0,{min:0}),xScaling:mt(["linear","log"],"linear",{animatable:!1}),yScaling:mt(["linear","log"],"linear",{animatable:!1}),squareUnits:k.boolean(!1,{animatable:!1}),ticks:k.boolean(!0,{animatable:!1}),tickSize:k.number(10,{min:0,unit:"px"}),labels:k.boolean(!0,{animatable:!1}),labelSize:k.number(18,{min:1,unit:"px"}),labelColor:k.color(Ot),fontFamily:k.text("",{animatable:!1}),xLabel:k.text("",{animatable:!1}),yLabel:k.text("",{animatable:!1})},hr={...L,rangeTo:{args:["xRange","yRange"]}};function dr(t,n){n.fontFamily!==""&&t.font(n.fontFamily),hn(t,[n.xLabel,n.yLabel])}function Pt(t,n){let r=xt(n.xRange,n.xScaling),e=xt(n.yRange,n.yScaling),o=t.maxX-t.minX;if(n.squareUnits&&n.xScaling==="linear"&&n.yScaling==="linear"&&o>0){let i=(r[1]-r[0])*(t.maxY-t.minY)/o,s=(e[0]+e[1])/2;i>0&&(e=[s-i/2,s+i/2])}return zt({xRange:r,yRange:e,area:t,xScaling:n.xScaling,yScaling:n.yScaling})}function yr(t,n){let[r,e]=t.xRange,[o,i]=t.yRange,s=n.xScaling==="log"?r:q(0,r,e),a=n.yScaling==="log"?o:q(0,o,i),f=t.toPoint(r,a),u=t.toPoint(e,a),c=t.toPoint(s,o),l=t.toPoint(s,i);return[{from:f,to:u,line:ht(t,r,a,e,a),marks:At(t.xRange,n.xStep,Math.hypot(u.x-f.x,u.y-f.y),n.xScaling),crossing:s,at:p=>t.toPoint(p,a)},{from:c,to:l,line:ht(t,s,o,s,i),marks:At(t.yRange,n.yStep,Math.hypot(l.x-c.x,l.y-c.y),n.yScaling),crossing:a,at:p=>t.toPoint(s,p)}]}function gr(t,n,r=()=>[]){let e=n.stroke,{start:o,end:i}=n,[s,a]=yr(t,n),f=[...r(s,a)];if(e.length===0&&!n.labels)return f;e.length>0&&f.push(new mr().line({points:s.line,radius:0,start:o,end:i}).line({points:a.line,radius:0,start:o,end:i}).stroke(e));let u=n.tickSize/2,c=u+n.labelSize*.35,l=new mr,p=[],d=!1,y=(h,E)=>{for(let x of h.marks.values){if(Math.abs(x-h.crossing)<1e-9*Math.max(1,Math.abs(x)))continue;let g=h.at(x);yn(gn(g,h.from,h.to),o,i)&&(n.ticks&&u>0&&(l.line({points:E?[{x:g.x,y:g.y-u},{x:g.x,y:g.y+u}]:[{x:g.x-u,y:g.y},{x:g.x+u,y:g.y}],radius:0}),d=!0),n.labels&&p.push(E?{text:wt(x,h.marks.step),at:{x:g.x,y:g.y-c-n.labelSize/2},align:"center"}:{text:wt(x,h.marks.step),at:{x:g.x-c,y:g.y},align:"right"}))}};return y(s,!0),y(a,!1),d&&e.length>0&&f.push(l.stroke(mn(e))),n.xLabel!==""&&i>=1&&p.push({text:n.xLabel,at:{x:s.to.x,y:s.to.y+c+n.labelSize/2},align:"right"}),n.yLabel!==""&&i>=1&&p.push({text:n.yLabel,at:{x:a.to.x+c,y:a.to.y-n.labelSize/2},align:"left"}),f.push(...dn(p,{fontSize:n.labelSize,fontFamily:n.fontFamily,color:n.labelColor})),f}var be=_e({key:"axes2d",state:xr,defaults:{stroke:{weight:2,fill:Ot,align:"center",endCap:"triangle",capScale:5}},load:(t,n)=>dr(t,n),commands:hr,provide:t=>an(t),measure:(t,n)=>sn(n),layout:(t,n,r)=>cn(t,n,r,Pt),plane:(t,n)=>un(t,n,Pt),render:(t,n)=>fn(t,n,at(t.size,n,Pt),r=>gr(r,n))});var Mr=[],kt=0;function Ce(){let t=Mr[kt];return t===void 0&&(t=Mn(),Mr.push(t)),kt++,t}function Mn(){return{t:0,px:0,py:0,rx:0,ry:0,ok:!1}}var ct={x:0,y:0};function Sn(t,n,r,e,{seeds:o=256,minStep:i=0}={}){if(!(r>n)||!Number.isFinite(n)||!Number.isFinite(r))return[];let s=new En(e),a=0,f=(x,g)=>{let m=t(g,ct);a++;let M=m&&Number.isFinite(ct.x)&&Number.isFinite(ct.y);return x.t=g,x.rx=M?ct.x:0,x.ry=M?ct.y:0,x.px=Er(x.rx),x.py=Er(x.ry),x.ok=M,x},u=x=>f(Ce(),x),c=(x,g)=>{let m=x,M=g.t;for(let S=0;S<60&&!(a>=4e4||Ye(m,e));S++){let A=(m.t+M)/2;if(A===m.t||A===M)break;let w=u(A);if(!w.ok){M=A;continue}let I=Math.abs(w.px-m.px)<.25&&Math.abs(w.py-m.py)<.25;if(m=w,I)break}return m},l=(x,g,m,M)=>{if(x.ok&&m.ok){M&&Xe(x,g,m,e)?s.break():s.draw(x,m);return}if(x.ok){let S=c(x,m);S.t!==x.t&&s.draw(x,S),s.break();return}if(s.break(),m.ok){let S=c(m,x);S.t!==m.t?s.draw(S,m):s.start(m)}},p=(x,g,m)=>{if(a>=4e4||s.points>=24e3){l(x,null,g,!1);return}let M=u((x.t+g.t)/2),S=m>=12||g.t-x.t<=i;if(S||Re(x,M,g)){l(x,M,g,S);return}p(x,M,m+1),p(M,g,m+1)},d=Math.max(1,Math.round(o)),y=(r-n)/d,h=[Mn(),Mn()],E=f(h[0],n);for(let x=1;x<=d;x++){let g=f(h[x&1],x===d?r:n+x*y);kt=0,p(E,g,0),E=g}return kt=0,s.finish()}function Re(t,n,r){if(t.ok!==n.ok||n.ok!==r.ok)return!1;if(!t.ok)return!0;let e=r.px-t.px,o=r.py-t.py,i=Math.hypot(e,o)||1;if(Math.abs((n.px-t.px)*o-(n.py-t.py)*e)/i>.25)return!1;let s=Math.abs(Math.atan2(n.py-t.py,n.px-t.px)-Math.atan2(r.py-n.py,r.px-n.px));return s>Math.PI&&(s=2*Math.PI-s),s<.05}function Xe(t,n,r,e){return!(t.py>e.maxY&&r.py<e.minY||t.py<e.minY&&r.py>e.maxY||t.px>e.maxX&&r.px<e.minX||t.px<e.minX&&r.px>e.maxX)||n===null?!1:n.ok?n.ry<Math.min(t.ry,r.ry)||n.ry>Math.max(t.ry,r.ry)||n.rx<Math.min(t.rx,r.rx)||n.rx>Math.max(t.rx,r.rx):!0}function Ye(t,n){return t.py>n.maxY||t.py<n.minY||t.px>n.maxX||t.px<n.minX}function Er(t){return t>16e3?16e3:t<-16e3?-16e3:t}var En=class{clip;points=0;runs=[];open=[];cursor=null;constructor(n){this.clip=n}draw(n,r){let e=qe(n.px,n.py,r.px,r.py,this.clip);if(!e){this.break();return}let[o,i]=e;this.cursor&&De(this.cursor,o)?this.push(i):(this.break(),this.push(o),this.push(i)),this.cursor=i}start(n){this.break(),ve(n.px,n.py,this.clip)&&(this.cursor={x:n.px,y:n.py},this.push(this.cursor))}break(){this.open.length>=2&&this.runs.push(this.open),this.open=[],this.cursor=null}finish(){return this.break(),this.runs}push(n){this.open.push(n),this.points++}};function De(t,n){return Math.abs(t.x-n.x)<.1&&Math.abs(t.y-n.y)<.1}function ve(t,n,r){return t>=r.minX&&t<=r.maxX&&n>=r.minY&&n<=r.maxY}function qe(t,n,r,e,o){let i=r-t,s=e-n,a=0,f=1,u=[[-i,t-o.minX],[i,o.maxX-t],[-s,n-o.minY],[s,o.maxY-n]];for(let[c,l]of u){if(c===0){if(l<0)return null;continue}let p=l/c;if(c<0){if(p>f)return null;p>a&&(a=p)}else{if(p<a)return null;p<f&&(f=p)}}return[{x:t+a*i,y:n+a*s},{x:t+f*i,y:n+f*s}]}import{commandsFor as ze,pathOps as Ue,Types as C}from"@motionscript/sdk";function Or(t){return typeof t.partBounds=="function"||Yt(t)}function Be(t,n,r){return typeof t.partBounds=="function"?t.partBounds(n,r):Dt(t,n,r)??null}var Sr=({on:t,part:n,occurrence:r})=>({on:t,part:n,occurrence:r});function Tr(t,n,r){return r<=0||!n?r<1?t:n:{...Sr(n),from:t?Sr(t):null,t:r}}var je=C.custom("",{kind:"nodeRef",animatable:!1}),Ar=C.custom("",{kind:"nodeRef",private:!0}),Pr={...N(F,"fill"),on:je,part:C.text("",{animatable:!1}),occurrence:C.number(1,{min:1,step:1,animatable:!1}),retarget:C.custom(null,{lerp:Tr}),retargetOn:Ar,retargetFrom:Ar},Ve={...N(L,"fillTo"),...ze(Pr,{retargetTo:{args:{on:C.custom(void 0,{kind:"nodeRef"}),part:C.custom(void 0,{kind:"text"}),occurrence:C.number(1,{min:1,step:1})},run:(t,n)=>{let r=t.args,e=n.retarget??$e(n),o={on:r.on??e.on,part:r.part??(r.on?"":e.part),occurrence:r.occurrence??1,t:1},i=n.retarget;return t.animate(s=>{let a=Tr(i,o,s);return{retarget:a,retargetOn:a?.on??"",retargetFrom:a?.from?.on??""}})}}})};function $e(t){return{on:St(t.on),part:t.part,occurrence:t.occurrence}}var wr=new WeakMap;function He(t,n){if(!t)return wr.get(n)??null;let r=t.ancestor(vt)??t.ancestor(Yn),e=r&&Or(r.state)?r:null;return wr.set(n,e),e}function kr(t,n){return t.on??n}function Ge(t,n){let r=t.retarget,e=()=>An(kr(t,n),t);if(!r)return e();let o=An(r.on===""?n:t.retargetOn,r),i=r.from?An(r.from.on===""?n:t.retargetFrom,r.from):e();return!i||!o||r.t>=1?o??i:We(i,o,r.t)}function An(t,n){if(!t)return null;let r=n.part&&Or(t.state)?Be(t.state,n.part,n.occurrence||1):{x:0,y:0,width:t.size.width,height:t.size.height};if(!r)return null;let e=t.frame,o=tn(e.rotation),i=Math.cos(o),s=Math.sin(o),a=(c,l)=>({x:e.x+(i*c+s*l)*e.scale,y:e.y+(-s*c+i*l)*e.scale}),f=r.width/2,u=r.height/2;return[a(r.x-f,r.y+u),a(r.x+f,r.y+u),a(r.x+f,r.y-u),a(r.x-f,r.y-u)]}function We(t,n,r){return t.map((e,o)=>({x:e.x+(n[o].x-e.x)*r,y:e.y+(n[o].y-e.y)*r}))}function Qe(t){let n=Ue.bounds(t);return n?{x:(n.minX+n.maxX)/2,y:(n.minY+n.maxY)/2,width:n.maxX-n.minX,height:n.maxY-n.minY}:{x:0,y:0,width:0,height:0}}var Je=[-1,-1,1,1],O=(t,n,r=1)=>({x:t.x+n.x*r,y:t.y+n.y*r}),wn=(t,n,r=.5)=>({x:t.x+(n.x-t.x)*r,y:t.y+(n.y-t.y)*r});function ut(t,n){let r=n.x-t.x,e=n.y-t.y,o=Math.hypot(r,e);return{unit:o===0?{x:1,y:0}:{x:r/o,y:e/o},length:o}}function Ke(t,n){let[r,e,o,i]=t,s=ut(r,e).unit,a=ut(i,r).unit;return[O(O(r,s,-n),a,n),O(O(e,s,n),a,n),O(O(o,s,n),a,-n),O(O(i,s,-n),a,-n)]}var ft=["x","y"],Ze=new Set(ft);function H(t){return j(t).filter(n=>!Ze.has(n))}var Nt=X(128,(t,n)=>{let r=D(t);if(r?.length!==2)throw new Error("A field has two parts: (x, y)");let e=Y(n),[o,i]=r.map(s=>e(s,ft));return{x:o,y:i}});function On(t){if(t.trim()==="")return null;let n=Nt(t,H(t));return n instanceof Error?n.message:null}var z={height:["x","y"],surface:["u","v"],spaceCurve:["t"]},to=new Set(["x","y","z","u","v"]),no=new Set(["t"]);function Tn(t){return j(t).filter(n=>!to.has(n))}function Pn(t){return j(t).filter(n=>!no.has(n))}var Nr=X(128,(t,n)=>{let r=Y(n),e=D(t);if(e){if(e.length!==3)throw new Error("A parametric surface has three parts: (x, y, z)");let[i,s,a]=e.map(f=>r(f,z.surface));return{kind:"parametric",x:i,y:s,z:a}}let o=K(t,"=");if(o.length>2)throw new Error("An equation has one '='");if(o.length===2&&o[0].trim()!=="z")throw new Error("A surface is written z = \u2026, or as three parts (x, y, z)");return{kind:"height",f:r(o[o.length-1],z.height)}}),Ir=X(128,(t,n)=>{let r=Y(n),e=D(t);if(e?.length!==3)throw new Error("A space curve has three parts: (x, y, z)");let[o,i,s]=e.map(a=>r(a,z.spaceCurve));return{x:o,y:i,z:s}});function Fr(t){if(t.trim()==="")return null;let n=Nr(t,Tn(t));return n instanceof Error?n.message:null}function Lr(t){if(t.trim()==="")return null;let n=Ir(t,Pn(t));return n instanceof Error?n.message:null}var ro={equation:{error:Vt,params:P,variables:[...new Set(Object.values(dt).flat())]},surfaceEquation:{error:Fr,params:Tn,variables:[...z.height,...z.surface]},spaceCurveEquation:{error:Lr,params:Pn,variables:z.spaceCurve},fieldEquation:{error:On,params:H,variables:ft}};import{createContext as eo,Types as oo}from"@motionscript/sdk";function io(t,n,r,e){let o=kn(t,e.x),i=kn(n,e.y),s=kn(r,e.z),a=(t[0]+t[1])/2,f=(n[0]+n[1])/2,u=(r[0]+r[1])/2;return{xRange:t,yRange:n,zRange:r,revision:[t,n,r,e.x,e.y,e.z].join("|"),toLocal:(c,l,p)=>({x:(l-f)*i,y:(p-u)*s,z:(c-a)*o}),offset:(c,l,p)=>({x:l*i,y:p*s,z:c*o})}}function kn([t,n],r){let e=n-t;return e>0?r/e:0}var _r=eo(null,"math:graph3d");function so(){return oo.custom(null,{private:!0,inherit:t=>t(_r)})}function ao(t){return t.graph?.space()??null}function co(t){let n=Math.hypot(t.x,t.y,t.z);if(!(n>0))return{x:0,y:0,z:0,w:1};let r=t.x/n,e=t.y/n,o=t.z/n;if(e<-1+1e-9)return{x:1,y:0,z:0,w:0};let i=1+e,s=Math.hypot(o,r,i);return{x:o/s,y:0,z:-r/s,w:i/s}}import{Material as uo,Types as br}from"@motionscript/sdk";var fo={geometry:br.custom(void 0),...uo.state};function lo(t,n){return br.custom(null,{lerp:nt,kind:"range",defaultMin:t,defaultMax:n})}import{Fills as po,Graphics2D as mo,Mat as xo,Tex as ho}from"@motionscript/sdk";var It=64,Nn=96,Cr=T(256);function yo(t,n){let r=`${n.fontFamily}|${JSON.stringify(n.color)}|${t}`,e=Cr.get(r);if(e)return e;let o=Math.min(1024,Math.max(128,Math.ceil((t.length*It*.62+It)/32)*32)),i=new mo().text({text:t,fontSize:It,...n.fontFamily===""?{}:{fontFamily:n.fontFamily},wrap:!1,width:o,textAlign:"center"}).fill(po.color(n.color)),a={texture:{...ho.surface(i,{width:o,height:Nn}),static:!0,identity:`label3d:${r}`},width:o};return Cr.set(r,a),a}function go(t,n,r,e){if(n===""||!(e.size>0))return;let{texture:o,width:i}=yo(n,e),s=e.size*Nn/It;t.sprite({material:xo.sprite({map:o,transparent:!0,depthWrite:!1}),position:r,scale:[s*i/Nn,s,1]})}import{component2d as Mo,provides as Eo,Types as Fn}from"@motionscript/sdk";function In(t,[n,r],[e,o],i,s){if(!(r>n)||!(o>e)||i<1||s<1)return[];let a=(r-n)/i,f=(o-e)/s,u=i+1,c=new Float64Array(u*(s+1));for(let m=0;m<=s;m++)for(let M=0;M<=i;M++)c[m*u+M]=t(n+M*a,e+m*f);let l=new Map,p=u*(s+1),d=(m,M,S)=>{let A=c[M*u+m],w=S?c[(M+1)*u+m]:c[M*u+m+1];if(!Number.isFinite(A)||!Number.isFinite(w)||A<0==w<0)return null;let I=(S?p:0)+M*u+m;if(!l.has(I)){let R=A/(A-w);l.set(I,S?{x:n+m*a,y:e+(M+R)*f}:{x:n+(m+R)*a,y:e+M*f})}return I},y=new Map,h=(m,M)=>{m===null||M===null||((y.get(m)??y.set(m,[]).get(m)).push(M),(y.get(M)??y.set(M,[]).get(M)).push(m))};for(let m=0;m<s;m++)for(let M=0;M<i;M++){let S=d(M,m,!1),A=d(M,m+1,!1),w=d(M,m,!0),I=d(M+1,m,!0),R=[S,I,A,w].filter(bt=>bt!==null);if(R.length===2)h(R[0],R[1]);else if(R.length===4){let bt=t(n+(M+.5)*a,e+(m+.5)*f),jr=c[m*u+M];bt<0==jr<0?(h(S,I),h(A,w)):(h(S,w),h(A,I))}}let E=[],x=new Set,g=m=>{let M=[l.get(m)];x.add(m);let S=m;for(;;){let A=(y.get(S)??[]).find(w=>!x.has(w));if(A===void 0)break;x.add(A),M.push(l.get(A)),S=A}return M};for(let[m,M]of y)M.length===1&&!x.has(m)&&E.push(g(m));for(let m of y.keys()){if(x.has(m))continue;let M=g(m);M.push(M[0]),E.push(M)}return E.filter(m=>m.length>1)}var So=Math.PI*2,Yr={...N(F,"fill"),expression:Fn.custom("",{resolve:Z,lerp:tt,kind:"equation"}),domain:Fn.custom(null,{lerp:nt,kind:"range",defaultMin:-5,defaultMax:5}),params:Fn.custom({},{lerp:rt}),graph:Jt},Dr={...N(L,"fillTo"),morphTo:{args:["expression"]},paramsTo:{args:["params"]},domainTo:{args:["domain"]}},vr={weight:3,fill:pn,align:"center",cap:"round",join:"round"},Ao=nn(Mo({key:"functionPlot",state:Yr,defaults:{stroke:vr,width:"hug",height:"hug"},commands:Dr,provide:(t,n)=>[Eo(gt,Et(t,n(v)))],measure:(t,n)=>en(G(n,V(n),n.domain)),layout:(t,n,r)=>{let e=V(n);return it(r,e.map,$(G(n,e,n.domain)),t,Et(n,n.graph))},plane:(t,n)=>{let r=V(n);return st(r.map,$(G(n,r,n.domain)))},render:(t,n)=>ot(t,n,G(n,V(n),n.domain))}),(t,n)=>G(t,n,t.domain)),Rr=T(256);function G(t,n,r){let{map:e,shift:o}=n,{area:i}=e;if(!Number.isFinite(i.maxX-i.minX))return[];let{source:s,blend:a}=t.expression,f=[s,a?.from,a?.t,e.revision,r,JSON.stringify(t.params),o.x,o.y].join("|"),u=Rr.get(f);if(u)return u;let c,l=a&&a.t<.5?a.from:s;if(Ft(s)?.kind==="implicit"||a&&Ft(a.from)?.kind==="implicit")c=wo(l,t.params,e,o);else{let p=Xr(s,t.params,r,e,o);if(p&&a){let y=Xr(a.from,t.params,r,e,o);y&&(p=Po(y,p,a.t))}let d=i.maxX-i.minX;c=p?Sn(p,0,1,i,{seeds:Math.min(512,Math.max(64,Math.round(d/8))),minStep:.5/Math.max(1,d)}):[]}return Rr.set(f,c),c}function Ft(t){let n=B(t,P(t));return n instanceof Error?null:n}function wo(t,n,r,e){let o=Ft(t);if(o?.kind!=="implicit")return[];let i=_(P(t),n),{area:s}=r,a=c=>Math.min(To,Math.max(8,Math.round(c/Oo))),{f}=o;return In((c,l)=>f(c-e.x,l-e.y,i),r.xRange,r.yRange,a(s.maxX-s.minX),a(s.maxY-s.minY)).map(c=>c.map(l=>r.toPoint(l.x,l.y)))}function Xr(t,n,r,e,o){let i=Ft(t);if(!i||i.kind==="implicit")return null;let s=_(P(t),n);switch(i.kind){case"function":{let a=i.of==="x",[f,u]=a?e.xRange:e.yRange,c=a?o.x:o.y,l=Math.max(f-c,r?.[0]??-1/0),p=Math.min(u-c,r?.[1]??1/0);if(!(p>l))return null;let{f:d}=i;return(y,h)=>{let E=l+(p-l)*y,x=d(E,0,s);return Number.isFinite(x)?(a?e.toPoint(E+o.x,x+o.y,h):e.toPoint(x+o.x,E+o.y,h),!0):!1}}case"polar":{let[a,f]=r??[0,So],{f:u}=i;return(c,l)=>{let p=a+(f-a)*c,d=u(p,0,s);return Number.isFinite(d)?(e.toPoint(d*Math.cos(p)+o.x,d*Math.sin(p)+o.y,l),!0):!1}}case"parametric":{let[a,f]=r??[0,1],{x:u,y:c}=i;return(l,p)=>{let d=a+(f-a)*l,y=u(d,0,s),h=c(d,0,s);return!Number.isFinite(y)||!Number.isFinite(h)?!1:(e.toPoint(y+o.x,h+o.y,p),!0)}}}}var Oo=5,To=220;function Po(t,n,r){let e={x:0,y:0};return(o,i)=>!t(o,e)||!n(o,i)?!1:(i.x=e.x+(i.x-e.x)*r,i.y=e.y+(i.y-e.y)*r,!0)}import{Graphics2D as Fo,Types as Lt}from"@motionscript/sdk";import{colorOps as Ln,fillOps as _n}from"@motionscript/sdk";function ko(t){return(t??[]).map(n=>Ln.resolve(n))}function No(t,n,r){return t.length!==n.length?r<1?t:n:n.map((e,o)=>Ln.lerp(t[o],e,r))}function Io(t,n){if(t.length===1)return t[0];let r=q(n,0,1)*(t.length-1),e=Math.min(t.length-2,Math.floor(r));return Ln.lerp(t[e],t[e+1],r-e)}function bn(t){return(Array.isArray(t)?t:[]).map(n=>_n.resolve(n??[]))}function Cn(t,n,r){return t.length!==n.length?r<1?t:n:n.map((e,o)=>_n.lerp(t[o],e,r))}function Rn(t,n){if(t.length===1)return t[0];let r=q(n,0,1)*(t.length-1),e=Math.min(t.length-2,Math.floor(r));return _n.lerp(t[e],t[e+1],r-e)}var _t=12,Lo={...N(F,"fill","start","end"),expression:Lt.custom("",{resolve:Z,lerp:tt,kind:"fieldEquation"}),params:Lt.custom({},{lerp:rt}),strengthFills:Lt.custom([],{resolve:bn,lerp:Cn,kind:"vector"}),maxMagnitude:Lt.number(0,{min:0,step:.1}),graph:Kt},_o={...N(L,"fillTo","progressTo","flash"),morphTo:{args:["expression"]},paramsTo:{args:["params"]}},qr=T(64),bo={drawn:[],runs:[]};function Co(t,n,r,{map:e,shift:o}){let{area:i}=e;if(!Number.isFinite(i.maxX-i.minX))return bo;let{source:s,blend:a}=r.expression,f=[t,s,a?.from,a?.t,e.revision,JSON.stringify(r.params),o.x,o.y,n.own(r)].join("|"),u=qr.get(f);if(u)return u;let c=Xo(r,o),l=c?n.strokes(r,e,c):[],p={drawn:l,runs:l.flatMap(d=>d.runs)};return qr.set(f,p),p}function Ro(t,n,{drawn:r,runs:e}){let o=n.strengthFills,i=n.stroke,s=o.length>0&&i.length>0;ot(t,n,e,{ink:s?(a,f)=>{let u=n.maxMagnitude>0?n.maxMagnitude:r.reduce((l,p)=>Math.max(l,p.magnitude),0),c=Array.from({length:_t},()=>[]);for(let l of r){let p=u>0?Math.min(1,l.magnitude/u):0;c[Math.min(_t-1,Math.floor(p*_t))].push(...l.runs)}c.forEach((l,p)=>{if(l.length===0)return;let d=Rn(o,(p+.5)/_t);a.draw(new Fo().path({data:et(l),centerBounds:[f.minX,f.minY,f.maxX,f.maxY],start:n.start??0,end:n.end??1}).shadow(n.shadow).stroke(i.map(y=>({...y,fill:d}))))})}:void 0})}function Xo(t,n){let{source:r,blend:e}=t.expression,o=zr(r,t.params,n);if(!o||!e)return o;let i=zr(e.from,t.params,n);if(!i)return o;let s={x:0,y:0};return(a,f,u)=>!i(a,f,s)||!o(a,f,u)?!1:(u.x=s.x+(u.x-s.x)*e.t,u.y=s.y+(u.y-s.y)*e.t,!0)}function zr(t,n,r){let e=H(t),o=Nt(t,e);if(o instanceof Error)return null;let i=_(e,n),{x:s,y:a}=o;return(f,u,c)=>{let l=s(f-r.x,u-r.y,i),p=a(f-r.x,u-r.y,i);return c.x=l,c.y=p,Number.isFinite(l)&&Number.isFinite(p)}}var Yo=.5523;function Do(t,n,r,e){let{unit:o,length:i}=ut(t,n);if(i===0)return[];let s=Math.min(e/2,i/4),a=wn(t,n),f=(x,g)=>O(x,r,g*s),u=(x,g)=>O(x,o,g*s),c=Yo,l=(x,g,m)=>({type:"C",x1:x.x,y1:x.y,x2:g.x,y2:g.y,x:m.x,y:m.y}),p=f(u(t,1),1),d=f(u(a,-1),1),y=f(a,2),h=f(u(a,1),1),E=f(u(n,-1),1);return[{type:"M",x:t.x,y:t.y},l(f(t,c),f(u(t,1-c),1),p),{type:"L",x:d.x,y:d.y},l(f(u(a,-1+c),1),f(a,2-c),y),l(f(a,2-c),f(u(a,1-c),1),h),{type:"L",x:E.x,y:E.y},l(f(u(n,-1+c),1),f(n,c),n)]}var vo=["circular","spring","tree","grid"];function qo(t,n,r,e){let o=n.length;if(o===0)return new Map;if(o===1)return new Map([[n[0],{x:0,y:0}]]);switch(t){case"grid":return zo(n);case"tree":return Ur(Bo(n,r,e));case"spring":return Ur(jo(n,r));default:return Br(n)}}function Br(t){let n=t.length;return new Map(t.map((r,e)=>{let o=Math.PI/2-2*Math.PI*e/n;return[r,{x:Math.cos(o),y:Math.sin(o)}]}))}function zo(t){let n=Math.ceil(Math.sqrt(t.length)),r=Math.ceil(t.length/n),e=(o,i)=>i===1?0:-1+2*o/(i-1);return new Map(t.map((o,i)=>[o,{x:e(i%n,n),y:-e(Math.floor(i/n),r)}]))}function Uo(t,n){let r=new Map(t.map(e=>[e,[]]));for(let{from:e,to:o}of n)e===o||!r.has(e)||!r.has(o)||(r.get(e).push(o),r.get(o).push(e));return r}function Bo(t,n,r){let e=Uo(t,n),o=new Map,i=0,s=(u,c,l)=>{l.add(u);let p=e.get(u).filter(h=>!l.has(h));for(let h of p)l.add(h);if(p.length===0)return o.set(u,{x:i++,y:-c}),o.get(u).x;let d=p.map(h=>s(h,c+1,l)),y=(d[0]+d[d.length-1])/2;return o.set(u,{x:y,y:-c}),y},a=new Set,f=e.has(r)?r:t[0];for(let u of[f,...t])a.has(u)||s(u,0,a);return o}function jo(t,n){let r=t.length,e=new Map(t.map((c,l)=>[c,l])),o=Br(t),i=t.map(c=>o.get(c).x),s=t.map(c=>o.get(c).y),a=n.flatMap(({from:c,to:l})=>{let p=e.get(c),d=e.get(l);return p===void 0||d===void 0||p===d?[]:[[p,d]]}),f=Math.sqrt(4/r),u=160;for(let c=0;c<u;c++){let l=new Float64Array(r),p=new Float64Array(r);for(let y=0;y<r;y++)for(let h=y+1;h<r;h++){let E=i[y]-i[h],x=s[y]-s[h],g=Math.hypot(E,x);g<1e-6&&([E,x,g]=[.001*(y-h),.001,.001]);let m=f*f/g;l[y]+=E/g*m,p[y]+=x/g*m,l[h]-=E/g*m,p[h]-=x/g*m}for(let[y,h]of a){let E=i[y]-i[h],x=s[y]-s[h],g=Math.max(Math.hypot(E,x),1e-6),m=g*g/f;l[y]-=E/g*m,p[y]-=x/g*m,l[h]+=E/g*m,p[h]+=x/g*m}let d=.12*(1-c/u);for(let y=0;y<r;y++){let h=Math.hypot(l[y],p[y]);h>0&&(i[y]+=l[y]/h*Math.min(h,d),s[y]+=p[y]/h*Math.min(h,d))}}return new Map(t.map((c,l)=>[c,{x:i[l],y:s[l]}]))}function Ur(t){let n=1/0,r=1/0,e=-1/0,o=-1/0;for(let s of t.values())n=Math.min(n,s.x),e=Math.max(e,s.x),r=Math.min(r,s.y),o=Math.max(o,s.y);let i=(s,a,f)=>f-a<1e-9?0:-1+2*(s-a)/(f-a);return new Map([...t].map(([s,a])=>[s,{x:i(a.x,n,e),y:i(a.y,r,o)}]))}export{xt as a,qt as b,zt as c,U as d,zn as e,Hr as f,Gr as g,Wr as h,Jr as i,Kr as j,ht as k,Ot as l,pn as m,mn as n,Fe as o,hn as p,dn as q,yn as r,gn as s,lr as t,Tt as u,pr as v,Q as w,ne as x,Un as y,Bn as z,dt as A,B,Vt as C,P as D,Z as E,tt as F,nt as G,$t as H,rt as I,_ as J,se as K,yt as L,ae as M,Ht as N,v as O,gt as P,Jt as Q,Kt as R,ue as S,Mt as T,Zt as U,Et as V,fe as W,St as X,et as Y,b as Z,le as _,tn as $,q as aa,pe as ba,nn as ca,rn as da,V as ea,en as fa,$ as ga,xe as ha,he as ia,Zn as ja,ot as ka,tr as la,nr as ma,de as na,it as oa,st as pa,sr as qa,at as ra,sn as sa,an as ta,cn as ua,un as va,fn as wa,At as xa,wt as ya,xr as za,hr as Aa,dr as Ba,Pt as Ca,yr as Da,gr as Ea,be as Fa,ft as Ga,H as Ha,Nt as Ia,On as Ja,In as Ka,Sn as La,Yr as Ma,Dr as Na,vr as Oa,Ao as Pa,G as Qa,Pr as Ra,Ve as Sa,He as Ta,kr as Ua,Ge as Va,Qe as Wa,Je as Xa,O as Ya,wn as Za,ut as _a,Ke as $a,Do as ab,go as bb,io as cb,_r as db,so as eb,ao as fb,co as gb,z as hb,Tn as ib,Pn as jb,Nr as kb,Ir as lb,Fr as mb,Lr as nb,ro as ob,ko as pb,No as qb,Io as rb,bn as sb,Cn as tb,Rn as ub,fo as vb,lo as wb,Lo as xb,_o as yb,Co as zb,Ro as Ab,vo as Bb,qo as Cb};
|
|
2
|
-
//# sourceMappingURL=chunk-FZ2YBTPL.js.map
|