@rtc-agent/component 0.2.8-rc.1 → 0.2.8-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{shared-worker-CXyjL7E6.js → shared-worker-CX8Jyhi5.js} +126 -126
- package/dist/components/rtc-agent/rtc-agent.d.ts.map +1 -1
- package/dist/controllers/auth.controller.d.ts +4 -1
- package/dist/controllers/auth.controller.d.ts.map +1 -1
- package/dist/{en-US-9e1nrE9Q.js → en-US-15fqKTGu.js} +1 -1
- package/dist/{highlight-languages-BcRFTMSx.js → highlight-languages-BFi26Mqw.js} +1 -1
- package/dist/{index-CEn11pPK.js → index-BsCaw_04.js} +365 -346
- package/dist/index.js +1 -1
- package/dist/index.umd.js +75 -75
- package/dist/stats.html +1 -1
- package/dist/types/factory.d.ts +42 -0
- package/dist/types/factory.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -25,7 +25,7 @@ let LA = class {
|
|
|
25
25
|
return this.cssText;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
const f3 = (t) => new LA(typeof t == "string" ? t : t + "", void 0, Lv),
|
|
28
|
+
const f3 = (t) => new LA(typeof t == "string" ? t : t + "", void 0, Lv), fr = (t, ...e) => {
|
|
29
29
|
const r = t.length === 1 ? t[0] : e.reduce((n, i, s) => n + ((o) => {
|
|
30
30
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
31
31
|
if (typeof o == "number") return o;
|
|
@@ -524,7 +524,7 @@ const VA = (t, e, r) => {
|
|
|
524
524
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
525
525
|
*/
|
|
526
526
|
const Kl = globalThis;
|
|
527
|
-
let
|
|
527
|
+
let pr = class extends Vc {
|
|
528
528
|
constructor() {
|
|
529
529
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
530
530
|
}
|
|
@@ -550,9 +550,9 @@ let dr = class extends Vc {
|
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
552
|
var BA;
|
|
553
|
-
|
|
553
|
+
pr._$litElement$ = !0, pr.finalized = !0, (BA = Kl.litElementHydrateSupport) == null || BA.call(Kl, { LitElement: pr });
|
|
554
554
|
const Bg = Kl.litElementPolyfillSupport;
|
|
555
|
-
Bg == null || Bg({ LitElement:
|
|
555
|
+
Bg == null || Bg({ LitElement: pr });
|
|
556
556
|
(Kl.litElementVersions ?? (Kl.litElementVersions = [])).push("4.2.2");
|
|
557
557
|
/**
|
|
558
558
|
* @license
|
|
@@ -747,7 +747,7 @@ function lr({ context: t, subscribe: e }) {
|
|
|
747
747
|
});
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
|
-
const L3 = "0.2.8-rc.0", R3 =
|
|
750
|
+
const L3 = "0.2.8-rc.0", R3 = fr`
|
|
751
751
|
:host {
|
|
752
752
|
display: block;
|
|
753
753
|
/* Position controlled by JS (left/top) for interact.js compatibility */
|
|
@@ -1063,7 +1063,7 @@ const L3 = "0.2.8-rc.0", R3 = pr`
|
|
|
1063
1063
|
font-size: 16px;
|
|
1064
1064
|
font-weight: 500;
|
|
1065
1065
|
}
|
|
1066
|
-
`, zn =
|
|
1066
|
+
`, zn = fr`
|
|
1067
1067
|
:host {
|
|
1068
1068
|
/* ── Spacing ── */
|
|
1069
1069
|
--rtc-spacing-xs: 4px;
|
|
@@ -1182,7 +1182,7 @@ const L3 = "0.2.8-rc.0", R3 = pr`
|
|
|
1182
1182
|
--rtc-content-height-lg: 240px;
|
|
1183
1183
|
--rtc-content-height-xl: 360px;
|
|
1184
1184
|
}
|
|
1185
|
-
`, Wn =
|
|
1185
|
+
`, Wn = fr`
|
|
1186
1186
|
:host {
|
|
1187
1187
|
/* Background */
|
|
1188
1188
|
--rtc-color-bg: #FFFFFF;
|
|
@@ -1228,7 +1228,7 @@ const L3 = "0.2.8-rc.0", R3 = pr`
|
|
|
1228
1228
|
/* Backdrop */
|
|
1229
1229
|
--rtc-color-backdrop: rgba(0,0,0,0.3);
|
|
1230
1230
|
}
|
|
1231
|
-
`, Hn =
|
|
1231
|
+
`, Hn = fr`
|
|
1232
1232
|
:host([theme='dark']) {
|
|
1233
1233
|
/* Background */
|
|
1234
1234
|
--rtc-color-bg: #0B1127;
|
|
@@ -1274,7 +1274,7 @@ const L3 = "0.2.8-rc.0", R3 = pr`
|
|
|
1274
1274
|
/* Backdrop */
|
|
1275
1275
|
--rtc-color-backdrop: rgba(11,17,39,0.6);
|
|
1276
1276
|
}
|
|
1277
|
-
`, Kn =
|
|
1277
|
+
`, Kn = fr`
|
|
1278
1278
|
*,
|
|
1279
1279
|
*::before,
|
|
1280
1280
|
*::after {
|
|
@@ -4692,7 +4692,7 @@ const Xa = {
|
|
|
4692
4692
|
},
|
|
4693
4693
|
/** Token refresh buffer time (5 minutes before expiry) */
|
|
4694
4694
|
refreshBufferMs: 5 * 60 * 1e3
|
|
4695
|
-
},
|
|
4695
|
+
}, Gr = {
|
|
4696
4696
|
tokens: "rtc_auth_tokens",
|
|
4697
4697
|
deviceId: "rtc_device_id",
|
|
4698
4698
|
deviceName: "rtc_device_name",
|
|
@@ -4792,7 +4792,7 @@ class x4 {
|
|
|
4792
4792
|
_restoreState() {
|
|
4793
4793
|
var e, r, n, i;
|
|
4794
4794
|
try {
|
|
4795
|
-
const s = localStorage.getItem(
|
|
4795
|
+
const s = localStorage.getItem(Gr.windowState);
|
|
4796
4796
|
if (!s) {
|
|
4797
4797
|
this._state = { ...this._state, mode: this._config.defaultMode };
|
|
4798
4798
|
return;
|
|
@@ -4822,7 +4822,7 @@ class x4 {
|
|
|
4822
4822
|
_persistState() {
|
|
4823
4823
|
try {
|
|
4824
4824
|
const { mode: e, position: r, size: n } = this._state, i = { mode: e, position: r, size: n };
|
|
4825
|
-
localStorage.setItem(
|
|
4825
|
+
localStorage.setItem(Gr.windowState, JSON.stringify(i));
|
|
4826
4826
|
} catch (e) {
|
|
4827
4827
|
W_.debug("Failed to persist window state:", e);
|
|
4828
4828
|
}
|
|
@@ -4918,13 +4918,13 @@ class x4 {
|
|
|
4918
4918
|
}
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
|
-
const
|
|
4921
|
+
const dr = Yt("AuthController");
|
|
4922
4922
|
class w4 {
|
|
4923
4923
|
constructor(e) {
|
|
4924
4924
|
this._state = { ...q3 }, this._externalTokens = !1, this.host = e, this.host.addController(this), this.actions = {
|
|
4925
4925
|
login: () => this._login(),
|
|
4926
4926
|
logout: () => this._logout()
|
|
4927
|
-
},
|
|
4927
|
+
}, dr.debug("[AUTH_LIFECYCLE] Constructor called, about to call _loadTokens()"), this._loadTokens();
|
|
4928
4928
|
}
|
|
4929
4929
|
get value() {
|
|
4930
4930
|
return { state: this._state, ...this.actions };
|
|
@@ -4933,7 +4933,7 @@ class w4 {
|
|
|
4933
4933
|
return this._state;
|
|
4934
4934
|
}
|
|
4935
4935
|
hostConnected() {
|
|
4936
|
-
|
|
4936
|
+
dr.debug("[AUTH_LIFECYCLE] hostConnected() called"), dr.debug("[AUTH_LIFECYCLE] hostConnected() _state.isLoggedIn:", this._state.isLoggedIn), dr.debug("[AUTH_LIFECYCLE] hostConnected() _refreshTimer exists?", !!this._refreshTimer), this._boundVisibilityHandler = this._onVisibilityChange.bind(this), document.addEventListener("visibilitychange", this._boundVisibilityHandler), this._state.isLoggedIn && !this._refreshTimer && this._state.expiresAt && (dr.debug("[AUTH_LIFECYCLE] hostConnected() Re-scheduling refresh timer (was cleared by hostDisconnected)"), this._scheduleRefresh(this._state.expiresAt));
|
|
4937
4937
|
}
|
|
4938
4938
|
/**
|
|
4939
4939
|
* ReactiveController lifecycle: host disconnected from DOM.
|
|
@@ -4945,7 +4945,7 @@ class w4 {
|
|
|
4945
4945
|
* or when the controller is GC'd with the element.
|
|
4946
4946
|
*/
|
|
4947
4947
|
hostDisconnected() {
|
|
4948
|
-
|
|
4948
|
+
dr.debug("[AUTH_LIFECYCLE] hostDisconnected() called"), dr.debug("[AUTH_LIFECYCLE] hostDisconnected() _state.isLoggedIn:", this._state.isLoggedIn), dr.debug("[AUTH_LIFECYCLE] hostDisconnected() _refreshTimer exists?", !!this._refreshTimer), this._boundVisibilityHandler && (document.removeEventListener("visibilitychange", this._boundVisibilityHandler), this._boundVisibilityHandler = void 0), this._refreshTimer && (dr.debug("[AUTH_LIFECYCLE] hostDisconnected() Clearing _refreshTimer"), clearTimeout(this._refreshTimer), this._refreshTimer = void 0);
|
|
4949
4949
|
}
|
|
4950
4950
|
/**
|
|
4951
4951
|
* Convenience: trigger login directly on the controller.
|
|
@@ -4995,6 +4995,11 @@ class w4 {
|
|
|
4995
4995
|
*/
|
|
4996
4996
|
setExternalTokens(e) {
|
|
4997
4997
|
this._externalTokens = !0;
|
|
4998
|
+
try {
|
|
4999
|
+
localStorage.setItem(Gr.deviceId, e.deviceId);
|
|
5000
|
+
} catch (n) {
|
|
5001
|
+
dr.debug("Failed to store deviceId in localStorage:", n);
|
|
5002
|
+
}
|
|
4998
5003
|
const r = Date.now() + e.expiresIn * 1e3;
|
|
4999
5004
|
this._state = {
|
|
5000
5005
|
isLoggedIn: !0,
|
|
@@ -5017,7 +5022,13 @@ class w4 {
|
|
|
5017
5022
|
* @param provider - The dynamic token provider callbacks and user ID.
|
|
5018
5023
|
*/
|
|
5019
5024
|
setDynamicTokenProvider(e) {
|
|
5020
|
-
this._dynamicTokenProvider = e, this._externalTokens = !0
|
|
5025
|
+
this._dynamicTokenProvider = e, this._externalTokens = !0;
|
|
5026
|
+
try {
|
|
5027
|
+
localStorage.setItem(Gr.deviceId, e.deviceId);
|
|
5028
|
+
} catch (r) {
|
|
5029
|
+
dr.debug("Failed to store deviceId in localStorage:", r);
|
|
5030
|
+
}
|
|
5031
|
+
this._state = {
|
|
5021
5032
|
isLoggedIn: !0,
|
|
5022
5033
|
accessToken: "",
|
|
5023
5034
|
refreshToken: "",
|
|
@@ -5037,6 +5048,11 @@ class w4 {
|
|
|
5037
5048
|
setAuthProvider(e) {
|
|
5038
5049
|
var n;
|
|
5039
5050
|
this._authProvider = e, this._externalTokens = !0;
|
|
5051
|
+
try {
|
|
5052
|
+
localStorage.setItem(Gr.deviceId, e.deviceId);
|
|
5053
|
+
} catch (i) {
|
|
5054
|
+
dr.debug("Failed to store deviceId in localStorage:", i);
|
|
5055
|
+
}
|
|
5040
5056
|
const r = e.isLoggedIn();
|
|
5041
5057
|
r ? this._state = {
|
|
5042
5058
|
isLoggedIn: !0,
|
|
@@ -5073,11 +5089,11 @@ class w4 {
|
|
|
5073
5089
|
}
|
|
5074
5090
|
_logout() {
|
|
5075
5091
|
var e;
|
|
5076
|
-
if (
|
|
5077
|
-
|
|
5092
|
+
if (dr.debug("[AUTH_LIFECYCLE] _logout() called"), (e = this._authProvider) != null && e.logout) {
|
|
5093
|
+
dr.debug("[AUTH_LIFECYCLE] _logout() Delegating to auth provider"), this._authProvider.logout().then(() => {
|
|
5078
5094
|
this._performLogout();
|
|
5079
5095
|
}).catch((r) => {
|
|
5080
|
-
|
|
5096
|
+
dr.error("[AUTH_LIFECYCLE] _logout() Auth provider logout failed:", r), this._performLogout();
|
|
5081
5097
|
});
|
|
5082
5098
|
return;
|
|
5083
5099
|
}
|
|
@@ -5093,19 +5109,19 @@ class w4 {
|
|
|
5093
5109
|
* - `_externalTokens`: reset so next login cycle starts clean
|
|
5094
5110
|
*/
|
|
5095
5111
|
_performLogout() {
|
|
5096
|
-
|
|
5112
|
+
dr.debug("[AUTH_LIFECYCLE] _performLogout() called"), this._state = { isLoggedIn: !1 }, this._externalTokens || (dr.debug("[AUTH_LIFECYCLE] _performLogout() Clearing localStorage"), localStorage.removeItem(Gr.tokens)), this._externalTokens = !1, this._dynamicTokenProvider = void 0, this._authProvider = void 0, this._refreshTimer && (dr.debug("[AUTH_LIFECYCLE] _performLogout() Clearing _refreshTimer"), clearTimeout(this._refreshTimer), this._refreshTimer = void 0), this.host.dispatchEvent(
|
|
5097
5113
|
new CustomEvent("rtc-auth-logout", { bubbles: !0, composed: !0 })
|
|
5098
5114
|
), this.host.requestUpdate();
|
|
5099
5115
|
}
|
|
5100
5116
|
/** Load tokens from localStorage */
|
|
5101
5117
|
_loadTokens() {
|
|
5102
|
-
|
|
5118
|
+
dr.debug("[AUTH_LIFECYCLE] _loadTokens() called");
|
|
5103
5119
|
try {
|
|
5104
|
-
const e = localStorage.getItem(
|
|
5105
|
-
if (
|
|
5120
|
+
const e = localStorage.getItem(Gr.tokens);
|
|
5121
|
+
if (dr.debug("[AUTH_LIFECYCLE] _loadTokens() stored tokens:", e ? "exists" : "null"), !e) return;
|
|
5106
5122
|
const r = JSON.parse(e);
|
|
5107
|
-
|
|
5108
|
-
|
|
5123
|
+
dr.debug("[AUTH_LIFECYCLE] _loadTokens() parsed tokens, expiresAt:", r.expiresAt, "now:", Date.now(), "diff:", r.expiresAt - Date.now()), r.expiresAt < Date.now() ? (dr.debug("[AUTH_LIFECYCLE] _loadTokens() Token expired, attempting refresh"), this._executeRefresh(r.refreshToken).then((n) => {
|
|
5124
|
+
dr.debug("[AUTH_LIFECYCLE] _loadTokens() Refresh completed, success:", n.success), n.success ? (this._state = {
|
|
5109
5125
|
isLoggedIn: !0,
|
|
5110
5126
|
accessToken: n.accessToken,
|
|
5111
5127
|
refreshToken: r.refreshToken,
|
|
@@ -5116,10 +5132,10 @@ class w4 {
|
|
|
5116
5132
|
refreshToken: r.refreshToken,
|
|
5117
5133
|
userId: r.userId,
|
|
5118
5134
|
expiresAt: n.expiresAt
|
|
5119
|
-
}), this._scheduleRefresh(n.expiresAt), this.host.requestUpdate(), this._fireLogin()) : (
|
|
5135
|
+
}), this._scheduleRefresh(n.expiresAt), this.host.requestUpdate(), this._fireLogin()) : (dr.debug("[AUTH_LIFECYCLE] _loadTokens() Refresh failed, clearing localStorage"), localStorage.removeItem(Gr.tokens));
|
|
5120
5136
|
}).catch((n) => {
|
|
5121
|
-
|
|
5122
|
-
})) : (
|
|
5137
|
+
dr.error("[AUTH_LIFECYCLE] _loadTokens() Refresh promise rejected:", n), localStorage.removeItem(Gr.tokens);
|
|
5138
|
+
})) : (dr.debug("[AUTH_LIFECYCLE] _loadTokens() Token still valid, setting state and scheduling refresh"), this._state = {
|
|
5123
5139
|
isLoggedIn: !0,
|
|
5124
5140
|
accessToken: r.accessToken,
|
|
5125
5141
|
refreshToken: r.refreshToken,
|
|
@@ -5127,19 +5143,19 @@ class w4 {
|
|
|
5127
5143
|
expiresAt: r.expiresAt
|
|
5128
5144
|
}, this._scheduleRefresh(r.expiresAt), this._fireLogin());
|
|
5129
5145
|
} catch (e) {
|
|
5130
|
-
|
|
5146
|
+
dr.warn("[AUTH_LIFECYCLE] _loadTokens() Failed to load/parse tokens, clearing:", e), localStorage.removeItem(Gr.tokens);
|
|
5131
5147
|
}
|
|
5132
5148
|
}
|
|
5133
5149
|
/** Save tokens to localStorage */
|
|
5134
5150
|
_saveTokens(e) {
|
|
5135
|
-
|
|
5151
|
+
dr.debug("[AUTH_LIFECYCLE] _saveTokens() called, expiresAt:", e.expiresAt), localStorage.setItem(Gr.tokens, JSON.stringify(e));
|
|
5136
5152
|
}
|
|
5137
5153
|
/** Schedule next refresh */
|
|
5138
5154
|
_scheduleRefresh(e) {
|
|
5139
|
-
|
|
5155
|
+
dr.debug("[AUTH_LIFECYCLE] _scheduleRefresh() called with expiresAt:", e), this._refreshTimer && (dr.debug("[AUTH_LIFECYCLE] _scheduleRefresh() Clearing existing timer"), clearTimeout(this._refreshTimer));
|
|
5140
5156
|
const r = Math.max(0, e - Date.now() - Xa.refreshBufferMs);
|
|
5141
|
-
|
|
5142
|
-
|
|
5157
|
+
dr.debug("[AUTH_LIFECYCLE] _scheduleRefresh() Scheduling refresh in", r, "ms"), this._refreshTimer = setTimeout(() => {
|
|
5158
|
+
dr.debug("[AUTH_LIFECYCLE] _scheduleRefresh() Timer fired, calling handleTokenExpired()"), this.handleTokenExpired();
|
|
5143
5159
|
}, r);
|
|
5144
5160
|
}
|
|
5145
5161
|
/**
|
|
@@ -5159,7 +5175,7 @@ class w4 {
|
|
|
5159
5175
|
try {
|
|
5160
5176
|
n = await r.json();
|
|
5161
5177
|
} catch (l) {
|
|
5162
|
-
return
|
|
5178
|
+
return dr.warn("Token refresh response body parse failed:", l), { success: !1 };
|
|
5163
5179
|
}
|
|
5164
5180
|
const i = typeof n.expires_in == "number" ? n.expires_in : 0, s = typeof n.access_token == "string" ? n.access_token : void 0;
|
|
5165
5181
|
if (!s || !i)
|
|
@@ -5171,7 +5187,7 @@ class w4 {
|
|
|
5171
5187
|
expiresAt: o
|
|
5172
5188
|
};
|
|
5173
5189
|
} catch (r) {
|
|
5174
|
-
return
|
|
5190
|
+
return dr.error("Token refresh failed:", r), { success: !1 };
|
|
5175
5191
|
}
|
|
5176
5192
|
}
|
|
5177
5193
|
/**
|
|
@@ -5186,7 +5202,7 @@ class w4 {
|
|
|
5186
5202
|
*/
|
|
5187
5203
|
async handleTokenExpired() {
|
|
5188
5204
|
var e;
|
|
5189
|
-
return
|
|
5205
|
+
return dr.debug("[AUTH_LIFECYCLE] handleTokenExpired() called"), dr.debug("[AUTH_LIFECYCLE] handleTokenExpired() _authProvider?", !!this._authProvider), dr.debug("[AUTH_LIFECYCLE] handleTokenExpired() _dynamicTokenProvider?", !!this._dynamicTokenProvider), dr.debug("[AUTH_LIFECYCLE] handleTokenExpired() _state.refreshToken?", !!this._state.refreshToken), this._authProvider ? this._executeRefreshWithGuard() : (e = this._dynamicTokenProvider) != null && e.refreshToken ? this._executeRefreshWithGuard() : this._state.refreshToken ? this._executeRefreshWithGuard() : (dr.debug("[AUTH_LIFECYCLE] handleTokenExpired() No refresh token, calling _logout()"), this._logout(), "relogin");
|
|
5190
5206
|
}
|
|
5191
5207
|
/**
|
|
5192
5208
|
* Execute refresh with concurrency guard to prevent race conditions.
|
|
@@ -5208,36 +5224,36 @@ class w4 {
|
|
|
5208
5224
|
*/
|
|
5209
5225
|
async _doRefresh() {
|
|
5210
5226
|
var i;
|
|
5211
|
-
if (
|
|
5227
|
+
if (dr.debug("[AUTH_LIFECYCLE] _doRefresh() called"), this._authProvider)
|
|
5212
5228
|
try {
|
|
5213
|
-
|
|
5229
|
+
dr.debug("[AUTH_LIFECYCLE] _doRefresh() Using auth provider");
|
|
5214
5230
|
const s = await this._authProvider.refreshToken(), o = s.expiresIn ? Date.now() + s.expiresIn * 1e3 : 1 / 0;
|
|
5215
5231
|
return this._state = {
|
|
5216
5232
|
...this._state,
|
|
5217
5233
|
accessToken: s.accessToken,
|
|
5218
5234
|
refreshToken: s.refreshToken ?? "",
|
|
5219
5235
|
expiresAt: o
|
|
5220
|
-
}, o !== 1 / 0 && this._scheduleRefresh(o), this.host.requestUpdate(),
|
|
5236
|
+
}, o !== 1 / 0 && this._scheduleRefresh(o), this.host.requestUpdate(), dr.debug("[AUTH_LIFECYCLE] _doRefresh() Auth provider refresh succeeded"), !0;
|
|
5221
5237
|
} catch (s) {
|
|
5222
|
-
return
|
|
5238
|
+
return dr.error("[AUTH_LIFECYCLE] _doRefresh() Auth provider refresh failed:", s), !1;
|
|
5223
5239
|
}
|
|
5224
5240
|
if ((i = this._dynamicTokenProvider) != null && i.refreshToken)
|
|
5225
5241
|
try {
|
|
5226
|
-
|
|
5242
|
+
dr.debug("[AUTH_LIFECYCLE] _doRefresh() Using dynamic token provider");
|
|
5227
5243
|
const s = await this._dynamicTokenProvider.refreshToken(), o = s.expiresIn ? Date.now() + s.expiresIn * 1e3 : 1 / 0;
|
|
5228
5244
|
return this._state = {
|
|
5229
5245
|
...this._state,
|
|
5230
5246
|
accessToken: s.accessToken,
|
|
5231
5247
|
refreshToken: s.refreshToken ?? "",
|
|
5232
5248
|
expiresAt: o
|
|
5233
|
-
}, o !== 1 / 0 && this._scheduleRefresh(o), this.host.requestUpdate(),
|
|
5249
|
+
}, o !== 1 / 0 && this._scheduleRefresh(o), this.host.requestUpdate(), dr.debug("[AUTH_LIFECYCLE] _doRefresh() Dynamic token refresh succeeded"), !0;
|
|
5234
5250
|
} catch (s) {
|
|
5235
|
-
return
|
|
5251
|
+
return dr.error("[AUTH_LIFECYCLE] _doRefresh() Dynamic token refresh failed:", s), !1;
|
|
5236
5252
|
}
|
|
5237
|
-
|
|
5253
|
+
dr.debug("[AUTH_LIFECYCLE] _doRefresh() Using static token mode, refreshToken:", this._state.refreshToken ? "exists" : "missing");
|
|
5238
5254
|
const e = await this._executeRefresh(this._state.refreshToken);
|
|
5239
|
-
if (
|
|
5240
|
-
return
|
|
5255
|
+
if (dr.debug("[AUTH_LIFECYCLE] _doRefresh() Static refresh result:", e.success), !e.success)
|
|
5256
|
+
return dr.debug("[AUTH_LIFECYCLE] _doRefresh() Refresh failed, calling _logout()"), this._logout(), this.host.dispatchEvent(
|
|
5241
5257
|
new CustomEvent("rtc-auth-refresh-failed", { bubbles: !0, composed: !0 })
|
|
5242
5258
|
), !1;
|
|
5243
5259
|
const r = e.accessToken, n = e.expiresAt;
|
|
@@ -5248,19 +5264,19 @@ class w4 {
|
|
|
5248
5264
|
}, !this._externalTokens) {
|
|
5249
5265
|
let s = {};
|
|
5250
5266
|
try {
|
|
5251
|
-
s = JSON.parse(localStorage.getItem(
|
|
5267
|
+
s = JSON.parse(localStorage.getItem(Gr.tokens) || "{}");
|
|
5252
5268
|
} catch (o) {
|
|
5253
|
-
|
|
5269
|
+
dr.debug("[AUTH_LIFECYCLE] _doRefresh() Stored token data corrupted, starting fresh:", o);
|
|
5254
5270
|
}
|
|
5255
|
-
s.accessToken = r, s.expiresAt = n, localStorage.setItem(
|
|
5271
|
+
s.accessToken = r, s.expiresAt = n, localStorage.setItem(Gr.tokens, JSON.stringify(s));
|
|
5256
5272
|
}
|
|
5257
|
-
return this._scheduleRefresh(n), this.host.requestUpdate(),
|
|
5273
|
+
return this._scheduleRefresh(n), this.host.requestUpdate(), dr.debug("[AUTH_LIFECYCLE] _doRefresh() Refresh succeeded, new expiresAt:", n), !0;
|
|
5258
5274
|
}
|
|
5259
5275
|
/** Check if refresh needed when page becomes visible */
|
|
5260
5276
|
_onVisibilityChange() {
|
|
5261
|
-
if (
|
|
5277
|
+
if (dr.debug("[AUTH_LIFECYCLE] _onVisibilityChange() called, visibilityState:", document.visibilityState), document.visibilityState === "visible" && this._state.isLoggedIn) {
|
|
5262
5278
|
const e = this._state.expiresAt && Date.now() > this._state.expiresAt - Xa.refreshBufferMs;
|
|
5263
|
-
|
|
5279
|
+
dr.debug("[AUTH_LIFECYCLE] _onVisibilityChange() isLoggedIn:", this._state.isLoggedIn, "needsRefresh:", e), e && (dr.debug("[AUTH_LIFECYCLE] _onVisibilityChange() Token near expiry, calling handleTokenExpired()"), this.handleTokenExpired());
|
|
5264
5280
|
}
|
|
5265
5281
|
}
|
|
5266
5282
|
/**
|
|
@@ -5280,7 +5296,7 @@ class w4 {
|
|
|
5280
5296
|
*/
|
|
5281
5297
|
_fireLogin() {
|
|
5282
5298
|
var e;
|
|
5283
|
-
|
|
5299
|
+
dr.debug("[AUTH_LIFECYCLE] _fireLogin() called, userId:", this._state.userId), dr.debug("[AUTH_LIFECYCLE] _fireLogin() onLogin callback exists?", !!this.onLogin), this.host.dispatchEvent(
|
|
5284
5300
|
new CustomEvent("rtc-auth-login", {
|
|
5285
5301
|
detail: { userId: this._state.userId },
|
|
5286
5302
|
bubbles: !0,
|
|
@@ -6268,7 +6284,7 @@ class k4 {
|
|
|
6268
6284
|
/** Restore mode from localStorage */
|
|
6269
6285
|
_restoreMode() {
|
|
6270
6286
|
try {
|
|
6271
|
-
const e = localStorage.getItem(
|
|
6287
|
+
const e = localStorage.getItem(Gr.mode);
|
|
6272
6288
|
e && C4(e) && (this._state = { currentMode: e });
|
|
6273
6289
|
} catch (e) {
|
|
6274
6290
|
H_.debug("Failed to restore mode:", e);
|
|
@@ -6277,7 +6293,7 @@ class k4 {
|
|
|
6277
6293
|
_setMode(e) {
|
|
6278
6294
|
this._state = { currentMode: e }, this.host.requestUpdate();
|
|
6279
6295
|
try {
|
|
6280
|
-
localStorage.setItem(
|
|
6296
|
+
localStorage.setItem(Gr.mode, e);
|
|
6281
6297
|
} catch (r) {
|
|
6282
6298
|
H_.debug("Failed to persist mode:", r);
|
|
6283
6299
|
}
|
|
@@ -6968,15 +6984,15 @@ rm.exports;
|
|
|
6968
6984
|
I.interactable.options.resize.square ? (I.resizeAxes === "y" ? W.delta.x = W.delta.y : W.delta.y = W.delta.x, W.axes = "xy") : (W.axes = I.resizeAxes, I.resizeAxes === "x" ? W.delta.y = 0 : I.resizeAxes === "y" && (W.delta.x = 0));
|
|
6969
6985
|
}
|
|
6970
6986
|
}
|
|
6971
|
-
var dn, _n,
|
|
6987
|
+
var dn, _n, Yr = { id: "actions/resize", before: ["actions/drag"], install: function(w) {
|
|
6972
6988
|
var x = w.actions, I = w.browser, W = w.Interactable, ne = w.defaults;
|
|
6973
|
-
|
|
6989
|
+
Yr.cursors = function(fe) {
|
|
6974
6990
|
return fe.isIe9 ? { x: "e-resize", y: "s-resize", xy: "se-resize", top: "n-resize", left: "w-resize", bottom: "s-resize", right: "e-resize", topleft: "se-resize", bottomright: "se-resize", topright: "ne-resize", bottomleft: "ne-resize" } : { x: "ew-resize", y: "ns-resize", xy: "nwse-resize", top: "ns-resize", left: "ew-resize", bottom: "ns-resize", right: "ew-resize", topleft: "nwse-resize", bottomright: "nwse-resize", topright: "nesw-resize", bottomleft: "nesw-resize" };
|
|
6975
|
-
}(I),
|
|
6991
|
+
}(I), Yr.defaultMargin = I.supportsTouch || I.supportsPointerEvent ? 20 : 10, W.prototype.resizable = function(fe) {
|
|
6976
6992
|
return function(Ee, De, We) {
|
|
6977
6993
|
return k.object(De) ? (Ee.options.resize.enabled = De.enabled !== !1, Ee.setPerAction("resize", De), Ee.setOnEvents("resize", De), k.string(De.axis) && /^x$|^y$|^xy$/.test(De.axis) ? Ee.options.resize.axis = De.axis : De.axis === null && (Ee.options.resize.axis = We.defaults.actions.resize.axis), k.bool(De.preserveAspectRatio) ? Ee.options.resize.preserveAspectRatio = De.preserveAspectRatio : k.bool(De.square) && (Ee.options.resize.square = De.square), Ee) : k.bool(De) ? (Ee.options.resize.enabled = De, Ee) : Ee.options.resize;
|
|
6978
6994
|
}(this, fe, w);
|
|
6979
|
-
}, x.map.resize =
|
|
6995
|
+
}, x.map.resize = Yr, x.methodDict.resize = "resizable", ne.actions.resize = Yr.defaults;
|
|
6980
6996
|
}, listeners: { "interactions:new": function(w) {
|
|
6981
6997
|
w.interaction.resizeAxes = "xy";
|
|
6982
6998
|
}, "interactions:action-start": function(w) {
|
|
@@ -7021,17 +7037,17 @@ rm.exports;
|
|
|
7021
7037
|
if (De && De.enabled && (!x.pointerIsDown || !/mouse|pointer/.test(x.pointerType) || fe & De.mouseButtons)) {
|
|
7022
7038
|
if (k.object(De.edges)) {
|
|
7023
7039
|
var We = { left: !1, right: !1, top: !1, bottom: !1 };
|
|
7024
|
-
for (var ct in We) We[ct] = wr(ct, De.edges[ct], Ee, x._latestPointer.eventTarget, W, ne, De.margin ||
|
|
7040
|
+
for (var ct in We) We[ct] = wr(ct, De.edges[ct], Ee, x._latestPointer.eventTarget, W, ne, De.margin || Yr.defaultMargin);
|
|
7025
7041
|
We.left = We.left && !We.right, We.top = We.top && !We.bottom, (We.left || We.right || We.top || We.bottom) && (w.action = { name: "resize", edges: We });
|
|
7026
7042
|
} else {
|
|
7027
|
-
var Xe = De.axis !== "y" && Ee.x > ne.right -
|
|
7043
|
+
var Xe = De.axis !== "y" && Ee.x > ne.right - Yr.defaultMargin, b = De.axis !== "x" && Ee.y > ne.bottom - Yr.defaultMargin;
|
|
7028
7044
|
(Xe || b) && (w.action = { name: "resize", axes: (Xe ? "x" : "") + (b ? "y" : "") });
|
|
7029
7045
|
}
|
|
7030
7046
|
return !w.action && void 0;
|
|
7031
7047
|
}
|
|
7032
7048
|
}
|
|
7033
7049
|
} }, defaults: { square: !1, preserveAspectRatio: !1, axis: "xy", margin: NaN, edges: null, invert: "none" }, cursors: null, getCursor: function(w) {
|
|
7034
|
-
var x = w.edges, I = w.axis, W = w.name, ne =
|
|
7050
|
+
var x = w.edges, I = w.axis, W = w.name, ne = Yr.cursors, fe = null;
|
|
7035
7051
|
if (I) fe = ne[W + I];
|
|
7036
7052
|
else if (x) {
|
|
7037
7053
|
for (var Ee = "", De = 0, We = ["top", "bottom", "left", "right"]; De < We.length; De++) {
|
|
@@ -7043,7 +7059,7 @@ rm.exports;
|
|
|
7043
7059
|
return fe;
|
|
7044
7060
|
}, filterEventType: function(w) {
|
|
7045
7061
|
return w.search("resize") === 0;
|
|
7046
|
-
}, defaultMargin: null }, er =
|
|
7062
|
+
}, defaultMargin: null }, er = Yr, rs = { id: "actions", install: function(w) {
|
|
7047
7063
|
w.usePlugin(yn), w.usePlugin(er), w.usePlugin(L), w.usePlugin(yr);
|
|
7048
7064
|
} }, Cn = 0, pn = { request: function(w) {
|
|
7049
7065
|
return dn(w);
|
|
@@ -7125,7 +7141,7 @@ rm.exports;
|
|
|
7125
7141
|
function ns(w) {
|
|
7126
7142
|
return k.bool(w) ? (this.options.styleCursor = w, this) : w === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
|
|
7127
7143
|
}
|
|
7128
|
-
function
|
|
7144
|
+
function Xr(w) {
|
|
7129
7145
|
return k.func(w) ? (this.options.actionChecker = w, this) : w === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
|
|
7130
7146
|
}
|
|
7131
7147
|
var ni = { id: "auto-start/interactableMethods", install: function(w) {
|
|
@@ -7140,7 +7156,7 @@ rm.exports;
|
|
|
7140
7156
|
return this._backCompatOption("ignoreFrom", I);
|
|
7141
7157
|
}, "Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."), x.prototype.allowFrom = ln(function(I) {
|
|
7142
7158
|
return this._backCompatOption("allowFrom", I);
|
|
7143
|
-
}, "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), x.prototype.actionChecker =
|
|
7159
|
+
}, "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), x.prototype.actionChecker = Xr, x.prototype.styleCursor = ns;
|
|
7144
7160
|
} };
|
|
7145
7161
|
function Jn(w, x, I, W, ne) {
|
|
7146
7162
|
return x.testIgnoreAllow(x.options[w.name], I, W) && x.options[w.name].enabled && Oi(x, I, w, ne) ? w : null;
|
|
@@ -8898,15 +8914,15 @@ class N4 {
|
|
|
8898
8914
|
const rP = Yt("Device");
|
|
8899
8915
|
function nP() {
|
|
8900
8916
|
try {
|
|
8901
|
-
let t = localStorage.getItem(
|
|
8902
|
-
return t || (t = crypto.randomUUID(), localStorage.setItem(
|
|
8917
|
+
let t = localStorage.getItem(Gr.deviceId);
|
|
8918
|
+
return t || (t = crypto.randomUUID(), localStorage.setItem(Gr.deviceId, t)), t;
|
|
8903
8919
|
} catch (t) {
|
|
8904
8920
|
return rP.debug("localStorage unavailable for deviceId, using ephemeral UUID:", t), crypto.randomUUID();
|
|
8905
8921
|
}
|
|
8906
8922
|
}
|
|
8907
8923
|
function D4() {
|
|
8908
8924
|
try {
|
|
8909
|
-
const t = localStorage.getItem(
|
|
8925
|
+
const t = localStorage.getItem(Gr.deviceName);
|
|
8910
8926
|
if (t) return t;
|
|
8911
8927
|
} catch (t) {
|
|
8912
8928
|
rP.debug("localStorage unavailable for reading deviceName:", t);
|
|
@@ -9644,7 +9660,7 @@ var fP = { exports: {} };
|
|
|
9644
9660
|
});
|
|
9645
9661
|
});
|
|
9646
9662
|
}), re.withResolvers) && (Ce.withResolvers = re.withResolvers);
|
|
9647
|
-
var Br = { awaits: 0, echoes: 0, id: 0 }, dn = 0, _n = [],
|
|
9663
|
+
var Br = { awaits: 0, echoes: 0, id: 0 }, dn = 0, _n = [], Yr = 0, er = 0, rs = 0;
|
|
9648
9664
|
function Cn(b, Te, B, U) {
|
|
9649
9665
|
var ee = dt, he = Object.create(ee), Te = (he.parent = ee, he.ref = 0, he.global = !1, he.id = ++rs, Ze.env, he.env = Se ? { Promise: Ce, PromiseProp: { value: Ce, configurable: !0, writable: !0 }, all: Ce.all, race: Ce.race, allSettled: Ce.allSettled, any: Ce.any, resolve: Ce.resolve, reject: Ce.reject } : {}, Te && c(he, Te), ++ee.ref, he.finalize = function() {
|
|
9650
9666
|
--this.parent.ref || this.parent.finalize();
|
|
@@ -9661,7 +9677,7 @@ var fP = { exports: {} };
|
|
|
9661
9677
|
return Br.echoes && b && b.constructor === re ? (pn(), b.then(function(T) {
|
|
9662
9678
|
return sr(), T;
|
|
9663
9679
|
}, function(T) {
|
|
9664
|
-
return sr(),
|
|
9680
|
+
return sr(), Xr(T);
|
|
9665
9681
|
})) : b;
|
|
9666
9682
|
}
|
|
9667
9683
|
function Ei() {
|
|
@@ -9670,7 +9686,7 @@ var fP = { exports: {} };
|
|
|
9670
9686
|
}
|
|
9671
9687
|
function Mn(b, T) {
|
|
9672
9688
|
var B, U, ee = dt;
|
|
9673
|
-
(T ? !Br.echoes ||
|
|
9689
|
+
(T ? !Br.echoes || Yr++ && b === dt : !Yr || --Yr && b === dt) || queueMicrotask(T ? (function(he) {
|
|
9674
9690
|
++er, Br.echoes && --Br.echoes != 0 || (Br.echoes = Br.awaits = Br.id = 0), _n.push(dt), Mn(he, !0);
|
|
9675
9691
|
}).bind(null, b) : Ei), b !== dt && (dt = b, ee === Ze && (Ze.env = $i()), Se) && (B = Ze.env.Promise, U = b.env, ee.global || b.global) && (Object.defineProperty(s, "Promise", U.PromiseProp), B.all = U.all, B.race = U.race, B.resolve = U.resolve, B.reject = U.reject, U.allSettled && (B.allSettled = U.allSettled), U.any) && (B.any = U.any);
|
|
9676
9692
|
}
|
|
@@ -9698,10 +9714,10 @@ var fP = { exports: {} };
|
|
|
9698
9714
|
};
|
|
9699
9715
|
}
|
|
9700
9716
|
function ns(b) {
|
|
9701
|
-
Promise === re && Br.echoes === 0 ?
|
|
9717
|
+
Promise === re && Br.echoes === 0 ? Yr === 0 ? b() : enqueueNativeMicroTask(b) : setTimeout(b, 0);
|
|
9702
9718
|
}
|
|
9703
9719
|
("" + I).indexOf("[native code]") === -1 && (pn = sr = _t);
|
|
9704
|
-
var
|
|
9720
|
+
var Xr = Ce.reject, ni = "", Jn = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", pi = "String expected.", kn = "__dbnames", ii = "readonly", Oi = "readwrite";
|
|
9705
9721
|
function fi(b, T) {
|
|
9706
9722
|
return b ? T ? function() {
|
|
9707
9723
|
return b.apply(this, arguments) && T.apply(this, arguments);
|
|
@@ -9815,7 +9831,7 @@ var fP = { exports: {} };
|
|
|
9815
9831
|
} catch (gt) {
|
|
9816
9832
|
return gt.name === Re.InvalidState && ot.isOpen() && 0 < --ot._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), ot.close({ disableAutoOpen: !1 }), ot.open().then(function() {
|
|
9817
9833
|
return mt(ot, st, ft, ht);
|
|
9818
|
-
})) :
|
|
9834
|
+
})) : Xr(gt);
|
|
9819
9835
|
}
|
|
9820
9836
|
return yt._promise(st, function(gt, vt) {
|
|
9821
9837
|
return Cn(function() {
|
|
@@ -9831,9 +9847,9 @@ var fP = { exports: {} };
|
|
|
9831
9847
|
});
|
|
9832
9848
|
});
|
|
9833
9849
|
}
|
|
9834
|
-
if (ot._state.openComplete) return
|
|
9850
|
+
if (ot._state.openComplete) return Xr(new Qe.DatabaseClosed(ot._state.dbOpenError));
|
|
9835
9851
|
if (!ot._state.isBeingOpened) {
|
|
9836
|
-
if (!ot._state.autoOpen) return
|
|
9852
|
+
if (!ot._state.autoOpen) return Xr(new Qe.DatabaseClosed());
|
|
9837
9853
|
ot.open().catch(_t);
|
|
9838
9854
|
}
|
|
9839
9855
|
return ot._state.dbReadyPromise.then(function() {
|
|
@@ -9841,14 +9857,14 @@ var fP = { exports: {} };
|
|
|
9841
9857
|
});
|
|
9842
9858
|
}(this.db, b, [this.name], Te);
|
|
9843
9859
|
return he && (it._consoleTask = he, it = it.catch(function(mt) {
|
|
9844
|
-
return console.trace(mt),
|
|
9860
|
+
return console.trace(mt), Xr(mt);
|
|
9845
9861
|
})), it;
|
|
9846
9862
|
} finally {
|
|
9847
9863
|
Ne && Tr();
|
|
9848
9864
|
}
|
|
9849
9865
|
}, Ur.prototype.get = function(b, T) {
|
|
9850
9866
|
var B = this;
|
|
9851
|
-
return b && b.constructor === Object ? this.where(b).first(T) : b == null ?
|
|
9867
|
+
return b && b.constructor === Object ? this.where(b).first(T) : b == null ? Xr(new Qe.Type("Invalid argument to Table.get()")) : this._trans("readonly", function(U) {
|
|
9852
9868
|
return B.core.get({ trans: U, key: b }).then(function(ee) {
|
|
9853
9869
|
return B.hook.reading.fire(ee);
|
|
9854
9870
|
});
|
|
@@ -9962,7 +9978,7 @@ var fP = { exports: {} };
|
|
|
9962
9978
|
});
|
|
9963
9979
|
});
|
|
9964
9980
|
}, Ur.prototype.update = function(b, T) {
|
|
9965
|
-
return typeof b != "object" || l(b) ? this.where(":id").equals(b).modify(T) : (b = F(b, this.schema.primKey.keyPath)) === void 0 ?
|
|
9981
|
+
return typeof b != "object" || l(b) ? this.where(":id").equals(b).modify(T) : (b = F(b, this.schema.primKey.keyPath)) === void 0 ? Xr(new Qe.InvalidArgument("Given object does not contain its primary key")) : this.where(":id").equals(b).modify(T);
|
|
9966
9982
|
}, Ur.prototype.put = function(b, T) {
|
|
9967
9983
|
var B = this, U = this.schema.primKey, ee = U.auto, he = U.keyPath, Te = b;
|
|
9968
9984
|
return he && ee && (Te = Ui(he)(b)), this._trans("readwrite", function(Ne) {
|
|
@@ -10172,10 +10188,10 @@ var fP = { exports: {} };
|
|
|
10172
10188
|
}
|
|
10173
10189
|
Ir.prototype._read = function(b, T) {
|
|
10174
10190
|
var B = this._ctx;
|
|
10175
|
-
return B.error ? B.table._trans(null,
|
|
10191
|
+
return B.error ? B.table._trans(null, Xr.bind(null, B.error)) : B.table._trans("readonly", b).then(T);
|
|
10176
10192
|
}, Ir.prototype._write = function(b) {
|
|
10177
10193
|
var T = this._ctx;
|
|
10178
|
-
return T.error ? T.table._trans(null,
|
|
10194
|
+
return T.error ? T.table._trans(null, Xr.bind(null, T.error)) : T.table._trans("readwrite", b, "locked");
|
|
10179
10195
|
}, Ir.prototype._addAlgorithm = function(b) {
|
|
10180
10196
|
var T = this._ctx;
|
|
10181
10197
|
T.algorithm = fi(T.algorithm, b);
|
|
@@ -10340,21 +10356,21 @@ var fP = { exports: {} };
|
|
|
10340
10356
|
return (yt ? Promise.resolve([]) : Te.getMany({ trans: U, keys: Rt, cache: "immutable" })).then(function(jt) {
|
|
10341
10357
|
var Wt = [], Ut = [], tr = Ne ? [] : null, zt = yt ? Rt : [];
|
|
10342
10358
|
if (!yt) for (var nr = 0; nr < It; ++nr) {
|
|
10343
|
-
var Ft = jt[nr],
|
|
10344
|
-
he.call(
|
|
10359
|
+
var Ft = jt[nr], hr = { value: pe(Ft), primKey: gt[Tt + nr] };
|
|
10360
|
+
he.call(hr, hr.value, hr) !== !1 && (hr.value == null ? zt.push(gt[Tt + nr]) : Ne || Sr(it(Ft), it(hr.value)) === 0 ? (Ut.push(hr.value), Ne && tr.push(gt[Tt + nr])) : (zt.push(gt[Tt + nr]), Wt.push(hr.value)));
|
|
10345
10361
|
}
|
|
10346
|
-
return Promise.resolve(0 < Wt.length && Te.mutate({ trans: U, type: "add", values: Wt }).then(function(
|
|
10347
|
-
for (var xr in
|
|
10348
|
-
ee(Wt.length,
|
|
10362
|
+
return Promise.resolve(0 < Wt.length && Te.mutate({ trans: U, type: "add", values: Wt }).then(function(mr) {
|
|
10363
|
+
for (var xr in mr.failures) zt.splice(parseInt(xr), 1);
|
|
10364
|
+
ee(Wt.length, mr);
|
|
10349
10365
|
})).then(function() {
|
|
10350
|
-
return (0 < Ut.length || Et && typeof b == "object") && Te.mutate({ trans: U, type: "put", keys: tr, values: Ut, criteria: Et, changeSpec: typeof b != "function" && b, isAdditionalChunk: 0 < Tt }).then(function(
|
|
10351
|
-
return ee(Ut.length,
|
|
10366
|
+
return (0 < Ut.length || Et && typeof b == "object") && Te.mutate({ trans: U, type: "put", keys: tr, values: Ut, criteria: Et, changeSpec: typeof b != "function" && b, isAdditionalChunk: 0 < Tt }).then(function(mr) {
|
|
10367
|
+
return ee(Ut.length, mr);
|
|
10352
10368
|
});
|
|
10353
10369
|
}).then(function() {
|
|
10354
|
-
return (0 < zt.length || Et && yt) && Te.mutate({ trans: U, type: "delete", keys: zt, criteria: Et, isAdditionalChunk: 0 < Tt }).then(function(
|
|
10355
|
-
return hi(B.table, zt,
|
|
10356
|
-
}).then(function(
|
|
10357
|
-
return ee(zt.length,
|
|
10370
|
+
return (0 < zt.length || Et && yt) && Te.mutate({ trans: U, type: "delete", keys: zt, criteria: Et, isAdditionalChunk: 0 < Tt }).then(function(mr) {
|
|
10371
|
+
return hi(B.table, zt, mr);
|
|
10372
|
+
}).then(function(mr) {
|
|
10373
|
+
return ee(zt.length, mr);
|
|
10358
10374
|
});
|
|
10359
10375
|
}).then(function() {
|
|
10360
10376
|
return gt.length > Tt + It && vt(Tt + mt);
|
|
@@ -10441,13 +10457,13 @@ var fP = { exports: {} };
|
|
|
10441
10457
|
var It = he(Tt);
|
|
10442
10458
|
if (T(It, it, yt)) return !0;
|
|
10443
10459
|
for (var Rt = null, jt = yt; jt < st; ++jt) {
|
|
10444
|
-
var Wt = ((Ut, tr, zt, nr, Ft,
|
|
10445
|
-
for (var
|
|
10460
|
+
var Wt = ((Ut, tr, zt, nr, Ft, hr) => {
|
|
10461
|
+
for (var mr = Math.min(Ut.length, nr.length), xr = -1, Or = 0; Or < mr; ++Or) {
|
|
10446
10462
|
var z = tr[Or];
|
|
10447
10463
|
if (z !== nr[Or]) return Ft(Ut[Or], zt[Or]) < 0 ? Ut.substr(0, Or) + zt[Or] + zt.substr(Or + 1) : Ft(Ut[Or], nr[Or]) < 0 ? Ut.substr(0, Or) + nr[Or] + zt.substr(Or + 1) : 0 <= xr ? Ut.substr(0, xr) + tr[xr] + zt.substr(xr + 1) : null;
|
|
10448
10464
|
Ft(Ut[Or], z) < 0 && (xr = Or);
|
|
10449
10465
|
}
|
|
10450
|
-
return
|
|
10466
|
+
return mr < nr.length && hr === "next" ? Ut + zt.substr(Ut.length) : mr < Ut.length && hr === "prev" ? Ut.substr(0, zt.length) : xr < 0 ? null : Ut.substr(0, xr) + nr[xr] + zt.substr(xr + 1);
|
|
10451
10467
|
})(Tt, It, Ne[jt], it[jt], Te, mt);
|
|
10452
10468
|
Wt === null && Rt === null ? yt = jt + 1 : (Rt === null || 0 < Te(Rt, Wt)) && (Rt = Wt);
|
|
10453
10469
|
}
|
|
@@ -10647,7 +10663,7 @@ var fP = { exports: {} };
|
|
|
10647
10663
|
return this;
|
|
10648
10664
|
}, En.prototype._promise = function(b, T, B) {
|
|
10649
10665
|
var U, ee = this;
|
|
10650
|
-
return b === "readwrite" && this.mode !== "readwrite" ?
|
|
10666
|
+
return b === "readwrite" && this.mode !== "readwrite" ? Xr(new Qe.ReadOnly("Transaction is readonly")) : this.active ? this._locked() ? new Ce(function(he, Te) {
|
|
10651
10667
|
ee._blockedFuncs.push([function() {
|
|
10652
10668
|
ee._promise(b, T, B).then(he, Te);
|
|
10653
10669
|
}, dt]);
|
|
@@ -10663,7 +10679,7 @@ var fP = { exports: {} };
|
|
|
10663
10679
|
}) : ((U = new Ce(function(he, Te) {
|
|
10664
10680
|
var Ne = T(he, Te, ee);
|
|
10665
10681
|
Ne && Ne.then && Ne.then(he, Te);
|
|
10666
|
-
}))._lib = !0, U) :
|
|
10682
|
+
}))._lib = !0, U) : Xr(new Qe.TransactionInactive());
|
|
10667
10683
|
}, En.prototype._root = function() {
|
|
10668
10684
|
return this.parent ? this.parent._root() : this;
|
|
10669
10685
|
}, En.prototype.waitFor = function(b) {
|
|
@@ -10751,10 +10767,10 @@ var fP = { exports: {} };
|
|
|
10751
10767
|
Wt = wr(Wt);
|
|
10752
10768
|
var tr = Et.objectStore(gt), zt = tr.keyPath == null, nr = Tt === "put" || Tt === "add";
|
|
10753
10769
|
if (!nr && Tt !== "delete" && Tt !== "deleteRange") throw new Error("Invalid operation type: " + Tt);
|
|
10754
|
-
var Ft,
|
|
10770
|
+
var Ft, hr = (It || Rt || { length: 1 }).length;
|
|
10755
10771
|
if (It && Rt && It.length !== Rt.length) throw new Error("Given keys array must have same length as given values array.");
|
|
10756
|
-
if (
|
|
10757
|
-
function
|
|
10772
|
+
if (hr === 0) return Wt({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
|
|
10773
|
+
function mr(wt) {
|
|
10758
10774
|
++z, Rn(wt);
|
|
10759
10775
|
}
|
|
10760
10776
|
var xr = [], Or = [], z = 0;
|
|
@@ -10763,18 +10779,18 @@ var fP = { exports: {} };
|
|
|
10763
10779
|
jt.type === 3 ? xr.push(Ft = tr.clear()) : xr.push(Ft = tr.delete(U(jt)));
|
|
10764
10780
|
} else {
|
|
10765
10781
|
var zt = nr ? zt ? [Rt, It] : [Rt, null] : [It, null], $ = zt[0], H = zt[1];
|
|
10766
|
-
if (nr) for (var ye = 0; ye <
|
|
10767
|
-
else for (ye = 0; ye <
|
|
10782
|
+
if (nr) for (var ye = 0; ye < hr; ++ye) xr.push(Ft = H && H[ye] !== void 0 ? tr[Tt]($[ye], H[ye]) : tr[Tt]($[ye])), Ft.onerror = mr;
|
|
10783
|
+
else for (ye = 0; ye < hr; ++ye) xr.push(Ft = tr[Tt]($[ye])), Ft.onerror = mr;
|
|
10768
10784
|
}
|
|
10769
10785
|
function Ke(wt) {
|
|
10770
|
-
wt = wt.target.result, xr.forEach(function(Xt,
|
|
10771
|
-
return Xt.error != null && (Or[
|
|
10786
|
+
wt = wt.target.result, xr.forEach(function(Xt, Zr) {
|
|
10787
|
+
return Xt.error != null && (Or[Zr] = Xt.error);
|
|
10772
10788
|
}), Wt({ numFailures: z, failures: Or, results: Tt === "delete" ? It : xr.map(function(Xt) {
|
|
10773
10789
|
return Xt.result;
|
|
10774
10790
|
}), lastResult: wt });
|
|
10775
10791
|
}
|
|
10776
10792
|
Ft.onerror = function(wt) {
|
|
10777
|
-
|
|
10793
|
+
mr(wt), Ke(wt);
|
|
10778
10794
|
}, Ft.onsuccess = Ke;
|
|
10779
10795
|
});
|
|
10780
10796
|
}, getMany: function(vt) {
|
|
@@ -10783,7 +10799,7 @@ var fP = { exports: {} };
|
|
|
10783
10799
|
It = wr(It);
|
|
10784
10800
|
for (var jt, Wt = Et.objectStore(gt), Ut = Tt.length, tr = new Array(Ut), zt = 0, nr = 0, Ft = function(xr) {
|
|
10785
10801
|
xr = xr.target, tr[xr._pos] = xr.result, ++nr === zt && It(tr);
|
|
10786
|
-
},
|
|
10802
|
+
}, hr = wn(Rt), mr = 0; mr < Ut; ++mr) Tt[mr] != null && ((jt = Wt.get(Tt[mr]))._pos = mr, jt.onsuccess = Ft, jt.onerror = hr, ++zt);
|
|
10787
10803
|
zt === 0 && It(tr);
|
|
10788
10804
|
});
|
|
10789
10805
|
}, get: function(vt) {
|
|
@@ -10798,13 +10814,13 @@ var fP = { exports: {} };
|
|
|
10798
10814
|
}, query: (ht = it, yt = mt, function(vt) {
|
|
10799
10815
|
return new Promise(function(Et, Tt) {
|
|
10800
10816
|
Et = wr(Et);
|
|
10801
|
-
var It, Rt, jt, Wt,
|
|
10817
|
+
var It, Rt, jt, Wt, hr = vt.trans, Ut = vt.values, tr = vt.limit, Ft = vt.query, zt = (zt = vt.direction) != null ? zt : "next", nr = tr === 1 / 0 ? void 0 : tr, mr = Ft.index, Ft = Ft.range, hr = hr.objectStore(gt), hr = mr.isPrimaryKey ? hr : hr.index(mr.name), mr = U(Ft);
|
|
10802
10818
|
if (tr === 0) return Et({ result: [] });
|
|
10803
|
-
yt ? (Ft = { query:
|
|
10819
|
+
yt ? (Ft = { query: mr, count: nr, direction: zt }, (It = Ut ? hr.getAll(Ft) : hr.getAllKeys(Ft)).onsuccess = function(xr) {
|
|
10804
10820
|
return Et({ result: xr.target.result });
|
|
10805
|
-
}, It.onerror = wn(Tt)) : ht && zt === "next" ? ((It = Ut ?
|
|
10821
|
+
}, It.onerror = wn(Tt)) : ht && zt === "next" ? ((It = Ut ? hr.getAll(mr, nr) : hr.getAllKeys(mr, nr)).onsuccess = function(xr) {
|
|
10806
10822
|
return Et({ result: xr.target.result });
|
|
10807
|
-
}, It.onerror = wn(Tt)) : (Rt = 0, jt = !Ut && "openKeyCursor" in
|
|
10823
|
+
}, It.onerror = wn(Tt)) : (Rt = 0, jt = !Ut && "openKeyCursor" in hr ? hr.openKeyCursor(mr, zt) : hr.openCursor(mr, zt), Wt = [], jt.onsuccess = function() {
|
|
10808
10824
|
var xr = jt.result;
|
|
10809
10825
|
return !xr || (Wt.push(Ut ? xr.value : xr.primaryKey), ++Rt === tr) ? Et({ result: Wt }) : void xr.continue();
|
|
10810
10826
|
}, jt.onerror = wn(Tt));
|
|
@@ -10814,9 +10830,9 @@ var fP = { exports: {} };
|
|
|
10814
10830
|
return new Promise(function(Wt, Ut) {
|
|
10815
10831
|
Wt = wr(Wt);
|
|
10816
10832
|
var nr = It.index, tr = It.range, zt = Et.objectStore(gt), zt = nr.isPrimaryKey ? zt : zt.index(nr.name), nr = Rt ? jt ? "prevunique" : "prev" : jt ? "nextunique" : "next", Ft = !Tt && "openKeyCursor" in zt ? zt.openKeyCursor(U(tr), nr) : zt.openCursor(U(tr), nr);
|
|
10817
|
-
Ft.onerror = wn(Ut), Ft.onsuccess = wr(function(
|
|
10818
|
-
var
|
|
10819
|
-
$ ? ($.___id = ++Ys, $.done = !1,
|
|
10833
|
+
Ft.onerror = wn(Ut), Ft.onsuccess = wr(function(hr) {
|
|
10834
|
+
var mr, xr, Or, z, $ = Ft.result;
|
|
10835
|
+
$ ? ($.___id = ++Ys, $.done = !1, mr = $.continue.bind($), xr = (xr = $.continuePrimaryKey) && xr.bind($), Or = $.advance.bind($), z = function() {
|
|
10820
10836
|
throw new Error("Cursor not stopped");
|
|
10821
10837
|
}, $.trans = Et, $.stop = $.continue = $.continuePrimaryKey = $.advance = function() {
|
|
10822
10838
|
throw new Error("Cursor not started");
|
|
@@ -10839,13 +10855,13 @@ var fP = { exports: {} };
|
|
|
10839
10855
|
}, $.stop();
|
|
10840
10856
|
}
|
|
10841
10857
|
var Ke = new Promise(function(wt, Xt) {
|
|
10842
|
-
wt = wr(wt), Ft.onerror = wn(Xt), $.fail = Xt, $.stop = function(
|
|
10843
|
-
$.stop = $.continue = $.continuePrimaryKey = $.advance = z, wt(
|
|
10858
|
+
wt = wr(wt), Ft.onerror = wn(Xt), $.fail = Xt, $.stop = function(Zr) {
|
|
10859
|
+
$.stop = $.continue = $.continuePrimaryKey = $.advance = z, wt(Zr);
|
|
10844
10860
|
};
|
|
10845
10861
|
});
|
|
10846
10862
|
return Ft.onsuccess = wr(function(wt) {
|
|
10847
10863
|
Ft.onsuccess = ye, ye();
|
|
10848
|
-
}), $.continue =
|
|
10864
|
+
}), $.continue = mr, $.continuePrimaryKey = xr, $.advance = Or, ye(), Ke;
|
|
10849
10865
|
}, Wt($)) : Wt(null);
|
|
10850
10866
|
}, Ut);
|
|
10851
10867
|
});
|
|
@@ -10933,12 +10949,12 @@ var fP = { exports: {} };
|
|
|
10933
10949
|
}), tr.change.forEach(function(nr) {
|
|
10934
10950
|
if (nr.recreate) throw new Qe.Upgrade("Not yet support for changing primary key");
|
|
10935
10951
|
var Ft = yt.objectStore(nr.name);
|
|
10936
|
-
nr.add.forEach(function(
|
|
10937
|
-
return Ki(Ft,
|
|
10938
|
-
}), nr.change.forEach(function(
|
|
10939
|
-
Ft.deleteIndex(
|
|
10940
|
-
}), nr.del.forEach(function(
|
|
10941
|
-
return Ft.deleteIndex(
|
|
10952
|
+
nr.add.forEach(function(hr) {
|
|
10953
|
+
return Ki(Ft, hr);
|
|
10954
|
+
}), nr.change.forEach(function(hr) {
|
|
10955
|
+
Ft.deleteIndex(hr.name), Ki(Ft, hr);
|
|
10956
|
+
}), nr.del.forEach(function(hr) {
|
|
10957
|
+
return Ft.deleteIndex(hr);
|
|
10942
10958
|
});
|
|
10943
10959
|
}), Tt._cfg.contentUpgrade);
|
|
10944
10960
|
if (zt && Tt._cfg.version > ft) return Hi(st, yt), ht._memoizedTables = {}, It = q(Ut), tr.del.forEach(function(nr) {
|
|
@@ -11239,7 +11255,7 @@ var fP = { exports: {} };
|
|
|
11239
11255
|
function at(b) {
|
|
11240
11256
|
var T = b._state, B = b._deps.indexedDB;
|
|
11241
11257
|
if (T.isBeingOpened || b.idbdb) return T.dbReadyPromise.then(function() {
|
|
11242
|
-
return T.dbOpenError ?
|
|
11258
|
+
return T.dbOpenError ? Xr(T.dbOpenError) : b;
|
|
11243
11259
|
});
|
|
11244
11260
|
T.isBeingOpened = !0, T.dbOpenError = null, T.openComplete = !1;
|
|
11245
11261
|
var U = T.openCanceller, ee = Math.round(10 * b.verno), he = !1;
|
|
@@ -11310,7 +11326,7 @@ var fP = { exports: {} };
|
|
|
11310
11326
|
ot && ot.abort();
|
|
11311
11327
|
} catch {
|
|
11312
11328
|
}
|
|
11313
|
-
return U === T.openCanceller && b._close(),
|
|
11329
|
+
return U === T.openCanceller && b._close(), Xr(ft);
|
|
11314
11330
|
}).finally(function() {
|
|
11315
11331
|
T.openComplete = !0, mt();
|
|
11316
11332
|
}).then(function() {
|
|
@@ -11516,29 +11532,29 @@ var fP = { exports: {} };
|
|
|
11516
11532
|
return Ft;
|
|
11517
11533
|
}), yt.values] : [], tr = zt[0], zt = zt[1], nr = yt.trans._cache;
|
|
11518
11534
|
return l(tr) ? (jt.addKeys(tr), (Ut = Ut === "delete" || tr.length === zt.length ? ur(tr, nr) : null) || Wt.addKeys(tr), (Ut || zt) && (vt = gt, Et = Ut, Tt = zt, Te.indexes.forEach(function(Ft) {
|
|
11519
|
-
var
|
|
11520
|
-
function
|
|
11535
|
+
var hr = vt(Ft.name || "");
|
|
11536
|
+
function mr(Or) {
|
|
11521
11537
|
return Or != null ? Ft.extractKey(Or) : null;
|
|
11522
11538
|
}
|
|
11523
11539
|
function xr(Or) {
|
|
11524
11540
|
Ft.multiEntry && l(Or) ? Or.forEach(function(z) {
|
|
11525
|
-
return
|
|
11526
|
-
}) :
|
|
11541
|
+
return hr.addKey(z);
|
|
11542
|
+
}) : hr.addKey(Or);
|
|
11527
11543
|
}
|
|
11528
11544
|
(Et || Tt).forEach(function(Or, H) {
|
|
11529
|
-
var $ = Et &&
|
|
11545
|
+
var $ = Et && mr(Et[H]), H = Tt && mr(Tt[H]);
|
|
11530
11546
|
Sr($, H) !== 0 && ($ != null && xr($), H != null) && xr(H);
|
|
11531
11547
|
});
|
|
11532
11548
|
}))) : tr ? (zt = { from: (nr = tr.lower) != null ? nr : b.MIN_KEY, to: (Ut = tr.upper) != null ? Ut : b.MAX_KEY }, Wt.add(zt), jt.add(zt)) : (jt.add(B), Wt.add(B), Te.indexes.forEach(function(Ft) {
|
|
11533
11549
|
return gt(Ft.name).add(B);
|
|
11534
11550
|
})), he.mutate(yt).then(function(Ft) {
|
|
11535
|
-
return !tr || yt.type !== "add" && yt.type !== "put" || (jt.addKeys(Ft.results), st && st.forEach(function(
|
|
11536
|
-
for (var
|
|
11537
|
-
return
|
|
11538
|
-
}), xr =
|
|
11551
|
+
return !tr || yt.type !== "add" && yt.type !== "put" || (jt.addKeys(Ft.results), st && st.forEach(function(hr) {
|
|
11552
|
+
for (var mr = yt.values.map(function($) {
|
|
11553
|
+
return hr.extractKey($);
|
|
11554
|
+
}), xr = hr.keyPath.findIndex(function($) {
|
|
11539
11555
|
return $ === Ne.keyPath;
|
|
11540
|
-
}), Or = 0, z = Ft.results.length; Or < z; ++Or)
|
|
11541
|
-
gt(
|
|
11556
|
+
}), Or = 0, z = Ft.results.length; Or < z; ++Or) mr[Or][xr] = Ft.results[Or];
|
|
11557
|
+
gt(hr.name).addKeys(mr);
|
|
11542
11558
|
})), It.mutatedParts = a(It.mutatedParts || {}, Rt), Ft;
|
|
11543
11559
|
});
|
|
11544
11560
|
} }), ht = { get: function(yt) {
|
|
@@ -11556,20 +11572,20 @@ var fP = { exports: {} };
|
|
|
11556
11572
|
if ((yt === "query" && Wt.isPrimaryKey && !gt.values ? jt : vt(Wt.name || "")).add(Et), !Wt.isPrimaryKey) {
|
|
11557
11573
|
if (yt !== "count") return It = yt === "query" && ot && gt.values && he.query(n(n({}, gt), { values: !1 })), he[yt].apply(this, arguments).then(function(zt) {
|
|
11558
11574
|
if (yt === "query") {
|
|
11559
|
-
if (ot && gt.values) return It.then(function(
|
|
11560
|
-
return
|
|
11575
|
+
if (ot && gt.values) return It.then(function(mr) {
|
|
11576
|
+
return mr = mr.result, Rt.addKeys(mr), zt;
|
|
11561
11577
|
});
|
|
11562
11578
|
var nr = gt.values ? zt.result.map(mt) : zt.result;
|
|
11563
11579
|
(gt.values ? Rt : jt).addKeys(nr);
|
|
11564
11580
|
} else {
|
|
11565
|
-
var Ft,
|
|
11566
|
-
if (yt === "openCursor") return
|
|
11581
|
+
var Ft, hr;
|
|
11582
|
+
if (yt === "openCursor") return hr = gt.values, (Ft = zt) && Object.create(Ft, { key: { get: function() {
|
|
11567
11583
|
return jt.addKey(Ft.primaryKey), Ft.key;
|
|
11568
11584
|
} }, primaryKey: { get: function() {
|
|
11569
|
-
var
|
|
11570
|
-
return jt.addKey(
|
|
11585
|
+
var mr = Ft.primaryKey;
|
|
11586
|
+
return jt.addKey(mr), mr;
|
|
11571
11587
|
} }, value: { get: function() {
|
|
11572
|
-
return
|
|
11588
|
+
return hr && Rt.addKey(Ft.primaryKey), Ft.value;
|
|
11573
11589
|
} } });
|
|
11574
11590
|
}
|
|
11575
11591
|
return zt;
|
|
@@ -11889,7 +11905,7 @@ var fP = { exports: {} };
|
|
|
11889
11905
|
} catch (mt) {
|
|
11890
11906
|
return Te ? Te._promise(null, function(ot, st) {
|
|
11891
11907
|
st(mt);
|
|
11892
|
-
}) :
|
|
11908
|
+
}) : Xr(mt);
|
|
11893
11909
|
}
|
|
11894
11910
|
var it = (function mt(ot, st, ft, ht, yt) {
|
|
11895
11911
|
return Ce.resolve().then(function() {
|
|
@@ -11900,14 +11916,14 @@ var fP = { exports: {} };
|
|
|
11900
11916
|
} catch (It) {
|
|
11901
11917
|
return It.name === Re.InvalidState && ot.isOpen() && 0 < --ot._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), ot.close({ disableAutoOpen: !1 }), ot.open().then(function() {
|
|
11902
11918
|
return mt(ot, st, ft, null, yt);
|
|
11903
|
-
})) :
|
|
11919
|
+
})) : Xr(It);
|
|
11904
11920
|
}
|
|
11905
11921
|
var vt, Et = ge(yt), Tt = (Et && pn(), Ce.follow(function() {
|
|
11906
11922
|
var It;
|
|
11907
11923
|
(vt = yt.call(gt, gt)) && (Et ? (It = sr.bind(null, null), vt.then(It, It)) : typeof vt.next == "function" && typeof vt.throw == "function" && (vt = At(vt)));
|
|
11908
11924
|
}, Tt));
|
|
11909
11925
|
return (vt && typeof vt.then == "function" ? Ce.resolve(vt).then(function(It) {
|
|
11910
|
-
return gt.active ? It :
|
|
11926
|
+
return gt.active ? It : Xr(new Qe.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
|
|
11911
11927
|
}) : Tt.then(function() {
|
|
11912
11928
|
return vt;
|
|
11913
11929
|
})).then(function(It) {
|
|
@@ -11915,7 +11931,7 @@ var fP = { exports: {} };
|
|
|
11915
11931
|
return It;
|
|
11916
11932
|
});
|
|
11917
11933
|
}).catch(function(It) {
|
|
11918
|
-
return gt._reject(It),
|
|
11934
|
+
return gt._reject(It), Xr(It);
|
|
11919
11935
|
});
|
|
11920
11936
|
});
|
|
11921
11937
|
}).bind(null, this, U, ee, Te, B);
|
|
@@ -11971,7 +11987,7 @@ var fP = { exports: {} };
|
|
|
11971
11987
|
vt.active = !1, vt.on.complete.fire();
|
|
11972
11988
|
}, function(Et) {
|
|
11973
11989
|
var Tt = vt.active;
|
|
11974
|
-
return vt.active = !1, vt.on.error.fire(Et), vt.parent ? vt.parent._reject(Et) : Tt && vt.idbtrans && vt.idbtrans.abort(),
|
|
11990
|
+
return vt.active = !1, vt.on.error.fire(Et), vt.parent ? vt.parent._reject(Et) : Tt && vt.idbtrans && vt.idbtrans.abort(), Xr(Et);
|
|
11975
11991
|
});
|
|
11976
11992
|
})), this.Version = (he = this, Ln(_o.prototype, function(st) {
|
|
11977
11993
|
this.db = he, this._cfg = { version: st, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
|
|
@@ -12092,7 +12108,7 @@ var fP = { exports: {} };
|
|
|
12092
12108
|
});
|
|
12093
12109
|
}) : Os(B, T).toCollection().primaryKeys()).then(b);
|
|
12094
12110
|
} catch {
|
|
12095
|
-
return
|
|
12111
|
+
return Xr(new Qe.MissingAPI());
|
|
12096
12112
|
}
|
|
12097
12113
|
var T, B;
|
|
12098
12114
|
}, defineClass: function() {
|
|
@@ -12107,7 +12123,7 @@ var fP = { exports: {} };
|
|
|
12107
12123
|
var T = At(b.apply(this, arguments));
|
|
12108
12124
|
return T && typeof T.then == "function" ? T : Ce.resolve(T);
|
|
12109
12125
|
} catch (B) {
|
|
12110
|
-
return
|
|
12126
|
+
return Xr(B);
|
|
12111
12127
|
}
|
|
12112
12128
|
};
|
|
12113
12129
|
}, spawn: function(b, T, B) {
|
|
@@ -12115,7 +12131,7 @@ var fP = { exports: {} };
|
|
|
12115
12131
|
var U = At(b.apply(B, T || []));
|
|
12116
12132
|
return U && typeof U.then == "function" ? U : Ce.resolve(U);
|
|
12117
12133
|
} catch (ee) {
|
|
12118
|
-
return
|
|
12134
|
+
return Xr(ee);
|
|
12119
12135
|
}
|
|
12120
12136
|
}, currentTransaction: { get: function() {
|
|
12121
12137
|
return dt.trans || null;
|
|
@@ -12858,7 +12874,7 @@ function Gn() {
|
|
|
12858
12874
|
if (X_) return Ve;
|
|
12859
12875
|
X_ = 1, Object.defineProperty(Ve, "__esModule", {
|
|
12860
12876
|
value: !0
|
|
12861
|
-
}), Ve.isAccessor = pg, Ve.isAnyTypeAnnotation = _n, Ve.isArgumentPlaceholder = Mi, Ve.isArrayExpression = r, Ve.isArrayPattern = nt, Ve.isArrayTypeAnnotation =
|
|
12877
|
+
}), Ve.isAccessor = pg, Ve.isAnyTypeAnnotation = _n, Ve.isArgumentPlaceholder = Mi, Ve.isArrayExpression = r, Ve.isArrayPattern = nt, Ve.isArrayTypeAnnotation = Yr, Ve.isArrowFunctionExpression = et, Ve.isAssignmentExpression = n, Ve.isAssignmentPattern = Ge, Ve.isAwaitExpression = Ie, Ve.isBigIntLiteral = Nt, Ve.isBinary = Ft, Ve.isBinaryExpression = i, Ve.isBindExpression = Xs, Ve.isBlock = xr, Ve.isBlockParent = mr, Ve.isBlockStatement = c, Ve.isBooleanLiteral = pe, Ve.isBooleanLiteralTypeAnnotation = rs, Ve.isBooleanTypeAnnotation = er, Ve.isBreakStatement = p, Ve.isCallExpression = f, Ve.isCatchClause = m, Ve.isClass = cg, Ve.isClassAccessorProperty = Tr, Ve.isClassBody = Dt, Ve.isClassDeclaration = je, Ve.isClassExpression = Ot, Ve.isClassImplements = pn, Ve.isClassMethod = tt, Ve.isClassPrivateMethod = yn, Ve.isClassPrivateProperty = zr, Ve.isClassProperty = yr, Ve.isCompletionStatement = $, Ve.isConditional = H, Ve.isConditionalExpression = y, Ve.isContinueStatement = _, Ve.isDebuggerStatement = N, Ve.isDecimalLiteral = Ns, Ve.isDeclaration = Jy, Ve.isDeclareClass = sr, Ve.isDeclareExportAllDeclaration = ni, Ve.isDeclareExportDeclaration = Xr, Ve.isDeclareFunction = Tn, Ve.isDeclareInterface = Ei, Ve.isDeclareModule = Mn, Ve.isDeclareModuleExports = $i, Ve.isDeclareOpaqueType = ri, Ve.isDeclareTypeAlias = ln, Ve.isDeclareVariable = ns, Ve.isDeclaredPredicate = Jn, Ve.isDecorator = _o, Ve.isDirective = o, Ve.isDirectiveLiteral = l, Ve.isDoExpression = vi, Ve.isDoWhileStatement = A, Ve.isEmptyStatement = C, Ve.isEmptyTypeAnnotation = ss, Ve.isEnumBody = vg, Ve.isEnumBooleanBody = wn, Ve.isEnumBooleanMember = Fn, Ve.isEnumDeclaration = sn, Ve.isEnumDefaultedMember = us, Ve.isEnumMember = _g, Ve.isEnumNumberBody = Rn, Ve.isEnumNumberMember = bo, Ve.isEnumStringBody = Di, Ve.isEnumStringMember = En, Ve.isEnumSymbolBody = cs, Ve.isExistsTypeAnnotation = pi, Ve.isExportAllDeclaration = Me, Ve.isExportDeclaration = ug, Ve.isExportDefaultDeclaration = me, Ve.isExportDefaultSpecifier = Gi, Ve.isExportNamedDeclaration = ue, Ve.isExportNamespaceSpecifier = Mt, Ve.isExportSpecifier = be, Ve.isExpression = nr, Ve.isExpressionStatement = O, Ve.isExpressionWrapper = wt, Ve.isFile = S, Ve.isFlow = hg, Ve.isFlowBaseAnnotation = yg, Ve.isFlowDeclaration = gg, Ve.isFlowPredicate = bg, Ve.isFlowType = mg, Ve.isFor = Xt, Ve.isForInStatement = P, Ve.isForOfStatement = re, Ve.isForStatement = E, Ve.isForXStatement = Zr, Ve.isFunction = $n, Ve.isFunctionDeclaration = j, Ve.isFunctionExpression = F, Ve.isFunctionParameter = Xy, Ve.isFunctionParent = ro, Ve.isFunctionTypeAnnotation = kn, Ve.isFunctionTypeParam = ii, Ve.isGenericTypeAnnotation = Oi, Ve.isIdentifier = k, Ve.isIfStatement = q, Ve.isImmutable = rg, Ve.isImport = xt, Ve.isImportAttribute = dn, Ve.isImportDeclaration = Se, Ve.isImportDefaultSpecifier = Je, Ve.isImportExpression = R, Ve.isImportNamespaceSpecifier = X, Ve.isImportOrExportDeclaration = $p, Ve.isImportSpecifier = M, Ve.isIndexedAccessType = Ps, Ve.isInferredPredicate = fi, Ve.isInterfaceDeclaration = Ui, Ve.isInterfaceExtends = is, Ve.isInterfaceTypeAnnotation = Vi, Ve.isInterpreterDirective = s, Ve.isIntersectionTypeAnnotation = Sr, Ve.isJSX = xg, Ve.isJSXAttribute = gi, Ve.isJSXClosingElement = ds, Ve.isJSXClosingFragment = Is, Ve.isJSXElement = ps, Ve.isJSXEmptyExpression = Ys, Ve.isJSXExpressionContainer = Wi, Ve.isJSXFragment = Js, Ve.isJSXIdentifier = ks, Ve.isJSXMemberExpression = Hi, Ve.isJSXNamespacedName = Pi, Ve.isJSXOpeningElement = fs, Ve.isJSXOpeningFragment = hs, Ve.isJSXSpreadAttribute = vo, Ve.isJSXSpreadChild = Cs, Ve.isJSXText = bi, Ve.isLVal = Qy, Ve.isLabeledStatement = ae, Ve.isLiteral = tg, Ve.isLogicalExpression = qe, Ve.isLoop = ye, Ve.isMemberExpression = Fe, Ve.isMetaProperty = ke, Ve.isMethod = ig, Ve.isMiscellaneous = wg, Ve.isMixedTypeAnnotation = Ss, Ve.isModuleDeclaration = Og, Ve.isModuleExpression = gs, Ve.isModuleSpecifier = dg, Ve.isNewExpression = ve, Ve.isNoop = ms, Ve.isNullLiteral = K, Ve.isNullLiteralTypeAnnotation = Cn, Ve.isNullableTypeAnnotation = hi, Ve.isNumberLiteral = Pg, Ve.isNumberLiteralTypeAnnotation = gn, Ve.isNumberTypeAnnotation = Ws, Ve.isNumericLiteral = L, Ve.isObjectExpression = Z, Ve.isObjectMember = sg, Ve.isObjectMethod = J, Ve.isObjectPattern = Ze, Ve.isObjectProperty = ge, Ve.isObjectTypeAnnotation = os, Ve.isObjectTypeCallProperty = Ur, Ve.isObjectTypeIndexer = Bn, Ve.isObjectTypeInternalSlot = Hs, Ve.isObjectTypeProperty = Ln, Ve.isObjectTypeSpreadProperty = mi, Ve.isOpaqueType = Ni, Ve.isOptionalCallExpression = or, Ve.isOptionalIndexedAccessType = Gt, Ve.isOptionalMemberExpression = Qt, Ve.isParenthesizedExpression = te, Ve.isPattern = lg, Ve.isPatternLike = Zy, Ve.isPipelineBareFunction = On, Ve.isPipelinePrimaryTopicReference = Ds, Ve.isPipelineTopicExpression = jn, Ve.isPlaceholder = Ki, Ve.isPrivate = fg, Ve.isPrivateName = wr, Ve.isProgram = _e, Ve.isProperty = og, Ve.isPureish = Yy, Ve.isQualifiedTypeIdentifier = In, Ve.isRecordExpression = Os, Ve.isRegExpLiteral = Ae, Ve.isRegexLiteral = Cg, Ve.isRestElement = de, Ve.isRestProperty = kg, Ve.isReturnStatement = Y, Ve.isScopable = hr, Ve.isSequenceExpression = V, Ve.isSpreadElement = dt, Ve.isSpreadProperty = Ig, Ve.isStandardized = zt, Ve.isStatement = Or, Ve.isStaticBlock = Br, Ve.isStringLiteral = se, Ve.isStringLiteralTypeAnnotation = si, Ve.isStringTypeAnnotation = Ts, Ve.isSuper = oe, Ve.isSwitchCase = Pe, Ve.isSwitchStatement = Ue, Ve.isSymbolTypeAnnotation = oi, Ve.isTSAnyKeyword = Ye, Ve.isTSArrayType = Ji, Ve.isTSAsExpression = Ne, Ve.isTSBaseType = Ag, Ve.isTSBigIntKeyword = At, Ve.isTSBooleanKeyword = at, Ve.isTSCallSignatureDeclaration = g, Ve.isTSConditionalType = fe, Ve.isTSConstructSignatureDeclaration = D, Ve.isTSConstructorType = Bs, Ve.isTSDeclareFunction = u, Ve.isTSDeclareMethod = a, Ve.isTSEntityName = eg, Ve.isTSEnumBody = ot, Ve.isTSEnumDeclaration = st, Ve.isTSEnumMember = ft, Ve.isTSExportAssignment = It, Ve.isTSExpressionWithTypeArguments = B, Ve.isTSExternalModuleReference = Et, Ve.isTSFunctionType = bs, Ve.isTSImportEqualsDeclaration = vt, Ve.isTSImportType = gt, Ve.isTSIndexSignature = $e, Ve.isTSIndexedAccessType = ct, Ve.isTSInferType = Ee, Ve.isTSInstantiationExpression = Te, Ve.isTSInterfaceBody = ee, Ve.isTSInterfaceDeclaration = U, Ve.isTSIntersectionType = ne, Ve.isTSIntrinsicKeyword = Lt, Ve.isTSLiteralType = T, Ve.isTSMappedType = Xe, Ve.isTSMethodSignature = we, Ve.isTSModuleBlock = yt, Ve.isTSModuleDeclaration = ht, Ve.isTSNamedTupleMember = I, Ve.isTSNamespaceExportDeclaration = Rt, Ve.isTSNeverKeyword = $t, Ve.isTSNonNullExpression = Tt, Ve.isTSNullKeyword = Jt, Ve.isTSNumberKeyword = Er, Ve.isTSObjectKeyword = Wr, Ve.isTSOptionalType = w, Ve.isTSParameterProperty = ie, Ve.isTSParenthesizedType = De, Ve.isTSPropertySignature = le, Ve.isTSQualifiedName = d, Ve.isTSRestType = x, Ve.isTSSatisfiesExpression = it, Ve.isTSStringKeyword = ur, Ve.isTSSymbolKeyword = kr, Ve.isTSTemplateLiteralType = b, Ve.isTSThisType = Ms, Ve.isTSTupleType = Zn, Ve.isTSType = Eg, Ve.isTSTypeAliasDeclaration = he, Ve.isTSTypeAnnotation = jt, Ve.isTSTypeAssertion = mt, Ve.isTSTypeElement = Tg, Ve.isTSTypeLiteral = to, Ve.isTSTypeOperator = We, Ve.isTSTypeParameter = tr, Ve.isTSTypeParameterDeclaration = Ut, Ve.isTSTypeParameterInstantiation = Wt, Ve.isTSTypePredicate = Qs, Ve.isTSTypeQuery = eo, Ve.isTSTypeReference = Ls, Ve.isTSUndefinedKeyword = ai, Ve.isTSUnionType = W, Ve.isTSUnknownKeyword = qn, Ve.isTSVoidKeyword = Zs, Ve.isTaggedTemplateExpression = xe, Ve.isTemplateElement = Q, Ve.isTemplateLiteral = Ce, Ve.isTerminatorless = z, Ve.isThisExpression = Re, Ve.isThisTypeAnnotation = Es, Ve.isThrowStatement = Be, Ve.isTopicReference = on, Ve.isTryStatement = Qe, Ve.isTupleExpression = ys, Ve.isTupleTypeAnnotation = Xn, Ve.isTypeAlias = Ks, Ve.isTypeAnnotation = Gs, Ve.isTypeCastExpression = as, Ve.isTypeParameter = xn, Ve.isTypeParameterDeclaration = Ai, Ve.isTypeParameterInstantiation = zi, Ve.isTypeScript = Sg, Ve.isTypeofTypeAnnotation = Ir, Ve.isUnaryExpression = ut, Ve.isUnaryLike = ag, Ve.isUnionTypeAnnotation = yi, Ve.isUpdateExpression = _t, Ve.isUserWhitespacable = ng, Ve.isV8IntrinsicIdentifier = an, Ve.isVariableDeclaration = Pt, Ve.isVariableDeclarator = St, Ve.isVariance = ls, Ve.isVoidPattern = Yi, Ve.isVoidTypeAnnotation = As, Ve.isWhile = Ke, Ve.isWhileStatement = kt, Ve.isWithStatement = rt, Ve.isYieldExpression = pt;
|
|
12862
12878
|
var t = Wv(), e = wp();
|
|
12863
12879
|
function r(v, h) {
|
|
12864
12880
|
return !v || v.type !== "ArrayExpression" ? !1 : h == null || (0, t.default)(v, h);
|
|
@@ -13130,7 +13146,7 @@ function Gn() {
|
|
|
13130
13146
|
function _n(v, h) {
|
|
13131
13147
|
return !v || v.type !== "AnyTypeAnnotation" ? !1 : h == null || (0, t.default)(v, h);
|
|
13132
13148
|
}
|
|
13133
|
-
function
|
|
13149
|
+
function Yr(v, h) {
|
|
13134
13150
|
return !v || v.type !== "ArrayTypeAnnotation" ? !1 : h == null || (0, t.default)(v, h);
|
|
13135
13151
|
}
|
|
13136
13152
|
function er(v, h) {
|
|
@@ -13169,7 +13185,7 @@ function Gn() {
|
|
|
13169
13185
|
function ns(v, h) {
|
|
13170
13186
|
return !v || v.type !== "DeclareVariable" ? !1 : h == null || (0, t.default)(v, h);
|
|
13171
13187
|
}
|
|
13172
|
-
function
|
|
13188
|
+
function Xr(v, h) {
|
|
13173
13189
|
return !v || v.type !== "DeclareExportDeclaration" ? !1 : h == null || (0, t.default)(v, h);
|
|
13174
13190
|
}
|
|
13175
13191
|
function ni(v, h) {
|
|
@@ -13810,7 +13826,7 @@ function Gn() {
|
|
|
13810
13826
|
}
|
|
13811
13827
|
return h == null || (0, t.default)(v, h);
|
|
13812
13828
|
}
|
|
13813
|
-
function
|
|
13829
|
+
function hr(v, h) {
|
|
13814
13830
|
if (!v) return !1;
|
|
13815
13831
|
switch (v.type) {
|
|
13816
13832
|
case "BlockStatement":
|
|
@@ -13840,7 +13856,7 @@ function Gn() {
|
|
|
13840
13856
|
}
|
|
13841
13857
|
return h == null || (0, t.default)(v, h);
|
|
13842
13858
|
}
|
|
13843
|
-
function
|
|
13859
|
+
function mr(v, h) {
|
|
13844
13860
|
if (!v) return !1;
|
|
13845
13861
|
switch (v.type) {
|
|
13846
13862
|
case "BlockStatement":
|
|
@@ -14036,7 +14052,7 @@ function Gn() {
|
|
|
14036
14052
|
}
|
|
14037
14053
|
return h == null || (0, t.default)(v, h);
|
|
14038
14054
|
}
|
|
14039
|
-
function
|
|
14055
|
+
function Zr(v, h) {
|
|
14040
14056
|
if (!v) return !1;
|
|
14041
14057
|
switch (v.type) {
|
|
14042
14058
|
case "ForInStatement":
|
|
@@ -18415,7 +18431,7 @@ function EP() {
|
|
|
18415
18431
|
if (Tx) return Le;
|
|
18416
18432
|
Tx = 1, Object.defineProperty(Le, "__esModule", {
|
|
18417
18433
|
value: !0
|
|
18418
|
-
}), Le.anyTypeAnnotation = rs, Le.argumentPlaceholder = vi, Le.arrayExpression = o, Le.arrayPattern = je, Le.arrayTypeAnnotation = Cn, Le.arrowFunctionExpression = Me, Le.assignmentExpression = l, Le.assignmentPattern = Ot, Le.awaitExpression = Qt, Le.bigIntLiteral = s, Le.binaryExpression = c, Le.bindExpression = Gi, Le.blockStatement = y, Le.booleanLiteral = ve, Le.booleanLiteralTypeAnnotation = sr, Le.booleanTypeAnnotation = pn, Le.breakStatement = _, Le.callExpression = N, Le.catchClause = A, Le.classAccessorProperty = wr, Le.classBody = me, Le.classDeclaration = be, Le.classExpression = ue, Le.classImplements = Ei, Le.classMethod = xe, Le.classPrivateMethod = dn, Le.classPrivateProperty = Br, Le.classProperty = yn, Le.conditionalExpression = C, Le.continueStatement = O, Le.debuggerStatement = S, Le.decimalLiteral = jn, Le.declareClass = Mn, Le.declareExportAllDeclaration = kn, Le.declareExportDeclaration = pi, Le.declareFunction = $i, Le.declareInterface = ln, Le.declareModule = ri, Le.declareModuleExports = ns, Le.declareOpaqueType = ni, Le.declareTypeAlias =
|
|
18434
|
+
}), Le.anyTypeAnnotation = rs, Le.argumentPlaceholder = vi, Le.arrayExpression = o, Le.arrayPattern = je, Le.arrayTypeAnnotation = Cn, Le.arrowFunctionExpression = Me, Le.assignmentExpression = l, Le.assignmentPattern = Ot, Le.awaitExpression = Qt, Le.bigIntLiteral = s, Le.binaryExpression = c, Le.bindExpression = Gi, Le.blockStatement = y, Le.booleanLiteral = ve, Le.booleanLiteralTypeAnnotation = sr, Le.booleanTypeAnnotation = pn, Le.breakStatement = _, Le.callExpression = N, Le.catchClause = A, Le.classAccessorProperty = wr, Le.classBody = me, Le.classDeclaration = be, Le.classExpression = ue, Le.classImplements = Ei, Le.classMethod = xe, Le.classPrivateMethod = dn, Le.classPrivateProperty = Br, Le.classProperty = yn, Le.conditionalExpression = C, Le.continueStatement = O, Le.debuggerStatement = S, Le.decimalLiteral = jn, Le.declareClass = Mn, Le.declareExportAllDeclaration = kn, Le.declareExportDeclaration = pi, Le.declareFunction = $i, Le.declareInterface = ln, Le.declareModule = ri, Le.declareModuleExports = ns, Le.declareOpaqueType = ni, Le.declareTypeAlias = Xr, Le.declareVariable = Jn, Le.declaredPredicate = ii, Le.decorator = Os, Le.directive = f, Le.directiveLiteral = m, Le.doExpression = ys, Le.doWhileStatement = P, Le.emptyStatement = E, Le.emptyTypeAnnotation = Ws, Le.enumBooleanBody = cs, Le.enumBooleanMember = us, Le.enumDeclaration = Di, Le.enumDefaultedMember = gi, Le.enumNumberBody = Fn, Le.enumNumberMember = Ps, Le.enumStringBody = bo, Le.enumStringMember = Gt, Le.enumSymbolBody = En, Le.existsTypeAnnotation = Oi, Le.exportAllDeclaration = re, Le.exportDefaultDeclaration = Se, Le.exportDefaultSpecifier = Ns, Le.exportNamedDeclaration = Je, Le.exportNamespaceSpecifier = yr, Le.exportSpecifier = X, Le.expressionStatement = j, Le.file = F, Le.forInStatement = k, Le.forOfStatement = M, Le.forStatement = q, Le.functionDeclaration = ae, Le.functionExpression = se, Le.functionTypeAnnotation = fi, Le.functionTypeParam = is, Le.genericTypeAnnotation = Ui, Le.identifier = L, Le.ifStatement = K, Le.import = or, Le.importAttribute = er, Le.importDeclaration = R, Le.importDefaultSpecifier = ke, Le.importExpression = dt, Le.importNamespaceSpecifier = tt, Le.importSpecifier = Ze, Le.indexedAccessType = ds, Le.inferredPredicate = Vi, Le.interfaceDeclaration = Ss, Le.interfaceExtends = Sr, Le.interfaceTypeAnnotation = ss, Le.interpreterDirective = p, Le.intersectionTypeAnnotation = hi, Le.jSXAttribute = Le.jsxAttribute = Ys, Le.jSXClosingElement = Le.jsxClosingElement = Wi, Le.jSXClosingFragment = Le.jsxClosingFragment = an, Le.jSXElement = Le.jsxElement = Cs, Le.jSXEmptyExpression = Le.jsxEmptyExpression = ks, Le.jSXExpressionContainer = Le.jsxExpressionContainer = Hi, Le.jSXFragment = Le.jsxFragment = ms, Le.jSXIdentifier = Le.jsxIdentifier = fs, Le.jSXMemberExpression = Le.jsxMemberExpression = vo, Le.jSXNamespacedName = Le.jsxNamespacedName = bi, Le.jSXOpeningElement = Le.jsxOpeningElement = Js, Le.jSXOpeningFragment = Le.jsxOpeningFragment = Ki, Le.jSXSpreadAttribute = Le.jsxSpreadAttribute = hs, Le.jSXSpreadChild = Le.jsxSpreadChild = Pi, Le.jSXText = Le.jsxText = Is, Le.labeledStatement = pe, Le.logicalExpression = Z, Le.memberExpression = J, Le.metaProperty = oe, Le.mixedTypeAnnotation = gn, Le.moduleExpression = On, Le.newExpression = ge, Le.noop = Mi, Le.nullLiteral = Fe, Le.nullLiteralTypeAnnotation = Tn, Le.nullableTypeAnnotation = os, Le.numberLiteral = hr, Le.numberLiteralTypeAnnotation = Hs, Le.numberTypeAnnotation = Ur, Le.numericLiteral = qe, Le.objectExpression = Y, Le.objectMethod = V, Le.objectPattern = Q, Le.objectProperty = te, Le.objectTypeAnnotation = Bn, Le.objectTypeCallProperty = mi, Le.objectTypeIndexer = Ni, Le.objectTypeInternalSlot = Ln, Le.objectTypeProperty = In, Le.objectTypeSpreadProperty = si, Le.opaqueType = Ts, Le.optionalCallExpression = zr, Le.optionalIndexedAccessType = ps, Le.optionalMemberExpression = Tr, Le.parenthesizedExpression = Be, Le.pipelineBareFunction = ie, Le.pipelinePrimaryTopicReference = u, Le.pipelineTopicExpression = Yi, Le.placeholder = Xs, Le.privateName = _n, Le.program = de, Le.qualifiedTypeIdentifier = oi, Le.recordExpression = gs, Le.regExpLiteral = _e, Le.regexLiteral = mr, Le.restElement = Pe, Le.restProperty = xr, Le.returnStatement = Ue, Le.sequenceExpression = Re, Le.spreadElement = Ce, Le.spreadProperty = Or, Le.staticBlock = Yr, Le.stringLiteral = Ae, Le.stringLiteralTypeAnnotation = Es, Le.stringTypeAnnotation = Xn, Le.super = pt, Le.switchCase = Qe, Le.switchStatement = ut, Le.symbolTypeAnnotation = Ir, Le.taggedTemplateExpression = Ie, Le.templateElement = xt, Le.templateLiteral = Nt, Le.thisExpression = _t, Le.thisTypeAnnotation = Ks, Le.throwStatement = Pt, Le.topicReference = Ds, Le.tryStatement = St, Le.tSAnyKeyword = Le.tsAnyKeyword = Lt, Le.tSArrayType = Le.tsArrayType = x, Le.tSAsExpression = Le.tsAsExpression = ot, Le.tSBigIntKeyword = Le.tsBigIntKeyword = Jt, Le.tSBooleanKeyword = Le.tsBooleanKeyword = $t, Le.tSCallSignatureDeclaration = Le.tsCallSignatureDeclaration = we, Le.tSConditionalType = Le.tsConditionalType = We, Le.tSConstructSignatureDeclaration = Le.tsConstructSignatureDeclaration = $e, Le.tSConstructorType = Le.tsConstructorType = eo, Le.tSDeclareFunction = Le.tsDeclareFunction = g, Le.tSDeclareMethod = Le.tsDeclareMethod = D, Le.tSEnumBody = Le.tsEnumBody = ht, Le.tSEnumDeclaration = Le.tsEnumDeclaration = yt, Le.tSEnumMember = Le.tsEnumMember = gt, Le.tSExportAssignment = Le.tsExportAssignment = Wt, Le.tSExpressionWithTypeArguments = Le.tsExpressionWithTypeArguments = he, Le.tSExternalModuleReference = Le.tsExternalModuleReference = Rt, Le.tSFunctionType = Le.tsFunctionType = Qs, Le.tSImportEqualsDeclaration = Le.tsImportEqualsDeclaration = It, Le.tSImportType = Le.tsImportType = Tt, Le.tSIndexSignature = Le.tsIndexSignature = At, Le.tSIndexedAccessType = Le.tsIndexedAccessType = T, Le.tSInferType = Le.tsInferType = ct, Le.tSInstantiationExpression = Le.tsInstantiationExpression = mt, Le.tSInterfaceBody = Le.tsInterfaceBody = Ne, Le.tSInterfaceDeclaration = Le.tsInterfaceDeclaration = Te, Le.tSIntersectionType = Le.tsIntersectionType = De, Le.tSIntrinsicKeyword = Le.tsIntrinsicKeyword = Er, Le.tSLiteralType = Le.tsLiteralType = ee, Le.tSMappedType = Le.tsMappedType = B, Le.tSMethodSignature = Le.tsMethodSignature = at, Le.tSModuleBlock = Le.tsModuleBlock = Et, Le.tSModuleDeclaration = Le.tsModuleDeclaration = vt, Le.tSNamedTupleMember = Le.tsNamedTupleMember = fe, Le.tSNamespaceExportDeclaration = Le.tsNamespaceExportDeclaration = Ut, Le.tSNeverKeyword = Le.tsNeverKeyword = Wr, Le.tSNonNullExpression = Le.tsNonNullExpression = jt, Le.tSNullKeyword = Le.tsNullKeyword = ur, Le.tSNumberKeyword = Le.tsNumberKeyword = kr, Le.tSObjectKeyword = Le.tsObjectKeyword = ai, Le.tSOptionalType = Le.tsOptionalType = W, Le.tSParameterProperty = Le.tsParameterProperty = d, Le.tSParenthesizedType = Le.tsParenthesizedType = Xe, Le.tSPropertySignature = Le.tsPropertySignature = Ye, Le.tSQualifiedName = Le.tsQualifiedName = le, Le.tSRestType = Le.tsRestType = ne, Le.tSSatisfiesExpression = Le.tsSatisfiesExpression = st, Le.tSStringKeyword = Le.tsStringKeyword = qn, Le.tSSymbolKeyword = Le.tsSymbolKeyword = Zs, Le.tSTemplateLiteralType = Le.tsTemplateLiteralType = U, Le.tSThisType = Le.tsThisType = Ls, Le.tSTupleType = Le.tsTupleType = I, Le.tSTypeAliasDeclaration = Le.tsTypeAliasDeclaration = it, Le.tSTypeAnnotation = Le.tsTypeAnnotation = tr, Le.tSTypeAssertion = Le.tsTypeAssertion = ft, Le.tSTypeLiteral = Le.tsTypeLiteral = w, Le.tSTypeOperator = Le.tsTypeOperator = b, Le.tSTypeParameter = Le.tsTypeParameter = Ft, Le.tSTypeParameterDeclaration = Le.tsTypeParameterDeclaration = nr, Le.tSTypeParameterInstantiation = Le.tsTypeParameterInstantiation = zt, Le.tSTypePredicate = Le.tsTypePredicate = Ji, Le.tSTypeQuery = Le.tsTypeQuery = Zn, Le.tSTypeReference = Le.tsTypeReference = to, Le.tSUndefinedKeyword = Le.tsUndefinedKeyword = Ms, Le.tSUnionType = Le.tsUnionType = Ee, Le.tSUnknownKeyword = Le.tsUnknownKeyword = bs, Le.tSVoidKeyword = Le.tsVoidKeyword = Bs, Le.tupleExpression = on, Le.tupleTypeAnnotation = Gs, Le.typeAlias = xn, Le.typeAnnotation = Ai, Le.typeCastExpression = zi, Le.typeParameter = yi, Le.typeParameterDeclaration = ls, Le.typeParameterInstantiation = As, Le.typeofTypeAnnotation = as, Le.unaryExpression = kt, Le.unionTypeAnnotation = sn, Le.updateExpression = rt, Le.v8IntrinsicIdentifier = _o, Le.variableDeclaration = Ge, Le.variableDeclarator = nt, Le.variance = wn, Le.voidPattern = a, Le.voidTypeAnnotation = Rn, Le.whileStatement = et, Le.withStatement = Dt, Le.yieldExpression = Mt;
|
|
18419
18435
|
var t = Yv(), e = wp(), r = Na();
|
|
18420
18436
|
const {
|
|
18421
18437
|
validateInternal: n
|
|
@@ -18702,7 +18718,7 @@ function EP() {
|
|
|
18702
18718
|
return n(H.properties, $, "properties", z, 1), $;
|
|
18703
18719
|
}
|
|
18704
18720
|
function V(z = "method", $, H, ye, Ke = !1, wt = !1, Xt = !1) {
|
|
18705
|
-
const
|
|
18721
|
+
const Zr = {
|
|
18706
18722
|
type: "ObjectMethod",
|
|
18707
18723
|
kind: z,
|
|
18708
18724
|
key: $,
|
|
@@ -18712,7 +18728,7 @@ function EP() {
|
|
|
18712
18728
|
generator: wt,
|
|
18713
18729
|
async: Xt
|
|
18714
18730
|
}, $n = i.ObjectMethod;
|
|
18715
|
-
return n($n.kind,
|
|
18731
|
+
return n($n.kind, Zr, "kind", z), n($n.key, Zr, "key", $, 1), n($n.params, Zr, "params", H, 1), n($n.body, Zr, "body", ye, 1), n($n.computed, Zr, "computed", Ke), n($n.generator, Zr, "generator", wt), n($n.async, Zr, "async", Xt), Zr;
|
|
18716
18732
|
}
|
|
18717
18733
|
function te(z, $, H = !1, ye = !1, Ke = null) {
|
|
18718
18734
|
const wt = {
|
|
@@ -18982,7 +18998,7 @@ function EP() {
|
|
|
18982
18998
|
}, ye = i.MetaProperty;
|
|
18983
18999
|
return n(ye.meta, H, "meta", z, 1), n(ye.property, H, "property", $, 1), H;
|
|
18984
19000
|
}
|
|
18985
|
-
function xe(z = "method", $, H, ye, Ke = !1, wt = !1, Xt = !1,
|
|
19001
|
+
function xe(z = "method", $, H, ye, Ke = !1, wt = !1, Xt = !1, Zr = !1) {
|
|
18986
19002
|
const $n = {
|
|
18987
19003
|
type: "ClassMethod",
|
|
18988
19004
|
kind: z,
|
|
@@ -18992,9 +19008,9 @@ function EP() {
|
|
|
18992
19008
|
computed: Ke,
|
|
18993
19009
|
static: wt,
|
|
18994
19010
|
generator: Xt,
|
|
18995
|
-
async:
|
|
19011
|
+
async: Zr
|
|
18996
19012
|
}, ro = i.ClassMethod;
|
|
18997
|
-
return n(ro.kind, $n, "kind", z), n(ro.key, $n, "key", $, 1), n(ro.params, $n, "params", H, 1), n(ro.body, $n, "body", ye, 1), n(ro.computed, $n, "computed", Ke), n(ro.static, $n, "static", wt), n(ro.generator, $n, "generator", Xt), n(ro.async, $n, "async",
|
|
19013
|
+
return n(ro.kind, $n, "kind", z), n(ro.key, $n, "key", $, 1), n(ro.params, $n, "params", H, 1), n(ro.body, $n, "body", ye, 1), n(ro.computed, $n, "computed", Ke), n(ro.static, $n, "static", wt), n(ro.generator, $n, "generator", Xt), n(ro.async, $n, "async", Zr), $n;
|
|
18998
19014
|
}
|
|
18999
19015
|
function Q(z) {
|
|
19000
19016
|
const $ = {
|
|
@@ -19094,8 +19110,8 @@ function EP() {
|
|
|
19094
19110
|
decorators: ye,
|
|
19095
19111
|
computed: Ke,
|
|
19096
19112
|
static: wt
|
|
19097
|
-
},
|
|
19098
|
-
return n(
|
|
19113
|
+
}, Zr = i.ClassProperty;
|
|
19114
|
+
return n(Zr.key, Xt, "key", z, 1), n(Zr.value, Xt, "value", $, 1), n(Zr.typeAnnotation, Xt, "typeAnnotation", H, 1), n(Zr.decorators, Xt, "decorators", ye, 1), n(Zr.computed, Xt, "computed", Ke), n(Zr.static, Xt, "static", wt), Xt;
|
|
19099
19115
|
}
|
|
19100
19116
|
function wr(z, $ = null, H = null, ye = null, Ke = !1, wt = !1) {
|
|
19101
19117
|
const Xt = {
|
|
@@ -19106,8 +19122,8 @@ function EP() {
|
|
|
19106
19122
|
decorators: ye,
|
|
19107
19123
|
computed: Ke,
|
|
19108
19124
|
static: wt
|
|
19109
|
-
},
|
|
19110
|
-
return n(
|
|
19125
|
+
}, Zr = i.ClassAccessorProperty;
|
|
19126
|
+
return n(Zr.key, Xt, "key", z, 1), n(Zr.value, Xt, "value", $, 1), n(Zr.typeAnnotation, Xt, "typeAnnotation", H, 1), n(Zr.decorators, Xt, "decorators", ye, 1), n(Zr.computed, Xt, "computed", Ke), n(Zr.static, Xt, "static", wt), Xt;
|
|
19111
19127
|
}
|
|
19112
19128
|
function Br(z, $ = null, H = null, ye = !1) {
|
|
19113
19129
|
const Ke = {
|
|
@@ -19137,7 +19153,7 @@ function EP() {
|
|
|
19137
19153
|
}, H = i.PrivateName;
|
|
19138
19154
|
return n(H.id, $, "id", z, 1), $;
|
|
19139
19155
|
}
|
|
19140
|
-
function
|
|
19156
|
+
function Yr(z) {
|
|
19141
19157
|
const $ = {
|
|
19142
19158
|
type: "StaticBlock",
|
|
19143
19159
|
body: z
|
|
@@ -19232,7 +19248,7 @@ function EP() {
|
|
|
19232
19248
|
}, H = i.DeclareModuleExports;
|
|
19233
19249
|
return n(H.typeAnnotation, $, "typeAnnotation", z, 1), $;
|
|
19234
19250
|
}
|
|
19235
|
-
function
|
|
19251
|
+
function Xr(z, $ = null, H) {
|
|
19236
19252
|
const ye = {
|
|
19237
19253
|
type: "DeclareTypeAlias",
|
|
19238
19254
|
id: z,
|
|
@@ -20372,10 +20388,10 @@ function EP() {
|
|
|
20372
20388
|
}, Ke = i.TSTypeParameter;
|
|
20373
20389
|
return n(Ke.constraint, ye, "constraint", z, 1), n(Ke.default, ye, "default", $, 1), n(Ke.name, ye, "name", H), ye;
|
|
20374
20390
|
}
|
|
20375
|
-
function
|
|
20391
|
+
function hr(z) {
|
|
20376
20392
|
return (0, e.default)("NumberLiteral", "NumericLiteral", "The node type "), qe(z);
|
|
20377
20393
|
}
|
|
20378
|
-
function
|
|
20394
|
+
function mr(z, $ = "") {
|
|
20379
20395
|
return (0, e.default)("RegexLiteral", "RegExpLiteral", "The node type "), _e(z, $);
|
|
20380
20396
|
}
|
|
20381
20397
|
function xr(z) {
|
|
@@ -20501,7 +20517,7 @@ function x5() {
|
|
|
20501
20517
|
if (Ox) return ze;
|
|
20502
20518
|
Ox = 1, Object.defineProperty(ze, "__esModule", {
|
|
20503
20519
|
value: !0
|
|
20504
|
-
}), ze.assertAccessor = fg, ze.assertAnyTypeAnnotation =
|
|
20520
|
+
}), ze.assertAccessor = fg, ze.assertAnyTypeAnnotation = Yr, ze.assertArgumentPlaceholder = Xs, ze.assertArrayExpression = n, ze.assertArrayPattern = et, ze.assertArrayTypeAnnotation = er, ze.assertArrowFunctionExpression = Dt, ze.assertAssignmentExpression = i, ze.assertAssignmentPattern = nt, ze.assertAwaitExpression = xt, ze.assertBigIntLiteral = Mt, ze.assertBinary = hr, ze.assertBinaryExpression = s, ze.assertBindExpression = _o, ze.assertBlock = Or, ze.assertBlockParent = xr, ze.assertBlockStatement = p, ze.assertBooleanLiteral = Ae, ze.assertBooleanLiteralTypeAnnotation = Cn, ze.assertBooleanTypeAnnotation = rs, ze.assertBreakStatement = f, ze.assertCallExpression = m, ze.assertCatchClause = y, ze.assertClass = $p, ze.assertClassAccessorProperty = zr, ze.assertClassBody = Ot, ze.assertClassDeclaration = Me, ze.assertClassExpression = je, ze.assertClassImplements = sr, ze.assertClassMethod = Ze, ze.assertClassPrivateMethod = wr, ze.assertClassPrivateProperty = yn, ze.assertClassProperty = Tr, ze.assertCompletionStatement = H, ze.assertConditional = ye, ze.assertConditionalExpression = _, ze.assertContinueStatement = N, ze.assertDebuggerStatement = A, ze.assertDecimalLiteral = gs, ze.assertDeclaration = Xy, ze.assertDeclareClass = Tn, ze.assertDeclareExportAllDeclaration = Jn, ze.assertDeclareExportDeclaration = ni, ze.assertDeclareFunction = Ei, ze.assertDeclareInterface = Mn, ze.assertDeclareModule = $i, ze.assertDeclareModuleExports = ln, ze.assertDeclareOpaqueType = ns, ze.assertDeclareTypeAlias = ri, ze.assertDeclareVariable = Xr, ze.assertDeclaredPredicate = pi, ze.assertDecorator = vi, ze.assertDirective = l, ze.assertDirectiveLiteral = c, ze.assertDoExpression = Gi, ze.assertDoWhileStatement = C, ze.assertEmptyStatement = O, ze.assertEmptyTypeAnnotation = hi, ze.assertEnumBody = _g, ze.assertEnumBooleanBody = Rn, ze.assertEnumBooleanMember = bo, ze.assertEnumDeclaration = wn, ze.assertEnumDefaultedMember = Ps, ze.assertEnumMember = xg, ze.assertEnumNumberBody = Di, ze.assertEnumNumberMember = En, ze.assertEnumStringBody = cs, ze.assertEnumStringMember = us, ze.assertEnumSymbolBody = Fn, ze.assertExistsTypeAnnotation = kn, ze.assertExportAllDeclaration = me, ze.assertExportDeclaration = dg, ze.assertExportDefaultDeclaration = ue, ze.assertExportDefaultSpecifier = Os, ze.assertExportNamedDeclaration = be, ze.assertExportNamespaceSpecifier = Qt, ze.assertExportSpecifier = re, ze.assertExpression = Ft, ze.assertExpressionStatement = S, ze.assertExpressionWrapper = Xt, ze.assertFile = P, ze.assertFlow = mg, ze.assertFlowBaseAnnotation = gg, ze.assertFlowDeclaration = bg, ze.assertFlowPredicate = vg, ze.assertFlowType = yg, ze.assertFor = Zr, ze.assertForInStatement = E, ze.assertForOfStatement = Se, ze.assertForStatement = j, ze.assertForXStatement = $n, ze.assertFunction = ro, ze.assertFunctionDeclaration = F, ze.assertFunctionExpression = k, ze.assertFunctionParameter = Zy, ze.assertFunctionParent = Yy, ze.assertFunctionTypeAnnotation = ii, ze.assertFunctionTypeParam = Oi, ze.assertGenericTypeAnnotation = fi, ze.assertIdentifier = q, ze.assertIfStatement = ae, ze.assertImmutable = ng, ze.assertImport = Nt, ze.assertImportAttribute = _n, ze.assertImportDeclaration = Je, ze.assertImportDefaultSpecifier = X, ze.assertImportExpression = ke, ze.assertImportNamespaceSpecifier = M, ze.assertImportOrExportDeclaration = ug, ze.assertImportSpecifier = R, ze.assertIndexedAccessType = Gt, ze.assertInferredPredicate = is, ze.assertInterfaceDeclaration = Vi, ze.assertInterfaceExtends = Ui, ze.assertInterfaceTypeAnnotation = Sr, ze.assertInterpreterDirective = o, ze.assertIntersectionTypeAnnotation = Ss, ze.assertJSX = wg, ze.assertJSXAttribute = ds, ze.assertJSXClosingElement = ps, ze.assertJSXClosingFragment = ms, ze.assertJSXElement = Ys, ze.assertJSXEmptyExpression = Wi, ze.assertJSXExpressionContainer = Cs, ze.assertJSXFragment = hs, ze.assertJSXIdentifier = Hi, ze.assertJSXMemberExpression = Pi, ze.assertJSXNamespacedName = fs, ze.assertJSXOpeningElement = vo, ze.assertJSXOpeningFragment = Is, ze.assertJSXSpreadAttribute = bi, ze.assertJSXSpreadChild = ks, ze.assertJSXText = Js, ze.assertLVal = eg, ze.assertLabeledStatement = se, ze.assertLiteral = rg, ze.assertLogicalExpression = Fe, ze.assertLoop = Ke, ze.assertMemberExpression = ve, ze.assertMetaProperty = tt, ze.assertMethod = sg, ze.assertMiscellaneous = Sg, ze.assertMixedTypeAnnotation = ss, ze.assertModuleDeclaration = v, ze.assertModuleExpression = on, ze.assertModuleSpecifier = pg, ze.assertNewExpression = _e, ze.assertNoop = Ki, ze.assertNullLiteral = pe, ze.assertNullLiteralTypeAnnotation = pn, ze.assertNullableTypeAnnotation = gn, ze.assertNumberLiteral = Cg, ze.assertNumberLiteralTypeAnnotation = Ws, ze.assertNumberTypeAnnotation = os, ze.assertNumericLiteral = K, ze.assertObjectExpression = J, ze.assertObjectMember = og, ze.assertObjectMethod = ge, ze.assertObjectPattern = dt, ze.assertObjectProperty = de, ze.assertObjectTypeAnnotation = Hs, ze.assertObjectTypeCallProperty = Bn, ze.assertObjectTypeIndexer = Ln, ze.assertObjectTypeInternalSlot = Ur, ze.assertObjectTypeProperty = mi, ze.assertObjectTypeSpreadProperty = Ni, ze.assertOpaqueType = In, ze.assertOptionalCallExpression = yr, ze.assertOptionalIndexedAccessType = gi, ze.assertOptionalMemberExpression = or, ze.assertParenthesizedExpression = Pe, ze.assertPattern = cg, ze.assertPatternLike = Qy, ze.assertPipelineBareFunction = Ds, ze.assertPipelinePrimaryTopicReference = Yi, ze.assertPipelineTopicExpression = On, ze.assertPlaceholder = an, ze.assertPrivate = hg, ze.assertPrivateName = Br, ze.assertProgram = Z, ze.assertProperty = ag, ze.assertPureish = Jy, ze.assertQualifiedTypeIdentifier = si, ze.assertRecordExpression = ys, ze.assertRegExpLiteral = qe, ze.assertRegexLiteral = kg, ze.assertRestElement = Y, ze.assertRestProperty = Ig, ze.assertReturnStatement = V, ze.assertScopable = mr, ze.assertSequenceExpression = te, ze.assertSpreadElement = oe, ze.assertSpreadProperty = Og, ze.assertStandardized = nr, ze.assertStatement = z, ze.assertStaticBlock = dn, ze.assertStringLiteral = L, ze.assertStringLiteralTypeAnnotation = Ts, ze.assertStringTypeAnnotation = oi, ze.assertSuper = xe, ze.assertSwitchCase = Ue, ze.assertSwitchStatement = Re, ze.assertSymbolTypeAnnotation = Es, ze.assertTSAnyKeyword = at, ze.assertTSArrayType = Zn, ze.assertTSAsExpression = it, ze.assertTSBaseType = Pg, ze.assertTSBigIntKeyword = Lt, ze.assertTSBooleanKeyword = At, ze.assertTSCallSignatureDeclaration = D, ze.assertTSConditionalType = Ee, ze.assertTSConstructSignatureDeclaration = le, ze.assertTSConstructorType = Ls, ze.assertTSDeclareFunction = a, ze.assertTSDeclareMethod = d, ze.assertTSEntityName = tg, ze.assertTSEnumBody = st, ze.assertTSEnumDeclaration = ft, ze.assertTSEnumMember = ht, ze.assertTSExportAssignment = Rt, ze.assertTSExpressionWithTypeArguments = U, ze.assertTSExternalModuleReference = Tt, ze.assertTSFunctionType = Bs, ze.assertTSImportEqualsDeclaration = Et, ze.assertTSImportType = vt, ze.assertTSIndexSignature = Ye, ze.assertTSIndexedAccessType = Xe, ze.assertTSInferType = De, ze.assertTSInstantiationExpression = Ne, ze.assertTSInterfaceBody = he, ze.assertTSInterfaceDeclaration = ee, ze.assertTSIntersectionType = fe, ze.assertTSIntrinsicKeyword = $t, ze.assertTSLiteralType = B, ze.assertTSMappedType = b, ze.assertTSMethodSignature = $e, ze.assertTSModuleBlock = gt, ze.assertTSModuleDeclaration = yt, ze.assertTSNamedTupleMember = W, ze.assertTSNamespaceExportDeclaration = jt, ze.assertTSNeverKeyword = Jt, ze.assertTSNonNullExpression = It, ze.assertTSNullKeyword = Er, ze.assertTSNumberKeyword = Wr, ze.assertTSObjectKeyword = ur, ze.assertTSOptionalType = x, ze.assertTSParameterProperty = u, ze.assertTSParenthesizedType = We, ze.assertTSPropertySignature = we, ze.assertTSQualifiedName = g, ze.assertTSRestType = I, ze.assertTSSatisfiesExpression = mt, ze.assertTSStringKeyword = kr, ze.assertTSSymbolKeyword = ai, ze.assertTSTemplateLiteralType = T, ze.assertTSThisType = bs, ze.assertTSTupleType = w, ze.assertTSType = Ag, ze.assertTSTypeAliasDeclaration = Te, ze.assertTSTypeAnnotation = Wt, ze.assertTSTypeAssertion = ot, ze.assertTSTypeElement = Eg, ze.assertTSTypeLiteral = Ji, ze.assertTSTypeOperator = ct, ze.assertTSTypeParameter = zt, ze.assertTSTypeParameterDeclaration = tr, ze.assertTSTypeParameterInstantiation = Ut, ze.assertTSTypePredicate = eo, ze.assertTSTypeQuery = to, ze.assertTSTypeReference = Qs, ze.assertTSUndefinedKeyword = qn, ze.assertTSUnionType = ne, ze.assertTSUnknownKeyword = Zs, ze.assertTSVoidKeyword = Ms, ze.assertTaggedTemplateExpression = Q, ze.assertTemplateElement = Ce, ze.assertTemplateLiteral = pt, ze.assertTerminatorless = $, ze.assertThisExpression = Be, ze.assertThisTypeAnnotation = Xn, ze.assertThrowStatement = Qe, ze.assertTopicReference = jn, ze.assertTryStatement = ut, ze.assertTupleExpression = Ns, ze.assertTupleTypeAnnotation = Ir, ze.assertTypeAlias = Gs, ze.assertTypeAnnotation = as, ze.assertTypeCastExpression = xn, ze.assertTypeParameter = Ai, ze.assertTypeParameterDeclaration = zi, ze.assertTypeParameterInstantiation = yi, ze.assertTypeScript = Tg, ze.assertTypeofTypeAnnotation = Ks, ze.assertUnaryExpression = _t, ze.assertUnaryLike = lg, ze.assertUnionTypeAnnotation = ls, ze.assertUpdateExpression = Pt, ze.assertUserWhitespacable = ig, ze.assertV8IntrinsicIdentifier = Mi, ze.assertVariableDeclaration = St, ze.assertVariableDeclarator = kt, ze.assertVariance = As, ze.assertVoidPattern = ie, ze.assertVoidTypeAnnotation = sn, ze.assertWhile = wt, ze.assertWhileStatement = rt, ze.assertWithStatement = Ge, ze.assertYieldExpression = Ie;
|
|
20505
20521
|
var t = Sp(), e = wp();
|
|
20506
20522
|
function r(h, G, T_) {
|
|
20507
20523
|
if (!(0, t.default)(h, G, T_))
|
|
@@ -20774,7 +20790,7 @@ function x5() {
|
|
|
20774
20790
|
function _n(h, G) {
|
|
20775
20791
|
r("ImportAttribute", h, G);
|
|
20776
20792
|
}
|
|
20777
|
-
function
|
|
20793
|
+
function Yr(h, G) {
|
|
20778
20794
|
r("AnyTypeAnnotation", h, G);
|
|
20779
20795
|
}
|
|
20780
20796
|
function er(h, G) {
|
|
@@ -20813,7 +20829,7 @@ function x5() {
|
|
|
20813
20829
|
function ns(h, G) {
|
|
20814
20830
|
r("DeclareOpaqueType", h, G);
|
|
20815
20831
|
}
|
|
20816
|
-
function
|
|
20832
|
+
function Xr(h, G) {
|
|
20817
20833
|
r("DeclareVariable", h, G);
|
|
20818
20834
|
}
|
|
20819
20835
|
function ni(h, G) {
|
|
@@ -21272,10 +21288,10 @@ function x5() {
|
|
|
21272
21288
|
function Ft(h, G) {
|
|
21273
21289
|
r("Expression", h, G);
|
|
21274
21290
|
}
|
|
21275
|
-
function
|
|
21291
|
+
function hr(h, G) {
|
|
21276
21292
|
r("Binary", h, G);
|
|
21277
21293
|
}
|
|
21278
|
-
function
|
|
21294
|
+
function mr(h, G) {
|
|
21279
21295
|
r("Scopable", h, G);
|
|
21280
21296
|
}
|
|
21281
21297
|
function xr(h, G) {
|
|
@@ -21305,7 +21321,7 @@ function x5() {
|
|
|
21305
21321
|
function Xt(h, G) {
|
|
21306
21322
|
r("ExpressionWrapper", h, G);
|
|
21307
21323
|
}
|
|
21308
|
-
function
|
|
21324
|
+
function Zr(h, G) {
|
|
21309
21325
|
r("For", h, G);
|
|
21310
21326
|
}
|
|
21311
21327
|
function $n(h, G) {
|
|
@@ -24562,7 +24578,7 @@ function $m() {
|
|
|
24562
24578
|
this.scopeStack[0].declareFunctions.has(u.name) || super.checkLocalExport(u);
|
|
24563
24579
|
}
|
|
24564
24580
|
}
|
|
24565
|
-
const
|
|
24581
|
+
const Yr = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]), er = O`flow`({
|
|
24566
24582
|
AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",
|
|
24567
24583
|
AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",
|
|
24568
24584
|
AssignReservedType: ({
|
|
@@ -24826,7 +24842,7 @@ function $m() {
|
|
|
24826
24842
|
a === "_" && this.raise(er.UnexpectedReservedUnderscore, this.state.startLoc);
|
|
24827
24843
|
}
|
|
24828
24844
|
checkReservedType(a, d, g) {
|
|
24829
|
-
|
|
24845
|
+
Yr.has(a) && this.raise(g ? er.AssignReservedType : er.UnexpectedReservedType, d, {
|
|
24830
24846
|
reservedType: a
|
|
24831
24847
|
});
|
|
24832
24848
|
}
|
|
@@ -26239,7 +26255,7 @@ function $m() {
|
|
|
26239
26255
|
return !0;
|
|
26240
26256
|
return !1;
|
|
26241
26257
|
}
|
|
26242
|
-
const
|
|
26258
|
+
const Xr = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ni = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;
|
|
26243
26259
|
function Jn(ie) {
|
|
26244
26260
|
switch (ie) {
|
|
26245
26261
|
case 9:
|
|
@@ -27178,7 +27194,7 @@ function $m() {
|
|
|
27178
27194
|
return this.nextTokenStartSince(this.state.pos);
|
|
27179
27195
|
}
|
|
27180
27196
|
nextTokenStartSince(u) {
|
|
27181
|
-
return
|
|
27197
|
+
return Xr.lastIndex = u, Xr.test(this.input) ? Xr.lastIndex : u;
|
|
27182
27198
|
}
|
|
27183
27199
|
lookaheadCharCode() {
|
|
27184
27200
|
return this.lookaheadCharCodeSince(this.state.pos);
|
|
@@ -38130,12 +38146,12 @@ function e1() {
|
|
|
38130
38146
|
if ("sections" in yr) return Re(...arguments);
|
|
38131
38147
|
const Tr = new rt(yr, xe), zr = Ce.length, yn = Ie.length, wr = et(Tr), { resolvedSources: Br, sourcesContent: dn, ignoreList: _n } = Tr;
|
|
38132
38148
|
if (Qe(Ce, Br), Qe(Ie, Tr.names), dn) Qe(pt, dn);
|
|
38133
|
-
else for (let
|
|
38134
|
-
if (_n) for (let
|
|
38135
|
-
for (let
|
|
38136
|
-
const er = Nt +
|
|
38149
|
+
else for (let Yr = 0; Yr < Br.length; Yr++) pt.push(null);
|
|
38150
|
+
if (_n) for (let Yr = 0; Yr < _n.length; Yr++) xt.push(_n[Yr] + zr);
|
|
38151
|
+
for (let Yr = 0; Yr < wr.length; Yr++) {
|
|
38152
|
+
const er = Nt + Yr;
|
|
38137
38153
|
if (er > Qt) return;
|
|
38138
|
-
const rs = ut(Q, er), Cn =
|
|
38154
|
+
const rs = ut(Q, er), Cn = Yr === 0 ? Mt : 0, pn = wr[Yr];
|
|
38139
38155
|
for (let sr = 0; sr < pn.length; sr++) {
|
|
38140
38156
|
const Tn = pn[sr], Ei = Cn + Tn[k];
|
|
38141
38157
|
if (er === Qt && Ei >= or) return;
|
|
@@ -66426,7 +66442,7 @@ class I9 {
|
|
|
66426
66442
|
}
|
|
66427
66443
|
function qE(t) {
|
|
66428
66444
|
return new SharedWorker(
|
|
66429
|
-
"" + new URL("assets/shared-worker-
|
|
66445
|
+
"" + new URL("assets/shared-worker-CX8Jyhi5.js", import.meta.url).href,
|
|
66430
66446
|
{
|
|
66431
66447
|
name: t == null ? void 0 : t.name
|
|
66432
66448
|
}
|
|
@@ -67576,7 +67592,7 @@ class rF {
|
|
|
67576
67592
|
/* ─ Persistence ── */
|
|
67577
67593
|
_restore() {
|
|
67578
67594
|
try {
|
|
67579
|
-
const e = localStorage.getItem(
|
|
67595
|
+
const e = localStorage.getItem(Gr.activityBar);
|
|
67580
67596
|
if (!e) return;
|
|
67581
67597
|
const r = JSON.parse(e), n = (i) => i === "files" || i === "chat" || i === "settings" || i === "functions";
|
|
67582
67598
|
r && typeof r == "object" && (this._state = {
|
|
@@ -67589,7 +67605,7 @@ class rF {
|
|
|
67589
67605
|
}
|
|
67590
67606
|
_persist() {
|
|
67591
67607
|
try {
|
|
67592
|
-
localStorage.setItem(
|
|
67608
|
+
localStorage.setItem(Gr.activityBar, JSON.stringify(this._state));
|
|
67593
67609
|
} catch (e) {
|
|
67594
67610
|
HE.debug("Failed to persist activity state:", e);
|
|
67595
67611
|
}
|
|
@@ -67733,7 +67749,7 @@ class iF {
|
|
|
67733
67749
|
_restore() {
|
|
67734
67750
|
var e;
|
|
67735
67751
|
try {
|
|
67736
|
-
const r = localStorage.getItem(
|
|
67752
|
+
const r = localStorage.getItem(Gr.editorArea);
|
|
67737
67753
|
if (!r) return;
|
|
67738
67754
|
const n = JSON.parse(r);
|
|
67739
67755
|
if (!n || !Array.isArray(n.tabs)) return;
|
|
@@ -67754,7 +67770,7 @@ class iF {
|
|
|
67754
67770
|
_persist() {
|
|
67755
67771
|
try {
|
|
67756
67772
|
if (this._tabs.length === 0) {
|
|
67757
|
-
localStorage.removeItem(
|
|
67773
|
+
localStorage.removeItem(Gr.editorArea);
|
|
67758
67774
|
return;
|
|
67759
67775
|
}
|
|
67760
67776
|
const e = {
|
|
@@ -67765,7 +67781,7 @@ class iF {
|
|
|
67765
67781
|
})),
|
|
67766
67782
|
activeFilePath: this._activeFilePath
|
|
67767
67783
|
};
|
|
67768
|
-
localStorage.setItem(
|
|
67784
|
+
localStorage.setItem(Gr.editorArea, JSON.stringify(e));
|
|
67769
67785
|
} catch (e) {
|
|
67770
67786
|
KE.debug("Failed to persist editor area state:", e);
|
|
67771
67787
|
}
|
|
@@ -67965,7 +67981,7 @@ class aF {
|
|
|
67965
67981
|
const e = {};
|
|
67966
67982
|
this._expanded.forEach((r, n) => {
|
|
67967
67983
|
r && (e[n] = !0);
|
|
67968
|
-
}), Object.keys(e).length > 0 ? localStorage.setItem(
|
|
67984
|
+
}), Object.keys(e).length > 0 ? localStorage.setItem(Gr.sessionTreeExpanded, JSON.stringify(e)) : localStorage.removeItem(Gr.sessionTreeExpanded);
|
|
67969
67985
|
} catch {
|
|
67970
67986
|
}
|
|
67971
67987
|
}
|
|
@@ -68266,7 +68282,7 @@ class cF {
|
|
|
68266
68282
|
_restore() {
|
|
68267
68283
|
var e, r;
|
|
68268
68284
|
try {
|
|
68269
|
-
const n = localStorage.getItem(
|
|
68285
|
+
const n = localStorage.getItem(Gr.settings);
|
|
68270
68286
|
if (!n) return;
|
|
68271
68287
|
const i = JSON.parse(n);
|
|
68272
68288
|
this._state = {
|
|
@@ -68296,7 +68312,7 @@ class cF {
|
|
|
68296
68312
|
/** Persist settings to localStorage */
|
|
68297
68313
|
_persist() {
|
|
68298
68314
|
try {
|
|
68299
|
-
localStorage.setItem(
|
|
68315
|
+
localStorage.setItem(Gr.settings, JSON.stringify(this._state));
|
|
68300
68316
|
} catch (e) {
|
|
68301
68317
|
GE.debug("Failed to persist settings:", e);
|
|
68302
68318
|
}
|
|
@@ -68331,7 +68347,7 @@ class cF {
|
|
|
68331
68347
|
}
|
|
68332
68348
|
}
|
|
68333
68349
|
const fI = Yt("I18n"), Ht = "zh-CN", Cr = ["en-US"], YE = {
|
|
68334
|
-
"en-US": async () => (await import("./en-US-
|
|
68350
|
+
"en-US": async () => (await import("./en-US-15fqKTGu.js")).default
|
|
68335
68351
|
}, { getLocale: wv, setLocale: hI } = Z9({
|
|
68336
68352
|
sourceLocale: Ht,
|
|
68337
68353
|
targetLocales: Cr,
|
|
@@ -69819,7 +69835,7 @@ const OF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
69819
69835
|
loadScenariosFromURL: kF,
|
|
69820
69836
|
parseFrontmatter: t_
|
|
69821
69837
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
69822
|
-
var
|
|
69838
|
+
var Jr;
|
|
69823
69839
|
(function(t) {
|
|
69824
69840
|
t.assertEqual = (i) => {
|
|
69825
69841
|
};
|
|
@@ -69855,7 +69871,7 @@ var Yr;
|
|
|
69855
69871
|
return i.map((o) => typeof o == "string" ? `'${o}'` : o).join(s);
|
|
69856
69872
|
}
|
|
69857
69873
|
t.joinValues = n, t.jsonStringifyReplacer = (i, s) => typeof s == "bigint" ? s.toString() : s;
|
|
69858
|
-
})(
|
|
69874
|
+
})(Jr || (Jr = {}));
|
|
69859
69875
|
var Tv;
|
|
69860
69876
|
(function(t) {
|
|
69861
69877
|
t.mergeShapes = (e, r) => ({
|
|
@@ -69864,7 +69880,7 @@ var Tv;
|
|
|
69864
69880
|
// second overwrites first
|
|
69865
69881
|
});
|
|
69866
69882
|
})(Tv || (Tv = {}));
|
|
69867
|
-
const ir =
|
|
69883
|
+
const ir = Jr.arrayToEnum([
|
|
69868
69884
|
"string",
|
|
69869
69885
|
"nan",
|
|
69870
69886
|
"number",
|
|
@@ -69906,7 +69922,7 @@ const ir = Yr.arrayToEnum([
|
|
|
69906
69922
|
default:
|
|
69907
69923
|
return ir.unknown;
|
|
69908
69924
|
}
|
|
69909
|
-
}, Vt =
|
|
69925
|
+
}, Vt = Jr.arrayToEnum([
|
|
69910
69926
|
"invalid_type",
|
|
69911
69927
|
"invalid_literal",
|
|
69912
69928
|
"custom",
|
|
@@ -69968,7 +69984,7 @@ class Vs extends Error {
|
|
|
69968
69984
|
return this.message;
|
|
69969
69985
|
}
|
|
69970
69986
|
get message() {
|
|
69971
|
-
return JSON.stringify(this.issues,
|
|
69987
|
+
return JSON.stringify(this.issues, Jr.jsonStringifyReplacer, 2);
|
|
69972
69988
|
}
|
|
69973
69989
|
get isEmpty() {
|
|
69974
69990
|
return this.issues.length === 0;
|
|
@@ -69995,19 +70011,19 @@ const pu = (t, e) => {
|
|
|
69995
70011
|
t.received === ir.undefined ? r = "Required" : r = `Expected ${t.expected}, received ${t.received}`;
|
|
69996
70012
|
break;
|
|
69997
70013
|
case Vt.invalid_literal:
|
|
69998
|
-
r = `Invalid literal value, expected ${JSON.stringify(t.expected,
|
|
70014
|
+
r = `Invalid literal value, expected ${JSON.stringify(t.expected, Jr.jsonStringifyReplacer)}`;
|
|
69999
70015
|
break;
|
|
70000
70016
|
case Vt.unrecognized_keys:
|
|
70001
|
-
r = `Unrecognized key(s) in object: ${
|
|
70017
|
+
r = `Unrecognized key(s) in object: ${Jr.joinValues(t.keys, ", ")}`;
|
|
70002
70018
|
break;
|
|
70003
70019
|
case Vt.invalid_union:
|
|
70004
70020
|
r = "Invalid input";
|
|
70005
70021
|
break;
|
|
70006
70022
|
case Vt.invalid_union_discriminator:
|
|
70007
|
-
r = `Invalid discriminator value. Expected ${
|
|
70023
|
+
r = `Invalid discriminator value. Expected ${Jr.joinValues(t.options)}`;
|
|
70008
70024
|
break;
|
|
70009
70025
|
case Vt.invalid_enum_value:
|
|
70010
|
-
r = `Invalid enum value. Expected ${
|
|
70026
|
+
r = `Invalid enum value. Expected ${Jr.joinValues(t.options)}, received '${t.received}'`;
|
|
70011
70027
|
break;
|
|
70012
70028
|
case Vt.invalid_arguments:
|
|
70013
70029
|
r = "Invalid function arguments";
|
|
@@ -70019,7 +70035,7 @@ const pu = (t, e) => {
|
|
|
70019
70035
|
r = "Invalid date";
|
|
70020
70036
|
break;
|
|
70021
70037
|
case Vt.invalid_string:
|
|
70022
|
-
typeof t.validation == "object" ? "includes" in t.validation ? (r = `Invalid input: must include "${t.validation.includes}"`, typeof t.validation.position == "number" && (r = `${r} at one or more positions greater than or equal to ${t.validation.position}`)) : "startsWith" in t.validation ? r = `Invalid input: must start with "${t.validation.startsWith}"` : "endsWith" in t.validation ? r = `Invalid input: must end with "${t.validation.endsWith}"` :
|
|
70038
|
+
typeof t.validation == "object" ? "includes" in t.validation ? (r = `Invalid input: must include "${t.validation.includes}"`, typeof t.validation.position == "number" && (r = `${r} at one or more positions greater than or equal to ${t.validation.position}`)) : "startsWith" in t.validation ? r = `Invalid input: must start with "${t.validation.startsWith}"` : "endsWith" in t.validation ? r = `Invalid input: must end with "${t.validation.endsWith}"` : Jr.assertNever(t.validation) : t.validation !== "regex" ? r = `Invalid ${t.validation}` : r = "Invalid";
|
|
70023
70039
|
break;
|
|
70024
70040
|
case Vt.too_small:
|
|
70025
70041
|
t.type === "array" ? r = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "more than"} ${t.minimum} element(s)` : t.type === "string" ? r = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "over"} ${t.minimum} character(s)` : t.type === "number" ? r = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${t.minimum}` : t.type === "bigint" ? r = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${t.minimum}` : t.type === "date" ? r = `Date must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(t.minimum))}` : r = "Invalid input";
|
|
@@ -70040,7 +70056,7 @@ const pu = (t, e) => {
|
|
|
70040
70056
|
r = "Number must be finite";
|
|
70041
70057
|
break;
|
|
70042
70058
|
default:
|
|
70043
|
-
r = e.defaultError,
|
|
70059
|
+
r = e.defaultError, Jr.assertNever(t);
|
|
70044
70060
|
}
|
|
70045
70061
|
return { message: r };
|
|
70046
70062
|
};
|
|
@@ -70579,7 +70595,7 @@ class Co extends qr {
|
|
|
70579
70595
|
validation: "base64url",
|
|
70580
70596
|
code: Vt.invalid_string,
|
|
70581
70597
|
message: s.message
|
|
70582
|
-
}), n.dirty()) :
|
|
70598
|
+
}), n.dirty()) : Jr.assertNever(s);
|
|
70583
70599
|
return { status: n.value, value: e.data };
|
|
70584
70600
|
}
|
|
70585
70601
|
_regex(e, r, n) {
|
|
@@ -70830,7 +70846,7 @@ class Qa extends qr {
|
|
|
70830
70846
|
let n;
|
|
70831
70847
|
const i = new qi();
|
|
70832
70848
|
for (const s of this._def.checks)
|
|
70833
|
-
s.kind === "int" ?
|
|
70849
|
+
s.kind === "int" ? Jr.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), Zt(n, {
|
|
70834
70850
|
code: Vt.invalid_type,
|
|
70835
70851
|
expected: "integer",
|
|
70836
70852
|
received: "float",
|
|
@@ -70856,7 +70872,7 @@ class Qa extends qr {
|
|
|
70856
70872
|
}), i.dirty()) : s.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), Zt(n, {
|
|
70857
70873
|
code: Vt.not_finite,
|
|
70858
70874
|
message: s.message
|
|
70859
|
-
}), i.dirty()) :
|
|
70875
|
+
}), i.dirty()) : Jr.assertNever(s);
|
|
70860
70876
|
return { status: i.value, value: e.data };
|
|
70861
70877
|
}
|
|
70862
70878
|
gte(e, r) {
|
|
@@ -70968,7 +70984,7 @@ class Qa extends qr {
|
|
|
70968
70984
|
return e;
|
|
70969
70985
|
}
|
|
70970
70986
|
get isInt() {
|
|
70971
|
-
return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" &&
|
|
70987
|
+
return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && Jr.isInteger(e.value));
|
|
70972
70988
|
}
|
|
70973
70989
|
get isFinite() {
|
|
70974
70990
|
let e = null, r = null;
|
|
@@ -71018,7 +71034,7 @@ class el extends qr {
|
|
|
71018
71034
|
code: Vt.not_multiple_of,
|
|
71019
71035
|
multipleOf: s.value,
|
|
71020
71036
|
message: s.message
|
|
71021
|
-
}), i.dirty()) :
|
|
71037
|
+
}), i.dirty()) : Jr.assertNever(s);
|
|
71022
71038
|
return { status: i.value, value: e.data };
|
|
71023
71039
|
}
|
|
71024
71040
|
_getInvalidInput(e) {
|
|
@@ -71170,7 +71186,7 @@ class Ql extends qr {
|
|
|
71170
71186
|
exact: !1,
|
|
71171
71187
|
maximum: s.value,
|
|
71172
71188
|
type: "date"
|
|
71173
|
-
}), n.dirty()) :
|
|
71189
|
+
}), n.dirty()) : Jr.assertNever(s);
|
|
71174
71190
|
return {
|
|
71175
71191
|
status: n.value,
|
|
71176
71192
|
value: new Date(e.data.getTime())
|
|
@@ -71417,7 +71433,7 @@ class Pn extends qr {
|
|
|
71417
71433
|
_getCached() {
|
|
71418
71434
|
if (this._cached !== null)
|
|
71419
71435
|
return this._cached;
|
|
71420
|
-
const e = this._def.shape(), r =
|
|
71436
|
+
const e = this._def.shape(), r = Jr.objectKeys(e);
|
|
71421
71437
|
return this._cached = { shape: e, keys: r }, this._cached;
|
|
71422
71438
|
}
|
|
71423
71439
|
_parse(e) {
|
|
@@ -71624,7 +71640,7 @@ class Pn extends qr {
|
|
|
71624
71640
|
}
|
|
71625
71641
|
pick(e) {
|
|
71626
71642
|
const r = {};
|
|
71627
|
-
for (const n of
|
|
71643
|
+
for (const n of Jr.objectKeys(e))
|
|
71628
71644
|
e[n] && this.shape[n] && (r[n] = this.shape[n]);
|
|
71629
71645
|
return new Pn({
|
|
71630
71646
|
...this._def,
|
|
@@ -71633,7 +71649,7 @@ class Pn extends qr {
|
|
|
71633
71649
|
}
|
|
71634
71650
|
omit(e) {
|
|
71635
71651
|
const r = {};
|
|
71636
|
-
for (const n of
|
|
71652
|
+
for (const n of Jr.objectKeys(this.shape))
|
|
71637
71653
|
e[n] || (r[n] = this.shape[n]);
|
|
71638
71654
|
return new Pn({
|
|
71639
71655
|
...this._def,
|
|
@@ -71648,7 +71664,7 @@ class Pn extends qr {
|
|
|
71648
71664
|
}
|
|
71649
71665
|
partial(e) {
|
|
71650
71666
|
const r = {};
|
|
71651
|
-
for (const n of
|
|
71667
|
+
for (const n of Jr.objectKeys(this.shape)) {
|
|
71652
71668
|
const i = this.shape[n];
|
|
71653
71669
|
e && !e[n] ? r[n] = i : r[n] = i.optional();
|
|
71654
71670
|
}
|
|
@@ -71659,7 +71675,7 @@ class Pn extends qr {
|
|
|
71659
71675
|
}
|
|
71660
71676
|
required(e) {
|
|
71661
71677
|
const r = {};
|
|
71662
|
-
for (const n of
|
|
71678
|
+
for (const n of Jr.objectKeys(this.shape))
|
|
71663
71679
|
if (e && !e[n])
|
|
71664
71680
|
r[n] = this.shape[n];
|
|
71665
71681
|
else {
|
|
@@ -71674,7 +71690,7 @@ class Pn extends qr {
|
|
|
71674
71690
|
});
|
|
71675
71691
|
}
|
|
71676
71692
|
keyof() {
|
|
71677
|
-
return wI(
|
|
71693
|
+
return wI(Jr.objectKeys(this.shape));
|
|
71678
71694
|
}
|
|
71679
71695
|
}
|
|
71680
71696
|
Pn.create = (t, e) => new Pn({
|
|
@@ -71771,7 +71787,7 @@ ip.create = (t, e) => new ip({
|
|
|
71771
71787
|
typeName: vr.ZodUnion,
|
|
71772
71788
|
...Mr(e)
|
|
71773
71789
|
});
|
|
71774
|
-
const ma = (t) => t instanceof ap ? ma(t.schema) : t instanceof Oo ? ma(t.innerType()) : t instanceof lp ? [t.value] : t instanceof tl ? t.options : t instanceof cp ?
|
|
71790
|
+
const ma = (t) => t instanceof ap ? ma(t.schema) : t instanceof Oo ? ma(t.innerType()) : t instanceof lp ? [t.value] : t instanceof tl ? t.options : t instanceof cp ? Jr.objectValues(t.enum) : t instanceof up ? ma(t._def.innerType) : t instanceof rp ? [void 0] : t instanceof np ? [null] : t instanceof zo ? [void 0, ...ma(t.unwrap())] : t instanceof rl ? [null, ...ma(t.unwrap())] : t instanceof n_ || t instanceof pp ? ma(t.unwrap()) : t instanceof dp ? ma(t._def.innerType) : [];
|
|
71775
71791
|
class Ay extends qr {
|
|
71776
71792
|
_parse(e) {
|
|
71777
71793
|
const { ctx: r } = this._processInputParams(e);
|
|
@@ -71839,7 +71855,7 @@ function Pv(t, e) {
|
|
|
71839
71855
|
if (t === e)
|
|
71840
71856
|
return { valid: !0, data: t };
|
|
71841
71857
|
if (r === ir.object && n === ir.object) {
|
|
71842
|
-
const i =
|
|
71858
|
+
const i = Jr.objectKeys(e), s = Jr.objectKeys(t).filter((l) => i.indexOf(l) !== -1), o = { ...t, ...e };
|
|
71843
71859
|
for (const l of s) {
|
|
71844
71860
|
const c = Pv(t[l], e[l]);
|
|
71845
71861
|
if (!c.valid)
|
|
@@ -72239,7 +72255,7 @@ class tl extends qr {
|
|
|
72239
72255
|
if (typeof e.data != "string") {
|
|
72240
72256
|
const r = this._getOrReturnCtx(e), n = this._def.values;
|
|
72241
72257
|
return Zt(r, {
|
|
72242
|
-
expected:
|
|
72258
|
+
expected: Jr.joinValues(n),
|
|
72243
72259
|
received: r.parsedType,
|
|
72244
72260
|
code: Vt.invalid_type
|
|
72245
72261
|
}), gr;
|
|
@@ -72291,17 +72307,17 @@ class tl extends qr {
|
|
|
72291
72307
|
tl.create = wI;
|
|
72292
72308
|
class cp extends qr {
|
|
72293
72309
|
_parse(e) {
|
|
72294
|
-
const r =
|
|
72310
|
+
const r = Jr.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
72295
72311
|
if (n.parsedType !== ir.string && n.parsedType !== ir.number) {
|
|
72296
|
-
const i =
|
|
72312
|
+
const i = Jr.objectValues(r);
|
|
72297
72313
|
return Zt(n, {
|
|
72298
|
-
expected:
|
|
72314
|
+
expected: Jr.joinValues(i),
|
|
72299
72315
|
received: n.parsedType,
|
|
72300
72316
|
code: Vt.invalid_type
|
|
72301
72317
|
}), gr;
|
|
72302
72318
|
}
|
|
72303
|
-
if (this._cache || (this._cache = new Set(
|
|
72304
|
-
const i =
|
|
72319
|
+
if (this._cache || (this._cache = new Set(Jr.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
|
|
72320
|
+
const i = Jr.objectValues(r);
|
|
72305
72321
|
return Zt(n, {
|
|
72306
72322
|
received: n.data,
|
|
72307
72323
|
code: Vt.invalid_enum_value,
|
|
@@ -72420,7 +72436,7 @@ class Oo extends qr {
|
|
|
72420
72436
|
status: r.value,
|
|
72421
72437
|
value: l
|
|
72422
72438
|
})) : gr);
|
|
72423
|
-
|
|
72439
|
+
Jr.assertNever(i);
|
|
72424
72440
|
}
|
|
72425
72441
|
}
|
|
72426
72442
|
Oo.create = (t, e, r) => new Oo({
|
|
@@ -72759,7 +72775,7 @@ const ij = (t, e = {
|
|
|
72759
72775
|
union: mj,
|
|
72760
72776
|
unknown: Xh,
|
|
72761
72777
|
get util() {
|
|
72762
|
-
return
|
|
72778
|
+
return Jr;
|
|
72763
72779
|
},
|
|
72764
72780
|
void: fj
|
|
72765
72781
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -73439,7 +73455,7 @@ function oA(t) {
|
|
|
73439
73455
|
defaultActivity: t.defaultActivity ?? Sb.defaultActivity
|
|
73440
73456
|
} : { ...Sb };
|
|
73441
73457
|
}
|
|
73442
|
-
const Zj =
|
|
73458
|
+
const Zj = fr`
|
|
73443
73459
|
:host {
|
|
73444
73460
|
display: block;
|
|
73445
73461
|
position: absolute;
|
|
@@ -73562,7 +73578,7 @@ var Qj = Object.defineProperty, eq = Object.getOwnPropertyDescriptor, l_ = (t, e
|
|
|
73562
73578
|
return n && i && Qj(e, r, i), i;
|
|
73563
73579
|
};
|
|
73564
73580
|
const tq = Yt("ToolConfirm");
|
|
73565
|
-
let fp = class extends
|
|
73581
|
+
let fp = class extends pr {
|
|
73566
73582
|
constructor() {
|
|
73567
73583
|
super(...arguments), this._localeCtx = {
|
|
73568
73584
|
locale: Ht,
|
|
@@ -73631,7 +73647,7 @@ fp = l_([
|
|
|
73631
73647
|
Rr(),
|
|
73632
73648
|
_r("rtc-tool-confirm")
|
|
73633
73649
|
], fp);
|
|
73634
|
-
const rq =
|
|
73650
|
+
const rq = fr`
|
|
73635
73651
|
:host {
|
|
73636
73652
|
display: block;
|
|
73637
73653
|
position: absolute;
|
|
@@ -74004,7 +74020,7 @@ var nq = Object.defineProperty, iq = Object.getOwnPropertyDescriptor, xc = (t, e
|
|
|
74004
74020
|
return n && i && nq(e, r, i), i;
|
|
74005
74021
|
};
|
|
74006
74022
|
const sq = Yt("AskUser"), jc = -1;
|
|
74007
|
-
let Ca = class extends
|
|
74023
|
+
let Ca = class extends pr {
|
|
74008
74024
|
constructor() {
|
|
74009
74025
|
super(...arguments), this._localeCtx = {
|
|
74010
74026
|
locale: Ht,
|
|
@@ -74294,7 +74310,7 @@ Ca = xc([
|
|
|
74294
74310
|
Rr(),
|
|
74295
74311
|
_r("rtc-ask-user")
|
|
74296
74312
|
], Ca);
|
|
74297
|
-
const oq =
|
|
74313
|
+
const oq = fr`
|
|
74298
74314
|
:host {
|
|
74299
74315
|
display: block;
|
|
74300
74316
|
position: absolute;
|
|
@@ -74393,7 +74409,7 @@ var aq = Object.defineProperty, lq = Object.getOwnPropertyDescriptor, c_ = (t, e
|
|
|
74393
74409
|
return n && i && aq(e, r, i), i;
|
|
74394
74410
|
};
|
|
74395
74411
|
const cq = Yt("RestoreConfirm");
|
|
74396
|
-
let hp = class extends
|
|
74412
|
+
let hp = class extends pr {
|
|
74397
74413
|
constructor() {
|
|
74398
74414
|
super(...arguments), this._localeCtx = {
|
|
74399
74415
|
locale: Ht,
|
|
@@ -74453,7 +74469,7 @@ hp = c_([
|
|
|
74453
74469
|
Rr(),
|
|
74454
74470
|
_r("rtc-restore-confirm")
|
|
74455
74471
|
], hp);
|
|
74456
|
-
const uq =
|
|
74472
|
+
const uq = fr`
|
|
74457
74473
|
:host {
|
|
74458
74474
|
display: block;
|
|
74459
74475
|
position: absolute;
|
|
@@ -74675,7 +74691,7 @@ var dq = Object.defineProperty, pq = Object.getOwnPropertyDescriptor, Uu = (t, e
|
|
|
74675
74691
|
return n && i && dq(e, r, i), i;
|
|
74676
74692
|
};
|
|
74677
74693
|
const fq = Yt("ExportDialog"), hq = 100, mq = 100, yq = 2e3, gq = 200;
|
|
74678
|
-
let il = class extends
|
|
74694
|
+
let il = class extends pr {
|
|
74679
74695
|
constructor() {
|
|
74680
74696
|
super(...arguments), this._localeCtx = {
|
|
74681
74697
|
locale: Ht,
|
|
@@ -74826,7 +74842,7 @@ il = Uu([
|
|
|
74826
74842
|
Rr(),
|
|
74827
74843
|
_r("rtc-export-dialog")
|
|
74828
74844
|
], il);
|
|
74829
|
-
const bq =
|
|
74845
|
+
const bq = fr`
|
|
74830
74846
|
:host {
|
|
74831
74847
|
display: block;
|
|
74832
74848
|
position: relative;
|
|
@@ -74996,7 +75012,7 @@ var S$ = Object.defineProperty, T$ = Object.getOwnPropertyDescriptor, Ra = (t, e
|
|
|
74996
75012
|
return n && i && S$(e, r, i), i;
|
|
74997
75013
|
};
|
|
74998
75014
|
const E$ = Yt("TitleBar");
|
|
74999
|
-
let No = class extends
|
|
75015
|
+
let No = class extends pr {
|
|
75000
75016
|
constructor() {
|
|
75001
75017
|
super(...arguments), this.appLabel = "RTC Agent", this.windowMode = "normal", this.connectionState = "disconnected", this.showMinimize = !0, this.showMaximize = !0, this.connectionFailed = !1, this.connectionError = "", this._localeCtx = {
|
|
75002
75018
|
locale: Ht,
|
|
@@ -75113,7 +75129,7 @@ No = Ra([
|
|
|
75113
75129
|
Rr(),
|
|
75114
75130
|
_r("rtc-title-bar")
|
|
75115
75131
|
], No);
|
|
75116
|
-
const A$ =
|
|
75132
|
+
const A$ = fr`
|
|
75117
75133
|
/* ── Host element ── */
|
|
75118
75134
|
:host {
|
|
75119
75135
|
display: block;
|
|
@@ -75228,7 +75244,7 @@ var P$ = Object.defineProperty, C$ = Object.getOwnPropertyDescriptor, Ny = (t, e
|
|
|
75228
75244
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
75229
75245
|
return n && i && P$(e, r, i), i;
|
|
75230
75246
|
};
|
|
75231
|
-
let mu = class extends
|
|
75247
|
+
let mu = class extends pr {
|
|
75232
75248
|
constructor() {
|
|
75233
75249
|
super(...arguments), this.theme = "system", this._logoCtx = { light: "", dark: "" }, this._systemDark = !1, this._boundOnMediaChange = () => {
|
|
75234
75250
|
var t;
|
|
@@ -75251,7 +75267,7 @@ let mu = class extends dr {
|
|
|
75251
75267
|
return e ? lt`<span part="logo" .innerHTML=${e}></span>` : lt`<span part="logo">${Jj(t)}</span>`;
|
|
75252
75268
|
}
|
|
75253
75269
|
};
|
|
75254
|
-
mu.styles =
|
|
75270
|
+
mu.styles = fr`
|
|
75255
75271
|
:host {
|
|
75256
75272
|
display: inline-flex;
|
|
75257
75273
|
align-items: center;
|
|
@@ -75298,7 +75314,7 @@ const aA = Yt("LoginPage"), lA = {
|
|
|
75298
75314
|
color: "#6c757d"
|
|
75299
75315
|
}
|
|
75300
75316
|
};
|
|
75301
|
-
let Ko = class extends
|
|
75317
|
+
let Ko = class extends pr {
|
|
75302
75318
|
constructor() {
|
|
75303
75319
|
super(...arguments), this._localeCtx = {
|
|
75304
75320
|
locale: Ht,
|
|
@@ -75422,7 +75438,7 @@ Ko = yl([
|
|
|
75422
75438
|
Rr(),
|
|
75423
75439
|
_r("rtc-login-page")
|
|
75424
75440
|
], Ko);
|
|
75425
|
-
const O$ =
|
|
75441
|
+
const O$ = fr`
|
|
75426
75442
|
:host {
|
|
75427
75443
|
display: block;
|
|
75428
75444
|
position: absolute;
|
|
@@ -75604,7 +75620,7 @@ var N$ = Object.defineProperty, D$ = Object.getOwnPropertyDescriptor, Vu = (t, e
|
|
|
75604
75620
|
return n && i && N$(e, r, i), i;
|
|
75605
75621
|
};
|
|
75606
75622
|
const M$ = Yt("LoginDialog"), B$ = 800;
|
|
75607
|
-
let sl = class extends
|
|
75623
|
+
let sl = class extends pr {
|
|
75608
75624
|
constructor() {
|
|
75609
75625
|
super(...arguments), this.provider = "mock", this._status = "opening", this._errorMessage = "", this._authUrl = "", this._localeCtx = {
|
|
75610
75626
|
locale: Ht,
|
|
@@ -75699,7 +75715,7 @@ let sl = class extends dr {
|
|
|
75699
75715
|
this._loginStarted = !0, this._status = "opening", this._errorMessage = "", this._authUrl = "";
|
|
75700
75716
|
try {
|
|
75701
75717
|
const t = await this._oauth2Client.getAuthorizationUrl(this.provider);
|
|
75702
|
-
sessionStorage.setItem(
|
|
75718
|
+
sessionStorage.setItem(Gr.oauthState, t.state), this._authUrl = t.redirect_url, this._openPopup(t.redirect_url), this._messageHandler = this._handleCallback.bind(this), window.addEventListener("message", this._messageHandler), this._status = "waiting";
|
|
75703
75719
|
} catch (t) {
|
|
75704
75720
|
this._status = "error", this._errorMessage = t instanceof Error ? t.message : Oe("未知错误"), this._loginStarted = !1;
|
|
75705
75721
|
}
|
|
@@ -75736,7 +75752,7 @@ let sl = class extends dr {
|
|
|
75736
75752
|
this._status = "error", this._errorMessage = n, this._loginStarted = !1;
|
|
75737
75753
|
return;
|
|
75738
75754
|
}
|
|
75739
|
-
const s = sessionStorage.getItem(
|
|
75755
|
+
const s = sessionStorage.getItem(Gr.oauthState);
|
|
75740
75756
|
if (r !== s) {
|
|
75741
75757
|
this._status = "error", this._errorMessage = Oe("State 校验失败,请重试"), this._loginStarted = !1;
|
|
75742
75758
|
return;
|
|
@@ -75749,7 +75765,7 @@ let sl = class extends dr {
|
|
|
75749
75765
|
D4(),
|
|
75750
75766
|
navigator.userAgent
|
|
75751
75767
|
);
|
|
75752
|
-
sessionStorage.removeItem(
|
|
75768
|
+
sessionStorage.removeItem(Gr.oauthState), this._status = "success", this.dispatchEvent(new CustomEvent("rtc-login-complete", {
|
|
75753
75769
|
detail: {
|
|
75754
75770
|
accessToken: o.access_token,
|
|
75755
75771
|
refreshToken: o.refresh_token,
|
|
@@ -75896,7 +75912,7 @@ var q$ = Object.defineProperty, $$ = Object.getOwnPropertyDescriptor, h_ = (t, e
|
|
|
75896
75912
|
return n && i && q$(e, r, i), i;
|
|
75897
75913
|
};
|
|
75898
75914
|
const U$ = Yt("Toast");
|
|
75899
|
-
let yp = class extends
|
|
75915
|
+
let yp = class extends pr {
|
|
75900
75916
|
constructor() {
|
|
75901
75917
|
super(...arguments), this._localeCtx = {
|
|
75902
75918
|
locale: Ht,
|
|
@@ -75953,7 +75969,7 @@ let yp = class extends dr {
|
|
|
75953
75969
|
);
|
|
75954
75970
|
}
|
|
75955
75971
|
};
|
|
75956
|
-
yp.styles =
|
|
75972
|
+
yp.styles = fr`
|
|
75957
75973
|
:host {
|
|
75958
75974
|
position: absolute;
|
|
75959
75975
|
top: var(--rtc-spacing-xl, 32px);
|
|
@@ -76113,7 +76129,7 @@ yp = h_([
|
|
|
76113
76129
|
Rr(),
|
|
76114
76130
|
_r("rtc-toast")
|
|
76115
76131
|
], yp);
|
|
76116
|
-
const V$ =
|
|
76132
|
+
const V$ = fr`
|
|
76117
76133
|
:host {
|
|
76118
76134
|
width: 48px;
|
|
76119
76135
|
background: var(--rtc-color-bg-tertiary);
|
|
@@ -76184,7 +76200,7 @@ var z$ = Object.defineProperty, W$ = Object.getOwnPropertyDescriptor, zu = (t, e
|
|
|
76184
76200
|
return n && i && z$(e, r, i), i;
|
|
76185
76201
|
};
|
|
76186
76202
|
const H$ = Yt("ActivityBar"), K$ = ["files", "chat", "functions", "settings"];
|
|
76187
|
-
let ol = class extends
|
|
76203
|
+
let ol = class extends pr {
|
|
76188
76204
|
constructor() {
|
|
76189
76205
|
super(...arguments), this.active = "chat", this.showFiles = !0, this.showSettings = !0, this.showFunctions = !0, this._localeCtx = {
|
|
76190
76206
|
locale: Ht,
|
|
@@ -76350,7 +76366,7 @@ ol = zu([
|
|
|
76350
76366
|
Rr(),
|
|
76351
76367
|
_r("rtc-activity-bar")
|
|
76352
76368
|
], ol);
|
|
76353
|
-
const G$ =
|
|
76369
|
+
const G$ = fr`
|
|
76354
76370
|
:host {
|
|
76355
76371
|
display: flex;
|
|
76356
76372
|
flex-direction: column;
|
|
@@ -76474,7 +76490,7 @@ const G$ = pr`
|
|
|
76474
76490
|
.sidebar-content::-webkit-scrollbar-thumb:hover {
|
|
76475
76491
|
background: var(--rtc-color-border-hover, var(--rtc-color-text-tertiary));
|
|
76476
76492
|
}
|
|
76477
|
-
`, Y$ =
|
|
76493
|
+
`, Y$ = fr`
|
|
76478
76494
|
:host {
|
|
76479
76495
|
display: block;
|
|
76480
76496
|
background: transparent;
|
|
@@ -76661,7 +76677,7 @@ const Z$ = Yt("FileTreeItem"), Q$ = lt`
|
|
|
76661
76677
|
<path d="M4.5 2l4 4-4 4V2z"/>
|
|
76662
76678
|
</svg>
|
|
76663
76679
|
`;
|
|
76664
|
-
let al = class extends
|
|
76680
|
+
let al = class extends pr {
|
|
76665
76681
|
constructor() {
|
|
76666
76682
|
super(...arguments), this._localeCtx = {
|
|
76667
76683
|
locale: Ht,
|
|
@@ -76860,7 +76876,7 @@ var eU = Object.defineProperty, tU = Object.getOwnPropertyDescriptor, Hu = (t, e
|
|
|
76860
76876
|
return n && i && eU(e, r, i), i;
|
|
76861
76877
|
};
|
|
76862
76878
|
const rU = Yt("FileExplorer");
|
|
76863
|
-
let ll = class extends
|
|
76879
|
+
let ll = class extends pr {
|
|
76864
76880
|
constructor() {
|
|
76865
76881
|
super(...arguments), this._localeCtx = {
|
|
76866
76882
|
locale: Ht,
|
|
@@ -77172,7 +77188,7 @@ ll = Hu([
|
|
|
77172
77188
|
Rr(),
|
|
77173
77189
|
_r("rtc-file-explorer")
|
|
77174
77190
|
], ll);
|
|
77175
|
-
const nU =
|
|
77191
|
+
const nU = fr`
|
|
77176
77192
|
:host {
|
|
77177
77193
|
display: flex;
|
|
77178
77194
|
flex-direction: column;
|
|
@@ -77271,7 +77287,7 @@ const nU = pr`
|
|
|
77271
77287
|
:host([theme='light']) .welcome-title {
|
|
77272
77288
|
color: var(--rtc-color-text-secondary, #666666);
|
|
77273
77289
|
}
|
|
77274
|
-
`, iU =
|
|
77290
|
+
`, iU = fr`
|
|
77275
77291
|
:host {
|
|
77276
77292
|
display: inline-block;
|
|
77277
77293
|
height: 36px;
|
|
@@ -77457,7 +77473,7 @@ var sU = Object.defineProperty, oU = Object.getOwnPropertyDescriptor, wc = (t, e
|
|
|
77457
77473
|
return n && i && sU(e, r, i), i;
|
|
77458
77474
|
};
|
|
77459
77475
|
const aU = Yt("EditorTab");
|
|
77460
|
-
let ka = class extends
|
|
77476
|
+
let ka = class extends pr {
|
|
77461
77477
|
constructor() {
|
|
77462
77478
|
super(...arguments), this._localeCtx = {
|
|
77463
77479
|
locale: Ht,
|
|
@@ -77631,7 +77647,7 @@ ka = wc([
|
|
|
77631
77647
|
Rr(),
|
|
77632
77648
|
_r("rtc-editor-tab")
|
|
77633
77649
|
], ka);
|
|
77634
|
-
const lU =
|
|
77650
|
+
const lU = fr`
|
|
77635
77651
|
:host {
|
|
77636
77652
|
display: block;
|
|
77637
77653
|
height: 36px;
|
|
@@ -77848,7 +77864,7 @@ var cU = Object.defineProperty, uU = Object.getOwnPropertyDescriptor, gl = (t, e
|
|
|
77848
77864
|
return n && i && cU(e, r, i), i;
|
|
77849
77865
|
};
|
|
77850
77866
|
const dU = Yt("EditorToolbar");
|
|
77851
|
-
let Go = class extends
|
|
77867
|
+
let Go = class extends pr {
|
|
77852
77868
|
constructor() {
|
|
77853
77869
|
super(...arguments), this._localeCtx = {
|
|
77854
77870
|
locale: Ht,
|
|
@@ -78040,7 +78056,7 @@ Go = gl([
|
|
|
78040
78056
|
Rr(),
|
|
78041
78057
|
_r("rtc-editor-toolbar")
|
|
78042
78058
|
], Go);
|
|
78043
|
-
const pU =
|
|
78059
|
+
const pU = fr`
|
|
78044
78060
|
:host {
|
|
78045
78061
|
display: flex;
|
|
78046
78062
|
flex-direction: column;
|
|
@@ -78407,7 +78423,7 @@ var fU = Object.defineProperty, hU = Object.getOwnPropertyDescriptor, go = (t, e
|
|
|
78407
78423
|
return n && i && fU(e, r, i), i;
|
|
78408
78424
|
};
|
|
78409
78425
|
const fA = Yt("MarkdownEditor");
|
|
78410
|
-
let ws = class extends
|
|
78426
|
+
let ws = class extends pr {
|
|
78411
78427
|
constructor() {
|
|
78412
78428
|
super(...arguments), this._localeCtx = {
|
|
78413
78429
|
locale: Ht,
|
|
@@ -78432,7 +78448,7 @@ let ws = class extends dr {
|
|
|
78432
78448
|
const [e, r, n] = await Promise.all([
|
|
78433
78449
|
import("./marked.esm-Dch69AxC.js"),
|
|
78434
78450
|
import("./purify.es-C-6FFqDW.js"),
|
|
78435
|
-
import("./highlight-languages-
|
|
78451
|
+
import("./highlight-languages-BFi26Mqw.js")
|
|
78436
78452
|
]);
|
|
78437
78453
|
return {
|
|
78438
78454
|
marked: e.marked,
|
|
@@ -78679,7 +78695,7 @@ var mU = Object.defineProperty, yU = Object.getOwnPropertyDescriptor, Bp = (t, e
|
|
|
78679
78695
|
return n && i && mU(e, r, i), i;
|
|
78680
78696
|
};
|
|
78681
78697
|
const gU = Yt("EditorArea");
|
|
78682
|
-
let tc = class extends
|
|
78698
|
+
let tc = class extends pr {
|
|
78683
78699
|
constructor() {
|
|
78684
78700
|
super(...arguments), this._localeCtx = {
|
|
78685
78701
|
locale: Ht,
|
|
@@ -78908,7 +78924,7 @@ tc = Bp([
|
|
|
78908
78924
|
Rr(),
|
|
78909
78925
|
_r("rtc-editor-area")
|
|
78910
78926
|
], tc);
|
|
78911
|
-
const bU =
|
|
78927
|
+
const bU = fr`
|
|
78912
78928
|
:host {
|
|
78913
78929
|
display: flex;
|
|
78914
78930
|
align-items: center;
|
|
@@ -78967,7 +78983,7 @@ var vU = Object.defineProperty, _U = Object.getOwnPropertyDescriptor, Dy = (t, e
|
|
|
78967
78983
|
return n && i && vU(e, r, i), i;
|
|
78968
78984
|
};
|
|
78969
78985
|
const xU = Yt("StatusBar");
|
|
78970
|
-
let yu = class extends
|
|
78986
|
+
let yu = class extends pr {
|
|
78971
78987
|
constructor() {
|
|
78972
78988
|
super(...arguments), this.fileInfo = {
|
|
78973
78989
|
fileType: "",
|
|
@@ -79029,7 +79045,7 @@ yu = Dy([
|
|
|
79029
79045
|
Rr(),
|
|
79030
79046
|
_r("rtc-status-bar")
|
|
79031
79047
|
], yu);
|
|
79032
|
-
const wU =
|
|
79048
|
+
const wU = fr`
|
|
79033
79049
|
:host {
|
|
79034
79050
|
display: flex;
|
|
79035
79051
|
height: 100%;
|
|
@@ -79159,7 +79175,7 @@ const wU = pr`
|
|
|
79159
79175
|
.resize-handle.dragging::before {
|
|
79160
79176
|
background: var(--rtc-color-primary);
|
|
79161
79177
|
}
|
|
79162
|
-
`, SU =
|
|
79178
|
+
`, SU = fr`
|
|
79163
79179
|
:host {
|
|
79164
79180
|
display: flex;
|
|
79165
79181
|
flex-direction: column;
|
|
@@ -79326,7 +79342,7 @@ const ko = Cy(class extends ky {
|
|
|
79326
79342
|
}
|
|
79327
79343
|
return Aa;
|
|
79328
79344
|
}
|
|
79329
|
-
}), TU =
|
|
79345
|
+
}), TU = fr`
|
|
79330
79346
|
:host {
|
|
79331
79347
|
display: block;
|
|
79332
79348
|
background: transparent;
|
|
@@ -79741,7 +79757,7 @@ var kU = Object.defineProperty, IU = Object.getOwnPropertyDescriptor, bl = (t, e
|
|
|
79741
79757
|
const OU = Yt("SessionTreeItem"), NU = $A`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
79742
79758
|
<path d="M6 4l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
79743
79759
|
</svg>`;
|
|
79744
|
-
let Yo = class extends
|
|
79760
|
+
let Yo = class extends pr {
|
|
79745
79761
|
constructor() {
|
|
79746
79762
|
super(...arguments), this._localeCtx = {
|
|
79747
79763
|
locale: Ht,
|
|
@@ -79968,7 +79984,7 @@ var DU = Object.defineProperty, MU = Object.getOwnPropertyDescriptor, Ku = (t, e
|
|
|
79968
79984
|
return n && i && DU(e, r, i), i;
|
|
79969
79985
|
};
|
|
79970
79986
|
const hA = Yt("SessionTree");
|
|
79971
|
-
let cl = class extends
|
|
79987
|
+
let cl = class extends pr {
|
|
79972
79988
|
constructor() {
|
|
79973
79989
|
super(...arguments), this._localeCtx = {
|
|
79974
79990
|
locale: Ht,
|
|
@@ -80251,7 +80267,7 @@ cl = Ku([
|
|
|
80251
80267
|
Rr(),
|
|
80252
80268
|
_r("rtc-session-tree")
|
|
80253
80269
|
], cl);
|
|
80254
|
-
const BU =
|
|
80270
|
+
const BU = fr`
|
|
80255
80271
|
:host {
|
|
80256
80272
|
display: block;
|
|
80257
80273
|
width: 100%;
|
|
@@ -80359,7 +80375,7 @@ const BU = pr`
|
|
|
80359
80375
|
transition: none;
|
|
80360
80376
|
}
|
|
80361
80377
|
}
|
|
80362
|
-
`, LU =
|
|
80378
|
+
`, LU = fr`
|
|
80363
80379
|
:host {
|
|
80364
80380
|
display: inline-block;
|
|
80365
80381
|
width: 160px;
|
|
@@ -80564,7 +80580,7 @@ var RU = Object.defineProperty, FU = Object.getOwnPropertyDescriptor, vl = (t, e
|
|
|
80564
80580
|
const jU = Yt("SessionTab"), qU = $A`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
80565
80581
|
<path d="M4 4l8 8M12 4l-8 8" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
|
|
80566
80582
|
</svg>`;
|
|
80567
|
-
let Jo = class extends
|
|
80583
|
+
let Jo = class extends pr {
|
|
80568
80584
|
constructor() {
|
|
80569
80585
|
super(...arguments), this._localeCtx = {
|
|
80570
80586
|
locale: Ht,
|
|
@@ -80661,7 +80677,7 @@ var $U = Object.defineProperty, UU = Object.getOwnPropertyDescriptor, My = (t, e
|
|
|
80661
80677
|
return n && i && $U(e, r, i), i;
|
|
80662
80678
|
};
|
|
80663
80679
|
const VU = Yt("SessionTabBar");
|
|
80664
|
-
let gu = class extends
|
|
80680
|
+
let gu = class extends pr {
|
|
80665
80681
|
constructor() {
|
|
80666
80682
|
super(...arguments), this._localeCtx = {
|
|
80667
80683
|
locale: Ht,
|
|
@@ -80823,7 +80839,7 @@ const mA = (t) => R$(t) ? t._$litType$.h : t.strings, zU = Cy(class extends ky {
|
|
|
80823
80839
|
} else this.it = void 0;
|
|
80824
80840
|
return this.render(e);
|
|
80825
80841
|
}
|
|
80826
|
-
}), WU =
|
|
80842
|
+
}), WU = fr`
|
|
80827
80843
|
:host {
|
|
80828
80844
|
display: flex;
|
|
80829
80845
|
flex: 1;
|
|
@@ -80838,7 +80854,7 @@ const mA = (t) => R$(t) ? t._$litType$.h : t.strings, zU = Cy(class extends ky {
|
|
|
80838
80854
|
flex: 1;
|
|
80839
80855
|
overflow: hidden;
|
|
80840
80856
|
}
|
|
80841
|
-
`, HU =
|
|
80857
|
+
`, HU = fr`
|
|
80842
80858
|
:host {
|
|
80843
80859
|
/* Use flex layout instead of height: 100% for robust height resolution.
|
|
80844
80860
|
* The parent (.content-container) is a flex column container, so flex: 1
|
|
@@ -80929,7 +80945,7 @@ const mA = (t) => R$(t) ? t._$litType$.h : t.strings, zU = Cy(class extends ky {
|
|
|
80929
80945
|
0% { box-shadow: 0 0 0 2px var(--rtc-color-warning, gold); }
|
|
80930
80946
|
100% { box-shadow: none; }
|
|
80931
80947
|
}
|
|
80932
|
-
`, KU =
|
|
80948
|
+
`, KU = fr`
|
|
80933
80949
|
/* Theme-aware skeleton colors */
|
|
80934
80950
|
:host {
|
|
80935
80951
|
--skeleton-bg-primary: #e0e0e0;
|
|
@@ -81113,7 +81129,7 @@ const mA = (t) => R$(t) ? t._$litType$.h : t.strings, zU = Cy(class extends ky {
|
|
|
81113
81129
|
background: var(--skeleton-icon-error);
|
|
81114
81130
|
flex-shrink: 0;
|
|
81115
81131
|
}
|
|
81116
|
-
`, By =
|
|
81132
|
+
`, By = fr`
|
|
81117
81133
|
/* ── Timeline item ────────────────────────────────────────────── */
|
|
81118
81134
|
.timeline-item {
|
|
81119
81135
|
position: relative;
|
|
@@ -81209,7 +81225,7 @@ const mA = (t) => R$(t) ? t._$litType$.h : t.strings, zU = Cy(class extends ky {
|
|
|
81209
81225
|
}
|
|
81210
81226
|
`, GU = [
|
|
81211
81227
|
By,
|
|
81212
|
-
|
|
81228
|
+
fr`
|
|
81213
81229
|
:host {
|
|
81214
81230
|
display: block;
|
|
81215
81231
|
|
|
@@ -81747,7 +81763,7 @@ var YU = Object.defineProperty, JU = Object.getOwnPropertyDescriptor, Yu = (t, e
|
|
|
81747
81763
|
return n && i && YU(e, r, i), i;
|
|
81748
81764
|
};
|
|
81749
81765
|
const yA = Yt("Message");
|
|
81750
|
-
let ul = class extends
|
|
81766
|
+
let ul = class extends pr {
|
|
81751
81767
|
constructor() {
|
|
81752
81768
|
super(...arguments), this._localeCtx = {
|
|
81753
81769
|
locale: Ht,
|
|
@@ -81777,7 +81793,7 @@ let ul = class extends dr {
|
|
|
81777
81793
|
const [e, r, n] = await Promise.all([
|
|
81778
81794
|
import("./marked.esm-Dch69AxC.js"),
|
|
81779
81795
|
import("./purify.es-C-6FFqDW.js"),
|
|
81780
|
-
import("./highlight-languages-
|
|
81796
|
+
import("./highlight-languages-BFi26Mqw.js")
|
|
81781
81797
|
]);
|
|
81782
81798
|
return {
|
|
81783
81799
|
marked: e.marked,
|
|
@@ -83013,7 +83029,7 @@ const e3 = fV, t3 = hV, r3 = uV, n3 = (t, e, r) => {
|
|
|
83013
83029
|
...i,
|
|
83014
83030
|
platform: s
|
|
83015
83031
|
});
|
|
83016
|
-
}, BV =
|
|
83032
|
+
}, BV = fr`
|
|
83017
83033
|
:host {
|
|
83018
83034
|
display: block;
|
|
83019
83035
|
margin: var(--rtc-message-gap, var(--rtc-spacing-sm)) var(--rtc-spacing-md);
|
|
@@ -83215,7 +83231,7 @@ var LV = Object.defineProperty, RV = Object.getOwnPropertyDescriptor, Vy = (t, e
|
|
|
83215
83231
|
return n && i && LV(e, r, i), i;
|
|
83216
83232
|
};
|
|
83217
83233
|
const FV = Yt("MessageMoreMenu");
|
|
83218
|
-
let vu = class extends
|
|
83234
|
+
let vu = class extends pr {
|
|
83219
83235
|
constructor() {
|
|
83220
83236
|
super(...arguments), this._localeCtx = {
|
|
83221
83237
|
locale: Ht,
|
|
@@ -83253,7 +83269,7 @@ let vu = class extends dr {
|
|
|
83253
83269
|
`;
|
|
83254
83270
|
}
|
|
83255
83271
|
};
|
|
83256
|
-
vu.styles =
|
|
83272
|
+
vu.styles = fr`
|
|
83257
83273
|
:host {
|
|
83258
83274
|
display: block;
|
|
83259
83275
|
position: absolute;
|
|
@@ -83326,7 +83342,7 @@ var jV = Object.defineProperty, qV = Object.getOwnPropertyDescriptor, Sc = (t, e
|
|
|
83326
83342
|
return n && i && jV(e, r, i), i;
|
|
83327
83343
|
};
|
|
83328
83344
|
const $V = Yt("UserMessage");
|
|
83329
|
-
let Ia = class extends
|
|
83345
|
+
let Ia = class extends pr {
|
|
83330
83346
|
constructor() {
|
|
83331
83347
|
super(...arguments), this._localeCtx = {
|
|
83332
83348
|
locale: Ht,
|
|
@@ -83583,7 +83599,7 @@ Ia = Sc([
|
|
|
83583
83599
|
], Ia);
|
|
83584
83600
|
const UV = [
|
|
83585
83601
|
By,
|
|
83586
|
-
|
|
83602
|
+
fr`
|
|
83587
83603
|
/* ─ Card ── */
|
|
83588
83604
|
.toolcall-card {
|
|
83589
83605
|
position: relative;
|
|
@@ -83828,7 +83844,7 @@ const UV = [
|
|
|
83828
83844
|
reset. But we keep it harmless via specificity — the shared timelineStyles
|
|
83829
83845
|
rule targets .timeline-content > div > *, which won't match here.) */
|
|
83830
83846
|
`
|
|
83831
|
-
], VV =
|
|
83847
|
+
], VV = fr`
|
|
83832
83848
|
:host {
|
|
83833
83849
|
display: block;
|
|
83834
83850
|
position: relative;
|
|
@@ -83915,7 +83931,7 @@ var zV = Object.defineProperty, WV = Object.getOwnPropertyDescriptor, b_ = (t, e
|
|
|
83915
83931
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
83916
83932
|
return n && i && zV(e, r, i), i;
|
|
83917
83933
|
};
|
|
83918
|
-
let vp = class extends
|
|
83934
|
+
let vp = class extends pr {
|
|
83919
83935
|
constructor() {
|
|
83920
83936
|
super(), this.initialLocked = !0, this._scrollLocked = !0, this._scrollLocked = this.initialLocked;
|
|
83921
83937
|
}
|
|
@@ -84037,7 +84053,7 @@ function JV(t) {
|
|
|
84037
84053
|
function XV(t) {
|
|
84038
84054
|
return `var(--rtc-color-toolcall-${JV(t)})`;
|
|
84039
84055
|
}
|
|
84040
|
-
let _u = class extends
|
|
84056
|
+
let _u = class extends pr {
|
|
84041
84057
|
constructor() {
|
|
84042
84058
|
super(...arguments), this._localeCtx = {
|
|
84043
84059
|
locale: Ht,
|
|
@@ -84285,7 +84301,7 @@ _u = zy([
|
|
|
84285
84301
|
], _u);
|
|
84286
84302
|
const ZV = [
|
|
84287
84303
|
By,
|
|
84288
|
-
|
|
84304
|
+
fr`
|
|
84289
84305
|
/* ── Reply card ── */
|
|
84290
84306
|
.reply-card {
|
|
84291
84307
|
position: relative;
|
|
@@ -84592,7 +84608,7 @@ function Ib(t, e) {
|
|
|
84592
84608
|
return t;
|
|
84593
84609
|
}
|
|
84594
84610
|
}
|
|
84595
|
-
let _p = class extends
|
|
84611
|
+
let _p = class extends pr {
|
|
84596
84612
|
constructor() {
|
|
84597
84613
|
super(...arguments), this._localeCtx = {
|
|
84598
84614
|
locale: Ht,
|
|
@@ -84894,7 +84910,7 @@ const oz = Yt("ErrorMessage"), CA = {
|
|
|
84894
84910
|
stream: { icon: "📡", color: "#6b7280" },
|
|
84895
84911
|
tool: { icon: "🔧", color: "#6b7280" }
|
|
84896
84912
|
}, az = { icon: "⚠️", color: "#6b7280" };
|
|
84897
|
-
let xu = class extends
|
|
84913
|
+
let xu = class extends pr {
|
|
84898
84914
|
constructor() {
|
|
84899
84915
|
super(...arguments), this._localeCtx = {
|
|
84900
84916
|
locale: Ht,
|
|
@@ -85030,7 +85046,7 @@ let xu = class extends dr {
|
|
|
85030
85046
|
};
|
|
85031
85047
|
xu.styles = [
|
|
85032
85048
|
By,
|
|
85033
|
-
|
|
85049
|
+
fr`
|
|
85034
85050
|
:host {
|
|
85035
85051
|
display: block;
|
|
85036
85052
|
}
|
|
@@ -86555,7 +86571,7 @@ var dz = Object.defineProperty, pz = Object.getOwnPropertyDescriptor, ja = (t, e
|
|
|
86555
86571
|
return n && i && dz(e, r, i), i;
|
|
86556
86572
|
};
|
|
86557
86573
|
const To = Yt("MessageList"), fz = 2e3, hz = 300, mz = 450, kA = 2e3;
|
|
86558
|
-
let Do = class extends
|
|
86574
|
+
let Do = class extends pr {
|
|
86559
86575
|
constructor() {
|
|
86560
86576
|
super(...arguments), this.sessionId = null, this._localeCtx = {
|
|
86561
86577
|
locale: Ht,
|
|
@@ -87009,7 +87025,7 @@ Do = ja([
|
|
|
87009
87025
|
Rr(),
|
|
87010
87026
|
_r("rtc-message-list")
|
|
87011
87027
|
], Do);
|
|
87012
|
-
const yz =
|
|
87028
|
+
const yz = fr`
|
|
87013
87029
|
:host {
|
|
87014
87030
|
display: flex;
|
|
87015
87031
|
flex-direction: column;
|
|
@@ -87041,7 +87057,7 @@ var gz = Object.defineProperty, bz = Object.getOwnPropertyDescriptor, Hy = (t, e
|
|
|
87041
87057
|
return n && i && gz(e, r, i), i;
|
|
87042
87058
|
};
|
|
87043
87059
|
const vz = Yt("EmptyState");
|
|
87044
|
-
let wu = class extends
|
|
87060
|
+
let wu = class extends pr {
|
|
87045
87061
|
constructor() {
|
|
87046
87062
|
super(...arguments), this._localeCtx = {
|
|
87047
87063
|
locale: Ht,
|
|
@@ -87078,7 +87094,7 @@ var _z = Object.defineProperty, xz = Object.getOwnPropertyDescriptor, Lp = (t, e
|
|
|
87078
87094
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
87079
87095
|
return n && i && _z(e, r, i), i;
|
|
87080
87096
|
};
|
|
87081
|
-
let ic = class extends
|
|
87097
|
+
let ic = class extends pr {
|
|
87082
87098
|
constructor() {
|
|
87083
87099
|
super(...arguments), this.theme = "system", this.sessionId = null, this.isUnsaved = !1;
|
|
87084
87100
|
}
|
|
@@ -87112,7 +87128,7 @@ Lp([
|
|
|
87112
87128
|
ic = Lp([
|
|
87113
87129
|
_r("rtc-content-area")
|
|
87114
87130
|
], ic);
|
|
87115
|
-
const wz =
|
|
87131
|
+
const wz = fr`
|
|
87116
87132
|
:host {
|
|
87117
87133
|
display: block;
|
|
87118
87134
|
flex-shrink: 0;
|
|
@@ -87155,7 +87171,7 @@ var Sz = Object.defineProperty, Tz = Object.getOwnPropertyDescriptor, Ky = (t, e
|
|
|
87155
87171
|
return n && i && Sz(e, r, i), i;
|
|
87156
87172
|
};
|
|
87157
87173
|
const Ez = Yt("NoticeBar");
|
|
87158
|
-
let Su = class extends
|
|
87174
|
+
let Su = class extends pr {
|
|
87159
87175
|
constructor() {
|
|
87160
87176
|
super(...arguments), this._localeCtx = {
|
|
87161
87177
|
locale: Ht,
|
|
@@ -87239,7 +87255,7 @@ class Nb {
|
|
|
87239
87255
|
});
|
|
87240
87256
|
}
|
|
87241
87257
|
}
|
|
87242
|
-
const Az =
|
|
87258
|
+
const Az = fr`
|
|
87243
87259
|
:host {
|
|
87244
87260
|
display: block;
|
|
87245
87261
|
flex-shrink: 0;
|
|
@@ -87440,7 +87456,7 @@ function Pz(t) {
|
|
|
87440
87456
|
args: s || void 0
|
|
87441
87457
|
};
|
|
87442
87458
|
}
|
|
87443
|
-
const Cz =
|
|
87459
|
+
const Cz = fr`
|
|
87444
87460
|
:host {
|
|
87445
87461
|
display: block;
|
|
87446
87462
|
position: absolute;
|
|
@@ -87557,7 +87573,7 @@ const Oz = Yt("ModePanel"), Nz = {
|
|
|
87557
87573
|
auto: c$,
|
|
87558
87574
|
bypass: Oy
|
|
87559
87575
|
};
|
|
87560
|
-
let Tu = class extends
|
|
87576
|
+
let Tu = class extends pr {
|
|
87561
87577
|
constructor() {
|
|
87562
87578
|
super(...arguments), this._localeCtx = {
|
|
87563
87579
|
locale: Ht,
|
|
@@ -87661,7 +87677,7 @@ Tu = Gy([
|
|
|
87661
87677
|
Rr(),
|
|
87662
87678
|
_r("rtc-mode-panel")
|
|
87663
87679
|
], Tu);
|
|
87664
|
-
const Dz =
|
|
87680
|
+
const Dz = fr`
|
|
87665
87681
|
:host {
|
|
87666
87682
|
display: block;
|
|
87667
87683
|
position: absolute;
|
|
@@ -87791,7 +87807,7 @@ const Lz = Yt("CommandPanel"), Rz = [
|
|
|
87791
87807
|
icon: qI
|
|
87792
87808
|
}
|
|
87793
87809
|
];
|
|
87794
|
-
let xp = class extends
|
|
87810
|
+
let xp = class extends pr {
|
|
87795
87811
|
constructor() {
|
|
87796
87812
|
super(...arguments), this._localeCtx = {
|
|
87797
87813
|
locale: Ht,
|
|
@@ -87872,7 +87888,7 @@ xp = __([
|
|
|
87872
87888
|
Rr(),
|
|
87873
87889
|
_r("rtc-command-panel")
|
|
87874
87890
|
], xp);
|
|
87875
|
-
const Fz =
|
|
87891
|
+
const Fz = fr`
|
|
87876
87892
|
:host {
|
|
87877
87893
|
display: block;
|
|
87878
87894
|
position: absolute;
|
|
@@ -87964,7 +87980,7 @@ var jz = Object.defineProperty, qz = Object.getOwnPropertyDescriptor, Rp = (t, e
|
|
|
87964
87980
|
return n && i && jz(e, r, i), i;
|
|
87965
87981
|
};
|
|
87966
87982
|
const IA = Yt("ScenarioPanel");
|
|
87967
|
-
let sc = class extends
|
|
87983
|
+
let sc = class extends pr {
|
|
87968
87984
|
constructor() {
|
|
87969
87985
|
super(...arguments), this._scenarios = [], this._selectedPaths = /* @__PURE__ */ new Set(), this.initialSelectedPaths = [], this._loading = !0, this._onKeydown = (t) => {
|
|
87970
87986
|
t.key === "Escape" && (t.stopPropagation(), this.dispatchEvent(
|
|
@@ -88076,7 +88092,7 @@ var $z = Object.defineProperty, Uz = Object.getOwnPropertyDescriptor, qa = (t, e
|
|
|
88076
88092
|
return n && i && $z(e, r, i), i;
|
|
88077
88093
|
};
|
|
88078
88094
|
const Vz = 1e6;
|
|
88079
|
-
let Mo = class extends
|
|
88095
|
+
let Mo = class extends pr {
|
|
88080
88096
|
constructor() {
|
|
88081
88097
|
super(...arguments), this.theme = "system", this.estimatedNext = 0, this.totalTokens = 0, this.totalCostUsd = 0, this.compressionThreshold = 0, this.compressionProgress = 0, this.roundsUntilCompression = -1;
|
|
88082
88098
|
}
|
|
@@ -88196,7 +88212,7 @@ Mo.styles = [
|
|
|
88196
88212
|
Wn,
|
|
88197
88213
|
Hn,
|
|
88198
88214
|
Kn,
|
|
88199
|
-
|
|
88215
|
+
fr`
|
|
88200
88216
|
:host {
|
|
88201
88217
|
display: inline-flex;
|
|
88202
88218
|
align-items: center;
|
|
@@ -88344,7 +88360,7 @@ var zz = Object.defineProperty, Wz = Object.getOwnPropertyDescriptor, nn = (t, e
|
|
|
88344
88360
|
return n && i && zz(e, r, i), i;
|
|
88345
88361
|
};
|
|
88346
88362
|
const Dd = Yt("InputArea");
|
|
88347
|
-
let Qr = class extends
|
|
88363
|
+
let Qr = class extends pr {
|
|
88348
88364
|
constructor() {
|
|
88349
88365
|
super(...arguments), this.theme = "system", this.sessionId = null, this.initialValue = void 0, this.initialValueVersion = 0, this._localeCtx = {
|
|
88350
88366
|
locale: Ht,
|
|
@@ -88889,7 +88905,7 @@ Qr = nn([
|
|
|
88889
88905
|
Rr(),
|
|
88890
88906
|
_r("rtc-input-area")
|
|
88891
88907
|
], Qr);
|
|
88892
|
-
const Hz =
|
|
88908
|
+
const Hz = fr`
|
|
88893
88909
|
:host {
|
|
88894
88910
|
display: block;
|
|
88895
88911
|
position: absolute;
|
|
@@ -88913,7 +88929,7 @@ var Kz = Object.defineProperty, Gz = Object.getOwnPropertyDescriptor, s3 = (t, e
|
|
|
88913
88929
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
88914
88930
|
return n && i && Kz(e, r, i), i;
|
|
88915
88931
|
};
|
|
88916
|
-
let Bm = class extends
|
|
88932
|
+
let Bm = class extends pr {
|
|
88917
88933
|
constructor() {
|
|
88918
88934
|
super(...arguments), this._toolCallCtx = {
|
|
88919
88935
|
state: { pendingCalls: [] },
|
|
@@ -88960,7 +88976,7 @@ s3([
|
|
|
88960
88976
|
Bm = s3([
|
|
88961
88977
|
_r("rtc-overlay-manager")
|
|
88962
88978
|
], Bm);
|
|
88963
|
-
const Yz =
|
|
88979
|
+
const Yz = fr`
|
|
88964
88980
|
:host {
|
|
88965
88981
|
/* Drawer panel positioning base: left offset controlled via --rtc-drawer-left */
|
|
88966
88982
|
position: absolute;
|
|
@@ -89031,7 +89047,7 @@ var Jz = Object.defineProperty, Xz = Object.getOwnPropertyDescriptor, o3 = (t, e
|
|
|
89031
89047
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
89032
89048
|
return n && i && Jz(e, r, i), i;
|
|
89033
89049
|
};
|
|
89034
|
-
let Lm = class extends
|
|
89050
|
+
let Lm = class extends pr {
|
|
89035
89051
|
constructor() {
|
|
89036
89052
|
super(...arguments), this.open = !1, this._boundOnKeydown = (t) => {
|
|
89037
89053
|
t.key === "Escape" && this.open && (t.preventDefault(), this.dispatchEvent(
|
|
@@ -89096,7 +89112,7 @@ var Zz = Object.defineProperty, Qz = Object.getOwnPropertyDescriptor, Tc = (t, e
|
|
|
89096
89112
|
return n && i && Zz(e, r, i), i;
|
|
89097
89113
|
};
|
|
89098
89114
|
const pa = Yt("ChatLayout");
|
|
89099
|
-
let es = class extends
|
|
89115
|
+
let es = class extends pr {
|
|
89100
89116
|
constructor() {
|
|
89101
89117
|
super(...arguments), this._localeCtx = {
|
|
89102
89118
|
locale: Ht,
|
|
@@ -89268,7 +89284,7 @@ let es = class extends dr {
|
|
|
89268
89284
|
_saveInputAreaHeight(t) {
|
|
89269
89285
|
try {
|
|
89270
89286
|
if (typeof window > "u" || !window.localStorage) return;
|
|
89271
|
-
window.localStorage.setItem(
|
|
89287
|
+
window.localStorage.setItem(Gr.inputAreaHeight, String(t));
|
|
89272
89288
|
} catch {
|
|
89273
89289
|
}
|
|
89274
89290
|
}
|
|
@@ -89280,7 +89296,7 @@ let es = class extends dr {
|
|
|
89280
89296
|
_loadInputAreaHeight() {
|
|
89281
89297
|
try {
|
|
89282
89298
|
if (typeof window > "u" || !window.localStorage) return null;
|
|
89283
|
-
const t = window.localStorage.getItem(
|
|
89299
|
+
const t = window.localStorage.getItem(Gr.inputAreaHeight);
|
|
89284
89300
|
if (!t) return null;
|
|
89285
89301
|
const e = parseInt(t, 10);
|
|
89286
89302
|
return isNaN(e) ? null : Math.max(
|
|
@@ -89615,7 +89631,7 @@ es = Tc([
|
|
|
89615
89631
|
Rr(),
|
|
89616
89632
|
_r("rtc-chat-layout")
|
|
89617
89633
|
], es);
|
|
89618
|
-
const eW =
|
|
89634
|
+
const eW = fr`
|
|
89619
89635
|
:host {
|
|
89620
89636
|
display: flex;
|
|
89621
89637
|
height: 100%;
|
|
@@ -89876,7 +89892,7 @@ const eW = pr`
|
|
|
89876
89892
|
white-space: nowrap;
|
|
89877
89893
|
border: 0;
|
|
89878
89894
|
}
|
|
89879
|
-
`, tW =
|
|
89895
|
+
`, tW = fr`
|
|
89880
89896
|
:host {
|
|
89881
89897
|
width: 200px;
|
|
89882
89898
|
background: var(--rtc-color-bg-secondary, #252526);
|
|
@@ -89971,7 +89987,7 @@ function OA() {
|
|
|
89971
89987
|
{ id: "about", label: Oe("关于"), icon: Iy }
|
|
89972
89988
|
];
|
|
89973
89989
|
}
|
|
89974
|
-
let Eu = class extends
|
|
89990
|
+
let Eu = class extends pr {
|
|
89975
89991
|
constructor() {
|
|
89976
89992
|
super(...arguments), this.active = "appearance", this._localeCtx = {
|
|
89977
89993
|
locale: Ht,
|
|
@@ -90082,7 +90098,7 @@ let Eu = class extends dr {
|
|
|
90082
90098
|
};
|
|
90083
90099
|
Eu.styles = tW;
|
|
90084
90100
|
Eu.shadowRootOptions = {
|
|
90085
|
-
...
|
|
90101
|
+
...pr.shadowRootOptions,
|
|
90086
90102
|
delegatesFocus: !0
|
|
90087
90103
|
};
|
|
90088
90104
|
x_([
|
|
@@ -90118,7 +90134,7 @@ function $c(t) {
|
|
|
90118
90134
|
return Oe("关于");
|
|
90119
90135
|
}
|
|
90120
90136
|
}
|
|
90121
|
-
let yo = class extends
|
|
90137
|
+
let yo = class extends pr {
|
|
90122
90138
|
constructor() {
|
|
90123
90139
|
super(...arguments), this.theme = "system", this.version = "0.2.6", this.sidebarVisible = !1, this._localeCtx = {
|
|
90124
90140
|
locale: Ht,
|
|
@@ -90480,7 +90496,7 @@ let yo = class extends dr {
|
|
|
90480
90496
|
};
|
|
90481
90497
|
yo.styles = [zn, Wn, Hn, Kn, eW];
|
|
90482
90498
|
yo.shadowRootOptions = {
|
|
90483
|
-
...
|
|
90499
|
+
...pr.shadowRootOptions,
|
|
90484
90500
|
delegatesFocus: !0
|
|
90485
90501
|
};
|
|
90486
90502
|
$a([
|
|
@@ -90514,7 +90530,7 @@ yo = $a([
|
|
|
90514
90530
|
Rr(),
|
|
90515
90531
|
_r("rtc-settings-layout")
|
|
90516
90532
|
], yo);
|
|
90517
|
-
const cW =
|
|
90533
|
+
const cW = fr`
|
|
90518
90534
|
:host {
|
|
90519
90535
|
display: flex;
|
|
90520
90536
|
flex-direction: column;
|
|
@@ -90719,7 +90735,7 @@ function pW(t) {
|
|
|
90719
90735
|
i.type === "group" && i.children && i.children.sort((s, o) => s.name.localeCompare(o.name));
|
|
90720
90736
|
return n;
|
|
90721
90737
|
}
|
|
90722
|
-
let Qo = class extends
|
|
90738
|
+
let Qo = class extends pr {
|
|
90723
90739
|
constructor() {
|
|
90724
90740
|
super(...arguments), this.theme = "system", this._localeCtx = {
|
|
90725
90741
|
locale: Ht,
|
|
@@ -90739,7 +90755,7 @@ let Qo = class extends dr {
|
|
|
90739
90755
|
/* ── LocalStorage Persistence ── */
|
|
90740
90756
|
_loadExpandedState() {
|
|
90741
90757
|
try {
|
|
90742
|
-
const t = localStorage.getItem(
|
|
90758
|
+
const t = localStorage.getItem(Gr.functionTreeExpanded);
|
|
90743
90759
|
if (t) {
|
|
90744
90760
|
const e = JSON.parse(t);
|
|
90745
90761
|
Array.isArray(e) && (this._expandedNodes = new Set(e));
|
|
@@ -90751,7 +90767,7 @@ let Qo = class extends dr {
|
|
|
90751
90767
|
_saveExpandedState() {
|
|
90752
90768
|
try {
|
|
90753
90769
|
localStorage.setItem(
|
|
90754
|
-
|
|
90770
|
+
Gr.functionTreeExpanded,
|
|
90755
90771
|
JSON.stringify(Array.from(this._expandedNodes))
|
|
90756
90772
|
);
|
|
90757
90773
|
} catch (t) {
|
|
@@ -90761,7 +90777,7 @@ let Qo = class extends dr {
|
|
|
90761
90777
|
_loadActiveFunction() {
|
|
90762
90778
|
var t;
|
|
90763
90779
|
try {
|
|
90764
|
-
const e = localStorage.getItem(
|
|
90780
|
+
const e = localStorage.getItem(Gr.functionTreeActive);
|
|
90765
90781
|
if (e && ((t = this._functionsCtx) != null && t.state.functions)) {
|
|
90766
90782
|
const r = this._functionsCtx.state.functions.find((n) => n.name === e);
|
|
90767
90783
|
r && this._debugCtx && (this._debugCtx.actions.selectFunction(r), this._focusedNodeId = `fn:${r.name}`);
|
|
@@ -90772,7 +90788,7 @@ let Qo = class extends dr {
|
|
|
90772
90788
|
}
|
|
90773
90789
|
_saveActiveFunction(t) {
|
|
90774
90790
|
try {
|
|
90775
|
-
localStorage.setItem(
|
|
90791
|
+
localStorage.setItem(Gr.functionTreeActive, t);
|
|
90776
90792
|
} catch (e) {
|
|
90777
90793
|
Md.debug("Failed to save active function:", e);
|
|
90778
90794
|
}
|
|
@@ -90955,7 +90971,7 @@ Qo = xl([
|
|
|
90955
90971
|
Rr(),
|
|
90956
90972
|
_r("rtc-function-tree")
|
|
90957
90973
|
], Qo);
|
|
90958
|
-
const fW =
|
|
90974
|
+
const fW = fr`
|
|
90959
90975
|
:host {
|
|
90960
90976
|
display: flex;
|
|
90961
90977
|
height: 100%;
|
|
@@ -90978,7 +90994,7 @@ const fW = pr`
|
|
|
90978
90994
|
overflow: hidden;
|
|
90979
90995
|
min-width: 0;
|
|
90980
90996
|
}
|
|
90981
|
-
`, hW =
|
|
90997
|
+
`, hW = fr`
|
|
90982
90998
|
:host {
|
|
90983
90999
|
display: flex;
|
|
90984
91000
|
flex-direction: column;
|
|
@@ -91202,7 +91218,7 @@ const fW = pr`
|
|
|
91202
91218
|
color: var(--rtc-color-text-tertiary);
|
|
91203
91219
|
text-align: center;
|
|
91204
91220
|
}
|
|
91205
|
-
`, mW =
|
|
91221
|
+
`, mW = fr`
|
|
91206
91222
|
:host {
|
|
91207
91223
|
display: flex;
|
|
91208
91224
|
flex-direction: column;
|
|
@@ -91275,7 +91291,7 @@ var yW = Object.defineProperty, gW = Object.getOwnPropertyDescriptor, Fp = (t, e
|
|
|
91275
91291
|
return n && i && yW(e, r, i), i;
|
|
91276
91292
|
};
|
|
91277
91293
|
const bW = Yt("FunctionParams");
|
|
91278
|
-
let oc = class extends
|
|
91294
|
+
let oc = class extends pr {
|
|
91279
91295
|
constructor() {
|
|
91280
91296
|
super(...arguments), this.theme = "system", this._localeCtx = {
|
|
91281
91297
|
locale: Ht,
|
|
@@ -91360,7 +91376,7 @@ oc = Fp([
|
|
|
91360
91376
|
Rr(),
|
|
91361
91377
|
_r("rtc-function-params")
|
|
91362
91378
|
], oc);
|
|
91363
|
-
const vW =
|
|
91379
|
+
const vW = fr`
|
|
91364
91380
|
:host {
|
|
91365
91381
|
display: flex;
|
|
91366
91382
|
flex-direction: column;
|
|
@@ -91514,7 +91530,7 @@ function NA(t) {
|
|
|
91514
91530
|
const e = new Date(t), r = String(e.getHours()).padStart(2, "0"), n = String(e.getMinutes()).padStart(2, "0"), i = String(e.getSeconds()).padStart(2, "0"), s = String(e.getMilliseconds()).padStart(3, "0");
|
|
91515
91531
|
return `${r}:${n}:${i}.${s}`;
|
|
91516
91532
|
}
|
|
91517
|
-
let ac = class extends
|
|
91533
|
+
let ac = class extends pr {
|
|
91518
91534
|
constructor() {
|
|
91519
91535
|
super(...arguments), this.theme = "system", this._localeCtx = {
|
|
91520
91536
|
locale: Ht,
|
|
@@ -91625,7 +91641,7 @@ ac = jp([
|
|
|
91625
91641
|
Rr(),
|
|
91626
91642
|
_r("rtc-function-console")
|
|
91627
91643
|
], ac);
|
|
91628
|
-
const SW =
|
|
91644
|
+
const SW = fr`
|
|
91629
91645
|
:host {
|
|
91630
91646
|
display: block;
|
|
91631
91647
|
}
|
|
@@ -92063,7 +92079,7 @@ function PW(t) {
|
|
|
92063
92079
|
const e = Date.now() - t, r = Math.floor(e / 1e3), n = Math.floor(r / 60), i = Math.floor(n / 60), s = Math.floor(i / 24);
|
|
92064
92080
|
return r < 60 ? Oe("刚刚") : n < 60 ? Oe(vn`${n} 分钟前`) : i < 24 ? Oe(vn`${i} 小时前`) : Oe(vn`${s} 天前`);
|
|
92065
92081
|
}
|
|
92066
|
-
let dl = class extends
|
|
92082
|
+
let dl = class extends pr {
|
|
92067
92083
|
constructor() {
|
|
92068
92084
|
super(...arguments), this.theme = "system", this._localeCtx = {
|
|
92069
92085
|
locale: Ht,
|
|
@@ -92314,7 +92330,7 @@ var CW = Object.defineProperty, kW = Object.getOwnPropertyDescriptor, qp = (t, e
|
|
|
92314
92330
|
return n && i && CW(e, r, i), i;
|
|
92315
92331
|
};
|
|
92316
92332
|
const IW = Yt("FunctionDebugger");
|
|
92317
|
-
let lc = class extends
|
|
92333
|
+
let lc = class extends pr {
|
|
92318
92334
|
constructor() {
|
|
92319
92335
|
super(...arguments), this.theme = "system", this._localeCtx = {
|
|
92320
92336
|
locale: Ht,
|
|
@@ -92513,7 +92529,7 @@ var OW = Object.defineProperty, NW = Object.getOwnPropertyDescriptor, w_ = (t, e
|
|
|
92513
92529
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
92514
92530
|
return n && i && OW(e, r, i), i;
|
|
92515
92531
|
};
|
|
92516
|
-
let Au = class extends
|
|
92532
|
+
let Au = class extends pr {
|
|
92517
92533
|
constructor() {
|
|
92518
92534
|
super(...arguments), this.theme = "system", this.sidebarVisible = !1;
|
|
92519
92535
|
}
|
|
@@ -92531,7 +92547,7 @@ let Au = class extends dr {
|
|
|
92531
92547
|
};
|
|
92532
92548
|
Au.styles = [zn, Wn, Hn, Kn, fW];
|
|
92533
92549
|
Au.shadowRootOptions = {
|
|
92534
|
-
...
|
|
92550
|
+
...pr.shadowRootOptions,
|
|
92535
92551
|
delegatesFocus: !0
|
|
92536
92552
|
};
|
|
92537
92553
|
w_([
|
|
@@ -92549,7 +92565,7 @@ function DW(t) {
|
|
|
92549
92565
|
}
|
|
92550
92566
|
let Db = null, Mb = null, Bb = null;
|
|
92551
92567
|
async function MW() {
|
|
92552
|
-
return Db || (Db = (await import("./marked.esm-Dch69AxC.js")).marked), Mb || (Mb = (await import("./purify.es-C-6FFqDW.js")).default), Bb || (Bb = (await import("./highlight-languages-
|
|
92568
|
+
return Db || (Db = (await import("./marked.esm-Dch69AxC.js")).marked), Mb || (Mb = (await import("./purify.es-C-6FFqDW.js")).default), Bb || (Bb = (await import("./highlight-languages-BFi26Mqw.js")).default), { marked: Db, DOMPurify: Mb, hljs: Bb };
|
|
92553
92569
|
}
|
|
92554
92570
|
function BW(t, e) {
|
|
92555
92571
|
return t.replace(
|
|
@@ -93617,7 +93633,7 @@ const Nr = Yt("RtcAgent"), bH = {
|
|
|
93617
93633
|
maximized: "Window maximized",
|
|
93618
93634
|
minimized: "Window minimized"
|
|
93619
93635
|
}, vH = 1e3, MA = 20;
|
|
93620
|
-
let mn = class extends
|
|
93636
|
+
let mn = class extends pr {
|
|
93621
93637
|
constructor() {
|
|
93622
93638
|
super(...arguments), this.theme = "system", this._lang = "", this.appLabel = "RTC Agent", this.bubbleIcon = "", this._logo = null, this._agentConfig = null, this._serverURL = "", this._redirectURI = "", this._scenariosURL = "", this._databaseName = "", this._workerUrl = "", this._windowConfig = null, this._activityBarConfig = null, this._resolvedActivityBarConfig = oA(), this._resolvedWindowConfig = sA(), this._windowState = new x4(this, this._resolvedWindowConfig), this._auth = new w4(this), this._persistence = new vv(this, this._auth), this._session = new S4(this), this._message = new A4(this), this._mode = new k4(this), this._toolCall = new I4(this), this._interaction = new N4(this, {
|
|
93623
93639
|
draggable: this._resolvedWindowConfig.draggable,
|
|
@@ -93989,18 +94005,21 @@ let mn = class extends dr {
|
|
|
93989
94005
|
accessToken: r.accessToken,
|
|
93990
94006
|
refreshToken: r.refreshToken ?? "",
|
|
93991
94007
|
userId: r.userId,
|
|
93992
|
-
expiresIn: r.expiresIn ?? 3600
|
|
94008
|
+
expiresIn: r.expiresIn ?? 3600,
|
|
94009
|
+
deviceId: r.deviceId
|
|
93993
94010
|
});
|
|
93994
94011
|
} else this._pendingDynamicAuth ? (this._auth.setDynamicTokenProvider({
|
|
93995
94012
|
getToken: this._pendingDynamicAuth.getToken,
|
|
93996
94013
|
refreshToken: this._pendingDynamicAuth.refreshToken,
|
|
93997
|
-
userId: this._pendingDynamicAuth.userId
|
|
94014
|
+
userId: this._pendingDynamicAuth.userId,
|
|
94015
|
+
deviceId: this._pendingDynamicAuth.deviceId
|
|
93998
94016
|
}), this._pendingDynamicAuth = void 0) : this._pendingAuthProvider && (this._auth.setAuthProvider({
|
|
93999
94017
|
getToken: this._pendingAuthProvider.getToken,
|
|
94000
94018
|
refreshToken: this._pendingAuthProvider.refreshToken,
|
|
94001
94019
|
isLoggedIn: this._pendingAuthProvider.isLoggedIn,
|
|
94002
94020
|
logout: this._pendingAuthProvider.logout,
|
|
94003
|
-
getUserId: this._pendingAuthProvider.getUserId
|
|
94021
|
+
getUserId: this._pendingAuthProvider.getUserId,
|
|
94022
|
+
deviceId: this._pendingAuthProvider.deviceId
|
|
94004
94023
|
}), this._pendingAuthProvider = void 0);
|
|
94005
94024
|
Nr.debug("[AUTH_LIFECYCLE] connectedCallback() Setting onLogin callback"), Nr.debug("[AUTH_LIFECYCLE] connectedCallback() _auth.state.isLoggedIn:", this._auth.state.isLoggedIn), this._auth.onLogin = () => {
|
|
94006
94025
|
Nr.debug("[AUTH_LIFECYCLE] onLogin callback fired, calling _connectWithRetry()"), this._connectWithRetry();
|