superapp-miniapp-invoke-native 1.10.3 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/main.js CHANGED
@@ -1,127 +1,127 @@
1
- var Lr = Object.defineProperty, Ar = Object.defineProperties;
2
- var Or = Object.getOwnPropertyDescriptors;
3
- var xe = Object.getOwnPropertySymbols;
4
- var Er = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable;
5
- var Ce = (t, e, r) => e in t ? Lr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, b = (t, e) => {
1
+ var Fr = Object.defineProperty, Ur = Object.defineProperties;
2
+ var Wr = Object.getOwnPropertyDescriptors;
3
+ var Ke = Object.getOwnPropertySymbols;
4
+ var Dr = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable;
5
+ var Le = (t, e, r) => e in t ? Fr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, b = (t, e) => {
6
6
  for (var r in e || (e = {}))
7
- Er.call(e, r) && Ce(t, r, e[r]);
8
- if (xe)
9
- for (var r of xe(e))
10
- Rr.call(e, r) && Ce(t, r, e[r]);
7
+ Dr.call(e, r) && Le(t, r, e[r]);
8
+ if (Ke)
9
+ for (var r of Ke(e))
10
+ xr.call(e, r) && Le(t, r, e[r]);
11
11
  return t;
12
- }, T = (t, e) => Ar(t, Or(e));
13
- var P = (t, e, r) => (Ce(t, typeof e != "symbol" ? e + "" : e, r), r);
14
- var o = (t, e, r) => new Promise((n, a) => {
15
- var i = (w) => {
12
+ }, T = (t, e) => Ur(t, Wr(e));
13
+ var P = (t, e, r) => (Le(t, typeof e != "symbol" ? e + "" : e, r), r);
14
+ var a = (t, e, r) => new Promise((n, o) => {
15
+ var i = (l) => {
16
16
  try {
17
- s(r.next(w));
17
+ s(r.next(l));
18
18
  } catch (u) {
19
- a(u);
19
+ o(u);
20
20
  }
21
- }, c = (w) => {
21
+ }, c = (l) => {
22
22
  try {
23
- s(r.throw(w));
23
+ s(r.throw(l));
24
24
  } catch (u) {
25
- a(u);
25
+ o(u);
26
26
  }
27
- }, s = (w) => w.done ? n(w.value) : Promise.resolve(w.value).then(i, c);
27
+ }, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(i, c);
28
28
  s((r = r.apply(t, e)).next());
29
29
  });
30
30
  /*! Capacitor: https://capacitorjs.com/ - MIT License */
31
- const kr = (t) => t.CapacitorPlatforms = ((e) => {
31
+ const $r = (t) => t.CapacitorPlatforms = ((e) => {
32
32
  const r = /* @__PURE__ */ new Map();
33
33
  r.set("web", { name: "web" });
34
34
  const n = e.CapacitorPlatforms || { currentPlatform: { name: "web" }, platforms: r };
35
- return n.addPlatform = (a, i) => {
36
- n.platforms.set(a, i);
37
- }, n.setPlatform = (a) => {
38
- n.platforms.has(a) && (n.currentPlatform = n.platforms.get(a));
35
+ return n.addPlatform = (o, i) => {
36
+ n.platforms.set(o, i);
37
+ }, n.setPlatform = (o) => {
38
+ n.platforms.has(o) && (n.currentPlatform = n.platforms.get(o));
39
39
  }, n;
40
- })(t), je = kr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
41
- var j;
42
- je.addPlatform, je.setPlatform, function(t) {
40
+ })(t), ze = $r(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
41
+ var $;
42
+ ze.addPlatform, ze.setPlatform, function(t) {
43
43
  t.Unimplemented = "UNIMPLEMENTED", t.Unavailable = "UNAVAILABLE";
44
- }(j || (j = {}));
44
+ }($ || ($ = {}));
45
45
  class ve extends Error {
46
46
  constructor(e, r, n) {
47
47
  super(e), this.message = e, this.code = r, this.data = n;
48
48
  }
49
49
  }
50
- const br = (t) => {
51
- var e, r, n, a, i;
52
- const c = t.CapacitorCustomPlatform || null, s = t.Capacitor || {}, w = s.Plugins = s.Plugins || {}, u = t.CapacitorPlatforms, _ = ((e = u == null ? void 0 : u.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || (() => c !== null ? c.name : ((h) => {
50
+ const jr = (t) => {
51
+ var e, r, n, o, i;
52
+ const c = t.CapacitorCustomPlatform || null, s = t.Capacitor || {}, l = s.Plugins = s.Plugins || {}, u = t.CapacitorPlatforms, _ = ((e = u == null ? void 0 : u.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || (() => c !== null ? c.name : ((p) => {
53
53
  var m, N;
54
- return h != null && h.androidBridge ? "android" : !((N = (m = h == null ? void 0 : h.webkit) === null || m === void 0 ? void 0 : m.messageHandlers) === null || N === void 0) && N.bridge ? "ios" : "web";
55
- })(t)), p = ((r = u == null ? void 0 : u.currentPlatform) === null || r === void 0 ? void 0 : r.isNativePlatform) || (() => _() !== "web"), f = ((n = u == null ? void 0 : u.currentPlatform) === null || n === void 0 ? void 0 : n.isPluginAvailable) || ((h) => {
56
- const m = I.get(h);
57
- return !!(m != null && m.platforms.has(_())) || !!A(h);
58
- }), A = ((a = u == null ? void 0 : u.currentPlatform) === null || a === void 0 ? void 0 : a.getPluginHeader) || ((h) => {
54
+ return p != null && p.androidBridge ? "android" : !((N = (m = p == null ? void 0 : p.webkit) === null || m === void 0 ? void 0 : m.messageHandlers) === null || N === void 0) && N.bridge ? "ios" : "web";
55
+ })(t)), h = ((r = u == null ? void 0 : u.currentPlatform) === null || r === void 0 ? void 0 : r.isNativePlatform) || (() => _() !== "web"), M = ((n = u == null ? void 0 : u.currentPlatform) === null || n === void 0 ? void 0 : n.isPluginAvailable) || ((p) => {
56
+ const m = I.get(p);
57
+ return !!(m != null && m.platforms.has(_())) || !!v(p);
58
+ }), v = ((o = u == null ? void 0 : u.currentPlatform) === null || o === void 0 ? void 0 : o.getPluginHeader) || ((p) => {
59
59
  var m;
60
- return (m = s.PluginHeaders) === null || m === void 0 ? void 0 : m.find((N) => N.name === h);
61
- }), I = /* @__PURE__ */ new Map(), C = ((i = u == null ? void 0 : u.currentPlatform) === null || i === void 0 ? void 0 : i.registerPlugin) || ((h, m = {}) => {
62
- const N = I.get(h);
60
+ return (m = s.PluginHeaders) === null || m === void 0 ? void 0 : m.find((N) => N.name === p);
61
+ }), I = /* @__PURE__ */ new Map(), C = ((i = u == null ? void 0 : u.currentPlatform) === null || i === void 0 ? void 0 : i.registerPlugin) || ((p, m = {}) => {
62
+ const N = I.get(p);
63
63
  if (N)
64
- return console.warn(`Capacitor plugin "${h}" already registered. Cannot register plugins twice.`), N.proxy;
65
- const v = _(), $ = A(h);
64
+ return console.warn(`Capacitor plugin "${p}" already registered. Cannot register plugins twice.`), N.proxy;
65
+ const O = _(), j = v(p);
66
66
  let k;
67
- const Ne = (O) => {
67
+ const Me = (A) => {
68
68
  let R;
69
69
  const x = (...Z) => {
70
- const q = (() => o(void 0, null, function* () {
71
- return !k && v in m ? k = k = typeof m[v] == "function" ? yield m[v]() : m[v] : c !== null && !k && "web" in m && (k = k = typeof m.web == "function" ? yield m.web() : m.web), k;
70
+ const q = (() => a(void 0, null, function* () {
71
+ return !k && O in m ? k = k = typeof m[O] == "function" ? yield m[O]() : m[O] : c !== null && !k && "web" in m && (k = k = typeof m.web == "function" ? yield m.web() : m.web), k;
72
72
  }))().then((K) => {
73
- const Fe = ((L, J) => {
74
- var fe, Ie;
75
- if (!$) {
73
+ const je = ((L, z) => {
74
+ var Ce, Oe;
75
+ if (!j) {
76
76
  if (L)
77
- return (Ie = L[J]) === null || Ie === void 0 ? void 0 : Ie.bind(L);
78
- throw new ve(`"${h}" plugin is not implemented on ${v}`, j.Unimplemented);
77
+ return (Oe = L[z]) === null || Oe === void 0 ? void 0 : Oe.bind(L);
78
+ throw new ve(`"${p}" plugin is not implemented on ${O}`, $.Unimplemented);
79
79
  }
80
80
  {
81
- const De = $ == null ? void 0 : $.methods.find((G) => J === G.name);
82
- if (De)
83
- return De.rtype === "promise" ? (G) => s.nativePromise(h, J.toString(), G) : (G, vr) => s.nativeCallback(h, J.toString(), G, vr);
81
+ const qe = j == null ? void 0 : j.methods.find((G) => z === G.name);
82
+ if (qe)
83
+ return qe.rtype === "promise" ? (G) => s.nativePromise(p, z.toString(), G) : (G, Hr) => s.nativeCallback(p, z.toString(), G, Hr);
84
84
  if (L)
85
- return (fe = L[J]) === null || fe === void 0 ? void 0 : fe.bind(L);
85
+ return (Ce = L[z]) === null || Ce === void 0 ? void 0 : Ce.bind(L);
86
86
  }
87
- })(K, O);
88
- if (Fe) {
89
- const L = Fe(...Z);
87
+ })(K, A);
88
+ if (je) {
89
+ const L = je(...Z);
90
90
  return R = L == null ? void 0 : L.remove, L;
91
91
  }
92
- throw new ve(`"${h}.${O}()" is not implemented on ${v}`, j.Unimplemented);
92
+ throw new ve(`"${p}.${A}()" is not implemented on ${O}`, $.Unimplemented);
93
93
  });
94
- return O === "addListener" && (q.remove = () => o(void 0, null, function* () {
94
+ return A === "addListener" && (q.remove = () => a(void 0, null, function* () {
95
95
  return R();
96
96
  })), q;
97
97
  };
98
- return x.toString = () => `${O.toString()}() { [capacitor code] }`, Object.defineProperty(x, "name", { value: O, writable: !1, configurable: !1 }), x;
99
- }, Ue = Ne("addListener"), We = Ne("removeListener"), Cr = (O, R) => {
100
- const x = Ue({ eventName: O }, R), Z = () => o(void 0, null, function* () {
98
+ return x.toString = () => `${A.toString()}() { [capacitor code] }`, Object.defineProperty(x, "name", { value: A, writable: !1, configurable: !1 }), x;
99
+ }, xe = Me("addListener"), $e = Me("removeListener"), Vr = (A, R) => {
100
+ const x = xe({ eventName: A }, R), Z = () => a(void 0, null, function* () {
101
101
  const K = yield x;
102
- We({ eventName: O, callbackId: K }, R);
102
+ $e({ eventName: A, callbackId: K }, R);
103
103
  }), q = new Promise((K) => x.then(() => K({ remove: Z })));
104
- return q.remove = () => o(void 0, null, function* () {
104
+ return q.remove = () => a(void 0, null, function* () {
105
105
  console.warn("Using addListener() without 'await' is deprecated."), yield Z();
106
106
  }), q;
107
- }, Me = new Proxy({}, { get(O, R) {
107
+ }, Ie = new Proxy({}, { get(A, R) {
108
108
  switch (R) {
109
109
  case "$$typeof":
110
110
  return;
111
111
  case "toJSON":
112
112
  return () => ({});
113
113
  case "addListener":
114
- return $ ? Cr : Ue;
114
+ return j ? Vr : xe;
115
115
  case "removeListener":
116
- return We;
116
+ return $e;
117
117
  default:
118
- return Ne(R);
118
+ return Me(R);
119
119
  }
120
120
  } });
121
- return w[h] = Me, I.set(h, { name: h, proxy: Me, platforms: /* @__PURE__ */ new Set([...Object.keys(m), ...$ ? [v] : []]) }), Me;
121
+ return l[p] = Ie, I.set(p, { name: p, proxy: Ie, platforms: /* @__PURE__ */ new Set([...Object.keys(m), ...j ? [O] : []]) }), Ie;
122
122
  });
123
- return s.convertFileSrc || (s.convertFileSrc = (h) => h), s.getPlatform = _, s.handleError = (h) => t.console.error(h), s.isNativePlatform = p, s.isPluginAvailable = f, s.pluginMethodNoop = (h, m, N) => Promise.reject(`${N} does not have an implementation of "${m}".`), s.registerPlugin = C, s.Exception = ve, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
124
- }, Tr = (t) => t.Capacitor = br(t), d = Tr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {}), He = d.registerPlugin;
123
+ return s.convertFileSrc || (s.convertFileSrc = (p) => p), s.getPlatform = _, s.handleError = (p) => t.console.error(p), s.isNativePlatform = h, s.isPluginAvailable = M, s.pluginMethodNoop = (p, m, N) => Promise.reject(`${N} does not have an implementation of "${m}".`), s.registerPlugin = C, s.Exception = ve, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
124
+ }, qr = (t) => t.Capacitor = jr(t), d = qr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {}), Ue = d.registerPlugin;
125
125
  d.Plugins;
126
126
  class y {
127
127
  constructor(e) {
@@ -131,15 +131,15 @@ class y {
131
131
  this.listeners[e] || (this.listeners[e] = []), this.listeners[e].push(r);
132
132
  const n = this.windowListeners[e];
133
133
  n && !n.registered && this.addWindowListener(n);
134
- const a = () => o(this, null, function* () {
134
+ const o = () => a(this, null, function* () {
135
135
  return this.removeListener(e, r);
136
- }), i = Promise.resolve({ remove: a });
137
- return Object.defineProperty(i, "remove", { value: () => o(this, null, function* () {
138
- console.warn("Using addListener() without 'await' is deprecated."), yield a();
136
+ }), i = Promise.resolve({ remove: o });
137
+ return Object.defineProperty(i, "remove", { value: () => a(this, null, function* () {
138
+ console.warn("Using addListener() without 'await' is deprecated."), yield o();
139
139
  }) }), i;
140
140
  }
141
141
  removeAllListeners() {
142
- return o(this, null, function* () {
142
+ return a(this, null, function* () {
143
143
  this.listeners = {};
144
144
  for (const e in this.windowListeners)
145
145
  this.removeWindowListener(this.windowListeners[e]);
@@ -148,7 +148,7 @@ class y {
148
148
  }
149
149
  notifyListeners(e, r) {
150
150
  const n = this.listeners[e];
151
- n && n.forEach((a) => a(r));
151
+ n && n.forEach((o) => o(r));
152
152
  }
153
153
  hasListeners(e) {
154
154
  return !!this.listeners[e].length;
@@ -159,18 +159,18 @@ class y {
159
159
  } };
160
160
  }
161
161
  unimplemented(e = "not implemented") {
162
- return new d.Exception(e, j.Unimplemented);
162
+ return new d.Exception(e, $.Unimplemented);
163
163
  }
164
164
  unavailable(e = "not available") {
165
- return new d.Exception(e, j.Unavailable);
165
+ return new d.Exception(e, $.Unavailable);
166
166
  }
167
167
  removeListener(e, r) {
168
- return o(this, null, function* () {
168
+ return a(this, null, function* () {
169
169
  const n = this.listeners[e];
170
170
  if (!n)
171
171
  return;
172
- const a = n.indexOf(r);
173
- this.listeners[e].splice(a, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
172
+ const o = n.indexOf(r);
173
+ this.listeners[e].splice(o, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
174
174
  });
175
175
  }
176
176
  addWindowListener(e) {
@@ -180,31 +180,31 @@ class y {
180
180
  e && (window.removeEventListener(e.windowEventName, e.handler), e.registered = !1);
181
181
  }
182
182
  }
183
- const $e = (t) => encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), qe = (t) => t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
184
- class Br extends y {
183
+ const Ge = (t) => encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Je = (t) => t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
184
+ class Kr extends y {
185
185
  getCookies() {
186
- return o(this, null, function* () {
186
+ return a(this, null, function* () {
187
187
  const e = document.cookie, r = {};
188
188
  return e.split(";").forEach((n) => {
189
189
  if (n.length <= 0)
190
190
  return;
191
- let [a, i] = n.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
192
- a = qe(a).trim(), i = qe(i).trim(), r[a] = i;
191
+ let [o, i] = n.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
192
+ o = Je(o).trim(), i = Je(i).trim(), r[o] = i;
193
193
  }), r;
194
194
  });
195
195
  }
196
196
  setCookie(e) {
197
- return o(this, null, function* () {
197
+ return a(this, null, function* () {
198
198
  try {
199
- const r = $e(e.key), n = $e(e.value), a = `; expires=${(e.expires || "").replace("expires=", "")}`, i = (e.path || "/").replace("path=", ""), c = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
200
- document.cookie = `${r}=${n || ""}${a}; path=${i}; ${c};`;
199
+ const r = Ge(e.key), n = Ge(e.value), o = `; expires=${(e.expires || "").replace("expires=", "")}`, i = (e.path || "/").replace("path=", ""), c = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
200
+ document.cookie = `${r}=${n || ""}${o}; path=${i}; ${c};`;
201
201
  } catch (r) {
202
202
  return Promise.reject(r);
203
203
  }
204
204
  });
205
205
  }
206
206
  deleteCookie(e) {
207
- return o(this, null, function* () {
207
+ return a(this, null, function* () {
208
208
  try {
209
209
  document.cookie = `${e.key}=; Max-Age=0`;
210
210
  } catch (r) {
@@ -213,7 +213,7 @@ class Br extends y {
213
213
  });
214
214
  }
215
215
  clearCookies() {
216
- return o(this, null, function* () {
216
+ return a(this, null, function* () {
217
217
  try {
218
218
  const e = document.cookie.split(";") || [];
219
219
  for (const r of e)
@@ -224,7 +224,7 @@ class Br extends y {
224
224
  });
225
225
  }
226
226
  clearAllCookies() {
227
- return o(this, null, function* () {
227
+ return a(this, null, function* () {
228
228
  try {
229
229
  yield this.clearCookies();
230
230
  } catch (e) {
@@ -233,58 +233,58 @@ class Br extends y {
233
233
  });
234
234
  }
235
235
  }
236
- He("CapacitorCookies", { web: () => new Br() });
237
- const Vr = (t, e = {}) => {
238
- const r = Object.assign({ method: t.method || "GET", headers: t.headers }, e), n = ((a = {}) => {
239
- const i = Object.keys(a);
240
- return Object.keys(a).map((c) => c.toLocaleLowerCase()).reduce((c, s, w) => (c[s] = a[i[w]], c), {});
236
+ Ue("CapacitorCookies", { web: () => new Kr() });
237
+ const zr = (t, e = {}) => {
238
+ const r = Object.assign({ method: t.method || "GET", headers: t.headers }, e), n = ((o = {}) => {
239
+ const i = Object.keys(o);
240
+ return Object.keys(o).map((c) => c.toLocaleLowerCase()).reduce((c, s, l) => (c[s] = o[i[l]], c), {});
241
241
  })(t.headers)["content-type"] || "";
242
242
  if (typeof t.data == "string")
243
243
  r.body = t.data;
244
244
  else if (n.includes("application/x-www-form-urlencoded")) {
245
- const a = new URLSearchParams();
245
+ const o = new URLSearchParams();
246
246
  for (const [i, c] of Object.entries(t.data || {}))
247
- a.set(i, c);
248
- r.body = a.toString();
247
+ o.set(i, c);
248
+ r.body = o.toString();
249
249
  } else if (n.includes("multipart/form-data")) {
250
- const a = new FormData();
250
+ const o = new FormData();
251
251
  if (t.data instanceof FormData)
252
252
  t.data.forEach((c, s) => {
253
- a.append(s, c);
253
+ o.append(s, c);
254
254
  });
255
255
  else
256
256
  for (const c of Object.keys(t.data))
257
- a.append(c, t.data[c]);
258
- r.body = a;
257
+ o.append(c, t.data[c]);
258
+ r.body = o;
259
259
  const i = new Headers(r.headers);
260
260
  i.delete("content-type"), r.headers = i;
261
261
  } else
262
262
  (n.includes("application/json") || typeof t.data == "object") && (r.body = JSON.stringify(t.data));
263
263
  return r;
264
264
  };
265
- class Hr extends y {
265
+ class Gr extends y {
266
266
  request(e) {
267
- return o(this, null, function* () {
268
- const r = Vr(e, e.webFetchExtra), n = ((p, f = !0) => p ? Object.entries(p).reduce((A, I) => {
269
- const [C, h] = I;
267
+ return a(this, null, function* () {
268
+ const r = zr(e, e.webFetchExtra), n = ((h, M = !0) => h ? Object.entries(h).reduce((v, I) => {
269
+ const [C, p] = I;
270
270
  let m, N;
271
- return Array.isArray(h) ? (N = "", h.forEach((v) => {
272
- m = f ? encodeURIComponent(v) : v, N += `${C}=${m}&`;
273
- }), N.slice(0, -1)) : (m = f ? encodeURIComponent(h) : h, N = `${C}=${m}`), `${A}&${N}`;
274
- }, "").substr(1) : null)(e.params, e.shouldEncodeUrlParams), a = n ? `${e.url}?${n}` : e.url, i = yield fetch(a, r), c = i.headers.get("content-type") || "";
275
- let s, w, { responseType: u = "text" } = i.ok ? e : {};
271
+ return Array.isArray(p) ? (N = "", p.forEach((O) => {
272
+ m = M ? encodeURIComponent(O) : O, N += `${C}=${m}&`;
273
+ }), N.slice(0, -1)) : (m = M ? encodeURIComponent(p) : p, N = `${C}=${m}`), `${v}&${N}`;
274
+ }, "").substr(1) : null)(e.params, e.shouldEncodeUrlParams), o = n ? `${e.url}?${n}` : e.url, i = yield fetch(o, r), c = i.headers.get("content-type") || "";
275
+ let s, l, { responseType: u = "text" } = i.ok ? e : {};
276
276
  switch (c.includes("application/json") && (u = "json"), u) {
277
277
  case "arraybuffer":
278
278
  case "blob":
279
- w = yield i.blob(), s = yield ((p) => o(this, null, function* () {
280
- return new Promise((f, A) => {
279
+ l = yield i.blob(), s = yield ((h) => a(this, null, function* () {
280
+ return new Promise((M, v) => {
281
281
  const I = new FileReader();
282
282
  I.onload = () => {
283
283
  const C = I.result;
284
- f(C.indexOf(",") >= 0 ? C.split(",")[1] : C);
285
- }, I.onerror = (C) => A(C), I.readAsDataURL(p);
284
+ M(C.indexOf(",") >= 0 ? C.split(",")[1] : C);
285
+ }, I.onerror = (C) => v(C), I.readAsDataURL(h);
286
286
  });
287
- }))(w);
287
+ }))(l);
288
288
  break;
289
289
  case "json":
290
290
  s = yield i.json();
@@ -293,67 +293,67 @@ class Hr extends y {
293
293
  s = yield i.text();
294
294
  }
295
295
  const _ = {};
296
- return i.headers.forEach((p, f) => {
297
- _[f] = p;
296
+ return i.headers.forEach((h, M) => {
297
+ _[M] = h;
298
298
  }), { data: s, headers: _, status: i.status, url: i.url };
299
299
  });
300
300
  }
301
301
  get(e) {
302
- return o(this, null, function* () {
302
+ return a(this, null, function* () {
303
303
  return this.request(Object.assign(Object.assign({}, e), { method: "GET" }));
304
304
  });
305
305
  }
306
306
  post(e) {
307
- return o(this, null, function* () {
307
+ return a(this, null, function* () {
308
308
  return this.request(Object.assign(Object.assign({}, e), { method: "POST" }));
309
309
  });
310
310
  }
311
311
  put(e) {
312
- return o(this, null, function* () {
312
+ return a(this, null, function* () {
313
313
  return this.request(Object.assign(Object.assign({}, e), { method: "PUT" }));
314
314
  });
315
315
  }
316
316
  patch(e) {
317
- return o(this, null, function* () {
317
+ return a(this, null, function* () {
318
318
  return this.request(Object.assign(Object.assign({}, e), { method: "PATCH" }));
319
319
  });
320
320
  }
321
321
  delete(e) {
322
- return o(this, null, function* () {
322
+ return a(this, null, function* () {
323
323
  return this.request(Object.assign(Object.assign({}, e), { method: "DELETE" }));
324
324
  });
325
325
  }
326
326
  }
327
- function Le() {
327
+ function Ae() {
328
328
  return d.getPlatform() === "android" ? JSON.parse(AndroidInitialContext.initialContext()) : window.portalInitialContext;
329
329
  }
330
- He("CapacitorHttp", { web: () => new Hr() }), /*! Ionic Portals: https://ionic.io/portals - Commercial License */
331
- He("Portals", { web: () => Promise.resolve().then(function() {
332
- return Ur;
330
+ Ue("CapacitorHttp", { web: () => new Gr() }), /*! Ionic Portals: https://ionic.io/portals - Commercial License */
331
+ Ue("Portals", { web: () => Promise.resolve().then(function() {
332
+ return Jr;
333
333
  }).then((t) => new t.PortalsWeb()) });
334
- const Ur = Object.freeze({ __proto__: null, PortalsWeb: class extends y {
334
+ const Jr = Object.freeze({ __proto__: null, PortalsWeb: class extends y {
335
335
  publishNative(t) {
336
- return o(this, null, function* () {
336
+ return a(this, null, function* () {
337
337
  });
338
338
  }
339
- } }), ee = (t) => {
339
+ } }), re = (t) => {
340
340
  var e, r, n;
341
341
  try {
342
342
  if (typeof window == "undefined")
343
343
  return;
344
- if (Le && ((e = Le()) != null && e.value)) {
345
- const a = (n = (r = Le()) == null ? void 0 : r.value) != null ? n : null;
346
- if (!a)
344
+ if (Ae && ((e = Ae()) != null && e.value)) {
345
+ const o = (n = (r = Ae()) == null ? void 0 : r.value) != null ? n : null;
346
+ if (!o)
347
347
  return void console.error("native initialContext is undefine");
348
348
  if (!t)
349
349
  return void console.error("initialContext call back is undefine");
350
- t(a);
350
+ t(o);
351
351
  }
352
- } catch (a) {
353
- throw console.error("getInitialContextHandle error", a), a;
352
+ } catch (o) {
353
+ throw console.error("getInitialContextHandle error", o), o;
354
354
  }
355
355
  };
356
- class Wr {
356
+ class Qr {
357
357
  isNative() {
358
358
  try {
359
359
  return (() => {
@@ -362,7 +362,7 @@ class Wr {
362
362
  return window.rawWindow.__mini_app_hook__.isNative();
363
363
  {
364
364
  let e = !1;
365
- return ee((r) => {
365
+ return re((r) => {
366
366
  e = !!(r != null && r.isNative);
367
367
  }), e;
368
368
  }
@@ -382,12 +382,12 @@ class Wr {
382
382
  return e.callBack(r);
383
383
  } else
384
384
  (({ callBack: r }) => {
385
- ee((n) => {
386
- var a;
385
+ re((n) => {
386
+ var o;
387
387
  try {
388
388
  if (!(n != null && n.params))
389
389
  return void console.info("initial context native params is undefine");
390
- const i = (a = n == null ? void 0 : n.params) != null ? a : null;
390
+ const i = (o = n == null ? void 0 : n.params) != null ? o : null;
391
391
  if (!i)
392
392
  return;
393
393
  if (!r)
@@ -408,15 +408,15 @@ class Wr {
408
408
  return this.isNative() ? window.__MICRO_APP_ENVIRONMENT__ ? (r = window.rawWindow.__mini_app_hook__.getNativeInfo(e)) != null ? r : {} : (() => {
409
409
  try {
410
410
  let n = null;
411
- return ee((a) => {
412
- n = a != null ? a : null;
411
+ return re((o) => {
412
+ n = o != null ? o : null;
413
413
  }), n;
414
414
  } catch (n) {
415
415
  throw console.error("getNativeInfoHandle error", n), n;
416
416
  }
417
417
  })() : ((n) => {
418
- var a;
419
- return (a = n == null ? void 0 : n.mockData) != null ? a : null;
418
+ var o;
419
+ return (o = n == null ? void 0 : n.mockData) != null ? o : null;
420
420
  })(e);
421
421
  } catch (n) {
422
422
  throw console.error("getNativeInfo error", n), n;
@@ -428,34 +428,34 @@ class Wr {
428
428
  });
429
429
  }
430
430
  }
431
- const M = () => {
431
+ const f = () => {
432
432
  try {
433
433
  let t = {};
434
434
  return typeof window != "undefined" && (t = window), t;
435
435
  } catch (t) {
436
436
  throw console.error("isWinHandle error", t), t;
437
437
  }
438
- }, E = "CommunicatePlugin", g = d.registerPlugin(E, { web: () => Promise.resolve().then(() => ct).then((t) => new t.PluginsWeb()) }), re = M();
439
- re.removeAddListenerFab = () => null;
440
- const Fr = (t, e) => {
438
+ }, E = "CommunicatePlugin", g = d.registerPlugin(E, { web: () => Promise.resolve().then(() => Nt).then((t) => new t.PluginsWeb()) }), te = f();
439
+ te.removeAddListenerFab = () => null;
440
+ const Yr = (t, e) => {
441
441
  var r, n;
442
442
  try {
443
- re.removeAddListenerFab && re.removeAddListenerFab();
444
- const a = [];
445
- if ((r = g.showFABMenu) == null || r.call(g, { fabMenu: a, position: null }), !t || !((n = Object.keys(t)) != null && n.length))
443
+ te.removeAddListenerFab && te.removeAddListenerFab();
444
+ const o = [];
445
+ if ((r = g.showFABMenu) == null || r.call(g, { fabMenu: o, position: null }), !t || !((n = Object.keys(t)) != null && n.length))
446
446
  return;
447
447
  Object.keys(t).forEach((i) => {
448
- var c, s, w, u, _, p, f, A;
449
- a.push({ disable: (s = (c = t == null ? void 0 : t[i]) == null ? void 0 : c.disable) != null ? s : !1, icon: (u = (w = t == null ? void 0 : t[i]) == null ? void 0 : w.icon) != null ? u : "", id: (p = (_ = t == null ? void 0 : t[i]) == null ? void 0 : _.id) != null ? p : "", name: (A = (f = t == null ? void 0 : t[i]) == null ? void 0 : f.title) != null ? A : "" });
448
+ var c, s, l, u, _, h, M, v;
449
+ o.push({ disable: (s = (c = t == null ? void 0 : t[i]) == null ? void 0 : c.disable) != null ? s : !1, icon: (u = (l = t == null ? void 0 : t[i]) == null ? void 0 : l.icon) != null ? u : "", id: (h = (_ = t == null ? void 0 : t[i]) == null ? void 0 : _.id) != null ? h : "", name: (v = (M = t == null ? void 0 : t[i]) == null ? void 0 : M.title) != null ? v : "" });
450
450
  }), queueMicrotask(() => {
451
451
  var i;
452
- (i = g.showFABMenu) == null || i.call(g, { fabMenu: a, position: e != null ? e : null });
452
+ (i = g.showFABMenu) == null || i.call(g, { fabMenu: o, position: e != null ? e : null });
453
453
  }), setTimeout(() => {
454
- ((i) => o(void 0, null, function* () {
455
- i && (re.removeAddListenerFab = yield ((c) => o(void 0, null, function* () {
454
+ ((i) => a(void 0, null, function* () {
455
+ i && (te.removeAddListenerFab = yield ((c) => a(void 0, null, function* () {
456
456
  try {
457
457
  if (d.addListener) {
458
- const s = yield d.addListener(E, "nativeSendFab", (w) => c && c(w));
458
+ const s = yield d.addListener(E, "nativeSendFab", (l) => c && c(l));
459
459
  return s != null && s.remove ? s.remove : () => null;
460
460
  }
461
461
  } catch (s) {
@@ -465,19 +465,19 @@ const Fr = (t, e) => {
465
465
  }))((i) => {
466
466
  let c;
467
467
  i != null && i.disable || i != null && i.id && (Object.keys(t).forEach((s) => {
468
- var w, u, _;
469
- (w = t == null ? void 0 : t[s]) != null && w.id && i.id === t[s].id && (c = (_ = (u = t[s]) == null ? void 0 : u.fn) != null ? _ : () => null);
468
+ var l, u, _;
469
+ (l = t == null ? void 0 : t[s]) != null && l.id && i.id === t[s].id && (c = (_ = (u = t[s]) == null ? void 0 : u.fn) != null ? _ : () => null);
470
470
  }), typeof c == "function" && c());
471
471
  });
472
472
  });
473
- } catch (a) {
474
- throw console.error("fabBtnHandle error", a), a;
473
+ } catch (o) {
474
+ throw console.error("fabBtnHandle error", o), o;
475
475
  }
476
- }, B = M();
476
+ }, B = f();
477
477
  B.addListenerBackRemoveHandle = () => null;
478
- const Ke = (t = () => null) => o(void 0, null, function* () {
478
+ const Qe = (t = () => null) => a(void 0, null, function* () {
479
479
  try {
480
- B != null && B.addListenerBackRemoveHandle && typeof B.addListenerBackRemoveHandle == "function" && B.addListenerBackRemoveHandle(), B.addListenerBackRemoveHandle = yield ((e) => o(void 0, null, function* () {
480
+ B != null && B.addListenerBackRemoveHandle && typeof B.addListenerBackRemoveHandle == "function" && B.addListenerBackRemoveHandle(), B.addListenerBackRemoveHandle = yield ((e) => a(void 0, null, function* () {
481
481
  try {
482
482
  if (d.addListener) {
483
483
  const r = yield d.addListener(E, "nativeSendBack", (n) => e && e(n));
@@ -490,16 +490,16 @@ const Ke = (t = () => null) => o(void 0, null, function* () {
490
490
  } catch (e) {
491
491
  throw console.error("initBackBtnFn error", e), e;
492
492
  }
493
- }), te = M();
494
- te.addListenerHomeHandle = () => null;
495
- const Dr = (t) => {
493
+ }), ne = f();
494
+ ne.addListenerHomeHandle = () => null;
495
+ const Zr = (t) => {
496
496
  try {
497
- te.addListenerHomeHandle && te.addListenerHomeHandle(), setTimeout(() => {
498
- ((e) => o(void 0, null, function* () {
499
- e && (te.addListenerHomeHandle = yield ((r) => o(void 0, null, function* () {
497
+ ne.addListenerHomeHandle && ne.addListenerHomeHandle(), setTimeout(() => {
498
+ ((e) => a(void 0, null, function* () {
499
+ e && (ne.addListenerHomeHandle = yield ((r) => a(void 0, null, function* () {
500
500
  try {
501
501
  if (d.addListener) {
502
- const n = yield d.addListener(E, "nativeSendHome", (a) => r && r(a));
502
+ const n = yield d.addListener(E, "nativeSendHome", (o) => r && r(o));
503
503
  return n != null && n.remove ? n.remove : () => null;
504
504
  }
505
505
  } catch (n) {
@@ -511,11 +511,11 @@ const Dr = (t) => {
511
511
  } catch (e) {
512
512
  throw console.error("homeFn error", e), e;
513
513
  }
514
- }, V = M();
514
+ }, V = f();
515
515
  V.addListenerTouchRemoveHandle = () => null;
516
- const Je = (t = () => null) => o(void 0, null, function* () {
516
+ const Ye = (t = () => null) => a(void 0, null, function* () {
517
517
  try {
518
- V != null && V.addListenerTouchRemoveHandle && typeof V.addListenerTouchRemoveHandle == "function" && V.addListenerTouchRemoveHandle(), V.addListenerTouchRemoveHandle = yield ((e) => o(void 0, null, function* () {
518
+ V != null && V.addListenerTouchRemoveHandle && typeof V.addListenerTouchRemoveHandle == "function" && V.addListenerTouchRemoveHandle(), V.addListenerTouchRemoveHandle = yield ((e) => a(void 0, null, function* () {
519
519
  try {
520
520
  if (d.addListener) {
521
521
  const r = yield d.addListener(E, "nativeTouchListener", (n) => e && e(n));
@@ -528,11 +528,11 @@ const Je = (t = () => null) => o(void 0, null, function* () {
528
528
  } catch (e) {
529
529
  throw console.error("initTouchFn error", e), e;
530
530
  }
531
- }), H = M();
531
+ }), H = f();
532
532
  H.addListenerSendDeepLinkRemoveHandle = () => null;
533
- const Ge = (t = () => null) => o(void 0, null, function* () {
533
+ const Ze = (t = () => null) => a(void 0, null, function* () {
534
534
  try {
535
- H != null && H.addListenerSendDeepLinkRemoveHandle && typeof H.addListenerSendDeepLinkRemoveHandle == "function" && H.addListenerSendDeepLinkRemoveHandle(), H.addListenerSendDeepLinkRemoveHandle = yield ((e) => o(void 0, null, function* () {
535
+ H != null && H.addListenerSendDeepLinkRemoveHandle && typeof H.addListenerSendDeepLinkRemoveHandle == "function" && H.addListenerSendDeepLinkRemoveHandle(), H.addListenerSendDeepLinkRemoveHandle = yield ((e) => a(void 0, null, function* () {
536
536
  try {
537
537
  if (window.__MICRO_APP_ENVIRONMENT__)
538
538
  return e && window.rawWindow.__mini_app_hook__.getDeeplinkParams(e), { remove: () => null };
@@ -547,11 +547,11 @@ const Ge = (t = () => null) => o(void 0, null, function* () {
547
547
  } catch (e) {
548
548
  throw console.error("initTouchFn error", e), e;
549
549
  }
550
- }), U = M();
551
- U.addListenerSwitchLanguageRemoveHandle = () => null;
552
- const Qe = (t = () => null) => o(void 0, null, function* () {
550
+ }), F = f();
551
+ F.addListenerSwitchLanguageRemoveHandle = () => null;
552
+ const Xe = (t = () => null) => a(void 0, null, function* () {
553
553
  try {
554
- U != null && U.addListenerSwitchLanguageRemoveHandle && typeof U.addListenerSwitchLanguageRemoveHandle == "function" && U.addListenerSwitchLanguageRemoveHandle(), U.addListenerSwitchLanguageRemoveHandle = yield ((e) => o(void 0, null, function* () {
554
+ F != null && F.addListenerSwitchLanguageRemoveHandle && typeof F.addListenerSwitchLanguageRemoveHandle == "function" && F.addListenerSwitchLanguageRemoveHandle(), F.addListenerSwitchLanguageRemoveHandle = yield ((e) => a(void 0, null, function* () {
555
555
  try {
556
556
  if (d.addListener) {
557
557
  const r = yield d.addListener(E, "nativeSendSwitchLanguage", (n) => e && e(n));
@@ -568,11 +568,11 @@ const Qe = (t = () => null) => o(void 0, null, function* () {
568
568
  } catch (e) {
569
569
  throw console.error("initSwitchLanguageFn error", e), e;
570
570
  }
571
- }), W = M();
572
- W.addListenerSetupMiniAppRemoveHandle = () => null;
573
- const Ye = (t = () => null) => o(void 0, null, function* () {
571
+ }), U = f();
572
+ U.addListenerSetupMiniAppRemoveHandle = () => null;
573
+ const er = (t = () => null) => a(void 0, null, function* () {
574
574
  try {
575
- W != null && W.addListenerSetupMiniAppRemoveHandle && typeof W.addListenerSetupMiniAppRemoveHandle == "function" && W.addListenerSetupMiniAppRemoveHandle(), W.addListenerSetupMiniAppRemoveHandle = yield ((e) => o(void 0, null, function* () {
575
+ U != null && U.addListenerSetupMiniAppRemoveHandle && typeof U.addListenerSetupMiniAppRemoveHandle == "function" && U.addListenerSetupMiniAppRemoveHandle(), U.addListenerSetupMiniAppRemoveHandle = yield ((e) => a(void 0, null, function* () {
576
576
  try {
577
577
  if (d.addListener) {
578
578
  const r = yield d.addListener(E, "nativeSetupMiniApp", (n) => e && e(n));
@@ -585,11 +585,11 @@ const Ye = (t = () => null) => o(void 0, null, function* () {
585
585
  } catch (e) {
586
586
  throw console.error("initSetupMiniAppFn error", e), e;
587
587
  }
588
- }), F = M();
589
- F.addListenerSwitchStoreRemoveHandle = () => null;
590
- const Ze = (t = () => null) => o(void 0, null, function* () {
588
+ }), W = f();
589
+ W.addListenerSwitchStoreRemoveHandle = () => null;
590
+ const rr = (t = () => null) => a(void 0, null, function* () {
591
591
  try {
592
- F != null && F.addListenerSwitchStoreRemoveHandle && typeof F.addListenerSwitchStoreRemoveHandle == "function" && F.addListenerSwitchStoreRemoveHandle(), F.addListenerSwitchStoreRemoveHandle = yield ((e) => o(void 0, null, function* () {
592
+ W != null && W.addListenerSwitchStoreRemoveHandle && typeof W.addListenerSwitchStoreRemoveHandle == "function" && W.addListenerSwitchStoreRemoveHandle(), W.addListenerSwitchStoreRemoveHandle = yield ((e) => a(void 0, null, function* () {
593
593
  try {
594
594
  if (d.addListener) {
595
595
  const r = yield d.addListener(E, "nativeSendSwitchStore", (n) => e && e(n));
@@ -607,12 +607,12 @@ const Ze = (t = () => null) => o(void 0, null, function* () {
607
607
  throw console.error("initSwitchStoreFn error", e), e;
608
608
  }
609
609
  });
610
- class xr {
610
+ class Xr {
611
611
  constructor() {
612
612
  this.homeBtnSwitch({ isClick: !0 });
613
613
  }
614
614
  homeBtnSwitch(e) {
615
- return o(this, null, function* () {
615
+ return a(this, null, function* () {
616
616
  var r;
617
617
  try {
618
618
  return yield (r = g.homeIsClick) == null ? void 0 : r.call(g, e);
@@ -625,11 +625,11 @@ class xr {
625
625
  try {
626
626
  ((r) => {
627
627
  try {
628
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
628
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
629
629
  n(() => {
630
- Ke(i);
631
- }), a(() => {
632
- Ke();
630
+ Qe(i);
631
+ }), o(() => {
632
+ Qe();
633
633
  });
634
634
  } catch (n) {
635
635
  throw console.error("backBtnHandle error", n), n;
@@ -641,14 +641,14 @@ class xr {
641
641
  }
642
642
  setHomeBtn(e) {
643
643
  try {
644
- window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setHomeBtn = e : Dr(e);
644
+ window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setHomeBtn = e : Zr(e);
645
645
  } catch (r) {
646
646
  throw console.error("setHomeBtn error", r), r;
647
647
  }
648
648
  }
649
649
  setFabBtn(e, r) {
650
650
  try {
651
- window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setFabBtn(e, r) : Fr(e, r);
651
+ window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setFabBtn(e, r) : Yr(e, r);
652
652
  } catch (n) {
653
653
  throw console.error("setFabBtn error", n), n;
654
654
  }
@@ -657,11 +657,11 @@ class xr {
657
657
  try {
658
658
  ((r) => {
659
659
  try {
660
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
660
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
661
661
  n(() => {
662
- Je(i);
663
- }), a(() => {
664
- Je();
662
+ Ye(i);
663
+ }), o(() => {
664
+ Ye();
665
665
  });
666
666
  } catch (n) {
667
667
  throw console.error("touchListenerHandle error", n), n;
@@ -672,7 +672,7 @@ class xr {
672
672
  }
673
673
  }
674
674
  disableFAB(e) {
675
- return o(this, null, function* () {
675
+ return a(this, null, function* () {
676
676
  try {
677
677
  return yield g.disableFAB(e);
678
678
  } catch (r) {
@@ -681,7 +681,7 @@ class xr {
681
681
  });
682
682
  }
683
683
  disableBack(e) {
684
- return o(this, null, function* () {
684
+ return a(this, null, function* () {
685
685
  try {
686
686
  return yield g.disableBack(e);
687
687
  } catch (r) {
@@ -690,7 +690,7 @@ class xr {
690
690
  });
691
691
  }
692
692
  openMiniApp(e) {
693
- return o(this, null, function* () {
693
+ return a(this, null, function* () {
694
694
  try {
695
695
  return yield g.openMiniApp(e);
696
696
  } catch (r) {
@@ -699,7 +699,7 @@ class xr {
699
699
  });
700
700
  }
701
701
  showTitle(e) {
702
- return o(this, null, function* () {
702
+ return a(this, null, function* () {
703
703
  try {
704
704
  return yield g.showTitle(e);
705
705
  } catch (r) {
@@ -708,7 +708,7 @@ class xr {
708
708
  });
709
709
  }
710
710
  showSubMask(e) {
711
- return o(this, null, function* () {
711
+ return a(this, null, function* () {
712
712
  try {
713
713
  return yield g.showSubMask(e);
714
714
  } catch (r) {
@@ -717,7 +717,7 @@ class xr {
717
717
  });
718
718
  }
719
719
  setMiniAppVersion(e) {
720
- return o(this, null, function* () {
720
+ return a(this, null, function* () {
721
721
  try {
722
722
  return yield g.setMiniAppVersion(e);
723
723
  } catch (r) {
@@ -726,7 +726,7 @@ class xr {
726
726
  });
727
727
  }
728
728
  showNativeLoading() {
729
- return o(this, null, function* () {
729
+ return a(this, null, function* () {
730
730
  try {
731
731
  return yield g.showDialog();
732
732
  } catch (e) {
@@ -735,7 +735,7 @@ class xr {
735
735
  });
736
736
  }
737
737
  cancelNativeLoading() {
738
- return o(this, null, function* () {
738
+ return a(this, null, function* () {
739
739
  try {
740
740
  return yield g.cancelDialog();
741
741
  } catch (e) {
@@ -744,7 +744,7 @@ class xr {
744
744
  });
745
745
  }
746
746
  getMiniAppKong(e) {
747
- return o(this, null, function* () {
747
+ return a(this, null, function* () {
748
748
  try {
749
749
  return yield g.getMiniAppKong(e);
750
750
  } catch (r) {
@@ -756,11 +756,11 @@ class xr {
756
756
  try {
757
757
  ((r) => {
758
758
  try {
759
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
759
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
760
760
  n(() => {
761
- Ge(i);
762
- }), a(() => {
763
- Ge();
761
+ Ze(i);
762
+ }), o(() => {
763
+ Ze();
764
764
  });
765
765
  } catch (n) {
766
766
  throw console.error("sendDeepLinkListenerHandle error", n), n;
@@ -774,11 +774,11 @@ class xr {
774
774
  try {
775
775
  ((r) => {
776
776
  try {
777
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
777
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
778
778
  n(() => {
779
- Qe(i);
780
- }), a(() => {
781
- Qe();
779
+ Xe(i);
780
+ }), o(() => {
781
+ Xe();
782
782
  });
783
783
  } catch (n) {
784
784
  throw console.error("sendSwitchLanguageHandle error", n), n;
@@ -792,11 +792,11 @@ class xr {
792
792
  try {
793
793
  ((r) => {
794
794
  try {
795
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
795
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
796
796
  n(() => {
797
- Ye(i);
798
- }), a(() => {
799
- Ye();
797
+ er(i);
798
+ }), o(() => {
799
+ er();
800
800
  });
801
801
  } catch (n) {
802
802
  throw console.error("setupMiniAppHandle error", n), n;
@@ -810,11 +810,11 @@ class xr {
810
810
  try {
811
811
  ((r) => {
812
812
  try {
813
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
813
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
814
814
  n(() => {
815
- Ze(i);
816
- }), a(() => {
817
- Ze();
815
+ rr(i);
816
+ }), o(() => {
817
+ rr();
818
818
  });
819
819
  } catch (n) {
820
820
  throw console.error("sendSwitchStoreHandle error", n), n;
@@ -825,7 +825,7 @@ class xr {
825
825
  }
826
826
  }
827
827
  closeMiniApp() {
828
- return o(this, null, function* () {
828
+ return a(this, null, function* () {
829
829
  try {
830
830
  return yield g.closeMiniApp();
831
831
  } catch (e) {
@@ -834,7 +834,7 @@ class xr {
834
834
  });
835
835
  }
836
836
  getStatus() {
837
- return o(this, null, function* () {
837
+ return a(this, null, function* () {
838
838
  try {
839
839
  return yield g.getStatus();
840
840
  } catch (e) {
@@ -843,7 +843,7 @@ class xr {
843
843
  });
844
844
  }
845
845
  dispatchToShell(e) {
846
- return o(this, null, function* () {
846
+ return a(this, null, function* () {
847
847
  try {
848
848
  return yield g.dispatchToShell(e);
849
849
  } catch (r) {
@@ -852,7 +852,7 @@ class xr {
852
852
  });
853
853
  }
854
854
  getMiniAppInfo(e) {
855
- return o(this, null, function* () {
855
+ return a(this, null, function* () {
856
856
  try {
857
857
  return yield g.getMiniAppInfo(e);
858
858
  } catch (r) {
@@ -861,26 +861,26 @@ class xr {
861
861
  });
862
862
  }
863
863
  }
864
- let ne = null;
865
- var or;
866
- window.__MICRO_APP_ENVIRONMENT__ && (ne = (or = window.rawWindow.__mini_app_status_hook__) != null ? or : {});
867
- const Ae = d.registerPlugin("CameraScanPlugin", { web: new class extends y {
864
+ let oe = null;
865
+ var _r;
866
+ window.__MICRO_APP_ENVIRONMENT__ && (oe = (_r = window.rawWindow.__mini_app_status_hook__) != null ? _r : {});
867
+ const Ee = d.registerPlugin("CameraScanPlugin", { web: new class extends y {
868
868
  pickCameraScan(t) {
869
- return o(this, null, function* () {
869
+ return a(this, null, function* () {
870
870
  return new Promise((e) => {
871
871
  e(t);
872
872
  });
873
873
  });
874
874
  }
875
875
  setCameraScanState() {
876
- return o(this, null, function* () {
876
+ return a(this, null, function* () {
877
877
  });
878
878
  }
879
879
  getStatus() {
880
880
  try {
881
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
881
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
882
882
  var e, r;
883
- t((yield (r = (e = ne == null ? void 0 : ne.cameraScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
883
+ t((yield (r = (e = oe == null ? void 0 : oe.cameraScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
884
884
  })) : new Promise((t) => {
885
885
  t(null);
886
886
  });
@@ -890,52 +890,52 @@ const Ae = d.registerPlugin("CameraScanPlugin", { web: new class extends y {
890
890
  }
891
891
  }() });
892
892
  window.removeAddListenerCameraScan = () => null;
893
- class jr {
893
+ class et {
894
894
  pickCameraScan(e) {
895
- return o(this, null, function* () {
895
+ return a(this, null, function* () {
896
896
  try {
897
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScan(e) : yield Ae.pickCameraScan(e);
897
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScan(e) : yield Ee.pickCameraScan(e);
898
898
  } catch (r) {
899
899
  throw console.error("pickCameraScan error", r), r;
900
900
  }
901
901
  });
902
902
  }
903
903
  setCameraScanState(e) {
904
- return o(this, null, function* () {
904
+ return a(this, null, function* () {
905
905
  try {
906
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanState(e) : yield Ae.setCameraScanState(e);
906
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanState(e) : yield Ee.setCameraScanState(e);
907
907
  } catch (r) {
908
908
  throw console.error("setCameraScanState error", r), r;
909
909
  }
910
910
  });
911
911
  }
912
912
  getStatus() {
913
- return o(this, null, function* () {
913
+ return a(this, null, function* () {
914
914
  try {
915
- return yield Ae.getStatus();
915
+ return yield Ee.getStatus();
916
916
  } catch (e) {
917
917
  throw console.error("cameraScanPlugin getStatus error", e), e;
918
918
  }
919
919
  });
920
920
  }
921
921
  }
922
- let oe = null;
923
- var ar;
924
- window.__MICRO_APP_ENVIRONMENT__ && (oe = (ar = window.rawWindow.__mini_app_status_hook__) != null ? ar : {});
925
- const Oe = d.registerPlugin("CameraScanMultiplePlugin", { web: new class extends y {
922
+ let ae = null;
923
+ var pr;
924
+ window.__MICRO_APP_ENVIRONMENT__ && (ae = (pr = window.rawWindow.__mini_app_status_hook__) != null ? pr : {});
925
+ const Re = d.registerPlugin("CameraScanMultiplePlugin", { web: new class extends y {
926
926
  pickCameraScanMultiple() {
927
- return o(this, null, function* () {
927
+ return a(this, null, function* () {
928
928
  });
929
929
  }
930
930
  setCameraScanMultipleState() {
931
- return o(this, null, function* () {
931
+ return a(this, null, function* () {
932
932
  });
933
933
  }
934
934
  getStatus() {
935
935
  try {
936
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
936
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
937
937
  var e, r;
938
- t((yield (r = (e = oe == null ? void 0 : oe.cameraScanMultiple) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
938
+ t((yield (r = (e = ae == null ? void 0 : ae.cameraScanMultiple) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
939
939
  })) : new Promise((t) => {
940
940
  t(null);
941
941
  });
@@ -944,52 +944,52 @@ const Oe = d.registerPlugin("CameraScanMultiplePlugin", { web: new class extends
944
944
  }
945
945
  }
946
946
  }() });
947
- class $r {
947
+ class rt {
948
948
  pickCameraScanMultiple(e) {
949
- return o(this, null, function* () {
949
+ return a(this, null, function* () {
950
950
  try {
951
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultiple(e) : yield Oe.pickCameraScanMultiple(e);
951
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultiple(e) : yield Re.pickCameraScanMultiple(e);
952
952
  } catch (r) {
953
953
  throw console.error("pickCameraScanMultiple error", r), r;
954
954
  }
955
955
  });
956
956
  }
957
957
  setCameraScanMultipleState(e) {
958
- return o(this, null, function* () {
958
+ return a(this, null, function* () {
959
959
  try {
960
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleState(e) : yield Oe.setCameraScanMultipleState(e);
960
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleState(e) : yield Re.setCameraScanMultipleState(e);
961
961
  } catch (r) {
962
962
  throw console.error("setCameraScanMultipleState error", r), r;
963
963
  }
964
964
  });
965
965
  }
966
966
  getStatus() {
967
- return o(this, null, function* () {
967
+ return a(this, null, function* () {
968
968
  try {
969
- return yield Oe.getStatus();
969
+ return yield Re.getStatus();
970
970
  } catch (e) {
971
971
  throw console.error("cameraScanMultiplePlugin getStatus error", e), e;
972
972
  }
973
973
  });
974
974
  }
975
975
  }
976
- let ae = null;
977
- var ir;
978
- window.__MICRO_APP_ENVIRONMENT__ && (ae = (ir = window.rawWindow.__mini_app_status_hook__) != null ? ir : {});
979
- const Ee = d.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends y {
976
+ let ie = null;
977
+ var hr;
978
+ window.__MICRO_APP_ENVIRONMENT__ && (ie = (hr = window.rawWindow.__mini_app_status_hook__) != null ? hr : {});
979
+ const ke = d.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends y {
980
980
  pickCameraScanMultipleNoCount() {
981
- return o(this, null, function* () {
981
+ return a(this, null, function* () {
982
982
  });
983
983
  }
984
984
  setCameraScanMultipleNoCountState() {
985
- return o(this, null, function* () {
985
+ return a(this, null, function* () {
986
986
  });
987
987
  }
988
988
  getStatus() {
989
989
  try {
990
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
990
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
991
991
  var e, r;
992
- t((yield (r = (e = ae == null ? void 0 : ae.cameraScanMultipleNoCount) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
992
+ t((yield (r = (e = ie == null ? void 0 : ie.cameraScanMultipleNoCount) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
993
993
  })) : new Promise((t) => {
994
994
  t(null);
995
995
  });
@@ -998,52 +998,52 @@ const Ee = d.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class
998
998
  }
999
999
  }
1000
1000
  }() });
1001
- class qr {
1001
+ class tt {
1002
1002
  pickCameraScanMultipleNoCount(e) {
1003
- return o(this, null, function* () {
1003
+ return a(this, null, function* () {
1004
1004
  try {
1005
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultipleNoCount(e) : yield Ee.pickCameraScanMultipleNoCount(e);
1005
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultipleNoCount(e) : yield ke.pickCameraScanMultipleNoCount(e);
1006
1006
  } catch (r) {
1007
1007
  throw console.error("pickCameraScanMultipleNoCount error", r), r;
1008
1008
  }
1009
1009
  });
1010
1010
  }
1011
1011
  setCameraScanMultipleNoCountState(e) {
1012
- return o(this, null, function* () {
1012
+ return a(this, null, function* () {
1013
1013
  try {
1014
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleNoCountState(e) : yield Ee.setCameraScanMultipleNoCountState(e);
1014
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleNoCountState(e) : yield ke.setCameraScanMultipleNoCountState(e);
1015
1015
  } catch (r) {
1016
1016
  throw console.error("setCameraScanMultipleNoCountState error", r), r;
1017
1017
  }
1018
1018
  });
1019
1019
  }
1020
1020
  getStatus() {
1021
- return o(this, null, function* () {
1021
+ return a(this, null, function* () {
1022
1022
  try {
1023
- return yield Ee.getStatus();
1023
+ return yield ke.getStatus();
1024
1024
  } catch (e) {
1025
1025
  throw console.error("cameraScanMultipleNoCountPlugin getStatus error", e), e;
1026
1026
  }
1027
1027
  });
1028
1028
  }
1029
1029
  }
1030
- let ie = null;
1031
- var sr;
1032
- window.__MICRO_APP_ENVIRONMENT__ && (ie = (sr = window.rawWindow.__mini_app_status_hook__) != null ? sr : {});
1033
- const Re = d.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class extends y {
1030
+ let se = null;
1031
+ var mr;
1032
+ window.__MICRO_APP_ENVIRONMENT__ && (se = (mr = window.rawWindow.__mini_app_status_hook__) != null ? mr : {});
1033
+ const be = d.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class extends y {
1034
1034
  pickCameraScanSingleOrDual() {
1035
- return o(this, null, function* () {
1035
+ return a(this, null, function* () {
1036
1036
  });
1037
1037
  }
1038
1038
  setCameraScanSingleOrDualState() {
1039
- return o(this, null, function* () {
1039
+ return a(this, null, function* () {
1040
1040
  });
1041
1041
  }
1042
1042
  getStatus() {
1043
1043
  try {
1044
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1044
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1045
1045
  var e, r;
1046
- t((yield (r = (e = ie == null ? void 0 : ie.cameraScanSingleOrDual) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1046
+ t((yield (r = (e = se == null ? void 0 : se.cameraScanSingleOrDual) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1047
1047
  })) : new Promise((t) => {
1048
1048
  t(null);
1049
1049
  });
@@ -1052,57 +1052,57 @@ const Re = d.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class ext
1052
1052
  }
1053
1053
  }
1054
1054
  }() });
1055
- class Kr {
1055
+ class nt {
1056
1056
  pickCameraScanSingleOrDual(e) {
1057
- return o(this, null, function* () {
1057
+ return a(this, null, function* () {
1058
1058
  try {
1059
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanSingleOrDual(e) : yield Re.pickCameraScanSingleOrDual(e);
1059
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanSingleOrDual(e) : yield be.pickCameraScanSingleOrDual(e);
1060
1060
  } catch (r) {
1061
1061
  throw console.error("pickCameraScanSingleOrDual error", r), r;
1062
1062
  }
1063
1063
  });
1064
1064
  }
1065
1065
  setCameraScanSingleOrDualState(e) {
1066
- return o(this, null, function* () {
1066
+ return a(this, null, function* () {
1067
1067
  try {
1068
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCameraScanSingleOrDualState(e) : yield Re.setCameraScanSingleOrDualState(e);
1068
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCameraScanSingleOrDualState(e) : yield be.setCameraScanSingleOrDualState(e);
1069
1069
  } catch (r) {
1070
1070
  throw console.error("setCameraScanSingleOrDualState error", r), r;
1071
1071
  }
1072
1072
  });
1073
1073
  }
1074
1074
  getStatus() {
1075
- return o(this, null, function* () {
1075
+ return a(this, null, function* () {
1076
1076
  try {
1077
- return yield Re.getStatus();
1077
+ return yield be.getStatus();
1078
1078
  } catch (e) {
1079
1079
  throw console.error("cameraScanSingleOrDualPlugin getStatus error", e), e;
1080
1080
  }
1081
1081
  });
1082
1082
  }
1083
1083
  }
1084
- const Sr = "LaserScanPlugin";
1085
- let se = null;
1086
- var cr;
1087
- window.__MICRO_APP_ENVIRONMENT__ && (se = (cr = window.rawWindow.__mini_app_status_hook__) != null ? cr : {});
1088
- const X = d.registerPlugin(Sr, { web: new class extends y {
1084
+ const Er = "LaserScanPlugin";
1085
+ let ce = null;
1086
+ var gr;
1087
+ window.__MICRO_APP_ENVIRONMENT__ && (ce = (gr = window.rawWindow.__mini_app_status_hook__) != null ? gr : {});
1088
+ const X = d.registerPlugin(Er, { web: new class extends y {
1089
1089
  pickLaserScan() {
1090
- return o(this, null, function* () {
1090
+ return a(this, null, function* () {
1091
1091
  });
1092
1092
  }
1093
1093
  unPickLaserScan() {
1094
- return o(this, null, function* () {
1094
+ return a(this, null, function* () {
1095
1095
  });
1096
1096
  }
1097
1097
  setLaserState() {
1098
- return o(this, null, function* () {
1098
+ return a(this, null, function* () {
1099
1099
  });
1100
1100
  }
1101
1101
  getStatus() {
1102
1102
  try {
1103
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1103
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1104
1104
  var e, r;
1105
- t((yield (r = (e = se == null ? void 0 : se.laserScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1105
+ t((yield (r = (e = ce == null ? void 0 : ce.laserScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1106
1106
  })) : new Promise((t) => {
1107
1107
  t(null);
1108
1108
  });
@@ -1110,20 +1110,20 @@ const X = d.registerPlugin(Sr, { web: new class extends y {
1110
1110
  throw console.error("laserScan getStatus error", t), t;
1111
1111
  }
1112
1112
  }
1113
- }() }), ce = M();
1114
- ce.removeAddListenerLaserScan = () => null;
1115
- const Xe = (t = () => null) => {
1113
+ }() }), le = f();
1114
+ le.removeAddListenerLaserScan = () => null;
1115
+ const tr = (t = () => null) => {
1116
1116
  try {
1117
- ce.removeAddListenerLaserScan && ce.removeAddListenerLaserScan();
1118
- const e = (r) => o(void 0, null, function* () {
1119
- r && (ce.removeAddListenerLaserScan = yield ((n) => o(void 0, null, function* () {
1117
+ le.removeAddListenerLaserScan && le.removeAddListenerLaserScan();
1118
+ const e = (r) => a(void 0, null, function* () {
1119
+ r && (le.removeAddListenerLaserScan = yield ((n) => a(void 0, null, function* () {
1120
1120
  try {
1121
1121
  if (d.addListener) {
1122
- const a = yield d.addListener(Sr, "nativeSendLaser", (i) => n && n(i));
1123
- return a != null && a.remove ? a.remove : () => null;
1122
+ const o = yield d.addListener(Er, "nativeSendLaser", (i) => n && n(i));
1123
+ return o != null && o.remove ? o.remove : () => null;
1124
1124
  }
1125
- } catch (a) {
1126
- throw console.error("addListenerLaserHandle error", a), a;
1125
+ } catch (o) {
1126
+ throw console.error("addListenerLaserHandle error", o), o;
1127
1127
  }
1128
1128
  }))(r));
1129
1129
  });
@@ -1134,12 +1134,12 @@ const Xe = (t = () => null) => {
1134
1134
  throw console.error("laserScanFn error", e), e;
1135
1135
  }
1136
1136
  };
1137
- class Jr {
1137
+ class ot {
1138
1138
  constructor() {
1139
1139
  this.pickLaserScan();
1140
1140
  }
1141
1141
  pickLaserScan() {
1142
- return o(this, null, function* () {
1142
+ return a(this, null, function* () {
1143
1143
  try {
1144
1144
  return yield X.pickLaserScan({ isContinue: !1 });
1145
1145
  } catch (e) {
@@ -1148,7 +1148,7 @@ class Jr {
1148
1148
  });
1149
1149
  }
1150
1150
  unPickLaserScan() {
1151
- return o(this, null, function* () {
1151
+ return a(this, null, function* () {
1152
1152
  try {
1153
1153
  return yield X.unPickLaserScan();
1154
1154
  } catch (e) {
@@ -1166,11 +1166,11 @@ class Jr {
1166
1166
  setLaserScan(e) {
1167
1167
  ((r) => {
1168
1168
  try {
1169
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
1169
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
1170
1170
  n(() => {
1171
- Xe(i);
1172
- }), a(() => {
1173
- Xe();
1171
+ tr(i);
1172
+ }), o(() => {
1173
+ tr();
1174
1174
  });
1175
1175
  } catch (n) {
1176
1176
  throw console.error("laserScanApiParams error", n), n;
@@ -1178,7 +1178,7 @@ class Jr {
1178
1178
  })(e);
1179
1179
  }
1180
1180
  getStatus() {
1181
- return o(this, null, function* () {
1181
+ return a(this, null, function* () {
1182
1182
  try {
1183
1183
  return yield X.getStatus();
1184
1184
  } catch (e) {
@@ -1187,13 +1187,13 @@ class Jr {
1187
1187
  });
1188
1188
  }
1189
1189
  }
1190
- const Nr = "CountAssistPlugin";
1191
- let le = null;
1192
- var lr;
1193
- window.__MICRO_APP_ENVIRONMENT__ && (le = (lr = window.rawWindow.__mini_app_status_hook__) != null ? lr : {});
1194
- const z = d.registerPlugin(Nr, { web: new class extends y {
1190
+ const Rr = "CountAssistPlugin";
1191
+ let we = null;
1192
+ var Pr;
1193
+ window.__MICRO_APP_ENVIRONMENT__ && (we = (Pr = window.rawWindow.__mini_app_status_hook__) != null ? Pr : {});
1194
+ const ee = d.registerPlugin(Rr, { web: new class extends y {
1195
1195
  setCountAssistState(t) {
1196
- return o(this, null, function* () {
1196
+ return a(this, null, function* () {
1197
1197
  try {
1198
1198
  return new Promise((e) => {
1199
1199
  e(t);
@@ -1204,7 +1204,7 @@ const z = d.registerPlugin(Nr, { web: new class extends y {
1204
1204
  });
1205
1205
  }
1206
1206
  toggleCountAssist(t) {
1207
- return o(this, null, function* () {
1207
+ return a(this, null, function* () {
1208
1208
  try {
1209
1209
  return new Promise((e) => {
1210
1210
  e(t);
@@ -1215,7 +1215,7 @@ const z = d.registerPlugin(Nr, { web: new class extends y {
1215
1215
  });
1216
1216
  }
1217
1217
  getCountAssistToggleState() {
1218
- return o(this, null, function* () {
1218
+ return a(this, null, function* () {
1219
1219
  try {
1220
1220
  return new Promise((t) => {
1221
1221
  t(void 0);
@@ -1227,9 +1227,9 @@ const z = d.registerPlugin(Nr, { web: new class extends y {
1227
1227
  }
1228
1228
  getStatus() {
1229
1229
  try {
1230
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1230
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1231
1231
  var e, r;
1232
- t((yield (r = (e = le == null ? void 0 : le.countAssist) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1232
+ t((yield (r = (e = we == null ? void 0 : we.countAssist) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1233
1233
  })) : new Promise((t) => {
1234
1234
  t(null);
1235
1235
  });
@@ -1237,14 +1237,14 @@ const z = d.registerPlugin(Nr, { web: new class extends y {
1237
1237
  throw console.error("countAssist getStatus error", t), t;
1238
1238
  }
1239
1239
  }
1240
- }() }), D = M();
1240
+ }() }), D = f();
1241
1241
  D.addListenerCountAssistRemoveHandle = () => null;
1242
- const ze = (t = () => null) => o(void 0, null, function* () {
1242
+ const nr = (t = () => null) => a(void 0, null, function* () {
1243
1243
  try {
1244
- D != null && D.addListenerCountAssistRemoveHandle && typeof D.addListenerCountAssistRemoveHandle == "function" && D.addListenerCountAssistRemoveHandle(), D.addListenerCountAssistRemoveHandle = yield ((e) => o(void 0, null, function* () {
1244
+ D != null && D.addListenerCountAssistRemoveHandle && typeof D.addListenerCountAssistRemoveHandle == "function" && D.addListenerCountAssistRemoveHandle(), D.addListenerCountAssistRemoveHandle = yield ((e) => a(void 0, null, function* () {
1245
1245
  try {
1246
1246
  if (d.addListener) {
1247
- const r = yield d.addListener(Nr, "nativeSendCountAssist", (n) => e && e(n));
1247
+ const r = yield d.addListener(Rr, "nativeSendCountAssist", (n) => e && e(n));
1248
1248
  return r != null && r.remove ? r.remove : () => null;
1249
1249
  }
1250
1250
  } catch (r) {
@@ -1255,18 +1255,18 @@ const ze = (t = () => null) => o(void 0, null, function* () {
1255
1255
  throw console.error("initCountAssistFn error", e), e;
1256
1256
  }
1257
1257
  });
1258
- class Gr {
1258
+ class at {
1259
1259
  setCountAssistState(e) {
1260
- return o(this, null, function* () {
1261
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCountAssistState(e) : yield z.setCountAssistState(e);
1260
+ return a(this, null, function* () {
1261
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCountAssistState(e) : yield ee.setCountAssistState(e);
1262
1262
  });
1263
1263
  }
1264
1264
  getCountAssistState(e) {
1265
1265
  return ((r) => {
1266
1266
  try {
1267
1267
  let n = r != null ? r : !1;
1268
- return ee((a) => {
1269
- n = !!(a != null && a.countAssistState);
1268
+ return re((o) => {
1269
+ n = !!(o != null && o.countAssistState);
1270
1270
  }), n;
1271
1271
  } catch (n) {
1272
1272
  throw console.error("getCountAssistStateHandle error", n), n;
@@ -1276,11 +1276,11 @@ class Gr {
1276
1276
  setCountAssistBtn(e) {
1277
1277
  ((r) => {
1278
1278
  try {
1279
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
1279
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
1280
1280
  n(() => {
1281
- ze(i);
1282
- }), a(() => {
1283
- ze();
1281
+ nr(i);
1282
+ }), o(() => {
1283
+ nr();
1284
1284
  });
1285
1285
  } catch (n) {
1286
1286
  throw console.error("setCountAssistBtnHandle error", n), n;
@@ -1288,38 +1288,38 @@ class Gr {
1288
1288
  })(e);
1289
1289
  }
1290
1290
  toggleCountAssist(e) {
1291
- return o(this, null, function* () {
1292
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.toggleCountAssist(e) : yield z.toggleCountAssist(e);
1291
+ return a(this, null, function* () {
1292
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.toggleCountAssist(e) : yield ee.toggleCountAssist(e);
1293
1293
  });
1294
1294
  }
1295
1295
  getCountAssistToggleState() {
1296
- return o(this, null, function* () {
1297
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.getCountAssistToggleState() : yield z.getCountAssistToggleState();
1296
+ return a(this, null, function* () {
1297
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.getCountAssistToggleState() : yield ee.getCountAssistToggleState();
1298
1298
  });
1299
1299
  }
1300
1300
  getStatus() {
1301
- return o(this, null, function* () {
1301
+ return a(this, null, function* () {
1302
1302
  try {
1303
- return yield z.getStatus();
1303
+ return yield ee.getStatus();
1304
1304
  } catch (e) {
1305
1305
  throw console.error("countAssistPlugin getStatus error", e), e;
1306
1306
  }
1307
1307
  });
1308
1308
  }
1309
1309
  }
1310
- let we = null;
1311
- var wr;
1312
- window.__MICRO_APP_ENVIRONMENT__ && (we = (wr = window.rawWindow.__mini_app_status_hook__) != null ? wr : {});
1313
- const ke = d.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1310
+ let de = null;
1311
+ var yr;
1312
+ window.__MICRO_APP_ENVIRONMENT__ && (de = (yr = window.rawWindow.__mini_app_status_hook__) != null ? yr : {});
1313
+ const Te = d.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1314
1314
  init() {
1315
- return o(this, null, function* () {
1315
+ return a(this, null, function* () {
1316
1316
  return new Promise((t) => {
1317
1317
  t(null);
1318
1318
  });
1319
1319
  });
1320
1320
  }
1321
1321
  trace(t) {
1322
- return o(this, null, function* () {
1322
+ return a(this, null, function* () {
1323
1323
  var e, r;
1324
1324
  try {
1325
1325
  return window.__MICRO_APP_ENVIRONMENT__ && ((r = (e = window.rawWindow.__mini_app_hook__).clickStream) == null || r.call(e, t.data)), new Promise((n) => {
@@ -1332,9 +1332,9 @@ const ke = d.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1332
1332
  }
1333
1333
  getStatus() {
1334
1334
  try {
1335
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1335
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1336
1336
  var e, r;
1337
- t((yield (r = (e = we == null ? void 0 : we.clickStream) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1337
+ t((yield (r = (e = de == null ? void 0 : de.clickStream) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1338
1338
  })) : new Promise((t) => {
1339
1339
  t(null);
1340
1340
  });
@@ -1343,57 +1343,57 @@ const ke = d.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1343
1343
  }
1344
1344
  }
1345
1345
  }() });
1346
- class Qr {
1346
+ class it {
1347
1347
  constructor() {
1348
1348
  this.init();
1349
1349
  }
1350
1350
  init() {
1351
- return o(this, null, function* () {
1351
+ return a(this, null, function* () {
1352
1352
  try {
1353
- return yield ke.init();
1353
+ return yield Te.init();
1354
1354
  } catch (e) {
1355
1355
  throw console.error("clickStreamPlugin, init error", e), e;
1356
1356
  }
1357
1357
  });
1358
1358
  }
1359
1359
  trace(e) {
1360
- return o(this, null, function* () {
1360
+ return a(this, null, function* () {
1361
1361
  try {
1362
- return yield ke.trace(e);
1362
+ return yield Te.trace(e);
1363
1363
  } catch (r) {
1364
1364
  throw console.error("clickStreamPlugin, trace error", r), r;
1365
1365
  }
1366
1366
  });
1367
1367
  }
1368
1368
  getStatus() {
1369
- return o(this, null, function* () {
1369
+ return a(this, null, function* () {
1370
1370
  try {
1371
- return yield ke.getStatus();
1371
+ return yield Te.getStatus();
1372
1372
  } catch (e) {
1373
1373
  throw console.error("clickStreamPlugin getStatus error", e), e;
1374
1374
  }
1375
1375
  });
1376
1376
  }
1377
1377
  }
1378
- const Mr = "MiniAppLifecyclePlugin";
1379
- let de = null;
1380
- var dr;
1381
- window.__MICRO_APP_ENVIRONMENT__ && (de = (dr = window.rawWindow.__mini_app_status_hook__) != null ? dr : {});
1378
+ const kr = "MiniAppLifecyclePlugin";
1379
+ let ue = null;
1380
+ var Sr;
1381
+ window.__MICRO_APP_ENVIRONMENT__ && (ue = (Sr = window.rawWindow.__mini_app_status_hook__) != null ? Sr : {});
1382
1382
  var Q = ((t) => (t.MINI_APP_BEFORE_UNMOUNT_PERMISSION = "mini_app_before_unmount_permission", t.MINI_APP_BEFORE_UNMOUNT_COMPLETION = "mini_app_before_unmount_completion", t))(Q || {});
1383
- const be = d.registerPlugin(Mr, { web: new class extends y {
1383
+ const Be = d.registerPlugin(kr, { web: new class extends y {
1384
1384
  setNativeUsagePermission() {
1385
- return o(this, null, function* () {
1385
+ return a(this, null, function* () {
1386
1386
  });
1387
1387
  }
1388
1388
  authorizeWebCallback() {
1389
- return o(this, null, function* () {
1389
+ return a(this, null, function* () {
1390
1390
  });
1391
1391
  }
1392
1392
  getStatus() {
1393
1393
  try {
1394
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1394
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1395
1395
  var e, r;
1396
- t((yield (r = (e = de == null ? void 0 : de.lifecycle) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1396
+ t((yield (r = (e = ue == null ? void 0 : ue.lifecycle) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1397
1397
  })) : new Promise((t) => {
1398
1398
  t(null);
1399
1399
  });
@@ -1401,46 +1401,46 @@ const be = d.registerPlugin(Mr, { web: new class extends y {
1401
1401
  throw console.error("lifecycle getStatus error", t), t;
1402
1402
  }
1403
1403
  }
1404
- }() }), ue = M();
1405
- ue.removeAddListenerLifecycleMiniAppBeforeUnmount = () => null;
1406
- const er = (t = () => null) => {
1404
+ }() }), _e = f();
1405
+ _e.removeAddListenerLifecycleMiniAppBeforeUnmount = () => null;
1406
+ const or = (t = () => null) => {
1407
1407
  try {
1408
- ue.removeAddListenerLifecycleMiniAppBeforeUnmount && ue.removeAddListenerLifecycleMiniAppBeforeUnmount();
1409
- const e = (r) => o(void 0, null, function* () {
1410
- r && (ue.removeAddListenerLifecycleMiniAppBeforeUnmount = yield ((n) => o(void 0, null, function* () {
1408
+ _e.removeAddListenerLifecycleMiniAppBeforeUnmount && _e.removeAddListenerLifecycleMiniAppBeforeUnmount();
1409
+ const e = (r) => a(void 0, null, function* () {
1410
+ r && (_e.removeAddListenerLifecycleMiniAppBeforeUnmount = yield ((n) => a(void 0, null, function* () {
1411
1411
  try {
1412
1412
  if (d.addListener) {
1413
- const a = yield d.addListener(Mr, "miniAppBeforeUnmount", (i) => n && n(i));
1414
- return a != null && a.remove ? a.remove : () => null;
1413
+ const o = yield d.addListener(kr, "miniAppBeforeUnmount", (i) => n && n(i));
1414
+ return o != null && o.remove ? o.remove : () => null;
1415
1415
  }
1416
- } catch (a) {
1417
- throw console.error("miniAppBeforeUnmountHandle error", a), a;
1416
+ } catch (o) {
1417
+ throw console.error("miniAppBeforeUnmountHandle error", o), o;
1418
1418
  }
1419
1419
  }))(r));
1420
1420
  });
1421
- setTimeout(() => o(void 0, null, function* () {
1421
+ setTimeout(() => a(void 0, null, function* () {
1422
1422
  yield e(t);
1423
1423
  }));
1424
1424
  } catch (e) {
1425
1425
  throw console.error("laserScanFn error", e), e;
1426
1426
  }
1427
1427
  };
1428
- class Yr {
1428
+ class st {
1429
1429
  constructor() {
1430
1430
  }
1431
1431
  setNativeUsagePermission(e) {
1432
- return o(this, null, function* () {
1432
+ return a(this, null, function* () {
1433
1433
  try {
1434
- return yield be.setNativeUsagePermission(e);
1434
+ return yield Be.setNativeUsagePermission(e);
1435
1435
  } catch (r) {
1436
1436
  throw console.error("lifecyclePlugin.setNativeUsagePermission error", r), r;
1437
1437
  }
1438
1438
  });
1439
1439
  }
1440
1440
  authorizeWebCallback(e) {
1441
- return o(this, null, function* () {
1441
+ return a(this, null, function* () {
1442
1442
  try {
1443
- return yield be.authorizeWebCallback(e);
1443
+ return yield Be.authorizeWebCallback(e);
1444
1444
  } catch (r) {
1445
1445
  throw console.error("lifecyclePlugin.authorizeWebCallback error", r), r;
1446
1446
  }
@@ -1449,13 +1449,13 @@ class Yr {
1449
1449
  miniAppBeforeUnmount(e) {
1450
1450
  this.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !0 }), ((r, n) => {
1451
1451
  try {
1452
- const { mounted: a, beforeUnmount: i, callBack: c } = r;
1453
- a(() => {
1454
- er((s) => o(this, null, function* () {
1455
- var w;
1452
+ const { mounted: o, beforeUnmount: i, callBack: c } = r;
1453
+ o(() => {
1454
+ or((s) => a(this, null, function* () {
1455
+ var l;
1456
1456
  if (c && c instanceof Function)
1457
1457
  try {
1458
- (w = c(s)) == null || w.then(() => o(this, null, function* () {
1458
+ (l = c(s)) == null || l.then(() => a(this, null, function* () {
1459
1459
  yield n.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 }), yield n.authorizeWebCallback({ action: Q.MINI_APP_BEFORE_UNMOUNT_COMPLETION });
1460
1460
  }));
1461
1461
  } catch (u) {
@@ -1464,41 +1464,41 @@ class Yr {
1464
1464
  else
1465
1465
  console.error("miniAppBeforeUnmount error callBack is not a function or promise");
1466
1466
  }));
1467
- }), i(() => o(this, null, function* () {
1468
- er(), n.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 });
1467
+ }), i(() => a(this, null, function* () {
1468
+ or(), n.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 });
1469
1469
  }));
1470
- } catch (a) {
1471
- throw console.error("miniAppBeforeUnmount error", a), a;
1470
+ } catch (o) {
1471
+ throw console.error("miniAppBeforeUnmount error", o), o;
1472
1472
  }
1473
1473
  })(e, this);
1474
1474
  }
1475
1475
  getStatus() {
1476
- return o(this, null, function* () {
1476
+ return a(this, null, function* () {
1477
1477
  try {
1478
- return yield be.getStatus();
1478
+ return yield Be.getStatus();
1479
1479
  } catch (e) {
1480
1480
  throw console.error("getStatus error", e), e;
1481
1481
  }
1482
1482
  });
1483
1483
  }
1484
1484
  }
1485
- let _e = null;
1486
- var ur;
1487
- window.__MICRO_APP_ENVIRONMENT__ && (_e = (ur = window.rawWindow.__mini_app_status_hook__) != null ? ur : {});
1488
- const Te = d.registerPlugin("DeviceInteractionPlugin", { web: new class extends y {
1485
+ let pe = null;
1486
+ var Nr;
1487
+ window.__MICRO_APP_ENVIRONMENT__ && (pe = (Nr = window.rawWindow.__mini_app_status_hook__) != null ? Nr : {});
1488
+ const Ve = d.registerPlugin("DeviceInteractionPlugin", { web: new class extends y {
1489
1489
  callVibrate() {
1490
- return o(this, null, function* () {
1490
+ return a(this, null, function* () {
1491
1491
  });
1492
1492
  }
1493
1493
  callErrorBeep() {
1494
- return o(this, null, function* () {
1494
+ return a(this, null, function* () {
1495
1495
  });
1496
1496
  }
1497
1497
  getStatus() {
1498
1498
  try {
1499
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1499
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1500
1500
  var e, r;
1501
- t((yield (r = (e = _e == null ? void 0 : _e.deviceInteraction) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1501
+ t((yield (r = (e = pe == null ? void 0 : pe.deviceInteraction) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1502
1502
  })) : new Promise((t) => {
1503
1503
  t(null);
1504
1504
  });
@@ -1507,51 +1507,51 @@ const Te = d.registerPlugin("DeviceInteractionPlugin", { web: new class extends
1507
1507
  }
1508
1508
  }
1509
1509
  }() });
1510
- class Zr {
1510
+ class ct {
1511
1511
  callVibrate() {
1512
- return o(this, null, function* () {
1512
+ return a(this, null, function* () {
1513
1513
  try {
1514
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callVibrate() : yield Te.callVibrate();
1514
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callVibrate() : yield Ve.callVibrate();
1515
1515
  } catch (e) {
1516
1516
  throw console.error("callVibrate error", e), e;
1517
1517
  }
1518
1518
  });
1519
1519
  }
1520
1520
  callErrorBeep() {
1521
- return o(this, null, function* () {
1521
+ return a(this, null, function* () {
1522
1522
  try {
1523
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callErrorBeep() : yield Te.callErrorBeep();
1523
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callErrorBeep() : yield Ve.callErrorBeep();
1524
1524
  } catch (e) {
1525
1525
  throw console.error("callErrorBeep error", e), e;
1526
1526
  }
1527
1527
  });
1528
1528
  }
1529
1529
  getStatus() {
1530
- return o(this, null, function* () {
1530
+ return a(this, null, function* () {
1531
1531
  try {
1532
- return yield Te.getStatus();
1532
+ return yield Ve.getStatus();
1533
1533
  } catch (e) {
1534
1534
  throw console.error("deviceInteractionPlugin getStatus error", e), e;
1535
1535
  }
1536
1536
  });
1537
1537
  }
1538
1538
  }
1539
- const fr = "PollingPlugin";
1539
+ const br = "PollingPlugin";
1540
1540
  let he = null;
1541
- var _r;
1542
- window.__MICRO_APP_ENVIRONMENT__ && (he = (_r = window.rawWindow.__mini_app_status_hook__) != null ? _r : {});
1543
- const Be = d.registerPlugin(fr, { web: new class extends y {
1541
+ var fr;
1542
+ window.__MICRO_APP_ENVIRONMENT__ && (he = (fr = window.rawWindow.__mini_app_status_hook__) != null ? fr : {});
1543
+ const He = d.registerPlugin(br, { web: new class extends y {
1544
1544
  create() {
1545
- return o(this, null, function* () {
1545
+ return a(this, null, function* () {
1546
1546
  });
1547
1547
  }
1548
1548
  destroy() {
1549
- return o(this, null, function* () {
1549
+ return a(this, null, function* () {
1550
1550
  });
1551
1551
  }
1552
1552
  getStatus() {
1553
1553
  try {
1554
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1554
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1555
1555
  var e, r;
1556
1556
  t((yield (r = (e = he == null ? void 0 : he.polling) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1557
1557
  })) : new Promise((t) => {
@@ -1561,17 +1561,17 @@ const Be = d.registerPlugin(fr, { web: new class extends y {
1561
1561
  throw console.error("polling getStatus error", t), t;
1562
1562
  }
1563
1563
  }
1564
- }() }), pe = M();
1565
- pe.removeAddListenerPolling = () => null;
1566
- const Xr = (t, e) => {
1564
+ }() }), me = f();
1565
+ me.removeAddListenerPolling = () => null;
1566
+ const lt = (t, e) => {
1567
1567
  try {
1568
- pe.removeAddListenerPolling && pe.removeAddListenerPolling();
1568
+ me.removeAddListenerPolling && me.removeAddListenerPolling();
1569
1569
  const r = e.pollingId;
1570
- ((n) => o(void 0, null, function* () {
1571
- return n && (pe.removeAddListenerPolling = yield ((a) => o(void 0, null, function* () {
1570
+ ((n) => a(void 0, null, function* () {
1571
+ return n && (me.removeAddListenerPolling = yield ((o) => a(void 0, null, function* () {
1572
1572
  try {
1573
1573
  if (d.addListener) {
1574
- const i = yield d.addListener(fr, "nativeSendPolling", (c) => a && a(c));
1574
+ const i = yield d.addListener(br, "nativeSendPolling", (c) => o && o(c));
1575
1575
  return i != null && i.remove ? i.remove : () => null;
1576
1576
  }
1577
1577
  } catch (i) {
@@ -1579,39 +1579,39 @@ const Xr = (t, e) => {
1579
1579
  }
1580
1580
  }))(n));
1581
1581
  }))((n) => {
1582
- (n == null ? void 0 : n.pollingId) === r && (n != null && n.pollingId) && t.pollingList.forEach((a) => {
1583
- a != null && a.pollingId && (n == null ? void 0 : n.pollingId) === (a == null ? void 0 : a.pollingId) && typeof (a == null ? void 0 : a.callBack) == "function" && a.callBack(n);
1582
+ (n == null ? void 0 : n.pollingId) === r && (n != null && n.pollingId) && t.pollingList.forEach((o) => {
1583
+ o != null && o.pollingId && (n == null ? void 0 : n.pollingId) === (o == null ? void 0 : o.pollingId) && typeof (o == null ? void 0 : o.callBack) == "function" && o.callBack(n);
1584
1584
  });
1585
1585
  });
1586
1586
  } catch (r) {
1587
1587
  throw console.error("pollingFn error", r), r;
1588
1588
  }
1589
1589
  };
1590
- class zr {
1590
+ class wt {
1591
1591
  constructor() {
1592
1592
  P(this, "pollingList");
1593
1593
  this.pollingList = [];
1594
1594
  }
1595
1595
  create(e) {
1596
- var r, n, a;
1596
+ var r, n, o;
1597
1597
  if (window.__MICRO_APP_ENVIRONMENT__) {
1598
1598
  const { mounted: i, pollingParams: c, callBack: s } = e;
1599
1599
  return i(() => {
1600
- var w, u;
1601
- (u = (w = window.rawWindow.__mini_app_hook__) == null ? void 0 : w.addPolling) == null || u.call(w, c, s);
1600
+ var l, u;
1601
+ (u = (l = window.rawWindow.__mini_app_hook__) == null ? void 0 : l.addPolling) == null || u.call(l, c, s);
1602
1602
  }), () => {
1603
1603
  this.destroy({ pollingId: c.pollingId });
1604
1604
  };
1605
1605
  }
1606
1606
  try {
1607
- (r = e == null ? void 0 : e.pollingParams) != null && r.pollingId && this.pollingList.push({ pollingId: (n = e == null ? void 0 : e.pollingParams) == null ? void 0 : n.pollingId, callBack: e == null ? void 0 : e.callBack }), this.pollingList = this.pollingList.filter((c, s, w) => s === w.findIndex((u) => u.pollingId === c.pollingId));
1608
- const i = ((a = e == null ? void 0 : e.pollingParams) == null ? void 0 : a.delay) / 1e3;
1609
- return Be.create(T(b({}, e == null ? void 0 : e.pollingParams), { delay: i })), ((c, s) => {
1607
+ (r = e == null ? void 0 : e.pollingParams) != null && r.pollingId && this.pollingList.push({ pollingId: (n = e == null ? void 0 : e.pollingParams) == null ? void 0 : n.pollingId, callBack: e == null ? void 0 : e.callBack }), this.pollingList = this.pollingList.filter((c, s, l) => s === l.findIndex((u) => u.pollingId === c.pollingId));
1608
+ const i = ((o = e == null ? void 0 : e.pollingParams) == null ? void 0 : o.delay) / 1e3;
1609
+ return He.create(T(b({}, e == null ? void 0 : e.pollingParams), { delay: i })), ((c, s) => {
1610
1610
  try {
1611
- const { mounted: w, pollingParams: u } = c;
1612
- w(() => Xr(s, u));
1613
- } catch (w) {
1614
- throw console.error("createPolling error", w), w;
1611
+ const { mounted: l, pollingParams: u } = c;
1612
+ l(() => lt(s, u));
1613
+ } catch (l) {
1614
+ throw console.error("createPolling error", l), l;
1615
1615
  }
1616
1616
  })(e, this), () => {
1617
1617
  var c, s;
@@ -1622,34 +1622,34 @@ class zr {
1622
1622
  }
1623
1623
  }
1624
1624
  destroy(e) {
1625
- var r, n, a;
1625
+ var r, n, o;
1626
1626
  if (window.__MICRO_APP_ENVIRONMENT__) {
1627
1627
  const { pollingId: i } = e;
1628
1628
  (n = (r = window.rawWindow.__mini_app_hook__) == null ? void 0 : r.deletePolling) == null || n.call(r, i);
1629
1629
  } else
1630
1630
  try {
1631
1631
  const i = this.pollingList.map((c) => c.pollingId).indexOf(e.pollingId);
1632
- return (a = this.pollingList) != null && a.length && (Number(i) || Number(i) >= 0) && this.pollingList.splice(Number(i), 1), Be.destroy(e);
1632
+ return (o = this.pollingList) != null && o.length && (Number(i) || Number(i) >= 0) && this.pollingList.splice(Number(i), 1), He.destroy(e);
1633
1633
  } catch (i) {
1634
1634
  throw console.error("pollingPlugin destroy error", i), i;
1635
1635
  }
1636
1636
  }
1637
1637
  getStatus() {
1638
- return o(this, null, function* () {
1638
+ return a(this, null, function* () {
1639
1639
  try {
1640
- return yield Be.getStatus();
1640
+ return yield He.getStatus();
1641
1641
  } catch (e) {
1642
1642
  throw console.error("getStatus error", e), e;
1643
1643
  }
1644
1644
  });
1645
1645
  }
1646
1646
  }
1647
- let me = null;
1648
- var hr;
1649
- window.__MICRO_APP_ENVIRONMENT__ && (me = (hr = window.rawWindow.__mini_app_status_hook__) != null ? hr : {});
1650
- const rr = d.registerPlugin("PaymentPlugin", { web: new class extends y {
1647
+ let ge = null;
1648
+ var Mr;
1649
+ window.__MICRO_APP_ENVIRONMENT__ && (ge = (Mr = window.rawWindow.__mini_app_status_hook__) != null ? Mr : {});
1650
+ const ar = d.registerPlugin("PaymentPlugin", { web: new class extends y {
1651
1651
  process(t) {
1652
- return o(this, null, function* () {
1652
+ return a(this, null, function* () {
1653
1653
  try {
1654
1654
  return new Promise((e) => {
1655
1655
  e(t);
@@ -1661,9 +1661,9 @@ const rr = d.registerPlugin("PaymentPlugin", { web: new class extends y {
1661
1661
  }
1662
1662
  getStatus() {
1663
1663
  try {
1664
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1664
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1665
1665
  var e, r;
1666
- t((yield (r = (e = me == null ? void 0 : me.payment) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1666
+ t((yield (r = (e = ge == null ? void 0 : ge.payment) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1667
1667
  })) : new Promise((t) => {
1668
1668
  t(null);
1669
1669
  });
@@ -1672,43 +1672,43 @@ const rr = d.registerPlugin("PaymentPlugin", { web: new class extends y {
1672
1672
  }
1673
1673
  }
1674
1674
  }() });
1675
- class et {
1675
+ class dt {
1676
1676
  process(e) {
1677
- return o(this, null, function* () {
1677
+ return a(this, null, function* () {
1678
1678
  try {
1679
- return yield rr.process(e);
1679
+ return yield ar.process(e);
1680
1680
  } catch (r) {
1681
1681
  throw console.error("paymentPlugins.process error", r), r;
1682
1682
  }
1683
1683
  });
1684
1684
  }
1685
1685
  getStatus() {
1686
- return o(this, null, function* () {
1686
+ return a(this, null, function* () {
1687
1687
  try {
1688
- return yield rr.getStatus();
1688
+ return yield ar.getStatus();
1689
1689
  } catch (e) {
1690
1690
  throw console.error("getStatus error", e), e;
1691
1691
  }
1692
1692
  });
1693
1693
  }
1694
1694
  }
1695
- let ge = null;
1696
- var pr;
1697
- window.__MICRO_APP_ENVIRONMENT__ && (ge = (pr = window.rawWindow.__mini_app_status_hook__) != null ? pr : {});
1698
- const Ve = d.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends y {
1695
+ let Pe = null;
1696
+ var Ir;
1697
+ window.__MICRO_APP_ENVIRONMENT__ && (Pe = (Ir = window.rawWindow.__mini_app_status_hook__) != null ? Ir : {});
1698
+ const Fe = d.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends y {
1699
1699
  pickCameraForTakePhoto() {
1700
- return o(this, null, function* () {
1700
+ return a(this, null, function* () {
1701
1701
  });
1702
1702
  }
1703
1703
  setCameraForTakePhotoState() {
1704
- return o(this, null, function* () {
1704
+ return a(this, null, function* () {
1705
1705
  });
1706
1706
  }
1707
1707
  getStatus() {
1708
1708
  try {
1709
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1709
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1710
1710
  var e, r;
1711
- t((yield (r = (e = ge == null ? void 0 : ge.cameraForTakePhoto) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1711
+ t((yield (r = (e = Pe == null ? void 0 : Pe.cameraForTakePhoto) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1712
1712
  })) : new Promise((t) => {
1713
1713
  t(null);
1714
1714
  });
@@ -1717,41 +1717,41 @@ const Ve = d.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends
1717
1717
  }
1718
1718
  }
1719
1719
  }() });
1720
- class rt {
1720
+ class ut {
1721
1721
  pickCameraForTakePhoto() {
1722
- return o(this, null, function* () {
1722
+ return a(this, null, function* () {
1723
1723
  try {
1724
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraForTakePhoto() : yield Ve.pickCameraForTakePhoto();
1724
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraForTakePhoto() : yield Fe.pickCameraForTakePhoto();
1725
1725
  } catch (e) {
1726
1726
  throw console.error("pickCameraForTakePhoto error", e), e;
1727
1727
  }
1728
1728
  });
1729
1729
  }
1730
1730
  setCameraForTakePhotoState(e) {
1731
- return o(this, null, function* () {
1731
+ return a(this, null, function* () {
1732
1732
  try {
1733
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraForTakePhotoState(e) : yield Ve.setCameraForTakePhotoState(e);
1733
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraForTakePhotoState(e) : yield Fe.setCameraForTakePhotoState(e);
1734
1734
  } catch (r) {
1735
1735
  throw console.error("setCameraForTakePhotoState error", r), r;
1736
1736
  }
1737
1737
  });
1738
1738
  }
1739
1739
  getStatus() {
1740
- return o(this, null, function* () {
1740
+ return a(this, null, function* () {
1741
1741
  try {
1742
- return yield Ve.getStatus();
1742
+ return yield Fe.getStatus();
1743
1743
  } catch (e) {
1744
1744
  throw console.error("cameraForTakePhotoPlugin getStatus error", e), e;
1745
1745
  }
1746
1746
  });
1747
1747
  }
1748
1748
  }
1749
- let Pe = null;
1750
- var mr;
1751
- window.__MICRO_APP_ENVIRONMENT__ && (Pe = (mr = window.rawWindow.__mini_app_status_hook__) != null ? mr : {});
1752
- const tr = d.registerPlugin("HttpPlugin", { web: new class extends y {
1749
+ let ye = null;
1750
+ var Cr;
1751
+ window.__MICRO_APP_ENVIRONMENT__ && (ye = (Cr = window.rawWindow.__mini_app_status_hook__) != null ? Cr : {});
1752
+ const ir = d.registerPlugin("HttpPlugin", { web: new class extends y {
1753
1753
  request(t) {
1754
- return o(this, null, function* () {
1754
+ return a(this, null, function* () {
1755
1755
  return new Promise((e) => {
1756
1756
  e(t);
1757
1757
  });
@@ -1759,9 +1759,9 @@ const tr = d.registerPlugin("HttpPlugin", { web: new class extends y {
1759
1759
  }
1760
1760
  getStatus() {
1761
1761
  try {
1762
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1762
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1763
1763
  var e, r;
1764
- t((yield (r = (e = Pe == null ? void 0 : Pe.http) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1764
+ t((yield (r = (e = ye == null ? void 0 : ye.http) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1765
1765
  })) : new Promise((t) => {
1766
1766
  t(null);
1767
1767
  });
@@ -1770,15 +1770,15 @@ const tr = d.registerPlugin("HttpPlugin", { web: new class extends y {
1770
1770
  }
1771
1771
  }
1772
1772
  }() });
1773
- class tt {
1773
+ class _t {
1774
1774
  request(e) {
1775
- return o(this, null, function* () {
1775
+ return a(this, null, function* () {
1776
1776
  try {
1777
1777
  if (window.__MICRO_APP_ENVIRONMENT__)
1778
1778
  return window.rawWindow.__mini_app_hook__.requestHttp(e);
1779
1779
  {
1780
1780
  let r = {};
1781
- return e.url && (r.url = e.url), e.method && (r.method = e.method), e.headers && (r.headers = e.headers), e.params && (r.urlParams = e.params), e.data && (typeof e.data == "string" ? r.bodyData = e.data : r.bodyParams = e.data), e.upload && (r.upload = e.upload), yield tr.request(r);
1781
+ return e.url && (r.url = e.url), e.method && (r.method = e.method), e.headers && (r.headers = e.headers), e.params && (r.urlParams = e.params), e.data && (typeof e.data == "string" ? r.bodyData = e.data : r.bodyParams = e.data), e.upload && (r.upload = e.upload), yield ir.request(r);
1782
1782
  }
1783
1783
  } catch (r) {
1784
1784
  throw console.error("HttpPlugin, trace error", r), r;
@@ -1786,9 +1786,9 @@ class tt {
1786
1786
  });
1787
1787
  }
1788
1788
  getStatus() {
1789
- return o(this, null, function* () {
1789
+ return a(this, null, function* () {
1790
1790
  try {
1791
- return yield tr.getStatus();
1791
+ return yield ir.getStatus();
1792
1792
  } catch (e) {
1793
1793
  throw console.error("HttpPlugin getStatus error", e), e;
1794
1794
  }
@@ -1798,38 +1798,38 @@ class tt {
1798
1798
  const S = [];
1799
1799
  for (let t = 0; t < 256; ++t)
1800
1800
  S.push((t + 256).toString(16).slice(1));
1801
- const nt = new Uint8Array(16);
1802
- function ot(t, e, r) {
1803
- return e || t || !crypto.randomUUID ? function(n, a, i) {
1804
- var s, w, u;
1801
+ const pt = new Uint8Array(16);
1802
+ function ht(t, e, r) {
1803
+ return e || t || !crypto.randomUUID ? function(n, o, i) {
1804
+ var s, l, u;
1805
1805
  n = n || {};
1806
- const c = (u = (w = n.random) != null ? w : (s = n.rng) == null ? void 0 : s.call(n)) != null ? u : crypto.getRandomValues(nt);
1806
+ const c = (u = (l = n.random) != null ? l : (s = n.rng) == null ? void 0 : s.call(n)) != null ? u : crypto.getRandomValues(pt);
1807
1807
  if (c.length < 16)
1808
1808
  throw new Error("Random bytes length must be >= 16");
1809
- if (c[6] = 15 & c[6] | 64, c[8] = 63 & c[8] | 128, a) {
1810
- if ((i = i || 0) < 0 || i + 16 > a.length)
1809
+ if (c[6] = 15 & c[6] | 64, c[8] = 63 & c[8] | 128, o) {
1810
+ if ((i = i || 0) < 0 || i + 16 > o.length)
1811
1811
  throw new RangeError(`UUID byte range ${i}:${i + 15} is out of buffer bounds`);
1812
1812
  for (let _ = 0; _ < 16; ++_)
1813
- a[i + _] = c[_];
1814
- return a;
1813
+ o[i + _] = c[_];
1814
+ return o;
1815
1815
  }
1816
- return function(_, p = 0) {
1817
- return (S[_[p + 0]] + S[_[p + 1]] + S[_[p + 2]] + S[_[p + 3]] + "-" + S[_[p + 4]] + S[_[p + 5]] + "-" + S[_[p + 6]] + S[_[p + 7]] + "-" + S[_[p + 8]] + S[_[p + 9]] + "-" + S[_[p + 10]] + S[_[p + 11]] + S[_[p + 12]] + S[_[p + 13]] + S[_[p + 14]] + S[_[p + 15]]).toLowerCase();
1816
+ return function(_, h = 0) {
1817
+ return (S[_[h + 0]] + S[_[h + 1]] + S[_[h + 2]] + S[_[h + 3]] + "-" + S[_[h + 4]] + S[_[h + 5]] + "-" + S[_[h + 6]] + S[_[h + 7]] + "-" + S[_[h + 8]] + S[_[h + 9]] + "-" + S[_[h + 10]] + S[_[h + 11]] + S[_[h + 12]] + S[_[h + 13]] + S[_[h + 14]] + S[_[h + 15]]).toLowerCase();
1818
1818
  }(c);
1819
1819
  }(t, e, r) : crypto.randomUUID();
1820
1820
  }
1821
- const Ir = "PrintPlugin";
1822
- let ye = null;
1823
- var gr;
1824
- window.__MICRO_APP_ENVIRONMENT__ && (ye = (gr = window.rawWindow.__mini_app_status_hook__) != null ? gr : {});
1825
- const nr = d.registerPlugin(Ir, { web: new class extends y {
1821
+ const Tr = "PrintPlugin";
1822
+ let Se = null;
1823
+ var Or;
1824
+ window.__MICRO_APP_ENVIRONMENT__ && (Se = (Or = window.rawWindow.__mini_app_status_hook__) != null ? Or : {});
1825
+ const sr = d.registerPlugin(Tr, { web: new class extends y {
1826
1826
  print() {
1827
1827
  }
1828
1828
  getStatus() {
1829
1829
  try {
1830
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1830
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1831
1831
  var e, r;
1832
- t((yield (r = (e = ye == null ? void 0 : ye.print) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1832
+ t((yield (r = (e = Se == null ? void 0 : Se.print) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1833
1833
  })) : new Promise((t) => {
1834
1834
  t(null);
1835
1835
  });
@@ -1837,17 +1837,17 @@ const nr = d.registerPlugin(Ir, { web: new class extends y {
1837
1837
  throw console.error("print getStatus error", t), t;
1838
1838
  }
1839
1839
  }
1840
- }() }), Y = M();
1840
+ }() }), Y = f();
1841
1841
  Y.removeAddListenerPrintList = {};
1842
- const at = (t, e) => {
1842
+ const mt = (t, e) => {
1843
1843
  try {
1844
1844
  const r = e.printId;
1845
1845
  Y.removeAddListenerPrintList = T(b({}, Y.removeAddListenerPrintList), { printId: () => {
1846
- } }), ((n) => o(void 0, null, function* () {
1847
- return n && (Y.removeAddListenerPrintList[r] = yield ((a) => o(void 0, null, function* () {
1846
+ } }), ((n) => a(void 0, null, function* () {
1847
+ return n && (Y.removeAddListenerPrintList[r] = yield ((o) => a(void 0, null, function* () {
1848
1848
  try {
1849
1849
  if (d.addListener) {
1850
- const i = yield d.addListener(Ir, "nativeSendPrint", (c) => a && a(c));
1850
+ const i = yield d.addListener(Tr, "nativeSendPrint", (c) => o && o(c));
1851
1851
  return i != null && i.remove ? i.remove : () => null;
1852
1852
  }
1853
1853
  } catch (i) {
@@ -1855,32 +1855,32 @@ const at = (t, e) => {
1855
1855
  }
1856
1856
  }))(n));
1857
1857
  }))((n) => {
1858
- (n == null ? void 0 : n.printId) === r && (n != null && n.printId) && t.printList.forEach((a) => {
1858
+ (n == null ? void 0 : n.printId) === r && (n != null && n.printId) && t.printList.forEach((o) => {
1859
1859
  var i, c, s;
1860
- a != null && a.printId && (n == null ? void 0 : n.printId) === (a == null ? void 0 : a.printId) && (typeof (a == null ? void 0 : a.callBack) == "function" && a.callBack(n), (s = a.state == 5 || a.state == 6) != null || (c = (i = Y.removeAddListenerPrintList) == null ? void 0 : i[a == null ? void 0 : a.printId]) == null || c.call(i));
1860
+ o != null && o.printId && (n == null ? void 0 : n.printId) === (o == null ? void 0 : o.printId) && (typeof (o == null ? void 0 : o.callBack) == "function" && o.callBack(n), (s = o.state == 5 || o.state == 6) != null || (c = (i = Y.removeAddListenerPrintList) == null ? void 0 : i[o == null ? void 0 : o.printId]) == null || c.call(i));
1861
1861
  });
1862
1862
  });
1863
1863
  } catch (r) {
1864
1864
  throw console.error("printFn error", r), r;
1865
1865
  }
1866
1866
  };
1867
- class it {
1867
+ class gt {
1868
1868
  constructor() {
1869
1869
  P(this, "printList");
1870
1870
  this.printList = [];
1871
1871
  }
1872
1872
  print(e) {
1873
- var n, a, i, c;
1874
- const r = ((a = (n = e == null ? void 0 : e.printParams) == null ? void 0 : n.functionId) != null ? a : "") + ot().replace(/-/g, "");
1875
- if (this.printList.push({ printId: r, callBack: e == null ? void 0 : e.callBack }), this.printList = this.printList.filter((s, w, u) => w === u.findIndex((_) => _.printId === s.printId)), window.__MICRO_APP_ENVIRONMENT__) {
1876
- const { printParams: s, callBack: w } = e;
1877
- return (c = (i = window.rawWindow.__mini_app_hook__) == null ? void 0 : i.print) == null || c.call(i, T(b({}, s), { printId: r }), w), { id: r };
1873
+ var n, o, i, c;
1874
+ const r = ((o = (n = e == null ? void 0 : e.printParams) == null ? void 0 : n.functionId) != null ? o : "") + ht().replace(/-/g, "");
1875
+ if (this.printList.push({ printId: r, callBack: e == null ? void 0 : e.callBack }), this.printList = this.printList.filter((s, l, u) => l === u.findIndex((_) => _.printId === s.printId)), window.__MICRO_APP_ENVIRONMENT__) {
1876
+ const { printParams: s, callBack: l } = e;
1877
+ return (c = (i = window.rawWindow.__mini_app_hook__) == null ? void 0 : i.print) == null || c.call(i, T(b({}, s), { printId: r }), l), { id: r };
1878
1878
  }
1879
1879
  try {
1880
- return nr.print(T(b({}, e == null ? void 0 : e.printParams), { printId: r })), ((s, w) => {
1880
+ return sr.print(T(b({}, e == null ? void 0 : e.printParams), { printId: r })), ((s, l) => {
1881
1881
  try {
1882
1882
  const { printParams: u } = s;
1883
- at(w, u);
1883
+ mt(l, u);
1884
1884
  } catch (u) {
1885
1885
  throw console.error("createPrint error", u), u;
1886
1886
  }
@@ -1890,51 +1890,169 @@ class it {
1890
1890
  }
1891
1891
  }
1892
1892
  getStatus() {
1893
- return o(this, null, function* () {
1893
+ return a(this, null, function* () {
1894
1894
  try {
1895
- return yield nr.getStatus();
1895
+ return yield sr.getStatus();
1896
1896
  } catch (e) {
1897
1897
  throw console.error("getStatus error", e), e;
1898
1898
  }
1899
1899
  });
1900
1900
  }
1901
1901
  }
1902
- class st {
1902
+ let Ne = null;
1903
+ var Lr;
1904
+ window.__MICRO_APP_ENVIRONMENT__ && (Ne = (Lr = window.rawWindow.__mini_app_status_hook__) != null ? Lr : {});
1905
+ const J = (t, e, r = "", n = "") => ({ success: t, message: e, type: r, fileName: n }), We = (t) => {
1906
+ var e;
1907
+ return (e = t == null ? void 0 : t.trim().replace(/^\.+/, "").toLowerCase()) != null ? e : "";
1908
+ }, Br = (t, e) => {
1909
+ const r = ((n) => {
1910
+ var c, s, l;
1911
+ const o = We(n);
1912
+ return o ? o.includes("/") ? (l = (s = ((c = o.split("/").pop()) != null ? c : "").split("+").pop()) == null ? void 0 : s.split(".").pop()) != null ? l : "" : o : "";
1913
+ })(e);
1914
+ return !r || t.toLowerCase().endsWith(`.${r}`) ? t : `${t}.${r}`;
1915
+ }, cr = (t) => {
1916
+ var i;
1917
+ const e = (i = t == null ? void 0 : t.trim()) != null ? i : "", r = e.lastIndexOf(".");
1918
+ if (r <= 0 || r === e.length - 1)
1919
+ return { name: e, type: "", fileName: e };
1920
+ const n = e.slice(0, r), o = We(e.slice(r + 1));
1921
+ return { name: n, type: o, fileName: o ? Br(n, o) : e };
1922
+ }, lr = (t) => {
1923
+ const e = cr(t == null ? void 0 : t.fileName), r = cr(((i) => {
1924
+ if (!i)
1925
+ return "";
1926
+ try {
1927
+ const c = new URL(i, window.location.href).pathname.split("/").filter(Boolean).pop();
1928
+ return c ? decodeURIComponent(c) : "";
1929
+ } catch (c) {
1930
+ return "";
1931
+ }
1932
+ })(t == null ? void 0 : t.url)), n = We(t == null ? void 0 : t.type) || e.type || r.type, o = e.name || r.name || `path_${Date.now()}`;
1933
+ return { type: n, fileName: n ? Br(o, n) : o };
1934
+ }, wr = d.registerPlugin("DownloadFilePlugin", { web: new class extends y {
1935
+ downloadFile(t) {
1936
+ return a(this, null, function* () {
1937
+ var e;
1938
+ try {
1939
+ const { type: r, fileName: n } = lr(t), o = (e = t == null ? void 0 : t.url) == null ? void 0 : e.trim();
1940
+ if (!r)
1941
+ return J(!1, "Missing required parameter: type", r, n);
1942
+ if (!o)
1943
+ return J(!1, "Missing required parameter: url", r, n);
1944
+ const i = yield fetch(o, t == null ? void 0 : t.fetchOptions);
1945
+ if (!i.ok)
1946
+ return J(!1, `HTTP error! status: ${i.status}`, r, n);
1947
+ const c = yield i.blob(), s = window.URL.createObjectURL(c), l = document.createElement("a");
1948
+ return l.href = s, l.download = n, document.body.appendChild(l), l.click(), l.remove(), window.setTimeout(() => window.URL.revokeObjectURL(s), 0), J(!0, "download success", r, n);
1949
+ } catch (r) {
1950
+ console.error("downloadFile error", r);
1951
+ const { type: n, fileName: o } = lr(t);
1952
+ return J(!1, r instanceof Error ? r.message : "download failed", n, o);
1953
+ }
1954
+ });
1955
+ }
1956
+ getStatus() {
1957
+ try {
1958
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1959
+ var e, r;
1960
+ t((yield (r = (e = Ne == null ? void 0 : Ne.downloadFile) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1961
+ })) : new Promise((t) => {
1962
+ t(null);
1963
+ });
1964
+ } catch (t) {
1965
+ throw console.error("downloadFile getStatus error", t), t;
1966
+ }
1967
+ }
1968
+ }() }), De = (t) => {
1969
+ var e;
1970
+ return (e = t == null ? void 0 : t.trim().replace(/^\.+/, "").toLowerCase()) != null ? e : "";
1971
+ }, Pt = (t, e) => {
1972
+ const r = ((n) => {
1973
+ var c, s, l;
1974
+ const o = De(n);
1975
+ return o ? o.includes("/") ? (l = (s = ((c = o.split("/").pop()) != null ? c : "").split("+").pop()) == null ? void 0 : s.split(".").pop()) != null ? l : "" : o : "";
1976
+ })(e);
1977
+ return !r || t.toLowerCase().endsWith(`.${r}`) ? t : `${t}.${r}`;
1978
+ }, dr = (t) => {
1979
+ var n;
1980
+ const e = (n = t == null ? void 0 : t.trim()) != null ? n : "", r = e.lastIndexOf(".");
1981
+ return r <= 0 || r === e.length - 1 ? { name: e, type: "" } : { name: e.slice(0, r), type: De(e.slice(r + 1)) };
1982
+ }, ur = (t, e) => {
1983
+ const r = dr(t == null ? void 0 : t.fileName), n = dr(((c) => {
1984
+ if (!c)
1985
+ return "";
1986
+ try {
1987
+ const s = new URL(c, window.location.href).pathname.split("/").filter(Boolean).pop();
1988
+ return s ? decodeURIComponent(s) : "";
1989
+ } catch (s) {
1990
+ return "";
1991
+ }
1992
+ })(t == null ? void 0 : t.url)), o = De(t == null ? void 0 : t.type) || r.type || n.type, i = r.name || n.name || `path_${Date.now()}`;
1993
+ return { success: !1, message: e, type: o, fileName: o ? Pt(i, o) : i };
1994
+ };
1995
+ class yt {
1996
+ downloadFile(e) {
1997
+ return a(this, null, function* () {
1998
+ try {
1999
+ if (window.__MICRO_APP_ENVIRONMENT__) {
2000
+ const r = window.rawWindow.__mini_app_hook__.downloadFile;
2001
+ return r ? yield r(e) : ur(e, "DownloadFilePlugin is not available");
2002
+ }
2003
+ return yield wr.downloadFile(e);
2004
+ } catch (r) {
2005
+ return console.error("downloadFile error", r), ur(e, r instanceof Error ? r.message : "download failed");
2006
+ }
2007
+ });
2008
+ }
2009
+ getStatus() {
2010
+ return a(this, null, function* () {
2011
+ try {
2012
+ return yield wr.getStatus();
2013
+ } catch (e) {
2014
+ throw console.error("downloadFile getStatus error", e), e;
2015
+ }
2016
+ });
2017
+ }
2018
+ }
2019
+ class St {
1903
2020
  constructor() {
1904
- P(this, "initialContextPlugins", new Wr());
1905
- P(this, "communicatePlugins", new xr());
1906
- P(this, "cameraScanPlugins", new jr());
1907
- P(this, "cameraScanMultiplePlugins", new $r());
1908
- P(this, "cameraScanMultipleNoCountPlugins", new qr());
1909
- P(this, "cameraScanSingleOrDualPlugins", new Kr());
1910
- P(this, "laserScanPlugins", new Jr());
1911
- P(this, "countAssistPlugins", new Gr());
1912
- P(this, "clickStreamPlugins", new Qr());
1913
- P(this, "lifecyclePlugins", new Yr());
1914
- P(this, "deviceInteractionPlugins", new Zr());
1915
- P(this, "pollingPlugins", new zr());
1916
- P(this, "paymentPlugins", new et());
1917
- P(this, "cameraForTakePhotoPlugin", new rt());
1918
- P(this, "httpPlugin", new tt());
1919
- P(this, "printPlugins", new it());
2021
+ P(this, "initialContextPlugins", new Qr());
2022
+ P(this, "communicatePlugins", new Xr());
2023
+ P(this, "cameraScanPlugins", new et());
2024
+ P(this, "cameraScanMultiplePlugins", new rt());
2025
+ P(this, "cameraScanMultipleNoCountPlugins", new tt());
2026
+ P(this, "cameraScanSingleOrDualPlugins", new nt());
2027
+ P(this, "laserScanPlugins", new ot());
2028
+ P(this, "countAssistPlugins", new at());
2029
+ P(this, "clickStreamPlugins", new it());
2030
+ P(this, "lifecyclePlugins", new st());
2031
+ P(this, "deviceInteractionPlugins", new ct());
2032
+ P(this, "pollingPlugins", new wt());
2033
+ P(this, "paymentPlugins", new dt());
2034
+ P(this, "cameraForTakePhotoPlugin", new ut());
2035
+ P(this, "httpPlugin", new _t());
2036
+ P(this, "printPlugins", new gt());
2037
+ P(this, "downloadFilePlugin", new yt());
1920
2038
  }
1921
2039
  }
1922
- const wt = new st();
1923
- let l = null, Se = null;
1924
- var Pr, yr;
1925
- window.__MICRO_APP_ENVIRONMENT__ && (l = (Pr = window.rawWindow.__mini_app_hook__) != null ? Pr : {}, Se = (yr = window.rawWindow.__mini_app_status_hook__) != null ? yr : {});
1926
- const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: class extends y {
2040
+ const Mt = new St();
2041
+ let w = null, fe = null;
2042
+ var vr, Ar;
2043
+ window.__MICRO_APP_ENVIRONMENT__ && (w = (vr = window.rawWindow.__mini_app_hook__) != null ? vr : {}, fe = (Ar = window.rawWindow.__mini_app_status_hook__) != null ? Ar : {});
2044
+ const Nt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: class extends y {
1927
2045
  homeIsClick(t) {
1928
- return o(this, null, function* () {
2046
+ return a(this, null, function* () {
1929
2047
  var e;
1930
- window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch homeIsClick", t), (e = l.disabledMenu) == null || e.call(l, t));
2048
+ window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch homeIsClick", t), (e = w.disabledMenu) == null || e.call(w, t));
1931
2049
  });
1932
2050
  }
1933
2051
  openMiniApp(t) {
1934
- return o(this, null, function* () {
2052
+ return a(this, null, function* () {
1935
2053
  var e;
1936
2054
  try {
1937
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.openMiniApp) == null || e.call(l, t)), new Promise((r) => {
2055
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.openMiniApp) == null || e.call(w, t)), new Promise((r) => {
1938
2056
  r(t);
1939
2057
  });
1940
2058
  } catch (r) {
@@ -1943,10 +2061,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1943
2061
  });
1944
2062
  }
1945
2063
  showTitle(t) {
1946
- return o(this, null, function* () {
2064
+ return a(this, null, function* () {
1947
2065
  var e;
1948
2066
  try {
1949
- return window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch showTitle", t), (e = l.showTitle) == null || e.call(l, t)), new Promise((r) => {
2067
+ return window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch showTitle", t), (e = w.showTitle) == null || e.call(w, t)), new Promise((r) => {
1950
2068
  r(t);
1951
2069
  });
1952
2070
  } catch (r) {
@@ -1955,10 +2073,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1955
2073
  });
1956
2074
  }
1957
2075
  showFABMenu(t) {
1958
- return o(this, null, function* () {
2076
+ return a(this, null, function* () {
1959
2077
  var e;
1960
2078
  try {
1961
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.showFABMenu) == null || e.call(l, t)), new Promise((r) => {
2079
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.showFABMenu) == null || e.call(w, t)), new Promise((r) => {
1962
2080
  r(t);
1963
2081
  });
1964
2082
  } catch (r) {
@@ -1967,10 +2085,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1967
2085
  });
1968
2086
  }
1969
2087
  disableFAB(t) {
1970
- return o(this, null, function* () {
2088
+ return a(this, null, function* () {
1971
2089
  var e;
1972
2090
  try {
1973
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.disableFAB) == null || e.call(l, t)), new Promise((r) => {
2091
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.disableFAB) == null || e.call(w, t)), new Promise((r) => {
1974
2092
  r(t);
1975
2093
  });
1976
2094
  } catch (r) {
@@ -1979,10 +2097,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1979
2097
  });
1980
2098
  }
1981
2099
  disableBack(t) {
1982
- return o(this, null, function* () {
2100
+ return a(this, null, function* () {
1983
2101
  var e;
1984
2102
  try {
1985
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.disableBack) == null || e.call(l, t)), new Promise((r) => {
2103
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.disableBack) == null || e.call(w, t)), new Promise((r) => {
1986
2104
  r(t);
1987
2105
  });
1988
2106
  } catch (r) {
@@ -1991,10 +2109,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
1991
2109
  });
1992
2110
  }
1993
2111
  showSubMask(t) {
1994
- return o(this, null, function* () {
2112
+ return a(this, null, function* () {
1995
2113
  var e;
1996
2114
  try {
1997
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.showSubMask) == null || e.call(l, t)), new Promise((r) => {
2115
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.showSubMask) == null || e.call(w, t)), new Promise((r) => {
1998
2116
  r(t);
1999
2117
  });
2000
2118
  } catch (r) {
@@ -2003,10 +2121,10 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2003
2121
  });
2004
2122
  }
2005
2123
  setMiniAppVersion(t) {
2006
- return o(this, null, function* () {
2124
+ return a(this, null, function* () {
2007
2125
  var e;
2008
2126
  try {
2009
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = l.setMiniAppVersion) == null || e.call(l, t)), new Promise((r) => {
2127
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.setMiniAppVersion) == null || e.call(w, t)), new Promise((r) => {
2010
2128
  r(t);
2011
2129
  });
2012
2130
  } catch (r) {
@@ -2015,25 +2133,25 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2015
2133
  });
2016
2134
  }
2017
2135
  showDialog() {
2018
- return o(this, null, function* () {
2136
+ return a(this, null, function* () {
2019
2137
  var t;
2020
- window.__MICRO_APP_ENVIRONMENT__ && ((t = l.showDialog) == null || t.call(l));
2138
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = w.showDialog) == null || t.call(w));
2021
2139
  });
2022
2140
  }
2023
2141
  cancelDialog() {
2024
- return o(this, null, function* () {
2142
+ return a(this, null, function* () {
2025
2143
  var t;
2026
- window.__MICRO_APP_ENVIRONMENT__ && ((t = l.cancelDialog) == null || t.call(l));
2144
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = w.cancelDialog) == null || t.call(w));
2027
2145
  });
2028
2146
  }
2029
2147
  getMiniAppKong(t) {
2030
- return o(this, null, function* () {
2148
+ return a(this, null, function* () {
2031
2149
  var e, r;
2032
2150
  try {
2033
2151
  if (window.__MICRO_APP_ENVIRONMENT__) {
2034
- const n = (r = (e = l.getMiniAppKong) == null ? void 0 : e.call(l, t)) != null ? r : {};
2035
- return new Promise((a) => {
2036
- a(n);
2152
+ const n = (r = (e = w.getMiniAppKong) == null ? void 0 : e.call(w, t)) != null ? r : {};
2153
+ return new Promise((o) => {
2154
+ o(n);
2037
2155
  });
2038
2156
  }
2039
2157
  return new Promise((n) => {
@@ -2045,16 +2163,16 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2045
2163
  });
2046
2164
  }
2047
2165
  closeMiniApp() {
2048
- return o(this, null, function* () {
2166
+ return a(this, null, function* () {
2049
2167
  var t;
2050
- window.__MICRO_APP_ENVIRONMENT__ && ((t = l.closeMiniApp) == null || t.call(l));
2168
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = w.closeMiniApp) == null || t.call(w));
2051
2169
  });
2052
2170
  }
2053
2171
  getStatus() {
2054
2172
  try {
2055
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
2173
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
2056
2174
  var e, r;
2057
- t((yield (r = (e = Se == null ? void 0 : Se.communicate) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
2175
+ t((yield (r = (e = fe == null ? void 0 : fe.communicate) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
2058
2176
  })) : new Promise((t) => {
2059
2177
  t(null);
2060
2178
  });
@@ -2064,9 +2182,9 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2064
2182
  }
2065
2183
  dispatchToShell(t) {
2066
2184
  try {
2067
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => o(this, null, function* () {
2185
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => a(this, null, function* () {
2068
2186
  var r;
2069
- e((yield (r = l == null ? void 0 : l.dispatchToShell) == null ? void 0 : r.call(l, t)) || {});
2187
+ e((yield (r = w == null ? void 0 : w.dispatchToShell) == null ? void 0 : r.call(w, t)) || {});
2070
2188
  })) : new Promise((e) => {
2071
2189
  e(t);
2072
2190
  });
@@ -2076,9 +2194,9 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2076
2194
  }
2077
2195
  getMiniAppInfo(t) {
2078
2196
  try {
2079
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => o(this, null, function* () {
2197
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => a(this, null, function* () {
2080
2198
  var r;
2081
- e((yield (r = l == null ? void 0 : l.getMiniAppInfo) == null ? void 0 : r.call(l, t)) || {});
2199
+ e((yield (r = w == null ? void 0 : w.getMiniAppInfo) == null ? void 0 : r.call(w, t)) || {});
2082
2200
  })) : new Promise((e) => {
2083
2201
  e({});
2084
2202
  });
@@ -2088,6 +2206,6 @@ const ct = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2088
2206
  }
2089
2207
  } }, Symbol.toStringTag, { value: "Module" }));
2090
2208
  export {
2091
- st as NativeApi,
2092
- wt as default
2209
+ St as NativeApi,
2210
+ Mt as default
2093
2211
  };