@danidoble/webserial 4.2.1 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/webserial.js CHANGED
@@ -5,7 +5,7 @@ var $n = (r) => {
5
5
  var Ea = (r, n, t) => n in r ? va(r, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[n] = t;
6
6
  var lt = (r, n, t) => Ea(r, typeof n != "symbol" ? n + "" : n, t), Xe = (r, n, t) => n.has(r) || $n("Cannot " + t);
7
7
  var I = (r, n, t) => (Xe(r, n, "read from private field"), t ? t.call(r) : n.get(r)), G = (r, n, t) => n.has(r) ? $n("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, t), M = (r, n, t, e) => (Xe(r, n, "write to private field"), e ? e.call(r, t) : n.set(r, t), t), o = (r, n, t) => (Xe(r, n, "access private method"), t);
8
- function Ct(r = 100) {
8
+ function Tt(r = 100) {
9
9
  return new Promise((n) => setTimeout(() => n(), r));
10
10
  }
11
11
  function Pa() {
@@ -14,20 +14,20 @@ function Pa() {
14
14
  function zn() {
15
15
  return "geolocation" in navigator;
16
16
  }
17
- function Ca() {
17
+ function Ta() {
18
18
  return "crypto" in window;
19
19
  }
20
20
  function sn(r = 1) {
21
21
  return r * 1e3;
22
22
  }
23
- function Tt(r) {
23
+ function Ct(r) {
24
24
  return r == null || r === "";
25
25
  }
26
- var at, ht, p, Ti, Si, C, on, B, N, we, P, cn, Yt;
26
+ var at, ht, p, Ci, Si, T, on, B, N, we, P, cn, Yt;
27
27
  const u = class u {
28
28
  static status(n = null) {
29
29
  var e, i;
30
- if (!o(e = u, p, C).call(e, n)) return !1;
30
+ if (!o(e = u, p, T).call(e, n)) return !1;
31
31
  let t = [];
32
32
  switch (I(u, at)) {
33
33
  case "locker":
@@ -46,7 +46,7 @@ const u = class u {
46
46
  }
47
47
  static dispensed(n = null) {
48
48
  var e, i;
49
- if (!o(e = u, p, C).call(e, n)) return !1;
49
+ if (!o(e = u, p, T).call(e, n)) return !1;
50
50
  let t = [];
51
51
  switch (I(u, at)) {
52
52
  case "locker":
@@ -65,7 +65,7 @@ const u = class u {
65
65
  }
66
66
  static notDispensed(n = null) {
67
67
  var e, i;
68
- if (!o(e = u, p, C).call(e, n)) return !1;
68
+ if (!o(e = u, p, T).call(e, n)) return !1;
69
69
  let t = [];
70
70
  switch (I(u, at)) {
71
71
  case "locker":
@@ -84,23 +84,23 @@ const u = class u {
84
84
  }
85
85
  static gateInactive(n = null) {
86
86
  var t;
87
- if (!o(t = u, p, C).call(t, n) || !o(this, p, on).call(this)) return !1;
87
+ if (!o(t = u, p, T).call(t, n) || !o(this, p, on).call(this)) return !1;
88
88
  o(this, p, P).call(this, ["0", "7", "5", "5", "5"]);
89
89
  }
90
90
  static gateConfigured(n = null) {
91
91
  var t;
92
- if (!o(t = u, p, C).call(t, n) || !o(this, p, on).call(this)) return !1;
92
+ if (!o(t = u, p, T).call(t, n) || !o(this, p, on).call(this)) return !1;
93
93
  o(this, p, P).call(this, ["0", "6"]);
94
94
  }
95
95
  static keyPressed(n = null) {
96
96
  var s, a, c;
97
- if (!o(s = u, p, C).call(s, n) || !o(a = u, p, N).call(a)) return !1;
97
+ if (!o(s = u, p, T).call(s, n) || !o(a = u, p, N).call(a)) return !1;
98
98
  const t = ["30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "2A", "23", "41", "42", "43", "44"], e = (128 + I(u, ht)).toString(16), i = Math.floor(Math.random() * 15);
99
99
  o(c = u, p, P).call(c, ["2", e, "54", t[i]]);
100
100
  }
101
101
  static doorOpened(n = null) {
102
102
  var i, s;
103
- if (!o(i = u, p, C).call(i, n) || !o(this, p, we).call(this)) return !1;
103
+ if (!o(i = u, p, T).call(i, n) || !o(this, p, we).call(this)) return !1;
104
104
  let t = [];
105
105
  const e = (128 + I(u, ht)).toString(16);
106
106
  switch (I(u, at)) {
@@ -115,7 +115,7 @@ const u = class u {
115
115
  }
116
116
  static doorClosed(n = null) {
117
117
  var i, s;
118
- if (!o(i = u, p, C).call(i, n) || !o(this, p, we).call(this)) return !1;
118
+ if (!o(i = u, p, T).call(i, n) || !o(this, p, we).call(this)) return !1;
119
119
  let t = [];
120
120
  const e = (128 + I(u, ht)).toString(16);
121
121
  switch (I(u, at)) {
@@ -130,31 +130,31 @@ const u = class u {
130
130
  }
131
131
  static channelDisconnected(n = null) {
132
132
  var e, i, s;
133
- if (!o(e = u, p, C).call(e, n) || !o(i = u, p, N).call(i)) return !1;
133
+ if (!o(e = u, p, T).call(e, n) || !o(i = u, p, N).call(i)) return !1;
134
134
  const t = (128 + I(u, ht)).toString(16);
135
135
  o(s = u, p, P).call(s, ["2", t, "43", "43", "43", "FD"]);
136
136
  }
137
137
  static channelConnected(n = null) {
138
138
  var e, i, s;
139
- if (!o(e = u, p, C).call(e, n) || !o(i = u, p, N).call(i)) return !1;
139
+ if (!o(e = u, p, T).call(e, n) || !o(i = u, p, N).call(i)) return !1;
140
140
  const t = (128 + I(u, ht)).toString(16);
141
141
  o(s = u, p, P).call(s, ["2", t, "43", "43", "43", "FC"]);
142
142
  }
143
143
  static channelEmpty(n = null) {
144
144
  var e, i, s;
145
- if (!o(e = u, p, C).call(e, n) || !o(i = u, p, N).call(i)) return !1;
145
+ if (!o(e = u, p, T).call(e, n) || !o(i = u, p, N).call(i)) return !1;
146
146
  const t = (128 + I(u, ht)).toString(16);
147
147
  o(s = u, p, P).call(s, ["2", t, "43", "43", "43", "FF"]);
148
148
  }
149
149
  static workingTemperature(n = null) {
150
150
  var e, i, s;
151
- if (!o(e = u, p, C).call(e, n) || !o(i = u, p, N).call(i)) return !1;
151
+ if (!o(e = u, p, T).call(e, n) || !o(i = u, p, N).call(i)) return !1;
152
152
  const t = (128 + I(u, ht)).toString(16);
153
153
  o(s = u, p, P).call(s, ["2", t, "43", "54", "16"]);
154
154
  }
155
155
  static currentTemperature(n = null) {
156
156
  var i, s, a;
157
- if (!o(i = u, p, C).call(i, n) || !o(s = u, p, we).call(s)) return !1;
157
+ if (!o(i = u, p, T).call(i, n) || !o(s = u, p, we).call(s)) return !1;
158
158
  let t = [];
159
159
  const e = (128 + I(u, ht)).toString(16);
160
160
  switch (I(u, at)) {
@@ -169,213 +169,213 @@ const u = class u {
169
169
  }
170
170
  static ready(n = null) {
171
171
  var t, e, i;
172
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
172
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
173
173
  o(i = u, p, P).call(i, ["6", "30"]);
174
174
  }
175
175
  static busy(n = null) {
176
176
  var t, e, i;
177
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
177
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
178
178
  o(i = u, p, P).call(i, ["6", "31"]);
179
179
  }
180
180
  static invalidTray(n = null) {
181
181
  var t, e, i;
182
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
182
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
183
183
  o(i = u, p, P).call(i, ["6", "32"]);
184
184
  }
185
185
  static invalidChannel(n = null) {
186
186
  var t, e, i;
187
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
187
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
188
188
  o(i = u, p, P).call(i, ["6", "33"]);
189
189
  }
190
190
  static emptyChannel(n = null) {
191
191
  var t, e, i;
192
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
192
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
193
193
  o(i = u, p, P).call(i, ["6", "34"]);
194
194
  }
195
195
  static elevatorJam(n = null) {
196
196
  var t, e, i;
197
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
197
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
198
198
  o(i = u, p, P).call(i, ["6", "35"]);
199
199
  }
200
200
  static elevatorMalfunction(n = null) {
201
201
  var t, e, i;
202
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
202
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
203
203
  o(i = u, p, P).call(i, ["6", "36"]);
204
204
  }
205
205
  static phototransistorFailure(n = null) {
206
206
  var t, e, i;
207
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
207
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
208
208
  o(i = u, p, P).call(i, ["6", "37"]);
209
209
  }
210
210
  static allChannelsEmpty(n = null) {
211
211
  var t, e, i;
212
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
212
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
213
213
  o(i = u, p, P).call(i, ["6", "38"]);
214
214
  }
215
215
  static productDetectorFailure(n = null) {
216
216
  var t, e, i;
217
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
217
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
218
218
  o(i = u, p, P).call(i, ["6", "39"]);
219
219
  }
220
220
  static displayDisconnected(n = null) {
221
221
  var t, e, i;
222
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
222
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
223
223
  o(i = u, p, P).call(i, ["6", "41"]);
224
224
  }
225
225
  static productUnderElevator(n = null) {
226
226
  var t, e, i;
227
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
227
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
228
228
  o(i = u, p, P).call(i, ["6", "42"]);
229
229
  }
230
230
  static elevatorSettingAlarm(n = null) {
231
231
  var t, e, i;
232
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
232
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
233
233
  o(i = u, p, P).call(i, ["6", "43"]);
234
234
  }
235
235
  static buttonPanelFailure(n = null) {
236
236
  var t, e, i;
237
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
237
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
238
238
  o(i = u, p, P).call(i, ["6", "44"]);
239
239
  }
240
240
  static errorWritingEeprom(n = null) {
241
241
  var t, e, i;
242
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
242
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
243
243
  o(i = u, p, P).call(i, ["6", "45"]);
244
244
  }
245
245
  static errorControlTemperature(n = null) {
246
246
  var t, e, i;
247
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
247
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
248
248
  o(i = u, p, P).call(i, ["6", "46"]);
249
249
  }
250
250
  static thermometerDisconnected(n = null) {
251
251
  var t, e, i;
252
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
252
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
253
253
  o(i = u, p, P).call(i, ["6", "47"]);
254
254
  }
255
255
  static thermometerMisconfigured(n = null) {
256
256
  var t, e, i;
257
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
257
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
258
258
  o(i = u, p, P).call(i, ["6", "48"]);
259
259
  }
260
260
  static thermometerFailure(n = null) {
261
261
  var t, e, i;
262
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
262
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
263
263
  o(i = u, p, P).call(i, ["6", "49"]);
264
264
  }
265
265
  static errorExtractorConsumption(n = null) {
266
266
  var t, e, i;
267
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
267
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
268
268
  o(i = u, p, P).call(i, ["6", "4A"]);
269
269
  }
270
270
  static channelSearchError(n = null) {
271
271
  var t, e, i;
272
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
272
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
273
273
  o(i = u, p, P).call(i, ["6", "4B"]);
274
274
  }
275
275
  static productExitMouthSearchError(n = null) {
276
276
  var t, e, i;
277
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
277
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
278
278
  o(i = u, p, P).call(i, ["6", "4C"]);
279
279
  }
280
280
  static elevatorInteriorLocked(n = null) {
281
281
  var t, e, i;
282
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
282
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
283
283
  o(i = u, p, P).call(i, ["6", "4D"]);
284
284
  }
285
285
  static productDetectorVerifierError(n = null) {
286
286
  var t, e, i;
287
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
287
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
288
288
  o(i = u, p, P).call(i, ["6", "4E"]);
289
289
  }
290
290
  static waitingForProductRecall(n = null) {
291
291
  var t, e, i;
292
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
292
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
293
293
  o(i = u, p, P).call(i, ["6", "4F"]);
294
294
  }
295
295
  static productExpiredByTemperature(n = null) {
296
296
  var t, e, i;
297
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
297
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
298
298
  o(i = u, p, P).call(i, ["6", "50"]);
299
299
  }
300
300
  static faultyAutomaticDoor(n = null) {
301
301
  var t, e, i;
302
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
302
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
303
303
  o(i = u, p, P).call(i, ["6", "51"]);
304
304
  }
305
305
  static rejectLever(n = null) {
306
306
  var t, e, i;
307
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
307
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
308
308
  o(i = u, p, P).call(i, ["2", "A0", "1"]);
309
309
  }
310
310
  static resetCoinPurse(n = null) {
311
311
  var t, e, i;
312
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
312
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
313
313
  o(i = u, p, P).call(i, ["2", "A0", "2"]);
314
314
  }
315
315
  static coinInsertedBox(n = null, t = null) {
316
316
  var s, a, c, l;
317
- if (!o(s = u, p, C).call(s, n) || !o(a = u, p, B).call(a)) return !1;
317
+ if (!o(s = u, p, T).call(s, n) || !o(a = u, p, B).call(a)) return !1;
318
318
  const e = ["40", "41", "42", "43", "44", "45"], i = o(c = u, p, cn).call(c, e, t);
319
319
  o(l = u, p, P).call(l, ["2", "A0", i]);
320
320
  }
321
321
  static coinInsertedTube(n = null, t = null) {
322
322
  var s, a, c, l;
323
- if (!o(s = u, p, C).call(s, n) || !o(a = u, p, B).call(a)) return !1;
323
+ if (!o(s = u, p, T).call(s, n) || !o(a = u, p, B).call(a)) return !1;
324
324
  const e = ["50", "51", "52", "53", "54", "55"], i = o(c = u, p, cn).call(c, e, t);
325
325
  o(l = u, p, P).call(l, ["2", "A0", i]);
326
326
  }
327
327
  static banknoteInsertedStacker(n = null, t = null) {
328
328
  var s, a, c, l;
329
- if (!o(s = u, p, C).call(s, n) || !o(a = u, p, B).call(a)) return !1;
329
+ if (!o(s = u, p, T).call(s, n) || !o(a = u, p, B).call(a)) return !1;
330
330
  const e = ["80", "81", "82", "83", "84"], i = o(c = u, p, Yt).call(c, e, t);
331
331
  o(l = u, p, P).call(l, ["2", "B0", i]);
332
332
  }
333
333
  static banknoteInsertedEscrow(n = null, t = null) {
334
334
  var s, a, c, l;
335
- if (!o(s = u, p, C).call(s, n) || !o(a = u, p, B).call(a)) return !1;
335
+ if (!o(s = u, p, T).call(s, n) || !o(a = u, p, B).call(a)) return !1;
336
336
  const e = ["90", "91", "92", "93", "94"], i = o(c = u, p, Yt).call(c, e, t);
337
337
  o(l = u, p, P).call(l, ["2", "B0", i]);
338
338
  }
339
339
  static banknoteEjected(n = null, t = null) {
340
340
  var s, a, c, l;
341
- if (!o(s = u, p, C).call(s, n) || !o(a = u, p, B).call(a)) return !1;
341
+ if (!o(s = u, p, T).call(s, n) || !o(a = u, p, B).call(a)) return !1;
342
342
  const e = ["A0", "A1", "A2", "A3", "A4"], i = o(c = u, p, Yt).call(c, e, t);
343
343
  o(l = u, p, P).call(l, ["2", "B0", i]);
344
344
  }
345
345
  static banknoteInsertedRecycler(n = null, t = null) {
346
346
  var s, a, c, l;
347
- if (!o(s = u, p, C).call(s, n) || !o(a = u, p, B).call(a)) return !1;
347
+ if (!o(s = u, p, T).call(s, n) || !o(a = u, p, B).call(a)) return !1;
348
348
  const e = ["B0", "B1", "B2", "B3", "B4"], i = o(c = u, p, Yt).call(c, e, t);
349
349
  o(l = u, p, P).call(l, ["2", "B0", i]);
350
350
  }
351
351
  static banknoteTaken(n = null) {
352
352
  var t, e, i;
353
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
353
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
354
354
  o(i = u, p, P).call(i, ["2", "B0", "2a"]);
355
355
  }
356
356
  static coinPurseEnabled(n = null) {
357
357
  var t, e, i;
358
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
358
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
359
359
  o(i = u, p, P).call(i, ["2", "D0", "1"]);
360
360
  }
361
361
  static coinPurseDisabled(n = null) {
362
362
  var t, e, i;
363
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
363
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
364
364
  o(i = u, p, P).call(i, ["2", "D0", "0"]);
365
365
  }
366
366
  static billPurseDisabled(n = null) {
367
367
  var t, e, i;
368
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
368
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
369
369
  o(i = u, p, P).call(i, ["2", "D1", "0", "0"]);
370
370
  }
371
371
  static billPurseEnabled(n = null) {
372
372
  var t, e, i;
373
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
373
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
374
374
  o(i = u, p, P).call(i, ["2", "D1", "1", "1"]);
375
375
  }
376
376
  static readTubes(n = null) {
377
377
  var h, d, f;
378
- if (!o(h = u, p, C).call(h, n) || !o(d = u, p, B).call(d)) return !1;
378
+ if (!o(h = u, p, T).call(h, n) || !o(d = u, p, B).call(d)) return !1;
379
379
  const t = [
380
380
  "0",
381
381
  "1",
@@ -421,7 +421,7 @@ const u = class u {
421
421
  }
422
422
  static readBillPurse(n = null, t = null) {
423
423
  var i, s, a, c;
424
- if (!o(i = u, p, C).call(i, n) || !o(s = u, p, B).call(s)) return !1;
424
+ if (!o(i = u, p, T).call(i, n) || !o(s = u, p, B).call(s)) return !1;
425
425
  let e = [
426
426
  "0",
427
427
  "1",
@@ -507,17 +507,17 @@ const u = class u {
507
507
  }
508
508
  static banknoteAccepted(n = null) {
509
509
  var t, e, i;
510
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
510
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
511
511
  o(i = u, p, P).call(i, ["2", "D4", "1"]);
512
512
  }
513
513
  static banknoteRejected(n = null) {
514
514
  var t, e, i;
515
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
515
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
516
516
  o(i = u, p, P).call(i, ["2", "D4", "0"]);
517
517
  }
518
518
  static banknotesDispensed(n = null) {
519
519
  var e, i, s, a;
520
- if (!o(e = u, p, C).call(e, n) || !o(i = u, p, B).call(i)) return !1;
520
+ if (!o(e = u, p, T).call(e, n) || !o(i = u, p, B).call(i)) return !1;
521
521
  let t = [
522
522
  "1",
523
523
  "2",
@@ -583,90 +583,90 @@ const u = class u {
583
583
  }
584
584
  static coinsDispensed(n = null) {
585
585
  var t, e, i;
586
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
586
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
587
587
  o(i = u, p, P).call(i, ["2", "D6"]);
588
588
  }
589
589
  static relayOn(n = null) {
590
590
  var t, e, i;
591
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
591
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
592
592
  o(i = u, p, P).call(i, ["2", "DA", "1"]);
593
593
  }
594
594
  static relayOff(n = null) {
595
595
  var t, e, i;
596
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
596
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
597
597
  o(i = u, p, P).call(i, ["2", "DA", "0"]);
598
598
  }
599
599
  static nayaxEnabled(n = null) {
600
600
  var t, e, i;
601
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
601
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
602
602
  o(i = u, p, P).call(i, ["2", "DD", "1"]);
603
603
  }
604
604
  static nayaxDisabled(n = null) {
605
605
  var t, e, i;
606
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
606
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
607
607
  o(i = u, p, P).call(i, ["2", "DD", "0"]);
608
608
  }
609
609
  static nayaxPreCreditAuthorized(n = null) {
610
610
  var t, e, i;
611
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
611
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
612
612
  o(i = u, p, P).call(i, ["2", "DD", "3"]);
613
613
  }
614
614
  static nayaxCancelRequest(n = null) {
615
615
  var t, e, i;
616
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
616
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
617
617
  o(i = u, p, P).call(i, ["2", "DD", "4"]);
618
618
  }
619
619
  static nayaxSellApproved(n = null) {
620
620
  var t, e, i;
621
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
621
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
622
622
  o(i = u, p, P).call(i, ["2", "DD", "5"]);
623
623
  }
624
624
  static nayaxSellDenied(n = null) {
625
625
  var t, e, i;
626
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
626
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
627
627
  o(i = u, p, P).call(i, ["2", "DD", "6"]);
628
628
  }
629
629
  static nayaxEndSession(n = null) {
630
630
  var t, e, i;
631
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
631
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
632
632
  o(i = u, p, P).call(i, ["2", "DD", "7"]);
633
633
  }
634
634
  static nayaxCancelled(n = null) {
635
635
  var t, e, i;
636
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
636
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
637
637
  o(i = u, p, P).call(i, ["2", "DD", "8"]);
638
638
  }
639
639
  static nayaxDispensed(n = null) {
640
640
  var t, e, i;
641
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
641
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
642
642
  o(i = u, p, P).call(i, ["2", "DD", "A", "0"]);
643
643
  }
644
644
  static nayaxNotDispensed(n = null) {
645
645
  var t, e, i;
646
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, B).call(e)) return !1;
646
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, B).call(e)) return !1;
647
647
  o(i = u, p, P).call(i, ["2", "DD", "A", "1"]);
648
648
  }
649
649
  static fullTray(n = null) {
650
650
  var t, e, i;
651
- if (!o(t = u, p, C).call(t, n) || !o(e = u, p, N).call(e)) return !1;
651
+ if (!o(t = u, p, T).call(t, n) || !o(e = u, p, N).call(e)) return !1;
652
652
  o(i = u, p, P).call(i, ["6", "4F"]);
653
653
  }
654
654
  static setConnection(n = null) {
655
655
  var t;
656
- if (!o(t = u, p, C).call(t, n)) return !1;
656
+ if (!o(t = u, p, T).call(t, n)) return !1;
657
657
  n.__internal__.serial.connected = !0;
658
658
  }
659
659
  };
660
- at = new WeakMap(), ht = new WeakMap(), p = new WeakSet(), Ti = function() {
660
+ at = new WeakMap(), ht = new WeakMap(), p = new WeakSet(), Ci = function() {
661
661
  if (u.enable === !1) throw new Error("Emulator is disabled");
662
662
  return u.enable;
663
663
  }, Si = function(n) {
664
664
  if (typeof n != "object" || !(n instanceof Dt))
665
665
  throw new Error(`Type ${n.typeDevice} is not supported`);
666
666
  return u.instance = n, M(u, at, n.typeDevice), M(u, ht, n.deviceNumber), !0;
667
- }, C = function(n = null) {
667
+ }, T = function(n = null) {
668
668
  var t, e;
669
- return !o(t = u, p, Ti).call(t) || n === null && u.instance === null ? !1 : (u.instance === null && o(e = u, p, Si).call(e, n), !0);
669
+ return !o(t = u, p, Ci).call(t) || n === null && u.instance === null ? !1 : (u.instance === null && o(e = u, p, Si).call(e, n), !0);
670
670
  }, on = function() {
671
671
  if (I(u, at) !== "locker") throw new Error("This function is only available for Locker devices");
672
672
  return !0;
@@ -726,9 +726,9 @@ at = new WeakMap(), ht = new WeakMap(), p = new WeakSet(), Ti = function() {
726
726
  return e;
727
727
  }, G(u, p), lt(u, "enable", !1), lt(u, "instance", null), G(u, at, null), G(u, ht, 1);
728
728
  let an = u;
729
- var Ta = Object.defineProperty, xi = (r) => {
729
+ var Ca = Object.defineProperty, ki = (r) => {
730
730
  throw TypeError(r);
731
- }, Sa = (r, n, t) => n in r ? Ta(r, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[n] = t, ce = (r, n, t) => Sa(r, typeof n != "symbol" ? n + "" : n, t), xa = (r, n, t) => n.has(r) || xi("Cannot " + t), ka = (r, n, t) => n.has(r) ? xi("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, t), V = (r, n, t) => (xa(r, n, "access private method"), t);
731
+ }, Sa = (r, n, t) => n in r ? Ca(r, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[n] = t, ce = (r, n, t) => Sa(r, typeof n != "symbol" ? n + "" : n, t), ka = (r, n, t) => n.has(r) || ki("Cannot " + t), xa = (r, n, t) => n.has(r) ? ki("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, t), V = (r, n, t) => (ka(r, n, "access private method"), t);
732
732
  const J = [];
733
733
  for (let r = 0; r < 256; ++r)
734
734
  J.push((r + 256).toString(16).slice(1));
@@ -761,7 +761,7 @@ class Xn extends CustomEvent {
761
761
  super(n, t);
762
762
  }
763
763
  }
764
- class ki extends EventTarget {
764
+ class xi extends EventTarget {
765
765
  constructor() {
766
766
  super(...arguments), ce(this, "__listeners__", {
767
767
  debug: !1
@@ -793,7 +793,7 @@ class ki extends EventTarget {
793
793
  }));
794
794
  }
795
795
  }
796
- const ln = class L extends ki {
796
+ const ln = class L extends xi {
797
797
  constructor() {
798
798
  super(), ["change"].forEach((n) => {
799
799
  this.serialRegisterAvailableListener(n);
@@ -834,8 +834,8 @@ const ln = class L extends ki {
834
834
  }
835
835
  };
836
836
  ce(ln, "instance"), ce(ln, "devices", {});
837
- let x = ln;
838
- x.instance || (x.instance = new x());
837
+ let k = ln;
838
+ k.instance || (k.instance = new k());
839
839
  function Jn(r = 100) {
840
840
  return new Promise(
841
841
  (n) => setTimeout(() => n(), r)
@@ -853,7 +853,7 @@ const Qe = {
853
853
  flowControl: "none"
854
854
  };
855
855
  var F, Kt, oe, hn, It, Ai, Qn, Zn, Yn, Di, Ri, Ii, Oi, ti, ei, Ni, Bi;
856
- class Ba extends ki {
856
+ class Ba extends xi {
857
857
  constructor({
858
858
  filters: n = null,
859
859
  config_port: t = Qe,
@@ -865,7 +865,7 @@ class Ba extends ki {
865
865
  no_device: 1,
866
866
  device_listen_on_channel: 1
867
867
  }) {
868
- if (super(), ka(this, F), ce(this, "__internal__", {
868
+ if (super(), xa(this, F), ce(this, "__internal__", {
869
869
  auto_response: !1,
870
870
  device_number: 1,
871
871
  aux_port_connector: 0,
@@ -948,7 +948,7 @@ class Ba extends ki {
948
948
  }
949
949
  get isDisconnected() {
950
950
  const n = this.__internal__.serial.connected, t = V(this, F, Kt).call(this, this.__internal__.serial.port);
951
- return !n && t && (this.dispatch("serial:connected"), x.$dispatchChange(this)), this.__internal__.serial.connected = t, !this.__internal__.serial.connected;
951
+ return !n && t && (this.dispatch("serial:connected"), k.$dispatchChange(this)), this.__internal__.serial.connected = t, !this.__internal__.serial.connected;
952
952
  }
953
953
  get deviceNumber() {
954
954
  return this.__internal__.device_number;
@@ -963,7 +963,7 @@ class Ba extends ki {
963
963
  return this.__internal__.serial.queue;
964
964
  }
965
965
  async timeout(n, t) {
966
- this.__internal__.last_error.message = "Operation response timed out.", this.__internal__.last_error.action = t, this.__internal__.last_error.code = n, this.__internal__.timeout.until_response && (clearTimeout(this.__internal__.timeout.until_response), this.__internal__.timeout.until_response = 0), t === "connect" ? (this.__internal__.serial.connected = !1, this.dispatch("serial:reconnect", {}), x.$dispatchChange(this)) : t === "connection:start" && (await this.serialDisconnect(), this.__internal__.serial.connected = !1, this.__internal__.aux_port_connector += 1, x.$dispatchChange(this), await this.serialConnect()), this.dispatch("serial:timeout", {
966
+ this.__internal__.last_error.message = "Operation response timed out.", this.__internal__.last_error.action = t, this.__internal__.last_error.code = n, this.__internal__.timeout.until_response && (clearTimeout(this.__internal__.timeout.until_response), this.__internal__.timeout.until_response = 0), t === "connect" ? (this.__internal__.serial.connected = !1, this.dispatch("serial:reconnect", {}), k.$dispatchChange(this)) : t === "connection:start" && (await this.serialDisconnect(), this.__internal__.serial.connected = !1, this.__internal__.aux_port_connector += 1, k.$dispatchChange(this), await this.serialConnect()), this.dispatch("serial:timeout", {
967
967
  ...this.__internal__.last_error,
968
968
  bytes: n,
969
969
  action: t
@@ -986,7 +986,7 @@ class Ba extends ki {
986
986
  } catch (n) {
987
987
  this.serialErrors(n);
988
988
  } finally {
989
- this.__internal__.serial.reader = null, this.__internal__.serial.input_done = null, this.__internal__.serial.output_stream = null, this.__internal__.serial.output_done = null, this.__internal__.serial.connected = !1, this.__internal__.serial.port = null, x.$dispatchChange(this);
989
+ this.__internal__.serial.reader = null, this.__internal__.serial.input_done = null, this.__internal__.serial.output_stream = null, this.__internal__.serial.output_done = null, this.__internal__.serial.connected = !1, this.__internal__.serial.port = null, k.$dispatchChange(this);
990
990
  }
991
991
  }
992
992
  getResponseAsArrayBuffer() {
@@ -1026,7 +1026,7 @@ class Ba extends ki {
1026
1026
  case t.includes(
1027
1027
  "this readable stream reader has been released and cannot be used to cancel its previous owner stream"
1028
1028
  ):
1029
- this.dispatch("serial:need-permission", {}), x.$dispatchChange(this);
1029
+ this.dispatch("serial:need-permission", {}), k.$dispatchChange(this);
1030
1030
  break;
1031
1031
  case t.includes("the port is already open."):
1032
1032
  case t.includes("failed to open serial port"):
@@ -1049,7 +1049,7 @@ class Ba extends ki {
1049
1049
  case t.includes("the port is already closed."):
1050
1050
  break;
1051
1051
  case t.includes("the device has been lost"):
1052
- this.dispatch("serial:lost", {}), x.$dispatchChange(this);
1052
+ this.dispatch("serial:lost", {}), k.$dispatchChange(this);
1053
1053
  break;
1054
1054
  case t.includes("navigator.serial is undefined"):
1055
1055
  this.dispatch("serial:unsupported", {});
@@ -1078,7 +1078,7 @@ class Ba extends ki {
1078
1078
  await t.open(this.serialConfigPort);
1079
1079
  const e = this;
1080
1080
  t.onconnect = (i) => {
1081
- console.log(i), e.dispatch("serial:connected", i), x.$dispatchChange(this), e.__internal__.serial.queue.length > 0 && e.dispatch("internal:queue", {});
1081
+ console.log(i), e.dispatch("serial:connected", i), k.$dispatchChange(this), e.__internal__.serial.queue.length > 0 && e.dispatch("internal:queue", {});
1082
1082
  }, t.ondisconnect = async () => {
1083
1083
  await e.disconnect();
1084
1084
  }, await Jn(this.__internal__.serial.delay_first_connection), this.__internal__.timeout.until_response = setTimeout(async () => {
@@ -1220,7 +1220,7 @@ class Ba extends ki {
1220
1220
  F = /* @__PURE__ */ new WeakSet(), Kt = function(r) {
1221
1221
  return !!(r && r.readable && r.writable);
1222
1222
  }, oe = function(r = null) {
1223
- this.__internal__.serial.connected = !1, this.__internal__.aux_port_connector = 0, this.dispatch("serial:disconnected", r), x.$dispatchChange(this);
1223
+ this.__internal__.serial.connected = !1, this.__internal__.aux_port_connector = 0, this.dispatch("serial:disconnected", r), k.$dispatchChange(this);
1224
1224
  }, hn = async function(r) {
1225
1225
  const n = this.__internal__.serial.port;
1226
1226
  if (!n || n && (!n.readable || !n.writable))
@@ -1232,7 +1232,7 @@ F = /* @__PURE__ */ new WeakSet(), Kt = function(r) {
1232
1232
  }, It = function(r = [], n = null) {
1233
1233
  if (r && r.length > 0) {
1234
1234
  const t = this.__internal__.serial.connected;
1235
- this.__internal__.serial.connected = V(this, F, Kt).call(this, this.__internal__.serial.port), x.$dispatchChange(this), !t && this.__internal__.serial.connected && this.dispatch("serial:connected"), this.__internal__.interval.reconnection && (clearInterval(this.__internal__.interval.reconnection), this.__internal__.interval.reconnection = 0), this.__internal__.timeout.until_response && (clearTimeout(this.__internal__.timeout.until_response), this.__internal__.timeout.until_response = 0);
1235
+ this.__internal__.serial.connected = V(this, F, Kt).call(this, this.__internal__.serial.port), k.$dispatchChange(this), !t && this.__internal__.serial.connected && this.dispatch("serial:connected"), this.__internal__.interval.reconnection && (clearInterval(this.__internal__.interval.reconnection), this.__internal__.interval.reconnection = 0), this.__internal__.timeout.until_response && (clearTimeout(this.__internal__.timeout.until_response), this.__internal__.timeout.until_response = 0);
1236
1236
  const e = [];
1237
1237
  for (const i in r)
1238
1238
  e.push(r[i].toString().padStart(2, "0").toLowerCase());
@@ -1388,7 +1388,7 @@ F = /* @__PURE__ */ new WeakSet(), Kt = function(r) {
1388
1388
  no_code: 0
1389
1389
  };
1390
1390
  };
1391
- x.instance || (x.instance = new x());
1391
+ k.instance || (k.instance = new k());
1392
1392
  const Ma = {
1393
1393
  relay: [],
1394
1394
  locker: [],
@@ -1398,25 +1398,25 @@ const Ma = {
1398
1398
  pinpad: [],
1399
1399
  pinpax: []
1400
1400
  };
1401
- x.devices = { ...x.devices, ...Ma };
1402
- x.addCustom = (r, n) => {
1403
- x.registerType(r), x.add(n);
1401
+ k.devices = { ...k.devices, ...Ma };
1402
+ k.addCustom = (r, n) => {
1403
+ k.registerType(r), k.add(n);
1404
1404
  };
1405
- x.getCustomByUuid = (r, n) => x.get(r, n);
1406
- x.getJofemarByUuid = (r) => x.get("jofemar", r);
1407
- x.getLockerByUuid = (r) => x.get("locker", r);
1408
- x.getRelayByUuid = (r) => x.get("relay", r);
1409
- x.getBoardroidByUuid = (r) => x.get("boardroid", r);
1410
- x.getArduinoByUuid = (r) => x.get("arduino", r);
1411
- x.getPinPadByUuid = (r) => x.get("pinpad", r);
1412
- x.getPinPaxByUuid = (r) => x.get("pinpax", r);
1413
- x.getJofemar = (r = 1) => x.getByNumber("jofemar", r);
1414
- x.getBoardroid = (r = 1) => x.getByNumber("boardroid", r);
1415
- x.getLocker = (r = 1) => x.getByNumber("locker", r);
1416
- x.getRelay = (r = 1) => x.getByNumber("relay", r);
1417
- x.getArduino = (r = 1) => x.getByNumber("arduino", r);
1418
- x.getPinPad = (r = 1) => x.getByNumber("pinpad", r);
1419
- x.getPinPax = (r = 1) => x.getByNumber("pinpax", r);
1405
+ k.getCustomByUuid = (r, n) => k.get(r, n);
1406
+ k.getJofemarByUuid = (r) => k.get("jofemar", r);
1407
+ k.getLockerByUuid = (r) => k.get("locker", r);
1408
+ k.getRelayByUuid = (r) => k.get("relay", r);
1409
+ k.getBoardroidByUuid = (r) => k.get("boardroid", r);
1410
+ k.getArduinoByUuid = (r) => k.get("arduino", r);
1411
+ k.getPinPadByUuid = (r) => k.get("pinpad", r);
1412
+ k.getPinPaxByUuid = (r) => k.get("pinpax", r);
1413
+ k.getJofemar = (r = 1) => k.getByNumber("jofemar", r);
1414
+ k.getBoardroid = (r = 1) => k.getByNumber("boardroid", r);
1415
+ k.getLocker = (r = 1) => k.getByNumber("locker", r);
1416
+ k.getRelay = (r = 1) => k.getByNumber("relay", r);
1417
+ k.getArduino = (r = 1) => k.getByNumber("arduino", r);
1418
+ k.getPinPad = (r = 1) => k.getByNumber("pinpad", r);
1419
+ k.getPinPax = (r = 1) => k.getByNumber("pinpax", r);
1420
1420
  class Dt extends Ba {
1421
1421
  constructor(n) {
1422
1422
  super(n), this.__internal__ = structuredClone(this.__internal__), this.getResponseAsArrayHex(), this.__internal__.device.door_open = !1, this.__internal__.time.response_engines = 2e3, this.__internal__.time.sense = 100, this.__internal__.interval.waiting_sense = 0, this.__internal__.dispense = {
@@ -1460,7 +1460,7 @@ class Dt extends Ba {
1460
1460
  }), null);
1461
1461
  }
1462
1462
  async internalDispenseStatus() {
1463
- if (this.__internal__.dispense.must_response && (await Ct(this.__internal__.time.response_engines + 10), this.__internal__.dispense.status === "no-response"))
1463
+ if (this.__internal__.dispense.must_response && (await Tt(this.__internal__.time.response_engines + 10), this.__internal__.dispense.status === "no-response"))
1464
1464
  return this.internalClearSensing(), this.__internal__.dispense.status = !1, this.dispatch("not-dispensed", { reason: "no-response" }), { status: !1, error: "no-response" };
1465
1465
  this.__internal__.dispense.status = null, this.__internal__.dispense.dispensing = !0, this.dispatch("internal:dispense:running", {});
1466
1466
  const n = this;
@@ -1504,7 +1504,7 @@ class Dt extends Ba {
1504
1504
  console.error("Invalid data to make an emulation");
1505
1505
  return;
1506
1506
  }
1507
- this.__internal__.serial.connected || (this.__internal__.serial.connected = !0, this.dispatch("serial:connected"), x.instance.dispatch("change"), this.__internal__.interval.reconnection && (clearInterval(this.__internal__.interval.reconnection), this.__internal__.interval.reconnection = 0)), this.__internal__.timeout.until_response && (clearTimeout(this.__internal__.timeout.until_response), this.__internal__.timeout.until_response = 0);
1507
+ this.__internal__.serial.connected || (this.__internal__.serial.connected = !0, this.dispatch("serial:connected"), k.instance.dispatch("change"), this.__internal__.interval.reconnection && (clearInterval(this.__internal__.interval.reconnection), this.__internal__.interval.reconnection = 0)), this.__internal__.timeout.until_response && (clearTimeout(this.__internal__.timeout.until_response), this.__internal__.timeout.until_response = 0);
1508
1508
  const t = [];
1509
1509
  for (const e in n.code)
1510
1510
  t.push(n.code[e].toString().padStart(2, "0").toLowerCase());
@@ -1533,7 +1533,7 @@ class Uc extends Dt {
1533
1533
  activate: ["A0", "01", "01", "A2"],
1534
1534
  deactivate: ["A0", "01", "00", "A1"]
1535
1535
  });
1536
- if (this.__internal__.device.type = "relay", this.__internal__.auto_response = !0, x.getCustom(this.typeDevice, i))
1536
+ if (this.__internal__.device.type = "relay", this.__internal__.auto_response = !0, k.getCustom(this.typeDevice, i))
1537
1537
  throw new Error(`Device ${this.typeDevice} ${i} already exists`);
1538
1538
  o(this, Ve, Mi).call(this);
1539
1539
  }
@@ -1577,11 +1577,11 @@ class Uc extends Dt {
1577
1577
  }
1578
1578
  async toggle({ inverse: t = !1, ms: e = 300 } = {}) {
1579
1579
  const i = this;
1580
- t ? (await i.turnOff(), await Ct(e), await i.turnOn()) : (await i.turnOn(), await Ct(e), await i.turnOff());
1580
+ t ? (await i.turnOff(), await Tt(e), await i.turnOn()) : (await i.turnOn(), await Tt(e), await i.turnOff());
1581
1581
  }
1582
1582
  }
1583
1583
  he = new WeakMap(), Ve = new WeakSet(), Mi = function() {
1584
- x.add(this);
1584
+ k.add(this);
1585
1585
  };
1586
1586
  var Y, z, Pt, R, Fi, Ui, Li, Vi, un, qi, Ot, Nt, ve, Ee, Pe;
1587
1587
  class Lc extends Dt {
@@ -1591,7 +1591,7 @@ class Lc extends Dt {
1591
1591
  G(this, Y, !1);
1592
1592
  G(this, z, 0);
1593
1593
  G(this, Pt, 0);
1594
- if (this.__internal__.device.type = "locker", x.getCustom(this.typeDevice, i))
1594
+ if (this.__internal__.device.type = "locker", k.getCustom(this.typeDevice, i))
1595
1595
  throw new Error(`Device ${this.typeDevice} ${i} already exists`);
1596
1596
  this.__internal__.device.milliseconds = 666, this.__internal__.dispense.limit_counter = 1, o(this, R, Ui).call(this), o(this, R, Fi).call(this);
1597
1597
  }
@@ -1725,7 +1725,7 @@ Y = new WeakMap(), z = new WeakMap(), Pt = new WeakMap(), R = new WeakSet(), Fi
1725
1725
  for (const e of t)
1726
1726
  this.serialRegisterAvailableListener(e);
1727
1727
  }, Ui = function() {
1728
- x.add(this);
1728
+ k.add(this);
1729
1729
  }, Li = function(t = 1) {
1730
1730
  return t = o(this, R, Ot).call(this, t), this.serialLockerHexCmd(new Uint8Array([16, this.__internal__.device.listen_on_port, t]));
1731
1731
  }, Vi = function(t = 0, e = 10) {
@@ -2389,7 +2389,7 @@ var Ze = (
2389
2389
  var t = O(), e = O();
2390
2390
  return this.divRemTo(n, t, e), [t, e];
2391
2391
  }, r.prototype.modPow = function(n, t) {
2392
- var e = n.bitLength(), i, s = xt(1), a;
2392
+ var e = n.bitLength(), i, s = kt(1), a;
2393
2393
  if (e <= 0)
2394
2394
  return s;
2395
2395
  e < 18 ? i = 1 : e < 48 ? i = 3 : e < 144 ? i = 4 : e < 768 ? i = 5 : i = 6, e < 8 ? a = new oi(t) : t.isEven() ? a = new Ga(t) : a = new ci(t);
@@ -2399,7 +2399,7 @@ var Ze = (
2399
2399
  for (a.sqrTo(c[1], f); l <= d; )
2400
2400
  c[l] = O(), a.mulTo(f, c[l - 2], c[l]), l += 2;
2401
2401
  }
2402
- var b = n.t - 1, E, v = !0, S = O(), T;
2402
+ var b = n.t - 1, E, v = !0, S = O(), C;
2403
2403
  for (e = fe(n[b]) - 1; b >= 0; ) {
2404
2404
  for (e >= h ? E = n[b] >> e - h & d : (E = (n[b] & (1 << e + 1) - 1) << h - e, b > 0 && (E |= n[b - 1] >> this.DB + e - h)), l = i; (E & 1) == 0; )
2405
2405
  E >>= 1, --l;
@@ -2408,17 +2408,17 @@ var Ze = (
2408
2408
  else {
2409
2409
  for (; l > 1; )
2410
2410
  a.sqrTo(s, S), a.sqrTo(S, s), l -= 2;
2411
- l > 0 ? a.sqrTo(s, S) : (T = s, s = S, S = T), a.mulTo(S, c[E], s);
2411
+ l > 0 ? a.sqrTo(s, S) : (C = s, s = S, S = C), a.mulTo(S, c[E], s);
2412
2412
  }
2413
2413
  for (; b >= 0 && (n[b] & 1 << e) == 0; )
2414
- a.sqrTo(s, S), T = s, s = S, S = T, --e < 0 && (e = this.DB - 1, --b);
2414
+ a.sqrTo(s, S), C = s, s = S, S = C, --e < 0 && (e = this.DB - 1, --b);
2415
2415
  }
2416
2416
  return a.revert(s);
2417
2417
  }, r.prototype.modInverse = function(n) {
2418
2418
  var t = n.isEven();
2419
2419
  if (this.isEven() && t || n.signum() == 0)
2420
2420
  return r.ZERO;
2421
- for (var e = n.clone(), i = this.clone(), s = xt(1), a = xt(0), c = xt(0), l = xt(1); e.signum() != 0; ) {
2421
+ for (var e = n.clone(), i = this.clone(), s = kt(1), a = kt(0), c = kt(0), l = kt(1); e.signum() != 0; ) {
2422
2422
  for (; e.isEven(); )
2423
2423
  e.rShiftTo(1, e), t ? ((!s.isEven() || !a.isEven()) && (s.addTo(this, s), a.subTo(n, a)), s.rShiftTo(1, s)) : a.isEven() || a.subTo(n, a), a.rShiftTo(1, a);
2424
2424
  for (; i.isEven(); )
@@ -2573,13 +2573,13 @@ var Ze = (
2573
2573
  h > 0 ? (i.lShiftTo(h, a), s.lShiftTo(h, e)) : (i.copyTo(a), s.copyTo(e));
2574
2574
  var d = a.t, f = a[d - 1];
2575
2575
  if (f != 0) {
2576
- var b = f * (1 << this.F1) + (d > 1 ? a[d - 2] >> this.F2 : 0), E = this.FV / b, v = (1 << this.F1) / b, S = 1 << this.F2, T = e.t, q = T - d, U = t ?? O();
2576
+ var b = f * (1 << this.F1) + (d > 1 ? a[d - 2] >> this.F2 : 0), E = this.FV / b, v = (1 << this.F1) / b, S = 1 << this.F2, C = e.t, q = C - d, U = t ?? O();
2577
2577
  for (a.dlShiftTo(q, U), e.compareTo(U) >= 0 && (e[e.t++] = 1, e.subTo(U, e)), r.ONE.dlShiftTo(d, U), U.subTo(a, a); a.t < d; )
2578
2578
  a[a.t++] = 0;
2579
2579
  for (; --q >= 0; ) {
2580
- var j = e[--T] == f ? this.DM : Math.floor(e[T] * E + (e[T - 1] + S) * v);
2581
- if ((e[T] += a.am(0, j, e, q, 0, d)) < j)
2582
- for (a.dlShiftTo(q, U), e.subTo(U, e); e[T] < --j; )
2580
+ var j = e[--C] == f ? this.DM : Math.floor(e[C] * E + (e[C - 1] + S) * v);
2581
+ if ((e[C] += a.am(0, j, e, q, 0, d)) < j)
2582
+ for (a.dlShiftTo(q, U), e.subTo(U, e); e[C] < --j; )
2583
2583
  e.subTo(U, e);
2584
2584
  }
2585
2585
  t != null && (e.drShiftTo(d, t), c != l && r.ZERO.subTo(t, t)), e.t = d, e.clamp(), h > 0 && e.rShiftTo(h, e), c < 0 && r.ZERO.subTo(e, e);
@@ -2612,7 +2612,7 @@ var Ze = (
2612
2612
  }, r.prototype.toRadix = function(n) {
2613
2613
  if (n == null && (n = 10), this.signum() == 0 || n < 2 || n > 36)
2614
2614
  return "0";
2615
- var t = this.chunkSize(n), e = Math.pow(n, t), i = xt(e), s = O(), a = O(), c = "";
2615
+ var t = this.chunkSize(n), e = Math.pow(n, t), i = kt(e), s = O(), a = O(), c = "";
2616
2616
  for (this.divRemTo(i, s, a); s.signum() > 0; )
2617
2617
  c = (e + a.intValue()).toString(n).substr(1) + c, s.divRemTo(i, s, a);
2618
2618
  return a.intValue().toString(n) + c;
@@ -2897,7 +2897,7 @@ function hi(r, n) {
2897
2897
  var t = qe[r.charCodeAt(n)];
2898
2898
  return t ?? -1;
2899
2899
  }
2900
- function xt(r) {
2900
+ function kt(r) {
2901
2901
  var n = O();
2902
2902
  return n.fromInt(r), n;
2903
2903
  }
@@ -2905,8 +2905,8 @@ function fe(r) {
2905
2905
  var n = 1, t;
2906
2906
  return (t = r >>> 16) != 0 && (r = t, n += 16), (t = r >> 8) != 0 && (r = t, n += 8), (t = r >> 4) != 0 && (r = t, n += 4), (t = r >> 2) != 0 && (r = t, n += 2), (t = r >> 1) != 0 && (r = t, n += 1), n;
2907
2907
  }
2908
- D.ZERO = xt(0);
2909
- D.ONE = xt(1);
2908
+ D.ZERO = kt(0);
2909
+ D.ONE = kt(1);
2910
2910
  var Xa = (
2911
2911
  /** @class */
2912
2912
  function() {
@@ -2929,14 +2929,14 @@ var Xa = (
2929
2929
  function Ja() {
2930
2930
  return new Xa();
2931
2931
  }
2932
- var Ki = 256, ge, kt = null, bt;
2933
- if (kt == null) {
2934
- kt = [], bt = 0;
2932
+ var Ki = 256, ge, xt = null, bt;
2933
+ if (xt == null) {
2934
+ xt = [], bt = 0;
2935
2935
  var ye = void 0;
2936
2936
  if (typeof window < "u" && window.crypto && window.crypto.getRandomValues) {
2937
2937
  var Ye = new Uint32Array(256);
2938
2938
  for (window.crypto.getRandomValues(Ye), ye = 0; ye < Ye.length; ++ye)
2939
- kt[bt++] = Ye[ye] & 255;
2939
+ xt[bt++] = Ye[ye] & 255;
2940
2940
  }
2941
2941
  var be = 0, me = function(r) {
2942
2942
  if (be = be || 0, be >= 256 || bt >= Ki) {
@@ -2945,7 +2945,7 @@ if (kt == null) {
2945
2945
  }
2946
2946
  try {
2947
2947
  var n = r.x + r.y;
2948
- kt[bt++] = n & 255, be += 1;
2948
+ xt[bt++] = n & 255, be += 1;
2949
2949
  } catch {
2950
2950
  }
2951
2951
  };
@@ -2955,10 +2955,10 @@ function Qa() {
2955
2955
  if (ge == null) {
2956
2956
  for (ge = Ja(); bt < Ki; ) {
2957
2957
  var r = Math.floor(65536 * Math.random());
2958
- kt[bt++] = r & 255;
2958
+ xt[bt++] = r & 255;
2959
2959
  }
2960
- for (ge.init(kt), bt = 0; bt < kt.length; ++bt)
2961
- kt[bt] = 0;
2960
+ for (ge.init(xt), bt = 0; bt < xt.length; ++bt)
2961
+ xt[bt] = 0;
2962
2962
  bt = 0;
2963
2963
  }
2964
2964
  return ge.next();
@@ -3109,7 +3109,7 @@ function eo(r, n) {
3109
3109
  }
3110
3110
  return i;
3111
3111
  }
3112
- var Ce = {
3112
+ var Te = {
3113
3113
  md2: "3020300c06082a864886f70d020205000410",
3114
3114
  md5: "3020300c06082a864886f70d020505000410",
3115
3115
  sha1: "3021300906052b0e03021a05000414",
@@ -3120,12 +3120,12 @@ var Ce = {
3120
3120
  ripemd160: "3021300906052b2403020105000414"
3121
3121
  };
3122
3122
  function no(r) {
3123
- return Ce[r] || "";
3123
+ return Te[r] || "";
3124
3124
  }
3125
3125
  function io(r) {
3126
- for (var n in Ce)
3127
- if (Ce.hasOwnProperty(n)) {
3128
- var t = Ce[n], e = t.length;
3126
+ for (var n in Te)
3127
+ if (Te.hasOwnProperty(n)) {
3128
+ var t = Te[n], e = t.length;
3129
3129
  if (r.substr(0, e) == t)
3130
3130
  return r.substr(e);
3131
3131
  }
@@ -3207,56 +3207,56 @@ m.asn1.ASN1Util = new function() {
3207
3207
  }, this.getPEMStringFromHex = function(r, n) {
3208
3208
  return hextopem(r, n);
3209
3209
  }, this.newObject = function(r) {
3210
- var n = m, t = n.asn1, e = t.DERBoolean, i = t.DERInteger, s = t.DERBitString, a = t.DEROctetString, c = t.DERNull, l = t.DERObjectIdentifier, h = t.DEREnumerated, d = t.DERUTF8String, f = t.DERNumericString, b = t.DERPrintableString, E = t.DERTeletexString, v = t.DERIA5String, S = t.DERUTCTime, T = t.DERGeneralizedTime, q = t.DERSequence, U = t.DERSet, j = t.DERTaggedObject, it = t.ASN1Util.newObject, X = Object.keys(r);
3210
+ var n = m, t = n.asn1, e = t.DERBoolean, i = t.DERInteger, s = t.DERBitString, a = t.DEROctetString, c = t.DERNull, l = t.DERObjectIdentifier, h = t.DEREnumerated, d = t.DERUTF8String, f = t.DERNumericString, b = t.DERPrintableString, E = t.DERTeletexString, v = t.DERIA5String, S = t.DERUTCTime, C = t.DERGeneralizedTime, q = t.DERSequence, U = t.DERSet, j = t.DERTaggedObject, it = t.ASN1Util.newObject, X = Object.keys(r);
3211
3211
  if (X.length != 1)
3212
3212
  throw "key of param shall be only one.";
3213
- var k = X[0];
3214
- if (":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" + k + ":") == -1)
3215
- throw "undefined key: " + k;
3216
- if (k == "bool")
3217
- return new e(r[k]);
3218
- if (k == "int")
3219
- return new i(r[k]);
3220
- if (k == "bitstr")
3221
- return new s(r[k]);
3222
- if (k == "octstr")
3223
- return new a(r[k]);
3224
- if (k == "null")
3225
- return new c(r[k]);
3226
- if (k == "oid")
3227
- return new l(r[k]);
3228
- if (k == "enum")
3229
- return new h(r[k]);
3230
- if (k == "utf8str")
3231
- return new d(r[k]);
3232
- if (k == "numstr")
3233
- return new f(r[k]);
3234
- if (k == "prnstr")
3235
- return new b(r[k]);
3236
- if (k == "telstr")
3237
- return new E(r[k]);
3238
- if (k == "ia5str")
3239
- return new v(r[k]);
3240
- if (k == "utctime")
3241
- return new S(r[k]);
3242
- if (k == "gentime")
3243
- return new T(r[k]);
3244
- if (k == "seq") {
3245
- for (var ct = r[k], wt = [], vt = 0; vt < ct.length; vt++) {
3213
+ var x = X[0];
3214
+ if (":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" + x + ":") == -1)
3215
+ throw "undefined key: " + x;
3216
+ if (x == "bool")
3217
+ return new e(r[x]);
3218
+ if (x == "int")
3219
+ return new i(r[x]);
3220
+ if (x == "bitstr")
3221
+ return new s(r[x]);
3222
+ if (x == "octstr")
3223
+ return new a(r[x]);
3224
+ if (x == "null")
3225
+ return new c(r[x]);
3226
+ if (x == "oid")
3227
+ return new l(r[x]);
3228
+ if (x == "enum")
3229
+ return new h(r[x]);
3230
+ if (x == "utf8str")
3231
+ return new d(r[x]);
3232
+ if (x == "numstr")
3233
+ return new f(r[x]);
3234
+ if (x == "prnstr")
3235
+ return new b(r[x]);
3236
+ if (x == "telstr")
3237
+ return new E(r[x]);
3238
+ if (x == "ia5str")
3239
+ return new v(r[x]);
3240
+ if (x == "utctime")
3241
+ return new S(r[x]);
3242
+ if (x == "gentime")
3243
+ return new C(r[x]);
3244
+ if (x == "seq") {
3245
+ for (var ct = r[x], wt = [], vt = 0; vt < ct.length; vt++) {
3246
3246
  var Ge = it(ct[vt]);
3247
3247
  wt.push(Ge);
3248
3248
  }
3249
3249
  return new q({ array: wt });
3250
3250
  }
3251
- if (k == "set") {
3252
- for (var ct = r[k], wt = [], vt = 0; vt < ct.length; vt++) {
3251
+ if (x == "set") {
3252
+ for (var ct = r[x], wt = [], vt = 0; vt < ct.length; vt++) {
3253
3253
  var Ge = it(ct[vt]);
3254
3254
  wt.push(Ge);
3255
3255
  }
3256
3256
  return new U({ array: wt });
3257
3257
  }
3258
- if (k == "tag") {
3259
- var _t = r[k];
3258
+ if (x == "tag") {
3259
+ var _t = r[x];
3260
3260
  if (Object.prototype.toString.call(_t) === "[object Array]" && _t.length == 3) {
3261
3261
  var wa = it(_t[2]);
3262
3262
  return new j({
@@ -3751,7 +3751,7 @@ function lo(r) {
3751
3751
  let n;
3752
3752
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? n = ArrayBuffer.isView(r) : n = r && r.buffer && $i(r.buffer), n;
3753
3753
  }
3754
- const ho = je("string"), ut = je("function"), zi = je("number"), Ke = (r) => r !== null && typeof r == "object", uo = (r) => r === !0 || r === !1, Te = (r) => {
3754
+ const ho = je("string"), ut = je("function"), zi = je("number"), Ke = (r) => r !== null && typeof r == "object", uo = (r) => r === !0 || r === !1, Ce = (r) => {
3755
3755
  if (He(r) !== "object")
3756
3756
  return !1;
3757
3757
  const n = jn(r);
@@ -3760,7 +3760,7 @@ const ho = je("string"), ut = je("function"), zi = je("number"), Ke = (r) => r !
3760
3760
  let n;
3761
3761
  return r && (typeof FormData == "function" && r instanceof FormData || ut(r.append) && ((n = He(r)) === "formdata" || // detect form-data instance
3762
3762
  n === "object" && ut(r.toString) && r.toString() === "[object FormData]"));
3763
- }, mo = mt("URLSearchParams"), [wo, vo, Eo, Po] = ["ReadableStream", "Request", "Response", "Headers"].map(mt), Co = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3763
+ }, mo = mt("URLSearchParams"), [wo, vo, Eo, Po] = ["ReadableStream", "Request", "Response", "Headers"].map(mt), To = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3764
3764
  function ue(r, n, { allOwnKeys: t = !1 } = {}) {
3765
3765
  if (r === null || typeof r > "u")
3766
3766
  return;
@@ -3788,19 +3788,19 @@ const Mt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
3788
3788
  function _n() {
3789
3789
  const { caseless: r } = Xi(this) && this || {}, n = {}, t = (e, i) => {
3790
3790
  const s = r && Gi(n, i) || i;
3791
- Te(n[s]) && Te(e) ? n[s] = _n(n[s], e) : Te(e) ? n[s] = _n({}, e) : Jt(e) ? n[s] = e.slice() : n[s] = e;
3791
+ Ce(n[s]) && Ce(e) ? n[s] = _n(n[s], e) : Ce(e) ? n[s] = _n({}, e) : Jt(e) ? n[s] = e.slice() : n[s] = e;
3792
3792
  };
3793
3793
  for (let e = 0, i = arguments.length; e < i; e++)
3794
3794
  arguments[e] && ue(arguments[e], t);
3795
3795
  return n;
3796
3796
  }
3797
- const To = (r, n, t, { allOwnKeys: e } = {}) => (ue(n, (i, s) => {
3797
+ const Co = (r, n, t, { allOwnKeys: e } = {}) => (ue(n, (i, s) => {
3798
3798
  t && ut(i) ? r[s] = Wi(i, t) : r[s] = i;
3799
- }, { allOwnKeys: e }), r), So = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), xo = (r, n, t, e) => {
3799
+ }, { allOwnKeys: e }), r), So = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), ko = (r, n, t, e) => {
3800
3800
  r.prototype = Object.create(n.prototype, e), r.prototype.constructor = r, Object.defineProperty(r, "super", {
3801
3801
  value: n.prototype
3802
3802
  }), t && Object.assign(r.prototype, t);
3803
- }, ko = (r, n, t, e) => {
3803
+ }, xo = (r, n, t, e) => {
3804
3804
  let i, s, a;
3805
3805
  const c = {};
3806
3806
  if (n = n || {}, r == null) return n;
@@ -3908,7 +3908,7 @@ const Ho = (r) => {
3908
3908
  isNumber: zi,
3909
3909
  isBoolean: uo,
3910
3910
  isObject: Ke,
3911
- isPlainObject: Te,
3911
+ isPlainObject: Ce,
3912
3912
  isReadableStream: wo,
3913
3913
  isRequest: vo,
3914
3914
  isResponse: Eo,
@@ -3925,11 +3925,11 @@ const Ho = (r) => {
3925
3925
  isFileList: go,
3926
3926
  forEach: ue,
3927
3927
  merge: _n,
3928
- extend: To,
3929
- trim: Co,
3928
+ extend: Co,
3929
+ trim: To,
3930
3930
  stripBOM: So,
3931
- inherits: xo,
3932
- toFlatObject: ko,
3931
+ inherits: ko,
3932
+ toFlatObject: xo,
3933
3933
  kindOf: He,
3934
3934
  kindOfTest: mt,
3935
3935
  endsWith: Ao,
@@ -4031,8 +4031,8 @@ function We(r, n, t) {
4031
4031
  metaTokens: !0,
4032
4032
  dots: !1,
4033
4033
  indexes: !1
4034
- }, !1, function(S, T) {
4035
- return !y.isUndefined(T[S]);
4034
+ }, !1, function(S, C) {
4035
+ return !y.isUndefined(C[S]);
4036
4036
  });
4037
4037
  const e = t.metaTokens, i = t.visitor || d, s = t.dots, a = t.indexes, l = (t.Blob || typeof Blob < "u" && Blob) && y.isSpecCompliantForm(n);
4038
4038
  if (!y.isFunction(i))
@@ -4045,9 +4045,9 @@ function We(r, n, t) {
4045
4045
  throw new A("Blob is not supported. Use a Buffer instead.");
4046
4046
  return y.isArrayBuffer(v) || y.isTypedArray(v) ? l && typeof Blob == "function" ? new Blob([v]) : Buffer.from(v) : v;
4047
4047
  }
4048
- function d(v, S, T) {
4048
+ function d(v, S, C) {
4049
4049
  let q = v;
4050
- if (v && !T && typeof v == "object") {
4050
+ if (v && !C && typeof v == "object") {
4051
4051
  if (y.endsWith(S, "{}"))
4052
4052
  S = e ? S : S.slice(0, -2), v = JSON.stringify(v);
4053
4053
  else if (y.isArray(v) && zo(v) || (y.isFileList(v) || y.endsWith(S, "[]")) && (q = y.toArray(v)))
@@ -4059,7 +4059,7 @@ function We(r, n, t) {
4059
4059
  );
4060
4060
  }), !1;
4061
4061
  }
4062
- return fn(v) ? !0 : (n.append(di(T, S, s), h(v)), !1);
4062
+ return fn(v) ? !0 : (n.append(di(C, S, s), h(v)), !1);
4063
4063
  }
4064
4064
  const f = [], b = Object.assign(Go, {
4065
4065
  defaultVisitor: d,
@@ -4735,53 +4735,53 @@ const cr = (r) => {
4735
4735
  function S() {
4736
4736
  E && E(), v && v(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
4737
4737
  }
4738
- let T = new XMLHttpRequest();
4739
- T.open(i.method.toUpperCase(), i.url, !0), T.timeout = i.timeout;
4738
+ let C = new XMLHttpRequest();
4739
+ C.open(i.method.toUpperCase(), i.url, !0), C.timeout = i.timeout;
4740
4740
  function q() {
4741
- if (!T)
4741
+ if (!C)
4742
4742
  return;
4743
4743
  const j = ot.from(
4744
- "getAllResponseHeaders" in T && T.getAllResponseHeaders()
4744
+ "getAllResponseHeaders" in C && C.getAllResponseHeaders()
4745
4745
  ), X = {
4746
- data: !c || c === "text" || c === "json" ? T.responseText : T.response,
4747
- status: T.status,
4748
- statusText: T.statusText,
4746
+ data: !c || c === "text" || c === "json" ? C.responseText : C.response,
4747
+ status: C.status,
4748
+ statusText: C.statusText,
4749
4749
  headers: j,
4750
4750
  config: r,
4751
- request: T
4751
+ request: C
4752
4752
  };
4753
4753
  ar(function(ct) {
4754
4754
  t(ct), S();
4755
4755
  }, function(ct) {
4756
4756
  e(ct), S();
4757
- }, X), T = null;
4757
+ }, X), C = null;
4758
4758
  }
4759
- "onloadend" in T ? T.onloadend = q : T.onreadystatechange = function() {
4760
- !T || T.readyState !== 4 || T.status === 0 && !(T.responseURL && T.responseURL.indexOf("file:") === 0) || setTimeout(q);
4761
- }, T.onabort = function() {
4762
- T && (e(new A("Request aborted", A.ECONNABORTED, r, T)), T = null);
4763
- }, T.onerror = function() {
4764
- e(new A("Network Error", A.ERR_NETWORK, r, T)), T = null;
4765
- }, T.ontimeout = function() {
4759
+ "onloadend" in C ? C.onloadend = q : C.onreadystatechange = function() {
4760
+ !C || C.readyState !== 4 || C.status === 0 && !(C.responseURL && C.responseURL.indexOf("file:") === 0) || setTimeout(q);
4761
+ }, C.onabort = function() {
4762
+ C && (e(new A("Request aborted", A.ECONNABORTED, r, C)), C = null);
4763
+ }, C.onerror = function() {
4764
+ e(new A("Network Error", A.ERR_NETWORK, r, C)), C = null;
4765
+ }, C.ontimeout = function() {
4766
4766
  let it = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
4767
4767
  const X = i.transitional || ir;
4768
4768
  i.timeoutErrorMessage && (it = i.timeoutErrorMessage), e(new A(
4769
4769
  it,
4770
4770
  X.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
4771
4771
  r,
4772
- T
4773
- )), T = null;
4774
- }, s === void 0 && a.setContentType(null), "setRequestHeader" in T && y.forEach(a.toJSON(), function(it, X) {
4775
- T.setRequestHeader(X, it);
4776
- }), y.isUndefined(i.withCredentials) || (T.withCredentials = !!i.withCredentials), c && c !== "json" && (T.responseType = i.responseType), h && ([b, v] = Ue(h, !0), T.addEventListener("progress", b)), l && T.upload && ([f, E] = Ue(l), T.upload.addEventListener("progress", f), T.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (d = (j) => {
4777
- T && (e(!j || j.type ? new Qt(null, r, T) : j), T.abort(), T = null);
4772
+ C
4773
+ )), C = null;
4774
+ }, s === void 0 && a.setContentType(null), "setRequestHeader" in C && y.forEach(a.toJSON(), function(it, X) {
4775
+ C.setRequestHeader(X, it);
4776
+ }), y.isUndefined(i.withCredentials) || (C.withCredentials = !!i.withCredentials), c && c !== "json" && (C.responseType = i.responseType), h && ([b, v] = Ue(h, !0), C.addEventListener("progress", b)), l && C.upload && ([f, E] = Ue(l), C.upload.addEventListener("progress", f), C.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (d = (j) => {
4777
+ C && (e(!j || j.type ? new Qt(null, r, C) : j), C.abort(), C = null);
4778
4778
  }, i.cancelToken && i.cancelToken.subscribe(d), i.signal && (i.signal.aborted ? d() : i.signal.addEventListener("abort", d)));
4779
4779
  const U = _c(i.url);
4780
4780
  if (U && tt.protocols.indexOf(U) === -1) {
4781
4781
  e(new A("Unsupported protocol " + U + ":", A.ERR_BAD_REQUEST, r));
4782
4782
  return;
4783
4783
  }
4784
- T.send(s || null);
4784
+ C.send(s || null);
4785
4785
  });
4786
4786
  }, Pc = (r, n) => {
4787
4787
  const { length: t } = r = r ? r.filter(Boolean) : [];
@@ -4806,7 +4806,7 @@ const cr = (r) => {
4806
4806
  const { signal: l } = e;
4807
4807
  return l.unsubscribe = () => y.asap(c), l;
4808
4808
  }
4809
- }, Cc = function* (r, n) {
4809
+ }, Tc = function* (r, n) {
4810
4810
  let t = r.byteLength;
4811
4811
  if (t < n) {
4812
4812
  yield r;
@@ -4815,9 +4815,9 @@ const cr = (r) => {
4815
4815
  let e = 0, i;
4816
4816
  for (; e < t; )
4817
4817
  i = e + n, yield r.slice(e, i), e = i;
4818
- }, Tc = async function* (r, n) {
4818
+ }, Cc = async function* (r, n) {
4819
4819
  for await (const t of Sc(r))
4820
- yield* Cc(t, n);
4820
+ yield* Tc(t, n);
4821
4821
  }, Sc = async function* (r) {
4822
4822
  if (r[Symbol.asyncIterator]) {
4823
4823
  yield* r;
@@ -4835,7 +4835,7 @@ const cr = (r) => {
4835
4835
  await n.cancel();
4836
4836
  }
4837
4837
  }, wi = (r, n, t, e) => {
4838
- const i = Tc(r, n);
4838
+ const i = Cc(r, n);
4839
4839
  let s = 0, a, c = (l) => {
4840
4840
  a || (a = !0, e && e(l));
4841
4841
  };
@@ -4863,13 +4863,13 @@ const cr = (r) => {
4863
4863
  }, {
4864
4864
  highWaterMark: 2
4865
4865
  });
4866
- }, $e = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", lr = $e && typeof ReadableStream == "function", xc = $e && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((r) => (n) => r.encode(n))(new TextEncoder()) : async (r) => new Uint8Array(await new Response(r).arrayBuffer())), hr = (r, ...n) => {
4866
+ }, $e = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", lr = $e && typeof ReadableStream == "function", kc = $e && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((r) => (n) => r.encode(n))(new TextEncoder()) : async (r) => new Uint8Array(await new Response(r).arrayBuffer())), hr = (r, ...n) => {
4867
4867
  try {
4868
4868
  return !!r(...n);
4869
4869
  } catch {
4870
4870
  return !1;
4871
4871
  }
4872
- }, kc = lr && hr(() => {
4872
+ }, xc = lr && hr(() => {
4873
4873
  let r = !1;
4874
4874
  const n = new Request(tt.origin, {
4875
4875
  body: new ReadableStream(),
@@ -4902,7 +4902,7 @@ const Ac = async (r) => {
4902
4902
  if (y.isArrayBufferView(r) || y.isArrayBuffer(r))
4903
4903
  return r.byteLength;
4904
4904
  if (y.isURLSearchParams(r) && (r = r + ""), y.isString(r))
4905
- return (await xc(r)).byteLength;
4905
+ return (await kc(r)).byteLength;
4906
4906
  }, Dc = async (r, n) => {
4907
4907
  const t = y.toFiniteNumber(r.getContentLength());
4908
4908
  return t ?? Ac(n);
@@ -4926,17 +4926,17 @@ const Ac = async (r) => {
4926
4926
  const S = E && E.unsubscribe && (() => {
4927
4927
  E.unsubscribe();
4928
4928
  });
4929
- let T;
4929
+ let C;
4930
4930
  try {
4931
- if (l && kc && t !== "get" && t !== "head" && (T = await Dc(d, e)) !== 0) {
4931
+ if (l && xc && t !== "get" && t !== "head" && (C = await Dc(d, e)) !== 0) {
4932
4932
  let X = new Request(n, {
4933
4933
  method: "POST",
4934
4934
  body: e,
4935
4935
  duplex: "half"
4936
- }), k;
4937
- if (y.isFormData(e) && (k = X.headers.get("content-type")) && d.setContentType(k), X.body) {
4936
+ }), x;
4937
+ if (y.isFormData(e) && (x = X.headers.get("content-type")) && d.setContentType(x), X.body) {
4938
4938
  const [ct, wt] = yi(
4939
- T,
4939
+ C,
4940
4940
  Ue(bi(l))
4941
4941
  );
4942
4942
  e = wi(X.body, vi, ct, wt);
@@ -4960,8 +4960,8 @@ const Ac = async (r) => {
4960
4960
  ["status", "statusText", "headers"].forEach((vt) => {
4961
4961
  X[vt] = U[vt];
4962
4962
  });
4963
- const k = y.toFiniteNumber(U.headers.get("content-length")), [ct, wt] = c && yi(
4964
- k,
4963
+ const x = y.toFiniteNumber(U.headers.get("content-length")), [ct, wt] = c && yi(
4964
+ x,
4965
4965
  Ue(bi(c), !0)
4966
4966
  ) || [];
4967
4967
  U = new Response(
@@ -4973,8 +4973,8 @@ const Ac = async (r) => {
4973
4973
  }
4974
4974
  h = h || "text";
4975
4975
  let it = await Le[y.findKey(Le, h) || "text"](U, r);
4976
- return !j && S && S(), await new Promise((X, k) => {
4977
- ar(X, k, {
4976
+ return !j && S && S(), await new Promise((X, x) => {
4977
+ ar(X, x, {
4978
4978
  data: it,
4979
4979
  headers: ot.from(U.headers),
4980
4980
  status: U.status,
@@ -5064,7 +5064,7 @@ const pr = "1.8.4", ze = {};
5064
5064
  return typeof e === r || "a" + (n < 1 ? "n " : " ") + r;
5065
5065
  };
5066
5066
  });
5067
- const Ci = {};
5067
+ const Ti = {};
5068
5068
  ze.transitional = function(n, t, e) {
5069
5069
  function i(s, a) {
5070
5070
  return "[Axios v" + pr + "] Transitional option '" + s + "'" + a + (e ? ". " + e : "");
@@ -5075,7 +5075,7 @@ ze.transitional = function(n, t, e) {
5075
5075
  i(a, " has been removed" + (t ? " in " + t : "")),
5076
5076
  A.ERR_DEPRECATED
5077
5077
  );
5078
- return t && !Ci[a] && (Ci[a] = !0, console.warn(
5078
+ return t && !Ti[a] && (Ti[a] = !0, console.warn(
5079
5079
  i(
5080
5080
  a,
5081
5081
  " has been deprecated since v" + t + " and will be removed in the near future"
@@ -5103,10 +5103,10 @@ function Oc(r, n, t) {
5103
5103
  throw new A("Unknown option " + s, A.ERR_BAD_OPTION);
5104
5104
  }
5105
5105
  }
5106
- const xe = {
5106
+ const ke = {
5107
5107
  assertOptions: Oc,
5108
5108
  validators: ze
5109
- }, Et = xe.validators;
5109
+ }, Et = ke.validators;
5110
5110
  let Ut = class {
5111
5111
  constructor(n) {
5112
5112
  this.defaults = n, this.interceptors = {
@@ -5142,16 +5142,16 @@ let Ut = class {
5142
5142
  _request(n, t) {
5143
5143
  typeof n == "string" ? (t = t || {}, t.url = n) : t = n || {}, t = Lt(this.defaults, t);
5144
5144
  const { transitional: e, paramsSerializer: i, headers: s } = t;
5145
- e !== void 0 && xe.assertOptions(e, {
5145
+ e !== void 0 && ke.assertOptions(e, {
5146
5146
  silentJSONParsing: Et.transitional(Et.boolean),
5147
5147
  forcedJSONParsing: Et.transitional(Et.boolean),
5148
5148
  clarifyTimeoutError: Et.transitional(Et.boolean)
5149
5149
  }, !1), i != null && (y.isFunction(i) ? t.paramsSerializer = {
5150
5150
  serialize: i
5151
- } : xe.assertOptions(i, {
5151
+ } : ke.assertOptions(i, {
5152
5152
  encode: Et.function,
5153
5153
  serialize: Et.function
5154
- }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), xe.assertOptions(t, {
5154
+ }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), ke.assertOptions(t, {
5155
5155
  baseUrl: Et.spelling("baseURL"),
5156
5156
  withXsrfToken: Et.spelling("withXSRFToken")
5157
5157
  }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
@@ -5187,8 +5187,8 @@ let Ut = class {
5187
5187
  const v = c[f++], S = c[f++];
5188
5188
  try {
5189
5189
  E = v(E);
5190
- } catch (T) {
5191
- S.call(this, T);
5190
+ } catch (C) {
5191
+ S.call(this, C);
5192
5192
  break;
5193
5193
  }
5194
5194
  }
@@ -5424,7 +5424,7 @@ const {
5424
5424
  getAdapter: nl,
5425
5425
  mergeConfig: il
5426
5426
  } = H;
5427
- var _, fr, gr, yr, wn, br, mr, wr, vr, Er, Pr, Cr, Tr, Sr, xr, ee, ne, kr, ie, Ar, Bt, Dr, $, Rr, Ir, vn, Or, Nr, Br, En, Pn, re, Cn, Mr, ft, gt, ke, Tn, se, Sn, xn, Fr, kn, An, Ur, Lr, jt, Dn, Vr, qr, Hr, Ae, jr, Kr, Rn, Wr, $r, zr, Gr, Xr, Jr, Qr, Zr, Yr, In, On, ts, es, ns;
5427
+ var _, fr, gr, yr, wn, br, mr, wr, vr, Er, Pr, Tr, Cr, Sr, kr, ee, ne, xr, ie, Ar, Bt, Dr, $, Rr, Ir, vn, Or, Nr, Br, En, Pn, re, Tn, Mr, ft, gt, xe, Cn, se, Sn, kn, Fr, xn, An, Ur, Lr, jt, Dn, Vr, qr, Hr, Ae, jr, Kr, Rn, Wr, $r, zr, Gr, Xr, Jr, Qr, Zr, Yr, In, On, ts, es, ns;
5428
5428
  class rl extends Dt {
5429
5429
  constructor({
5430
5430
  filters: t = null,
@@ -5604,9 +5604,9 @@ class rl extends Dt {
5604
5604
  statusSecondGenerateWaiting: null
5605
5605
  }
5606
5606
  });
5607
- if (this.__internal__.device.type = "pinpad", !Ca())
5607
+ if (this.__internal__.device.type = "pinpad", !Ta())
5608
5608
  throw new Error("Crypto not supported in this browser");
5609
- if (x.getCustom(this.typeDevice, i))
5609
+ if (k.getCustom(this.typeDevice, i))
5610
5610
  throw new Error(`Device ${this.typeDevice} ${i} already exists`);
5611
5611
  this.__internal__.time.response_connection = 3e3, this.__internal__.time.response_general = 5e3, this.__internal__.serial.delay_first_connection = 1e3, this.environment = l, a && (this.username = a), c && (this.password = c), o(this, _, gr).call(this), o(this, _, fr).call(this);
5612
5612
  }
@@ -5650,16 +5650,16 @@ class rl extends Dt {
5650
5650
  e.name = "cancel pinpad", e.description = "response of cancel", e.no_code = 107;
5651
5651
  break;
5652
5652
  case "print":
5653
- o(this, _, Tr).call(this, a, s), e.name = "print voucher", e.description = "response of print", e.no_code = 108;
5653
+ o(this, _, Cr).call(this, a, s), e.name = "print voucher", e.description = "response of print", e.no_code = 108;
5654
5654
  break;
5655
5655
  case "cancel-read-card":
5656
- o(this, _, Cr).call(this, a, s), e.name = "cancel read card", e.description = "response of cancel read card", e.no_code = 109;
5656
+ o(this, _, Tr).call(this, a, s), e.name = "cancel read card", e.description = "response of cancel read card", e.no_code = 109;
5657
5657
  break;
5658
5658
  case "code93":
5659
5659
  o(this, _, Sr).call(this, a, s), e.name = "code 93", e.description = "response of code 93", e.no_code = 110;
5660
5660
  break;
5661
5661
  case "finish-emv-end":
5662
- o(this, _, xr).call(this, a, s), e.name = "Finish EMV End", e.description = "response of finish EMV End", e.no_code = 111;
5662
+ o(this, _, kr).call(this, a, s), e.name = "Finish EMV End", e.description = "response of finish EMV End", e.no_code = 111;
5663
5663
  break;
5664
5664
  default:
5665
5665
  e.name = "unknown", e.description = "Unknown command", e.no_code = 400;
@@ -5708,7 +5708,7 @@ class rl extends Dt {
5708
5708
  return parseFloat(this.__pinPad__.operation.amount) || 0;
5709
5709
  }
5710
5710
  set reference(t) {
5711
- if (!o(this, _, Cn).call(this, t.trim())) throw new Error("Invalid reference");
5711
+ if (!o(this, _, Tn).call(this, t.trim())) throw new Error("Invalid reference");
5712
5712
  this.__pinPad__.operation.reference = t.trim().toString().replaceAll(" ", "").toUpperCase();
5713
5713
  }
5714
5714
  get reference() {
@@ -5803,7 +5803,7 @@ class rl extends Dt {
5803
5803
  * @return {Promise<any>}
5804
5804
  */
5805
5805
  async consult({ reference: t = null }) {
5806
- return t || (t = this.reference), Tt(t) && (t = "--", this.reference = t), o(this, _, Mr).call(this, this.reference), this.__pinPad__.operation.consultDate = (/* @__PURE__ */ new Date()).toLocaleDateString("en-GB"), await o(this, _, se).call(this, {
5806
+ return t || (t = this.reference), Ct(t) && (t = "--", this.reference = t), o(this, _, Mr).call(this, this.reference), this.__pinPad__.operation.consultDate = (/* @__PURE__ */ new Date()).toLocaleDateString("en-GB"), await o(this, _, se).call(this, {
5807
5807
  Ambiente: this.environment,
5808
5808
  User: this.username,
5809
5809
  Pwd: this.password,
@@ -5851,7 +5851,7 @@ class rl extends Dt {
5851
5851
  return this.__pinPad__.operation.commerceVoucher = "", i && (e.voucher_comercio.includes(":") ? this.__pinPad__.operation.commerceVoucher = e.voucher_comercio : this.__pinPad__.operation.commerceVoucher = o(this, _, Bt).call(this, this.__pinPad__.config.RC4Key, e.voucher_comercio)), i = e.voucher_cliente, this.__pinPad__.operation.clientVoucher = "", i && (e.voucher_cliente.includes(":") ? this.__pinPad__.operation.clientVoucher = e.voucher_cliente : this.__pinPad__.operation.clientVoucher = o(this, _, Bt).call(this, this.__pinPad__.config.RC4Key, e.voucher_cliente)), e;
5852
5852
  }
5853
5853
  async cancelPurchase({ amount: t = 0, authorization: e = "", folio: i = "" } = {}) {
5854
- if (!o(this, _, Tn).call(this, t)) throw new Error("Invalid amount");
5854
+ if (!o(this, _, Cn).call(this, t)) throw new Error("Invalid amount");
5855
5855
  if (!o(this, _, Xr).call(this, e)) throw new Error("Invalid authorization");
5856
5856
  if (!o(this, _, Sn).call(this, i)) throw new Error("Invalid folio");
5857
5857
  t = o(this, _, Rn).call(this, t, 2);
@@ -5900,7 +5900,7 @@ class rl extends Dt {
5900
5900
  async makeSale({ amount: t = 0, reference: e = null } = {}) {
5901
5901
  if (t = parseFloat(t.toString()), isNaN(t) || t <= 0)
5902
5902
  throw new Error("Amount is required and must be greater than 0");
5903
- if (this.amount = t, !e || Tt(e) || !o(this, _, Cn).call(this, e))
5903
+ if (this.amount = t, !e || Ct(e) || !o(this, _, Tn).call(this, e))
5904
5904
  throw new Error("Reference is required and must be alphanumeric");
5905
5905
  if (this.reference = e, /^[A-Z-a-z\s]+$/g.test(this.__pinPad__.config.currency) === !1)
5906
5906
  throw new Error("Invalid currency");
@@ -5919,7 +5919,7 @@ class rl extends Dt {
5919
5919
  }
5920
5920
  }
5921
5921
  _ = new WeakSet(), fr = function() {
5922
- x.add(this);
5922
+ k.add(this);
5923
5923
  }, gr = function() {
5924
5924
  const t = [
5925
5925
  "pp:processing-card",
@@ -6048,9 +6048,9 @@ wr = function(t, e) {
6048
6048
  month: h,
6049
6049
  year: l
6050
6050
  });
6051
- }, Cr = function(t, e) {
6052
- e.length > 10 && e.includes("E93A10") && (this.__pinPad__.waiting.statusReadCardWaiting === "pending" && (this.__pinPad__.waiting.statusReadCardWaiting = "rejected"), this.dispatch("pp:error", { message: "Operation cancelled by user." }));
6053
6051
  }, Tr = function(t, e) {
6052
+ e.length > 10 && e.includes("E93A10") && (this.__pinPad__.waiting.statusReadCardWaiting === "pending" && (this.__pinPad__.waiting.statusReadCardWaiting = "rejected"), this.dispatch("pp:error", { message: "Operation cancelled by user." }));
6053
+ }, Cr = function(t, e) {
6054
6054
  const i = this;
6055
6055
  if (this.__pinPad__.about.model.toLowerCase() === "vx520") {
6056
6056
  if (e.length > 11)
@@ -6079,7 +6079,7 @@ wr = function(t, e) {
6079
6079
  }, // eslint-disable-next-line no-unused-vars
6080
6080
  Sr = function(t, e) {
6081
6081
  }, // eslint-disable-next-line no-unused-vars
6082
- xr = function(t, e) {
6082
+ kr = function(t, e) {
6083
6083
  }, // ========================================================================================
6084
6084
  // Updated to WS v4
6085
6085
  // ========================================================================================
@@ -6094,7 +6094,7 @@ ee = function(t, e) {
6094
6094
  i += e.substring(a, a + 1);
6095
6095
  }
6096
6096
  return i;
6097
- }, kr = function(t) {
6097
+ }, xr = function(t) {
6098
6098
  const e = "0123456789abcdef", i = [], s = [];
6099
6099
  for (let a = 0; a < 256; a++)
6100
6100
  i[a] = e.charAt(a >> 4) + e.charAt(a & 15);
@@ -6140,7 +6140,7 @@ Ar = function(t, e, i = !1) {
6140
6140
  let f = s[(s[c] + s[l]) % 256];
6141
6141
  h += String.fromCharCode(d.charCodeAt(0) ^ f);
6142
6142
  }
6143
- return i ? o(this, _, kr).call(this, h).toUpperCase() : h;
6143
+ return i ? o(this, _, xr).call(this, h).toUpperCase() : h;
6144
6144
  }, Bt = function(t, e) {
6145
6145
  return o(this, _, Ar).call(this, t, this.hexToAscii(e));
6146
6146
  }, Dr = function(t) {
@@ -6176,7 +6176,7 @@ Ar = function(t, e, i = !1) {
6176
6176
  var f;
6177
6177
  throw new Error(`Error in request, verify internet connection: ${(f = d.response) == null ? void 0 : f.status} ${d.message}`);
6178
6178
  });
6179
- let h = o(this, _, xn).call(this, JSON.stringify(l.data));
6179
+ let h = o(this, _, kn).call(this, JSON.stringify(l.data));
6180
6180
  if (typeof h == "string" && (h = JSON.parse(h)), !h)
6181
6181
  throw new Error("Invalid response JSON");
6182
6182
  if (h.RESPUESTA === "error")
@@ -6238,10 +6238,10 @@ Ar = function(t, e, i = !1) {
6238
6238
  }, re = async function() {
6239
6239
  if (!await o(this, _, Pn).call(this))
6240
6240
  throw new Error("RSA public key is empty");
6241
- }, Cn = function(t) {
6241
+ }, Tn = function(t) {
6242
6242
  return /^[A-Z-a-z0-9\s]+$/g.test(t);
6243
6243
  }, Mr = function(t) {
6244
- if (Tt(t))
6244
+ if (Ct(t))
6245
6245
  return !0;
6246
6246
  const e = /^[A-Z-a-z0-9\s]+$/g.test(t) === !0;
6247
6247
  if (!e)
@@ -6254,9 +6254,9 @@ Ar = function(t, e, i = !1) {
6254
6254
  for (let i = 0; i < t.length; i++)
6255
6255
  e ^= t.charCodeAt(i);
6256
6256
  return String.fromCharCode(e);
6257
- }, ke = function(t, e = 0) {
6257
+ }, xe = function(t, e = 0) {
6258
6258
  return t = parseFloat(t.toString().replace(/[^0-9.-]/g, "")), isNaN(t) ? 0 .toFixed(e) : t.toFixed(e).replace(/,/g, "");
6259
- }, Tn = function(t) {
6259
+ }, Cn = function(t) {
6260
6260
  return t = parseFloat(t.toString()), !(isNaN(t) || t < 0);
6261
6261
  }, se = async function(t) {
6262
6262
  for (const e in t)
@@ -6267,7 +6267,7 @@ Ar = function(t, e, i = !1) {
6267
6267
  if (!t || isNaN(parseInt(t)) || t.toString().length !== 9)
6268
6268
  throw new Error("Number of operation must be number of 9 digits");
6269
6269
  return t;
6270
- }, xn = function(t) {
6270
+ }, kn = function(t) {
6271
6271
  if (typeof t != "string") throw new Error("Invalid string");
6272
6272
  return !t || /<html(?:\s+lang=["'][^"']*["'])?>/i.test(t) || (t = t.replace(/aaa/g, "á"), t = t.replace(/eee/g, "é"), t = t.replace(/iii/g, "í"), t = t.replace(/ooo/g, "ó"), t = t.replace(/uuu/g, "ú"), t = t.replace(/NNN/g, "Ñ"), t = t.replace(/nnn/g, "ñ"), t = t.replace(/á/g, "á")), t;
6273
6273
  }, Fr = async function() {
@@ -6276,7 +6276,7 @@ Ar = function(t, e, i = !1) {
6276
6276
  i = t + o(this, _, ft).call(this, i) + i + e, i = i + o(this, _, gt).call(this, i);
6277
6277
  const s = this.parseStringToBytes(i, "");
6278
6278
  await this.appendToQueue(s, "cancel");
6279
- }, kn = function() {
6279
+ }, xn = function() {
6280
6280
  const t = /* @__PURE__ */ new Date(), e = t.getDate().toString().padStart(2, "0"), i = (t.getMonth() + 1).toString().padStart(2, "0"), s = t.getFullYear().toString().substring(2);
6281
6281
  return e + i + s;
6282
6282
  }, An = function() {
@@ -6367,7 +6367,7 @@ Ar = function(t, e, i = !1) {
6367
6367
  if (this.__pinPad__.waiting.statusAboutWaiting) throw new Error("AboutPP is already running");
6368
6368
  const e = this.__pinPad__.constants.STX, i = this.__pinPad__.constants.ETX;
6369
6369
  let s = "C56AABOUT";
6370
- if (s = e + o(this, _, ft).call(this, s) + s + i, s = s + o(this, _, gt).call(this, s), Tt(this.__pinPad__.about.pp)) {
6370
+ if (s = e + o(this, _, ft).call(this, s) + s + i, s = s + o(this, _, gt).call(this, s), Ct(this.__pinPad__.about.pp)) {
6371
6371
  this.__pinPad__.waiting.statusAboutWaiting = "pending";
6372
6372
  const l = this.parseStringToBytes(s, "");
6373
6373
  await this.appendToQueue(l, "about");
@@ -6378,22 +6378,22 @@ Ar = function(t, e, i = !1) {
6378
6378
  return new Promise((l, h) => {
6379
6379
  c = setInterval(() => {
6380
6380
  if (a.__pinPad__.waiting.statusAboutWaiting === "resolved") {
6381
- if (clearInterval(c), a.__pinPad__.waiting.statusAboutWaiting = null, Tt(a.__pinPad__.about.pp))
6381
+ if (clearInterval(c), a.__pinPad__.waiting.statusAboutWaiting = null, Ct(a.__pinPad__.about.pp))
6382
6382
  return;
6383
6383
  t || l(!0), l(t(a.__pinPad__.about.pp.supportDUKPT, a.__pinPad__.about.pp.hasDUKPTKeys));
6384
6384
  } else a.__pinPad__.waiting.statusAboutWaiting === "rejected" && (clearInterval(c), a.__pinPad__.waiting.statusAboutWaiting = null, h("Error"));
6385
6385
  }, 500);
6386
6386
  });
6387
6387
  }, Ae = async function(t, e) {
6388
- if (t = t ? t.toString() : "", e = e ? e.toString() : "", Tt(t) || t === "0") {
6388
+ if (t = t ? t.toString() : "", e = e ? e.toString() : "", Ct(t) || t === "0") {
6389
6389
  this.dispatch("pp:dukpt", { status: "unsupported", already: !1 });
6390
6390
  return;
6391
6391
  }
6392
- if (Tt(e) || e === "1") {
6392
+ if (Ct(e) || e === "1") {
6393
6393
  this.dispatch("pp:dukpt", { status: "charged", already: !0 });
6394
6394
  return;
6395
6395
  }
6396
- const i = o(this, _, kn).call(this), s = o(this, _, An).call(this), a = this.__pinPad__.constants.FS, c = this.__pinPad__.constants.ETX, l = this.__pinPad__.constants.STX;
6396
+ const i = o(this, _, xn).call(this), s = o(this, _, An).call(this), a = this.__pinPad__.constants.FS, c = this.__pinPad__.constants.ETX, l = this.__pinPad__.constants.STX;
6397
6397
  let h = "C91A" + i + a + "B" + s;
6398
6398
  h = l + o(this, _, ft).call(this, h) + h + c, h = h + o(this, _, gt).call(this, h);
6399
6399
  const d = this.parseStringToBytes(h, "");
@@ -6449,15 +6449,15 @@ Ar = function(t, e, i = !1) {
6449
6449
  }, Wr = async function() {
6450
6450
  this.__pinPad__.operation.errors = 0;
6451
6451
  let t = "ACERQUE, INSERTE CHIP O DESLICE TARJETA";
6452
- if (this.__pinPad__.about.supportContactless || (t = "INSERTE CHIP O DESLICE TARJETA"), this.__pinPad__.about.model.toUpperCase().includes("UX300") && (t = "ACERQUE O INSERTE TARJETA"), Tt(this.amount) || this.amount <= 0)
6452
+ if (this.__pinPad__.about.supportContactless || (t = "INSERTE CHIP O DESLICE TARJETA"), this.__pinPad__.about.model.toUpperCase().includes("UX300") && (t = "ACERQUE O INSERTE TARJETA"), Ct(this.amount) || this.amount <= 0)
6453
6453
  throw new Error("Amount required");
6454
- if (o(this, _, Tn).call(this, this.amount) === !1)
6454
+ if (o(this, _, Cn).call(this, this.amount) === !1)
6455
6455
  throw new Error("Invalid amount required");
6456
- if (o(this, _, ke).call(this, this.amount, 2) <= 0)
6456
+ if (o(this, _, xe).call(this, this.amount, 2) <= 0)
6457
6457
  throw new Error("Amount must be greater than 0");
6458
6458
  const e = this.__pinPad__.constants.FS, i = this.__pinPad__.constants.STX, s = this.__pinPad__.constants.ETX;
6459
6459
  let a = "C93A" + t;
6460
- a = a + e + "B" + o(this, _, kn).call(this), a = a + e + "C" + o(this, _, An).call(this), a = a + e + "D" + o(this, _, ke).call(this, this.amount, 2), a = a + e + "E0.00", a = a + e + "F" + this.__pinPad__.config.currencyCode, this.__pinPad__.about.supportDUKPT && this.__pinPad__.about.supportDUKPT !== "0" && this.__pinPad__.about.supportDUKPT !== "false" && (this.__pinPad__.about.supportContactless ? (a = a + e + "G" + this.timeoutPinPad, a = a + e + "HTAGS", a = a + e + "I" + this.__pinPad__.config.requireCVVAmex, a = a + e + "J" + this.__pinPad__.config.forceOnline, a = a + e + "K" + this.__pinPad__.about.supportContactless, a = a + e + "L" + this.__pinPad__.config.emvCard, this.__pinPad__.about.hasCashback && (a = a + e + "M0", a = a + e + "N00")) : (a = a + e + "G" + this.timeoutPinPad, a = a + e + "HTAGS", a = a + e + "I" + this.__pinPad__.config.requireCVVAmex, a = a + e + "L" + this.__pinPad__.config.emvCard), this.__pinPad__.about.supportInjection && (a = a + e + "O" + this.__pinPad__.config.validateQPS)), a = i + o(this, _, ft).call(this, a) + a + s, a = a + o(this, _, gt).call(this, a), o(this, _, ns).call(this);
6460
+ a = a + e + "B" + o(this, _, xn).call(this), a = a + e + "C" + o(this, _, An).call(this), a = a + e + "D" + o(this, _, xe).call(this, this.amount, 2), a = a + e + "E0.00", a = a + e + "F" + this.__pinPad__.config.currencyCode, this.__pinPad__.about.supportDUKPT && this.__pinPad__.about.supportDUKPT !== "0" && this.__pinPad__.about.supportDUKPT !== "false" && (this.__pinPad__.about.supportContactless ? (a = a + e + "G" + this.timeoutPinPad, a = a + e + "HTAGS", a = a + e + "I" + this.__pinPad__.config.requireCVVAmex, a = a + e + "J" + this.__pinPad__.config.forceOnline, a = a + e + "K" + this.__pinPad__.about.supportContactless, a = a + e + "L" + this.__pinPad__.config.emvCard, this.__pinPad__.about.hasCashback && (a = a + e + "M0", a = a + e + "N00")) : (a = a + e + "G" + this.timeoutPinPad, a = a + e + "HTAGS", a = a + e + "I" + this.__pinPad__.config.requireCVVAmex, a = a + e + "L" + this.__pinPad__.config.emvCard), this.__pinPad__.about.supportInjection && (a = a + e + "O" + this.__pinPad__.config.validateQPS)), a = i + o(this, _, ft).call(this, a) + a + s, a = a + o(this, _, gt).call(this, a), o(this, _, ns).call(this);
6461
6461
  const c = this.parseStringToBytes(a, "");
6462
6462
  await this.appendToQueue(c, "read-card");
6463
6463
  let l = 0;
@@ -6474,7 +6474,7 @@ Ar = function(t, e, i = !1) {
6474
6474
  }, 500);
6475
6475
  });
6476
6476
  }, $r = async function(t) {
6477
- return await Ct(t * 1e3);
6477
+ return await Tt(t * 1e3);
6478
6478
  }, zr = async function(t) {
6479
6479
  let e = this.url + this.__pinPad__.constants.uris.consult;
6480
6480
  return t > 1 && this.environment === "production" && (e = e.replace(
@@ -6513,7 +6513,7 @@ Ar = function(t, e, i = !1) {
6513
6513
  } while (i++ <= 3);
6514
6514
  return s ? Promise.reject(s) : Promise.reject("Communication error with CDP. IL/MTY");
6515
6515
  }, Xr = function(t) {
6516
- if (Tt(t)) throw new Error("Number of authorization invalid");
6516
+ if (Ct(t)) throw new Error("Number of authorization invalid");
6517
6517
  if (/^[A-Za-z0-9]+$/g.test(t) !== !0) throw new Error("Number of authorization invalid");
6518
6518
  if (t.length !== 6) throw new Error("Number of authorization invalid");
6519
6519
  return !0;
@@ -6559,7 +6559,7 @@ Jr = function(t) {
6559
6559
  auth: t.auth,
6560
6560
  cd_response: i,
6561
6561
  cd_error: t.cd_error,
6562
- nb_error: o(a = e, _, xn).call(a, t.nb_error ?? ""),
6562
+ nb_error: o(a = e, _, kn).call(a, t.nb_error ?? ""),
6563
6563
  time: t.time,
6564
6564
  date: t.date,
6565
6565
  nb_company: t.nb_company,
@@ -6705,7 +6705,7 @@ Jr = function(t) {
6705
6705
  pwd: this.password.toUpperCase()
6706
6706
  },
6707
6707
  transacction: {
6708
- amount: o(this, _, ke).call(this, this.amount, 2),
6708
+ amount: o(this, _, xe).call(this, this.amount, 2),
6709
6709
  no_operacion: this.__pinPad__.operation.folio,
6710
6710
  auth: this.__pinPad__.operation.authorization.toUpperCase(),
6711
6711
  tracks: "",
@@ -6715,8 +6715,8 @@ Jr = function(t) {
6715
6715
  }
6716
6716
  }
6717
6717
  }), S = JSON.parse(v);
6718
- let T;
6719
- S.response === "approved" ? T = { message: "Transaction rejected by PinPad." } : T = { message: "No communication, please check your report." }, h.__pinPad__.operation.ignore.counterSale || (h.dispatch("pp:finish-emv", T), h.__pinPad__.operation.ignore.counterSale = !0);
6718
+ let C;
6719
+ S.response === "approved" ? C = { message: "Transaction rejected by PinPad." } : C = { message: "No communication, please check your report." }, h.__pinPad__.operation.ignore.counterSale || (h.dispatch("pp:finish-emv", C), h.__pinPad__.operation.ignore.counterSale = !0);
6720
6720
  } else
6721
6721
  h.__pinPad__.operation.ignore.counterSale || (h.dispatch("pp:finish-emv", t), h.__pinPad__.operation.ignore.counterSale = !0);
6722
6722
  t.cd_error === "92" && await o(E = h, _, Yr).call(E, t, a), d(!0);
@@ -6730,7 +6730,7 @@ Jr = function(t) {
6730
6730
  this.dispatch("pp:response", this.__pinPad__.operation.ignore.responseGlobal);
6731
6731
  else {
6732
6732
  const t = this.parseStringToBytes(this.__pinPad__.operation.ignore.C93Global, "");
6733
- await this.appendToQueue(t, "code93"), await Ct(1400), this.dispatch("pp:response", this.__pinPad__.operation.ignore.responseGlobal);
6733
+ await this.appendToQueue(t, "code93"), await Tt(1400), this.dispatch("pp:response", this.__pinPad__.operation.ignore.responseGlobal);
6734
6734
  }
6735
6735
  }, On = function(t) {
6736
6736
  const e = {
@@ -6851,7 +6851,7 @@ class sl extends Dt {
6851
6851
  sale: !1
6852
6852
  }
6853
6853
  });
6854
- if (this.__internal__.device.type = "pinpax", x.getCustom(this.typeDevice, i))
6854
+ if (this.__internal__.device.type = "pinpax", k.getCustom(this.typeDevice, i))
6855
6855
  throw new Error(`Device ${this.typeDevice} ${i} already exists`);
6856
6856
  this.__internal__.time.response_connection = 2e3, this.__internal__.time.response_general = 3e3, this.__internal__.serial.delay_first_connection = 1e3, this.__internal__.serial.response.replacer = "", this.__internal__.serial.response.limiter = `\r
6857
6857
  `, o(this, nt, rs).call(this), o(this, nt, is).call(this), this.getResponseAsString();
@@ -7006,6 +7006,9 @@ class sl extends Dt {
7006
7006
  response: e
7007
7007
  });
7008
7008
  break;
7009
+ case "REFUND":
7010
+ this.dispatch("refund", { status: "refund", response: e });
7011
+ break;
7009
7012
  }
7010
7013
  this.dispatch("serial:message", e);
7011
7014
  }
@@ -7120,9 +7123,14 @@ class sl extends Dt {
7120
7123
  `);
7121
7124
  await this.appendToQueue(e, "demo");
7122
7125
  }
7126
+ async refund({ amount: t = 0, folio: e = null, auth: i = null } = {}) {
7127
+ const s = JSON.stringify({ action: "REFUND", amount: t, folio: e, auth: i }), a = this.parseStringToBytes(s, `\r
7128
+ `);
7129
+ await this.appendToQueue(a, "refund");
7130
+ }
7123
7131
  }
7124
7132
  nt = new WeakSet(), is = function() {
7125
- x.add(this);
7133
+ k.add(this);
7126
7134
  }, rs = function() {
7127
7135
  const t = [
7128
7136
  "buttons-status",
@@ -7135,7 +7143,8 @@ nt = new WeakSet(), is = function() {
7135
7143
  "reset-app",
7136
7144
  "get-config",
7137
7145
  "payment",
7138
- "error"
7146
+ "error",
7147
+ "refund"
7139
7148
  ];
7140
7149
  for (const e of t)
7141
7150
  this.serialRegisterAvailableListener(e);
@@ -7155,7 +7164,7 @@ nt = new WeakSet(), is = function() {
7155
7164
  }, os = async function() {
7156
7165
  await this.connectMessage(), await this.login(), await this.hideButtons();
7157
7166
  };
7158
- var g, cs, ls, hs, rt, De, us, ps, ds, _s, fs, gs, ys, bs, ms, ws, vs, Es, Ps, Cs, Ts, Ss, xs, ks, As, Ds, Rs, Is, Os, Ns, Bs, Ms, pt, Q, Re, Z, yt, Fs, Us, Ls, Vs, ae, Bn, Mn, Ie, Oe, qs;
7167
+ var g, cs, ls, hs, rt, De, us, ps, ds, _s, fs, gs, ys, bs, ms, ws, vs, Es, Ps, Ts, Cs, Ss, ks, xs, As, Ds, Rs, Is, Os, Ns, Bs, Ms, pt, Q, Re, Z, yt, Fs, Us, Ls, Vs, ae, Bn, Mn, Ie, Oe, qs;
7159
7168
  class al extends Dt {
7160
7169
  constructor({
7161
7170
  filters: t = null,
@@ -7192,7 +7201,7 @@ class al extends Dt {
7192
7201
  }
7193
7202
  }
7194
7203
  });
7195
- if (this.__internal__.device.type = "jofemar", x.getCustom(this.typeDevice, i))
7204
+ if (this.__internal__.device.type = "jofemar", k.getCustom(this.typeDevice, i))
7196
7205
  throw new Error(`Device ${this.typeDevice} ${i} already exists`);
7197
7206
  this.__internal__.dispense.must_response = !0, this.__internal__.time.response_general = 800, this.__internal__.time.response_engines = 800, this.__internal__.dispense.limit_counter = 40, this.__internal__.dispense.timeout = 0, this.__internal__.dispense.timeout_time = 4e3, this.__internal__.dispense.interval = 0, this.__internal__.dispense.interval_time = 1e3, this.__internal__.device.hex_number = (128 + this.listenOnChannel).toString(16), this.__internal__.device.door_open = !1, this.__internal__.dispense.elevator = {
7198
7207
  locking_time: 60,
@@ -7300,7 +7309,7 @@ class al extends Dt {
7300
7309
  e && (c[4] = "4D"), c = o(this, g, De).call(this, c);
7301
7310
  let l;
7302
7311
  do
7303
- l = await this.internalDispense(c), o(this, g, Ls).call(this), l.error === "elevator-locked" ? await o(this, g, us).call(this) : l.error === "no-response" && await Ct(1e3);
7312
+ l = await this.internalDispense(c), o(this, g, Ls).call(this), l.error === "elevator-locked" ? await o(this, g, us).call(this) : l.error === "no-response" && await Tt(1e3);
7304
7313
  while (["elevator-locked", "no-response"].includes(l.error));
7305
7314
  return this.__internal__.dispense.backup_dispense = {}, l;
7306
7315
  }
@@ -7329,7 +7338,7 @@ class al extends Dt {
7329
7338
  });
7330
7339
  }
7331
7340
  async resetAllErrors() {
7332
- return await this.resetSoldOutErrors(), await Ct(100), await this.resetWaitingProductRemovedError(), await Ct(100), await this.resetMachineErrors();
7341
+ return await this.resetSoldOutErrors(), await Tt(100), await this.resetWaitingProductRemovedError(), await Tt(100), await this.resetMachineErrors();
7333
7342
  }
7334
7343
  async status() {
7335
7344
  const t = ["02", "30", "30", "81", "53", "FF", "FF"];
@@ -7690,7 +7699,7 @@ g = new WeakSet(), cs = function() {
7690
7699
  }, ls = function() {
7691
7700
  this.on("internal:dispense:running", o(this, g, Vs).bind(this));
7692
7701
  }, hs = function() {
7693
- x.add(this);
7702
+ k.add(this);
7694
7703
  }, rt = function(t, e) {
7695
7704
  return t[3] = this.__internal__.device.hex_number, this.appendToQueue(o(this, g, De).call(this, t), e);
7696
7705
  }, De = function(t) {
@@ -7700,7 +7709,7 @@ g = new WeakSet(), cs = function() {
7700
7709
  return t.push("03"), t;
7701
7710
  }, us = async function() {
7702
7711
  if (this.__internal__.dispense.elevator.locking_interval) return;
7703
- this.__internal__.dispense.elevator.need_reset && (this.__internal__.dispense.elevator.need_reset = !1, await this.resetWaitingProductRemovedError(), await Ct(500));
7712
+ this.__internal__.dispense.elevator.need_reset && (this.__internal__.dispense.elevator.need_reset = !1, await this.resetWaitingProductRemovedError(), await Tt(500));
7704
7713
  const t = this;
7705
7714
  return this.__internal__.dispense.status = "elevator-locked", this.__internal__.dispense.elevator.locking_time = 60, new Promise((e) => {
7706
7715
  t.__internal__.dispense.elevator.locking_interval = setInterval(() => {
@@ -7906,14 +7915,14 @@ g = new WeakSet(), cs = function() {
7906
7915
  hex: t,
7907
7916
  voltage: i
7908
7917
  }, this.dispatch("check:engine-voltage", e.additional), e;
7909
- }, Cs = function(t, e) {
7918
+ }, Ts = function(t, e) {
7910
7919
  e.no_code = 46, e.name = "Push over", e.description = "Push over";
7911
7920
  const i = t === "30";
7912
7921
  return e.additional = {
7913
7922
  hex: t,
7914
7923
  push: i
7915
7924
  }, this.dispatch("check:push-over", e.additional), e;
7916
- }, Ts = function(t, e) {
7925
+ }, Cs = function(t, e) {
7917
7926
  e.no_code = 47, e.name = "Extractor after dispense", e.description = "Extractor after dispense";
7918
7927
  const i = (this.hexToDec(t) - 128) / 10;
7919
7928
  return e.additional = {
@@ -7927,14 +7936,14 @@ g = new WeakSet(), cs = function() {
7927
7936
  hex: t,
7928
7937
  seconds: i
7929
7938
  }, this.dispatch("check:standby-after-collect", e.additional), e;
7930
- }, xs = function(t, e) {
7939
+ }, ks = function(t, e) {
7931
7940
  e.no_code = 49, e.name = "Standby without collect", e.description = "Time to standby when product delivery is not collected";
7932
7941
  const i = this.hexToDec(t) - 128;
7933
7942
  return e.additional = {
7934
7943
  hex: t,
7935
7944
  minutes: i
7936
7945
  }, this.dispatch("check:standby-without-collect", e.additional), e;
7937
- }, ks = function(t, e) {
7946
+ }, xs = function(t, e) {
7938
7947
  e.no_code = 50, e.name = "Elevator speed", e.description = "Elevator speed";
7939
7948
  const i = t === "30" ? "low" : "high";
7940
7949
  return e.additional = {
@@ -8041,19 +8050,19 @@ g = new WeakSet(), cs = function() {
8041
8050
  e = o(this, g, Os).call(this, t, e);
8042
8051
  break;
8043
8052
  case "4f":
8044
- e = o(this, g, Cs).call(this, t[4], e);
8053
+ e = o(this, g, Ts).call(this, t[4], e);
8045
8054
  break;
8046
8055
  case "45":
8047
- e = o(this, g, Ts).call(this, t[4], e);
8056
+ e = o(this, g, Cs).call(this, t[4], e);
8048
8057
  break;
8049
8058
  case "46":
8050
8059
  e = o(this, g, Ss).call(this, t[4], e);
8051
8060
  break;
8052
8061
  case "48":
8053
- e = o(this, g, xs).call(this, t[4], e);
8062
+ e = o(this, g, ks).call(this, t[4], e);
8054
8063
  break;
8055
8064
  case "76":
8056
- e = o(this, g, ks).call(this, t[4], e);
8065
+ e = o(this, g, xs).call(this, t[4], e);
8057
8066
  break;
8058
8067
  case "63":
8059
8068
  e = o(this, g, As).call(this, t[4], e);
@@ -8304,7 +8313,7 @@ class ol extends Dt {
8304
8313
  G(this, $t, !1);
8305
8314
  G(this, Ft, 0);
8306
8315
  G(this, zt, 0);
8307
- if (this.__internal__.device.type = "boardroid", x.getCustom(this.typeDevice, i))
8316
+ if (this.__internal__.device.type = "boardroid", k.getCustom(this.typeDevice, i))
8308
8317
  throw new Error(`Device ${this.typeDevice} ${i} already exists`);
8309
8318
  this.__internal__.serial.config_port.baudRate = 115200, this.__internal__.serial.response.length = 14, this.__internal__.time.response_connection = 600, this.__internal__.time.response_general = 4e3, this.__internal__.time.response_engines = 15e3, this.__internal__.dispense.limit_counter = 15, this.__internal__.dispense.custom_limit_counter = null, this.__internal__.dispense.backup_dispense = {
8310
8319
  channel: 1,
@@ -8681,7 +8690,7 @@ $t = new WeakMap(), Ft = new WeakMap(), zt = new WeakMap(), w = new WeakSet(), H
8681
8690
  for (const e of t)
8682
8691
  this.serialRegisterAvailableListener(e);
8683
8692
  }, js = function() {
8684
- x.add(this);
8693
+ k.add(this);
8685
8694
  }, Ne = function() {
8686
8695
  return this.__banknote_purse.isRecycler && this.__banknote_purse.recycler.ict;
8687
8696
  }, Ks = function() {
@@ -8973,7 +8982,7 @@ class cl extends Dt {
8973
8982
  constructor({ filters: t = null, config_port: e = null, no_device: i = 1 } = {}) {
8974
8983
  super({ filters: t, config_port: e, no_device: i });
8975
8984
  G(this, Gt);
8976
- if (this.__internal__.device.type = "arduino", x.getCustom(this.typeDevice, i))
8985
+ if (this.__internal__.device.type = "arduino", k.getCustom(this.typeDevice, i))
8977
8986
  throw new Error(`Device ${this.typeDevice} ${i} already exists`);
8978
8987
  this.__internal__.time.response_connection = 2e3, this.__internal__.time.response_general = 2e3, this.__internal__.serial.delay_first_connection = 1e3, o(this, Gt, ma).call(this), o(this, Gt, ba).call(this), this.getResponseAsString();
8979
8988
  }
@@ -9032,7 +9041,7 @@ class cl extends Dt {
9032
9041
  }
9033
9042
  }
9034
9043
  Gt = new WeakSet(), ba = function() {
9035
- x.add(this);
9044
+ k.add(this);
9036
9045
  }, ma = function() {
9037
9046
  };
9038
9047
  /**
@@ -9045,14 +9054,14 @@ Gt = new WeakSet(), ba = function() {
9045
9054
  * LICENSE file in the root directory of this source tree.
9046
9055
  */
9047
9056
  const ll = {
9048
- wait: Ct,
9057
+ wait: Tt,
9049
9058
  getSeconds: sn,
9050
9059
  supportWebSerial: Pa
9051
9060
  }, hl = "4.1.9";
9052
9061
  export {
9053
9062
  cl as Arduino,
9054
9063
  ol as Boardroid,
9055
- x as Devices,
9064
+ k as Devices,
9056
9065
  an as Emulator,
9057
9066
  al as Jofemar,
9058
9067
  Dt as Kernel,