@mark1russell7/vex-domains 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/build/index.d.ts +283 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +815 -0
- package/build/index.js.map +1 -0
- package/package.json +45 -3
- package/src/angle.ts +73 -0
- package/src/color.ts +83 -0
- package/src/index.ts +10 -0
- package/src/ndvector.ts +199 -0
- package/src/scalars.ts +86 -0
- package/src/vec2.ts +231 -0
- package/src/wrappers.ts +68 -0
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mark Russell
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { Domain, FnOp, OpTable } from "@mark1russell7/vex";
|
|
2
|
+
//#region src/vec2.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* An immutable 2D vector. The methods live on the prototype, so a vector costs two numbers. Division is real
|
|
5
|
+
* division: a division by zero gives an infinite component, and the domain check turns it into `#NUM!`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Vec2 {
|
|
8
|
+
readonly x: number;
|
|
9
|
+
readonly y: number;
|
|
10
|
+
constructor(x: number, y: number);
|
|
11
|
+
/** This function makes a vector. */
|
|
12
|
+
static of(x: number, y: number): Vec2;
|
|
13
|
+
/** This function makes a vector with the same value in both components. */
|
|
14
|
+
static scalar(n: number): Vec2;
|
|
15
|
+
/** The zero vector. */
|
|
16
|
+
static readonly zero: Vec2;
|
|
17
|
+
/** The vector of ones. */
|
|
18
|
+
static readonly one: Vec2;
|
|
19
|
+
add(o: Vec2): Vec2;
|
|
20
|
+
subtract(o: Vec2): Vec2;
|
|
21
|
+
/** The component-wise product. */
|
|
22
|
+
multiply(o: Vec2): Vec2;
|
|
23
|
+
/** The component-wise quotient. A zero component of `o` gives an infinite component. */
|
|
24
|
+
divide(o: Vec2): Vec2;
|
|
25
|
+
/** The component-wise minimum. */
|
|
26
|
+
min(o: Vec2): Vec2;
|
|
27
|
+
/** The component-wise maximum. */
|
|
28
|
+
max(o: Vec2): Vec2;
|
|
29
|
+
scale(k: number): Vec2;
|
|
30
|
+
negate(): Vec2;
|
|
31
|
+
halve(): Vec2;
|
|
32
|
+
abs(): Vec2;
|
|
33
|
+
round(): Vec2;
|
|
34
|
+
floor(): Vec2;
|
|
35
|
+
ceil(): Vec2;
|
|
36
|
+
clamp(lo: number, hi: number): Vec2;
|
|
37
|
+
swap(): Vec2;
|
|
38
|
+
/** The vector turned by `radians`, counterclockwise. */
|
|
39
|
+
rotate(radians: number): Vec2;
|
|
40
|
+
/** The vector with length 1. The zero vector stays zero. */
|
|
41
|
+
normalize(): Vec2;
|
|
42
|
+
/** The linear interpolation from this vector to `o`. */
|
|
43
|
+
lerp(o: Vec2, t: number): Vec2;
|
|
44
|
+
length(): number;
|
|
45
|
+
lengthSq(): number;
|
|
46
|
+
distance(o: Vec2): number;
|
|
47
|
+
dot(o: Vec2): number;
|
|
48
|
+
/** The z component of the 3D cross product. */
|
|
49
|
+
cross(o: Vec2): number;
|
|
50
|
+
/** The angle of the vector, in radians, from the x axis. */
|
|
51
|
+
angle(): number;
|
|
52
|
+
/** The product of the components: the area of a size vector. */
|
|
53
|
+
area(): number;
|
|
54
|
+
/** The sum of the components. */
|
|
55
|
+
sum(): number;
|
|
56
|
+
minComponent(): number;
|
|
57
|
+
maxComponent(): number;
|
|
58
|
+
equals(o: Vec2): boolean;
|
|
59
|
+
anyNonPositive(): boolean;
|
|
60
|
+
allPositive(): boolean;
|
|
61
|
+
anyNegative(): boolean;
|
|
62
|
+
allNonNegative(): boolean;
|
|
63
|
+
anyZero(): boolean;
|
|
64
|
+
allZero(): boolean;
|
|
65
|
+
anyLessThan(n: number): boolean;
|
|
66
|
+
allLessThan(n: number): boolean;
|
|
67
|
+
anyGreaterThan(n: number): boolean;
|
|
68
|
+
allGreaterThan(n: number): boolean;
|
|
69
|
+
toJSON(): {
|
|
70
|
+
readonly x: number;
|
|
71
|
+
readonly y: number;
|
|
72
|
+
};
|
|
73
|
+
toString(): string;
|
|
74
|
+
}
|
|
75
|
+
type Vec2OpNames = "add" | "subtract" | "multiply" | "divide" | "min" | "max" | "scale" | "negate" | "halve" | "abs" | "round" | "floor" | "ceil" | "clamp" | "swap" | "rotate" | "normalize" | "lerp" | "length" | "lengthSq" | "distance" | "dot" | "cross" | "angle" | "area" | "sum" | "minComponent" | "maxComponent" | "equals" | "anyNonPositive" | "allPositive" | "anyNegative" | "allNonNegative" | "anyZero" | "allZero" | "anyLessThan" | "allLessThan" | "anyGreaterThan" | "allGreaterThan";
|
|
76
|
+
/** The ops of `Vec2Domain`. */
|
|
77
|
+
export type Vec2Ops = OpTable<Vec2, Vec2OpNames, "add" | "subtract" | "multiply" | "divide" | "min" | "max">;
|
|
78
|
+
/** The domain of 2D vectors. A number argument of a component-wise op lifts to a vector with that value twice. */
|
|
79
|
+
export declare const Vec2Domain: Domain<"Vec2", Vec2, Vec2Ops>;
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/ndvector.d.ts
|
|
82
|
+
/**
|
|
83
|
+
* An immutable vector with named components. The type parameter `K` is the set of component names. Ops that
|
|
84
|
+
* combine two vectors use the union of their names, and a missing component counts as 0. The constructor
|
|
85
|
+
* keeps each number, also a number that is not finite: the domain check reports such a value as `#NUM!`.
|
|
86
|
+
*/
|
|
87
|
+
export declare class NDVector<K extends string = string> {
|
|
88
|
+
#private;
|
|
89
|
+
/** The components: name to number. */
|
|
90
|
+
readonly c: Readonly<Record<K, number>>;
|
|
91
|
+
constructor(c: Readonly<Record<K, number>>);
|
|
92
|
+
/** This function makes a vector from name and value pairs. */
|
|
93
|
+
static of<K extends string>(entries: readonly (readonly [K, number])[]): NDVector<K>;
|
|
94
|
+
/** This function makes the zero vector over the names `keys`. */
|
|
95
|
+
static zero<K extends string>(keys?: readonly K[]): NDVector<K>;
|
|
96
|
+
/** The names of the components. */
|
|
97
|
+
keys(): readonly K[];
|
|
98
|
+
/** The value of a component, or 0 if the vector does not have it. */
|
|
99
|
+
get(k: string): number;
|
|
100
|
+
set<K2 extends string>(k: K2, v: number): NDVector<K | K2>;
|
|
101
|
+
map(f: (name: K, v: number) => number): NDVector<K>;
|
|
102
|
+
/** The vector with only the names in `keys`. A zero component is dropped, unless `keepZeros` is true. */
|
|
103
|
+
pick<K2 extends K>(keys: readonly K2[], keepZeros?: boolean): NDVector<K2>;
|
|
104
|
+
/** The vector with the names in `keys` added. A new component is 0. */
|
|
105
|
+
withKeys<K2 extends string>(keys: readonly K2[]): NDVector<K | K2>;
|
|
106
|
+
add<K2 extends string>(o: NDVector<K2>): NDVector<K | K2>;
|
|
107
|
+
subtract<K2 extends string>(o: NDVector<K2>): NDVector<K | K2>;
|
|
108
|
+
/** The component-wise product. */
|
|
109
|
+
multiply<K2 extends string>(o: NDVector<K2>): NDVector<K | K2>;
|
|
110
|
+
/** Of each component, the value of this vector if it is not 0, else the value of `o`. */
|
|
111
|
+
mergePreferNonZero<K2 extends string>(o: NDVector<K2>): NDVector<K | K2>;
|
|
112
|
+
scale(k: number): NDVector<K>;
|
|
113
|
+
clamp(lo: number, hi: number): NDVector<K>;
|
|
114
|
+
dot(o: NDVector): number;
|
|
115
|
+
/** The L2 length. */
|
|
116
|
+
length(): number;
|
|
117
|
+
/** The L1 norm. */
|
|
118
|
+
norm1(): number;
|
|
119
|
+
/** The largest absolute component. */
|
|
120
|
+
normInf(): number;
|
|
121
|
+
equals(o: NDVector): boolean;
|
|
122
|
+
/** True if each component is a finite number. */
|
|
123
|
+
isFinite(): boolean;
|
|
124
|
+
toJSON(): Readonly<Record<K, number>>;
|
|
125
|
+
toString(): string;
|
|
126
|
+
}
|
|
127
|
+
type NDOpNames = "add" | "subtract" | "multiply" | "mergePreferNonZero" | "scale" | "clamp" | "dot" | "length" | "norm1" | "normInf" | "equals" | "pick" | "withKeys" | "get" | "set";
|
|
128
|
+
/** The ops of `NDVectorDomain`. No op lifts numbers. */
|
|
129
|
+
export type NDVectorOps = OpTable<NDVector, NDOpNames>;
|
|
130
|
+
/** The ops of `LiftedNDVectorDomain`. */
|
|
131
|
+
export type LiftedNDVectorOps = OpTable<NDVector, NDOpNames, "add" | "subtract" | "multiply" | "dot">;
|
|
132
|
+
/** The domain of named-component vectors. A number argument is an error here: use `LiftedNDVectorDomain` to lift. */
|
|
133
|
+
export declare const NDVectorDomain: Domain<"NDVector", NDVector, NDVectorOps>;
|
|
134
|
+
/**
|
|
135
|
+
* The domain of named-component vectors with scalar lifting. A number argument of `add`, `subtract`,
|
|
136
|
+
* `multiply` or `dot` becomes the vector `{ scalar: n }`. This domain is independent of `NDVectorDomain`:
|
|
137
|
+
* the two can be in one program, and neither changes the other.
|
|
138
|
+
*/
|
|
139
|
+
export declare const LiftedNDVectorDomain: Domain<"NDVector(lifted)", NDVector, LiftedNDVectorOps>;
|
|
140
|
+
/** A plain record whose values are finite numbers. */
|
|
141
|
+
export type NumRecord = Readonly<Record<string, number>>;
|
|
142
|
+
/** The ops of `NumRecordDomain`. */
|
|
143
|
+
export type NumRecordOps = {
|
|
144
|
+
readonly toNDVector: FnOp<NumRecord, (r: NumRecord) => NDVector>;
|
|
145
|
+
};
|
|
146
|
+
/** The domain of plain number records. Its op `toNDVector` builds a vector from fields, for example from `rec()`. */
|
|
147
|
+
export declare const NumRecordDomain: Domain<"NumRecord", NumRecord, NumRecordOps>;
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/scalars.d.ts
|
|
150
|
+
type NumFn1 = (a: number) => number;
|
|
151
|
+
type NumFn2 = (a: number, b: number) => number;
|
|
152
|
+
type NumFn3 = (a: number, b: number, c: number) => number;
|
|
153
|
+
type NumTest = (a: number, b: number) => boolean;
|
|
154
|
+
/** The ops of `NumDomain`. */
|
|
155
|
+
export type NumOps = {
|
|
156
|
+
readonly add: FnOp<number, NumFn2>;
|
|
157
|
+
readonly subtract: FnOp<number, NumFn2>;
|
|
158
|
+
readonly multiply: FnOp<number, NumFn2>;
|
|
159
|
+
readonly divide: FnOp<number, NumFn2>;
|
|
160
|
+
readonly mod: FnOp<number, NumFn2>;
|
|
161
|
+
readonly pow: FnOp<number, NumFn2>;
|
|
162
|
+
readonly min: FnOp<number, NumFn2>;
|
|
163
|
+
readonly max: FnOp<number, NumFn2>;
|
|
164
|
+
readonly clamp: FnOp<number, NumFn3>;
|
|
165
|
+
readonly abs: FnOp<number, NumFn1>;
|
|
166
|
+
readonly negate: FnOp<number, NumFn1>;
|
|
167
|
+
readonly sqrt: FnOp<number, NumFn1>;
|
|
168
|
+
readonly floor: FnOp<number, NumFn1>;
|
|
169
|
+
readonly ceil: FnOp<number, NumFn1>;
|
|
170
|
+
readonly round: FnOp<number, NumFn1>;
|
|
171
|
+
readonly gt: FnOp<number, NumTest>;
|
|
172
|
+
readonly gte: FnOp<number, NumTest>;
|
|
173
|
+
readonly lt: FnOp<number, NumTest>;
|
|
174
|
+
readonly lte: FnOp<number, NumTest>;
|
|
175
|
+
readonly eq: FnOp<number, NumTest>;
|
|
176
|
+
};
|
|
177
|
+
/** The domain of numbers. A result that is not a finite number is the error `#NUM!`. */
|
|
178
|
+
export declare const NumDomain: Domain<"Num", number, NumOps>;
|
|
179
|
+
type BoolFn1 = (a: boolean) => boolean;
|
|
180
|
+
type BoolFn2 = (a: boolean, b: boolean) => boolean;
|
|
181
|
+
/** The ops of `BoolDomain`. */
|
|
182
|
+
export type BoolOps = {
|
|
183
|
+
readonly and: FnOp<boolean, BoolFn2>;
|
|
184
|
+
readonly or: FnOp<boolean, BoolFn2>;
|
|
185
|
+
readonly xor: FnOp<boolean, BoolFn2>;
|
|
186
|
+
readonly not: FnOp<boolean, BoolFn1>;
|
|
187
|
+
readonly eq: FnOp<boolean, BoolFn2>;
|
|
188
|
+
};
|
|
189
|
+
/** The domain of booleans. For lazy logic, use the special forms `and`, `or` and `if` of the IR. */
|
|
190
|
+
export declare const BoolDomain: Domain<"Bool", boolean, BoolOps>;
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/color.d.ts
|
|
193
|
+
/**
|
|
194
|
+
* An immutable RGBA color. The channels have no fixed range: use `clamp` to limit them. `add` adds the color
|
|
195
|
+
* channels and keeps the larger alpha, so `add` is commutative and associative.
|
|
196
|
+
*/
|
|
197
|
+
export declare class Color {
|
|
198
|
+
readonly r: number;
|
|
199
|
+
readonly g: number;
|
|
200
|
+
readonly b: number;
|
|
201
|
+
readonly a: number;
|
|
202
|
+
constructor(r: number, g: number, b: number, a?: number);
|
|
203
|
+
/** This function makes a gray color with the value `n` in each channel. */
|
|
204
|
+
static gray(n: number): Color;
|
|
205
|
+
/** The black color with alpha 0: the identity of `add`. */
|
|
206
|
+
static readonly none: Color;
|
|
207
|
+
/** The channel sum. The alpha is the larger alpha. */
|
|
208
|
+
add(o: Color): Color;
|
|
209
|
+
/** Each color channel times `factor`. The alpha does not change. */
|
|
210
|
+
multiply(factor: number): Color;
|
|
211
|
+
/** Each color channel in the range from `lo` to `hi`. */
|
|
212
|
+
clamp(lo?: number, hi?: number): Color;
|
|
213
|
+
/** The linear mix from this color to `o`. */
|
|
214
|
+
mix(o: Color, t: number): Color;
|
|
215
|
+
/** The relative luminance (Rec. 709 weights) of the color channels. */
|
|
216
|
+
luminance(): number;
|
|
217
|
+
equals(o: Color): boolean;
|
|
218
|
+
toArray(): readonly [number, number, number, number];
|
|
219
|
+
toString(): string;
|
|
220
|
+
}
|
|
221
|
+
/** The ops of `ColorDomain`. */
|
|
222
|
+
export type ColorOps = OpTable<Color, "add" | "multiply" | "clamp" | "mix" | "luminance" | "equals">;
|
|
223
|
+
/** The domain of colors. */
|
|
224
|
+
export declare const ColorDomain: Domain<"Color", Color, ColorOps>;
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region src/angle.d.ts
|
|
227
|
+
/** An immutable angle in radians. */
|
|
228
|
+
export declare class Angle {
|
|
229
|
+
readonly radians: number;
|
|
230
|
+
constructor(radians: number);
|
|
231
|
+
/** This function makes an angle from degrees. */
|
|
232
|
+
static fromDegrees(deg: number): Angle;
|
|
233
|
+
/** The zero angle: the identity of `add`. */
|
|
234
|
+
static readonly zero: Angle;
|
|
235
|
+
add(o: Angle): Angle;
|
|
236
|
+
subtract(o: Angle): Angle;
|
|
237
|
+
scale(k: number): Angle;
|
|
238
|
+
/** The same angle in the range from -π (included) to π (not included). */
|
|
239
|
+
normalize(): Angle;
|
|
240
|
+
/** The vector with this angle and the length `length`. The result is a `Vec2`, so a chain continues in that domain. */
|
|
241
|
+
toVec2(length?: number): Vec2;
|
|
242
|
+
sin(): number;
|
|
243
|
+
cos(): number;
|
|
244
|
+
degrees(): number;
|
|
245
|
+
toString(): string;
|
|
246
|
+
}
|
|
247
|
+
/** The ops of `AngleDomain`. */
|
|
248
|
+
export type AngleOps = OpTable<Angle, "add" | "subtract" | "scale" | "normalize" | "toVec2" | "sin" | "cos" | "degrees", "add" | "subtract">;
|
|
249
|
+
/** The domain of angles. A number argument of `add` or `subtract` lifts to an angle in radians. */
|
|
250
|
+
export declare const AngleDomain: Domain<"Angle", Angle, AngleOps>;
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region src/wrappers.d.ts
|
|
253
|
+
/** A wrapper around a function. Its op `invoke` calls the function. It shows how a domain can hold behavior. */
|
|
254
|
+
export declare class Fn {
|
|
255
|
+
readonly fn: (...args: never[]) => unknown;
|
|
256
|
+
constructor(fn: (...args: never[]) => unknown);
|
|
257
|
+
invoke(...args: readonly unknown[]): unknown;
|
|
258
|
+
}
|
|
259
|
+
/** The ops of `FnDomain`. */
|
|
260
|
+
export type FnOps = OpTable<Fn, "invoke">;
|
|
261
|
+
/** The domain of function wrappers. */
|
|
262
|
+
export declare const FnDomain: Domain<"Fn", Fn, FnOps>;
|
|
263
|
+
/**
|
|
264
|
+
* A value that is there (`top`) or not there (`bottom`). It shows a domain whose ops take functions. A Vex
|
|
265
|
+
* program can also hold this state in its own errors, so most programs do not need this domain.
|
|
266
|
+
*/
|
|
267
|
+
export declare class Maybe<T> {
|
|
268
|
+
#private;
|
|
269
|
+
private constructor();
|
|
270
|
+
static top<T>(value: T): Maybe<T>;
|
|
271
|
+
static bottom<T = never>(): Maybe<T>;
|
|
272
|
+
isTop(): boolean;
|
|
273
|
+
isBottom(): boolean;
|
|
274
|
+
map<U>(f: (value: T) => U): Maybe<U>;
|
|
275
|
+
chain<U>(f: (value: T) => Maybe<U>): Maybe<U>;
|
|
276
|
+
valueOr<U>(fallback: U): T | U;
|
|
277
|
+
}
|
|
278
|
+
/** The ops of `MaybeDomain`. */
|
|
279
|
+
export type MaybeOps = OpTable<Maybe<unknown>, "isTop" | "isBottom" | "map" | "chain" | "valueOr">;
|
|
280
|
+
/** The domain of `Maybe` values. */
|
|
281
|
+
export declare const MaybeDomain: Domain<"Maybe", Maybe<unknown>, MaybeOps>;
|
|
282
|
+
//#endregion
|
|
283
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/vec2.ts","../src/ndvector.ts","../src/scalars.ts","../src/color.ts","../src/angle.ts","../src/wrappers.ts"],"mappings":";;;;;;qBAMa;WACF;WACA;EAET,YAAY,WAAW;;SAMhB,GAAG,WAAW,YAAY;;SAI1B,OAAO,YAAY;;kBAIV,MAAM;;kBAEN,KAAK;EAErB,IAAI,GAAG,OAAO;EAGd,SAAS,GAAG,OAAO;;EAInB,SAAS,GAAG,OAAO;;EAInB,OAAO,GAAG,OAAO;;EAIjB,IAAI,GAAG,OAAO;;EAId,IAAI,GAAG,OAAO;EAGd,MAAM,YAAY;EAGlB,UAAU;EAGV,SAAS;EAGT,OAAO;EAGP,SAAS;EAGT,SAAS;EAGT,QAAQ;EAGR,MAAM,YAAY,aAAa;EAG/B,QAAQ;;EAIR,OAAO,kBAAkB;;EAMzB,aAAa;;EAKb,KAAK,GAAG,MAAM,YAAY;EAG1B;EAGA;EAGA,SAAS,GAAG;EAGZ,IAAI,GAAG;;EAIP,MAAM,GAAG;;EAIT;;EAIA;;EAIA;EAGA;EAGA;EAGA,OAAO,GAAG;EAGV;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA,YAAY;EAGZ,YAAY;EAGZ,eAAe;EAGf,eAAe;EAGf;aAAqB;aAAoB;;EAGzC;;KAKG;;YAQO,UAAU,QAAQ,MAAM;;qBAGvB,YAAY,eAAe,MAAM;;;;;;;;qBC3KjC,SAAS;;;WAEX,GAAG,SAAS,OAAO;EAE5B,YAAY,GAAG,SAAS,OAAO;;SAKxB,GAAG,kBAAkB,6BAA6B,gBAAgB,SAAS;;SAM3E,KAAK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