@g9tm/lynxcontrols-native 1.7.2 → 2.1.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/README.md +5 -4
- package/android/src/main/java/com/g9lynx/g9native/input/G9InputUI.kt +12 -1
- package/android/src/main/java/com/g9lynx/g9native/input/core/G9DigitsCore.kt +8 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/driver.js.map +1 -1
- package/dist/media.jsx +0 -2
- package/ios/Tests/G9NativeTestSuite.h +2 -0
- package/ios/Tests/G9NativeTestSuite.m +48 -0
- package/ios/Tests/G9NativeTests.m +36 -0
- package/ios/fonts/G9DigitsArabic-Bold.ttf +0 -0
- package/ios/fonts/G9DigitsArabic-Regular.ttf +0 -0
- package/ios/fonts/G9DigitsDecimal066B-Bold.ttf +0 -0
- package/ios/fonts/G9DigitsDecimal066B-Regular.ttf +0 -0
- package/ios/fonts/G9DigitsGroup066C-Bold.ttf +0 -0
- package/ios/fonts/G9DigitsGroup066C-Regular.ttf +0 -0
- package/ios/fonts/G9DigitsPersian-Bold.ttf +0 -0
- package/ios/fonts/G9DigitsPersian-Regular.ttf +0 -0
- package/ios/fonts/OFL.txt +93 -0
- package/ios/g9lynx-native.podspec +12 -5
- package/ios/src/G9HostModule.h +2 -2
- package/ios/src/G9InputUI.h +42 -0
- package/ios/src/G9InputUI.m +195 -0
- package/ios/src/G9SpeechModule.h +1 -1
- package/ios/src/G9SqliteModule.h +1 -1
- package/ios/src/core/G9DigitsCore.h +41 -0
- package/ios/src/core/G9DigitsCore.m +102 -0
- package/package.json +7 -5
- package/dist/media.jsx.map +0 -1
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@ Android and iOS platform layer for G9: three Lynx native modules and one element
|
|
|
9
9
|
| `G9HostModule` | `createNativeHostServices()` | `SharedPreferences`, `moveTaskToBack`, `InputMethodManager`, haptics, insets, `appDataDirectory()` = `filesDir` | `NSUserDefaults` suite, `resignFirstResponder`, `UIImpactFeedbackGenerator`, safe-area insets, `appDataDirectory()` = `Library` |
|
|
10
10
|
| `G9SpeechModule` | `createNativeSpeechToText()` → `services.speech` (dictation into fields) | `SpeechRecognizer` (main thread, partial results), the microphone asked through the host activity's `ActivityResultRegistry` | `SFSpeechRecognizer` over `AVAudioEngine`; register it on the host's `LynxConfig`; Info.plist `NSMicrophoneUsageDescription` + `NSSpeechRecognitionUsageDescription` |
|
|
11
11
|
| `<g9-video>` element | `createNativeMediaProvider()` (`@g9tm/lynxcontrols-native/media`) | `G9VideoUI`: Media3 ExoPlayer 1.8.0 into a `TextureView` (opacity fades work); register `G9VideoBehaviors.create()` | `G9VideoUI`: `AVQueuePlayer` + `AVPlayerLooper` in an `AVPlayerLayer`; self-registers (`LYNX_REGISTER_UI`) |
|
|
12
|
+
| `<input>` / `<textarea>` drawing the culture's digits (`g9-digits`, set by the library's fields) | none | `G9InputBehaviors.create()`: xelement-input's fields with a `ReplacementTransformationMethod` | `[G9InputBehaviors registerOn:config]`: XElement's fields with a digits font in front of their own (a `UIFontDescriptor` cascade list; the fonts in `ios/fonts`, from Vazirmatn, SIL OFL 1.1) |
|
|
12
13
|
|
|
13
14
|
```ts
|
|
14
15
|
import { createG9Sqlite, singleFileDatabaseLocator } from '@g9tm/lynxcontrols-sqlite';
|
|
@@ -74,7 +75,7 @@ ios/src/ G9SqliteModule.m, G9HostModule.m, G9SpeechModule.m (dispatch
|
|
|
74
75
|
on the host's LynxConfig
|
|
75
76
|
ios/Tests/ G9NativeTestSuite (XCTest on a simulator; Linux harness in Tests/linux)
|
|
76
77
|
jvm/ JVM-only Gradle build of the core + tests (no Android SDK needed)
|
|
77
|
-
android-check/ cloud compile check of module + reference host against the published Lynx 4.
|
|
78
|
+
android-check/ cloud compile check of module + reference host against the published Lynx 4.2.0 classes (Media3,
|
|
78
79
|
androidx.sqlite and androidx.activity as compile-only stubs under stubs/), and
|
|
79
80
|
LynxBridgeSignatureTest: every @LynxMethod through Lynx's own LynxMethodWrapper
|
|
80
81
|
```
|
|
@@ -85,7 +86,7 @@ generated Java specs could not compile under that name.
|
|
|
85
86
|
The native identifiers are internal and did not follow the npm rename to `@g9tm/lynxcontrols-native` (decision D12):
|
|
86
87
|
the Android package `com.g9lynx.g9native`, the iOS pod `g9lynx-native`, the module classes `G9SqliteModule` and
|
|
87
88
|
`G9HostModule`, and the preference store `g9lynx.preferences` keep their names, so hosts and stored data are not
|
|
88
|
-
affected. The pod's version follows the package version (
|
|
89
|
+
affected. The pod's version follows the package version (the family's `LYNX_VERSION`).
|
|
89
90
|
|
|
90
91
|
## Commands
|
|
91
92
|
|
|
@@ -93,8 +94,8 @@ affected. The pod's version follows the package version (= the pinned G9MAUICont
|
|
|
93
94
|
| --- | --- |
|
|
94
95
|
| `npm run test:android-jvm` | Kotlin core: contract 27/27 over both transports (JDBC engine), unit tests, JaCoCo gate (lines ≥ 95 %, branches ≥ 85 %) |
|
|
95
96
|
| `gradle -p packages/native/jvm check -Pg9.bundled=true` | The same on androidx `BundledSQLiteDriver` (needs Google Maven) |
|
|
96
|
-
| `npm run check:android-module` | Module and host compile against Lynx 4.
|
|
97
|
-
| `npm run test:ios-core` | iOS core on Linux (clang + GNUstep): contract 27/27 × 2, golden byte-identical with Kotlin, interrupt, ARC syntax |
|
|
97
|
+
| `npm run check:android-module` | Module and host compile against Lynx 4.2.0, and the Autolink provider is generated |
|
|
98
|
+
| `npm run test:ios-core` | iOS core on Linux (clang + GNUstep, also in WSL or Docker): contract 27/27 × 2, golden byte-identical with Kotlin, interrupt, the video rules, the digits plan, ARC syntax (and `G9InputUI.m` against `Tests/linux/stubs`) |
|
|
98
99
|
| `npm run bench:transport` | JS decode cost of `columnar` vs `rows` |
|
|
99
100
|
|
|
100
101
|
Host integration: [`docs/integration/android.md`](../../docs/integration/android.md) and
|
|
@@ -30,6 +30,7 @@ internal class G9DigitsTransformation(private val pairs: Pair<CharArray, CharArr
|
|
|
30
30
|
internal class G9FieldDigits(private val singleLine: Boolean) {
|
|
31
31
|
var system: String? = null
|
|
32
32
|
var decimalSeparator: String? = null
|
|
33
|
+
var groupSeparator: String? = null
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
36
|
* Puts the digit transformation on `view` after xelement-input's own props ran (it sets SingleLine / Password there).
|
|
@@ -38,7 +39,7 @@ internal class G9FieldDigits(private val singleLine: Boolean) {
|
|
|
38
39
|
fun apply(view: LynxEditTextView) {
|
|
39
40
|
val current: TransformationMethod? = view.transformationMethod
|
|
40
41
|
if (current is PasswordTransformationMethod) return
|
|
41
|
-
val pairs = G9DigitsCore.pairs(system, decimalSeparator, singleLine)
|
|
42
|
+
val pairs = G9DigitsCore.pairs(system, decimalSeparator, singleLine, groupSeparator)
|
|
42
43
|
val wanted: TransformationMethod? =
|
|
43
44
|
when {
|
|
44
45
|
pairs != null -> {
|
|
@@ -70,6 +71,11 @@ class G9UIInput(context: LynxContext) : LynxUIInput(context) {
|
|
|
70
71
|
digits.decimalSeparator = value
|
|
71
72
|
}
|
|
72
73
|
|
|
74
|
+
@LynxProp(name = "g9-group-separator")
|
|
75
|
+
fun setG9GroupSeparator(value: String?) {
|
|
76
|
+
digits.groupSeparator = value
|
|
77
|
+
}
|
|
78
|
+
|
|
73
79
|
override fun afterPropsUpdated(props: StylesDiffMap?) {
|
|
74
80
|
super.afterPropsUpdated(props)
|
|
75
81
|
digits.apply(view)
|
|
@@ -90,6 +96,11 @@ class G9UITextArea(context: LynxContext) : LynxUITextArea(context) {
|
|
|
90
96
|
digits.decimalSeparator = value
|
|
91
97
|
}
|
|
92
98
|
|
|
99
|
+
@LynxProp(name = "g9-group-separator")
|
|
100
|
+
fun setG9GroupSeparator(value: String?) {
|
|
101
|
+
digits.groupSeparator = value
|
|
102
|
+
}
|
|
103
|
+
|
|
93
104
|
override fun afterPropsUpdated(props: StylesDiffMap?) {
|
|
94
105
|
super.afterPropsUpdated(props)
|
|
95
106
|
digits.apply(view)
|
|
@@ -23,9 +23,10 @@ object G9DigitsCore {
|
|
|
23
23
|
/**
|
|
24
24
|
* The characters to replace and their replacements (same length), or `null` when nothing is replaced.
|
|
25
25
|
* `singleLine` keeps what `SingleLineTransformationMethod` does (newline → space, CR → U+FEFF), since this method
|
|
26
|
-
* replaces it on a single-line input; `decimalSeparator` (one character, e.g. «٫») is drawn for the ASCII '.'
|
|
26
|
+
* replaces it on a single-line input; `decimalSeparator` (one character, e.g. «٫») is drawn for the ASCII '.', and
|
|
27
|
+
* `groupSeparator` (e.g. «٬») for the ASCII ',' of a number field that groups while typing (G9NumberEntry).
|
|
27
28
|
*/
|
|
28
|
-
fun pairs(system: String?, decimalSeparator: String?, singleLine: Boolean): Pair<CharArray, CharArray>? {
|
|
29
|
+
fun pairs(system: String?, decimalSeparator: String?, singleLine: Boolean, groupSeparator: String? = null): Pair<CharArray, CharArray>? {
|
|
29
30
|
val zero = zeroOf(system) ?: return null
|
|
30
31
|
val from = StringBuilder("0123456789")
|
|
31
32
|
val to = StringBuilder()
|
|
@@ -35,6 +36,11 @@ object G9DigitsCore {
|
|
|
35
36
|
from.append('.')
|
|
36
37
|
to.append(separator)
|
|
37
38
|
}
|
|
39
|
+
val group = groupSeparator?.takeIf { it.length == 1 && it != "," }
|
|
40
|
+
if (group != null) {
|
|
41
|
+
from.append(',')
|
|
42
|
+
to.append(group)
|
|
43
|
+
}
|
|
38
44
|
if (singleLine) {
|
|
39
45
|
from.append('\n').append('\r')
|
|
40
46
|
to.append(' ').append('')
|
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../../sqlite/dist/values/ids.d.ts","../../sqlite/dist/values/int64.d.ts","../../sqlite/dist/values/local-date-time.d.ts","../../sqlite/dist/values/sql-value.d.ts","../../sqlite/dist/codecs/codecs.d.ts","../../foundation/dist/collections.d.ts","../../foundation/dist/culture/digits.d.ts","../../foundation/dist/culture/culture.d.ts","../../foundation/dist/culture/calendar.d.ts","../../foundation/dist/culture/date-format.d.ts","../../foundation/dist/culture/duration.d.ts","../../foundation/dist/culture/numbers.d.ts","../../foundation/dist/culture/strings.d.ts","../../foundation/dist/culture/relative-time.d.ts","../../foundation/dist/culture/index.d.ts","../../foundation/dist/enums/index.d.ts","../../foundation/dist/errors.d.ts","../../foundation/dist/exec/diagnostics.d.ts","../../foundation/dist/services/abort.d.ts","../../foundation/dist/exec/options.d.ts","../../foundation/dist/services/clock.d.ts","../../foundation/dist/exec/trace.d.ts","../../foundation/dist/exec/safe-executor.d.ts","../../foundation/dist/exec/index.d.ts","../../foundation/dist/icons/generated/glyph-svg.d.ts","../../foundation/dist/icons/glyph.d.ts","../../foundation/dist/icons/icon.d.ts","../../foundation/dist/icons/glyph-slots.d.ts","../../foundation/dist/icons/icon-fonts.d.ts","../../foundation/dist/icons/svg.d.ts","../../foundation/dist/icons/index.d.ts","../../foundation/dist/route/address.d.ts","../../foundation/dist/route/catalogue.d.ts","../../foundation/dist/route/journey.d.ts","../../foundation/dist/route/sink.d.ts","../../foundation/dist/route/resolve.d.ts","../../foundation/dist/route/view.d.ts","../../foundation/dist/route/index.d.ts","../../foundation/dist/services/preferences.d.ts","../../foundation/dist/services/contracts.d.ts","../../foundation/dist/services/motion.d.ts","../../foundation/dist/services/index.d.ts","../../foundation/dist/theme/color.d.ts","../../foundation/dist/tokens/generated/palettes.d.ts","../../foundation/dist/theme/theme.d.ts","../../foundation/dist/theme/control-colors.d.ts","../../foundation/dist/theme/variants.d.ts","../../foundation/dist/theme/index.d.ts","../../foundation/dist/tokens/generated/metrics.d.ts","../../foundation/dist/tokens/layout-metrics.d.ts","../../foundation/dist/tokens/css-vars.d.ts","../../foundation/dist/tokens/index.d.ts","../../foundation/dist/index.d.ts","../../sqlite/dist/driver/types.d.ts","../../sqlite/dist/contract/run-contract.d.ts","../../sqlite/dist/errors.d.ts","../../sqlite/dist/schema/columns.d.ts","../../sqlite/dist/query/expr.d.ts","../../sqlite/dist/schema/policies.d.ts","../../sqlite/dist/schema/entity.d.ts","../../sqlite/dist/query/compile.d.ts","../../sqlite/dist/query/builders.d.ts","../../sqlite/dist/repo/audit.d.ts","../../sqlite/dist/session/ambient.d.ts","../../sqlite/dist/session/locator.d.ts","../../sqlite/dist/session/migrations.d.ts","../../sqlite/dist/session/mutex.d.ts","../../sqlite/dist/session/write-hooks.d.ts","../../sqlite/dist/session/database.d.ts","../../sqlite/dist/session/cache.d.ts","../../sqlite/dist/session/scope.d.ts","../../sqlite/dist/repo/repository.d.ts","../../sqlite/dist/session/schema-setup.d.ts","../../sqlite/dist/index.d.ts","../src/protocol.ts","../src/transport.ts","../src/driver.ts","../src/services.ts","../src/speech.ts","../src/index.ts","../../../node_modules/@lynx-js/react/runtime/lib/runtime-marker.d.ts","../../../node_modules/preact/src/jsx.d.ts","../../../node_modules/preact/src/dom.d.ts","../../../node_modules/preact/src/index.d.ts","../../../node_modules/preact/hooks/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/react.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/runwithforce.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx.d.ts","../../../node_modules/preact/compat/src/suspense.d.ts","../../../node_modules/preact/compat/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/children.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portalspending.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portals.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/suspense.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/uselynxglobaleventlistener.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/globalprops.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/initdata.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/lynx-data-processors.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/background-function/run-on-background.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/worklet/call/runonmainthread.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/effect.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/animation.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/bindings/types.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-ref.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-object.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx-api.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/index.d.ts","../../../node_modules/@lynx-js/react/types/react.docs.d.ts","../../../node_modules/@lynx-js/react/types/react.d.ts","../src/media.tsx"],"fileIdsList":[[41,96,97,209,210],[182,183,188,194],[41,183],[41,182,183,188,194],[41,203],[179,182,184,186,188,189,190,192,193,206],[41,194,195,196,197,198,199,204,205],[184,185],[182,188],[41,96,209,210],[41,96,182,191,209,210],[182],[200],[202],[201],[41,96,98,208,209,210],[41,184,206,207],[42,86,87,88],[53],[42,78,87,88,89,90,92,93,94],[42,86,87,88,90,91],[86,88],[42,86],[49,78],[43],[44],[51,55],[47],[41,51,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80],[47,51,55,78],[47,51,55],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83],[58,59],[47,51,55,59],[47,61,64],[46],[48,52,53,95],[44,47,48,49,51,53,54,55,84,85],[44,47],[52,86,95],[45,86],[46,47,55],[45,46,50,51],[49,86],[38,39,40],[41],[180,182,183,187],[180,181],[106],[105],[105,106,107],[105,106,107,108,109,110,111,112],[111],[116,118,120,121],[117],[111,116,117,118,119,120],[116,119],[125],[124],[123,124,125,126,127,128],[104,113,114,115,122,129,136,140,146,150],[115],[115,130],[130,131,132,133,134,135],[131],[130,131,133],[130],[115,117,119,133,137],[117,119,137,138,139],[141,143],[141,143,144,145],[141,142],[114,141,142],[142,147,148],[142,147,148,149],[98,172,173,174],[98,173,174,175,176,177],[96,98,151,173,209],[98],[98,151,173],[98,172,173],[99,100,101,102],[102,152],[102,151],[151],[99,100,101,102,103,152,153,154,155,156,157,158,159,160,161,162,163,164,166,167,168,169,170,171],[102,103,156,158,159],[102,103,156],[102,103,155],[99,101,158],[101,102,151,152,156,157,158,160,166,167,168,169,172],[100,101,103],[155,156,157],[156],[99,101,151],[157,158,167],[99,101,103,151,152,158,160,162,163,164,165,166,168],[151,158],[103,152,158,167],[152,157,158,160,166,167,168,170],[151,154,156,158],[100]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},"bbe47f7ebb177015803b69bad47ecf0e5987449cae5dd498664a9e4885d7cdff","4f260a074507a0065f3cd71d1adc1b361f5337b3db9e8d01589d5872e9387a4a","7674dcae15d29bcba5a7e8c26defdb06bf75297bfaa3025037bcc1e4df7b0ae1","fd99d077c946173acf9d955de97346ce70eee272fad895a7859cbf0846a9c16e","c93a8b906c128dec5e80e64404e21ea7a083f71c58de46d0b9b3c144a99a8f24","d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f","44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef","d3dcff003bac57338c3e60be409d0ff167ec1ff513539a5534c7679332dbc992","16d64c89cec74fa23e8cee7c72acc7549f117dcf7845051870c40366c7522d09","11f9f682c02d51de68eed569f8de1e91c56df296a78f3a6c520b93d52aac2308","28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a","b06c48902c3d127098839c1a6500f41d3e21b2f07f277ba7de23ec730df7275d","946d8fa2088c22a4cbc85875ec7c700c93cf53d7b52057fe4e6730fd613c7925","a7a0e658ca429cfb5268d4bf2e2e6e9fe871ffd06b6588d65424ba4eba35338f","ab4c80cb9cf211a7cd100429cb4a823c5bd9f3618bf981e6504c6606abf08656","90f04f0f48188e8ac4fcb93070d96a39b1a3ce5877c03f83443d9332399cd582","ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26","abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018","f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c","3ae17ae844491c7326d070c3e70a94a9239394e7a1e84eb203eb1d57470e752e","d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93","b2c4833e6308888c3947953770b3343deaf4276c803bb36148991a3fb90b4f6a","41b7c8204ea79a93e380a228f5c744e9c9a80183133ac62633a4c76e3fdbd7db","d0a441df587b0632c16a813117f110574d903ddd0bc4d28599cc82ff8af7c094","b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9","068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf","5c1d368a451520260ebb6c06121201f18abf86d80540290df6e424d372c5d0ed","bb3ccaacf5c19a7170939b7f735c6a94537fd95ad16b4247a6ad572b23183e74","2c8b86d9d29c4ea62762c3815ffe4fdb0c5dbc0dd096b9703236010f4a17c255","9528dc401d1a2502393af70423c895c3df61ef62240c0dca429a7cd1bd535b82","eebf270ff516980678bf039e03e18a9461f196aee2825d4d65f7d8a1fa362bff","40f34f36aba872decb7540030db33dc84f1a53d4778fd8c8ad840d68f2023f3a","10347593c1b262343845f577673e5956217a8a571c859d83e2de50a54729541f","e0a192de84052b553230c5f649307dfb49df6dce54fdc538de15078d895f5f66","228e7d711e429183ddf7fc8c331d00540557ade296fb8132d5bfc48d5c933f89","e8906c76ded4f87db27adfe3e8f9e1a729be51a6a0c2c458f31662c6278b1925","49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3","08fe86bcae8e02f769d215958438d6858dc19aeed2a61c7d7327f052b0db25fc","ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669","42b4a92b93b7c4e5b22f80ecd2de76131ed9c38f311f42f3d492241a1320ae2e","216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d","f6d793b6c416157f50f82be85376ac2a9ee5a9f66e34a8317c9be19f8b4d41a7","29e6e980f179ac2981d68954462dfd4a4545f73c021f6a4c8a5f442c0e16e56c","faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7","cbd4ce7ee090549d836cbffac2e76a192ac5b1c5f15bcbe29c06d32dc7006f34","ea5a5d5873c239b97d846fb8c78437e08ffd731924764f746c0ebcb7731d7648","fb6b5b4592e0eca5b8dc2507432e621a18c16d488ae8a610e4d1ddba1edff667","df85ab12f80aced067959d43bd7744017fccb1eb95adcfa343f16cba7c9ef670","ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3","298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33","c8082c78975419ed5a9f7daa655643425cdd98fee91bb82fd92d25f908c78465","3d1717d66cd1094139f0c1f0ed07ec56d91e4f5cd27e2b6309b6f195491e7f4a","445f1315ba05f837a7fa571a383feb1b75ea8802216806d35a82a7fcbf7a7939","ec5e4d7021c750ea1b5b29b6c5d40e3cdbc180762b0806f0d0cbe117327162b9","594145b6622d5b02a40942c1a17fa6bb4fdb13a277ec703ee38018fc22d45034","a244408662b901d15567a5bcff4b29cd13a2a6c9bb2c27329eec616c48c8f144","4445f683ff67d2a80f6cbb5ae52039753c899890ebc27086ad17ffd005a8330d","050e9264752c154aa4f2d64f89c66a6e53dbf13a829c462aaa88eecc6e2e64b7","7cd6162b58f9275f44dc4e2293e0b7965680c2c271f7a2f8cece0b90ec61627c","6c2207dbeb0be8f55f38992b4b780ec29a8a0a0787b7076d8460ea71a27d5187","da3481884a0bbe5a9dfb44c1819ca7ad109cc1712d8a793eeef8742d94322ac1","f007826b8993773396aea70f1ad8b3e812aa33ee356b4c4034125efbc727ebb4","d25b3f0682520845fa1a1f42cdc23fbf5c0f7f8dc9806ec74d47f075d29b06dd","0a9f595404a498a83031f74e28f9fb3218038195f032a83da72146b3f8b5fb8c","54f9c37e150e434622cff5d71fb87237c48497141cb379fc1ab4d019a4a43e2e","0a0bb371deaec9e4e6580408c196fe5f0b668764c7a774f3f3f8a1447df0316f","6f5878e8666a8abbb560dcc15b19c95ac5b0f4f85aabab2e804abb6a145030e4","42997ccaad776930cb3b67f9585e680fb600e60c4464004d79eb2811869d047b","f341bef577fe12a6a779c986f89598855b39fe27810f12b2a181df6182cfc986","ebb1f50c2d70bc6310ac7eb99218ae3c0aba56d532964aff7a6872c668345d06","e34992c536be7eba4356e76d29f0cea34c8ef825ebe5f7f57841e48c38a6db17","e4f379e50c84ebb1be3476e4318c27597a0fcd518d7afca038f43a7ba4798c3c","09a9cb77ae0718ba8ccac3503fad79a896f071a24a64f8d40414d9c4f49e1b31","09ecbb99c6068a330c19d3c2efba4061bc1f3f7c55c1ae792398cc072d8a0dee",{"version":"7b7770361f404e9b167bce0ee92a608d8d14cb0b2f747ca9b300998db438a0fb","signature":"81d5aa9d15ee1ca18b073ecd13aa979f24d9100c2842f9e254d27992e014dd8a"},{"version":"b196a892a7087bc69d5e14a1647aaf5acfcdf995c1935a55afe405253c153b4c","signature":"f63a428eadbfdbc8c9137c4bdaa77a23988f7e82d1b01b5ef7d13e2f37d3d044"},{"version":"bb4df5f784c131c8fc70cfb1868ab99b883347d48c7260450d3c56958a996d60","signature":"b2b0e3e6fd8b425abfb54a11133c8b9abfc186d61ac86adc8deaba0b8c2f4e8f"},{"version":"0f5c336dc6acf154d2d0345e712c571683389b378778690a43d6d60ae386d4ea","signature":"bd3f683b47db8bdf2c50f5c3becea6fd0610f1e70ae35e0a2d0605c7200b6719"},{"version":"a6ed2271e6d0d4530f902777df5c4123b86c872f50ef6796ec63b77f56ac11b9","signature":"46ec089d57ddc32a6869f7cdfb6a81e37a8b93eb3d4c15798ea7c2de2ff947d4"},{"version":"a2199b85e9360ee3c5f384b56666662168daecca269293ab815da773e1e6391d","signature":"f7e148507097b2e8e1703df7b0b9acb7b65afed60aa3addd303f0cc97dab640c"},{"version":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99},{"version":"8a2ef120c4da7aab664148ed8d283aa0b98df4d5f15c570d830c8998ef05718b","impliedFormat":1},{"version":"4433d18f82991634feae5150a68f9b30f5b05b55416af8ff9f7251fb29431ed5","impliedFormat":1},{"version":"cc5d0b221824b7d8597e8a2bbdad2383af877eb564eaca392992049839e88c9e","impliedFormat":1},{"version":"21898d939444825cee1232af435330610b09171bea22a2f892cf2058d764b63d","impliedFormat":1},{"version":"2baebea93983e898000858daeeeb2ac29938891b6b8db72ebce294837fc9499f","impliedFormat":99},{"version":"d9d320cf31f6d63659484f6c9ca4db4ae673daefa65118dd8589838925ff1397","impliedFormat":99},{"version":"027cf2216d065a97bf5a8ea126b3ea2734fab6cfe32adaff81ab4e94a1b51bbe","impliedFormat":99},{"version":"f6e6313fad233c5141220f7d25eae120cdd6e5079fbe0aba56821a1e99d05df8","impliedFormat":1},{"version":"9534c35b4577c193e499178deb47419fdadddd5e53af5ec8cb88218848013f65","impliedFormat":1},{"version":"97f43a6558157a3abae4e32256cc74ba34f69ab30473008ffa13011bf0932986","impliedFormat":99},{"version":"45b8adde5735e97329752dd5598b7ecd85202f221a1d0e8aa90137ce5810f21c","impliedFormat":99},{"version":"dfe6945467765f8e7843442a9dfbcf6b5526b6465b07b4c75a54a750329b5f17","impliedFormat":99},{"version":"7f9f6c9fe0e48c401d855d849e28112ffe2425569eca01b08b8c6112b8200695","impliedFormat":99},{"version":"68fcdc663627d12d336b420b19b3e54258844d0cbca0879f711c22aafd853352","impliedFormat":99},{"version":"d3dd47deefa1cc5dd6f1b866132506ec8dfd678ae0ddaa44de188505df14fcc4","impliedFormat":99},{"version":"a5946bc88dac85da2afacdfa3471ff3bc2bbda7c0e34efde184cf17e6bceb6bc","impliedFormat":99},{"version":"75b68165b9bcc07579562f182d327e83583b89b91d62e76b86f4001feee699ba","impliedFormat":99},{"version":"a9d1030f6773d29b383f49e2c647a7e6e464906e1de97a6bc33d2528d957c4d7","impliedFormat":99},{"version":"37b997d60987b68ce8117da783442b4602c8a85d47680823d469fdc90d29e3b8","impliedFormat":99},{"version":"600850ecc310012e3b1a562629d97a1d78662ae8c477357513dd2e6aa704079b","impliedFormat":99},{"version":"335226d599a9382c9bea07d37e23bf998c1022c0f67e4d6d2b69633de6ac118f","impliedFormat":99},{"version":"ae430fd9bac320e71c3fe9299d90dcf67555d9a4f97ecaa35947b430ba8648ea","impliedFormat":99},{"version":"9061ff14146280f47d740b344ddd641c16df526ecaa868c348852277a9fb8686","impliedFormat":99},{"version":"49ee4555c2fafa01119cccc62436baad88ed937ff55d6a655e764ada6b0721e3","impliedFormat":99},{"version":"e059fb9064bc023bc06945ddda6b00e711c18e8657c82514b51c1c1b828642e9","impliedFormat":99},{"version":"f01b3b376946defc432893dcbbbc79472076b6a55a316b0a461a1b38d09e961c","impliedFormat":99},{"version":"da74d8af20172cfee988a2daf92c560f3fdc816fb9c0537f2cc37ef27b1552a8","impliedFormat":99},{"version":"feed66ae8815d1981ad575482766fb9a82385e75cce35ae2f13be58e50c4349f","impliedFormat":99},{"version":"21305b3c41b1e29c0f0d8f43fe227bca82493f6e4c6407a3363c6f729f1c04ba","affectsGlobalScope":true,"impliedFormat":99},{"version":"20c1041fbd4f1537686af4b707872b87c90a22201f8979e5def4554d28b46a5b","impliedFormat":99},{"version":"57ff3023920f09ea08ee1fb662518ff60312e81781e03c4e3b50cef3322143be","signature":"495d5d4a044fa18020972e7146c7416e467a364a9b23de05b096335d212ac9bb"}],"root":[[173,178],210],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[98,1],[195,2],[184,3],[196,4],[204,5],[207,6],[206,7],[186,8],[189,9],[190,10],[192,11],[193,12],[201,13],[200,14],[202,15],[203,14],[209,16],[208,17],[89,18],[91,19],[95,20],[92,21],[93,22],[88,23],[90,24],[44,25],[83,26],[74,27],[59,28],[56,27],[81,29],[57,27],[79,30],[58,31],[84,32],[60,33],[67,31],[62,27],[61,34],[76,31],[82,35],[80,31],[63,27],[71,31],[72,31],[64,34],[70,31],[65,34],[68,31],[69,27],[77,31],[66,27],[73,31],[75,31],[47,36],[54,37],[86,38],[55,39],[96,40],[45,36],[46,41],[51,42],[52,43],[50,44],[41,45],[97,46],[188,47],[187,12],[183,12],[181,12],[182,48],[180,12],[107,49],[106,50],[108,51],[113,52],[110,50],[112,53],[111,49],[122,54],[118,55],[121,56],[120,57],[126,58],[127,58],[125,59],[129,60],[128,59],[151,61],[130,62],[131,63],[136,64],[132,65],[134,66],[133,67],[138,68],[140,69],[141,62],[144,70],[146,71],[143,72],[145,73],[149,74],[150,75],[175,76],[178,77],[210,78],[173,79],[176,80],[177,80],[174,81],[103,82],[153,83],[152,84],[154,85],[172,86],[160,87],[159,88],[156,89],[161,90],[170,91],[155,92],[158,93],[157,94],[162,95],[168,96],[167,97],[164,98],[171,99],[169,100],[166,101],[102,102]],"latestChangedDtsFile":"./media.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../../sqlite/dist/values/ids.d.ts","../../sqlite/dist/values/int64.d.ts","../../sqlite/dist/values/local-date-time.d.ts","../../sqlite/dist/values/sql-value.d.ts","../../sqlite/dist/codecs/codecs.d.ts","../../foundation/dist/collections.d.ts","../../foundation/dist/culture/bidi.d.ts","../../foundation/dist/culture/digits.d.ts","../../foundation/dist/culture/culture.d.ts","../../foundation/dist/culture/calendar.d.ts","../../foundation/dist/culture/coordinates.d.ts","../../foundation/dist/culture/date-format.d.ts","../../foundation/dist/culture/duration.d.ts","../../foundation/dist/culture/natural-date.d.ts","../../foundation/dist/culture/numbers.d.ts","../../foundation/dist/culture/strings.d.ts","../../foundation/dist/culture/relative-time.d.ts","../../foundation/dist/culture/text.d.ts","../../foundation/dist/culture/index.d.ts","../../foundation/dist/enums/index.d.ts","../../foundation/dist/errors.d.ts","../../foundation/dist/exec/diagnostics.d.ts","../../foundation/dist/services/abort.d.ts","../../foundation/dist/exec/options.d.ts","../../foundation/dist/services/clock.d.ts","../../foundation/dist/exec/trace.d.ts","../../foundation/dist/exec/safe-executor.d.ts","../../foundation/dist/exec/index.d.ts","../../foundation/dist/icons/generated/glyph-svg.d.ts","../../foundation/dist/icons/glyph.d.ts","../../foundation/dist/icons/icon.d.ts","../../foundation/dist/icons/glyph-slots.d.ts","../../foundation/dist/icons/icon-fonts.d.ts","../../foundation/dist/icons/packs.d.ts","../../foundation/dist/icons/svg.d.ts","../../foundation/dist/icons/index.d.ts","../../foundation/dist/layout/index.d.ts","../../foundation/dist/route/address.d.ts","../../foundation/dist/route/catalogue.d.ts","../../foundation/dist/route/journey.d.ts","../../foundation/dist/route/sink.d.ts","../../foundation/dist/route/resolve.d.ts","../../foundation/dist/route/view.d.ts","../../foundation/dist/route/index.d.ts","../../foundation/dist/services/feedback.d.ts","../../foundation/dist/services/preferences.d.ts","../../foundation/dist/services/contracts.d.ts","../../foundation/dist/services/keys.d.ts","../../foundation/dist/services/motion.d.ts","../../foundation/dist/services/index.d.ts","../../foundation/dist/tokens/generated/palettes.d.ts","../../foundation/dist/theme/aliases.d.ts","../../foundation/dist/tokens/shape.d.ts","../../foundation/dist/theme/color.d.ts","../../foundation/dist/theme/theme.d.ts","../../foundation/dist/theme/brand.d.ts","../../foundation/dist/theme/appearance.d.ts","../../foundation/dist/theme/contrast.d.ts","../../foundation/dist/theme/control-colors.d.ts","../../foundation/dist/theme/css-color.d.ts","../../foundation/dist/theme/design.d.ts","../../foundation/dist/theme/oklch.d.ts","../../foundation/dist/theme/recipe.d.ts","../../foundation/dist/tokens/generated/metrics.d.ts","../../foundation/dist/tokens/layout-metrics.d.ts","../../foundation/dist/tokens/css-vars.d.ts","../../foundation/dist/tokens/derived.d.ts","../../foundation/dist/theme/variants.d.ts","../../foundation/dist/theme/index.d.ts","../../foundation/dist/tokens/index.d.ts","../../foundation/dist/index.d.ts","../../sqlite/dist/driver/types.d.ts","../../sqlite/dist/contract/run-contract.d.ts","../../sqlite/dist/errors.d.ts","../../sqlite/dist/schema/columns.d.ts","../../sqlite/dist/query/expr.d.ts","../../sqlite/dist/schema/policies.d.ts","../../sqlite/dist/schema/entity.d.ts","../../sqlite/dist/query/compile.d.ts","../../sqlite/dist/query/builders.d.ts","../../sqlite/dist/repo/audit.d.ts","../../sqlite/dist/session/ambient.d.ts","../../sqlite/dist/session/locator.d.ts","../../sqlite/dist/session/migrations.d.ts","../../sqlite/dist/session/mutex.d.ts","../../sqlite/dist/session/write-hooks.d.ts","../../sqlite/dist/session/database.d.ts","../../sqlite/dist/session/cache.d.ts","../../sqlite/dist/session/scope.d.ts","../../sqlite/dist/repo/repository.d.ts","../../sqlite/dist/session/schema-setup.d.ts","../../sqlite/dist/index.d.ts","../src/protocol.ts","../src/transport.ts","../src/driver.ts","../src/services.ts","../src/speech.ts","../src/index.ts","../../../node_modules/@lynx-js/react/runtime/lib/runtime-marker.d.ts","../../../node_modules/preact/src/jsx.d.ts","../../../node_modules/preact/src/dom.d.ts","../../../node_modules/preact/src/index.d.ts","../../../node_modules/preact/hooks/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/react.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/runwithforce.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx.d.ts","../../../node_modules/preact/compat/src/suspense.d.ts","../../../node_modules/preact/compat/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/children.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portalspending.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portals.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/suspense.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/uselynxglobaleventlistener.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/globalprops.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/initdata.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/lynx-data-processors.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/background-function/run-on-background.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/worklet/call/runonmainthread.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/effect.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/animation.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/bindings/types.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-ref.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-object.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx-api.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/index.d.ts","../../../node_modules/@lynx-js/react/types/react.docs.d.ts","../../../node_modules/@lynx-js/react/types/react.d.ts","../src/media.tsx"],"fileIdsList":[[41,96,97,227,228],[200,201,206,212],[41,201],[41,200,201,206,212],[41,221],[197,200,202,204,206,207,208,210,211,224],[41,212,213,214,215,216,217,222,223],[202,203],[200,206],[41,96,227,228],[41,96,200,209,227,228],[200],[218],[220],[219],[41,96,98,226,227,228],[41,202,224,225],[42,86,87,88],[53],[42,78,87,88,89,90,92,93,94],[42,86,87,88,90,91],[86,88],[42,86],[49,78],[43],[44],[51,55],[47],[41,51,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80],[47,51,55,78],[47,51,55],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83],[58,59],[47,51,55,59],[47,61,64],[46],[48,52,53,95],[44,47,48,49,51,53,54,55,84,85],[44,47],[52,86,95],[45,86],[46,47,55],[45,46,50,51],[49,86],[38,39,40],[41],[198,200,201,205],[198,199],[107],[106],[106,107,108],[105,106,107,108,109,110,111,112,113,114,115,116],[108],[114],[120,122,124,125],[121],[114,120,121,122,123,124],[120,123],[129],[128],[127,128,129,130,131,132,133],[104,117,118,119,126,134,135,142,148,167,168],[119],[119,136],[136,137,138,139,140,141],[137],[136,137,139],[136],[119,121,123,139,143,144],[121,123,143,144,145,146,147],[149],[149,151,153,154],[149,152,153],[152,153],[152],[151,153],[150,152,153,154,155,156,157,158,159,160,161,166],[149,152],[118,149,152,165],[149,162,163],[149,164],[149,151,162,163,164,165],[98,190,191,192],[98,191,192,193,194,195],[96,98,169,191,227],[98],[98,169,191],[98,190,191],[99,100,101,102],[102,170],[102,169],[169],[99,100,101,102,103,170,171,172,173,174,175,176,177,178,179,180,181,182,184,185,186,187,188,189],[102,103,174,176,177],[102,103,174],[102,103,173],[99,101,176],[101,102,169,170,174,175,176,178,184,185,186,187,190],[100,101,103],[173,174,175],[174],[99,101,169],[175,176,185],[99,101,103,169,170,176,178,180,181,182,183,184,186],[169,176],[103,170,176,185],[170,175,176,178,184,185,186,188],[169,172,174,176],[100]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},"bbe47f7ebb177015803b69bad47ecf0e5987449cae5dd498664a9e4885d7cdff","4f260a074507a0065f3cd71d1adc1b361f5337b3db9e8d01589d5872e9387a4a","7674dcae15d29bcba5a7e8c26defdb06bf75297bfaa3025037bcc1e4df7b0ae1","fd99d077c946173acf9d955de97346ce70eee272fad895a7859cbf0846a9c16e","c93a8b906c128dec5e80e64404e21ea7a083f71c58de46d0b9b3c144a99a8f24","d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f","577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851","44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef","d3dcff003bac57338c3e60be409d0ff167ec1ff513539a5534c7679332dbc992","16d64c89cec74fa23e8cee7c72acc7549f117dcf7845051870c40366c7522d09","706c787ed201e67534e550d765eecfb18a8c39f46e04fcec600d0bb9d1bb6231","11f9f682c02d51de68eed569f8de1e91c56df296a78f3a6c520b93d52aac2308","28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a","08521f5befe6ec3f1c3a881651321f875ca6fc79db15a6130283d409f5d47d1b","b06c48902c3d127098839c1a6500f41d3e21b2f07f277ba7de23ec730df7275d","946d8fa2088c22a4cbc85875ec7c700c93cf53d7b52057fe4e6730fd613c7925","a7a0e658ca429cfb5268d4bf2e2e6e9fe871ffd06b6588d65424ba4eba35338f","2dbadaab8fa70d9d874b29e23e808b0978fd2dbaf34e3caf8303508e2b88c603","54b8f865e3bea736798e54bc95b49435f472599aea762bd17bb02a18b198c7d1","5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7","ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26","abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018","f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c","3ae17ae844491c7326d070c3e70a94a9239394e7a1e84eb203eb1d57470e752e","d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93","b2c4833e6308888c3947953770b3343deaf4276c803bb36148991a3fb90b4f6a","41b7c8204ea79a93e380a228f5c744e9c9a80183133ac62633a4c76e3fdbd7db","d0a441df587b0632c16a813117f110574d903ddd0bc4d28599cc82ff8af7c094","b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9","068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf","5c1d368a451520260ebb6c06121201f18abf86d80540290df6e424d372c5d0ed","bb3ccaacf5c19a7170939b7f735c6a94537fd95ad16b4247a6ad572b23183e74","2c8b86d9d29c4ea62762c3815ffe4fdb0c5dbc0dd096b9703236010f4a17c255","7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db","f858a10d167e011155bfe5a3532f599e677bced6727c07366f380c02010650d4","465f5d53f09ac1978002bc264b8a4c0aea749c79dd2bd1917dffe57fddcb9543","cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e","40f34f36aba872decb7540030db33dc84f1a53d4778fd8c8ad840d68f2023f3a","10347593c1b262343845f577673e5956217a8a571c859d83e2de50a54729541f","e0a192de84052b553230c5f649307dfb49df6dce54fdc538de15078d895f5f66","228e7d711e429183ddf7fc8c331d00540557ade296fb8132d5bfc48d5c933f89","e8906c76ded4f87db27adfe3e8f9e1a729be51a6a0c2c458f31662c6278b1925","49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3","08fe86bcae8e02f769d215958438d6858dc19aeed2a61c7d7327f052b0db25fc","cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757","ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669","773c827d0235c76288ab0092202c357730c5b21314241831b7dd88ef6017818e","ced97526e899f0222df6d805e008cd5bc63fee326838a9002919453f9a2a8c9b","216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d","be77edbe4d276441584b1c7b297bd8596c78913c22c590dc136d987b82a3976c","faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7","931d70c96033881193232b90c39210c6cd14865f28b339843c56b5688e7fd10d","0a995ec8876b2bdf48ad2a95dbd7c38d37d2b77940cd39d6f68947e1c383d940","29e6e980f179ac2981d68954462dfd4a4545f73c021f6a4c8a5f442c0e16e56c","67fe56b931e013e9980dec2a605908d44484c7bbd81d2ee9912872c11bc76515","d4924e2b191fee9b43aaeef651c87a7084281d425a30a9a8cf50de8f92b64f6d","8fc678b640b298b07d4f52a5a4f0b3a57e07e45da7a0ad25f1ffde53a152d3be","a59554ba3751ea9ad27f6948f1c71ef57f1e28bb526a53eacb0dfa76bc1df452","ea5a5d5873c239b97d846fb8c78437e08ffd731924764f746c0ebcb7731d7648","da401323d4c96e3f5b8fa8b7ecd200d47a9e340b09cefbea553d2b2b5a345e60","ead4a7fd25e5e2b756a5e71546bd8eae855c7b0ecbffd891f7fb0b6f7d80c0c1","eaea9f8e5b90d87160a885c2afc4afcd2434e149ae5a5368d4b61eed66a6a597","cc44cf86b3ddb7d61f7de3fd32116089decb662a8b6421013bd4a8ee9a079881","ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3","298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33","c8082c78975419ed5a9f7daa655643425cdd98fee91bb82fd92d25f908c78465","24a588d942a36d853d18dfe63711e9b180ea0448b956dadce7833f4d6455f0c8","c263cc53a55cc822c360481e94d0fe999acebf92f01f2ca84225a168a182657f","11aba4fbd2d4539d8440169f219974378731ad1e65d4656bd9d8a579b79241e6","b2792748a96701780faae92a11922b38e9e37d54b31df3df70acd32fd586c508","56cac1d8d4be53381e236d675f43c1b2342161ca45d31dfaaf340b0612d14bc5","ec5e4d7021c750ea1b5b29b6c5d40e3cdbc180762b0806f0d0cbe117327162b9","594145b6622d5b02a40942c1a17fa6bb4fdb13a277ec703ee38018fc22d45034","a244408662b901d15567a5bcff4b29cd13a2a6c9bb2c27329eec616c48c8f144","4445f683ff67d2a80f6cbb5ae52039753c899890ebc27086ad17ffd005a8330d","050e9264752c154aa4f2d64f89c66a6e53dbf13a829c462aaa88eecc6e2e64b7","7cd6162b58f9275f44dc4e2293e0b7965680c2c271f7a2f8cece0b90ec61627c","6c2207dbeb0be8f55f38992b4b780ec29a8a0a0787b7076d8460ea71a27d5187","da3481884a0bbe5a9dfb44c1819ca7ad109cc1712d8a793eeef8742d94322ac1","f007826b8993773396aea70f1ad8b3e812aa33ee356b4c4034125efbc727ebb4","d25b3f0682520845fa1a1f42cdc23fbf5c0f7f8dc9806ec74d47f075d29b06dd","0a9f595404a498a83031f74e28f9fb3218038195f032a83da72146b3f8b5fb8c","54f9c37e150e434622cff5d71fb87237c48497141cb379fc1ab4d019a4a43e2e","0a0bb371deaec9e4e6580408c196fe5f0b668764c7a774f3f3f8a1447df0316f","6f5878e8666a8abbb560dcc15b19c95ac5b0f4f85aabab2e804abb6a145030e4","42997ccaad776930cb3b67f9585e680fb600e60c4464004d79eb2811869d047b","f341bef577fe12a6a779c986f89598855b39fe27810f12b2a181df6182cfc986","ebb1f50c2d70bc6310ac7eb99218ae3c0aba56d532964aff7a6872c668345d06","e34992c536be7eba4356e76d29f0cea34c8ef825ebe5f7f57841e48c38a6db17","e4f379e50c84ebb1be3476e4318c27597a0fcd518d7afca038f43a7ba4798c3c","09a9cb77ae0718ba8ccac3503fad79a896f071a24a64f8d40414d9c4f49e1b31","09ecbb99c6068a330c19d3c2efba4061bc1f3f7c55c1ae792398cc072d8a0dee",{"version":"7b7770361f404e9b167bce0ee92a608d8d14cb0b2f747ca9b300998db438a0fb","signature":"81d5aa9d15ee1ca18b073ecd13aa979f24d9100c2842f9e254d27992e014dd8a"},{"version":"b196a892a7087bc69d5e14a1647aaf5acfcdf995c1935a55afe405253c153b4c","signature":"f63a428eadbfdbc8c9137c4bdaa77a23988f7e82d1b01b5ef7d13e2f37d3d044"},{"version":"bb4df5f784c131c8fc70cfb1868ab99b883347d48c7260450d3c56958a996d60","signature":"b2b0e3e6fd8b425abfb54a11133c8b9abfc186d61ac86adc8deaba0b8c2f4e8f"},{"version":"0f5c336dc6acf154d2d0345e712c571683389b378778690a43d6d60ae386d4ea","signature":"bd3f683b47db8bdf2c50f5c3becea6fd0610f1e70ae35e0a2d0605c7200b6719"},{"version":"a6ed2271e6d0d4530f902777df5c4123b86c872f50ef6796ec63b77f56ac11b9","signature":"46ec089d57ddc32a6869f7cdfb6a81e37a8b93eb3d4c15798ea7c2de2ff947d4"},{"version":"a2199b85e9360ee3c5f384b56666662168daecca269293ab815da773e1e6391d","signature":"f7e148507097b2e8e1703df7b0b9acb7b65afed60aa3addd303f0cc97dab640c"},{"version":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99},{"version":"8a2ef120c4da7aab664148ed8d283aa0b98df4d5f15c570d830c8998ef05718b","impliedFormat":1},{"version":"4433d18f82991634feae5150a68f9b30f5b05b55416af8ff9f7251fb29431ed5","impliedFormat":1},{"version":"cc5d0b221824b7d8597e8a2bbdad2383af877eb564eaca392992049839e88c9e","impliedFormat":1},{"version":"21898d939444825cee1232af435330610b09171bea22a2f892cf2058d764b63d","impliedFormat":1},{"version":"2baebea93983e898000858daeeeb2ac29938891b6b8db72ebce294837fc9499f","impliedFormat":99},{"version":"d9d320cf31f6d63659484f6c9ca4db4ae673daefa65118dd8589838925ff1397","impliedFormat":99},{"version":"027cf2216d065a97bf5a8ea126b3ea2734fab6cfe32adaff81ab4e94a1b51bbe","impliedFormat":99},{"version":"f6e6313fad233c5141220f7d25eae120cdd6e5079fbe0aba56821a1e99d05df8","impliedFormat":1},{"version":"9534c35b4577c193e499178deb47419fdadddd5e53af5ec8cb88218848013f65","impliedFormat":1},{"version":"97f43a6558157a3abae4e32256cc74ba34f69ab30473008ffa13011bf0932986","impliedFormat":99},{"version":"45b8adde5735e97329752dd5598b7ecd85202f221a1d0e8aa90137ce5810f21c","impliedFormat":99},{"version":"dfe6945467765f8e7843442a9dfbcf6b5526b6465b07b4c75a54a750329b5f17","impliedFormat":99},{"version":"7f9f6c9fe0e48c401d855d849e28112ffe2425569eca01b08b8c6112b8200695","impliedFormat":99},{"version":"68fcdc663627d12d336b420b19b3e54258844d0cbca0879f711c22aafd853352","impliedFormat":99},{"version":"d3dd47deefa1cc5dd6f1b866132506ec8dfd678ae0ddaa44de188505df14fcc4","impliedFormat":99},{"version":"a5946bc88dac85da2afacdfa3471ff3bc2bbda7c0e34efde184cf17e6bceb6bc","impliedFormat":99},{"version":"75b68165b9bcc07579562f182d327e83583b89b91d62e76b86f4001feee699ba","impliedFormat":99},{"version":"a9d1030f6773d29b383f49e2c647a7e6e464906e1de97a6bc33d2528d957c4d7","impliedFormat":99},{"version":"37b997d60987b68ce8117da783442b4602c8a85d47680823d469fdc90d29e3b8","impliedFormat":99},{"version":"600850ecc310012e3b1a562629d97a1d78662ae8c477357513dd2e6aa704079b","impliedFormat":99},{"version":"335226d599a9382c9bea07d37e23bf998c1022c0f67e4d6d2b69633de6ac118f","impliedFormat":99},{"version":"ae430fd9bac320e71c3fe9299d90dcf67555d9a4f97ecaa35947b430ba8648ea","impliedFormat":99},{"version":"9061ff14146280f47d740b344ddd641c16df526ecaa868c348852277a9fb8686","impliedFormat":99},{"version":"49ee4555c2fafa01119cccc62436baad88ed937ff55d6a655e764ada6b0721e3","impliedFormat":99},{"version":"e059fb9064bc023bc06945ddda6b00e711c18e8657c82514b51c1c1b828642e9","impliedFormat":99},{"version":"f01b3b376946defc432893dcbbbc79472076b6a55a316b0a461a1b38d09e961c","impliedFormat":99},{"version":"da74d8af20172cfee988a2daf92c560f3fdc816fb9c0537f2cc37ef27b1552a8","impliedFormat":99},{"version":"feed66ae8815d1981ad575482766fb9a82385e75cce35ae2f13be58e50c4349f","impliedFormat":99},{"version":"21305b3c41b1e29c0f0d8f43fe227bca82493f6e4c6407a3363c6f729f1c04ba","affectsGlobalScope":true,"impliedFormat":99},{"version":"20c1041fbd4f1537686af4b707872b87c90a22201f8979e5def4554d28b46a5b","impliedFormat":99},{"version":"57ff3023920f09ea08ee1fb662518ff60312e81781e03c4e3b50cef3322143be","signature":"495d5d4a044fa18020972e7146c7416e467a364a9b23de05b096335d212ac9bb"}],"root":[[191,196],228],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[98,1],[213,2],[202,3],[214,4],[222,5],[225,6],[224,7],[204,8],[207,9],[208,10],[210,11],[211,12],[219,13],[218,14],[220,15],[221,14],[227,16],[226,17],[89,18],[91,19],[95,20],[92,21],[93,22],[88,23],[90,24],[44,25],[83,26],[74,27],[59,28],[56,27],[81,29],[57,27],[79,30],[58,31],[84,32],[60,33],[67,31],[62,27],[61,34],[76,31],[82,35],[80,31],[63,27],[71,31],[72,31],[64,34],[70,31],[65,34],[68,31],[69,27],[77,31],[66,27],[73,31],[75,31],[47,36],[54,37],[86,38],[55,39],[96,40],[45,36],[46,41],[51,42],[52,43],[50,44],[41,45],[97,46],[206,47],[205,12],[201,12],[199,12],[200,48],[198,12],[108,49],[109,50],[107,50],[110,51],[117,52],[112,53],[113,50],[115,54],[114,49],[116,50],[126,55],[122,56],[125,57],[124,58],[130,59],[131,59],[129,60],[134,61],[133,60],[169,62],[136,63],[137,64],[142,65],[138,66],[140,67],[139,68],[145,69],[148,70],[150,71],[155,72],[154,73],[152,63],[156,71],[157,74],[158,75],[159,76],[167,77],[160,75],[161,72],[153,78],[166,79],[164,80],[165,81],[168,82],[193,83],[196,84],[228,85],[191,86],[194,87],[195,87],[192,88],[103,89],[171,90],[170,91],[172,92],[190,93],[178,94],[177,95],[174,96],[179,97],[188,98],[173,99],[176,100],[175,101],[180,102],[186,103],[185,104],[182,105],[189,106],[187,107],[184,108],[102,109]],"latestChangedDtsFile":"./media.d.ts","version":"5.9.3"}
|
package/dist/driver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.js","sources":["../src/driver.ts"],"sourcesContent":["// The mobile G9SqliteDriver over `NativeModules.G9SqliteModule` (plan/specs/06 §4–§6): one module call per batch,\n// requests of one session queued here (so a batch aborted while queued never reaches native code), replies decoded\n// from the columnar (default) or rows transport.\nimport {\n type G9DriverCapabilities,\n type G9OpenOptions,\n type G9RunOptions,\n type G9SessionToken,\n type G9SqliteDriver,\n G9SqliteError,\n type G9SqliteErrorCode,\n type G9SqlResult,\n type G9TxToken,\n pragmaStatements,\n} from '@g9tm/lynxcontrols-sqlite';\nimport type {\n G9NativeEnvelope,\n G9NativeError,\n G9NativeParam,\n G9NativeRunValue,\n G9NativeTransport,\n G9SqliteNativeModule,\n} from './protocol';\nimport { decodeRunValue } from './transport';\n\ndeclare const NativeModules: { G9SqliteModule?: G9SqliteNativeModule } | undefined;\n\n/** `NativeModules.G9SqliteModule`, or `null` where the native library is not linked. */\nexport function nativeSqliteModule(): G9SqliteNativeModule | null {\n try {\n return (typeof NativeModules === 'undefined' ? undefined : NativeModules?.G9SqliteModule) ?? null;\n } catch {\n return null;\n }\n}\n\nfunction toError(e: G9NativeError): G9SqliteError {\n return new G9SqliteError(e.code as G9SqliteErrorCode, e.message, {\n ...(e.sqliteCode !== undefined ? { sqliteCode: e.sqliteCode } : {}),\n ...(e.sql !== undefined ? { sql: e.sql } : {}),\n ...(e.completedStatements !== undefined ? { completedStatements: e.completedStatements } : {}),\n });\n}\n\n/** Calls a module method whose last argument is the reply callback; resolves the envelope's value. */\nfunction call<T>(invoke: (reply: (envelope: G9NativeEnvelope<T>) => void) => void): Promise<T> {\n return new Promise<T>((resolve, reject) => {\n try {\n invoke((envelope) => {\n if (envelope?.ok) resolve(envelope.value);\n else reject(toError(envelope?.error ?? { code: 'other', message: 'The native module sent no reply.' }));\n });\n } catch (error) {\n reject(new G9SqliteError('other', `The native module call failed: ${(error as Error)?.message ?? error}`));\n }\n });\n}\n\n/** A driver value as the bridge carries it (`undefined` tagged, so native code rejects it in statement order). */\nfunction param(value: unknown): G9NativeParam {\n return value === undefined ? { undefined: true } : (value as G9NativeParam);\n}\n\n/** Options of {@link createNativeSqliteDriver}. */\nexport interface G9NativeDriverOptions {\n /** The module (default: `NativeModules.G9SqliteModule`). Tests pass a fake. */\n readonly module?: G9SqliteNativeModule;\n /** Result transport (default `'columnar'`, specs/06 §6). */\n readonly transport?: G9NativeTransport;\n readonly name?: string;\n}\n\n/**\n * The Android/iOS {@link G9SqliteDriver}: androidx.sqlite `BundledSQLiteDriver` on Android, system `sqlite3` on iOS,\n * one native thread/queue per open database. Cancellation: a batch aborted while queued never starts; aborting a running\n * batch interrupts it on iOS (`sqlite3_interrupt`) and lets it finish on Android (`capabilities().interrupt`).\n * Throws `misuse` when the native library is not linked and no module is given.\n */\nexport function createNativeSqliteDriver(options: G9NativeDriverOptions = {}): G9SqliteDriver {\n const native = options.module ?? nativeSqliteModule();\n if (!native) {\n throw new G9SqliteError(\n 'misuse',\n 'NativeModules.G9SqliteModule is missing: add @g9tm/lynxcontrols-native to the app so Autolink links it.',\n );\n }\n const transport: G9NativeTransport = options.transport ?? 'columnar';\n const queues = new Map<string, Promise<unknown>>();\n const txSession = new Map<string, string>();\n function enqueue<T>(session: string, task: () => Promise<T>): Promise<T> {\n const previous = queues.get(session) ?? Promise.resolve();\n const next = previous.then(task, task);\n queues.set(\n session,\n next.then(\n () => undefined,\n () => undefined,\n ),\n );\n return next;\n }\n const unknownTx = () => Promise.reject(new G9SqliteError('misuse', 'The transaction is finished or unknown.'));\n return {\n name: options.name ?? 'native',\n async capabilities(): Promise<G9DriverCapabilities> {\n const value = await call<Record<string, unknown>>((reply) => native.capabilities(reply));\n return Object.freeze({\n sqliteVersion: String(value.sqliteVersion),\n maxVariables: Number(value.maxVariables),\n json1: value.json1 === true,\n returning: value.returning === true,\n upsert: value.upsert === true,\n interrupt: value.interrupt === true,\n });\n },\n async open(open: G9OpenOptions): Promise<G9SessionToken> {\n const token = await call<string>((reply) =>\n native.open(\n {\n path: open.path,\n ...(open.readOnly !== undefined ? { readOnly: open.readOnly } : {}),\n ...(open.create !== undefined ? { create: open.create } : {}),\n pragmas: pragmaStatements(open.pragmas ?? {}, open.durability),\n },\n reply,\n ),\n );\n return token as G9SessionToken;\n },\n run(session, statements, run: G9RunOptions = {}): Promise<G9SqlResult[]> {\n const cancelled = () => new G9SqliteError('cancelled', 'Cancelled before the batch started.');\n if (run.signal?.aborted) return Promise.reject(cancelled());\n return enqueue(session, async () => {\n if (run.signal?.aborted) throw cancelled();\n // Aborting while the batch runs interrupts it where the platform can (iOS); the batch then fails `interrupted`.\n const onAbort = () => native.interrupt?.(session);\n run.signal?.addEventListener('abort', onAbort);\n try {\n const value = await call<G9NativeRunValue>((reply) =>\n native.run(\n session,\n statements.map((s) => ({ sql: s.sql, params: s.params.map(param) })),\n {\n ...(run.tx !== undefined ? { tx: run.tx } : {}),\n ...(run.maxRows !== undefined ? { maxRows: run.maxRows } : {}),\n ...(run.atomic !== undefined ? { atomic: run.atomic } : {}),\n transport,\n },\n reply,\n ),\n );\n return decodeRunValue(value);\n } finally {\n run.signal?.removeEventListener('abort', onAbort);\n }\n });\n },\n begin(session, mode): Promise<G9TxToken> {\n return enqueue(session, async () => {\n const tx = await call<string>((reply) => native.begin(session, mode, reply));\n txSession.set(tx, session);\n return tx as G9TxToken;\n });\n },\n commit(tx): Promise<void> {\n if (typeof tx !== 'string') return unknownTx();\n return enqueue(txSession.get(tx) ?? `#${tx}`, async () => {\n await call<null>((reply) => native.commit(tx, reply));\n txSession.delete(tx);\n });\n },\n rollback(tx): Promise<void> {\n if (typeof tx !== 'string') return unknownTx();\n return enqueue(txSession.get(tx) ?? `#${tx}`, async () => {\n txSession.delete(tx);\n await call<null>((reply) => native.rollback(tx, reply));\n });\n },\n close(session): Promise<void> {\n if (typeof session !== 'string') {\n return Promise.reject(new G9SqliteError('misuse', 'The database session is closed or unknown.'));\n }\n return enqueue(session, async () => {\n await call<null>((reply) => native.close(session, reply));\n queues.delete(session);\n });\n },\n };\n}\n"],"names":["nativeSqliteModule","_ref","NativeModules","undefined","toError","e","G9SqliteError","call","invoke","Promise","resolve","reject","envelope","error","param","value","createNativeSqliteDriver","options","_options_module","_options_transport","_options_name","native","transport","queues","Map","txSession","enqueue","session","task","_queues_get","previous","next","unknownTx","reply","Object","String","Number","open","token","_open_pragmas","pragmaStatements","statements","run","_run_signal","cancelled","_run_signal1","onAbort","s","decodeRunValue","_run_signal2","mode","tx","_txSession_get"],"mappings":";;AA4BO,SAASA;IACd,IAAI;YACMC;QAAR,OAAO,QAACA,CAAAA,OAAAA,AAAyB,MAAzBA,OAAOC,gBAAgCC,SAAYD,QAAAA,gBAAAA,KAAAA,IAAAA,cAAe,cAAc,AAAD,IAA/ED,OAAqF;IAC/F,EAAE,OAAM;QACN,OAAO;IACT;AACF;AAEA,SAASG,QAAQC,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"sourcesContent":["// The mobile G9SqliteDriver over `NativeModules.G9SqliteModule` (plan/specs/06 §4–§6): one module call per batch,\n// requests of one session queued here (so a batch aborted while queued never reaches native code), replies decoded\n// from the columnar (default) or rows transport.\nimport {\n type G9DriverCapabilities,\n type G9OpenOptions,\n type G9RunOptions,\n type G9SessionToken,\n type G9SqliteDriver,\n G9SqliteError,\n type G9SqliteErrorCode,\n type G9SqlResult,\n type G9TxToken,\n pragmaStatements,\n} from '@g9tm/lynxcontrols-sqlite';\nimport type {\n G9NativeEnvelope,\n G9NativeError,\n G9NativeParam,\n G9NativeRunValue,\n G9NativeTransport,\n G9SqliteNativeModule,\n} from './protocol';\nimport { decodeRunValue } from './transport';\n\ndeclare const NativeModules: { G9SqliteModule?: G9SqliteNativeModule } | undefined;\n\n/** `NativeModules.G9SqliteModule`, or `null` where the native library is not linked. */\nexport function nativeSqliteModule(): G9SqliteNativeModule | null {\n try {\n return (typeof NativeModules === 'undefined' ? undefined : NativeModules?.G9SqliteModule) ?? null;\n } catch {\n return null;\n }\n}\n\nfunction toError(e: G9NativeError): G9SqliteError {\n return new G9SqliteError(e.code as G9SqliteErrorCode, e.message, {\n ...(e.sqliteCode !== undefined ? { sqliteCode: e.sqliteCode } : {}),\n ...(e.sql !== undefined ? { sql: e.sql } : {}),\n ...(e.completedStatements !== undefined ? { completedStatements: e.completedStatements } : {}),\n });\n}\n\n/** Calls a module method whose last argument is the reply callback; resolves the envelope's value. */\nfunction call<T>(invoke: (reply: (envelope: G9NativeEnvelope<T>) => void) => void): Promise<T> {\n return new Promise<T>((resolve, reject) => {\n try {\n invoke((envelope) => {\n if (envelope?.ok) resolve(envelope.value);\n else reject(toError(envelope?.error ?? { code: 'other', message: 'The native module sent no reply.' }));\n });\n } catch (error) {\n reject(new G9SqliteError('other', `The native module call failed: ${(error as Error)?.message ?? error}`));\n }\n });\n}\n\n/** A driver value as the bridge carries it (`undefined` tagged, so native code rejects it in statement order). */\nfunction param(value: unknown): G9NativeParam {\n return value === undefined ? { undefined: true } : (value as G9NativeParam);\n}\n\n/** Options of {@link createNativeSqliteDriver}. */\nexport interface G9NativeDriverOptions {\n /** The module (default: `NativeModules.G9SqliteModule`). Tests pass a fake. */\n readonly module?: G9SqliteNativeModule;\n /** Result transport (default `'columnar'`, specs/06 §6). */\n readonly transport?: G9NativeTransport;\n readonly name?: string;\n}\n\n/**\n * The Android/iOS {@link G9SqliteDriver}: androidx.sqlite `BundledSQLiteDriver` on Android, system `sqlite3` on iOS,\n * one native thread/queue per open database. Cancellation: a batch aborted while queued never starts; aborting a running\n * batch interrupts it on iOS (`sqlite3_interrupt`) and lets it finish on Android (`capabilities().interrupt`).\n * Throws `misuse` when the native library is not linked and no module is given.\n */\nexport function createNativeSqliteDriver(options: G9NativeDriverOptions = {}): G9SqliteDriver {\n const native = options.module ?? nativeSqliteModule();\n if (!native) {\n throw new G9SqliteError(\n 'misuse',\n 'NativeModules.G9SqliteModule is missing: add @g9tm/lynxcontrols-native to the app so Autolink links it.',\n );\n }\n const transport: G9NativeTransport = options.transport ?? 'columnar';\n const queues = new Map<string, Promise<unknown>>();\n const txSession = new Map<string, string>();\n function enqueue<T>(session: string, task: () => Promise<T>): Promise<T> {\n const previous = queues.get(session) ?? Promise.resolve();\n const next = previous.then(task, task);\n queues.set(\n session,\n next.then(\n () => undefined,\n () => undefined,\n ),\n );\n return next;\n }\n const unknownTx = () => Promise.reject(new G9SqliteError('misuse', 'The transaction is finished or unknown.'));\n return {\n name: options.name ?? 'native',\n async capabilities(): Promise<G9DriverCapabilities> {\n const value = await call<Record<string, unknown>>((reply) => native.capabilities(reply));\n return Object.freeze({\n sqliteVersion: String(value.sqliteVersion),\n maxVariables: Number(value.maxVariables),\n json1: value.json1 === true,\n returning: value.returning === true,\n upsert: value.upsert === true,\n interrupt: value.interrupt === true,\n });\n },\n async open(open: G9OpenOptions): Promise<G9SessionToken> {\n const token = await call<string>((reply) =>\n native.open(\n {\n path: open.path,\n ...(open.readOnly !== undefined ? { readOnly: open.readOnly } : {}),\n ...(open.create !== undefined ? { create: open.create } : {}),\n pragmas: pragmaStatements(open.pragmas ?? {}, open.durability),\n },\n reply,\n ),\n );\n return token as G9SessionToken;\n },\n run(session, statements, run: G9RunOptions = {}): Promise<G9SqlResult[]> {\n const cancelled = () => new G9SqliteError('cancelled', 'Cancelled before the batch started.');\n if (run.signal?.aborted) return Promise.reject(cancelled());\n return enqueue(session, async () => {\n if (run.signal?.aborted) throw cancelled();\n // Aborting while the batch runs interrupts it where the platform can (iOS); the batch then fails `interrupted`.\n const onAbort = () => native.interrupt?.(session);\n run.signal?.addEventListener('abort', onAbort);\n try {\n const value = await call<G9NativeRunValue>((reply) =>\n native.run(\n session,\n statements.map((s) => ({ sql: s.sql, params: s.params.map(param) })),\n {\n ...(run.tx !== undefined ? { tx: run.tx } : {}),\n ...(run.maxRows !== undefined ? { maxRows: run.maxRows } : {}),\n ...(run.atomic !== undefined ? { atomic: run.atomic } : {}),\n transport,\n },\n reply,\n ),\n );\n return decodeRunValue(value);\n } finally {\n run.signal?.removeEventListener('abort', onAbort);\n }\n });\n },\n begin(session, mode): Promise<G9TxToken> {\n return enqueue(session, async () => {\n const tx = await call<string>((reply) => native.begin(session, mode, reply));\n txSession.set(tx, session);\n return tx as G9TxToken;\n });\n },\n commit(tx): Promise<void> {\n if (typeof tx !== 'string') return unknownTx();\n return enqueue(txSession.get(tx) ?? `#${tx}`, async () => {\n await call<null>((reply) => native.commit(tx, reply));\n txSession.delete(tx);\n });\n },\n rollback(tx): Promise<void> {\n if (typeof tx !== 'string') return unknownTx();\n return enqueue(txSession.get(tx) ?? `#${tx}`, async () => {\n txSession.delete(tx);\n await call<null>((reply) => native.rollback(tx, reply));\n });\n },\n close(session): Promise<void> {\n if (typeof session !== 'string') {\n return Promise.reject(new G9SqliteError('misuse', 'The database session is closed or unknown.'));\n }\n return enqueue(session, async () => {\n await call<null>((reply) => native.close(session, reply));\n queues.delete(session);\n });\n },\n };\n}\n"],"names":["nativeSqliteModule","_ref","NativeModules","undefined","toError","e","G9SqliteError","call","invoke","Promise","resolve","reject","envelope","error","param","value","createNativeSqliteDriver","options","_options_module","_options_transport","_options_name","native","transport","queues","Map","txSession","enqueue","session","task","_queues_get","previous","next","unknownTx","reply","Object","String","Number","open","token","_open_pragmas","pragmaStatements","statements","run","_run_signal","cancelled","_run_signal1","onAbort","s","decodeRunValue","_run_signal2","mode","tx","_txSession_get"],"mappings":";;AA4BO,SAASA;IACd,IAAI;YACMC;QAAR,OAAO,QAACA,CAAAA,OAAAA,AAAyB,MAAzBA,OAAOC,gBAAgCC,SAAYD,QAAAA,gBAAAA,KAAAA,IAAAA,cAAe,cAAc,AAAD,IAA/ED,OAAqF;IAC/F,EAAE,OAAM;QACN,OAAO;IACT;AACF;AAEA,SAASG,QAAQC,CAAgB;IAC/B,OAAO,IAAIC,cAAcD,EAAE,IAAI,EAAuBA,EAAE,OAAO,EAAE;QAC/D,GAAIA,AAAiBF,WAAjBE,EAAE,UAAU,GAAiB;YAAE,YAAYA,EAAE,UAAU;QAAC,IAAI,CAAC,CAAC;QAClE,GAAIA,AAAUF,WAAVE,EAAE,GAAG,GAAiB;YAAE,KAAKA,EAAE,GAAG;QAAC,IAAI,CAAC,CAAC;QAC7C,GAAIA,AAA0BF,WAA1BE,EAAE,mBAAmB,GAAiB;YAAE,qBAAqBA,EAAE,mBAAmB;QAAC,IAAI,CAAC,CAAC;IAC/F;AACF;AAGA,SAASE,KAAQC,MAAgE;IAC/E,OAAO,IAAIC,QAAW,CAACC,SAASC;QAC9B,IAAI;YACFH,OAAO,CAACI;;gBACN,IAAIA,QAAAA,WAAAA,KAAAA,IAAAA,SAAU,EAAE,EAAEF,QAAQE,SAAS,KAAK;qBACnCD,OAAOP,QAAQ,QAARA,CAAAA,OAAQQ,QAAAA,WAAAA,KAAAA,IAAAA,SAAU,KAAK,AAAD,IAAC,OAAI;oBAAE,MAAM;oBAAS,SAAS;gBAAmC;YACtG;QACF,EAAE,OAAOC,OAAO;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,QAAA0B,CAAAA,iBAAAA,UAAU,GAAG,CAACD,GAAE,IAAhBC,iBAAqB,CAAC,CAAC,EAAED,IAAI,EAAE;gBAC5C1B,UAAU,MAAM,CAAC0B;gBACjB,MAAM5C,KAAW,CAAC0B,QAAUZ,OAAO,QAAQ,CAAC8B,IAAIlB;YAClD;QACF;QACA,OAAMN,OAAO;YACX,IAAI,AAAmB,YAAnB,OAAOA,SACT,OAAOlB,QAAQ,MAAM,CAAC,IAAIH,cAAc,UAAU;YAEpD,OAAOoB,QAAQC,SAAS;gBACtB,MAAMpB,KAAW,CAAC0B,QAAUZ,OAAO,KAAK,CAACM,SAASM;gBAClDV,OAAO,MAAM,CAACI;YAChB;QACF;IACF;AACF"}
|
package/dist/media.jsx
CHANGED
|
@@ -20,6 +20,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
20
20
|
+ (NSArray *)hostPaths;
|
|
21
21
|
/** G9VideoLoopTracker and G9VideoMath (the `<g9-video>` rules shared with Android). */
|
|
22
22
|
+ (NSArray *)videoCore;
|
|
23
|
+
/** G9DigitsCore: the same answers as the Android core (G9DigitsCoreTest.kt), and the fonts each plan names. */
|
|
24
|
+
+ (NSArray *)digitsCore;
|
|
23
25
|
@end
|
|
24
26
|
|
|
25
27
|
NS_ASSUME_NONNULL_END
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
#import "../src/core/G9HostPaths.h"
|
|
7
7
|
#import "../src/core/G9PreferencesCore.h"
|
|
8
8
|
#import "../src/core/G9VideoCore.h"
|
|
9
|
+
#import "../src/core/G9DigitsCore.h"
|
|
9
10
|
#import "../src/core/G9SqliteCore.h"
|
|
10
11
|
#import "../src/core/G9SqliteTransport.h"
|
|
11
12
|
|
|
@@ -557,4 +558,51 @@ static NSArray *G9CoreResultsFromExpected(NSArray *expected) {
|
|
|
557
558
|
return f;
|
|
558
559
|
}
|
|
559
560
|
|
|
561
|
+
static NSString *G9U(unichar c) {
|
|
562
|
+
return [NSString stringWithCharacters:&c length:1];
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
+ (NSArray *)digitsCore {
|
|
566
|
+
NSMutableArray *f = [NSMutableArray array];
|
|
567
|
+
NSString *momayyez = G9U(0x066B), *thousands = G9U(0x066C);
|
|
568
|
+
// latin draws as typed
|
|
569
|
+
if ([G9DigitsCore planForSystem:@"latin" decimalSeparator:momayyez groupSeparator:thousands bold:NO] != nil) [f addObject:@"latin"];
|
|
570
|
+
if ([G9DigitsCore planForSystem:nil decimalSeparator:nil groupSeparator:nil bold:NO] != nil) [f addObject:@"no system"];
|
|
571
|
+
if ([G9DigitsCore planForSystem:@"devanagari" decimalSeparator:nil groupSeparator:nil bold:NO] != nil) [f addObject:@"unknown"];
|
|
572
|
+
// Persian digits and separators are drawn, one for one (the caret and selection keep their places)
|
|
573
|
+
G9DigitsPlan *fa = [G9DigitsCore planForSystem:@"persian" decimalSeparator:momayyez groupSeparator:thousands bold:NO];
|
|
574
|
+
NSString *drawn = [fa draw:@"2,500.5"];
|
|
575
|
+
NSString *expected = [NSString stringWithFormat:@"%@%@%@%@%@%@%@", G9U(0x06F2), thousands, G9U(0x06F5), G9U(0x06F0), G9U(0x06F0), momayyez, G9U(0x06F5)];
|
|
576
|
+
if (![drawn isEqualToString:expected]) [f addObject:[NSString stringWithFormat:@"persian draws %@", drawn]];
|
|
577
|
+
if ([drawn length] != [@"2,500.5" length]) [f addObject:@"one for one"];
|
|
578
|
+
NSArray *faFonts = [NSArray arrayWithObjects:@"G9DigitsPersian-Regular", @"G9DigitsDecimal066B-Regular", @"G9DigitsGroup066C-Regular", nil];
|
|
579
|
+
if (![[fa fontNames] isEqualToArray:faFonts]) [f addObject:[NSString stringWithFormat:@"persian fonts %@", [fa fontNames]]];
|
|
580
|
+
// without a group separator the comma stays (and its font is not in the cascade)
|
|
581
|
+
G9DigitsPlan *noGroup = [G9DigitsCore planForSystem:@"persian" decimalSeparator:nil groupSeparator:nil bold:NO];
|
|
582
|
+
NSString *oneThousand = [NSString stringWithFormat:@"%@,%@%@%@", G9U(0x06F1), G9U(0x06F2), G9U(0x06F3), G9U(0x06F4)];
|
|
583
|
+
if (![[noGroup draw:@"1,234"] isEqualToString:oneThousand]) [f addObject:@"comma stays"];
|
|
584
|
+
if ([[noGroup fontNames] count] != 1) [f addObject:@"only the digits font"];
|
|
585
|
+
// Arabic-Indic, bold
|
|
586
|
+
G9DigitsPlan *ar = [G9DigitsCore planForSystem:@"arabicIndic" decimalSeparator:momayyez groupSeparator:thousands bold:YES];
|
|
587
|
+
NSString *arExpected = [NSString stringWithFormat:@"%@%@%@%@%@%@%@", G9U(0x0662), thousands, G9U(0x0665), G9U(0x0660), G9U(0x0660), momayyez, G9U(0x0665)];
|
|
588
|
+
if (![[ar draw:@"2,500.5"] isEqualToString:arExpected]) [f addObject:@"arabicIndic"];
|
|
589
|
+
if (![[[ar fontNames] objectAtIndex:0] isEqualToString:@"G9DigitsArabic-Bold"]) [f addObject:@"bold"];
|
|
590
|
+
// a separator the fonts do not map is drawn as typed (Android draws any one character)
|
|
591
|
+
G9DigitsPlan *slash = [G9DigitsCore planForSystem:@"persian" decimalSeparator:@"/" groupSeparator:@"." bold:NO];
|
|
592
|
+
if (![[slash draw:@"1.5"] isEqualToString:[NSString stringWithFormat:@"%@.%@", G9U(0x06F1), G9U(0x06F5)]]) [f addObject:@"unmapped separator"];
|
|
593
|
+
// the keys differ per plan; the weights
|
|
594
|
+
if ([[fa key] isEqualToString:[noGroup key]] || [[ar key] isEqualToString:[fa key]]) [f addObject:@"keys"];
|
|
595
|
+
if ([G9DigitsCore boldForWeight:0.0] || ![G9DigitsCore boldForWeight:0.3] || ![G9DigitsCore boldForWeight:0.4]) [f addObject:@"weights"];
|
|
596
|
+
// every font a plan can name is a file to register
|
|
597
|
+
NSArray *files = [G9DigitsCore fontFileNames];
|
|
598
|
+
if ([files count] != 8) [f addObject:@"eight fonts"];
|
|
599
|
+
NSArray *plans = [NSArray arrayWithObjects:fa, ar, noGroup, nil];
|
|
600
|
+
for (G9DigitsPlan *plan in plans) {
|
|
601
|
+
for (NSString *name in [plan fontNames]) {
|
|
602
|
+
if (![files containsObject:name]) [f addObject:[NSString stringWithFormat:@"unregistered %@", name]];
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
return f;
|
|
606
|
+
}
|
|
607
|
+
|
|
560
608
|
@end
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
#import <UIKit/UIKit.h>
|
|
5
5
|
#import "G9NativeTestSuite.h"
|
|
6
6
|
#import "G9PointerEventsHitTest.h"
|
|
7
|
+
#import "G9InputUI.h"
|
|
8
|
+
#import "core/G9DigitsCore.h"
|
|
9
|
+
#import <CoreText/CoreText.h>
|
|
7
10
|
|
|
8
11
|
@interface G9NativeTests : XCTestCase
|
|
9
12
|
@end
|
|
@@ -51,6 +54,39 @@
|
|
|
51
54
|
XCTAssertEqualObjects([G9NativeTestSuite videoCore], @[]);
|
|
52
55
|
}
|
|
53
56
|
|
|
57
|
+
- (void)testDigitsCore {
|
|
58
|
+
XCTAssertEqualObjects([G9NativeTestSuite digitsCore], @[]);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// The pod's font bundle is found and registered, and a Persian field's font draws ASCII '5' with the digits font's
|
|
62
|
+
// glyph while a letter falls back to the field's own font: what `g9-digits` relies on (ledger N-062).
|
|
63
|
+
- (void)testDigitFontsDrawDigitsAndFallBack {
|
|
64
|
+
XCTAssertTrue([G9DigitFonts registerFonts]);
|
|
65
|
+
for (NSString *name in [G9DigitsCore fontFileNames]) XCTAssertNotNil([UIFont fontWithName:name size:17], @"%@", name);
|
|
66
|
+
UIFont *base = [UIFont systemFontOfSize:17];
|
|
67
|
+
G9DigitsPlan *plan = [G9DigitsCore planForSystem:@"persian" decimalSeparator:@"٫" groupSeparator:@"٬" bold:NO];
|
|
68
|
+
UIFont *font = [G9DigitFonts font:base plan:plan];
|
|
69
|
+
XCTAssertEqualObjects(font.fontName, @"G9DigitsPersian-Regular");
|
|
70
|
+
XCTAssertEqual(font.pointSize, 17);
|
|
71
|
+
XCTAssertEqual([G9DigitFonts font:base plan:plan], font, @"cached");
|
|
72
|
+
// Which font Core Text draws each character with (the cascade list at work).
|
|
73
|
+
NSAttributedString *text = [[NSAttributedString alloc] initWithString:@"5a.," attributes:@{NSFontAttributeName : font}];
|
|
74
|
+
CTLineRef line = CTLineCreateWithAttributedString((__bridge CFAttributedStringRef)text);
|
|
75
|
+
NSMutableArray<NSString *> *fonts = [NSMutableArray array];
|
|
76
|
+
for (id run in (__bridge NSArray *)CTLineGetGlyphRuns(line)) {
|
|
77
|
+
CTFontRef runFont = (__bridge CTFontRef)[(__bridge NSDictionary *)CTRunGetAttributes((__bridge CTRunRef)run) objectForKey:(id)kCTFontAttributeName];
|
|
78
|
+
[fonts addObject:CFBridgingRelease(CTFontCopyPostScriptName(runFont))];
|
|
79
|
+
}
|
|
80
|
+
CFRelease(line);
|
|
81
|
+
XCTAssertEqualObjects(fonts.firstObject, @"G9DigitsPersian-Regular");
|
|
82
|
+
XCTAssertTrue([fonts containsObject:@"G9DigitsDecimal066B-Regular"], @"%@", fonts);
|
|
83
|
+
XCTAssertTrue([fonts containsObject:@"G9DigitsGroup066C-Regular"], @"%@", fonts);
|
|
84
|
+
XCTAssertFalse([fonts[1] hasPrefix:@"G9Digits"], @"the letter in the field's font: %@", fonts);
|
|
85
|
+
// The caret and line keep the system font's metrics.
|
|
86
|
+
XCTAssertEqualWithAccuracy(font.ascender, base.ascender, 1.0);
|
|
87
|
+
XCTAssertEqualWithAccuracy(font.descender, base.descender, 1.0);
|
|
88
|
+
}
|
|
89
|
+
|
|
54
90
|
// The patch must still find Lynx's private UILynxView after a Lynx upgrade, and a view that is not a rendered element
|
|
55
91
|
// (no sign) keeps Lynx's own answer. The `pointer-events: none` path needs a rendered page: the hosts' device rounds.
|
|
56
92
|
- (void)testPointerEventsHitTestInstalled {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2015 The Vazirmatn Project Authors (https://github.com/rastikerdar/vazirmatn)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @g9tm/lynxcontrols-native for iOS (plan/specs/06 §5, specs/08 §3). Linked into a host by Lynx Autolink (CocoaPods) from
|
|
2
|
-
# node_modules. Lynx 4.
|
|
2
|
+
# node_modules. Lynx 4.1+ comes from the lynx-family Specs repository (trunk has only nightlies of 4.1/4.2).
|
|
3
3
|
# The pod name `g9lynx-native` is an internal identifier that did not follow the npm rename (D12); the version is the
|
|
4
4
|
# package version — the family's own LYNX_VERSION (scripts/lynx-version.mjs; npm run check:versions).
|
|
5
5
|
Pod::Spec.new do |s|
|
|
6
6
|
s.name = 'g9lynx-native'
|
|
7
|
-
s.version = '1.
|
|
8
|
-
s.summary = 'G9 SQLite, host and speech native modules
|
|
7
|
+
s.version = '2.1.0'
|
|
8
|
+
s.summary = 'G9 SQLite, host and speech native modules, the <g9-video> element and the digit-drawing <input>/<textarea> for Lynx (sqlite3, NSUserDefaults, UIKit, AVFoundation, Speech, Core Text).'
|
|
9
9
|
s.homepage = 'https://github.com/imankari/g9lynxcontrols'
|
|
10
10
|
s.license = { :type => 'MIT' }
|
|
11
11
|
s.author = 'G9LynxControls'
|
|
@@ -17,14 +17,21 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.header_mappings_dir = 'src'
|
|
18
18
|
s.libraries = 'sqlite3'
|
|
19
19
|
# Speech: G9SpeechModule (dictation; the host's Info.plist carries NSSpeechRecognitionUsageDescription).
|
|
20
|
-
|
|
20
|
+
# Core Text: G9InputUI registers the digit fonts.
|
|
21
|
+
s.frameworks = 'UIKit', 'AVFoundation', 'Speech', 'CoreText'
|
|
22
|
+
# The digit fonts of `g9-digits` (G9InputUI.m; ios/fonts/build-digit-fonts.py, from Vazirmatn, SIL OFL 1.1 — the
|
|
23
|
+
# license travels with them).
|
|
24
|
+
s.resource_bundles = { 'G9LynxNativeFonts' => ['fonts/*.ttf', 'fonts/OFL.txt'] }
|
|
21
25
|
s.requires_arc = true
|
|
22
26
|
# The whole Lynx 4.2 line, its -dev engine included (Trace and Recorder live only there; lynx-family/Specs pins
|
|
23
27
|
# every Lynx pod to one exact version, so a host that builds on 4.2.0-dev must find this pod willing too).
|
|
24
28
|
s.dependency 'Lynx', '>= 4.2.0-dev', '< 4.3'
|
|
29
|
+
# G9UIInput / G9UITextArea subclass XElement's fields.
|
|
30
|
+
s.dependency 'XElement/Input', '>= 4.2.0-dev', '< 4.3'
|
|
25
31
|
|
|
26
32
|
# XCTest on a simulator: the shared contract (packages/sqlite/contract/cases.json), the Kotlin-written transport
|
|
27
|
-
# golden, interrupt, core edges and
|
|
33
|
+
# golden, interrupt, core edges, preferences and the digits plan (Tests/G9NativeTestSuite.m, also run on Linux by
|
|
34
|
+
# test:ios-core), plus the UIKit checks: the hit-test patch and the digit fonts.
|
|
28
35
|
s.test_spec 'Tests' do |t|
|
|
29
36
|
t.source_files = 'Tests/G9NativeTestSuite.{h,m}', 'Tests/G9NativeTests.m'
|
|
30
37
|
t.frameworks = 'XCTest'
|
package/ios/src/G9HostModule.h
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
NS_ASSUME_NONNULL_BEGIN
|
|
6
6
|
|
|
7
|
-
//
|
|
8
|
-
//
|
|
7
|
+
// Hosts register the module on their LynxConfig (`[config registerModule:G9HostModule.class]`,
|
|
8
|
+
// apps/ios-host/Sources/GalleryViewController.m); the pod does not self-register it.
|
|
9
9
|
|
|
10
10
|
/** `NativeModules.G9HostModule` on iOS (plan/specs/06 §7): NSUserDefaults preferences, keyboard dismiss, haptics, insets. */
|
|
11
11
|
@interface G9HostModule : NSObject <G9HostModuleSpec>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// XElement's <input> and <textarea> with `g9-digits` / `g9-decimal-separator` / `g9-group-separator`
|
|
2
|
+
// (@g9tm/lynxcontrols G9TextEntry, G9NumberEntry and G9Editor set them): the iOS twin of android/.../input/G9InputUI.kt.
|
|
3
|
+
// A field draws the culture's digits for the ASCII digits it holds; the text itself is never changed.
|
|
4
|
+
//
|
|
5
|
+
// [G9InputBehaviors registerOn:config]; // instead of registering LynxUIInput / LynxUITextArea yourself
|
|
6
|
+
//
|
|
7
|
+
// The host must depend on XElement's Input subspec (the pod does). The digit fonts are this pod's resource bundle
|
|
8
|
+
// G9LynxNativeFonts (ios/fonts, SIL Open Font License 1.1).
|
|
9
|
+
#import <UIKit/UIKit.h>
|
|
10
|
+
#import <XElement/LynxUIInput.h>
|
|
11
|
+
#import <XElement/LynxUITextArea.h>
|
|
12
|
+
|
|
13
|
+
@class LynxConfig;
|
|
14
|
+
@class G9DigitsPlan;
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
17
|
+
|
|
18
|
+
/** `<input>`: XElement's single-line field. */
|
|
19
|
+
@interface G9UIInput : LynxUIInput
|
|
20
|
+
@end
|
|
21
|
+
|
|
22
|
+
/** `<textarea>`: XElement's multi-line field (G9Editor). */
|
|
23
|
+
@interface G9UITextArea : LynxUITextArea
|
|
24
|
+
@end
|
|
25
|
+
|
|
26
|
+
/** The digit fonts: registered once for the process, a field's font built from them per plan, size and font. */
|
|
27
|
+
@interface G9DigitFonts : NSObject
|
|
28
|
+
/** Registers ios/fonts with Core Text (once; later calls return the first answer). NO when the bundle is missing. */
|
|
29
|
+
+ (BOOL)registerFonts;
|
|
30
|
+
/** `base` drawing the plan's digits and separators (base is the fallback for everything else), or `base` itself when
|
|
31
|
+
* the fonts are not available. Cached. */
|
|
32
|
+
+ (UIFont *)font:(UIFont *)base plan:(G9DigitsPlan *)plan;
|
|
33
|
+
@end
|
|
34
|
+
|
|
35
|
+
/** Registration on a host's LynxConfig. */
|
|
36
|
+
@interface G9InputBehaviors : NSObject
|
|
37
|
+
/** `input` and `textarea` (with XElement's shadow nodes) as G9UIInput / G9UITextArea. Register exactly one of each
|
|
38
|
+
* per config: call this instead of registering LynxUIInput / LynxUITextArea. */
|
|
39
|
+
+ (void)registerOn:(LynxConfig *)config;
|
|
40
|
+
@end
|
|
41
|
+
|
|
42
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
#import "G9InputUI.h"
|
|
2
|
+
#import <CoreText/CoreText.h>
|
|
3
|
+
#import <Lynx/LynxConfig.h>
|
|
4
|
+
#import <Lynx/LynxPropsProcessor.h>
|
|
5
|
+
#import "core/G9DigitsCore.h"
|
|
6
|
+
|
|
7
|
+
static NSString *const G9FontsBundleName = @"G9LynxNativeFonts";
|
|
8
|
+
|
|
9
|
+
/** The pod's font bundle: inside the pod's framework (use_frameworks!) or the app (static libraries). */
|
|
10
|
+
static NSBundle *_Nullable G9FontsBundle(void) {
|
|
11
|
+
NSArray<NSBundle *> *candidates = @[ [NSBundle bundleForClass:G9DigitFonts.class], NSBundle.mainBundle ];
|
|
12
|
+
for (NSBundle *bundle in candidates) {
|
|
13
|
+
NSURL *url = [bundle URLForResource:G9FontsBundleName withExtension:@"bundle"];
|
|
14
|
+
if (url) return [NSBundle bundleWithURL:url];
|
|
15
|
+
}
|
|
16
|
+
return nil;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@implementation G9DigitFonts
|
|
20
|
+
|
|
21
|
+
+ (BOOL)registerFonts {
|
|
22
|
+
static BOOL registered = NO;
|
|
23
|
+
static dispatch_once_t once;
|
|
24
|
+
dispatch_once(&once, ^{
|
|
25
|
+
NSBundle *bundle = G9FontsBundle();
|
|
26
|
+
if (!bundle) {
|
|
27
|
+
NSLog(@"G9InputUI: the %@ bundle is missing; fields draw ASCII digits", G9FontsBundleName);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
NSUInteger found = 0;
|
|
31
|
+
for (NSString *name in [G9DigitsCore fontFileNames]) {
|
|
32
|
+
NSURL *url = [bundle URLForResource:name withExtension:@"ttf"];
|
|
33
|
+
if (!url) continue;
|
|
34
|
+
CFErrorRef error = NULL;
|
|
35
|
+
// Already registered (another LynxView's first field, a second registration) is not a failure.
|
|
36
|
+
if (!CTFontManagerRegisterFontsForURL((__bridge CFURLRef)url, kCTFontManagerScopeProcess, &error) && error) {
|
|
37
|
+
CFIndex code = CFErrorGetCode(error);
|
|
38
|
+
CFRelease(error);
|
|
39
|
+
if (code != kCTFontManagerErrorAlreadyRegistered) continue;
|
|
40
|
+
}
|
|
41
|
+
found++;
|
|
42
|
+
}
|
|
43
|
+
registered = found == [G9DigitsCore fontFileNames].count;
|
|
44
|
+
if (!registered) NSLog(@"G9InputUI: %lu of %lu digit fonts registered", (unsigned long)found, (unsigned long)[G9DigitsCore fontFileNames].count);
|
|
45
|
+
});
|
|
46
|
+
return registered;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
+ (UIFont *)font:(UIFont *)base plan:(G9DigitsPlan *)plan {
|
|
50
|
+
if (![self registerFonts]) return base;
|
|
51
|
+
static NSCache<NSString *, UIFont *> *cache;
|
|
52
|
+
static dispatch_once_t once;
|
|
53
|
+
dispatch_once(&once, ^{
|
|
54
|
+
cache = [NSCache new];
|
|
55
|
+
cache.countLimit = 64;
|
|
56
|
+
});
|
|
57
|
+
CGFloat size = base.pointSize;
|
|
58
|
+
NSString *key = [NSString stringWithFormat:@"%@|%@|%.3f", plan.key, base.fontDescriptor.postscriptName ?: base.fontName, size];
|
|
59
|
+
UIFont *cached = [cache objectForKey:key];
|
|
60
|
+
if (cached) return cached;
|
|
61
|
+
|
|
62
|
+
NSArray<NSString *> *names = plan.fontNames;
|
|
63
|
+
NSMutableArray<UIFontDescriptor *> *cascade = [NSMutableArray arrayWithCapacity:names.count];
|
|
64
|
+
for (NSUInteger i = 1; i < names.count; i++) [cascade addObject:[UIFontDescriptor fontDescriptorWithName:names[i] size:size]];
|
|
65
|
+
// Everything the digit fonts do not hold — letters, signs, the separators they do not map — in the field's own font.
|
|
66
|
+
[cascade addObject:base.fontDescriptor];
|
|
67
|
+
UIFontDescriptor *descriptor = [[UIFontDescriptor fontDescriptorWithName:names.firstObject size:size]
|
|
68
|
+
fontDescriptorByAddingAttributes:@{UIFontDescriptorCascadeListAttribute : cascade}];
|
|
69
|
+
UIFont *font = [UIFont fontWithDescriptor:descriptor size:size];
|
|
70
|
+
// A name Core Text does not know resolves to another font: then the field keeps its own.
|
|
71
|
+
if (![font.fontName isEqualToString:names.firstObject]) font = base;
|
|
72
|
+
[cache setObject:font forKey:key];
|
|
73
|
+
return font;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@end
|
|
77
|
+
|
|
78
|
+
/** The digit props of one field. */
|
|
79
|
+
@interface G9FieldDigits : NSObject
|
|
80
|
+
@property(nonatomic, copy, nullable) NSString *system;
|
|
81
|
+
@property(nonatomic, copy, nullable) NSString *decimalSeparator;
|
|
82
|
+
@property(nonatomic, copy, nullable) NSString *groupSeparator;
|
|
83
|
+
/** The font the field draws with: `base`, or `base` behind the digit fonts. */
|
|
84
|
+
- (UIFont *)fontFor:(UIFont *)base weight:(CGFloat)weight secure:(BOOL)secure;
|
|
85
|
+
@end
|
|
86
|
+
|
|
87
|
+
@implementation G9FieldDigits
|
|
88
|
+
|
|
89
|
+
- (UIFont *)fontFor:(UIFont *)base weight:(CGFloat)weight secure:(BOOL)secure {
|
|
90
|
+
// A password draws its dots, never digits.
|
|
91
|
+
if (secure) return base;
|
|
92
|
+
G9DigitsPlan *plan = [G9DigitsCore planForSystem:self.system
|
|
93
|
+
decimalSeparator:self.decimalSeparator
|
|
94
|
+
groupSeparator:self.groupSeparator
|
|
95
|
+
bold:[G9DigitsCore boldForWeight:weight]];
|
|
96
|
+
return plan ? [G9DigitFonts font:base plan:plan] : base;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@end
|
|
100
|
+
|
|
101
|
+
@implementation G9UIInput {
|
|
102
|
+
G9FieldDigits *_digits;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
- (instancetype)init {
|
|
106
|
+
if (self = [super init]) _digits = [G9FieldDigits new];
|
|
107
|
+
return self;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
LYNX_PROP_SETTER("g9-digits", setG9Digits, NSString *) {
|
|
111
|
+
_digits.system = requestReset ? nil : value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
LYNX_PROP_SETTER("g9-decimal-separator", setG9DecimalSeparator, NSString *) {
|
|
115
|
+
_digits.decimalSeparator = requestReset ? nil : value;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
LYNX_PROP_SETTER("g9-group-separator", setG9GroupSeparator, NSString *) {
|
|
119
|
+
_digits.groupSeparator = requestReset ? nil : value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
- (void)propsDidUpdate {
|
|
123
|
+
// XElement sets the field's font (self.font) and the text attributes; the digit fonts go in front of that font.
|
|
124
|
+
[super propsDidUpdate];
|
|
125
|
+
UIFont *base = self.font;
|
|
126
|
+
if (!base) return;
|
|
127
|
+
UIFont *drawn = [_digits fontFor:base weight:self.fontWeight secure:self.view.isSecureTextEntry];
|
|
128
|
+
if (self.inputAttrs[NSFontAttributeName] == drawn && self.view.defaultTextAttributes[NSFontAttributeName] == drawn) return;
|
|
129
|
+
self.inputAttrs[NSFontAttributeName] = drawn;
|
|
130
|
+
UITextRange *selection = self.view.selectedTextRange;
|
|
131
|
+
self.view.defaultTextAttributes = self.inputAttrs;
|
|
132
|
+
if (selection) self.view.selectedTextRange = selection;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@end
|
|
136
|
+
|
|
137
|
+
@implementation G9UITextArea {
|
|
138
|
+
G9FieldDigits *_digits;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
- (instancetype)init {
|
|
142
|
+
if (self = [super init]) _digits = [G9FieldDigits new];
|
|
143
|
+
return self;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
LYNX_PROP_SETTER("g9-digits", setG9Digits, NSString *) {
|
|
147
|
+
_digits.system = requestReset ? nil : value;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
LYNX_PROP_SETTER("g9-decimal-separator", setG9DecimalSeparator, NSString *) {
|
|
151
|
+
_digits.decimalSeparator = requestReset ? nil : value;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
LYNX_PROP_SETTER("g9-group-separator", setG9GroupSeparator, NSString *) {
|
|
155
|
+
_digits.groupSeparator = requestReset ? nil : value;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** The text view's text and typing attributes in the digits font (XElement's propsDidUpdate does the same with its own). */
|
|
159
|
+
- (void)g9_applyFont {
|
|
160
|
+
UIFont *base = self.font;
|
|
161
|
+
if (!base) return;
|
|
162
|
+
UIFont *drawn = [_digits fontFor:base weight:self.fontWeight secure:self.view.isSecureTextEntry];
|
|
163
|
+
self.inputAttrs[NSFontAttributeName] = drawn;
|
|
164
|
+
UITextView *view = self.view;
|
|
165
|
+
NSRange selection = view.selectedRange;
|
|
166
|
+
if (view.textStorage.length > 0) [view.textStorage addAttributes:self.inputAttrs range:NSMakeRange(0, view.textStorage.length)];
|
|
167
|
+
view.typingAttributes = self.inputAttrs;
|
|
168
|
+
view.selectedRange = selection;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
- (void)propsDidUpdate {
|
|
172
|
+
[super propsDidUpdate];
|
|
173
|
+
[self g9_applyFont];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
- (BOOL)setTextValue:(NSString *)value {
|
|
177
|
+
// `setText:` gives the new text the view's plain font: the digits font goes back on.
|
|
178
|
+
BOOL set = [super setTextValue:value];
|
|
179
|
+
if (set) [self g9_applyFont];
|
|
180
|
+
return set;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@end
|
|
184
|
+
|
|
185
|
+
@implementation G9InputBehaviors
|
|
186
|
+
|
|
187
|
+
+ (void)registerOn:(LynxConfig *)config {
|
|
188
|
+
[G9DigitFonts registerFonts];
|
|
189
|
+
[config registerUI:G9UIInput.class withName:@"input"];
|
|
190
|
+
[config registerShadowNode:LynxUIInputShadowNode.class withName:@"input"];
|
|
191
|
+
[config registerUI:G9UITextArea.class withName:@"textarea"];
|
|
192
|
+
[config registerShadowNode:LynxUITextAreaShadowNode.class withName:@"textarea"];
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@end
|
package/ios/src/G9SpeechModule.h
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
NS_ASSUME_NONNULL_BEGIN
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// Hosts register the module on their LynxConfig (the pod does not self-register it)
|
|
8
8
|
// (`[config registerModule:G9SpeechModule.class]`). The host's Info.plist needs NSMicrophoneUsageDescription and
|
|
9
9
|
// NSSpeechRecognitionUsageDescription.
|
|
10
10
|
|
package/ios/src/G9SqliteModule.h
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
NS_ASSUME_NONNULL_BEGIN
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// Hosts register the module on their LynxConfig (the pod does not self-register it)
|
|
8
8
|
// (`[config registerModule:G9SqliteModule.class]`, apps/ios-host/Sources/GalleryViewController.m).
|
|
9
9
|
|
|
10
10
|
/** `NativeModules.G9SqliteModule` on iOS (plan/specs/06 §5): G9SqliteCore over the system sqlite3, one serial queue per session. */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// What a field DRAWS for the ASCII digits it holds: the iOS twin of android/.../input/core/G9DigitsCore.kt. Android
|
|
2
|
+
// replaces the drawn characters (a TransformationMethod); iOS cannot, so the field's font becomes a digits font from
|
|
3
|
+
// ios/fonts (ASCII code points drawn with other glyphs) with the field's own font as the fallback. The text, the
|
|
4
|
+
// value events and the selection keep the ASCII characters. Foundation only, so the Linux harness runs it; the UIKit
|
|
5
|
+
// part is G9InputUI.m.
|
|
6
|
+
#import <Foundation/Foundation.h>
|
|
7
|
+
|
|
8
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
9
|
+
|
|
10
|
+
/** The fonts that draw a field's digits and separators, in cascade order, before the field's own font. */
|
|
11
|
+
@interface G9DigitsPlan : NSObject {
|
|
12
|
+
@private
|
|
13
|
+
NSArray *_fontNames;
|
|
14
|
+
NSString *_from;
|
|
15
|
+
NSString *_to;
|
|
16
|
+
}
|
|
17
|
+
/** PostScript names, digits first, then the decimal separator's, then the group separator's. */
|
|
18
|
+
- (NSArray *)fontNames;
|
|
19
|
+
/** One string per plan (the fonts' cache key). */
|
|
20
|
+
- (NSString *)key;
|
|
21
|
+
/** What the plan draws for `text` (the tests' view of the fonts: the same answers as the Android core). */
|
|
22
|
+
- (NSString *)draw:(NSString *)text;
|
|
23
|
+
@end
|
|
24
|
+
|
|
25
|
+
@interface G9DigitsCore : NSObject
|
|
26
|
+
/**
|
|
27
|
+
* The plan for `g9-digits` (`latin`, `persian`, `arabicIndic`: the culture's numbering system), `g9-decimal-separator`
|
|
28
|
+
* and `g9-group-separator`, or nil when the field draws ASCII (latin, empty, unknown). The fonts draw «٫» for the ASCII
|
|
29
|
+
* '.' and «٬» for the ASCII ',' only; another separator is drawn as typed (Android draws any one character).
|
|
30
|
+
*/
|
|
31
|
+
+ (nullable G9DigitsPlan *)planForSystem:(nullable NSString *)system
|
|
32
|
+
decimalSeparator:(nullable NSString *)decimalSeparator
|
|
33
|
+
groupSeparator:(nullable NSString *)groupSeparator
|
|
34
|
+
bold:(BOOL)bold;
|
|
35
|
+
/** Bold digits for a field whose weight (UIFontWeight) is semibold or heavier. */
|
|
36
|
+
+ (BOOL)boldForWeight:(double)weight;
|
|
37
|
+
/** Every font file in ios/fonts (without `.ttf`), for registration. */
|
|
38
|
+
+ (NSArray *)fontFileNames;
|
|
39
|
+
@end
|
|
40
|
+
|
|
41
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
#import "G9DigitsCore.h"
|
|
2
|
+
|
|
3
|
+
// The fonts of ios/fonts (build-digit-fonts.py; fonts.json is the list tests/unit/ios-digit-fonts.test.ts checks).
|
|
4
|
+
static NSString *const G9PersianFamily = @"G9DigitsPersian";
|
|
5
|
+
static NSString *const G9ArabicFamily = @"G9DigitsArabic";
|
|
6
|
+
static NSString *const G9DecimalFamily = @"G9DigitsDecimal066B";
|
|
7
|
+
static NSString *const G9GroupFamily = @"G9DigitsGroup066C";
|
|
8
|
+
|
|
9
|
+
static const unichar G9ArabicDecimalSeparator = 0x066B; // ٫
|
|
10
|
+
static const unichar G9ArabicThousandsSeparator = 0x066C; // ٬
|
|
11
|
+
|
|
12
|
+
static BOOL G9IsOneCharacter(NSString *value, unichar c) {
|
|
13
|
+
return value != nil && [value length] == 1 && [value characterAtIndex:0] == c;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@implementation G9DigitsPlan
|
|
17
|
+
|
|
18
|
+
- (instancetype)initWithFontNames:(NSArray *)fontNames from:(NSString *)from to:(NSString *)to {
|
|
19
|
+
if ((self = [super init])) {
|
|
20
|
+
_fontNames = [fontNames copy];
|
|
21
|
+
_from = [from copy];
|
|
22
|
+
_to = [to copy];
|
|
23
|
+
}
|
|
24
|
+
return self;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
- (NSArray *)fontNames {
|
|
28
|
+
return _fontNames;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
- (NSString *)key {
|
|
32
|
+
return [_fontNames componentsJoinedByString:@"|"];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
- (NSString *)draw:(NSString *)text {
|
|
36
|
+
NSUInteger length = [text length];
|
|
37
|
+
NSMutableString *out = [NSMutableString stringWithCapacity:length];
|
|
38
|
+
for (NSUInteger i = 0; i < length; i++) {
|
|
39
|
+
unichar c = [text characterAtIndex:i];
|
|
40
|
+
NSRange at = [_from rangeOfString:[NSString stringWithCharacters:&c length:1]];
|
|
41
|
+
unichar drawn = at.location == NSNotFound ? c : [_to characterAtIndex:at.location];
|
|
42
|
+
[out appendString:[NSString stringWithCharacters:&drawn length:1]];
|
|
43
|
+
}
|
|
44
|
+
return out;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@end
|
|
48
|
+
|
|
49
|
+
@implementation G9DigitsCore
|
|
50
|
+
|
|
51
|
+
+ (nullable G9DigitsPlan *)planForSystem:(nullable NSString *)system
|
|
52
|
+
decimalSeparator:(nullable NSString *)decimalSeparator
|
|
53
|
+
groupSeparator:(nullable NSString *)groupSeparator
|
|
54
|
+
bold:(BOOL)bold {
|
|
55
|
+
unichar zero;
|
|
56
|
+
NSString *family;
|
|
57
|
+
if ([system isEqualToString:@"persian"]) {
|
|
58
|
+
zero = 0x06F0;
|
|
59
|
+
family = G9PersianFamily;
|
|
60
|
+
} else if ([system isEqualToString:@"arabicIndic"]) {
|
|
61
|
+
zero = 0x0660;
|
|
62
|
+
family = G9ArabicFamily;
|
|
63
|
+
} else {
|
|
64
|
+
return nil;
|
|
65
|
+
}
|
|
66
|
+
NSString *style = bold ? @"Bold" : @"Regular";
|
|
67
|
+
NSMutableArray *fonts = [NSMutableArray arrayWithObject:[NSString stringWithFormat:@"%@-%@", family, style]];
|
|
68
|
+
NSMutableString *from = [NSMutableString stringWithString:@"0123456789"];
|
|
69
|
+
NSMutableString *to = [NSMutableString stringWithCapacity:12];
|
|
70
|
+
for (unichar d = 0; d < 10; d++) {
|
|
71
|
+
unichar c = (unichar)(zero + d);
|
|
72
|
+
[to appendString:[NSString stringWithCharacters:&c length:1]];
|
|
73
|
+
}
|
|
74
|
+
if (G9IsOneCharacter(decimalSeparator, G9ArabicDecimalSeparator)) {
|
|
75
|
+
[fonts addObject:[NSString stringWithFormat:@"%@-%@", G9DecimalFamily, style]];
|
|
76
|
+
[from appendString:@"."];
|
|
77
|
+
[to appendString:decimalSeparator];
|
|
78
|
+
}
|
|
79
|
+
if (G9IsOneCharacter(groupSeparator, G9ArabicThousandsSeparator)) {
|
|
80
|
+
[fonts addObject:[NSString stringWithFormat:@"%@-%@", G9GroupFamily, style]];
|
|
81
|
+
[from appendString:@","];
|
|
82
|
+
[to appendString:groupSeparator];
|
|
83
|
+
}
|
|
84
|
+
return [[G9DigitsPlan alloc] initWithFontNames:fonts from:from to:to];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
+ (BOOL)boldForWeight:(double)weight {
|
|
88
|
+
// UIFontWeightSemibold is 0.3; a little below it still counts (the weights are floats).
|
|
89
|
+
return weight >= 0.29;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
+ (NSArray *)fontFileNames {
|
|
93
|
+
NSMutableArray *names = [NSMutableArray arrayWithCapacity:8];
|
|
94
|
+
NSArray *families = [NSArray arrayWithObjects:G9PersianFamily, G9ArabicFamily, G9DecimalFamily, G9GroupFamily, nil];
|
|
95
|
+
NSArray *styles = [NSArray arrayWithObjects:@"Regular", @"Bold", nil];
|
|
96
|
+
for (NSString *style in styles) {
|
|
97
|
+
for (NSString *family in families) [names addObject:[NSString stringWithFormat:@"%@-%@", family, style]];
|
|
98
|
+
}
|
|
99
|
+
return names;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Android and iOS platform layer: the G9SqliteModule and G9HostModule native modules (Autolink) and their JS adapters.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"android/src/main",
|
|
25
25
|
"ios/g9lynx-native.podspec",
|
|
26
26
|
"ios/src",
|
|
27
|
+
"ios/fonts/*.ttf",
|
|
28
|
+
"ios/fonts/OFL.txt",
|
|
27
29
|
"ios/Tests/G9NativeTestSuite.h",
|
|
28
30
|
"ios/Tests/G9NativeTestSuite.m",
|
|
29
31
|
"ios/Tests/G9NativeTests.m",
|
|
@@ -38,14 +40,14 @@
|
|
|
38
40
|
"check:android-types": "node scripts/android-bridge-types.mjs"
|
|
39
41
|
},
|
|
40
42
|
"dependencies": {
|
|
41
|
-
"@g9tm/lynxcontrols-foundation": "1.
|
|
42
|
-
"@g9tm/lynxcontrols-sqlite": "1.
|
|
43
|
+
"@g9tm/lynxcontrols-foundation": "2.1.0",
|
|
44
|
+
"@g9tm/lynxcontrols-sqlite": "2.1.0"
|
|
43
45
|
},
|
|
44
46
|
"peerDependencies": {
|
|
45
|
-
"@lynx-js/react": ">=0.129.
|
|
47
|
+
"@lynx-js/react": ">=0.129.3 <0.130.0"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|
|
48
|
-
"@g9tm/lynxcontrols-lynxtron": "1.
|
|
50
|
+
"@g9tm/lynxcontrols-lynxtron": "2.1.0",
|
|
49
51
|
"@lynx-js/autolink-codegen": "0.6.0"
|
|
50
52
|
}
|
|
51
53
|
}
|
package/dist/media.jsx.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.jsx","sources":["../src/media.tsx"],"sourcesContent":["// @g9tm/lynxcontrols-native/media, the mobile media provider (plan/specs/06 §7): bundled-asset resolution through `G9HostModule.assetUri` and video\n// players rendered as the `<g9-video>` element @g9tm/lynxcontrols-native registers (Android Media3, iOS AVFoundation). The\n// intro carousel takes it as `services.media`.\nimport {\n G9Error,\n type G9MediaPlayer,\n type G9MediaPlayerEvent,\n type G9MediaPlayerOptions,\n type G9MediaProvider,\n type G9ResolvedMedia,\n} from '@g9tm/lynxcontrols-foundation';\nimport { type ReactNode, useSyncExternalStore } from '@lynx-js/react';\nimport type { G9HostNativeModule, G9NativeEnvelope } from './protocol';\n\n// Read directly (not imported from ./services): this entry is built on its own as .jsx and has no runtime imports of\n// the package's other files.\ndeclare const NativeModules: { G9HostModule?: G9HostNativeModule } | undefined;\nconst hostModule = (): G9HostNativeModule | null =>\n (typeof NativeModules === 'undefined' ? undefined : NativeModules?.G9HostModule) ?? null;\n\n/** Props of the `<g9-video>` element (`G9VideoUI` on Android and iOS). */\nexport interface G9VideoElementProps {\n /** `asset:///…` (Android), `file://…` (iOS), or `http(s)://…`. */\n readonly src: string;\n /** Default true: the element starts paused. */\n readonly paused?: boolean;\n /** Default true. */\n readonly loop?: boolean;\n /** Default true. */\n readonly muted?: boolean;\n /** One best-effort seek after the media opened. */\n readonly 'start-seconds'?: number;\n /** How early `nearend` fires before each loop's end. */\n readonly 'near-end-seconds'?: number;\n /** `cover` (default, fill and crop) or `contain`. */\n readonly 'object-fit'?: 'cover' | 'contain';\n readonly className?: string;\n readonly style?: Record<string, string | number>;\n /** The first frame is on screen. */\n readonly bindready?: () => void;\n readonly bindnearend?: (event: { readonly detail: { readonly seconds: number } }) => void;\n readonly bindlooped?: () => void;\n readonly binderror?: (event: { readonly detail: { readonly code: string; readonly message: string } }) => void;\n}\n\ndeclare module '@lynx-js/types' {\n interface IntrinsicElements {\n 'g9-video': G9VideoElementProps;\n }\n}\n\n/** Options of {@link createNativeMediaProvider}. */\nexport interface G9NativeMediaOptions {\n /** The host module (default `NativeModules.G9HostModule`). Tests pass a fake. */\n readonly module?: G9HostNativeModule;\n /**\n * Whether the host registered `<g9-video>` (Android: `G9VideoBehaviors.create()` among the LynxView behaviours; iOS:\n * linked `g9lynx-native`, which self-registers it). Default true; false makes the carousel show its images with\n * `'video-unsupported'`.\n */\n readonly videoElement?: boolean;\n}\n\ninterface PlayerState {\n readonly paused: boolean;\n readonly disposed: boolean;\n}\n\nfunction nativePlayer(media: G9ResolvedMedia, options: G9MediaPlayerOptions): G9MediaPlayer {\n let state: PlayerState = { paused: true, disposed: false };\n const views = new Set<() => void>();\n const listeners = new Set<(event: G9MediaPlayerEvent) => void>();\n const setState = (next: Partial<PlayerState>) => {\n if (state.disposed) return;\n state = { ...state, ...next };\n for (const view of Array.from(views)) view();\n };\n const emit = (event: G9MediaPlayerEvent) => {\n if (state.disposed) return;\n for (const listener of Array.from(listeners)) listener(event);\n };\n const subscribeView = (onChange: () => void) => {\n views.add(onChange);\n return () => {\n views.delete(onChange);\n };\n };\n const getState = () => state;\n\n function G9NativeVideo(): ReactNode {\n const { paused, disposed } = useSyncExternalStore(subscribeView, getState);\n if (disposed) return null;\n return (\n <g9-video\n src={media.uri}\n paused={paused}\n loop={options.loop ?? true}\n muted={options.muted ?? true}\n object-fit=\"cover\"\n {...(options.startSeconds ? { 'start-seconds': options.startSeconds } : {})}\n {...(options.nearEndSeconds ? { 'near-end-seconds': options.nearEndSeconds } : {})}\n style={{ width: '100%', height: '100%' }}\n bindready={() => emit({ type: 'ready' })}\n bindnearend={(e) => emit({ type: 'nearEnd', seconds: e.detail.seconds })}\n bindlooped={() => emit({ type: 'looped' })}\n binderror={(e) => emit({ type: 'error', error: new G9Error(`video-${e.detail.code}`, e.detail.message) })}\n />\n );\n }\n\n return {\n view: <G9NativeVideo />,\n play: () => setState({ paused: false }),\n pause: () => setState({ paused: true }),\n dispose() {\n if (state.disposed) return;\n // The element unmounts with the state change; the native element releases its player when destroyed.\n state = { ...state, disposed: true };\n for (const view of Array.from(views)) view();\n listeners.clear();\n },\n subscribe(listener) {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n };\n}\n\n/**\n * `services.media` for Android and iOS (MAUI `G9IntroMediaResolver` + `MediaElement`): `resolve` turns a bundled\n * asset into the URI the platform loaders open (`G9HostModule.assetUri`; `not-found` when the app does not ship it)\n * and passes `uri` sources through; `createPlayer` returns a player whose `view` is a `<g9-video>` element that plays\n * muted and looping, reports `ready` / `nearEnd` / `looped` / `error`, and is released when disposed or unmounted.\n * Throws outside a host that linked `@g9tm/lynxcontrols-native`.\n */\nexport function createNativeMediaProvider(options: G9NativeMediaOptions = {}): G9MediaProvider {\n const native = options.module ?? hostModule();\n if (!native) {\n throw new Error(\n 'NativeModules.G9HostModule is missing: add @g9tm/lynxcontrols-native to the app so Autolink links it.',\n );\n }\n return {\n async resolve(source, resolveOptions) {\n if (resolveOptions?.signal?.aborted) throw new G9Error('aborted', 'The media request was cancelled.');\n if ('uri' in source) return { kind: source.kind, uri: source.uri };\n const uri = await new Promise<string>((resolve, reject) => {\n native.assetUri(source.asset, (envelope: G9NativeEnvelope<string>) => {\n if (envelope?.ok && typeof envelope.value === 'string') resolve(envelope.value);\n else {\n const e = envelope && !envelope.ok ? envelope.error : { code: 'not-found', message: 'No reply.' };\n reject(new G9Error(e.code, e.message));\n }\n });\n });\n return { kind: source.kind, uri };\n },\n supportsVideo: () => options.videoElement ?? true,\n createPlayer: (media, playerOptions = {}) => nativePlayer(media, playerOptions),\n };\n}\n"],"names":["hostModule","_ref","NativeModules","undefined","nativePlayer","media","options","state","views","Set","listeners","setState","next","view","Array","emit","event","listener","subscribeView","onChange","getState","G9NativeVideo","_options_loop","_options_muted","paused","disposed","useSyncExternalStore","g9-video","e","G9Error","createNativeMediaProvider","_options_module","native","Error","source","resolveOptions","_resolveOptions_signal","uri","Promise","resolve","reject","envelope","_options_videoElement","playerOptions"],"mappings":";;AAiBA,MAAMA,aAAa;QAChBC;mBAAAA,CAA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