@aippy/runtime 0.2.7-dev.5 → 0.2.7-dev.7

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.
Files changed (41) hide show
  1. package/dist/ai/config/index.d.ts +1 -1
  2. package/dist/ai/config/parser.d.ts +5 -12
  3. package/dist/ai/errors.d.ts +1 -0
  4. package/dist/ai/index.d.ts +1 -1
  5. package/dist/ai/index.js +15 -16
  6. package/dist/ai/shared/fetch.d.ts +0 -4
  7. package/dist/ai/shared/index.d.ts +1 -1
  8. package/dist/app-version-checker-B1UXEcy9.js +240 -0
  9. package/dist/bridge-BQQ3PfSO.js +237 -0
  10. package/dist/config-B0A7gHQM.js +28 -0
  11. package/dist/container-message-YB3cWpWj.js +56 -0
  12. package/dist/core/errors.d.ts +22 -3
  13. package/dist/core/headers.d.ts +31 -0
  14. package/dist/core/index.d.ts +1 -0
  15. package/dist/core/index.js +22 -50
  16. package/dist/device/index.js +194 -194
  17. package/dist/errors-B3bDbQbD.js +40 -0
  18. package/dist/helper-BjRhidue.js +238 -0
  19. package/dist/hooks-C7VP176R.js +98 -0
  20. package/dist/index/index.js +89 -80
  21. package/dist/pwa-C5nXU0DN.js +250 -0
  22. package/dist/tweaks/index.js +1 -1
  23. package/dist/url-c26cuIpu.js +7 -0
  24. package/dist/{useTweaks-QxMRmg7i.js → useTweaks-B7Muzo78.js} +10 -9
  25. package/dist/user/hooks.d.ts +6 -2
  26. package/dist/user/index.d.ts +1 -0
  27. package/dist/user/index.js +3 -3
  28. package/dist/utils/app-version-checker.d.ts +62 -0
  29. package/dist/utils/app-version-requirements.json.d.ts +13 -0
  30. package/dist/utils/index.d.ts +2 -0
  31. package/dist/utils/index.js +17 -11
  32. package/dist/utils/ui.d.ts +3 -1
  33. package/dist/utils/url.d.ts +7 -0
  34. package/package.json +1 -1
  35. package/dist/bridge-Ca3H2iN1.js +0 -197
  36. package/dist/container-message-DGrno17o.js +0 -31
  37. package/dist/errors-CDEBaBxB.js +0 -26
  38. package/dist/helper-BENVYOU-.js +0 -247
  39. package/dist/hooks-CE9cjXHP.js +0 -46
  40. package/dist/pwa-CilSlaik.js +0 -249
  41. package/dist/ui-y5N62DqC.js +0 -175
