@autumnsgrove/gossamer 0.1.0 → 0.1.1
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/characters.d.ts.map +1 -1
- package/dist/colors.d.ts +312 -0
- package/dist/colors.d.ts.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +542 -0
- package/dist/index.js.map +1 -1
- package/dist/patterns.d.ts +119 -2
- package/dist/patterns.d.ts.map +1 -1
- package/dist/renderer.d.ts +27 -0
- package/dist/renderer.d.ts.map +1 -1
- package/dist/svelte/index.js +9 -12
- package/dist/svelte/index.js.map +1 -1
- package/package.json +12 -3
- package/src/characters.ts +55 -0
- package/src/colors.ts +234 -0
- package/src/index.ts +35 -4
- package/src/patterns.ts +447 -3
- package/src/renderer.ts +161 -0
- package/src/svelte/GossamerClouds.svelte +6 -6
package/dist/characters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../src/characters.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../src/characters.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CA2IvD,CAAC;AAEF;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAEtE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAE/C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,WAAW,GAAE,MAAW,EACxB,OAAO,GAAE,MAAM,EAAO,GACrB,YAAY,CAOd;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAIhE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE3D"}
|
package/dist/colors.d.ts
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gossamer Color Palettes
|
|
3
|
+
*
|
|
4
|
+
* Grove-themed color palettes for ASCII effects.
|
|
5
|
+
* Designed to complement Glass UI components.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Color definition with metadata
|
|
9
|
+
*/
|
|
10
|
+
export interface ColorDef {
|
|
11
|
+
/** Hex color value */
|
|
12
|
+
hex: string;
|
|
13
|
+
/** Human-readable name */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Recommended opacity for glass overlays (0-1) */
|
|
16
|
+
glassOpacity?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Grove Green palette - Primary brand colors
|
|
20
|
+
*/
|
|
21
|
+
export declare const GROVE_GREEN: {
|
|
22
|
+
readonly 50: {
|
|
23
|
+
readonly hex: "#f0fdf4";
|
|
24
|
+
readonly name: "Grove Green 50";
|
|
25
|
+
readonly glassOpacity: 0.3;
|
|
26
|
+
};
|
|
27
|
+
readonly 100: {
|
|
28
|
+
readonly hex: "#dcfce7";
|
|
29
|
+
readonly name: "Grove Green 100";
|
|
30
|
+
readonly glassOpacity: 0.25;
|
|
31
|
+
};
|
|
32
|
+
readonly 200: {
|
|
33
|
+
readonly hex: "#bbf7d0";
|
|
34
|
+
readonly name: "Grove Green 200";
|
|
35
|
+
readonly glassOpacity: 0.2;
|
|
36
|
+
};
|
|
37
|
+
readonly 300: {
|
|
38
|
+
readonly hex: "#86efac";
|
|
39
|
+
readonly name: "Grove Green 300";
|
|
40
|
+
readonly glassOpacity: 0.18;
|
|
41
|
+
};
|
|
42
|
+
readonly 400: {
|
|
43
|
+
readonly hex: "#4ade80";
|
|
44
|
+
readonly name: "Grove Green 400";
|
|
45
|
+
readonly glassOpacity: 0.15;
|
|
46
|
+
};
|
|
47
|
+
readonly 500: {
|
|
48
|
+
readonly hex: "#22c55e";
|
|
49
|
+
readonly name: "Grove Green 500";
|
|
50
|
+
readonly glassOpacity: 0.12;
|
|
51
|
+
};
|
|
52
|
+
readonly 600: {
|
|
53
|
+
readonly hex: "#16a34a";
|
|
54
|
+
readonly name: "Grove Green 600";
|
|
55
|
+
readonly glassOpacity: 0.1;
|
|
56
|
+
};
|
|
57
|
+
readonly 700: {
|
|
58
|
+
readonly hex: "#15803d";
|
|
59
|
+
readonly name: "Grove Green 700";
|
|
60
|
+
readonly glassOpacity: 0.1;
|
|
61
|
+
};
|
|
62
|
+
readonly 800: {
|
|
63
|
+
readonly hex: "#166534";
|
|
64
|
+
readonly name: "Grove Green 800";
|
|
65
|
+
readonly glassOpacity: 0.08;
|
|
66
|
+
};
|
|
67
|
+
readonly 900: {
|
|
68
|
+
readonly hex: "#14532d";
|
|
69
|
+
readonly name: "Grove Green 900";
|
|
70
|
+
readonly glassOpacity: 0.08;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Cream palette - Light/warm backgrounds
|
|
75
|
+
*/
|
|
76
|
+
export declare const CREAM: {
|
|
77
|
+
readonly 50: {
|
|
78
|
+
readonly hex: "#fefdfb";
|
|
79
|
+
readonly name: "Cream 50";
|
|
80
|
+
readonly glassOpacity: 0.4;
|
|
81
|
+
};
|
|
82
|
+
readonly 100: {
|
|
83
|
+
readonly hex: "#fdfcf8";
|
|
84
|
+
readonly name: "Cream 100";
|
|
85
|
+
readonly glassOpacity: 0.35;
|
|
86
|
+
};
|
|
87
|
+
readonly 200: {
|
|
88
|
+
readonly hex: "#faf8f3";
|
|
89
|
+
readonly name: "Cream 200";
|
|
90
|
+
readonly glassOpacity: 0.3;
|
|
91
|
+
};
|
|
92
|
+
readonly 300: {
|
|
93
|
+
readonly hex: "#f5f2ea";
|
|
94
|
+
readonly name: "Cream 300";
|
|
95
|
+
readonly glassOpacity: 0.25;
|
|
96
|
+
};
|
|
97
|
+
readonly 400: {
|
|
98
|
+
readonly hex: "#ede9de";
|
|
99
|
+
readonly name: "Cream 400";
|
|
100
|
+
readonly glassOpacity: 0.2;
|
|
101
|
+
};
|
|
102
|
+
readonly 500: {
|
|
103
|
+
readonly hex: "#e2ddd0";
|
|
104
|
+
readonly name: "Cream 500";
|
|
105
|
+
readonly glassOpacity: 0.18;
|
|
106
|
+
};
|
|
107
|
+
readonly 600: {
|
|
108
|
+
readonly hex: "#d4cec0";
|
|
109
|
+
readonly name: "Cream 600";
|
|
110
|
+
readonly glassOpacity: 0.15;
|
|
111
|
+
};
|
|
112
|
+
readonly 700: {
|
|
113
|
+
readonly hex: "#c4bdb0";
|
|
114
|
+
readonly name: "Cream 700";
|
|
115
|
+
readonly glassOpacity: 0.12;
|
|
116
|
+
};
|
|
117
|
+
readonly 800: {
|
|
118
|
+
readonly hex: "#b0a99c";
|
|
119
|
+
readonly name: "Cream 800";
|
|
120
|
+
readonly glassOpacity: 0.1;
|
|
121
|
+
};
|
|
122
|
+
readonly 900: {
|
|
123
|
+
readonly hex: "#9a9387";
|
|
124
|
+
readonly name: "Cream 900";
|
|
125
|
+
readonly glassOpacity: 0.08;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Bark palette - Dark/earth tones
|
|
130
|
+
*/
|
|
131
|
+
export declare const BARK: {
|
|
132
|
+
readonly 50: {
|
|
133
|
+
readonly hex: "#faf7f5";
|
|
134
|
+
readonly name: "Bark 50";
|
|
135
|
+
readonly glassOpacity: 0.3;
|
|
136
|
+
};
|
|
137
|
+
readonly 100: {
|
|
138
|
+
readonly hex: "#f0ebe6";
|
|
139
|
+
readonly name: "Bark 100";
|
|
140
|
+
readonly glassOpacity: 0.25;
|
|
141
|
+
};
|
|
142
|
+
readonly 200: {
|
|
143
|
+
readonly hex: "#e0d5cc";
|
|
144
|
+
readonly name: "Bark 200";
|
|
145
|
+
readonly glassOpacity: 0.2;
|
|
146
|
+
};
|
|
147
|
+
readonly 300: {
|
|
148
|
+
readonly hex: "#ccb59c";
|
|
149
|
+
readonly name: "Bark 300";
|
|
150
|
+
readonly glassOpacity: 0.18;
|
|
151
|
+
};
|
|
152
|
+
readonly 400: {
|
|
153
|
+
readonly hex: "#b89a7a";
|
|
154
|
+
readonly name: "Bark 400";
|
|
155
|
+
readonly glassOpacity: 0.15;
|
|
156
|
+
};
|
|
157
|
+
readonly 500: {
|
|
158
|
+
readonly hex: "#a57c5a";
|
|
159
|
+
readonly name: "Bark 500";
|
|
160
|
+
readonly glassOpacity: 0.12;
|
|
161
|
+
};
|
|
162
|
+
readonly 600: {
|
|
163
|
+
readonly hex: "#8a6344";
|
|
164
|
+
readonly name: "Bark 600";
|
|
165
|
+
readonly glassOpacity: 0.1;
|
|
166
|
+
};
|
|
167
|
+
readonly 700: {
|
|
168
|
+
readonly hex: "#6f4d39";
|
|
169
|
+
readonly name: "Bark 700";
|
|
170
|
+
readonly glassOpacity: 0.1;
|
|
171
|
+
};
|
|
172
|
+
readonly 800: {
|
|
173
|
+
readonly hex: "#553a2a";
|
|
174
|
+
readonly name: "Bark 800";
|
|
175
|
+
readonly glassOpacity: 0.08;
|
|
176
|
+
};
|
|
177
|
+
readonly 900: {
|
|
178
|
+
readonly hex: "#3d2914";
|
|
179
|
+
readonly name: "Bark 900";
|
|
180
|
+
readonly glassOpacity: 0.06;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Status colors
|
|
185
|
+
*/
|
|
186
|
+
export declare const STATUS: {
|
|
187
|
+
readonly success: {
|
|
188
|
+
readonly hex: "#22c55e";
|
|
189
|
+
readonly name: "Success";
|
|
190
|
+
readonly glassOpacity: 0.12;
|
|
191
|
+
};
|
|
192
|
+
readonly warning: {
|
|
193
|
+
readonly hex: "#f59e0b";
|
|
194
|
+
readonly name: "Warning";
|
|
195
|
+
readonly glassOpacity: 0.12;
|
|
196
|
+
};
|
|
197
|
+
readonly error: {
|
|
198
|
+
readonly hex: "#dc2626";
|
|
199
|
+
readonly name: "Error";
|
|
200
|
+
readonly glassOpacity: 0.1;
|
|
201
|
+
};
|
|
202
|
+
readonly info: {
|
|
203
|
+
readonly hex: "#0ea5e9";
|
|
204
|
+
readonly name: "Info";
|
|
205
|
+
readonly glassOpacity: 0.12;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Combined Grove color schemes for easy access
|
|
210
|
+
*/
|
|
211
|
+
export declare const GROVE_COLORS: {
|
|
212
|
+
readonly grove: "#22c55e";
|
|
213
|
+
readonly 'grove-light': "#86efac";
|
|
214
|
+
readonly 'grove-dark': "#15803d";
|
|
215
|
+
readonly 'grove-muted': "#4ade80";
|
|
216
|
+
readonly cream: "#fefdfb";
|
|
217
|
+
readonly 'cream-warm': "#faf8f3";
|
|
218
|
+
readonly 'cream-deep': "#e2ddd0";
|
|
219
|
+
readonly bark: "#3d2914";
|
|
220
|
+
readonly 'bark-light': "#a57c5a";
|
|
221
|
+
readonly 'bark-medium': "#6f4d39";
|
|
222
|
+
readonly white: "#ffffff";
|
|
223
|
+
readonly black: "#000000";
|
|
224
|
+
readonly transparent: "transparent";
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Glass-optimized color schemes
|
|
228
|
+
* Pre-configured for use with Glass components
|
|
229
|
+
*/
|
|
230
|
+
export declare const GLASS_SCHEMES: {
|
|
231
|
+
readonly 'grove-mist': {
|
|
232
|
+
readonly color: "#22c55e";
|
|
233
|
+
readonly background: "transparent";
|
|
234
|
+
readonly opacity: 0.12;
|
|
235
|
+
readonly description: "Subtle green mist for light glass";
|
|
236
|
+
};
|
|
237
|
+
readonly 'cream-haze': {
|
|
238
|
+
readonly color: "#d4cec0";
|
|
239
|
+
readonly background: "transparent";
|
|
240
|
+
readonly opacity: 0.15;
|
|
241
|
+
readonly description: "Warm cream haze for cozy glass";
|
|
242
|
+
};
|
|
243
|
+
readonly 'bark-shadow': {
|
|
244
|
+
readonly color: "#6f4d39";
|
|
245
|
+
readonly background: "transparent";
|
|
246
|
+
readonly opacity: 0.08;
|
|
247
|
+
readonly description: "Soft earth shadow for depth";
|
|
248
|
+
};
|
|
249
|
+
readonly 'grove-glow': {
|
|
250
|
+
readonly color: "#4ade80";
|
|
251
|
+
readonly background: "#1a1915";
|
|
252
|
+
readonly opacity: 0.15;
|
|
253
|
+
readonly description: "Glowing green for dark glass";
|
|
254
|
+
};
|
|
255
|
+
readonly 'cream-dust': {
|
|
256
|
+
readonly color: "#f5f2ea";
|
|
257
|
+
readonly background: "#1a1915";
|
|
258
|
+
readonly opacity: 0.1;
|
|
259
|
+
readonly description: "Dusty cream particles in dark";
|
|
260
|
+
};
|
|
261
|
+
readonly moonlight: {
|
|
262
|
+
readonly color: "#e2e8f0";
|
|
263
|
+
readonly background: "#1a1915";
|
|
264
|
+
readonly opacity: 0.08;
|
|
265
|
+
readonly description: "Cool moonlight glow";
|
|
266
|
+
};
|
|
267
|
+
readonly 'spring-fresh': {
|
|
268
|
+
readonly color: "#86efac";
|
|
269
|
+
readonly background: "transparent";
|
|
270
|
+
readonly opacity: 0.18;
|
|
271
|
+
readonly description: "Fresh spring green overlay";
|
|
272
|
+
};
|
|
273
|
+
readonly 'autumn-warm': {
|
|
274
|
+
readonly color: "#d97706";
|
|
275
|
+
readonly background: "transparent";
|
|
276
|
+
readonly opacity: 0.1;
|
|
277
|
+
readonly description: "Warm autumn amber tones";
|
|
278
|
+
};
|
|
279
|
+
readonly 'winter-frost': {
|
|
280
|
+
readonly color: "#93c5fd";
|
|
281
|
+
readonly background: "transparent";
|
|
282
|
+
readonly opacity: 0.12;
|
|
283
|
+
readonly description: "Cool frost blue overlay";
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
export type GroveColorName = keyof typeof GROVE_COLORS;
|
|
287
|
+
export type GlassSchemeName = keyof typeof GLASS_SCHEMES;
|
|
288
|
+
/**
|
|
289
|
+
* Get a Grove color by name
|
|
290
|
+
*/
|
|
291
|
+
export declare function getGroveColor(name: GroveColorName | string): string;
|
|
292
|
+
/**
|
|
293
|
+
* Get a glass scheme by name
|
|
294
|
+
*/
|
|
295
|
+
export declare function getGlassScheme(name: GlassSchemeName | string): {
|
|
296
|
+
color: string;
|
|
297
|
+
background: string;
|
|
298
|
+
opacity: number;
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* List all Grove color names
|
|
302
|
+
*/
|
|
303
|
+
export declare function getGroveColorNames(): string[];
|
|
304
|
+
/**
|
|
305
|
+
* List all glass scheme names
|
|
306
|
+
*/
|
|
307
|
+
export declare function getGlassSchemeNames(): string[];
|
|
308
|
+
/**
|
|
309
|
+
* Apply opacity to a hex color, returning rgba string
|
|
310
|
+
*/
|
|
311
|
+
export declare function hexToRgba(hex: string, opacity: number): string;
|
|
312
|
+
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d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AI,MAAM,EAAE,CAE7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAE9C;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAK9D"}
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface PresetConfig {
|
|
|
37
37
|
/** Character set */
|
|
38
38
|
characters: string;
|
|
39
39
|
/** Pattern type */
|
|
40
|
-
pattern: 'perlin' | 'waves' | 'static' | 'ripple' | 'fbm';
|
|
40
|
+
pattern: 'perlin' | 'waves' | 'static' | 'ripple' | 'fbm' | 'clouds' | 'plasma' | 'vortex' | 'matrix' | 'gradient' | 'diamond' | 'fractal';
|
|
41
41
|
/** Pattern frequency */
|
|
42
42
|
frequency: number;
|
|
43
43
|
/** Pattern amplitude */
|
|
@@ -66,10 +66,12 @@ export declare function calculateBrightness(r: number, g: number, b: number): nu
|
|
|
66
66
|
export declare function brightnessToChar(brightness: number, characters?: string): string;
|
|
67
67
|
export { GossamerRenderer } from './renderer';
|
|
68
68
|
export type { RenderConfig } from './renderer';
|
|
69
|
-
export { perlinNoise2D, fbmNoise, wavePattern, ripplePattern,
|
|
70
|
-
export type { PatternConfig, PatternType } from './patterns';
|
|
69
|
+
export { perlinNoise2D, fbmNoise, staticNoise, seededNoise2D, wavePattern, ripplePattern, cloudsPattern, plasmaPattern, vortexPattern, matrixPattern, gradientPattern, diamondPattern, fractalPattern, generateBrightnessGrid, gridToImageData, createBrightnessBuffer, fillBrightnessBuffer, getBufferValue, DEFAULT_PATTERN_CONFIG, } from './patterns';
|
|
70
|
+
export type { PatternConfig, PatternType, BrightnessBuffer } from './patterns';
|
|
71
71
|
export { CHARACTER_SETS, getCharacterSet, getCharacters, getCharacterSetNames, createCharacterSet, validateCharacterSet, invertCharacters, } from './characters';
|
|
72
72
|
export type { CharacterSet } from './characters';
|
|
73
|
+
export { GROVE_GREEN, CREAM, BARK, STATUS, GROVE_COLORS, GLASS_SCHEMES, getGroveColor, getGlassScheme, getGroveColorNames, getGlassSchemeNames, hexToRgba, } from './colors';
|
|
74
|
+
export type { ColorDef, GroveColorName, GlassSchemeName } from './colors';
|
|
73
75
|
export { createAnimationLoop, throttle, debounce, calculateFPS, easings, } from './animation';
|
|
74
76
|
export type { AnimationState, AnimationOptions, EasingFunction } from './animation';
|
|
75
77
|
export { createCanvas, getDevicePixelRatio, resizeCanvasToContainer, createOffscreenCanvas, clearCanvas, getImageData, optimizeContext, setupTextRendering, measureTextWidth, calculateCellSize, setBlendMode, } from './utils/canvas';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+BAA+B;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,yBAAyB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,OAAO,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,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