@despia-native/kernel 0.0.0-stage → 0.3.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 +202 -0
- package/NOTICE +1414 -0
- package/README.md +17 -2
- package/dist/.dsx-build-stamp.json +7 -0
- package/dist/api-cohort.d.ts +27 -0
- package/dist/api-cohort.d.ts.map +1 -0
- package/dist/api-cohort.js +94 -0
- package/dist/api-cohort.js.map +1 -0
- package/dist/api.d.ts +454 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +2442 -0
- package/dist/api.js.map +1 -0
- package/dist/app-consts.d.ts +10 -0
- package/dist/app-consts.d.ts.map +1 -0
- package/dist/app-consts.js +39 -0
- package/dist/app-consts.js.map +1 -0
- package/dist/app-update.d.ts +12 -0
- package/dist/app-update.d.ts.map +1 -0
- package/dist/app-update.js +32 -0
- package/dist/app-update.js.map +1 -0
- package/dist/aria.d.ts +152 -0
- package/dist/aria.d.ts.map +1 -0
- package/dist/aria.js +524 -0
- package/dist/aria.js.map +1 -0
- package/dist/audio-core.d.ts +260 -0
- package/dist/audio-core.d.ts.map +1 -0
- package/dist/audio-core.js +1440 -0
- package/dist/audio-core.js.map +1 -0
- package/dist/audio-edit.d.ts +100 -0
- package/dist/audio-edit.d.ts.map +1 -0
- package/dist/audio-edit.js +489 -0
- package/dist/audio-edit.js.map +1 -0
- package/dist/audio-mix.d.ts +84 -0
- package/dist/audio-mix.d.ts.map +1 -0
- package/dist/audio-mix.js +393 -0
- package/dist/audio-mix.js.map +1 -0
- package/dist/auth-proof.d.ts +145 -0
- package/dist/auth-proof.d.ts.map +1 -0
- package/dist/auth-proof.js +644 -0
- package/dist/auth-proof.js.map +1 -0
- package/dist/availability-explain.d.ts +3 -0
- package/dist/availability-explain.d.ts.map +1 -0
- package/dist/availability-explain.js +322 -0
- package/dist/availability-explain.js.map +1 -0
- package/dist/availability.d.ts +246 -0
- package/dist/availability.d.ts.map +1 -0
- package/dist/availability.js +615 -0
- package/dist/availability.js.map +1 -0
- package/dist/background.d.ts +116 -0
- package/dist/background.d.ts.map +1 -0
- package/dist/background.js +235 -0
- package/dist/background.js.map +1 -0
- package/dist/boot-tables-flag.d.ts +2 -0
- package/dist/boot-tables-flag.d.ts.map +1 -0
- package/dist/boot-tables-flag.js +16 -0
- package/dist/boot-tables-flag.js.map +1 -0
- package/dist/boot-tables.d.ts +40 -0
- package/dist/boot-tables.d.ts.map +1 -0
- package/dist/boot-tables.js +102 -0
- package/dist/boot-tables.js.map +1 -0
- package/dist/border-edges.d.ts +5 -0
- package/dist/border-edges.d.ts.map +1 -0
- package/dist/border-edges.js +47 -0
- package/dist/border-edges.js.map +1 -0
- package/dist/bus.d.ts +1203 -0
- package/dist/bus.d.ts.map +1 -0
- package/dist/bus.js +2647 -0
- package/dist/bus.js.map +1 -0
- package/dist/calendar-core.d.ts +143 -0
- package/dist/calendar-core.d.ts.map +1 -0
- package/dist/calendar-core.js +372 -0
- package/dist/calendar-core.js.map +1 -0
- package/dist/call-value.d.ts +16 -0
- package/dist/call-value.d.ts.map +1 -0
- package/dist/call-value.js +54 -0
- package/dist/call-value.js.map +1 -0
- package/dist/camera-core.d.ts +222 -0
- package/dist/camera-core.d.ts.map +1 -0
- package/dist/camera-core.js +980 -0
- package/dist/camera-core.js.map +1 -0
- package/dist/canvas-core.d.ts +404 -0
- package/dist/canvas-core.d.ts.map +1 -0
- package/dist/canvas-core.js +2186 -0
- package/dist/canvas-core.js.map +1 -0
- package/dist/capture-core.d.ts +74 -0
- package/dist/capture-core.d.ts.map +1 -0
- package/dist/capture-core.js +158 -0
- package/dist/capture-core.js.map +1 -0
- package/dist/compile/codegen.d.ts +146 -0
- package/dist/compile/codegen.d.ts.map +1 -0
- package/dist/compile/codegen.js +1949 -0
- package/dist/compile/codegen.js.map +1 -0
- package/dist/compile/jstier.d.ts +44 -0
- package/dist/compile/jstier.d.ts.map +1 -0
- package/dist/compile/jstier.js +181 -0
- package/dist/compile/jstier.js.map +1 -0
- package/dist/compile/tier-door.d.ts +41 -0
- package/dist/compile/tier-door.d.ts.map +1 -0
- package/dist/compile/tier-door.js +167 -0
- package/dist/compile/tier-door.js.map +1 -0
- package/dist/compile/tier-realm.d.ts +49 -0
- package/dist/compile/tier-realm.d.ts.map +1 -0
- package/dist/compile/tier-realm.js +368 -0
- package/dist/compile/tier-realm.js.map +1 -0
- package/dist/compile/tier.d.ts +23 -0
- package/dist/compile/tier.d.ts.map +1 -0
- package/dist/compile/tier.js +157 -0
- package/dist/compile/tier.js.map +1 -0
- package/dist/compose-core.d.ts +86 -0
- package/dist/compose-core.d.ts.map +1 -0
- package/dist/compose-core.js +112 -0
- package/dist/compose-core.js.map +1 -0
- package/dist/config-validate.d.ts +31 -0
- package/dist/config-validate.d.ts.map +1 -0
- package/dist/config-validate.js +147 -0
- package/dist/config-validate.js.map +1 -0
- package/dist/config-values.d.ts +106 -0
- package/dist/config-values.d.ts.map +1 -0
- package/dist/config-values.js +340 -0
- package/dist/config-values.js.map +1 -0
- package/dist/contacts-core.d.ts +127 -0
- package/dist/contacts-core.d.ts.map +1 -0
- package/dist/contacts-core.js +211 -0
- package/dist/contacts-core.js.map +1 -0
- package/dist/content-transition.d.ts +58 -0
- package/dist/content-transition.d.ts.map +1 -0
- package/dist/content-transition.js +94 -0
- package/dist/content-transition.js.map +1 -0
- package/dist/controls-core.d.ts +227 -0
- package/dist/controls-core.d.ts.map +1 -0
- package/dist/controls-core.js +652 -0
- package/dist/controls-core.js.map +1 -0
- package/dist/cookies.d.ts +78 -0
- package/dist/cookies.d.ts.map +1 -0
- package/dist/cookies.js +265 -0
- package/dist/cookies.js.map +1 -0
- package/dist/corner-shape-core.d.ts +69 -0
- package/dist/corner-shape-core.d.ts.map +1 -0
- package/dist/corner-shape-core.js +261 -0
- package/dist/corner-shape-core.js.map +1 -0
- package/dist/crypto-core.d.ts +57 -0
- package/dist/crypto-core.d.ts.map +1 -0
- package/dist/crypto-core.js +128 -0
- package/dist/crypto-core.js.map +1 -0
- package/dist/dataviz.d.ts +436 -0
- package/dist/dataviz.d.ts.map +1 -0
- package/dist/dataviz.js +956 -0
- package/dist/dataviz.js.map +1 -0
- package/dist/debug.d.ts +293 -0
- package/dist/debug.d.ts.map +1 -0
- package/dist/debug.js +767 -0
- package/dist/debug.js.map +1 -0
- package/dist/device-ownership.d.ts +50 -0
- package/dist/device-ownership.d.ts.map +1 -0
- package/dist/device-ownership.js +105 -0
- package/dist/device-ownership.js.map +1 -0
- package/dist/effects.d.ts +86 -0
- package/dist/effects.d.ts.map +1 -0
- package/dist/effects.js +98 -0
- package/dist/effects.js.map +1 -0
- package/dist/element.d.ts +108 -0
- package/dist/element.d.ts.map +1 -0
- package/dist/element.js +63 -0
- package/dist/element.js.map +1 -0
- package/dist/file-watch.d.ts +16 -0
- package/dist/file-watch.d.ts.map +1 -0
- package/dist/file-watch.js +49 -0
- package/dist/file-watch.js.map +1 -0
- package/dist/filepaths.d.ts +72 -0
- package/dist/filepaths.d.ts.map +1 -0
- package/dist/filepaths.js +271 -0
- package/dist/filepaths.js.map +1 -0
- package/dist/film.d.ts +264 -0
- package/dist/film.d.ts.map +1 -0
- package/dist/film.js +313 -0
- package/dist/film.js.map +1 -0
- package/dist/fonts.d.ts +66 -0
- package/dist/fonts.d.ts.map +1 -0
- package/dist/fonts.js +135 -0
- package/dist/fonts.js.map +1 -0
- package/dist/forms.d.ts +191 -0
- package/dist/forms.d.ts.map +1 -0
- package/dist/forms.js +663 -0
- package/dist/forms.js.map +1 -0
- package/dist/geo.d.ts +289 -0
- package/dist/geo.d.ts.map +1 -0
- package/dist/geo.js +460 -0
- package/dist/geo.js.map +1 -0
- package/dist/handler-announce.d.ts +46 -0
- package/dist/handler-announce.d.ts.map +1 -0
- package/dist/handler-announce.js +96 -0
- package/dist/handler-announce.js.map +1 -0
- package/dist/handoff.d.ts +71 -0
- package/dist/handoff.d.ts.map +1 -0
- package/dist/handoff.js +250 -0
- package/dist/handoff.js.map +1 -0
- package/dist/identity-durability.d.ts +76 -0
- package/dist/identity-durability.d.ts.map +1 -0
- package/dist/identity-durability.js +150 -0
- package/dist/identity-durability.js.map +1 -0
- package/dist/image-core.d.ts +240 -0
- package/dist/image-core.d.ts.map +1 -0
- package/dist/image-core.js +618 -0
- package/dist/image-core.js.map +1 -0
- package/dist/image-schemes.d.ts +10 -0
- package/dist/image-schemes.d.ts.map +1 -0
- package/dist/image-schemes.js +28 -0
- package/dist/image-schemes.js.map +1 -0
- package/dist/index.d.ts +143 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +299 -0
- package/dist/index.js.map +1 -0
- package/dist/ink-core.d.ts +53 -0
- package/dist/ink-core.d.ts.map +1 -0
- package/dist/ink-core.js +119 -0
- package/dist/ink-core.js.map +1 -0
- package/dist/input.d.ts +148 -0
- package/dist/input.d.ts.map +1 -0
- package/dist/input.js +358 -0
- package/dist/input.js.map +1 -0
- package/dist/integrity.d.ts +63 -0
- package/dist/integrity.d.ts.map +1 -0
- package/dist/integrity.js +150 -0
- package/dist/integrity.js.map +1 -0
- package/dist/intents.d.ts +95 -0
- package/dist/intents.d.ts.map +1 -0
- package/dist/intents.js +282 -0
- package/dist/intents.js.map +1 -0
- package/dist/interpolate-core.d.ts +37 -0
- package/dist/interpolate-core.d.ts.map +1 -0
- package/dist/interpolate-core.js +443 -0
- package/dist/interpolate-core.js.map +1 -0
- package/dist/jse/color.d.ts +12 -0
- package/dist/jse/color.d.ts.map +1 -0
- package/dist/jse/color.js +196 -0
- package/dist/jse/color.js.map +1 -0
- package/dist/jse/core.d.ts +54 -0
- package/dist/jse/core.d.ts.map +1 -0
- package/dist/jse/core.js +1519 -0
- package/dist/jse/core.js.map +1 -0
- package/dist/jse/dispatch.d.ts +28 -0
- package/dist/jse/dispatch.d.ts.map +1 -0
- package/dist/jse/dispatch.js +116 -0
- package/dist/jse/dispatch.js.map +1 -0
- package/dist/jse/highlight-grammar.d.ts +15 -0
- package/dist/jse/highlight-grammar.d.ts.map +1 -0
- package/dist/jse/highlight-grammar.js +161 -0
- package/dist/jse/highlight-grammar.js.map +1 -0
- package/dist/jse/highlight-grammars.generated.d.ts +2 -0
- package/dist/jse/highlight-grammars.generated.d.ts.map +1 -0
- package/dist/jse/highlight-grammars.generated.js +4 -0
- package/dist/jse/highlight-grammars.generated.js.map +1 -0
- package/dist/jse/highlight.d.ts +37 -0
- package/dist/jse/highlight.d.ts.map +1 -0
- package/dist/jse/highlight.js +323 -0
- package/dist/jse/highlight.js.map +1 -0
- package/dist/jse/jse.d.ts +674 -0
- package/dist/jse/jse.d.ts.map +1 -0
- package/dist/jse/jse.js +5841 -0
- package/dist/jse/jse.js.map +1 -0
- package/dist/jse/pathmatch.d.ts +10 -0
- package/dist/jse/pathmatch.d.ts.map +1 -0
- package/dist/jse/pathmatch.js +73 -0
- package/dist/jse/pathmatch.js.map +1 -0
- package/dist/jse/regex.d.ts +33 -0
- package/dist/jse/regex.d.ts.map +1 -0
- package/dist/jse/regex.js +375 -0
- package/dist/jse/regex.js.map +1 -0
- package/dist/jse/stdlib.d.ts +8 -0
- package/dist/jse/stdlib.d.ts.map +1 -0
- package/dist/jse/stdlib.js +765 -0
- package/dist/jse/stdlib.js.map +1 -0
- package/dist/jse/tokens.d.ts +102 -0
- package/dist/jse/tokens.d.ts.map +1 -0
- package/dist/jse/tokens.js +982 -0
- package/dist/jse/tokens.js.map +1 -0
- package/dist/jse/values.d.ts +206 -0
- package/dist/jse/values.d.ts.map +1 -0
- package/dist/jse/values.js +846 -0
- package/dist/jse/values.js.map +1 -0
- package/dist/keyboard.d.ts +196 -0
- package/dist/keyboard.d.ts.map +1 -0
- package/dist/keyboard.js +186 -0
- package/dist/keyboard.js.map +1 -0
- package/dist/label-choices.d.ts +3 -0
- package/dist/label-choices.d.ts.map +1 -0
- package/dist/label-choices.js +168 -0
- package/dist/label-choices.js.map +1 -0
- package/dist/language.d.ts +33 -0
- package/dist/language.d.ts.map +1 -0
- package/dist/language.js +50 -0
- package/dist/language.js.map +1 -0
- package/dist/length-units.d.ts +30 -0
- package/dist/length-units.d.ts.map +1 -0
- package/dist/length-units.js +83 -0
- package/dist/length-units.js.map +1 -0
- package/dist/lightsensor.d.ts +48 -0
- package/dist/lightsensor.d.ts.map +1 -0
- package/dist/lightsensor.js +97 -0
- package/dist/lightsensor.js.map +1 -0
- package/dist/link-refresh.d.ts +27 -0
- package/dist/link-refresh.d.ts.map +1 -0
- package/dist/link-refresh.js +166 -0
- package/dist/link-refresh.js.map +1 -0
- package/dist/link.d.ts +57 -0
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +333 -0
- package/dist/link.js.map +1 -0
- package/dist/linkpreview.d.ts +114 -0
- package/dist/linkpreview.d.ts.map +1 -0
- package/dist/linkpreview.js +439 -0
- package/dist/linkpreview.js.map +1 -0
- package/dist/list-presence.d.ts +32 -0
- package/dist/list-presence.d.ts.map +1 -0
- package/dist/list-presence.js +48 -0
- package/dist/list-presence.js.map +1 -0
- package/dist/live-stream.d.ts +27 -0
- package/dist/live-stream.d.ts.map +1 -0
- package/dist/live-stream.js +274 -0
- package/dist/live-stream.js.map +1 -0
- package/dist/livelogs.d.ts +134 -0
- package/dist/livelogs.d.ts.map +1 -0
- package/dist/livelogs.js +409 -0
- package/dist/livelogs.js.map +1 -0
- package/dist/logs.d.ts +80 -0
- package/dist/logs.d.ts.map +1 -0
- package/dist/logs.js +206 -0
- package/dist/logs.js.map +1 -0
- package/dist/mcp/apps.d.ts +82 -0
- package/dist/mcp/apps.d.ts.map +1 -0
- package/dist/mcp/apps.js +219 -0
- package/dist/mcp/apps.js.map +1 -0
- package/dist/mcp/entities.d.ts +25 -0
- package/dist/mcp/entities.d.ts.map +1 -0
- package/dist/mcp/entities.js +71 -0
- package/dist/mcp/entities.js.map +1 -0
- package/dist/mcp/result.d.ts +73 -0
- package/dist/mcp/result.d.ts.map +1 -0
- package/dist/mcp/result.js +119 -0
- package/dist/mcp/result.js.map +1 -0
- package/dist/mcp/webmcp.d.ts +162 -0
- package/dist/mcp/webmcp.d.ts.map +1 -0
- package/dist/mcp/webmcp.js +214 -0
- package/dist/mcp/webmcp.js.map +1 -0
- package/dist/mcp.d.ts +5 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/mcp.js +14 -0
- package/dist/mcp.js.map +1 -0
- package/dist/media-core.d.ts +191 -0
- package/dist/media-core.d.ts.map +1 -0
- package/dist/media-core.js +446 -0
- package/dist/media-core.js.map +1 -0
- package/dist/media-timeline-core.d.ts +94 -0
- package/dist/media-timeline-core.d.ts.map +1 -0
- package/dist/media-timeline-core.js +620 -0
- package/dist/media-timeline-core.js.map +1 -0
- package/dist/message.d.ts +42 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/message.js +582 -0
- package/dist/message.js.map +1 -0
- package/dist/missing-element.d.ts +29 -0
- package/dist/missing-element.d.ts.map +1 -0
- package/dist/missing-element.js +76 -0
- package/dist/missing-element.js.map +1 -0
- package/dist/motion-core.d.ts +160 -0
- package/dist/motion-core.d.ts.map +1 -0
- package/dist/motion-core.js +752 -0
- package/dist/motion-core.js.map +1 -0
- package/dist/motion-pose.d.ts +65 -0
- package/dist/motion-pose.d.ts.map +1 -0
- package/dist/motion-pose.js +143 -0
- package/dist/motion-pose.js.map +1 -0
- package/dist/motion.d.ts +132 -0
- package/dist/motion.d.ts.map +1 -0
- package/dist/motion.js +260 -0
- package/dist/motion.js.map +1 -0
- package/dist/mount-core.d.ts +203 -0
- package/dist/mount-core.d.ts.map +1 -0
- package/dist/mount-core.js +437 -0
- package/dist/mount-core.js.map +1 -0
- package/dist/net-core.d.ts +110 -0
- package/dist/net-core.d.ts.map +1 -0
- package/dist/net-core.js +225 -0
- package/dist/net-core.js.map +1 -0
- package/dist/notify.d.ts +399 -0
- package/dist/notify.d.ts.map +1 -0
- package/dist/notify.js +964 -0
- package/dist/notify.js.map +1 -0
- package/dist/orientation-binding.d.ts +39 -0
- package/dist/orientation-binding.d.ts.map +1 -0
- package/dist/orientation-binding.js +64 -0
- package/dist/orientation-binding.js.map +1 -0
- package/dist/orientation.d.ts +55 -0
- package/dist/orientation.d.ts.map +1 -0
- package/dist/orientation.js +89 -0
- package/dist/orientation.js.map +1 -0
- package/dist/ota.d.ts +52 -0
- package/dist/ota.d.ts.map +1 -0
- package/dist/ota.js +122 -0
- package/dist/ota.js.map +1 -0
- package/dist/passkeys.d.ts +91 -0
- package/dist/passkeys.d.ts.map +1 -0
- package/dist/passkeys.js +307 -0
- package/dist/passkeys.js.map +1 -0
- package/dist/payment.d.ts +85 -0
- package/dist/payment.d.ts.map +1 -0
- package/dist/payment.js +270 -0
- package/dist/payment.js.map +1 -0
- package/dist/pending-presenter.d.ts +31 -0
- package/dist/pending-presenter.d.ts.map +1 -0
- package/dist/pending-presenter.js +119 -0
- package/dist/pending-presenter.js.map +1 -0
- package/dist/permission-core.d.ts +59 -0
- package/dist/permission-core.d.ts.map +1 -0
- package/dist/permission-core.js +102 -0
- package/dist/permission-core.js.map +1 -0
- package/dist/persist.d.ts +169 -0
- package/dist/persist.d.ts.map +1 -0
- package/dist/persist.js +361 -0
- package/dist/persist.js.map +1 -0
- package/dist/phase-plan.d.ts +114 -0
- package/dist/phase-plan.d.ts.map +1 -0
- package/dist/phase-plan.js +837 -0
- package/dist/phase-plan.js.map +1 -0
- package/dist/playback-core.d.ts +64 -0
- package/dist/playback-core.d.ts.map +1 -0
- package/dist/playback-core.js +176 -0
- package/dist/playback-core.js.map +1 -0
- package/dist/player-sources.d.ts +12 -0
- package/dist/player-sources.d.ts.map +1 -0
- package/dist/player-sources.js +44 -0
- package/dist/player-sources.js.map +1 -0
- package/dist/proxy-denylist.d.ts +11 -0
- package/dist/proxy-denylist.d.ts.map +1 -0
- package/dist/proxy-denylist.js +44 -0
- package/dist/proxy-denylist.js.map +1 -0
- package/dist/public-config.d.ts +20 -0
- package/dist/public-config.d.ts.map +1 -0
- package/dist/public-config.js +109 -0
- package/dist/public-config.js.map +1 -0
- package/dist/qoe-core.d.ts +72 -0
- package/dist/qoe-core.d.ts.map +1 -0
- package/dist/qoe-core.js +113 -0
- package/dist/qoe-core.js.map +1 -0
- package/dist/reactive-request.d.ts +80 -0
- package/dist/reactive-request.d.ts.map +1 -0
- package/dist/reactive-request.js +192 -0
- package/dist/reactive-request.js.map +1 -0
- package/dist/read-cache.d.ts +129 -0
- package/dist/read-cache.d.ts.map +1 -0
- package/dist/read-cache.js +566 -0
- package/dist/read-cache.js.map +1 -0
- package/dist/recorder-core.d.ts +57 -0
- package/dist/recorder-core.d.ts.map +1 -0
- package/dist/recorder-core.js +136 -0
- package/dist/recorder-core.js.map +1 -0
- package/dist/ref.d.ts +41 -0
- package/dist/ref.d.ts.map +1 -0
- package/dist/ref.js +98 -0
- package/dist/ref.js.map +1 -0
- package/dist/refusal.d.ts +82 -0
- package/dist/refusal.d.ts.map +1 -0
- package/dist/refusal.js +218 -0
- package/dist/refusal.js.map +1 -0
- package/dist/region-insets.d.ts +61 -0
- package/dist/region-insets.d.ts.map +1 -0
- package/dist/region-insets.js +67 -0
- package/dist/region-insets.js.map +1 -0
- package/dist/rive-core.d.ts +323 -0
- package/dist/rive-core.d.ts.map +1 -0
- package/dist/rive-core.js +677 -0
- package/dist/rive-core.js.map +1 -0
- package/dist/runner.d.ts +595 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +4094 -0
- package/dist/runner.js.map +1 -0
- package/dist/scene/a11y.d.ts +11 -0
- package/dist/scene/a11y.d.ts.map +1 -0
- package/dist/scene/a11y.js +67 -0
- package/dist/scene/a11y.js.map +1 -0
- package/dist/scene/anim.d.ts +149 -0
- package/dist/scene/anim.d.ts.map +1 -0
- package/dist/scene/anim.js +396 -0
- package/dist/scene/anim.js.map +1 -0
- package/dist/scene/bind.d.ts +33 -0
- package/dist/scene/bind.d.ts.map +1 -0
- package/dist/scene/bind.js +66 -0
- package/dist/scene/bind.js.map +1 -0
- package/dist/scene/collide.d.ts +56 -0
- package/dist/scene/collide.d.ts.map +1 -0
- package/dist/scene/collide.js +146 -0
- package/dist/scene/collide.js.map +1 -0
- package/dist/scene/frame.d.ts +22 -0
- package/dist/scene/frame.d.ts.map +1 -0
- package/dist/scene/frame.js +57 -0
- package/dist/scene/frame.js.map +1 -0
- package/dist/scene/gltf.d.ts +79 -0
- package/dist/scene/gltf.d.ts.map +1 -0
- package/dist/scene/gltf.js +409 -0
- package/dist/scene/gltf.js.map +1 -0
- package/dist/scene/ir.d.ts +293 -0
- package/dist/scene/ir.d.ts.map +1 -0
- package/dist/scene/ir.js +692 -0
- package/dist/scene/ir.js.map +1 -0
- package/dist/scene/math.d.ts +50 -0
- package/dist/scene/math.d.ts.map +1 -0
- package/dist/scene/math.js +180 -0
- package/dist/scene/math.js.map +1 -0
- package/dist/scene/orbit.d.ts +19 -0
- package/dist/scene/orbit.d.ts.map +1 -0
- package/dist/scene/orbit.js +60 -0
- package/dist/scene/orbit.js.map +1 -0
- package/dist/scene/physics.d.ts +228 -0
- package/dist/scene/physics.d.ts.map +1 -0
- package/dist/scene/physics.js +1500 -0
- package/dist/scene/physics.js.map +1 -0
- package/dist/scene/registry.d.ts +85 -0
- package/dist/scene/registry.d.ts.map +1 -0
- package/dist/scene/registry.js +75 -0
- package/dist/scene/registry.js.map +1 -0
- package/dist/scene/skin.d.ts +82 -0
- package/dist/scene/skin.d.ts.map +1 -0
- package/dist/scene/skin.js +351 -0
- package/dist/scene/skin.js.map +1 -0
- package/dist/scene/sprite.d.ts +36 -0
- package/dist/scene/sprite.d.ts.map +1 -0
- package/dist/scene/sprite.js +107 -0
- package/dist/scene/sprite.js.map +1 -0
- package/dist/scene/viewer.d.ts +96 -0
- package/dist/scene/viewer.d.ts.map +1 -0
- package/dist/scene/viewer.js +235 -0
- package/dist/scene/viewer.js.map +1 -0
- package/dist/scoped-slots.d.ts +9 -0
- package/dist/scoped-slots.d.ts.map +1 -0
- package/dist/scoped-slots.js +42 -0
- package/dist/scoped-slots.js.map +1 -0
- package/dist/screen.d.ts +109 -0
- package/dist/screen.d.ts.map +1 -0
- package/dist/screen.js +309 -0
- package/dist/screen.js.map +1 -0
- package/dist/scroll.d.ts +525 -0
- package/dist/scroll.d.ts.map +1 -0
- package/dist/scroll.js +1226 -0
- package/dist/scroll.js.map +1 -0
- package/dist/settings-plane.d.ts +58 -0
- package/dist/settings-plane.d.ts.map +1 -0
- package/dist/settings-plane.js +86 -0
- package/dist/settings-plane.js.map +1 -0
- package/dist/share-inbox.d.ts +56 -0
- package/dist/share-inbox.d.ts.map +1 -0
- package/dist/share-inbox.js +114 -0
- package/dist/share-inbox.js.map +1 -0
- package/dist/shared-transition.d.ts +152 -0
- package/dist/shared-transition.d.ts.map +1 -0
- package/dist/shared-transition.js +257 -0
- package/dist/shared-transition.js.map +1 -0
- package/dist/sheet-content-padding.d.ts +24 -0
- package/dist/sheet-content-padding.d.ts.map +1 -0
- package/dist/sheet-content-padding.js +32 -0
- package/dist/sheet-content-padding.js.map +1 -0
- package/dist/shot-devices.d.ts +36 -0
- package/dist/shot-devices.d.ts.map +1 -0
- package/dist/shot-devices.js +90 -0
- package/dist/shot-devices.js.map +1 -0
- package/dist/shot-guards.d.ts +100 -0
- package/dist/shot-guards.d.ts.map +1 -0
- package/dist/shot-guards.js +260 -0
- package/dist/shot-guards.js.map +1 -0
- package/dist/shot-scope.d.ts +140 -0
- package/dist/shot-scope.d.ts.map +1 -0
- package/dist/shot-scope.js +302 -0
- package/dist/shot-scope.js.map +1 -0
- package/dist/slot-partition.d.ts +9 -0
- package/dist/slot-partition.d.ts.map +1 -0
- package/dist/slot-partition.js +38 -0
- package/dist/slot-partition.js.map +1 -0
- package/dist/snackbar.d.ts +165 -0
- package/dist/snackbar.d.ts.map +1 -0
- package/dist/snackbar.js +220 -0
- package/dist/snackbar.js.map +1 -0
- package/dist/socket.d.ts +96 -0
- package/dist/socket.d.ts.map +1 -0
- package/dist/socket.js +370 -0
- package/dist/socket.js.map +1 -0
- package/dist/spotlight.d.ts +77 -0
- package/dist/spotlight.d.ts.map +1 -0
- package/dist/spotlight.js +174 -0
- package/dist/spotlight.js.map +1 -0
- package/dist/state-primitive.d.ts +37 -0
- package/dist/state-primitive.d.ts.map +1 -0
- package/dist/state-primitive.js +91 -0
- package/dist/state-primitive.js.map +1 -0
- package/dist/store-query.d.ts +25 -0
- package/dist/store-query.d.ts.map +1 -0
- package/dist/store-query.js +88 -0
- package/dist/store-query.js.map +1 -0
- package/dist/store-value.d.ts +48 -0
- package/dist/store-value.d.ts.map +1 -0
- package/dist/store-value.js +264 -0
- package/dist/store-value.js.map +1 -0
- package/dist/store-versioning.d.ts +70 -0
- package/dist/store-versioning.d.ts.map +1 -0
- package/dist/store-versioning.js +188 -0
- package/dist/store-versioning.js.map +1 -0
- package/dist/store.d.ts +282 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +1144 -0
- package/dist/store.js.map +1 -0
- package/dist/strings.d.ts +141 -0
- package/dist/strings.d.ts.map +1 -0
- package/dist/strings.js +581 -0
- package/dist/strings.js.map +1 -0
- package/dist/telemetry.d.ts +95 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +255 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/transform-core.d.ts +228 -0
- package/dist/transform-core.d.ts.map +1 -0
- package/dist/transform-core.js +921 -0
- package/dist/transform-core.js.map +1 -0
- package/dist/transition-core.d.ts +58 -0
- package/dist/transition-core.d.ts.map +1 -0
- package/dist/transition-core.js +352 -0
- package/dist/transition-core.js.map +1 -0
- package/dist/trim-trailing.d.ts +3 -0
- package/dist/trim-trailing.d.ts.map +1 -0
- package/dist/trim-trailing.js +14 -0
- package/dist/trim-trailing.js.map +1 -0
- package/dist/upload.d.ts +51 -0
- package/dist/upload.d.ts.map +1 -0
- package/dist/upload.js +68 -0
- package/dist/upload.js.map +1 -0
- package/dist/vendor-face.d.ts +44 -0
- package/dist/vendor-face.d.ts.map +1 -0
- package/dist/vendor-face.js +80 -0
- package/dist/vendor-face.js.map +1 -0
- package/dist/vendor-session.d.ts +166 -0
- package/dist/vendor-session.d.ts.map +1 -0
- package/dist/vendor-session.js +423 -0
- package/dist/vendor-session.js.map +1 -0
- package/dist/vendor-surface.d.ts +290 -0
- package/dist/vendor-surface.d.ts.map +1 -0
- package/dist/vendor-surface.js +439 -0
- package/dist/vendor-surface.js.map +1 -0
- package/dist/version-rules.generated.d.ts +17 -0
- package/dist/version-rules.generated.d.ts.map +1 -0
- package/dist/version-rules.generated.js +99 -0
- package/dist/version-rules.generated.js.map +1 -0
- package/dist/view-transition-core.d.ts +99 -0
- package/dist/view-transition-core.d.ts.map +1 -0
- package/dist/view-transition-core.js +127 -0
- package/dist/view-transition-core.js.map +1 -0
- package/dist/view-transition-door.d.ts +26 -0
- package/dist/view-transition-door.d.ts.map +1 -0
- package/dist/view-transition-door.js +88 -0
- package/dist/view-transition-door.js.map +1 -0
- package/dist/window-identity.d.ts +3 -0
- package/dist/window-identity.d.ts.map +1 -0
- package/dist/window-identity.js +27 -0
- package/dist/window-identity.js.map +1 -0
- package/package.json +139 -4
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/** Install the build's `persist` rows (their keys are the words; a row's fields are the tools'
|
|
2
|
+
* business) or, with null, clear them. Answers the words installed before, so a test can put
|
|
3
|
+
* them back. */
|
|
4
|
+
export declare function installPersistScopes(rows: Readonly<Record<string, unknown>> | readonly string[] | null): string[];
|
|
5
|
+
/** The scope words this build installed, in install order. */
|
|
6
|
+
export declare function persistScopes(): string[];
|
|
7
|
+
/** Where a variable is remembered. `""` is ABSENT — in memory, per surface, lost on reload —
|
|
8
|
+
* which is what every document written before this attribute existed means, and the default.
|
|
9
|
+
* Otherwise one of the installed scope words. */
|
|
10
|
+
export type PersistWhere = string;
|
|
11
|
+
/** What one `persist=` spelling MEANS. Total: an absent, empty or unadmitted word is `""`, so a
|
|
12
|
+
* runtime can never act on a destination it does not have. A typo is not silently a destination
|
|
13
|
+
* and it is not a crash either — the LINTERS name it (`persist-word`, an error on both), which
|
|
14
|
+
* is the same division of labour `<tool as>` uses. */
|
|
15
|
+
export declare function persistWhere(raw: string | undefined | null): PersistWhere;
|
|
16
|
+
/** The LITERAL word a `persist=` spelling names, by syntax alone: trimmed, "" when absent, empty
|
|
17
|
+
* or a word with a hole. For a reader that runs where no build installed the scope rows (a server
|
|
18
|
+
* render, a headless read) and only needs to know that a declaration persists; the build has
|
|
19
|
+
* already refused a word no manifest contributes (`persist-word`), so in a built app this is the
|
|
20
|
+
* installed word. Never a destination to act on: a runtime acts through `persistWhere`. */
|
|
21
|
+
export declare function persistNamed(raw: string | undefined | null): string;
|
|
22
|
+
/** The segment an empty scheme becomes, so a key never carries an empty part. An app-local
|
|
23
|
+
* document has no owning package scheme; it is still one document with one address. */
|
|
24
|
+
export declare const PERSIST_APP_SCHEME = "app";
|
|
25
|
+
/** The LOGICAL store key for one persisted variable: the qualified component name, under the
|
|
26
|
+
* `var.` sub-namespace so a persisted variable can never collide with a key the app writes
|
|
27
|
+
* itself through `dsx.module.storage.set`.
|
|
28
|
+
*
|
|
29
|
+
* WHERE IT LANDS differs by lane and that is the store's business, not this fold's: ValueStore
|
|
30
|
+
* prefixes `dsx.storage.` inside `localStorage` and `UserDefaults.standard`, while the Android
|
|
31
|
+
* file (`SharedPreferences("dsx_storage")`) is flat and holds this key as written. The row is
|
|
32
|
+
* INSIDE the keyed namespace on every lane, so `dsx.module.storage.list()` lists it and
|
|
33
|
+
* `clear()` clears it — one store, one clear. */
|
|
34
|
+
export declare function persistKey(scheme: string, name: string, as: string): string;
|
|
35
|
+
/** What a read of a persisted slot answers. Two fields, never a nullable: `found` is the whole
|
|
36
|
+
* reason a stored `false` does not fall through to the body. */
|
|
37
|
+
export interface PersistRead {
|
|
38
|
+
value: unknown;
|
|
39
|
+
found: boolean;
|
|
40
|
+
}
|
|
41
|
+
/** The absence, as one frozen value so a caller cannot accidentally mutate a miss. */
|
|
42
|
+
export declare const PERSIST_MISS: PersistRead;
|
|
43
|
+
/** What a write keeps, or why it keeps nothing. A refusal is NEVER a throw: the in-memory value
|
|
44
|
+
* has already changed by the time this is consulted, and an app whose value cannot be stored is
|
|
45
|
+
* an app with no `persist`, which is a shipped app. */
|
|
46
|
+
export interface PersistWrite {
|
|
47
|
+
/** the exact text to store; "" when refused */
|
|
48
|
+
text: string;
|
|
49
|
+
/** "" when storable; otherwise `unstorable_value`, the store's own declared code */
|
|
50
|
+
refusal: string;
|
|
51
|
+
}
|
|
52
|
+
/** THE WRITE FOLD. JSON text on every lane, through the store's own serialiser, so object keys
|
|
53
|
+
* are sorted, numbers carry the ECMAScript spelling and a date is its ISO instant — the
|
|
54
|
+
* properties `store-value.ts` exists to give. NaN, ±Infinity, an out-of-range date, a lambda
|
|
55
|
+
* and a cyclic dict have no JSON text and are refused. */
|
|
56
|
+
export declare function persistEncode(value: unknown): PersistWrite;
|
|
57
|
+
/** THE READ FOLD. `null` from the store is an ABSENT key (every lane's string store answers a
|
|
58
|
+
* miss that way); text that is not JSON is a slot written by something that is not this fold,
|
|
59
|
+
* and it is a miss rather than a guess — a guess here is how a stored preference becomes the
|
|
60
|
+
* five characters `[obj` on the next launch. */
|
|
61
|
+
export declare function persistDecode(raw: string | null | undefined): PersistRead;
|
|
62
|
+
/** THE SEED ORDER, as one function rather than as a sentence three runtimes each re-type.
|
|
63
|
+
*
|
|
64
|
+
* The body has ALREADY RUN by the time this is called, and that is the decision: a body may
|
|
65
|
+
* have side-conditions, and a body that runs on the first launch and not the second is a body
|
|
66
|
+
* whose effects depend on storage state. `seeded` is what it produced. A STORED value then wins
|
|
67
|
+
* on PRESENCE — `false`, `0`, `""` and `null` are stored values — and a store that refused to
|
|
68
|
+
* answer reports `found: false`, so a blocked store behaves exactly like a first launch. */
|
|
69
|
+
export declare function persistSeed(seeded: unknown, stored: PersistRead): unknown;
|
|
70
|
+
/** One string-to-string store, the only shape this fold needs. `set` MAY THROW — `localStorage`
|
|
71
|
+
* is the one browser store that throws rather than degrading (Safari private mode, blocked site
|
|
72
|
+
* data and a full quota all raise), which is why the callers below own the try. */
|
|
73
|
+
export interface PersistStore {
|
|
74
|
+
get(key: string): string | null;
|
|
75
|
+
set(key: string, text: string): void;
|
|
76
|
+
remove(key: string): void;
|
|
77
|
+
}
|
|
78
|
+
/** The installed store, or null. Mutable by design: one host installs it at boot. */
|
|
79
|
+
export declare const PersistSeam: {
|
|
80
|
+
store: PersistStore | null;
|
|
81
|
+
};
|
|
82
|
+
/** Install the real store (the web lane's `persist-web.ts`, a native bridge, or a test double).
|
|
83
|
+
* Answers the previous one so a test can put it back. */
|
|
84
|
+
export declare function installPersistStore(store: PersistStore | null): PersistStore | null;
|
|
85
|
+
/** Read one slot. Total: no seam, a throwing store and unparseable text are all a MISS. */
|
|
86
|
+
export declare function persistRead(key: string): PersistRead;
|
|
87
|
+
/** Write one slot. Total, and the whole of the degradation rule: the caller has ALREADY
|
|
88
|
+
* committed the in-memory value, so every failure here — no seam, an unstorable shape, a
|
|
89
|
+
* quota, a browser that refuses site data — answers false and changes nothing else. An app
|
|
90
|
+
* whose store is blocked behaves exactly like an app with no `persist` at all, and a document
|
|
91
|
+
* that wants to KNOW reads the fact the store already publishes: `dsx.module.storage.available`.
|
|
92
|
+
* Answers whether the slot now holds the value. */
|
|
93
|
+
export declare function persistWrite(key: string, value: unknown): boolean;
|
|
94
|
+
/** Remove one slot. Total, like `persistWrite`: no seam or a throwing store answers false. */
|
|
95
|
+
export declare function persistRemove(key: string): boolean;
|
|
96
|
+
/** THE `persist=` WORD WITH A HOLE. `persist="{{
|
|
97
|
+
* dsx.variable.remember ? 'device' : '' }}"` is read through the interpolation law at the
|
|
98
|
+
* declaration (it decides whether the stored value seeds the variable) and AGAIN AT EVERY WRITE:
|
|
99
|
+
* on, the write is kept; off, the slot is FORGOTTEN, so switching remembering off erases what was
|
|
100
|
+
* remembered rather than leaving it behind. It is a re-read, never a migration: a value is not
|
|
101
|
+
* moved between scopes when the word changes. A word with no hole is `persistWhere` exactly. Twins: DSXPersist.kt / .swift
|
|
102
|
+
* `whereNow` and `keep`; corpus persistence/variables.json `dynamic`. */
|
|
103
|
+
export declare function persistWhereNow(raw: string | undefined | null, interpolate: (template: string) => string): PersistWhere;
|
|
104
|
+
/** Keep one committed value when the word is on, forget the slot when it is off. */
|
|
105
|
+
export declare function persistKeep(key: string, value: unknown, on: boolean): boolean;
|
|
106
|
+
/** Where a committed write came from. `local` is an assignment on this device; the others arrive
|
|
107
|
+
* through `dsx.module.global.apply` or a provider. */
|
|
108
|
+
export type PersistOrigin = "local" | "remote" | "restore" | "transition";
|
|
109
|
+
export interface PersistProvider {
|
|
110
|
+
/** the stored value for one address, on PRESENCE (`found`) */
|
|
111
|
+
load(key: string): PersistRead;
|
|
112
|
+
/** a LOCAL commit: keep it, and send it if the scope crosses devices */
|
|
113
|
+
write(key: string, value: unknown, origin: PersistOrigin): boolean;
|
|
114
|
+
/** a NON-LOCAL commit: keep it on this device, never send it */
|
|
115
|
+
settle(key: string, value: unknown, origin: PersistOrigin): boolean;
|
|
116
|
+
/** the word switched off (ADR 0017): drop the address */
|
|
117
|
+
forget(key: string): boolean;
|
|
118
|
+
}
|
|
119
|
+
/** THE STORE PROVIDER: the store `Core/Basics/ValueStore` owns on this lane, through the seam
|
|
120
|
+
* above. A write and a settle keep the same bytes, because a device store sends nothing anywhere.
|
|
121
|
+
* A primitive with no word: the package that owns a scope installs it under its word. */
|
|
122
|
+
export declare const STORE_PROVIDER: PersistProvider;
|
|
123
|
+
export declare const MEMORY_PROVIDER: PersistProvider;
|
|
124
|
+
/** A new run of the app: MEMORY_PROVIDER is empty again. The runners' `newRun` op. */
|
|
125
|
+
export declare function memoryNewRun(): void;
|
|
126
|
+
/** Install (or with null, remove) the provider for one scope word. Answers the previous one. */
|
|
127
|
+
export declare function installPersistProvider(word: string, provider: PersistProvider | null): PersistProvider | null;
|
|
128
|
+
/** The provider for a word, or null where no package installed one. A word with no provider keeps
|
|
129
|
+
* the value in memory only; the build refused it first (`persist-scope-package`). */
|
|
130
|
+
export declare function persistProvider(word: string): PersistProvider | null;
|
|
131
|
+
/** The seed read for any word: a word with no provider reads as a first launch. */
|
|
132
|
+
export declare function persistLoad(word: string, key: string): PersistRead;
|
|
133
|
+
/** THE COMMIT ROUTE. `word` "" forgets the address (the word switched off, ADR 0017): in the
|
|
134
|
+
* scope of `previous`, the word this run last kept it under, or, when this run kept it under no
|
|
135
|
+
* word yet, in every installed scope, because an earlier run may have kept it under any of them
|
|
136
|
+
* and switching off erases what was remembered wherever it was. The address is the variable's
|
|
137
|
+
* own (`persistKey`), so no other variable's slot is touched. A local origin writes, every other
|
|
138
|
+
* origin settles. Total: a throwing provider is a kept nothing. */
|
|
139
|
+
export declare function persistCommit(word: string, previous: string, key: string, value: unknown, origin: PersistOrigin): boolean;
|
|
140
|
+
/** The declared facts of one persisted address: its merge rule, and what signing in and out does
|
|
141
|
+
* to it (`login=` / `logout=`, proposals/cloud-state.md section 4.1; absent is the default). */
|
|
142
|
+
export interface PersistMeta {
|
|
143
|
+
merge: string;
|
|
144
|
+
login?: string;
|
|
145
|
+
logout?: string;
|
|
146
|
+
}
|
|
147
|
+
/** Record the declaration of one address (the head fold, once per mount). */
|
|
148
|
+
export declare function persistDeclare(key: string, meta: PersistMeta): void;
|
|
149
|
+
/** Every declared address, in declaration order: what a transition walks. */
|
|
150
|
+
export declare function persistDeclared(): string[];
|
|
151
|
+
/** The declaration of one address, or a merge of "" where nothing was declared. */
|
|
152
|
+
export declare function persistMetaOf(key: string): PersistMeta;
|
|
153
|
+
/** A live surface holding one persisted variable: the store's own write, with an origin, and the
|
|
154
|
+
* variable back to its declared default (a sign-out that clears it). */
|
|
155
|
+
export interface PersistTarget {
|
|
156
|
+
apply(value: unknown, origin: PersistOrigin): void;
|
|
157
|
+
reset?(origin: PersistOrigin): void;
|
|
158
|
+
}
|
|
159
|
+
/** Bind a live surface to its address; answers the unbind. */
|
|
160
|
+
export declare function persistBind(key: string, target: PersistTarget): () => void;
|
|
161
|
+
/** A PROVIDER'S `onRemote`: put a value that arrived from elsewhere into every live surface
|
|
162
|
+
* holding the address. The store commits it with `origin`, so it lands through `settle` and never
|
|
163
|
+
* through `write` (I1). Answers how many surfaces took it. A value with no live surface is the
|
|
164
|
+
* provider's to keep; the next mount seeds from it through `load`. */
|
|
165
|
+
export declare function persistRemote(key: string, value: unknown, origin: PersistOrigin): number;
|
|
166
|
+
/** A PROVIDER'S reset: every live surface holding the address returns the variable to its declared
|
|
167
|
+
* default, committed with `origin` (so it settles and never uploads). Answers how many took it. */
|
|
168
|
+
export declare function persistReset(key: string, origin: PersistOrigin): number;
|
|
169
|
+
//# sourceMappingURL=persist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persist.d.ts","sourceRoot":"","sources":["../src/persist.ts"],"names":[],"mappings":"AAwDA;;iBAEiB;AACjB,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,MAAM,EAAE,CAKjH;AAED,8DAA8D;AAC9D,wBAAgB,aAAa,IAAI,MAAM,EAAE,CAExC;AAED;;kDAEkD;AAClD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;;uDAGuD;AACvD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,YAAY,CAIzE;AAED;;;;4FAI4F;AAC5F,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAGnE;AAED;wFACwF;AACxF,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAExC;;;;;;;;kDAQkD;AAClD,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAG3E;AAED;iEACiE;AACjE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf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ift / the `DSXPersist`
|
|
3
|
+
// object in the Kotlin engine (corpus OpenSource/Conformance/persistence/variables.json).
|
|
4
|
+
//
|
|
5
|
+
// `<variable as="theme" persist="device">return 'dark'</variable>` is the first way a
|
|
6
|
+
// DECLARATION can reach the key-value plane. Until it, the kernel said so itself in the header
|
|
7
|
+
// of the cookie fold: "`dsx.cookie.name = value` is the one cross-platform storage grammar an
|
|
8
|
+
// app has (there is no key-value plane yet)" — so an app that wanted to remember a preference
|
|
9
|
+
// across a launch had to write a cookie, which goes on the wire with every request, which is a
|
|
10
|
+
// different act from remembering something on the device. Design: proposals/persistence.md.
|
|
11
|
+
//
|
|
12
|
+
// WHAT THIS FILE IS. The four decisions that make the attribute real, each a pure function, so
|
|
13
|
+
// the three lanes cannot disagree about any of them:
|
|
14
|
+
//
|
|
15
|
+
// • THE KEY. A persisted slot is addressed by the QUALIFIED COMPONENT NAME the registry
|
|
16
|
+
// already scopes a component by (`${scheme}.${name}`, mount.ts:3425), never by the bare
|
|
17
|
+
// `as`. Two documents that both declare `as="theme"` hold two variables in memory today,
|
|
18
|
+
// and persisting must change DURABILITY, never SCOPE — a bare-name key would silently
|
|
19
|
+
// merge them on the first reload with nothing in either document saying so.
|
|
20
|
+
// • THE WORD. An enum of admitted destinations, not a boolean, because a boolean would have
|
|
21
|
+
// to choose a destination on the author's behalf and the destinations differ in whether a
|
|
22
|
+
// value survives a reinstall, follows the person to another device, or is readable by other
|
|
23
|
+
// software. The words are the build's `persist` facet rows, which packages contribute and
|
|
24
|
+
// Mandatory/State installs (`installPersistScopes`); this file holds none. An unknown word
|
|
25
|
+
// is NOT a destination — it folds to absent here and the linters name it at build time.
|
|
26
|
+
// • THE ROUND TRIP. A persisted value is written as the store's own JSON text
|
|
27
|
+
// (`store-value.ts`, the four-lane serialisation law) and read back with the same law, so a
|
|
28
|
+
// value comes back TYPED. This is the one deliberate departure from `storeValueText`, which
|
|
29
|
+
// keeps a string VERBATIM: that is right for a string-to-string module face, where
|
|
30
|
+
// `set("k","dark")` then `get("k") === "dark"` has been true since v3, and wrong for a
|
|
31
|
+
// variable, where a stored `"true"` must not read back as the boolean `true`.
|
|
32
|
+
// • PRESENCE, NOT TRUTHINESS. A read answers `{ value, found }` and never a nullable, for the
|
|
33
|
+
// same reason `dsx.module.storage.get` does: `found` is what separates a stored empty string
|
|
34
|
+
// from an absent key. A stored `false`, `0`, `""` or `null` is a stored value and WINS over
|
|
35
|
+
// the body's seed.
|
|
36
|
+
//
|
|
37
|
+
// WHAT IS NOT HERE: any storage. This file never touches localStorage, UserDefaults or
|
|
38
|
+
// SharedPreferences — it is pure over strings and already-parsed values, which is what lets the
|
|
39
|
+
// Swift twin compile as a Foundation-only closed set (the same reason store-value.ts and
|
|
40
|
+
// store-versioning.ts are pure) and the Kotlin twin run under plain JUnit. The real store is
|
|
41
|
+
// reached through [PersistSeam], and it is `Core/Basics/ValueStore` on every lane — the module
|
|
42
|
+
// that ALREADY owns localStorage, `UserDefaults.standard` and `SharedPreferences("dsx_storage")`
|
|
43
|
+
// behind one `dsx.storage.` namespace, on the open shelf, with a store version and a migration
|
|
44
|
+
// ladder. A second door onto localStorage beside a module that owns it is the drift the gates in
|
|
45
|
+
// this repository exist to refuse.
|
|
46
|
+
//
|
|
47
|
+
import { storeJsonText, STORE_VALUE_REFUSAL } from "./store-value.js";
|
|
48
|
+
/** THE BUILD'S SCOPE WORDS (RULING-PERSIST-WORD-1122 M1). The kernel holds no scope word: each is
|
|
49
|
+
* a row a package contributes under the `persist` facet in its manifest (proposals/cloud-state.md
|
|
50
|
+
* section 2), and the build hands those rows to the facet's owner, Mandatory/State, which installs
|
|
51
|
+
* them here at boot. A package adds a scope by adding a row and installing its provider; nothing
|
|
52
|
+
* in this file changes. Before any install the set is empty, so every word folds to absent. */
|
|
53
|
+
const installedScopes = new Set();
|
|
54
|
+
/** Install the build's `persist` rows (their keys are the words; a row's fields are the tools'
|
|
55
|
+
* business) or, with null, clear them. Answers the words installed before, so a test can put
|
|
56
|
+
* them back. */
|
|
57
|
+
export function installPersistScopes(rows) {
|
|
58
|
+
const prior = [...installedScopes];
|
|
59
|
+
installedScopes.clear();
|
|
60
|
+
if (rows !== null)
|
|
61
|
+
for (const word of Array.isArray(rows) ? rows : Object.keys(rows))
|
|
62
|
+
installedScopes.add(String(word));
|
|
63
|
+
return prior;
|
|
64
|
+
}
|
|
65
|
+
/** The scope words this build installed, in install order. */
|
|
66
|
+
export function persistScopes() {
|
|
67
|
+
return [...installedScopes];
|
|
68
|
+
}
|
|
69
|
+
/** What one `persist=` spelling MEANS. Total: an absent, empty or unadmitted word is `""`, so a
|
|
70
|
+
* runtime can never act on a destination it does not have. A typo is not silently a destination
|
|
71
|
+
* and it is not a crash either — the LINTERS name it (`persist-word`, an error on both), which
|
|
72
|
+
* is the same division of labour `<tool as>` uses. */
|
|
73
|
+
export function persistWhere(raw) {
|
|
74
|
+
if (raw === undefined || raw === null)
|
|
75
|
+
return "";
|
|
76
|
+
const word = raw.trim();
|
|
77
|
+
return installedScopes.has(word) ? word : "";
|
|
78
|
+
}
|
|
79
|
+
/** The LITERAL word a `persist=` spelling names, by syntax alone: trimmed, "" when absent, empty
|
|
80
|
+
* or a word with a hole. For a reader that runs where no build installed the scope rows (a server
|
|
81
|
+
* render, a headless read) and only needs to know that a declaration persists; the build has
|
|
82
|
+
* already refused a word no manifest contributes (`persist-word`), so in a built app this is the
|
|
83
|
+
* installed word. Never a destination to act on: a runtime acts through `persistWhere`. */
|
|
84
|
+
export function persistNamed(raw) {
|
|
85
|
+
if (raw === undefined || raw === null || raw.includes("{{"))
|
|
86
|
+
return "";
|
|
87
|
+
return raw.trim();
|
|
88
|
+
}
|
|
89
|
+
/** The segment an empty scheme becomes, so a key never carries an empty part. An app-local
|
|
90
|
+
* document has no owning package scheme; it is still one document with one address. */
|
|
91
|
+
export const PERSIST_APP_SCHEME = "app";
|
|
92
|
+
/** The LOGICAL store key for one persisted variable: the qualified component name, under the
|
|
93
|
+
* `var.` sub-namespace so a persisted variable can never collide with a key the app writes
|
|
94
|
+
* itself through `dsx.module.storage.set`.
|
|
95
|
+
*
|
|
96
|
+
* WHERE IT LANDS differs by lane and that is the store's business, not this fold's: ValueStore
|
|
97
|
+
* prefixes `dsx.storage.` inside `localStorage` and `UserDefaults.standard`, while the Android
|
|
98
|
+
* file (`SharedPreferences("dsx_storage")`) is flat and holds this key as written. The row is
|
|
99
|
+
* INSIDE the keyed namespace on every lane, so `dsx.module.storage.list()` lists it and
|
|
100
|
+
* `clear()` clears it — one store, one clear. */
|
|
101
|
+
export function persistKey(scheme, name, as) {
|
|
102
|
+
const owner = scheme.trim().length > 0 ? scheme.trim() : PERSIST_APP_SCHEME;
|
|
103
|
+
return `var.${owner}.${name}.${as}`;
|
|
104
|
+
}
|
|
105
|
+
/** The absence, as one frozen value so a caller cannot accidentally mutate a miss. */
|
|
106
|
+
export const PERSIST_MISS = Object.freeze({ value: null, found: false });
|
|
107
|
+
/** THE WRITE FOLD. JSON text on every lane, through the store's own serialiser, so object keys
|
|
108
|
+
* are sorted, numbers carry the ECMAScript spelling and a date is its ISO instant — the
|
|
109
|
+
* properties `store-value.ts` exists to give. NaN, ±Infinity, an out-of-range date, a lambda
|
|
110
|
+
* and a cyclic dict have no JSON text and are refused. */
|
|
111
|
+
export function persistEncode(value) {
|
|
112
|
+
try {
|
|
113
|
+
return { text: storeJsonText(value), refusal: "" };
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
// storeJsonText throws its own Unstorable for a shape JSON cannot carry, and a cyclic dict
|
|
117
|
+
// reaches here as the platform's own recursion error. Both mean the same thing to a caller:
|
|
118
|
+
// nothing was kept, and nothing broke.
|
|
119
|
+
return { text: "", refusal: STORE_VALUE_REFUSAL };
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
/** THE READ FOLD. `null` from the store is an ABSENT key (every lane's string store answers a
|
|
123
|
+
* miss that way); text that is not JSON is a slot written by something that is not this fold,
|
|
124
|
+
* and it is a miss rather than a guess — a guess here is how a stored preference becomes the
|
|
125
|
+
* five characters `[obj` on the next launch. */
|
|
126
|
+
export function persistDecode(raw) {
|
|
127
|
+
if (raw === null || raw === undefined)
|
|
128
|
+
return PERSIST_MISS;
|
|
129
|
+
try {
|
|
130
|
+
return { value: JSON.parse(raw), found: true };
|
|
131
|
+
}
|
|
132
|
+
catch {
|
|
133
|
+
return PERSIST_MISS;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/** THE SEED ORDER, as one function rather than as a sentence three runtimes each re-type.
|
|
137
|
+
*
|
|
138
|
+
* The body has ALREADY RUN by the time this is called, and that is the decision: a body may
|
|
139
|
+
* have side-conditions, and a body that runs on the first launch and not the second is a body
|
|
140
|
+
* whose effects depend on storage state. `seeded` is what it produced. A STORED value then wins
|
|
141
|
+
* on PRESENCE — `false`, `0`, `""` and `null` are stored values — and a store that refused to
|
|
142
|
+
* answer reports `found: false`, so a blocked store behaves exactly like a first launch. */
|
|
143
|
+
export function persistSeed(seeded, stored) {
|
|
144
|
+
return stored.found ? stored.value : seeded;
|
|
145
|
+
}
|
|
146
|
+
/** The installed store, or null. Mutable by design: one host installs it at boot. */
|
|
147
|
+
export const PersistSeam = { store: null };
|
|
148
|
+
/** Install the real store (the web lane's `persist-web.ts`, a native bridge, or a test double).
|
|
149
|
+
* Answers the previous one so a test can put it back. */
|
|
150
|
+
export function installPersistStore(store) {
|
|
151
|
+
const prior = PersistSeam.store;
|
|
152
|
+
PersistSeam.store = store;
|
|
153
|
+
return prior;
|
|
154
|
+
}
|
|
155
|
+
/** Read one slot. Total: no seam, a throwing store and unparseable text are all a MISS. */
|
|
156
|
+
export function persistRead(key) {
|
|
157
|
+
const store = PersistSeam.store;
|
|
158
|
+
if (store === null)
|
|
159
|
+
return PERSIST_MISS;
|
|
160
|
+
try {
|
|
161
|
+
return persistDecode(store.get(key));
|
|
162
|
+
}
|
|
163
|
+
catch {
|
|
164
|
+
return PERSIST_MISS;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/** Write one slot. Total, and the whole of the degradation rule: the caller has ALREADY
|
|
168
|
+
* committed the in-memory value, so every failure here — no seam, an unstorable shape, a
|
|
169
|
+
* quota, a browser that refuses site data — answers false and changes nothing else. An app
|
|
170
|
+
* whose store is blocked behaves exactly like an app with no `persist` at all, and a document
|
|
171
|
+
* that wants to KNOW reads the fact the store already publishes: `dsx.module.storage.available`.
|
|
172
|
+
* Answers whether the slot now holds the value. */
|
|
173
|
+
export function persistWrite(key, value) {
|
|
174
|
+
const store = PersistSeam.store;
|
|
175
|
+
if (store === null)
|
|
176
|
+
return false;
|
|
177
|
+
const folded = persistEncode(value);
|
|
178
|
+
if (folded.refusal !== "")
|
|
179
|
+
return false;
|
|
180
|
+
try {
|
|
181
|
+
store.set(key, folded.text);
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
catch {
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
/** Remove one slot. Total, like `persistWrite`: no seam or a throwing store answers false. */
|
|
189
|
+
export function persistRemove(key) {
|
|
190
|
+
const store = PersistSeam.store;
|
|
191
|
+
if (store === null)
|
|
192
|
+
return false;
|
|
193
|
+
try {
|
|
194
|
+
store.remove(key);
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
catch {
|
|
198
|
+
return false;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/** THE `persist=` WORD WITH A HOLE. `persist="{{
|
|
202
|
+
* dsx.variable.remember ? 'device' : '' }}"` is read through the interpolation law at the
|
|
203
|
+
* declaration (it decides whether the stored value seeds the variable) and AGAIN AT EVERY WRITE:
|
|
204
|
+
* on, the write is kept; off, the slot is FORGOTTEN, so switching remembering off erases what was
|
|
205
|
+
* remembered rather than leaving it behind. It is a re-read, never a migration: a value is not
|
|
206
|
+
* moved between scopes when the word changes. A word with no hole is `persistWhere` exactly. Twins: DSXPersist.kt / .swift
|
|
207
|
+
* `whereNow` and `keep`; corpus persistence/variables.json `dynamic`. */
|
|
208
|
+
export function persistWhereNow(raw, interpolate) {
|
|
209
|
+
if (raw === undefined || raw === null || !raw.includes("{{"))
|
|
210
|
+
return persistWhere(raw);
|
|
211
|
+
return persistWhere(interpolate(raw));
|
|
212
|
+
}
|
|
213
|
+
/** Keep one committed value when the word is on, forget the slot when it is off. */
|
|
214
|
+
export function persistKeep(key, value, on) {
|
|
215
|
+
return on ? persistWrite(key, value) : persistRemove(key);
|
|
216
|
+
}
|
|
217
|
+
/** THE STORE PROVIDER: the store `Core/Basics/ValueStore` owns on this lane, through the seam
|
|
218
|
+
* above. A write and a settle keep the same bytes, because a device store sends nothing anywhere.
|
|
219
|
+
* A primitive with no word: the package that owns a scope installs it under its word. */
|
|
220
|
+
export const STORE_PROVIDER = Object.freeze({
|
|
221
|
+
load: (key) => persistRead(key),
|
|
222
|
+
write: (key, value) => persistWrite(key, value),
|
|
223
|
+
settle: (key, value) => persistWrite(key, value),
|
|
224
|
+
forget: (key) => persistRemove(key),
|
|
225
|
+
});
|
|
226
|
+
/** THE RUN MEMORY PROVIDER: this run of the app, in memory, keyed by the address the store uses.
|
|
227
|
+
* Encoded through the same JSON fold, so a value comes back as the one a launch would read, and a
|
|
228
|
+
* value the store cannot carry is refused here exactly as it is in the store. Never written to a
|
|
229
|
+
* disk. A primitive with no word, like STORE_PROVIDER. */
|
|
230
|
+
const runSlots = new Map();
|
|
231
|
+
export const MEMORY_PROVIDER = Object.freeze({
|
|
232
|
+
load: (key) => persistDecode(runSlots.get(key)),
|
|
233
|
+
write: (key, value) => memoryKeep(key, value),
|
|
234
|
+
settle: (key, value) => memoryKeep(key, value),
|
|
235
|
+
forget: (key) => runSlots.delete(key),
|
|
236
|
+
});
|
|
237
|
+
function memoryKeep(key, value) {
|
|
238
|
+
const folded = persistEncode(value);
|
|
239
|
+
if (folded.refusal !== "")
|
|
240
|
+
return false;
|
|
241
|
+
runSlots.set(key, folded.text);
|
|
242
|
+
return true;
|
|
243
|
+
}
|
|
244
|
+
/** A new run of the app: MEMORY_PROVIDER is empty again. The runners' `newRun` op. */
|
|
245
|
+
export function memoryNewRun() {
|
|
246
|
+
runSlots.clear();
|
|
247
|
+
}
|
|
248
|
+
/** The provider each scope word's package installed (Mandatory/State installs its own two). */
|
|
249
|
+
const installedProviders = new Map();
|
|
250
|
+
/** Install (or with null, remove) the provider for one scope word. Answers the previous one. */
|
|
251
|
+
export function installPersistProvider(word, provider) {
|
|
252
|
+
const prior = installedProviders.get(word) ?? null;
|
|
253
|
+
if (provider === null)
|
|
254
|
+
installedProviders.delete(word);
|
|
255
|
+
else
|
|
256
|
+
installedProviders.set(word, provider);
|
|
257
|
+
return prior;
|
|
258
|
+
}
|
|
259
|
+
/** The provider for a word, or null where no package installed one. A word with no provider keeps
|
|
260
|
+
* the value in memory only; the build refused it first (`persist-scope-package`). */
|
|
261
|
+
export function persistProvider(word) {
|
|
262
|
+
return installedProviders.get(word) ?? null;
|
|
263
|
+
}
|
|
264
|
+
/** The seed read for any word: a word with no provider reads as a first launch. */
|
|
265
|
+
export function persistLoad(word, key) {
|
|
266
|
+
const provider = persistProvider(word);
|
|
267
|
+
if (provider === null)
|
|
268
|
+
return PERSIST_MISS;
|
|
269
|
+
try {
|
|
270
|
+
return provider.load(key);
|
|
271
|
+
}
|
|
272
|
+
catch {
|
|
273
|
+
return PERSIST_MISS;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
/** THE COMMIT ROUTE. `word` "" forgets the address (the word switched off, ADR 0017): in the
|
|
277
|
+
* scope of `previous`, the word this run last kept it under, or, when this run kept it under no
|
|
278
|
+
* word yet, in every installed scope, because an earlier run may have kept it under any of them
|
|
279
|
+
* and switching off erases what was remembered wherever it was. The address is the variable's
|
|
280
|
+
* own (`persistKey`), so no other variable's slot is touched. A local origin writes, every other
|
|
281
|
+
* origin settles. Total: a throwing provider is a kept nothing. */
|
|
282
|
+
export function persistCommit(word, previous, key, value, origin) {
|
|
283
|
+
try {
|
|
284
|
+
if (word === "") {
|
|
285
|
+
if (previous !== "") {
|
|
286
|
+
const gone = persistProvider(previous);
|
|
287
|
+
return gone === null ? false : gone.forget(key);
|
|
288
|
+
}
|
|
289
|
+
let forgot = false;
|
|
290
|
+
for (const provider of installedProviders.values()) {
|
|
291
|
+
try {
|
|
292
|
+
if (provider.forget(key))
|
|
293
|
+
forgot = true;
|
|
294
|
+
}
|
|
295
|
+
catch { /* one provider's fault is its own */ }
|
|
296
|
+
}
|
|
297
|
+
return forgot;
|
|
298
|
+
}
|
|
299
|
+
const provider = persistProvider(word);
|
|
300
|
+
if (provider === null)
|
|
301
|
+
return false;
|
|
302
|
+
return origin === "local" ? provider.write(key, value, origin) : provider.settle(key, value, origin);
|
|
303
|
+
}
|
|
304
|
+
catch {
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
const metas = new Map();
|
|
309
|
+
/** Record the declaration of one address (the head fold, once per mount). */
|
|
310
|
+
export function persistDeclare(key, meta) {
|
|
311
|
+
metas.set(key, meta);
|
|
312
|
+
}
|
|
313
|
+
/** Every declared address, in declaration order: what a transition walks. */
|
|
314
|
+
export function persistDeclared() {
|
|
315
|
+
return [...metas.keys()];
|
|
316
|
+
}
|
|
317
|
+
/** The declaration of one address, or a merge of "" where nothing was declared. */
|
|
318
|
+
export function persistMetaOf(key) {
|
|
319
|
+
return metas.get(key) ?? { merge: "" };
|
|
320
|
+
}
|
|
321
|
+
const bindings = new Map();
|
|
322
|
+
/** Bind a live surface to its address; answers the unbind. */
|
|
323
|
+
export function persistBind(key, target) {
|
|
324
|
+
let set = bindings.get(key);
|
|
325
|
+
if (set === undefined) {
|
|
326
|
+
set = new Set();
|
|
327
|
+
bindings.set(key, set);
|
|
328
|
+
}
|
|
329
|
+
set.add(target);
|
|
330
|
+
return () => {
|
|
331
|
+
const held = bindings.get(key);
|
|
332
|
+
if (held === undefined)
|
|
333
|
+
return;
|
|
334
|
+
held.delete(target);
|
|
335
|
+
if (held.size === 0)
|
|
336
|
+
bindings.delete(key);
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
/** A PROVIDER'S `onRemote`: put a value that arrived from elsewhere into every live surface
|
|
340
|
+
* holding the address. The store commits it with `origin`, so it lands through `settle` and never
|
|
341
|
+
* through `write` (I1). Answers how many surfaces took it. A value with no live surface is the
|
|
342
|
+
* provider's to keep; the next mount seeds from it through `load`. */
|
|
343
|
+
export function persistRemote(key, value, origin) {
|
|
344
|
+
const held = bindings.get(key);
|
|
345
|
+
if (held === undefined)
|
|
346
|
+
return 0;
|
|
347
|
+
for (const target of [...held])
|
|
348
|
+
target.apply(value, origin);
|
|
349
|
+
return held.size;
|
|
350
|
+
}
|
|
351
|
+
/** A PROVIDER'S reset: every live surface holding the address returns the variable to its declared
|
|
352
|
+
* default, committed with `origin` (so it settles and never uploads). Answers how many took it. */
|
|
353
|
+
export function persistReset(key, origin) {
|
|
354
|
+
const held = bindings.get(key);
|
|
355
|
+
if (held === undefined)
|
|
356
|
+
return 0;
|
|
357
|
+
for (const target of [...held])
|
|
358
|
+
target.reset?.(origin);
|
|
359
|
+
return held.size;
|
|
360
|
+
}
|
|
361
|
+
//# sourceMappingURL=persist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persist.js","sourceRoot":"","sources":["../src/persist.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,6FAA6F;AAC7F,2FAA2F;AAC3F,EAAE;AACF,uFAAuF;AACvF,gGAAgG;AAChG,+FAA+F;AAC/F,+FAA+F;AAC/F,gGAAgG;AAChG,6FAA6F;AAC7F,EAAE;AACF,gGAAgG;AAChG,sDAAsD;AACtD,EAAE;AACF,2FAA2F;AAC3F,6FAA6F;AAC7F,8FAA8F;AAC9F,2FAA2F;AAC3F,iFAAiF;AACjF,+FAA+F;AAC/F,+FAA+F;AAC/F,iGAAiG;AACjG,+FAA+F;AAC/F,gGAAgG;AAChG,6FAA6F;AAC7F,iFAAiF;AACjF,iGAAiG;AACjG,iG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