@puzzmo/sdk 1.0.81 → 1.0.82
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/analytics.d.ts.map +1 -1
- package/dist/bootstrapPayload.d.ts.map +1 -1
- package/dist/bootstrapPayload.spec.d.ts.map +1 -1
- package/dist/bundles.cjs +1 -1
- package/dist/bundles.cjs.map +1 -1
- package/dist/bundles.d.ts +10 -2
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +2 -2
- package/dist/bundles.js.map +1 -1
- package/dist/contracts.d.ts.map +1 -1
- package/dist/createSimulator-CIE72Xs2.cjs +2233 -0
- package/dist/createSimulator-CIE72Xs2.cjs.map +1 -0
- package/dist/{createSimulator-2M7vXzRZ.js → createSimulator-Dz1KYZ25.js} +1579 -596
- package/dist/createSimulator-Dz1KYZ25.js.map +1 -0
- package/dist/easing.d.ts +6 -0
- package/dist/easing.d.ts.map +1 -0
- package/dist/editor.d.ts +25 -3
- package/dist/editor.d.ts.map +1 -1
- package/dist/fontFiles.gen.d.ts.map +1 -1
- package/dist/fonts-CP_kAAac.js +83 -0
- package/dist/fonts-CP_kAAac.js.map +1 -0
- package/dist/fonts-CS5qdLf3.cjs +3 -0
- package/dist/fonts-CS5qdLf3.cjs.map +1 -0
- package/dist/fonts.cjs +1 -3
- package/dist/fonts.d.ts +2 -0
- package/dist/fonts.d.ts.map +1 -1
- package/dist/fonts.js +2 -83
- package/dist/gameTracker.d.ts.map +1 -1
- package/dist/global.d.ts.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inputs/decoder.d.ts.map +1 -1
- package/dist/inputs/encoder.d.ts.map +1 -1
- package/dist/inputs/encodings.d.ts.map +1 -1
- package/dist/inputs/index.d.ts.map +1 -1
- package/dist/inputs/inputStringEncoder.spec.d.ts.map +1 -1
- package/dist/inputs/migration.d.ts.map +1 -1
- package/dist/inputs/types.d.ts.map +1 -1
- package/dist/keyboard.d.ts.map +1 -1
- package/dist/keyboard.spec.d.ts.map +1 -1
- package/dist/{lua-DKb2Tu2V.js → lua-B8exrfmB.js} +1 -1
- package/dist/{lua-DKb2Tu2V.js.map → lua-B8exrfmB.js.map} +1 -1
- package/dist/{lua-CclI-QKD.cjs → lua-C5r7UXeR.cjs} +1 -1
- package/dist/{lua-CclI-QKD.cjs.map → lua-C5r7UXeR.cjs.map} +1 -1
- package/dist/pico8/channel.d.ts.map +1 -1
- package/dist/pico8/index.cjs +1 -1
- package/dist/pico8/index.d.ts.map +1 -1
- package/dist/pico8/index.js +1 -1
- package/dist/pico8/lua.d.ts.map +1 -1
- package/dist/pico8/palette.d.ts.map +1 -1
- package/dist/pico8/pico8.spec.d.ts.map +1 -1
- package/dist/pico8/protocol.d.ts.map +1 -1
- package/dist/pico8/vitePlugin.d.ts.map +1 -1
- package/dist/plugins.d.ts.map +1 -1
- package/dist/plugins.spec.d.ts.map +1 -1
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.gameCompleted.spec.d.ts.map +1 -1
- package/dist/sdk.gameReady.spec.d.ts.map +1 -1
- package/dist/sdk.pause.spec.d.ts.map +1 -1
- package/dist/sdk.session.spec.d.ts.map +1 -1
- package/dist/settings.spec.d.ts.map +1 -1
- package/dist/simulator/checklistProgress.d.ts.map +1 -1
- package/dist/simulator/checklistProgress.spec.d.ts.map +1 -1
- package/dist/simulator/createSimulator.d.ts.map +1 -1
- package/dist/simulator/dockedKeyboard.d.ts.map +1 -1
- package/dist/simulator/fixtures.d.ts.map +1 -1
- package/dist/simulator/index.cjs +1 -1
- package/dist/simulator/index.d.ts.map +1 -1
- package/dist/simulator/index.js +2 -1
- package/dist/simulator/marker.d.ts.map +1 -1
- package/dist/simulator/messaging.d.ts.map +1 -1
- package/dist/simulator/normalizeThumbnail.d.ts.map +1 -1
- package/dist/simulator/pmmgOverlay.d.ts +36 -0
- package/dist/simulator/pmmgOverlay.d.ts.map +1 -0
- package/dist/simulator/pmmgOverlay.spec.d.ts +2 -0
- package/dist/simulator/pmmgOverlay.spec.d.ts.map +1 -0
- package/dist/simulator/pmmgRenderer.d.ts +86 -0
- package/dist/simulator/pmmgRenderer.d.ts.map +1 -0
- package/dist/simulator/pmmgRenderer.spec.d.ts +2 -0
- package/dist/simulator/pmmgRenderer.spec.d.ts.map +1 -0
- package/dist/simulator/standalone.cjs +1 -1
- package/dist/simulator/standalone.cjs.map +1 -1
- package/dist/simulator/standalone.d.ts.map +1 -1
- package/dist/simulator/standalone.js +2 -1
- package/dist/simulator/standalone.js.map +1 -1
- package/dist/simulator/state.d.ts +19 -0
- package/dist/simulator/state.d.ts.map +1 -1
- package/dist/simulator/state.spec.d.ts.map +1 -1
- package/dist/simulator/styles.d.ts +1 -1
- package/dist/simulator/styles.d.ts.map +1 -1
- package/dist/simulator/types.d.ts +5 -0
- package/dist/simulator/types.d.ts.map +1 -1
- package/dist/simulator/views/AuthView.d.ts.map +1 -1
- package/dist/simulator/views/ChecklistView.d.ts.map +1 -1
- package/dist/simulator/views/CheckpointsView.d.ts.map +1 -1
- package/dist/simulator/views/CtrlView.d.ts.map +1 -1
- package/dist/simulator/views/DataView.d.ts.map +1 -1
- package/dist/simulator/views/DoneView.d.ts.map +1 -1
- package/dist/simulator/views/FeaturesView.d.ts.map +1 -1
- package/dist/simulator/views/HostView.d.ts.map +1 -1
- package/dist/simulator/views/KeyboardView.d.ts.map +1 -1
- package/dist/simulator/views/MsgsView.d.ts.map +1 -1
- package/dist/simulator/views/PmmgView.d.ts +7 -0
- package/dist/simulator/views/PmmgView.d.ts.map +1 -0
- package/dist/simulator/views/SettingsView.d.ts.map +1 -1
- package/dist/simulator/views/SoundView.d.ts.map +1 -1
- package/dist/simulator/views/ThemeView.d.ts.map +1 -1
- package/dist/simulator/views/ThumbView.d.ts.map +1 -1
- package/dist/simulator/views/index.d.ts +1 -0
- package/dist/simulator/views/index.d.ts.map +1 -1
- package/dist/svgJSX.d.ts.map +1 -1
- package/dist/tableBoard-B0I9wVQq.js +635 -0
- package/dist/tableBoard-B0I9wVQq.js.map +1 -0
- package/dist/tableBoard-CLDBwRYs.cjs +2 -0
- package/dist/tableBoard-CLDBwRYs.cjs.map +1 -0
- package/dist/tableBoard.cjs +1 -0
- package/dist/tableBoard.d.ts +138 -0
- package/dist/tableBoard.d.ts.map +1 -0
- package/dist/tableBoard.js +2 -0
- package/dist/tableBoardScene.d.ts +21 -0
- package/dist/tableBoardScene.d.ts.map +1 -0
- package/dist/themes.d.ts +16 -16
- package/dist/themes.d.ts.map +1 -1
- package/dist/types.d.ts +161 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/vite.cjs +3 -3
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.ts +20 -0
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +72 -16
- package/dist/vite.js.map +1 -1
- package/package.json +5 -5
- package/dist/createSimulator-2M7vXzRZ.js.map +0 -1
- package/dist/createSimulator-B4QlohUV.cjs +0 -1930
- package/dist/createSimulator-B4QlohUV.cjs.map +0 -1
- package/dist/fonts.cjs.map +0 -1
- package/dist/fonts.js.map +0 -1
- package/dist/thumbnailMotion.cjs +0 -5
- package/dist/thumbnailMotion.cjs.map +0 -1
- package/dist/thumbnailMotion.d.ts +0 -119
- package/dist/thumbnailMotion.d.ts.map +0 -1
- package/dist/thumbnailMotion.js +0 -480
- package/dist/thumbnailMotion.js.map +0 -1
- package/dist/thumbnailMotion.spec.d.ts +0 -2
- package/dist/thumbnailMotion.spec.d.ts.map +0 -1
package/dist/analytics.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sources":["../src/analytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;;;;;;;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AAiB,kBAAmB,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,KAAG,CAAC,MAAM,IAAI,CAkB7F,CAAA;AAoBD,oGAAoG;AACpG,eAAO,MAAM,qBAAqB,cAAe,iBAAiB,GAAG,IAAI,WAAW,MAAM,KAAG,oBAAoB,GAAG,IAuBnH,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrapPayload.d.ts","
|
|
1
|
+
{"version":3,"file":"bootstrapPayload.d.ts","sources":["../src/bootstrapPayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,iBAAiB,EAAoB,MAAM,SAAS,CAAA;AAcjF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAAc,OAAO,KAAG,iBAWtD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrapPayload.spec.d.ts","
|
|
1
|
+
{"version":3,"file":"bootstrapPayload.spec.d.ts","sources":["../src/bootstrapPayload.spec.ts"],"names":[],"mappings":""}
|
package/dist/bundles.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=e=>e,t=e=>e;exports.createAppBundle=e,exports.createServerBundle=t;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=e=>e,t=e=>e,n=e=>e;exports.createAppBundle=e,exports.createPmmgBundle=n,exports.createServerBundle=t;
|
|
2
2
|
//# sourceMappingURL=bundles.cjs.map
|
package/dist/bundles.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundles.cjs","names":[],"sources":["../src/bundles.ts"],"sourcesContent":["/**\n * Helpers for writing a game's bundles, so the public app bundle and the private server bundle are\n * written the same way. Free of side effects, so importing them never pulls the SDK into a bundle.\n *\n * ```ts\n * // src/appBundle.ts, built by appBundlePlugin\n * export default createAppBundle({ renderThumbnail })\n *\n * // src/serverBundle.ts, built by serverBundlePlugin\n * export default createServerBundle({ achievements: { describe, replayRound } })\n * ```\n */\nimport type { AppBundle, ServerBundle } from \"./types\"\n\n/** Types a game's app bundle: the public code Puzzmo and players' browsers call, such as its thumbnail renderer */\nexport const createAppBundle = <T extends AppBundle>(bundle: T): T => bundle\n\n/** Types a game's server bundle: the private code only Puzzmo calls, such as the replay achievements read */\nexport const createServerBundle = <T extends ServerBundle>(bundle: T): T => bundle\n\nexport type {\n AchievementCounterDescription,\n AchievementEventDescription,\n AchievementFactDescription,\n AchievementsDescription,\n AchievementsServerCapability,\n AppBundle,\n RoundReplayInput,\n RoundReplayResult,\n ServerBundle,\n ServerCallConfig,\n ThumbnailConfig,\n ThumbnailResult,\n} from \"./types\"\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundles.cjs","names":[],"sources":["../src/bundles.ts"],"sourcesContent":["/**\n * Helpers for writing a game's bundles, so the public app bundle and the private server bundle are\n * written the same way. Free of side effects, so importing them never pulls the SDK into a bundle.\n *\n * ```ts\n * // src/appBundle.ts, built by appBundlePlugin\n * export default createAppBundle({ renderThumbnail })\n *\n * // src/serverBundle.ts, built by serverBundlePlugin\n * export default createServerBundle({ achievements: { describe, replayRound } })\n *\n * // src/pmmgBundle.ts, built by pmmgBundlePlugin\n * export default createPmmgBundle({ table: { contract: 1, render } })\n * ```\n */\nimport type { AppBundle, PmmgBundle, ServerBundle } from \"./types\"\n\n/** Types a game's app bundle: the public code Puzzmo and players' browsers call, such as its thumbnail renderer */\nexport const createAppBundle = <T extends AppBundle>(bundle: T): T => bundle\n\n/** Types a game's server bundle: the private code only Puzzmo calls, such as the replay achievements read */\nexport const createServerBundle = <T extends ServerBundle>(bundle: T): T => bundle\n\n/**\n * Types a game's pmmg bundle: public code Puzzmo's pages run in a strict sandbox for its passively massively multiplayer side, like its\n * boards at the table\n */\nexport const createPmmgBundle = <T extends PmmgBundle>(bundle: T): T => bundle\n\nexport type {\n AchievementCounterDescription,\n AchievementEventDescription,\n AchievementFactDescription,\n AchievementsDescription,\n AchievementsServerCapability,\n AppBundle,\n PmmgBundle,\n RoundReplayInput,\n RoundReplayResult,\n ServerBundle,\n ServerCallConfig,\n TableBoardAnimation,\n TableBoardBackgroundStyle,\n TableBoardBlend,\n TableBoardCapability,\n TableBoardEffect,\n TableBoardFidelity,\n TableBoardKeyframe,\n TableBoardNode,\n TableBoardScene,\n TableBoardSpriteBox,\n TableBoardSprites,\n TableBoardTiming,\n TableBoardUpdate,\n ThumbnailConfig,\n ThumbnailResult,\n} from \"./types\"\n"],"mappings":"mEAkBA,MAAa,EAAwC,GAAiB,EAGzD,EAA8C,GAAiB,EAM/D,EAA0C,GAAiB"}
|
package/dist/bundles.d.ts
CHANGED
|
@@ -8,12 +8,20 @@
|
|
|
8
8
|
*
|
|
9
9
|
* // src/serverBundle.ts, built by serverBundlePlugin
|
|
10
10
|
* export default createServerBundle({ achievements: { describe, replayRound } })
|
|
11
|
+
*
|
|
12
|
+
* // src/pmmgBundle.ts, built by pmmgBundlePlugin
|
|
13
|
+
* export default createPmmgBundle({ table: { contract: 1, render } })
|
|
11
14
|
* ```
|
|
12
15
|
*/
|
|
13
|
-
import type { AppBundle, ServerBundle } from "./types";
|
|
16
|
+
import type { AppBundle, PmmgBundle, ServerBundle } from "./types";
|
|
14
17
|
/** Types a game's app bundle: the public code Puzzmo and players' browsers call, such as its thumbnail renderer */
|
|
15
18
|
export declare const createAppBundle: <T extends AppBundle>(bundle: T) => T;
|
|
16
19
|
/** Types a game's server bundle: the private code only Puzzmo calls, such as the replay achievements read */
|
|
17
20
|
export declare const createServerBundle: <T extends ServerBundle>(bundle: T) => T;
|
|
18
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Types a game's pmmg bundle: public code Puzzmo's pages run in a strict sandbox for its passively massively multiplayer side, like its
|
|
23
|
+
* boards at the table
|
|
24
|
+
*/
|
|
25
|
+
export declare const createPmmgBundle: <T extends PmmgBundle>(bundle: T) => T;
|
|
26
|
+
export type { AchievementCounterDescription, AchievementEventDescription, AchievementFactDescription, AchievementsDescription, AchievementsServerCapability, AppBundle, PmmgBundle, RoundReplayInput, RoundReplayResult, ServerBundle, ServerCallConfig, TableBoardAnimation, TableBoardBackgroundStyle, TableBoardBlend, TableBoardCapability, TableBoardEffect, TableBoardFidelity, TableBoardKeyframe, TableBoardNode, TableBoardScene, TableBoardSpriteBox, TableBoardSprites, TableBoardTiming, TableBoardUpdate, ThumbnailConfig, ThumbnailResult, } from "./types";
|
|
19
27
|
//# sourceMappingURL=bundles.d.ts.map
|
package/dist/bundles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundles.d.ts","
|
|
1
|
+
{"version":3,"file":"bundles.d.ts","sources":["../src/bundles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAElE,mHAAmH;AACnH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,SAAS,UAAU,CAAC,KAAG,CAAW,CAAA;AAE5E,6GAA6G;AAC7G,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,YAAY,UAAU,CAAC,KAAG,CAAW,CAAA;AAElF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,UAAU,UAAU,CAAC,KAAG,CAAW,CAAA;AAE9E,YAAY,EACV,6BAA6B,EAC7B,2BAA2B,EAC3B,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAe,GAChB,MAAM,SAAS,CAAA"}
|
package/dist/bundles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Types a game's app bundle: the public code Puzzmo and players' browsers call, such as its thumbnail renderer */
|
|
2
|
-
const e = (e) => e, t = (e) => e;
|
|
3
|
-
export { e as createAppBundle, t as createServerBundle };
|
|
2
|
+
const e = (e) => e, t = (e) => e, n = (e) => e;
|
|
3
|
+
export { e as createAppBundle, n as createPmmgBundle, t as createServerBundle };
|
|
4
4
|
|
|
5
5
|
//# sourceMappingURL=bundles.js.map
|
package/dist/bundles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundles.js","names":[],"sources":["../src/bundles.ts"],"sourcesContent":["/**\n * Helpers for writing a game's bundles, so the public app bundle and the private server bundle are\n * written the same way. Free of side effects, so importing them never pulls the SDK into a bundle.\n *\n * ```ts\n * // src/appBundle.ts, built by appBundlePlugin\n * export default createAppBundle({ renderThumbnail })\n *\n * // src/serverBundle.ts, built by serverBundlePlugin\n * export default createServerBundle({ achievements: { describe, replayRound } })\n * ```\n */\nimport type { AppBundle, ServerBundle } from \"./types\"\n\n/** Types a game's app bundle: the public code Puzzmo and players' browsers call, such as its thumbnail renderer */\nexport const createAppBundle = <T extends AppBundle>(bundle: T): T => bundle\n\n/** Types a game's server bundle: the private code only Puzzmo calls, such as the replay achievements read */\nexport const createServerBundle = <T extends ServerBundle>(bundle: T): T => bundle\n\nexport type {\n AchievementCounterDescription,\n AchievementEventDescription,\n AchievementFactDescription,\n AchievementsDescription,\n AchievementsServerCapability,\n AppBundle,\n RoundReplayInput,\n RoundReplayResult,\n ServerBundle,\n ServerCallConfig,\n ThumbnailConfig,\n ThumbnailResult,\n} from \"./types\"\n"],"mappings":";
|
|
1
|
+
{"version":3,"file":"bundles.js","names":[],"sources":["../src/bundles.ts"],"sourcesContent":["/**\n * Helpers for writing a game's bundles, so the public app bundle and the private server bundle are\n * written the same way. Free of side effects, so importing them never pulls the SDK into a bundle.\n *\n * ```ts\n * // src/appBundle.ts, built by appBundlePlugin\n * export default createAppBundle({ renderThumbnail })\n *\n * // src/serverBundle.ts, built by serverBundlePlugin\n * export default createServerBundle({ achievements: { describe, replayRound } })\n *\n * // src/pmmgBundle.ts, built by pmmgBundlePlugin\n * export default createPmmgBundle({ table: { contract: 1, render } })\n * ```\n */\nimport type { AppBundle, PmmgBundle, ServerBundle } from \"./types\"\n\n/** Types a game's app bundle: the public code Puzzmo and players' browsers call, such as its thumbnail renderer */\nexport const createAppBundle = <T extends AppBundle>(bundle: T): T => bundle\n\n/** Types a game's server bundle: the private code only Puzzmo calls, such as the replay achievements read */\nexport const createServerBundle = <T extends ServerBundle>(bundle: T): T => bundle\n\n/**\n * Types a game's pmmg bundle: public code Puzzmo's pages run in a strict sandbox for its passively massively multiplayer side, like its\n * boards at the table\n */\nexport const createPmmgBundle = <T extends PmmgBundle>(bundle: T): T => bundle\n\nexport type {\n AchievementCounterDescription,\n AchievementEventDescription,\n AchievementFactDescription,\n AchievementsDescription,\n AchievementsServerCapability,\n AppBundle,\n PmmgBundle,\n RoundReplayInput,\n RoundReplayResult,\n ServerBundle,\n ServerCallConfig,\n TableBoardAnimation,\n TableBoardBackgroundStyle,\n TableBoardBlend,\n TableBoardCapability,\n TableBoardEffect,\n TableBoardFidelity,\n TableBoardKeyframe,\n TableBoardNode,\n TableBoardScene,\n TableBoardSpriteBox,\n TableBoardSprites,\n TableBoardTiming,\n TableBoardUpdate,\n ThumbnailConfig,\n ThumbnailResult,\n} from \"./types\"\n"],"mappings":";AAkBA,MAAa,KAAwC,MAAiB,GAGzD,KAA8C,MAAiB,GAM/D,KAA0C,MAAiB"}
|
package/dist/contracts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sources":["../src/contracts.ts"],"names":[],"mappings":"AAQA,sDAAsD;AACtD,MAAM,WAAW,QAAQ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