canvasengine 1.3.0 → 2.0.1-beta.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/.cursorrules +0 -0
- package/.github/workflows/ci.yml +29 -0
- package/README.md +79 -0
- package/dist/compiler/vite.js +119 -0
- package/dist/compiler/vite.js.map +1 -0
- package/dist/index.d.ts +846 -0
- package/dist/index.js +3340 -0
- package/dist/index.js.map +1 -0
- package/index.d.ts +6 -0
- package/logo.png +0 -0
- package/package.json +84 -18
- package/src/compiler/grammar.pegjs +180 -0
- package/src/compiler/vite.ts +166 -0
- package/src/components/Canvas.ts +134 -0
- package/src/components/Container.ts +46 -0
- package/src/components/DisplayObject.ts +458 -0
- package/src/components/DrawMap/index.ts +65 -0
- package/src/components/Graphic.ts +147 -0
- package/src/components/NineSliceSprite.ts +46 -0
- package/src/components/ParticleEmitter.ts +39 -0
- package/src/components/Scene.ts +6 -0
- package/src/components/Sprite.ts +493 -0
- package/src/components/Text.ts +145 -0
- package/src/components/Tilemap/Tile.ts +79 -0
- package/src/components/Tilemap/TileGroup.ts +207 -0
- package/src/components/Tilemap/TileLayer.ts +163 -0
- package/src/components/Tilemap/TileSet.ts +41 -0
- package/src/components/Tilemap/index.ts +80 -0
- package/src/components/TilingSprite.ts +39 -0
- package/src/components/Viewport.ts +159 -0
- package/src/components/index.ts +12 -0
- package/src/components/types/DisplayObject.ts +68 -0
- package/src/components/types/MouseEvent.ts +3 -0
- package/src/components/types/Spritesheet.ts +389 -0
- package/src/components/types/index.ts +4 -0
- package/src/directives/Drag.ts +84 -0
- package/src/directives/KeyboardControls.ts +922 -0
- package/src/directives/Scheduler.ts +112 -0
- package/src/directives/Sound.ts +91 -0
- package/src/directives/Transition.ts +45 -0
- package/src/directives/ViewportCull.ts +40 -0
- package/src/directives/ViewportFollow.ts +26 -0
- package/src/directives/index.ts +7 -0
- package/src/engine/animation.ts +113 -0
- package/src/engine/bootstrap.ts +19 -0
- package/src/engine/directive.ts +23 -0
- package/src/engine/reactive.ts +379 -0
- package/src/engine/signal.ts +138 -0
- package/src/engine/trigger.ts +40 -0
- package/src/engine/utils.ts +135 -0
- package/src/hooks/addContext.ts +6 -0
- package/src/hooks/useProps.ts +155 -0
- package/src/hooks/useRef.ts +21 -0
- package/src/index.ts +14 -0
- package/src/presets/Bar.ts +89 -0
- package/src/presets/Button.ts +0 -0
- package/src/presets/Joystick.ts +286 -0
- package/src/presets/NightAmbiant.ts +122 -0
- package/src/presets/Particle.ts +53 -0
- package/src/utils/Ease.ts +33 -0
- package/src/utils/RadialGradient.ts +86 -0
- package/starter/assets/logo.png +0 -0
- package/starter/components/app.ce +18 -0
- package/starter/components/hello.ce +35 -0
- package/starter/index.html +21 -0
- package/starter/main.ts +6 -0
- package/starter/package.json +20 -0
- package/starter/tsconfig.json +32 -0
- package/starter/vite.config.ts +12 -0
- package/tsconfig.json +32 -0
- package/tsconfig.node.json +10 -0
- package/tsup.config.ts +28 -0
- package/vitest.config.ts +12 -0
- package/.gitattributes +0 -22
- package/.npmignore +0 -163
- package/canvasengine-1.3.0.all.min.js +0 -21
- package/canvasengine.js +0 -5802
- package/core/DB.js +0 -24
- package/core/ModelServer.js +0 -348
- package/core/Users.js +0 -190
- package/core/engine-common.js +0 -952
- package/doc/cocoonjs.md +0 -36
- package/doc/doc-lang.yml +0 -43
- package/doc/doc-router.yml +0 -14
- package/doc/doc-tuto.yml +0 -9
- package/doc/doc.yml +0 -39
- package/doc/element.md +0 -37
- package/doc/entity.md +0 -90
- package/doc/extend.md +0 -47
- package/doc/get_started.md +0 -19
- package/doc/images/entity.png +0 -0
- package/doc/multitouch.md +0 -58
- package/doc/nodejs.md +0 -142
- package/doc/scene.md +0 -44
- package/doc/text.md +0 -156
- package/examples/server/client.html +0 -31
- package/examples/server/server.js +0 -16
- package/examples/tiled_server/client.html +0 -52
- package/examples/tiled_server/images/tiles_spritesheet.png +0 -0
- package/examples/tiled_server/server/map.json +0 -50
- package/examples/tiled_server/server/map.tmx +0 -16
- package/examples/tiled_server/server/server.js +0 -16
- package/extends/Animation.js +0 -910
- package/extends/Effect.js +0 -252
- package/extends/Gleed2d.js +0 -252
- package/extends/Hit.js +0 -1509
- package/extends/Input.js +0 -699
- package/extends/Marshal.js +0 -716
- package/extends/Scrolling.js +0 -388
- package/extends/Soundmanager2.js +0 -5466
- package/extends/Spritesheet.js +0 -196
- package/extends/Text.js +0 -366
- package/extends/Tiled.js +0 -403
- package/extends/Window.js +0 -575
- package/extends/gamepad.js +0 -397
- package/extends/socket.io.min.js +0 -2
- package/extends/swf/soundmanager2.swf +0 -0
- package/extends/swf/soundmanager2_debug.swf +0 -0
- package/extends/swf/soundmanager2_flash9.swf +0 -0
- package/extends/swf/soundmanager2_flash9_debug.swf +0 -0
- package/extends/swf/soundmanager2_flash_xdomain.zip +0 -0
- package/extends/workers/transition.js +0 -43
- package/index.js +0 -46
- package/license.txt +0 -19
- package/readme.md +0 -483
package/.cursorrules
ADDED
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: CanvasEngine CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- '*'
|
|
7
|
+
paths-ignore:
|
|
8
|
+
- 'docs/**'
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- '*'
|
|
12
|
+
paths-ignore:
|
|
13
|
+
- 'docs/**'
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
tests:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
node-version: [20.x]
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v3
|
|
23
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
24
|
+
uses: actions/setup-node@v3
|
|
25
|
+
with:
|
|
26
|
+
node-version: ${{ matrix.node-version }}
|
|
27
|
+
cache: 'npm'
|
|
28
|
+
- run: npm i
|
|
29
|
+
- run: npm test
|
package/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# CanvasEngine - A reactive HTML5 Canvas management library built on top of PixiJS
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
CanvasEngine is a reactive HTML5 Canvas management library built on top of PixiJS. It provides a component-oriented approach to canvas rendering, similar to modern frontend frameworks.
|
|
6
|
+
|
|
7
|
+
Features:
|
|
8
|
+
- Reactive components
|
|
9
|
+
- Use flex in Canvas !
|
|
10
|
+
- Easy Animation system
|
|
11
|
+
- Keyboard, Gamepad et Virtual Joystick
|
|
12
|
+
- Tiled Map Editor integration
|
|
13
|
+
- Particle Emitter
|
|
14
|
+
- Audio System
|
|
15
|
+
|
|
16
|
+
## Note: Performance Comparison with Pixi React
|
|
17
|
+
|
|
18
|
+
CanvasEngine offers significant performance advantages over Pixi React. While Pixi React relies on React's detection cycles in addition to Pixi's traversal, which can be resource-intensive, CanvasEngine takes a more granular approach. It only updates the specific elements that have changed, resulting in more efficient rendering and better overall performance.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx degit RSamaium/CanvasEngine/starter my-project
|
|
24
|
+
cd my-project
|
|
25
|
+
npm install
|
|
26
|
+
npm run dev # and go to localhost:5173
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Documentation
|
|
30
|
+
|
|
31
|
+
https://canvasengine.net
|
|
32
|
+
|
|
33
|
+
## Example:
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<Container flexDirection="column" width="500px">
|
|
37
|
+
<Sprite
|
|
38
|
+
image="/assets/logo.png"
|
|
39
|
+
anchor="0.5"
|
|
40
|
+
rotation
|
|
41
|
+
scale
|
|
42
|
+
@pointerenter={onEnter}
|
|
43
|
+
@pointerleave={onLeave}
|
|
44
|
+
/>
|
|
45
|
+
<Text text size="70" fontFamily="Helvetica" x="90" y="-30" />
|
|
46
|
+
</Container>
|
|
47
|
+
|
|
48
|
+
<script>
|
|
49
|
+
import { signal, tick, animatedSignal, Easing } from "canvasengine";
|
|
50
|
+
|
|
51
|
+
const { text } = defineProps();
|
|
52
|
+
const rotation = signal(0);
|
|
53
|
+
const scale = animatedSignal(1, {
|
|
54
|
+
duration: 300,
|
|
55
|
+
ease: Easing.easeInOut,
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
tick(() => {
|
|
59
|
+
rotation.update(rotation => rotation + 0.01);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const onEnter = () => {
|
|
63
|
+
scale.set(1.5);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const onLeave = () => {
|
|
67
|
+
scale.set(1);
|
|
68
|
+
};
|
|
69
|
+
</script>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Contributing
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
git clone https://github.com/RSamaium/CanvasEngine.git
|
|
76
|
+
cd CanvasEngine
|
|
77
|
+
npm install
|
|
78
|
+
npm run dev
|
|
79
|
+
```
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// src/compiler/vite.ts
|
|
2
|
+
import { createFilter } from "vite";
|
|
3
|
+
import { parse } from "acorn";
|
|
4
|
+
import fs from "fs";
|
|
5
|
+
import pkg from "peggy";
|
|
6
|
+
import path from "path";
|
|
7
|
+
import * as ts from "typescript";
|
|
8
|
+
import { fileURLToPath } from "url";
|
|
9
|
+
var { generate } = pkg;
|
|
10
|
+
var DEV_SRC = "../../src";
|
|
11
|
+
function canvasengine() {
|
|
12
|
+
const filter = createFilter("**/*.ce");
|
|
13
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
14
|
+
const __dirname = path.dirname(__filename);
|
|
15
|
+
const grammar = fs.readFileSync(
|
|
16
|
+
path.join(__dirname, "grammar.pegjs").replace("dist/compiler/grammar.pegjs", "src/compiler/grammar.pegjs"),
|
|
17
|
+
"utf8"
|
|
18
|
+
);
|
|
19
|
+
const parser = generate(grammar);
|
|
20
|
+
const isDev = process.env.NODE_ENV === "development";
|
|
21
|
+
const FLAG_COMMENT = "/*--[TPL]--*/";
|
|
22
|
+
const PRIMITIVE_COMPONENTS = [
|
|
23
|
+
"Canvas",
|
|
24
|
+
"Sprite",
|
|
25
|
+
"Text",
|
|
26
|
+
"Joystick",
|
|
27
|
+
"Viewport",
|
|
28
|
+
"Graphics",
|
|
29
|
+
"Container",
|
|
30
|
+
"ImageMap",
|
|
31
|
+
"NineSliceSprite",
|
|
32
|
+
"Rect",
|
|
33
|
+
"Circle",
|
|
34
|
+
"svg"
|
|
35
|
+
];
|
|
36
|
+
return {
|
|
37
|
+
name: "vite-plugin-ce",
|
|
38
|
+
transform(code, id) {
|
|
39
|
+
if (!filter(id)) return;
|
|
40
|
+
const scriptMatch = code.match(/<script>([\s\S]*?)<\/script>/);
|
|
41
|
+
let scriptContent = scriptMatch ? scriptMatch[1].trim() : "";
|
|
42
|
+
let template = code.replace(/<script>[\s\S]*?<\/script>/, "").replace(/^\s+|\s+$/g, "");
|
|
43
|
+
template = template.replace(/<svg>([\s\S]*?)<\/svg>/g, (match, content) => {
|
|
44
|
+
return `<Svg content="${content.trim()}" />`;
|
|
45
|
+
});
|
|
46
|
+
const parsedTemplate = parser.parse(template);
|
|
47
|
+
scriptContent += FLAG_COMMENT + parsedTemplate;
|
|
48
|
+
let transpiledCode = ts.transpileModule(scriptContent, {
|
|
49
|
+
compilerOptions: {
|
|
50
|
+
module: ts.ModuleKind.Preserve
|
|
51
|
+
}
|
|
52
|
+
}).outputText;
|
|
53
|
+
transpiledCode = transpiledCode.split(FLAG_COMMENT)[0];
|
|
54
|
+
const parsed = parse(transpiledCode, {
|
|
55
|
+
sourceType: "module",
|
|
56
|
+
ecmaVersion: 2020
|
|
57
|
+
});
|
|
58
|
+
const imports = parsed.body.filter(
|
|
59
|
+
(node) => node.type === "ImportDeclaration"
|
|
60
|
+
);
|
|
61
|
+
const nonImportCode = parsed.body.filter((node) => node.type !== "ImportDeclaration").map((node) => transpiledCode.slice(node.start, node.end)).join("\n");
|
|
62
|
+
let importsCode = imports.map((imp) => {
|
|
63
|
+
let importCode = transpiledCode.slice(imp.start, imp.end);
|
|
64
|
+
if (isDev && importCode.includes("from 'canvasengine'")) {
|
|
65
|
+
importCode = importCode.replace(
|
|
66
|
+
"from 'canvasengine'",
|
|
67
|
+
`from '${DEV_SRC}'`
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
return importCode;
|
|
71
|
+
}).join("\n");
|
|
72
|
+
const requiredImports = ["h", "computed", "cond", "loop"];
|
|
73
|
+
const missingImports = requiredImports.filter(
|
|
74
|
+
(importName) => !imports.some(
|
|
75
|
+
(imp) => imp.specifiers && imp.specifiers.some(
|
|
76
|
+
(spec) => spec.type === "ImportSpecifier" && spec.imported && "name" in spec.imported && spec.imported.name === importName
|
|
77
|
+
)
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
if (missingImports.length > 0) {
|
|
81
|
+
const additionalImportCode = `import { ${missingImports.join(
|
|
82
|
+
", "
|
|
83
|
+
)} } from ${isDev ? `'${DEV_SRC}'` : "'canvasengine'"};`;
|
|
84
|
+
importsCode = `${additionalImportCode}
|
|
85
|
+
${importsCode}`;
|
|
86
|
+
}
|
|
87
|
+
const primitiveImports = PRIMITIVE_COMPONENTS.filter(
|
|
88
|
+
(component) => parsedTemplate.includes(`h(${component}`)
|
|
89
|
+
);
|
|
90
|
+
primitiveImports.forEach((component) => {
|
|
91
|
+
const importStatement = `import { ${component} } from ${isDev ? `'${DEV_SRC}'` : "'canvasengine'"};`;
|
|
92
|
+
if (!importsCode.includes(importStatement)) {
|
|
93
|
+
importsCode = `${importStatement}
|
|
94
|
+
${importsCode}`;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
const output = String.raw`
|
|
98
|
+
${importsCode}
|
|
99
|
+
import { useProps, useDefineProps } from ${isDev ? `'${DEV_SRC}'` : "'canvasengine'"}
|
|
100
|
+
|
|
101
|
+
export default function component($$props) {
|
|
102
|
+
const $props = useProps($$props)
|
|
103
|
+
const defineProps = useDefineProps($$props)
|
|
104
|
+
${nonImportCode}
|
|
105
|
+
let $this = ${parsedTemplate}
|
|
106
|
+
return $this
|
|
107
|
+
}
|
|
108
|
+
`;
|
|
109
|
+
return {
|
|
110
|
+
code: output,
|
|
111
|
+
map: null
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
canvasengine as default
|
|
118
|
+
};
|
|
119
|
+
//# sourceMappingURL=vite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/compiler/vite.ts"],"sourcesContent":["import { createFilter } from \"vite\";\nimport { parse } from \"acorn\";\nimport fs from \"fs\";\nimport pkg from \"peggy\";\nimport path from \"path\";\nimport * as ts from \"typescript\"; // Import TypeScript package\nimport { fileURLToPath } from 'url';\n\nconst { generate } = pkg;\n\nconst DEV_SRC = \"../../src\"\n\nexport default function canvasengine() {\n const filter = createFilter(\"**/*.ce\");\n\n // Convert import.meta.url to a file path\n const __filename = fileURLToPath(import.meta.url);\n const __dirname = path.dirname(__filename);\n\n const grammar = fs.readFileSync(\n path.join(__dirname, \"grammar.pegjs\").replace(\"dist/compiler/grammar.pegjs\", \"src/compiler/grammar.pegjs\"), \n \"utf8\");\n const parser = generate(grammar);\n const isDev = process.env.NODE_ENV === \"development\";\n const FLAG_COMMENT = \"/*--[TPL]--*/\";\n\n const PRIMITIVE_COMPONENTS = [\n \"Canvas\",\n \"Sprite\",\n \"Text\",\n \"Joystick\",\n \"Viewport\",\n \"Graphics\",\n \"Container\",\n \"ImageMap\",\n \"NineSliceSprite\",\n \"Rect\",\n \"Circle\",\n \"svg\"\n ];\n\n return {\n name: \"vite-plugin-ce\",\n transform(code: string, id: string) {\n if (!filter(id)) return;\n\n // Extract the script content\n const scriptMatch = code.match(/<script>([\\s\\S]*?)<\\/script>/);\n let scriptContent = scriptMatch ? scriptMatch[1].trim() : \"\";\n \n // Transform SVG tags to Svg components\n let template = code.replace(/<script>[\\s\\S]*?<\\/script>/, \"\")\n .replace(/^\\s+|\\s+$/g, '');\n \n // Add SVG transformation\n template = template.replace(/<svg>([\\s\\S]*?)<\\/svg>/g, (match, content) => {\n return `<Svg content=\"${content.trim()}\" />`;\n });\n \n const parsedTemplate = parser.parse(template);\n\n // trick to avoid typescript remove imports in scriptContent\n scriptContent += FLAG_COMMENT + parsedTemplate\n\n let transpiledCode = ts.transpileModule(scriptContent, {\n compilerOptions: {\n module: ts.ModuleKind.Preserve,\n },\n }).outputText;\n\n // remove code after /*---*/\n transpiledCode = transpiledCode.split(FLAG_COMMENT)[0]\n\n // Use Acorn to parse the script content\n const parsed = parse(transpiledCode, {\n sourceType: \"module\",\n ecmaVersion: 2020,\n });\n\n // Extract imports\n const imports = parsed.body.filter(\n (node) => node.type === \"ImportDeclaration\"\n );\n\n // Extract non-import statements from scriptContent\n const nonImportCode = parsed.body\n .filter((node) => node.type !== \"ImportDeclaration\")\n .map((node) => transpiledCode.slice(node.start, node.end))\n .join(\"\\n\");\n\n let importsCode = imports\n .map((imp) => {\n let importCode = transpiledCode.slice(imp.start, imp.end);\n if (isDev && importCode.includes(\"from 'canvasengine'\")) {\n importCode = importCode.replace(\n \"from 'canvasengine'\",\n `from '${DEV_SRC}'`\n );\n }\n return importCode;\n })\n .join(\"\\n\");\n\n // Define an array for required imports\n const requiredImports = [\"h\", \"computed\", \"cond\", \"loop\"];\n\n // Check for missing imports\n const missingImports = requiredImports.filter(\n (importName) =>\n !imports.some(\n (imp) =>\n imp.specifiers &&\n imp.specifiers.some(\n (spec) =>\n spec.type === \"ImportSpecifier\" &&\n spec.imported && \n 'name' in spec.imported &&\n spec.imported.name === importName\n )\n )\n );\n\n // Add missing imports\n if (missingImports.length > 0) {\n const additionalImportCode = `import { ${missingImports.join(\n \", \"\n )} } from ${isDev ? `'${DEV_SRC}'` : \"'canvasengine'\"};`;\n importsCode = `${additionalImportCode}\\n${importsCode}`;\n }\n\n // Check for primitive components in parsedTemplate\n const primitiveImports = PRIMITIVE_COMPONENTS.filter((component) =>\n parsedTemplate.includes(`h(${component}`)\n );\n\n // Add missing imports for primitive components\n primitiveImports.forEach((component) => {\n const importStatement = `import { ${component} } from ${\n isDev ? `'${DEV_SRC}'` : \"'canvasengine'\"\n };`;\n if (!importsCode.includes(importStatement)) {\n importsCode = `${importStatement}\\n${importsCode}`;\n }\n });\n\n // Generate the output\n const output = String.raw`\n ${importsCode}\n import { useProps, useDefineProps } from ${isDev ? `'${DEV_SRC}'` : \"'canvasengine'\"}\n\n export default function component($$props) {\n const $props = useProps($$props)\n const defineProps = useDefineProps($$props)\n ${nonImportCode}\n let $this = ${parsedTemplate}\n return $this\n }\n `;\n\n return {\n code: output,\n map: null,\n };\n },\n };\n}\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,SAAS,aAAa;AACtB,OAAO,QAAQ;AACf,OAAO,SAAS;AAChB,OAAO,UAAU;AACjB,YAAY,QAAQ;AACpB,SAAS,qBAAqB;AAE9B,IAAM,EAAE,SAAS,IAAI;AAErB,IAAM,UAAU;AAED,SAAR,eAAgC;AACrC,QAAM,SAAS,aAAa,SAAS;AAGrC,QAAM,aAAa,cAAc,YAAY,GAAG;AAChD,QAAM,YAAY,KAAK,QAAQ,UAAU;AAEzC,QAAM,UAAU,GAAG;AAAA,IACjB,KAAK,KAAK,WAAW,eAAe,EAAE,QAAQ,+BAA+B,4BAA4B;AAAA,IAC3G;AAAA,EAAM;AACN,QAAM,SAAS,SAAS,OAAO;AAC/B,QAAM,QAAQ,QAAQ,IAAI,aAAa;AACvC,QAAM,eAAe;AAErB,QAAM,uBAAuB;AAAA,IAC3B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,SAAO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