@wasm-gaming/blastem-wasm 0.1.0 → 0.1.2
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 +674 -0
- package/README.md +103 -27
- package/THIRD_PARTY_NOTICES.md +122 -0
- package/dist/blastem/LICENSE +674 -0
- package/dist/blastem/THIRD_PARTY_NOTICES.md +122 -0
- package/dist/blastem/app/app.css +128 -0
- package/dist/blastem/app/app.js +580 -0
- package/dist/blastem/blastem.js +14 -1
- package/dist/blastem/blastem.options.d.ts +65 -7
- package/dist/blastem/blastem.options.d.ts.map +1 -1
- package/dist/blastem/blastem.options.js +35 -16
- package/dist/blastem/blastem.options.js.map +1 -1
- package/dist/blastem/blastem.sdk.d.ts +132 -12
- package/dist/blastem/blastem.sdk.d.ts.map +1 -1
- package/dist/blastem/blastem.sdk.js +587 -131
- package/dist/blastem/blastem.sdk.js.map +1 -1
- package/dist/blastem/blastem.wasm +0 -0
- package/dist/blastem/engine-specs.js +382 -0
- package/package.json +17 -15
- package/src/app/app.css +128 -0
- package/src/app/app.js +580 -0
- package/src/blastem.options.ts +101 -21
- package/src/blastem.sdk.ts +662 -160
- package/dist/blastem/blastem.manifest.d.ts +0 -4
- package/dist/blastem/blastem.manifest.d.ts.map +0 -1
- package/dist/blastem/blastem.manifest.js +0 -25
- package/dist/blastem/blastem.manifest.js.map +0 -1
- package/dist/manifest.json +0 -56
- package/src/blastem.manifest.ts +0 -27
|
@@ -1,10 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* What BlastEm accepts, as types and as data.
|
|
3
|
+
*
|
|
4
|
+
* The four payloads of the wasm-gaming engine contract, closed for this engine, and
|
|
5
|
+
* {@link BLASTEM_SPEC} — the same thing as data the contract's base class reads:
|
|
6
|
+
* every default lives there and nowhere else.
|
|
7
|
+
*/
|
|
8
|
+
import type { EnginePayloads, EngineSpec } from '@wasm-gaming/engine-specs';
|
|
9
|
+
/** Bytes, or a thunk that produces them only when the engine actually needs them. */
|
|
10
|
+
export type BlastemAsset = Uint8Array | ArrayBuffer | null | (() => Uint8Array | ArrayBuffer | null | Promise<Uint8Array | ArrayBuffer | null>);
|
|
11
|
+
/** The engine: fixed for the life of the wasm instance. */
|
|
12
|
+
export interface BlastemConfig {
|
|
13
|
+
/** Console region. `auto` lets BlastEm read it from the ROM header. */
|
|
6
14
|
region?: 'auto' | 'us' | 'eu' | 'jp';
|
|
15
|
+
/** How the picture is scaled to the mount: crisp pixels or linear filtering. */
|
|
16
|
+
renderFilter?: 'pixelated' | 'smooth';
|
|
17
|
+
/** Emscripten glue URL. Defaults to `./blastem.js` next to the SDK. */
|
|
18
|
+
jsUrl?: string;
|
|
19
|
+
/** WASM URL. Defaults to `./blastem.wasm` next to the SDK. */
|
|
20
|
+
wasmUrl?: string;
|
|
7
21
|
}
|
|
8
|
-
|
|
9
|
-
export
|
|
22
|
+
/** The session. BlastEm has no per-session settings worth exposing yet. */
|
|
23
|
+
export type BlastemOptions = Record<string, never>;
|
|
24
|
+
export interface BlastemAssets {
|
|
25
|
+
/** The cartridge: `.bin`, `.gen`, `.md` or `.smd`. Required to start. */
|
|
26
|
+
rom?: BlastemAsset;
|
|
27
|
+
}
|
|
28
|
+
/** Where this engine's files live, and whether they outlive the page. */
|
|
29
|
+
export interface BlastemStorage {
|
|
30
|
+
/**
|
|
31
|
+
* Per-game folder for cartridge saves (SRAM/EEPROM) and save states.
|
|
32
|
+
*
|
|
33
|
+
* Relative to the engine's own folder: the SDK always prefixes `blastem/`, so the
|
|
34
|
+
* files land in OPFS `blastem/<namespace>/` and no namespace can reach another
|
|
35
|
+
* engine's files. Segments are cleaned (`.`/`..` dropped, odd characters → `_`);
|
|
36
|
+
* anything unusable becomes `"default"`. `play.storagePath` gives the result.
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue `"default"`
|
|
39
|
+
*/
|
|
40
|
+
namespace?: string;
|
|
41
|
+
/**
|
|
42
|
+
* `null` keeps nothing: no saves are read or written. Leaving it out (or `'opfs'`)
|
|
43
|
+
* mirrors the save folder to OPFS.
|
|
44
|
+
*/
|
|
45
|
+
persist?: 'opfs' | null;
|
|
46
|
+
}
|
|
47
|
+
/** Engine events beyond the contract's core set. */
|
|
48
|
+
export interface BlastemEvents {
|
|
49
|
+
/** Save files were just written to `blastem/<namespace>/` (names relative to it). */
|
|
50
|
+
saves: {
|
|
51
|
+
files: string[];
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface BlastemPayloads extends EnginePayloads {
|
|
55
|
+
config: BlastemConfig;
|
|
56
|
+
options: BlastemOptions;
|
|
57
|
+
assets: BlastemAssets;
|
|
58
|
+
storage: BlastemStorage;
|
|
59
|
+
events: BlastemEvents;
|
|
60
|
+
}
|
|
61
|
+
/** The native picture, which the SDK scales to fit its mount. */
|
|
62
|
+
export declare const BLASTEM_VIDEO: {
|
|
63
|
+
readonly width: 640;
|
|
64
|
+
readonly height: 480;
|
|
65
|
+
readonly aspect: "4:3";
|
|
66
|
+
};
|
|
67
|
+
export declare const BLASTEM_SPEC: EngineSpec<BlastemPayloads>;
|
|
10
68
|
//# sourceMappingURL=blastem.options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blastem.options.d.ts","sourceRoot":"","sources":["../../src/blastem.options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"blastem.options.d.ts","sourceRoot":"","sources":["../../src/blastem.options.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5E,qFAAqF;AACrF,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,WAAW,GACX,IAAI,GACJ,CAAC,MAAM,UAAU,GAAG,WAAW,GAAG,IAA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TEM_OPTIONS_SCHEMA = {
|
|
6
|
-
type: 'object',
|
|
7
|
-
additionalProperties: false,
|
|
8
|
-
properties: {
|
|
9
|
-
romFileName: {
|
|
10
|
-
type: 'string',
|
|
11
|
-
default: 'game.bin',
|
|
12
|
-
description: 'ROM filename written to Emscripten MEMFS when loading a game.',
|
|
13
|
-
},
|
|
1
|
+
/** The native picture, which the SDK scales to fit its mount. */
|
|
2
|
+
export const BLASTEM_VIDEO = { width: 640, height: 480, aspect: '4:3' };
|
|
3
|
+
export const BLASTEM_SPEC = {
|
|
4
|
+
config: {
|
|
14
5
|
region: {
|
|
15
|
-
type: 'string',
|
|
16
|
-
enum: ['auto', 'us', 'eu', 'jp'],
|
|
17
6
|
default: 'auto',
|
|
18
|
-
|
|
7
|
+
enum: ['auto', 'us', 'eu', 'jp'],
|
|
8
|
+
live: false,
|
|
9
|
+
description: 'Console region; auto reads it from the ROM header.',
|
|
10
|
+
},
|
|
11
|
+
renderFilter: {
|
|
12
|
+
default: 'pixelated',
|
|
13
|
+
enum: ['pixelated', 'smooth'],
|
|
14
|
+
live: true,
|
|
15
|
+
description: 'Scaling: crisp pixels or linear filtering.',
|
|
16
|
+
},
|
|
17
|
+
jsUrl: { live: false, description: 'Emscripten glue URL. Defaults to ./blastem.js.' },
|
|
18
|
+
wasmUrl: { live: false, description: 'WASM URL. Defaults to ./blastem.wasm.' },
|
|
19
|
+
},
|
|
20
|
+
options: {},
|
|
21
|
+
assets: {
|
|
22
|
+
rom: {
|
|
23
|
+
allowedTypes: ['.bin', '.gen', '.md', '.smd'],
|
|
24
|
+
live: false,
|
|
25
|
+
description: 'The Mega Drive / Genesis cartridge. Required to start.',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
storage: {
|
|
29
|
+
namespace: {
|
|
30
|
+
default: 'default',
|
|
31
|
+
live: false,
|
|
32
|
+
description: "Folder for this game's saves, inside the engine's own blastem/ folder (OPFS blastem/<namespace>/).",
|
|
33
|
+
},
|
|
34
|
+
persist: {
|
|
35
|
+
enum: ['opfs', null],
|
|
36
|
+
live: false,
|
|
37
|
+
description: 'null keeps nothing; otherwise saves are mirrored to OPFS.',
|
|
19
38
|
},
|
|
20
39
|
},
|
|
21
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blastem.options.js","sourceRoot":"","sources":["../../src/blastem.options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blastem.options.js","sourceRoot":"","sources":["../../src/blastem.options.ts"],"names":[],"mappings":"AAsEA,iEAAiE;AACjE,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAW,CAAC;AAEjF,MAAM,CAAC,MAAM,YAAY,GAAgC;IACvD,MAAM,EAAE;QACN,MAAM,EAAE;YACN,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;YAChC,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,oDAAoD;SAClE;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,WAAW;YACpB,IAAI,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC;YAC7B,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,4CAA4C;SAC1D;QACD,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,gDAAgD,EAAE;QACrF,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,uCAAuC,EAAE;KAC/E;IACD,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN,GAAG,EAAE;YACH,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;YAC7C,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,wDAAwD;SACtE;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAE;YACT,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,oGAAoG;SAClH;QACD,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;YACpB,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,2DAA2D;SACzE;KACF;CACF,CAAC"}
|
|
@@ -1,14 +1,134 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The engine package's entry point: an `EngineSDK` for BlastEm, the Sega Mega Drive /
|
|
3
|
+
* Genesis emulator.
|
|
4
|
+
*
|
|
5
|
+
* ```js
|
|
6
|
+
* import BlastemSDK from '@wasm-gaming/blastem-wasm';
|
|
7
|
+
*
|
|
8
|
+
* const play = await new BlastemSDK()
|
|
9
|
+
* .assets({ rom: () => readRom() }) // bytes, or a thunk
|
|
10
|
+
* .storage({ namespace: 'old-towers' }) // → OPFS blastem/old-towers/
|
|
11
|
+
* .mount(document.querySelector('#stage'))
|
|
12
|
+
* .start();
|
|
13
|
+
*
|
|
14
|
+
* play.pause('menu'); play.resume('menu');
|
|
15
|
+
* await play.restart(); // soft reset
|
|
16
|
+
* await play.destroy(); // saves flushed, loop stopped, audio closed
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Everything a host drives is the contract's (`@wasm-gaming/engine-specs`); what is
|
|
20
|
+
* this engine's own: {@link BlastemConfig} and friends, owner-aware
|
|
21
|
+
* {@link BlastemPlay.pause} / {@link BlastemPlay.resume}, {@link BlastemPlay.storagePath}
|
|
22
|
+
* and the `saves` event.
|
|
23
|
+
*
|
|
24
|
+
* Saves: the wasm build writes every save of the running game to MEMFS `/save`
|
|
25
|
+
* (upstream's `save_path`, patched). The SDK seeds it from OPFS `blastem/<namespace>/`
|
|
26
|
+
* before boot and mirrors it back after asking BlastEm to flush (`web_persist_save`):
|
|
27
|
+
* every 10 s, on pause, when the page is hidden and on destroy. Upstream only flushed
|
|
28
|
+
* at exit, which a web page never reaches.
|
|
29
|
+
*/
|
|
30
|
+
import { EnginePlayBase, EngineSDKBase, EventEmitter, type EngineInit, type EngineSDKConstructor, type EventsOf } from '@wasm-gaming/engine-specs';
|
|
31
|
+
import { type BlastemOptions, type BlastemPayloads } from './blastem.options.js';
|
|
32
|
+
export type { BlastemAsset, BlastemAssets, BlastemConfig, BlastemEvents, BlastemOptions, BlastemPayloads, BlastemStorage, } from './blastem.options.js';
|
|
33
|
+
export { BLASTEM_SPEC, BLASTEM_VIDEO } from './blastem.options.js';
|
|
34
|
+
/**
|
|
35
|
+
* Where an engine keeps one namespace: `<engineId>/<namespace>`, relative to the OPFS
|
|
36
|
+
* root. Identical to rsdkv4's, written to move verbatim into engine-specs: segments
|
|
37
|
+
* cleaned, `.` and `..` dropped, anything outside `[A-Za-z0-9._-]` → `_`, nothing
|
|
38
|
+
* usable → `default`; a leading `<engineId>/` is stripped once.
|
|
39
|
+
*/
|
|
40
|
+
export declare function storagePath(engineId: string, namespace: unknown): {
|
|
41
|
+
namespace: string;
|
|
42
|
+
path: string;
|
|
43
|
+
prefixed: boolean;
|
|
7
44
|
};
|
|
8
|
-
|
|
9
|
-
declare const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
45
|
+
/** The player's save-state slots: 0-3 (BlastEm numbers 0-9). */
|
|
46
|
+
export declare const STATE_SLOTS = 4;
|
|
47
|
+
/**
|
|
48
|
+
* The *unsaved* suspend point (Classic Mini style): written when the player leaves,
|
|
49
|
+
* offered when they come back, and saved into a numbered slot only when they ask.
|
|
50
|
+
*/
|
|
51
|
+
export declare const AUTO_STATE_SLOT = 9;
|
|
52
|
+
/** One save-state slot. */
|
|
53
|
+
export interface BlastemStateSlot {
|
|
54
|
+
slot: number;
|
|
55
|
+
/** When the state was written, or null for an empty slot. */
|
|
56
|
+
savedAt: Date | null;
|
|
57
|
+
/** The frame saved with it (PNG), when the host handed one over. */
|
|
58
|
+
thumbnail: Blob | null;
|
|
59
|
+
/** Protected: cannot be overwritten or removed until unlocked. */
|
|
60
|
+
locked: boolean;
|
|
61
|
+
}
|
|
62
|
+
/** Save states: BlastEm's numbered slots, kept in the save folder (and OPFS). */
|
|
63
|
+
export interface BlastemStates {
|
|
64
|
+
/** The player's slots, 0-3. */
|
|
65
|
+
list(): BlastemStateSlot[];
|
|
66
|
+
/** Any slot, {@link AUTO_STATE_SLOT} included. */
|
|
67
|
+
get(slot: number): BlastemStateSlot;
|
|
68
|
+
/**
|
|
69
|
+
* Save the running game into `slot`. BlastEm writes at its next sync point, so a
|
|
70
|
+
* paused game runs for a few frames (muted) until the file lands, then pauses again.
|
|
71
|
+
* Resolves once it is written and mirrored to OPFS. Refuses a locked slot.
|
|
72
|
+
*/
|
|
73
|
+
save(slot: number, options?: {
|
|
74
|
+
thumbnail?: Blob | null;
|
|
75
|
+
}): Promise<void>;
|
|
76
|
+
/** Load `slot`; false when it is empty. Applies on the next frame the game runs. */
|
|
77
|
+
load(slot: number): boolean;
|
|
78
|
+
/** Copy a state (and its frame) into another slot — the unsaved point into a numbered one. */
|
|
79
|
+
copy(from: number, to: number): Promise<void>;
|
|
80
|
+
lock(slot: number, locked: boolean): Promise<void>;
|
|
81
|
+
remove(slot: number): Promise<void>;
|
|
82
|
+
}
|
|
83
|
+
/** The live engine: one booted BlastEm and its session. */
|
|
84
|
+
export declare class BlastemPlay extends EnginePlayBase<BlastemPayloads> {
|
|
85
|
+
#private;
|
|
86
|
+
constructor(init?: EngineInit<BlastemPayloads>, events?: EventEmitter<EventsOf<BlastemPayloads>>);
|
|
87
|
+
/** The normalised namespace this session uses. */
|
|
88
|
+
get namespace(): string;
|
|
89
|
+
/** Where this session's saves live, relative to the OPFS root: `blastem/<namespace>`. */
|
|
90
|
+
get storagePath(): string;
|
|
91
|
+
/**
|
|
92
|
+
* The current frame as a PNG, read inside an animation frame (the picture is only
|
|
93
|
+
* there right after the game drew it): take it *before* pausing. Null when there is
|
|
94
|
+
* nothing to read.
|
|
95
|
+
*/
|
|
96
|
+
snapshot(): Promise<Blob | null>;
|
|
97
|
+
/** Save states — see {@link BlastemStates}. */
|
|
98
|
+
get states(): BlastemStates;
|
|
99
|
+
/** Who holds the pause, or null while running. */
|
|
100
|
+
get pausedBy(): string | null;
|
|
101
|
+
/**
|
|
102
|
+
* Freeze emulation and sound. The first caller owns the pause, and only that
|
|
103
|
+
* owner's {@link resume} lifts it, so an overlay cannot resume a game the host had
|
|
104
|
+
* already frozen. Saves are flushed, since a paused game is often a closed one.
|
|
105
|
+
*/
|
|
106
|
+
pause(owner?: string): void;
|
|
107
|
+
resume(owner?: string): void;
|
|
108
|
+
/**
|
|
109
|
+
* Ask BlastEm to write its saves, then copy whatever changed in `/save` to OPFS
|
|
110
|
+
* `blastem/<namespace>/`. Emits `saves` with the files that moved. Safe to call any
|
|
111
|
+
* time; overlapping calls share one flush.
|
|
112
|
+
*/
|
|
113
|
+
flushSaves(): Promise<void>;
|
|
114
|
+
protected mounted(target: HTMLElement): void;
|
|
115
|
+
protected open(_options: BlastemOptions): Promise<void>;
|
|
116
|
+
protected patched(kind: string, patch: object): void;
|
|
117
|
+
protected close(): Promise<void>;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The factory a host constructs: static identity, the configuration chain, and a
|
|
121
|
+
* `start()` that boots BlastEm and opens a session.
|
|
122
|
+
*/
|
|
123
|
+
export declare class BlastemSDK extends EngineSDKBase<BlastemPayloads> {
|
|
124
|
+
static readonly id = "blastem";
|
|
125
|
+
/** Kept in step with package.json by `node scripts/sync-version.mjs`. */
|
|
126
|
+
static readonly version = "0.1.2";
|
|
127
|
+
static readonly name = "BlastEm";
|
|
128
|
+
static readonly description = "BlastEm, the Sega Mega Drive / Genesis emulator by Michael Pavone, compiled to WebAssembly. Ships no games: the player provides the ROM, and it never leaves their browser.";
|
|
129
|
+
protected createPlay(init: EngineInit<BlastemPayloads>, events: EventEmitter<EventsOf<BlastemPayloads>>): BlastemPlay;
|
|
130
|
+
}
|
|
131
|
+
/** CI's conformance line: if this class stops satisfying the contract, `make test` fails. */
|
|
132
|
+
export declare const BLASTEM_ENGINE: EngineSDKConstructor<BlastemPayloads>;
|
|
133
|
+
export default BlastemSDK;
|
|
14
134
|
//# sourceMappingURL=blastem.sdk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blastem.sdk.d.ts","sourceRoot":"","sources":["../../src/blastem.sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"blastem.sdk.d.ts","sourceRoot":"","sources":["../../src/blastem.sdk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EACL,cAAc,EACd,aAAa,EACb,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAgCnE;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,OAAO,GACjB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAaxD;AAmCD,gEAAgE;AAChE,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B;;;GAGG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC,2BAA2B;AAC3B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D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