@@ -0,0 +1,40 @@
1
+ var _ = Object.defineProperty;
2
+ var s = (E, R, O) => R in E ? _(E, R, { enumerable: !0, configurable: !0, writable: !0, value: O }) : E[R] = O;
3
+ var r = (E, R, O) => s(E, typeof R != "symbol" ? R + "" : R, O);
4
+ const N = {
5
+ RUNTIME: "[Aippy Runtime]",
6
+ // 运行时错误,不上报 LLM
7
+ CODE: "[Aippy Error]"
8
+ // 代码相关错误,上报 LLM
9
+ };
10
+ class t extends Error {
11
+ constructor(O, n = "AIPPY_ERROR", o, I = N.RUNTIME) {
12
+ super(`${I} ${O}`);
13
+ r(this, "code");
14
+ r(this, "context");
15
+ r(this, "prefix");
16
+ this.name = "AippyRuntimeError", this.code = n, this.context = o, this.prefix = I;
17
+ }
18
+ }
19
+ const e = {
20
+ NOT_SUPPORTED: "NOT_SUPPORTED",
21
+ PERMISSION_DENIED: "PERMISSION_DENIED",
22
+ INVALID_CONFIG: "INVALID_CONFIG",
23
+ NETWORK_ERROR: "NETWORK_ERROR",
24
+ TIMEOUT: "TIMEOUT",
25
+ OPERATION_FAILED: "OPERATION_FAILED",
26
+ UNKNOWN_ERROR: "UNKNOWN_ERROR"
27
+ };
28
+ function c(E, R = "UNKNOWN_ERROR", O) {
29
+ return new t(E, e[R], O, N.RUNTIME);
30
+ }
31
+ function i(E, R = "INVALID_CONFIG", O) {
32
+ return new t(E, e[R], O, N.CODE);
33
+ }
34
+ export {
35
+ t as A,
36
+ N as E,
37
+ e as a,
38
+ i as b,
39
+ c
40
+ };
@@ -0,0 +1,238 @@
1
+ import { createOpenAICompatible as d } from "@ai-sdk/openai-compatible";
2
+ import { s as f, a as b } from "./container-message-YB3cWpWj.js";
3
+ import { AISDKError as c, DefaultChatTransport as h } from "ai";
4
+ import { E as m, b as p, a as u } from "./errors-B3bDbQbD.js";
5
+ import { j as A } from "./url-c26cuIpu.js";
6
+ const g = "https://api.aippy.dev", I = `${g}/aisdk/v1/`, w = `${g}/aisdk/v1/ui/`, v = "gpt-5-nano", C = "";
7
+ function O(n = {}) {
8
+ return {
9
+ baseUrl: n.baseUrl ?? I
10
+ };
11
+ }
12
+ function _(n = {}) {
13
+ return {
14
+ baseUrl: n.baseUrl ?? w
15
+ };
16
+ }
17
+ function E(n, e) {
18
+ const r = n.status;
19
+ if (e && typeof e == "object" && "error" in e) {
20
+ const t = e, o = t.error.code, s = o != null ? `AippyAIError_${o}` : `AippyAIError_${r}`, a = e;
21
+ return "appMessage" in a && a.appMessage !== void 0 && f(a.appMessage), new c({
22
+ name: s,
23
+ message: `${m.RUNTIME} ${t.error.message}`,
24
+ cause: {
25
+ type: t.error.type ?? void 0,
26
+ param: t.error.param ?? void 0,
27
+ status: r
28
+ }
29
+ });
30
+ }
31
+ if (e && typeof e == "object" && e !== null) {
32
+ const t = e;
33
+ "appMessage" in t && t.appMessage !== void 0 && f(t.appMessage);
34
+ }
35
+ return new c({
36
+ name: `AippyAIError_${r}`,
37
+ message: `${m.RUNTIME} Request failed with status ${r}`,
38
+ cause: { status: r }
39
+ });
40
+ }
41
+ function l() {
42
+ return async (n, e) => {
43
+ const r = await b(e?.headers), t = await globalThis.fetch(n, { ...e, headers: r });
44
+ if (!t.ok) {
45
+ const o = await t.text().catch(() => null);
46
+ let s = null;
47
+ if (o)
48
+ try {
49
+ s = JSON.parse(o);
50
+ } catch {
51
+ s = { message: o };
52
+ }
53
+ throw E(t, s);
54
+ }
55
+ return t;
56
+ };
57
+ }
58
+ const S = [
59
+ "gpt-image-1",
60
+ "gpt-image-1-mini",
61
+ "gpt-image-1.5"
62
+ ];
63
+ function U(n) {
64
+ try {
65
+ const e = JSON.parse(n);
66
+ if (e.model && S.some((r) => e.model.startsWith(r))) {
67
+ const { response_format: r, ...t } = e;
68
+ return JSON.stringify(t);
69
+ }
70
+ } catch {
71
+ }
72
+ return n;
73
+ }
74
+ function x(n = {}) {
75
+ const { baseUrl: e } = O(n), r = l();
76
+ return d({
77
+ name: "aippy",
78
+ baseURL: e,
79
+ fetch: async (o, s) => o.toString().includes("/images/generations") && s?.method?.toUpperCase() === "POST" && s?.body ? r(o, {
80
+ ...s,
81
+ body: U(s.body)
82
+ }) : r(o, s),
83
+ // Enable structured outputs support (json_schema response format)
84
+ // This is required for Output.object() and Output.array() to work properly
85
+ supportsStructuredOutputs: !0
86
+ });
87
+ }
88
+ const N = "/chat";
89
+ function J(n = {}) {
90
+ const { baseUrl: e } = _(n), r = n.model ?? v, t = n.system ?? C, o = n.api ?? A(e, N), s = { model: r, system: t }, a = l();
91
+ return {
92
+ transport: new h({
93
+ api: o,
94
+ body: s,
95
+ // Ensure token is fetched fresh for every request
96
+ fetch: a
97
+ })
98
+ };
99
+ }
100
+ function y(n) {
101
+ const e = [];
102
+ if (!n || typeof n != "object")
103
+ throw p("AIConfig must be an object", u.INVALID_CONFIG);
104
+ const r = n;
105
+ for (const [t, o] of Object.entries(r)) {
106
+ if (!o || typeof o != "object") {
107
+ e.push({ key: t, message: "Item must be an object" });
108
+ continue;
109
+ }
110
+ const s = o;
111
+ typeof s.index != "number" && e.push({ key: t, message: "index must be a number" }), typeof s.name != "string" && e.push({ key: t, message: "name must be a string" }), typeof s.description != "string" && e.push({ key: t, message: "description must be a string" });
112
+ const a = s.type;
113
+ if (!["number", "boolean", "text", "enum"].includes(a)) {
114
+ e.push({
115
+ key: t,
116
+ message: `type must be one of: number, boolean, text, enum (got: ${a})`
117
+ });
118
+ continue;
119
+ }
120
+ if (a === "number")
121
+ typeof s.value != "number" && e.push({ key: t, message: 'value must be a number for type "number"' }), s.min !== void 0 && typeof s.min != "number" && e.push({ key: t, message: "min must be a number" }), s.max !== void 0 && typeof s.max != "number" && e.push({ key: t, message: "max must be a number" }), s.step !== void 0 && typeof s.step != "number" && e.push({ key: t, message: "step must be a number" });
122
+ else if (a === "boolean")
123
+ typeof s.value != "boolean" && e.push({ key: t, message: 'value must be a boolean for type "boolean"' });
124
+ else if (a === "text")
125
+ typeof s.value != "string" && e.push({ key: t, message: 'value must be a string for type "text"' });
126
+ else if (a === "enum") {
127
+ if (!Array.isArray(s.options))
128
+ e.push({ key: t, message: 'options must be an array for type "enum"' });
129
+ else if (s.options.length === 0)
130
+ e.push({ key: t, message: 'options array cannot be empty for type "enum"' });
131
+ else
132
+ for (let i = 0; i < s.options.length; i++)
133
+ typeof s.options[i] != "string" && e.push({
134
+ key: t,
135
+ message: `options[${i}] must be a string`
136
+ });
137
+ typeof s.value != "string" ? e.push({ key: t, message: 'value must be a string for type "enum"' }) : Array.isArray(s.options) && !s.options.includes(s.value) && e.push({
138
+ key: t,
139
+ message: `value "${s.value}" is not in options: [${s.options.join(", ")}]`
140
+ });
141
+ }
142
+ s.group !== void 0 && typeof s.group != "string" && e.push({ key: t, message: "group must be a string" });
143
+ }
144
+ if (e.length > 0)
145
+ throw p(
146
+ `AIConfig validation failed with ${e.length} error(s)`,
147
+ u.INVALID_CONFIG,
148
+ { errors: e }
149
+ );
150
+ }
151
+ function P(n) {
152
+ let e;
153
+ try {
154
+ e = JSON.parse(n);
155
+ } catch (r) {
156
+ throw p(
157
+ `Invalid JSON: ${r instanceof Error ? r.message : String(r)}`,
158
+ u.INVALID_CONFIG
159
+ );
160
+ }
161
+ return y(e), e;
162
+ }
163
+ function T(n) {
164
+ return y(n), n;
165
+ }
166
+ function F(n, e) {
167
+ const r = n[e];
168
+ if (!r)
169
+ throw p(
170
+ `AIConfig key "${e}" not found`,
171
+ u.INVALID_CONFIG,
172
+ { key: e }
173
+ );
174
+ return r.value;
175
+ }
176
+ function R(n) {
177
+ if (!(typeof window > "u"))
178
+ try {
179
+ const e = window.webkit?.messageHandlers?.aippyListener;
180
+ if (e)
181
+ try {
182
+ const r = {
183
+ command: "ai.initialize",
184
+ parameters: JSON.stringify(n)
185
+ };
186
+ e.postMessage(r);
187
+ } catch (r) {
188
+ console.warn("❌ [Aippy AI Config] Failed to send config to iOS app:", r);
189
+ }
190
+ if (window.parent && window.parent !== window)
191
+ try {
192
+ const r = {
193
+ type: "ai.initialize",
194
+ config: JSON.stringify(n)
195
+ };
196
+ window.parent.postMessage(r, "*");
197
+ } catch (r) {
198
+ console.warn("❌ [Aippy AI Config] Failed to send config to parent window:", r);
199
+ }
200
+ } catch (e) {
201
+ console.warn("⚠️ [Aippy AI Config] Failed to send config:", e);
202
+ }
203
+ }
204
+ function B(n) {
205
+ const e = T(n);
206
+ return R(e), new Proxy({}, {
207
+ get(r, t) {
208
+ if (typeof t == "string")
209
+ try {
210
+ return F(e, t);
211
+ } catch {
212
+ return;
213
+ }
214
+ },
215
+ has(r, t) {
216
+ return typeof t != "string" ? !1 : t in e;
217
+ },
218
+ ownKeys(r) {
219
+ return Object.keys(e);
220
+ }
221
+ });
222
+ }
223
+ export {
224
+ I as D,
225
+ N as U,
226
+ x as a,
227
+ J as b,
228
+ w as c,
229
+ v as d,
230
+ C as e,
231
+ B as f,
232
+ F as g,
233
+ T as l,
234
+ E as n,
235
+ P as p,
236
+ R as s,
237
+ y as v
238
+ };
@@ -0,0 +1,98 @@
1
+ import { useState as U, useEffect as y, useCallback as p } from "react";
2
+ const g = {
3
+ avatar: "",
4
+ nickName: "用户",
5
+ username: "",
6
+ uid: ""
7
+ };
8
+ let s = null, a = null;
9
+ const d = /* @__PURE__ */ new Set();
10
+ function h() {
11
+ d.forEach((n) => n());
12
+ }
13
+ const u = [100, 300, 500, 1e3], w = (n) => new Promise((o) => setTimeout(o, n)), A = () => /Aippy\/[\d.]+\/\d+\/Android/i.test(navigator.userAgent);
14
+ async function v() {
15
+ console.log("🔍 [useUserInfo] fetchUserInfoFromBridge started");
16
+ const n = A();
17
+ try {
18
+ const { getUserInfoAsync: o, getUserInfoFromParent: c, isInIframe: t } = await import("./bridge-BQQ3PfSO.js"), { hasNativeBridge: f } = await import("./native-bridge-BnvipFJc.js"), i = f(), l = t();
19
+ console.log("🔍 [useUserInfo] Environment check:", {
20
+ hasNativeBridge: i,
21
+ isInIframe: l,
22
+ isAndroid: n,
23
+ userAgent: navigator.userAgent
24
+ });
25
+ let e = null;
26
+ if (i)
27
+ console.log("📱 [useUserInfo] Using native bridge to get user info..."), e = await o(), console.log("📱 [useUserInfo] Native bridge returned:", e);
28
+ else if (l)
29
+ console.log("🖼️ [useUserInfo] Using iframe parent to get user info..."), e = await c(), console.log("🖼️ [useUserInfo] Iframe parent returned:", e);
30
+ else {
31
+ if (console.log("🌐 [useUserInfo] Bridge not ready, trying getUserInfoAsync..."), e = await o(), !e && n) {
32
+ console.log("🤖 [useUserInfo] Android: First attempt failed, retrying...");
33
+ for (let r = 0; r < u.length; r++) {
34
+ const I = u[r];
35
+ if (console.log(`🔄 [useUserInfo] Android retry ${r + 1}/${u.length} after ${I}ms...`), await w(I), e = await o(), e) {
36
+ console.log(`✅ [useUserInfo] Retry ${r + 1} succeeded:`, e);
37
+ break;
38
+ }
39
+ }
40
+ }
41
+ console.log("🌐 [useUserInfo] Result:", e);
42
+ }
43
+ if (e) {
44
+ const r = {
45
+ avatar: String(e.avatar || e.photoUrl || ""),
46
+ nickName: String(e.nickName || e.nickname || e.displayName || "用户"),
47
+ username: String(e.username || ""),
48
+ uid: String(e.uid || "")
49
+ };
50
+ return console.log("✅ [useUserInfo] Parsed user info:", r), r;
51
+ }
52
+ return console.warn("⚠️ [useUserInfo] No user info received (info is null/undefined)"), null;
53
+ } catch (o) {
54
+ return console.error("❌ [useUserInfo] fetchUserInfoFromBridge failed:", o), null;
55
+ }
56
+ }
57
+ async function m() {
58
+ if (console.log("🔄 [useUserInfo] getOrFetchUserInfo called, cachedUserInfo:", s), s)
59
+ return console.log("✅ [useUserInfo] Returning cached user info"), s;
60
+ if (a) {
61
+ console.log("⏳ [useUserInfo] Already fetching, waiting for existing promise...");
62
+ const n = await a;
63
+ return console.log("⏳ [useUserInfo] Existing promise resolved:", n), n || g;
64
+ }
65
+ console.log("🚀 [useUserInfo] Starting new fetch..."), a = v();
66
+ try {
67
+ const n = await a;
68
+ return console.log("🚀 [useUserInfo] Fetch completed:", n), n && (s = n, h()), n || g;
69
+ } finally {
70
+ a = null;
71
+ }
72
+ }
73
+ function N() {
74
+ const [n, o] = U(s || g), [c, t] = U(!s);
75
+ y(() => {
76
+ const i = () => {
77
+ s && (o(s), t(!1));
78
+ };
79
+ return d.add(i), s || (t(!0), m().then((l) => {
80
+ o(l), t(!1);
81
+ })), () => {
82
+ d.delete(i);
83
+ };
84
+ }, []);
85
+ const f = p(async () => {
86
+ t(!0), s = null, a = null;
87
+ const i = await m();
88
+ o(i), t(!1);
89
+ }, []);
90
+ return { ...n, isLoading: c, refetch: f };
91
+ }
92
+ function S() {
93
+ s = null, a = null, h();
94
+ }
95
+ export {
96
+ S as c,
97
+ N as u
98
+ };
@@ -1,83 +1,92 @@
1
- import { DEFAULT_CONFIG as o, SDK_NAME as r, VERSION as s, getConfigFromEnv as t, getVersionInfo as i, mergeConfig as n } from "../core/index.js";
2
- import { A, E as f, c as m } from "../errors-CDEBaBxB.js";
3
- import { s as C } from "../container-message-DGrno17o.js";
4
- import { A as E, C as d, R as l, a as g, p as u } from "../runtime-CmoG3v2m.js";
5
- import { CameraAPI as x, FileSystemAPI as T, GeolocationAPI as _, SensorsAPI as D, camera as U, fileSystem as M, geolocation as P, isMotionSupported as R, isOrientationSupported as y, requestMotionPermission as h, sensors as v, vibrate as O, watchMotion as F, watchOrientation as L } from "../device/index.js";
6
- import { P as N, c as b, i as V, p as H, s as k } from "../ui-y5N62DqC.js";
7
- import { a as G, P as q, p as z, b as K } from "../pwa-CilSlaik.js";
8
- import { a as Y, b as j } from "../useTweaks-QxMRmg7i.js";
9
- import { c as Q, a as X, i as Z, p as $, u as ee } from "../useAudioContext-D9F3x80Y.js";
10
- import { reportScore as oe, sendEvent as re, updateScore as se } from "../leaderboard/index.js";
11
- import { A as ie, D as ne, d as pe, e as Ae, c as fe, U as me, a as ce, b as Ce, f as Ie, g as Ee, l as de, n as le, p as ge, s as ue, v as Se } from "../helper-BENVYOU-.js";
12
- import { c as Te, u as _e } from "../hooks-CE9cjXHP.js";
13
- import { getAuthTokenAsync as Ue } from "../bridge-Ca3H2iN1.js";
14
- import { hasNativeBridge as Pe } from "../native-bridge-BnvipFJc.js";
1
+ import { D as r, g as o, m as s } from "../config-B0A7gHQM.js";
2
+ import { A as i, a as n, E as p, b as m, c as A } from "../errors-B3bDbQbD.js";
3
+ import { S as f, V as u, c as C, a as E, g, s as I } from "../container-message-YB3cWpWj.js";
4
+ import { A as l, C as S, R as x, a as R, p as T } from "../runtime-CmoG3v2m.js";
5
+ import { CameraAPI as D, FileSystemAPI as U, GeolocationAPI as y, SensorsAPI as F, camera as P, fileSystem as M, geolocation as h, isMotionSupported as v, isOrientationSupported as O, requestMotionPermission as b, sensors as L, vibrate as w, watchMotion as H, watchOrientation as N } from "../device/index.js";
6
+ import { P as k, a as q, c as B, b as j, g as G, i as z, p as K, r as W, s as X } from "../app-version-checker-B1UXEcy9.js";
7
+ import { a as J, P as Q, p as Z, b as $ } from "../pwa-C5nXU0DN.js";
8
+ import { j as ae } from "../url-c26cuIpu.js";
9
+ import { a as oe, b as se } from "../useTweaks-B7Muzo78.js";
10
+ import { c as ie, a as ne, i as pe, p as me, u as Ae } from "../useAudioContext-D9F3x80Y.js";
11
+ import { reportScore as fe, sendEvent as ue, updateScore as Ce } from "../leaderboard/index.js";
12
+ import { D as ge, d as Ie, e as de, c as le, U as Se, a as xe, b as Re, f as Te, g as _e, l as De, n as Ue, p as ye, s as Fe, v as Pe } from "../helper-BjRhidue.js";
13
+ import { c as he, u as ve } from "../hooks-C7VP176R.js";
14
+ import { getAuthTokenAsync as be } from "../bridge-BQQ3PfSO.js";
15
+ import { hasNativeBridge as we } from "../native-bridge-BnvipFJc.js";
15
16
  export {
16
- ie as AIConfigValidationError,
17
- E as AippyRuntime,
18
- A as AippyRuntimeError,
19
- x as CameraAPI,
20
- d as Cancellable,
21
- ne as DEFAULT_BASE_URL,
22
- pe as DEFAULT_CHAT_MODEL,
23
- Ae as DEFAULT_CHAT_SYSTEM,
24
- o as DEFAULT_CONFIG,
25
- fe as DEFAULT_UI_BASE_URL,
26
- f as ERROR_CODES,
27
- T as FileSystemAPI,
28
- _ as GeolocationAPI,
29
- G as PWAUtils,
30
- q as PerformanceMonitor,
31
- N as PlatformDetector,
32
- l as ReceiveChannel,
33
- r as SDK_NAME,
34
- D as SensorsAPI,
35
- me as UI_CHAT_ENDPOINT,
36
- s as VERSION,
37
- ce as aippyAIProvider,
38
- Ce as aippyChatConfig,
39
- g as aippyRuntime,
40
- Y as aippyTweaks,
41
- j as aippyTweaksRuntime,
42
- U as camera,
43
- Te as clearUserInfoCache,
44
- b as compareVersions,
45
- Ie as createAIConfig,
46
- m as createError,
47
- Q as createHiddenMediaElement,
17
+ l as AippyRuntime,
18
+ i as AippyRuntimeError,
19
+ D as CameraAPI,
20
+ S as Cancellable,
21
+ ge as DEFAULT_BASE_URL,
22
+ Ie as DEFAULT_CHAT_MODEL,
23
+ de as DEFAULT_CHAT_SYSTEM,
24
+ r as DEFAULT_CONFIG,
25
+ le as DEFAULT_UI_BASE_URL,
26
+ n as ERROR_CODES,
27
+ p as ERROR_PREFIX,
28
+ U as FileSystemAPI,
29
+ y as GeolocationAPI,
30
+ J as PWAUtils,
31
+ Q as PerformanceMonitor,
32
+ k as PlatformDetector,
33
+ x as ReceiveChannel,
34
+ f as SDK_NAME,
35
+ F as SensorsAPI,
36
+ Se as UI_CHAT_ENDPOINT,
37
+ u as VERSION,
38
+ xe as aippyAIProvider,
39
+ Re as aippyChatConfig,
40
+ R as aippyRuntime,
41
+ oe as aippyTweaks,
42
+ se as aippyTweaksRuntime,
43
+ P as camera,
44
+ q as checkFeatureSupport,
45
+ he as clearUserInfoCache,
46
+ B as compareVersions,
47
+ Te as createAIConfig,
48
+ C as createAippyHeaders,
49
+ E as createAippyHeadersAsync,
50
+ m as createCodeError,
51
+ A as createError,
52
+ ie as createHiddenMediaElement,
48
53
  M as fileSystem,
49
- P as geolocation,
50
- Ee as getAIConfigValue,
51
- Ue as getAuthTokenAsync,
52
- t as getConfigFromEnv,
53
- i as getVersionInfo,
54
- Pe as hasNativeBridge,
55
- X as isIOSDevice,
56
- V as isInIframe,
57
- Z as isMediaStreamAudioSupported,
58
- R as isMotionSupported,
59
- y as isOrientationSupported,
60
- de as loadAIConfig,
61
- n as mergeConfig,
62
- le as normalizeError,
63
- ge as parseAIConfig,
64
- $ as patchAudioContext,
65
- z as performanceMonitor,
66
- H as platform,
67
- u as processMotionData,
68
- K as pwa,
69
- oe as reportScore,
70
- h as requestMotionPermission,
71
- ue as sendAIConfigToContainer,
72
- re as sendEvent,
73
- C as sendMessageToContainer,
74
- v as sensors,
75
- k as showAlert,
76
- se as updateScore,
77
- ee as useAudioContext,
78
- _e as useUserInfo,
79
- Se as validateAIConfig,
80
- O as vibrate,
81
- F as watchMotion,
82
- L as watchOrientation
54
+ h as geolocation,
55
+ _e as getAIConfigValue,
56
+ be as getAuthTokenAsync,
57
+ j as getAvailableFeatures,
58
+ o as getConfigFromEnv,
59
+ G as getFeatureVersionRequirements,
60
+ g as getVersionInfo,
61
+ we as hasNativeBridge,
62
+ ne as isIOSDevice,
63
+ z as isInIframe,
64
+ pe as isMediaStreamAudioSupported,
65
+ v as isMotionSupported,
66
+ O as isOrientationSupported,
67
+ ae as joinUrl,
68
+ De as loadAIConfig,
69
+ s as mergeConfig,
70
+ Ue as normalizeError,
71
+ ye as parseAIConfig,
72
+ me as patchAudioContext,
73
+ Z as performanceMonitor,
74
+ K as platform,
75
+ T as processMotionData,
76
+ $ as pwa,
77
+ fe as reportScore,
78
+ b as requestMotionPermission,
79
+ W as requireFeatureSupport,
80
+ Fe as sendAIConfigToContainer,
81
+ ue as sendEvent,
82
+ I as sendMessageToContainer,
83
+ L as sensors,
84
+ X as showAlert,
85
+ Ce as updateScore,
86
+ Ae as useAudioContext,
87
+ ve as useUserInfo,
88
+ Pe as validateAIConfig,
89
+ w as vibrate,
90
+ H as watchMotion,
91
+ N as watchOrientation
83
92
  };