bmlt-query-client 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js CHANGED
@@ -38,6 +38,9 @@ function m(e, t, { min: n = 0, allowInfinity: r = !1 } = {}) {
38
38
  if (t < n) throw TypeError(`Expected \`${e}\` to be \u2265 ${n}.`);
39
39
  }
40
40
  }
41
+ function h(e, t) {
42
+ if (t !== void 0 && typeof t != "function") throw TypeError(`Expected \`${e}\` to be a function.`);
43
+ }
41
44
  var ee = class extends Error {
42
45
  constructor(e) {
43
46
  super(), e instanceof Error ? (this.originalError = e, {message: e} = e) : (this.originalError = Error(e), this.originalError.stack = this.stack), this.name = "AbortError", this.message = e;
@@ -47,41 +50,57 @@ function te(e, t) {
47
50
  let n = Math.max(1, e + 1), r = t.randomize ? Math.random() + 1 : 1, i = Math.round(r * t.minTimeout * t.factor ** (n - 1));
48
51
  return i = Math.min(i, t.maxTimeout), i;
49
52
  }
50
- function ne(e, t) {
53
+ function g(e, t) {
51
54
  return Number.isFinite(t) ? t - (performance.now() - e) : t;
52
55
  }
56
+ async function ne(e, t) {
57
+ e <= 0 || await new Promise((n, r) => {
58
+ let i = () => {
59
+ clearTimeout(a), t.signal?.removeEventListener("abort", i), r(t.signal.reason);
60
+ }, a = setTimeout(() => {
61
+ t.signal?.removeEventListener("abort", i), n();
62
+ }, e);
63
+ t.unref && a.unref?.(), t.signal?.addEventListener("abort", i, { once: !0 });
64
+ });
65
+ }
53
66
  async function re({ error: e, attemptNumber: t, retriesConsumed: n, startTime: r, options: i }) {
54
67
  let a = e instanceof Error ? e : /* @__PURE__ */ TypeError(`Non-error was thrown: "${e}". You should only throw errors.`);
55
68
  if (a instanceof ee) throw a.originalError;
56
- let o = Number.isFinite(i.retries) ? Math.max(0, i.retries - n) : i.retries, s = i.maxRetryTime ?? Infinity, c = Object.freeze({
69
+ let o = Number.isFinite(i.retries) ? Math.max(0, i.retries - n) : i.retries, s = i.maxRetryTime ?? Infinity, c = te(n, i);
70
+ if (g(r, s) <= 0) {
71
+ let e = Object.freeze({
72
+ error: a,
73
+ attemptNumber: t,
74
+ retriesLeft: o,
75
+ retriesConsumed: n,
76
+ retryDelay: 0
77
+ });
78
+ throw await i.onFailedAttempt(e), a;
79
+ }
80
+ let l = Object.freeze({
57
81
  error: a,
58
82
  attemptNumber: t,
59
83
  retriesLeft: o,
60
- retriesConsumed: n
84
+ retriesConsumed: n,
85
+ retryDelay: o > 0 ? c : 0
86
+ }), u = await i.shouldConsumeRetry(l), d = u && o > 0 ? c : 0, p = Object.freeze({
87
+ error: a,
88
+ attemptNumber: t,
89
+ retriesLeft: o,
90
+ retriesConsumed: n,
91
+ retryDelay: d
61
92
  });
62
- if (await i.onFailedAttempt(c), ne(r, s) <= 0) throw a;
63
- let l = await i.shouldConsumeRetry(c), u = ne(r, s);
64
- if (u <= 0 || o <= 0) throw a;
65
- if (a instanceof TypeError && !f(a)) {
66
- if (l) throw a;
67
- return i.signal?.throwIfAborted(), !1;
68
- }
69
- if (!await i.shouldRetry(c)) throw a;
70
- if (!l) return i.signal?.throwIfAborted(), !1;
71
- let d = te(n, i), p = Math.min(d, u);
72
- return i.signal?.throwIfAborted(), p > 0 && await new Promise((e, t) => {
73
- let n = () => {
74
- clearTimeout(r), i.signal?.removeEventListener("abort", n), t(i.signal.reason);
75
- }, r = setTimeout(() => {
76
- i.signal?.removeEventListener("abort", n), e();
77
- }, p);
78
- i.unref && r.unref?.(), i.signal?.addEventListener("abort", n, { once: !0 });
79
- }), i.signal?.throwIfAborted(), !0;
93
+ if (await i.onFailedAttempt(p), g(r, s) <= 0 || g(r, s) <= 0 || o <= 0 || a instanceof TypeError && !f(a) || !await i.shouldRetry(p)) throw a;
94
+ let m = g(r, s);
95
+ if (m <= 0) throw a;
96
+ if (!u) return i.signal?.throwIfAborted(), !1;
97
+ let h = Math.min(d, m);
98
+ return i.signal?.throwIfAborted(), await ne(h, i), i.signal?.throwIfAborted(), !0;
80
99
  }
81
100
  async function ie(e, t = {}) {
82
101
  var n, r, i, a, o, s, c, l, u;
83
102
  if (t = { ...t }, p(t.retries), Object.hasOwn(t, "forever")) throw Error("The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.");
84
- (n = t).retries ?? (n.retries = 10), (r = t).factor ?? (r.factor = 2), (i = t).minTimeout ?? (i.minTimeout = 1e3), (a = t).maxTimeout ?? (a.maxTimeout = Infinity), (o = t).maxRetryTime ?? (o.maxRetryTime = Infinity), (s = t).randomize ?? (s.randomize = !1), (c = t).onFailedAttempt ?? (c.onFailedAttempt = () => {}), (l = t).shouldRetry ?? (l.shouldRetry = () => !0), (u = t).shouldConsumeRetry ?? (u.shouldConsumeRetry = () => !0), m("factor", t.factor, {
103
+ (n = t).retries ?? (n.retries = 10), (r = t).factor ?? (r.factor = 2), (i = t).minTimeout ?? (i.minTimeout = 1e3), (a = t).maxTimeout ?? (a.maxTimeout = Infinity), (o = t).maxRetryTime ?? (o.maxRetryTime = Infinity), (s = t).randomize ?? (s.randomize = !1), (c = t).onFailedAttempt ?? (c.onFailedAttempt = () => {}), (l = t).shouldRetry ?? (l.shouldRetry = () => !0), (u = t).shouldConsumeRetry ?? (u.shouldConsumeRetry = () => !0), h("onFailedAttempt", t.onFailedAttempt), h("shouldRetry", t.shouldRetry), h("shouldConsumeRetry", t.shouldConsumeRetry), m("factor", t.factor, {
85
104
  min: 0,
86
105
  allowInfinity: !1
87
106
  }), m("minTimeout", t.minTimeout, {
@@ -205,22 +224,22 @@ var ae = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
205
224
  })))(), 1);
206
225
  //#endregion
207
226
  //#region \0@oxc-project+runtime@0.122.0/helpers/typeof.js
208
- function h(e) {
227
+ function _(e) {
209
228
  "@babel/helpers - typeof";
210
- return h = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
229
+ return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
211
230
  return typeof e;
212
231
  } : function(e) {
213
232
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
214
- }, h(e);
233
+ }, _(e);
215
234
  }
216
235
  //#endregion
217
236
  //#region \0@oxc-project+runtime@0.122.0/helpers/toPrimitive.js
218
237
  function oe(e, t) {
219
- if (h(e) != "object" || !e) return e;
238
+ if (_(e) != "object" || !e) return e;
220
239
  var n = e[Symbol.toPrimitive];
221
240
  if (n !== void 0) {
222
241
  var r = n.call(e, t || "default");
223
- if (h(r) != "object") return r;
242
+ if (_(r) != "object") return r;
224
243
  throw TypeError("@@toPrimitive must return a primitive value.");
225
244
  }
226
245
  return (t === "string" ? String : Number)(e);
@@ -229,11 +248,11 @@ function oe(e, t) {
229
248
  //#region \0@oxc-project+runtime@0.122.0/helpers/toPropertyKey.js
230
249
  function se(e) {
231
250
  var t = oe(e, "string");
232
- return h(t) == "symbol" ? t : t + "";
251
+ return _(t) == "symbol" ? t : t + "";
233
252
  }
234
253
  //#endregion
235
254
  //#region \0@oxc-project+runtime@0.122.0/helpers/defineProperty.js
236
- function g(e, t, n) {
255
+ function v(e, t, n) {
237
256
  return (t = se(t)) in e ? Object.defineProperty(e, t, {
238
257
  value: n,
239
258
  enumerable: !0,
@@ -245,7 +264,7 @@ function g(e, t, n) {
245
264
  //#region node_modules/p-timeout/index.js
246
265
  var ce = class e extends Error {
247
266
  constructor(t, n) {
248
- super(t, n), g(this, "name", "TimeoutError"), Error.captureStackTrace?.(this, e);
267
+ super(t, n), v(this, "name", "TimeoutError"), Error.captureStackTrace?.(this, e);
249
268
  }
250
269
  }, le = (e) => e.reason ?? new DOMException("This operation was aborted.", "AbortError");
251
270
  function ue(e, t) {
@@ -297,25 +316,25 @@ function fe(e, t) {
297
316
  }
298
317
  //#endregion
299
318
  //#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldInitSpec.js
300
- function _(e, t, n) {
319
+ function y(e, t, n) {
301
320
  fe(e, t), t.set(e, n);
302
321
  }
303
322
  //#endregion
304
323
  //#region \0@oxc-project+runtime@0.122.0/helpers/assertClassBrand.js
305
- function v(e, t, n) {
324
+ function b(e, t, n) {
306
325
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
307
326
  throw TypeError("Private element is not present on this object");
308
327
  }
309
328
  //#endregion
310
329
  //#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldGet2.js
311
- function y(e, t) {
312
- return e.get(v(e, t));
330
+ function x(e, t) {
331
+ return e.get(b(e, t));
313
332
  }
314
333
  //#endregion
315
334
  //#region node_modules/p-queue/dist/priority-queue.js
316
- var b = /* @__PURE__ */ new WeakMap(), pe = class {
335
+ var S = /* @__PURE__ */ new WeakMap(), pe = class {
317
336
  constructor() {
318
- _(this, b, []);
337
+ y(this, S, []);
319
338
  }
320
339
  enqueue(e, t) {
321
340
  let { priority: n = 0, id: r } = t ?? {}, i = {
@@ -323,30 +342,30 @@ var b = /* @__PURE__ */ new WeakMap(), pe = class {
323
342
  id: r,
324
343
  run: e
325
344
  };
326
- if (this.size === 0 || y(b, this)[this.size - 1].priority >= n) {
327
- y(b, this).push(i);
345
+ if (this.size === 0 || x(S, this)[this.size - 1].priority >= n) {
346
+ x(S, this).push(i);
328
347
  return;
329
348
  }
330
- let a = de(y(b, this), i, (e, t) => t.priority - e.priority);
331
- y(b, this).splice(a, 0, i);
349
+ let a = de(x(S, this), i, (e, t) => t.priority - e.priority);
350
+ x(S, this).splice(a, 0, i);
332
351
  }
333
352
  setPriority(e, t) {
334
- let n = y(b, this).findIndex((t) => t.id === e);
353
+ let n = x(S, this).findIndex((t) => t.id === e);
335
354
  if (n === -1) throw ReferenceError(`No promise function with the id "${e}" exists in the queue.`);
336
- let [r] = y(b, this).splice(n, 1);
355
+ let [r] = x(S, this).splice(n, 1);
337
356
  this.enqueue(r.run, {
338
357
  priority: t,
339
358
  id: e
340
359
  });
341
360
  }
342
361
  dequeue() {
343
- return y(b, this).shift()?.run;
362
+ return x(S, this).shift()?.run;
344
363
  }
345
364
  filter(e) {
346
- return y(b, this).filter((t) => t.priority === e.priority).map((e) => e.run);
365
+ return x(S, this).filter((t) => t.priority === e.priority).map((e) => e.run);
347
366
  }
348
367
  get size() {
349
- return y(b, this).length;
368
+ return x(S, this).length;
350
369
  }
351
370
  };
352
371
  //#endregion
@@ -356,14 +375,14 @@ function me(e, t) {
356
375
  }
357
376
  //#endregion
358
377
  //#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldSet2.js
359
- function x(e, t, n) {
360
- return e.set(v(e, t), n), n;
378
+ function C(e, t, n) {
379
+ return e.set(b(e, t), n), n;
361
380
  }
362
381
  //#endregion
363
382
  //#region node_modules/p-queue/dist/index.js
364
- var S = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakSet(), _e = class extends ae.default {
383
+ var he = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakSet(), ye = class extends ae.default {
365
384
  constructor(e) {
366
- if (super(), me(this, V), _(this, S, void 0), _(this, C, void 0), _(this, w, 0), _(this, T, void 0), _(this, E, !1), _(this, D, !1), _(this, O, void 0), _(this, he, 0), _(this, k, 0), _(this, A, void 0), _(this, j, void 0), _(this, M, void 0), _(this, N, []), _(this, P, 0), _(this, F, void 0), _(this, I, void 0), _(this, L, 0), _(this, R, void 0), _(this, z, void 0), _(this, ge, 1n), _(this, B, /* @__PURE__ */ new Map()), g(this, "timeout", void 0), e = {
385
+ if (super(), me(this, V), y(this, he, void 0), y(this, w, void 0), y(this, T, 0), y(this, E, void 0), y(this, D, !1), y(this, O, !1), y(this, k, void 0), y(this, ge, 0), y(this, A, 0), y(this, j, void 0), y(this, M, void 0), y(this, N, void 0), y(this, P, []), y(this, F, 0), y(this, I, void 0), y(this, _e, void 0), y(this, L, 0), y(this, R, void 0), y(this, z, void 0), y(this, ve, 1n), y(this, B, /* @__PURE__ */ new Map()), v(this, "timeout", void 0), e = {
367
386
  carryoverIntervalCount: !1,
368
387
  intervalCap: Infinity,
369
388
  interval: 0,
@@ -376,31 +395,31 @@ var S = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), w = /*
376
395
  if (e.interval === void 0 || !(Number.isFinite(e.interval) && e.interval >= 0)) throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString() ?? ""}\` (${typeof e.interval})`);
377
396
  if (e.strict && e.interval === 0) throw TypeError("The `strict` option requires a non-zero `interval`");
378
397
  if (e.strict && e.intervalCap === Infinity) throw TypeError("The `strict` option requires a finite `intervalCap`");
379
- if (x(S, this, e.carryoverIntervalCount ?? e.carryoverConcurrencyCount ?? !1), x(C, this, e.intervalCap === Infinity || e.interval === 0), x(T, this, e.intervalCap), x(O, this, e.interval), x(M, this, e.strict), x(F, this, new e.queueClass()), x(I, this, e.queueClass), this.concurrency = e.concurrency, e.timeout !== void 0 && !(Number.isFinite(e.timeout) && e.timeout > 0)) throw TypeError(`Expected \`timeout\` to be a positive finite number, got \`${e.timeout}\` (${typeof e.timeout})`);
380
- this.timeout = e.timeout, x(z, this, e.autoStart === !1), v(V, this, Pe).call(this);
398
+ if (C(he, this, e.carryoverIntervalCount ?? e.carryoverConcurrencyCount ?? !1), C(w, this, e.intervalCap === Infinity || e.interval === 0), C(E, this, e.intervalCap), C(k, this, e.interval), C(N, this, e.strict), C(I, this, new e.queueClass()), C(_e, this, e.queueClass), this.concurrency = e.concurrency, e.timeout !== void 0 && !(Number.isFinite(e.timeout) && e.timeout > 0)) throw TypeError(`Expected \`timeout\` to be a positive finite number, got \`${e.timeout}\` (${typeof e.timeout})`);
399
+ this.timeout = e.timeout, C(z, this, e.autoStart === !1), b(V, this, Ie).call(this);
381
400
  }
382
401
  get concurrency() {
383
- return y(R, this);
402
+ return x(R, this);
384
403
  }
385
404
  set concurrency(e) {
386
405
  if (!(typeof e == "number" && e >= 1)) throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);
387
- x(R, this, e), v(V, this, Ne).call(this);
406
+ C(R, this, e), b(V, this, Fe).call(this);
388
407
  }
389
408
  setPriority(e, t) {
390
409
  if (typeof t != "number" || !Number.isFinite(t)) throw TypeError(`Expected \`priority\` to be a finite number, got \`${t}\` (${typeof t})`);
391
- y(F, this).setPriority(e, t);
410
+ x(I, this).setPriority(e, t);
392
411
  }
393
412
  async add(e, t = {}) {
394
413
  var n, r;
395
414
  return t = {
396
415
  timeout: this.timeout,
397
416
  ...t,
398
- id: t.id ?? (x(ge, this, (n = y(ge, this), r = n++, n)), r).toString()
417
+ id: t.id ?? (C(ve, this, (n = x(ve, this), r = n++, n)), r).toString()
399
418
  }, new Promise((n, r) => {
400
419
  let i = Symbol(`task-${t.id}`);
401
- y(F, this).enqueue(async () => {
420
+ x(I, this).enqueue(async () => {
402
421
  var a;
403
- x(L, this, (a = y(L, this), a++, a)), y(B, this).set(i, {
422
+ C(L, this, (a = x(L, this), a++, a)), x(B, this).set(i, {
404
423
  id: t.id,
405
424
  priority: t.priority ?? 0,
406
425
  startTime: Date.now(),
@@ -411,13 +430,13 @@ var S = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), w = /*
411
430
  try {
412
431
  t.signal?.throwIfAborted();
413
432
  } catch (e) {
414
- throw v(V, this, Fe).call(this), y(B, this).delete(i), e;
433
+ throw b(V, this, Le).call(this), x(B, this).delete(i), e;
415
434
  }
416
- x(k, this, Date.now());
435
+ C(A, this, Date.now());
417
436
  let r = e({ signal: t.signal });
418
437
  if (t.timeout && (r = ue(Promise.resolve(r), {
419
438
  milliseconds: t.timeout,
420
- message: `Task timed out after ${t.timeout}ms (queue has ${y(L, this)} running, ${y(F, this).size} waiting)`
439
+ message: `Task timed out after ${t.timeout}ms (queue has ${x(L, this)} running, ${x(I, this).size} waiting)`
421
440
  })), t.signal) {
422
441
  let { signal: e } = t;
423
442
  r = Promise.race([r, new Promise((t, n) => {
@@ -431,42 +450,42 @@ var S = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), w = /*
431
450
  } catch (e) {
432
451
  r(e), this.emit("error", e);
433
452
  } finally {
434
- o && t.signal?.removeEventListener("abort", o), y(B, this).delete(i), queueMicrotask(() => {
435
- v(V, this, we).call(this);
453
+ o && t.signal?.removeEventListener("abort", o), x(B, this).delete(i), queueMicrotask(() => {
454
+ b(V, this, Ee).call(this);
436
455
  });
437
456
  }
438
- }, t), this.emit("add"), v(V, this, Ae).call(this);
457
+ }, t), this.emit("add"), b(V, this, Me).call(this);
439
458
  });
440
459
  }
441
460
  async addAll(e, t) {
442
461
  return Promise.all(e.map(async (e) => this.add(e, t)));
443
462
  }
444
463
  start() {
445
- return y(z, this) ? (x(z, this, !1), v(V, this, Ne).call(this), this) : this;
464
+ return x(z, this) ? (C(z, this, !1), b(V, this, Fe).call(this), this) : this;
446
465
  }
447
466
  pause() {
448
- x(z, this, !0);
467
+ C(z, this, !0);
449
468
  }
450
469
  clear() {
451
- x(F, this, new (y(I, this))()), v(V, this, Oe).call(this), v(V, this, Ie).call(this), this.emit("empty"), y(L, this) === 0 && (v(V, this, ke).call(this), this.emit("idle")), this.emit("next");
470
+ C(I, this, new (x(_e, this))()), b(V, this, Ae).call(this), b(V, this, Re).call(this), this.emit("empty"), x(L, this) === 0 && (b(V, this, je).call(this), this.emit("idle")), this.emit("next");
452
471
  }
453
472
  async onEmpty() {
454
- y(F, this).size !== 0 && await v(V, this, H).call(this, "empty");
473
+ x(I, this).size !== 0 && await b(V, this, H).call(this, "empty");
455
474
  }
456
475
  async onSizeLessThan(e) {
457
- y(F, this).size < e || await v(V, this, H).call(this, "next", () => y(F, this).size < e);
476
+ x(I, this).size < e || await b(V, this, H).call(this, "next", () => x(I, this).size < e);
458
477
  }
459
478
  async onIdle() {
460
- y(L, this) === 0 && y(F, this).size === 0 || await v(V, this, H).call(this, "idle");
479
+ x(L, this) === 0 && x(I, this).size === 0 || await b(V, this, H).call(this, "idle");
461
480
  }
462
481
  async onPendingZero() {
463
- y(L, this) !== 0 && await v(V, this, H).call(this, "pendingZero");
482
+ x(L, this) !== 0 && await b(V, this, H).call(this, "pendingZero");
464
483
  }
465
484
  async onRateLimit() {
466
- this.isRateLimited || await v(V, this, H).call(this, "rateLimit");
485
+ this.isRateLimited || await b(V, this, H).call(this, "rateLimit");
467
486
  }
468
487
  async onRateLimitCleared() {
469
- this.isRateLimited && await v(V, this, H).call(this, "rateLimitCleared");
488
+ this.isRateLimited && await b(V, this, H).call(this, "rateLimitCleared");
470
489
  }
471
490
  onError() {
472
491
  return new Promise((e, t) => {
@@ -477,129 +496,129 @@ var S = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), w = /*
477
496
  });
478
497
  }
479
498
  get size() {
480
- return y(F, this).size;
499
+ return x(I, this).size;
481
500
  }
482
501
  sizeBy(e) {
483
- return y(F, this).filter(e).length;
502
+ return x(I, this).filter(e).length;
484
503
  }
485
504
  get pending() {
486
- return y(L, this);
505
+ return x(L, this);
487
506
  }
488
507
  get isPaused() {
489
- return y(z, this);
508
+ return x(z, this);
490
509
  }
491
510
  get isRateLimited() {
492
- return y(E, this);
511
+ return x(D, this);
493
512
  }
494
513
  get isSaturated() {
495
- return y(L, this) === y(R, this) && y(F, this).size > 0 || this.isRateLimited && y(F, this).size > 0;
514
+ return x(L, this) === x(R, this) && x(I, this).size > 0 || this.isRateLimited && x(I, this).size > 0;
496
515
  }
497
516
  get runningTasks() {
498
- return [...y(B, this).values()].map((e) => ({ ...e }));
517
+ return [...x(B, this).values()].map((e) => ({ ...e }));
499
518
  }
500
519
  };
501
- function ve(e) {
502
- for (; y(P, this) < y(N, this).length;) {
503
- let n = y(N, this)[y(P, this)];
504
- if (n !== void 0 && e - n >= y(O, this)) {
520
+ function be(e) {
521
+ for (; x(F, this) < x(P, this).length;) {
522
+ let n = x(P, this)[x(F, this)];
523
+ if (n !== void 0 && e - n >= x(k, this)) {
505
524
  var t;
506
- x(P, this, (t = y(P, this), t++, t));
525
+ C(F, this, (t = x(F, this), t++, t));
507
526
  } else break;
508
527
  }
509
- (y(P, this) > 100 && y(P, this) > y(N, this).length / 2 || y(P, this) === y(N, this).length) && (x(N, this, y(N, this).slice(y(P, this))), x(P, this, 0));
528
+ (x(F, this) > 100 && x(F, this) > x(P, this).length / 2 || x(F, this) === x(P, this).length) && (C(P, this, x(P, this).slice(x(F, this))), C(F, this, 0));
510
529
  }
511
- function ye(e) {
512
- if (y(M, this)) y(N, this).push(e);
530
+ function xe(e) {
531
+ if (x(N, this)) x(P, this).push(e);
513
532
  else {
514
533
  var t;
515
- x(w, this, (t = y(w, this), t++, t));
534
+ C(T, this, (t = x(T, this), t++, t));
516
535
  }
517
536
  }
518
- function be() {
519
- if (y(M, this)) y(N, this).length > y(P, this) && y(N, this).pop();
520
- else if (y(w, this) > 0) {
537
+ function Se() {
538
+ if (x(N, this)) x(P, this).length > x(F, this) && x(P, this).pop();
539
+ else if (x(T, this) > 0) {
521
540
  var e;
522
- x(w, this, (e = y(w, this), e--, e));
541
+ C(T, this, (e = x(T, this), e--, e));
523
542
  }
524
543
  }
525
- function xe() {
526
- return y(N, this).length - y(P, this);
527
- }
528
- function Se() {
529
- return y(C, this) ? !0 : y(M, this) ? v(V, this, xe).call(this) < y(T, this) : y(w, this) < y(T, this);
530
- }
531
544
  function Ce() {
532
- return y(L, this) < y(R, this);
545
+ return x(P, this).length - x(F, this);
533
546
  }
534
547
  function we() {
535
- var e;
536
- x(L, this, (e = y(L, this), e--, e)), y(L, this) === 0 && this.emit("pendingZero"), v(V, this, Ae).call(this), this.emit("next");
548
+ return x(w, this) ? !0 : x(N, this) ? b(V, this, Ce).call(this) < x(E, this) : x(T, this) < x(E, this);
537
549
  }
538
550
  function Te() {
539
- x(j, this, void 0), v(V, this, Me).call(this), v(V, this, je).call(this);
551
+ return x(L, this) < x(R, this);
540
552
  }
541
- function Ee(e) {
542
- if (y(M, this)) {
543
- if (v(V, this, ve).call(this, e), v(V, this, xe).call(this) >= y(T, this)) {
544
- let t = y(N, this)[y(P, this)], n = y(O, this) - (e - t);
545
- return v(V, this, De).call(this, n), !0;
553
+ function Ee() {
554
+ var e;
555
+ C(L, this, (e = x(L, this), e--, e)), x(L, this) === 0 && this.emit("pendingZero"), b(V, this, Me).call(this), this.emit("next");
556
+ }
557
+ function De() {
558
+ C(M, this, void 0), b(V, this, Pe).call(this), b(V, this, Ne).call(this);
559
+ }
560
+ function Oe(e) {
561
+ if (x(N, this)) {
562
+ if (b(V, this, be).call(this, e), b(V, this, Ce).call(this) >= x(E, this)) {
563
+ let t = x(P, this)[x(F, this)], n = x(k, this) - (e - t);
564
+ return b(V, this, ke).call(this, n), !0;
546
565
  }
547
566
  return !1;
548
567
  }
549
- if (y(A, this) === void 0) {
550
- let t = y(he, this) - e;
568
+ if (x(j, this) === void 0) {
569
+ let t = x(ge, this) - e;
551
570
  if (t < 0) {
552
- if (y(k, this) > 0) {
553
- let t = e - y(k, this);
554
- if (t < y(O, this)) return v(V, this, De).call(this, y(O, this) - t), !0;
571
+ if (x(A, this) > 0) {
572
+ let t = e - x(A, this);
573
+ if (t < x(k, this)) return b(V, this, ke).call(this, x(k, this) - t), !0;
555
574
  }
556
- x(w, this, y(S, this) ? y(L, this) : 0);
557
- } else return v(V, this, De).call(this, t), !0;
575
+ C(T, this, x(he, this) ? x(L, this) : 0);
576
+ } else return b(V, this, ke).call(this, t), !0;
558
577
  }
559
578
  return !1;
560
579
  }
561
- function De(e) {
562
- y(j, this) === void 0 && x(j, this, setTimeout(() => {
563
- v(V, this, Te).call(this);
580
+ function ke(e) {
581
+ x(M, this) === void 0 && C(M, this, setTimeout(() => {
582
+ b(V, this, De).call(this);
564
583
  }, e));
565
584
  }
566
- function Oe() {
567
- y(A, this) && (clearInterval(y(A, this)), x(A, this, void 0));
585
+ function Ae() {
586
+ x(j, this) && (clearInterval(x(j, this)), C(j, this, void 0));
568
587
  }
569
- function ke() {
570
- y(j, this) && (clearTimeout(y(j, this)), x(j, this, void 0));
588
+ function je() {
589
+ x(M, this) && (clearTimeout(x(M, this)), C(M, this, void 0));
571
590
  }
572
- function Ae() {
573
- if (y(F, this).size === 0) {
574
- if (v(V, this, Oe).call(this), this.emit("empty"), y(L, this) === 0) {
575
- if (v(V, this, ke).call(this), y(M, this) && y(P, this) > 0) {
591
+ function Me() {
592
+ if (x(I, this).size === 0) {
593
+ if (b(V, this, Ae).call(this), this.emit("empty"), x(L, this) === 0) {
594
+ if (b(V, this, je).call(this), x(N, this) && x(F, this) > 0) {
576
595
  let e = Date.now();
577
- v(V, this, ve).call(this, e);
596
+ b(V, this, be).call(this, e);
578
597
  }
579
598
  this.emit("idle");
580
599
  }
581
600
  return !1;
582
601
  }
583
602
  let e = !1;
584
- if (!y(z, this)) {
585
- let t = Date.now(), n = !v(V, this, Ee).call(this, t);
586
- if (Se.call(v(V, this)) && Ce.call(v(V, this))) {
587
- let r = y(F, this).dequeue();
588
- y(C, this) || (v(V, this, ye).call(this, t), v(V, this, U).call(this)), this.emit("active"), r(), n && v(V, this, je).call(this), e = !0;
603
+ if (!x(z, this)) {
604
+ let t = Date.now(), n = !b(V, this, Oe).call(this, t);
605
+ if (we.call(b(V, this)) && Te.call(b(V, this))) {
606
+ let r = x(I, this).dequeue();
607
+ x(w, this) || (b(V, this, xe).call(this, t), b(V, this, U).call(this)), this.emit("active"), r(), n && b(V, this, Ne).call(this), e = !0;
589
608
  }
590
609
  }
591
610
  return e;
592
611
  }
593
- function je() {
594
- y(C, this) || y(A, this) !== void 0 || y(M, this) || (x(A, this, setInterval(() => {
595
- v(V, this, Me).call(this);
596
- }, y(O, this))), x(he, this, Date.now() + y(O, this)));
612
+ function Ne() {
613
+ x(w, this) || x(j, this) !== void 0 || x(N, this) || (C(j, this, setInterval(() => {
614
+ b(V, this, Pe).call(this);
615
+ }, x(k, this))), C(ge, this, Date.now() + x(k, this)));
597
616
  }
598
- function Me() {
599
- y(M, this) || (y(w, this) === 0 && y(L, this) === 0 && y(A, this) && v(V, this, Oe).call(this), x(w, this, y(S, this) ? y(L, this) : 0)), v(V, this, Ne).call(this), v(V, this, U).call(this);
617
+ function Pe() {
618
+ x(N, this) || (x(T, this) === 0 && x(L, this) === 0 && x(j, this) && b(V, this, Ae).call(this), C(T, this, x(he, this) ? x(L, this) : 0)), b(V, this, Fe).call(this), b(V, this, U).call(this);
600
619
  }
601
- function Ne() {
602
- for (; v(V, this, Ae).call(this););
620
+ function Fe() {
621
+ for (; b(V, this, Me).call(this););
603
622
  }
604
623
  async function H(e, t) {
605
624
  return new Promise((n) => {
@@ -609,34 +628,34 @@ async function H(e, t) {
609
628
  this.on(e, r);
610
629
  });
611
630
  }
612
- function Pe() {
613
- y(C, this) || (this.on("add", () => {
614
- y(F, this).size > 0 && v(V, this, U).call(this);
631
+ function Ie() {
632
+ x(w, this) || (this.on("add", () => {
633
+ x(I, this).size > 0 && b(V, this, U).call(this);
615
634
  }), this.on("next", () => {
616
- v(V, this, U).call(this);
635
+ b(V, this, U).call(this);
617
636
  }));
618
637
  }
619
638
  function U() {
620
- y(C, this) || y(D, this) || (x(D, this, !0), queueMicrotask(() => {
621
- x(D, this, !1), v(V, this, Ie).call(this);
639
+ x(w, this) || x(O, this) || (C(O, this, !0), queueMicrotask(() => {
640
+ C(O, this, !1), b(V, this, Re).call(this);
622
641
  }));
623
642
  }
624
- function Fe() {
625
- y(C, this) || (v(V, this, be).call(this), v(V, this, U).call(this));
643
+ function Le() {
644
+ x(w, this) || (b(V, this, Se).call(this), b(V, this, U).call(this));
626
645
  }
627
- function Ie() {
628
- let e = y(E, this);
629
- if (y(C, this) || y(F, this).size === 0) {
630
- e && (x(E, this, !1), this.emit("rateLimitCleared"));
646
+ function Re() {
647
+ let e = x(D, this);
648
+ if (x(w, this) || x(I, this).size === 0) {
649
+ e && (C(D, this, !1), this.emit("rateLimitCleared"));
631
650
  return;
632
651
  }
633
652
  let t;
634
- if (y(M, this)) {
653
+ if (x(N, this)) {
635
654
  let e = Date.now();
636
- v(V, this, ve).call(this, e), t = v(V, this, xe).call(this);
637
- } else t = y(w, this);
638
- let n = t >= y(T, this);
639
- n !== e && (x(E, this, n), this.emit(n ? "rateLimit" : "rateLimitCleared"));
655
+ b(V, this, be).call(this, e), t = b(V, this, Ce).call(this);
656
+ } else t = x(T, this);
657
+ let n = t >= x(E, this);
658
+ n !== e && (C(D, this, n), this.emit(n ? "rateLimit" : "rateLimitCleared"));
640
659
  }
641
660
  //#endregion
642
661
  //#region src/utils/errors.ts
@@ -644,7 +663,7 @@ var W = /* @__PURE__ */ function(e) {
644
663
  return e.API_ERROR = "ApiError", e.NETWORK_ERROR = "NetworkError", e.VALIDATION_ERROR = "ValidationError", e.GEOCODING_ERROR = "GeocodingError", e.RATE_LIMIT_ERROR = "RateLimitError", e.TIMEOUT_ERROR = "TimeoutError", e.AUTHENTICATION_ERROR = "AuthenticationError", e.SERVER_ERROR = "ServerError", e.CLIENT_ERROR = "ClientError", e.CONFIGURATION_ERROR = "ConfigurationError", e;
645
664
  }({}), G = class e extends Error {
646
665
  constructor(t, n, r = {}) {
647
- super(n), g(this, "type", void 0), g(this, "statusCode", void 0), g(this, "response", void 0), g(this, "originalError", void 0), g(this, "context", void 0), this.name = "BmltQueryError", this.type = t, this.statusCode = r.statusCode, this.response = r.response, this.originalError = r.originalError, this.context = r.context, Object.setPrototypeOf(this, e.prototype);
666
+ super(n), v(this, "type", void 0), v(this, "statusCode", void 0), v(this, "response", void 0), v(this, "originalError", void 0), v(this, "context", void 0), this.name = "BmltQueryError", this.type = t, this.statusCode = r.statusCode, this.response = r.response, this.originalError = r.originalError, this.context = r.context, Object.setPrototypeOf(this, e.prototype);
648
667
  }
649
668
  isType(e) {
650
669
  return this.type === e;
@@ -782,7 +801,7 @@ var W = /* @__PURE__ */ function(e) {
782
801
  }
783
802
  }) : K.createApiError(r, void 0, void 0, e);
784
803
  }
785
- }, Le = class {
804
+ }, ze = class {
786
805
  static async withRetry(e, t) {
787
806
  let { maxRetries: n, baseDelay: r, maxDelay: i, factor: a, onRetry: o } = t, s;
788
807
  for (let t = 0; t <= n; t++) try {
@@ -795,9 +814,9 @@ var W = /* @__PURE__ */ function(e) {
795
814
  }
796
815
  throw s;
797
816
  }
798
- }, Re = class {
817
+ }, Be = class {
799
818
  constructor(e = {}) {
800
- g(this, "baseURL", void 0), g(this, "queue", void 0), g(this, "defaultOptions", void 0);
819
+ v(this, "baseURL", void 0), v(this, "queue", void 0), v(this, "defaultOptions", void 0);
801
820
  let { retryCount: t = 3, timeout: n = 1e4, userAgent: r = "bmlt-query-client/1.0.0", countryCode: i = "us", viewbox: a, bounded: o = !1, intervalCap: s = 1, interval: c = 1e3, concurrency: l = 1, carryoverConcurrencyCount: u = !1, ...d } = e;
802
821
  this.defaultOptions = {
803
822
  retryCount: t,
@@ -806,7 +825,7 @@ var W = /* @__PURE__ */ function(e) {
806
825
  countryCode: i,
807
826
  viewbox: a,
808
827
  bounded: o
809
- }, this.baseURL = "https://nominatim.openstreetmap.org", this.queue = new _e({
828
+ }, this.baseURL = "https://nominatim.openstreetmap.org", this.queue = new ye({
810
829
  intervalCap: s,
811
830
  interval: c,
812
831
  concurrency: l,
@@ -984,14 +1003,14 @@ var W = /* @__PURE__ */ function(e) {
984
1003
  return e[e.SUNDAY = 1] = "SUNDAY", e[e.MONDAY = 2] = "MONDAY", e[e.TUESDAY = 3] = "TUESDAY", e[e.WEDNESDAY = 4] = "WEDNESDAY", e[e.THURSDAY = 5] = "THURSDAY", e[e.FRIDAY = 6] = "FRIDAY", e[e.SATURDAY = 7] = "SATURDAY", e;
985
1004
  }({}), Z = /* @__PURE__ */ function(e) {
986
1005
  return e[e.IN_PERSON = 1] = "IN_PERSON", e[e.VIRTUAL = 2] = "VIRTUAL", e[e.HYBRID = 3] = "HYBRID", e;
987
- }({}), ze = /* @__PURE__ */ function(e) {
1006
+ }({}), Ve = /* @__PURE__ */ function(e) {
988
1007
  return e.WEEKDAY = "weekday", e.TIME = "time", e.TOWN = "town", e.STATE = "state", e.WEEKDAY_STATE = "weekday_state", e;
989
- }({}), Be = /* @__PURE__ */ function(e) {
1008
+ }({}), He = /* @__PURE__ */ function(e) {
990
1009
  return e.ENGLISH = "en", e.GERMAN = "de", e.DANISH = "dk", e.SPANISH = "es", e.PERSIAN = "fa", e.FRENCH = "fr", e.ITALIAN = "it", e.POLISH = "pl", e.PORTUGUESE = "pt", e.SWEDISH = "sv", e;
991
1010
  }({});
992
1011
  //#endregion
993
1012
  //#region src/utils/url-builder.ts
994
- function Ve(e) {
1013
+ function Ue(e) {
995
1014
  let { rootServerURL: t, format: n, endpoint: r, parameters: i = {} } = e, a = `${t.endsWith("/") ? t : `${t}/`}client_interface/${n}/`, o = new URLSearchParams();
996
1015
  return o.set("switcher", r), Object.entries(i).forEach(([e, t]) => {
997
1016
  t != null && (Array.isArray(t) ? t.forEach((t, n) => {
@@ -999,7 +1018,7 @@ function Ve(e) {
999
1018
  }) : typeof t == "boolean" ? o.set(e, t ? "1" : "0") : o.set(e, t.toString()));
1000
1019
  }), `${a}?${o.toString()}`;
1001
1020
  }
1002
- function He(e) {
1021
+ function We(e) {
1003
1022
  let t = {};
1004
1023
  return Object.entries(e).forEach(([e, n]) => {
1005
1024
  if (n != null) if (Array.isArray(n)) t[e] = n.map((e) => {
@@ -1017,7 +1036,7 @@ function He(e) {
1017
1036
  } else t[e] = n;
1018
1037
  }), t;
1019
1038
  }
1020
- function Ue(e, t) {
1039
+ function Ge(e, t) {
1021
1040
  let n = {
1022
1041
  [Y.GET_SEARCH_RESULTS]: [
1023
1042
  J.JSON,
@@ -1035,7 +1054,7 @@ function Ue(e, t) {
1035
1054
  }[e];
1036
1055
  if (!n.includes(t)) throw Error(`Invalid format '${t}' for endpoint '${e}'. Valid formats: ${n.join(", ")}`);
1037
1056
  }
1038
- function We(e) {
1057
+ function Ke(e) {
1039
1058
  try {
1040
1059
  let t = new URL(e);
1041
1060
  if (!["http:", "https:"].includes(t.protocol)) throw Error("Root server URL must use http or https protocol");
@@ -1045,10 +1064,10 @@ function We(e) {
1045
1064
  throw n.cause = t, n;
1046
1065
  }
1047
1066
  }
1048
- function Ge(e) {
1067
+ function qe(e) {
1049
1068
  return typeof e == "number" ? [e] : typeof e == "string" ? e.split(",").map((e) => parseInt(e.trim(), 10)).filter((e) => !isNaN(e)) : Array.isArray(e) ? e.map((e) => typeof e == "number" ? e : parseInt(String(e), 10)).filter((e) => !isNaN(e)) : [];
1050
1069
  }
1051
- function Ke(e, t) {
1070
+ function Je(e, t) {
1052
1071
  let n = {};
1053
1072
  if (typeof e == "number") {
1054
1073
  if (e < 0 || e > 23) throw Error("Hours must be between 0 and 23");
@@ -1060,7 +1079,7 @@ function Ke(e, t) {
1060
1079
  }
1061
1080
  return n;
1062
1081
  }
1063
- function qe(e, t) {
1082
+ function Ye(e, t) {
1064
1083
  if (typeof e != "number" || isNaN(e)) throw Error("Latitude must be a valid number");
1065
1084
  if (typeof t != "number" || isNaN(t)) throw Error("Longitude must be a valid number");
1066
1085
  if (e < -90 || e > 90) throw Error("Latitude must be between -90 and 90 degrees");
@@ -1070,25 +1089,25 @@ function Q(e) {
1070
1089
  if (typeof e != "number" || isNaN(e)) throw Error("Radius must be a valid number");
1071
1090
  if (e <= 0) throw Error("Radius must be greater than 0");
1072
1091
  }
1073
- function Je(e) {
1092
+ function Xe(e) {
1074
1093
  return e * 1.60934;
1075
1094
  }
1076
- function Ye(e) {
1095
+ function Ze(e) {
1077
1096
  return e / 1.60934;
1078
1097
  }
1079
1098
  //#endregion
1080
1099
  //#region src/client/bmlt-client.ts
1081
- var Xe = class {
1100
+ var Qe = class {
1082
1101
  constructor(e) {
1083
- g(this, "timeout", void 0), g(this, "userAgent", void 0), g(this, "geocodingService", void 0), g(this, "rootServerURL", void 0), g(this, "defaultFormat", void 0);
1102
+ v(this, "timeout", void 0), v(this, "userAgent", void 0), v(this, "geocodingService", void 0), v(this, "rootServerURL", void 0), v(this, "defaultFormat", void 0);
1084
1103
  let { rootServerURL: t, defaultFormat: n = J.JSON, timeout: r = 3e4, userAgent: i = "bmlt-query-client/1.0.0", geocodingOptions: a = {}, enableGeocoding: o = !0 } = e;
1085
- this.rootServerURL = We(t), this.defaultFormat = n, this.timeout = r, this.userAgent = i, o && (this.geocodingService = new Re(a));
1104
+ this.rootServerURL = Ke(t), this.defaultFormat = n, this.timeout = r, this.userAgent = i, o && (this.geocodingService = new Be(a));
1086
1105
  }
1087
1106
  async makeRequest(e, t = {}, n = this.defaultFormat) {
1088
1107
  let r;
1089
1108
  try {
1090
- Ue(e, n);
1091
- let i = Ve({
1109
+ Ge(e, n);
1110
+ let i = Ue({
1092
1111
  rootServerURL: this.rootServerURL,
1093
1112
  format: n,
1094
1113
  endpoint: e,
@@ -1120,6 +1139,13 @@ var Xe = class {
1120
1139
  let { format: t = this.defaultFormat, ...n } = e;
1121
1140
  return this.makeRequest(Y.GET_SEARCH_RESULTS, n, t);
1122
1141
  }
1142
+ async searchMeetingsWithFormats(e = {}) {
1143
+ let { format: t = this.defaultFormat, ...n } = e;
1144
+ return this.makeRequest(Y.GET_SEARCH_RESULTS, {
1145
+ ...n,
1146
+ get_used_formats: !0
1147
+ }, t);
1148
+ }
1123
1149
  async searchMeetingsByAddress(e) {
1124
1150
  if (!this.geocodingService) throw Error("Geocoding is not enabled. Initialize client with enableGeocoding: true");
1125
1151
  let { address: t, radiusMiles: n, radiusKm: r, sortByDistance: i = !0, searchParams: a = {} } = e, o = await this.geocodingService.geocode(t), s = {
@@ -1131,7 +1157,7 @@ var Xe = class {
1131
1157
  return n === void 0 ? r !== void 0 && (Q(r), s.geo_width_km = r) : (Q(n), s.geo_width = n), this.searchMeetings(s);
1132
1158
  }
1133
1159
  async searchMeetingsByCoordinates(e, t, n, r = {}) {
1134
- qe(e.latitude, e.longitude);
1160
+ Ye(e.latitude, e.longitude);
1135
1161
  let i = {
1136
1162
  ...r,
1137
1163
  lat_val: e.latitude,
@@ -1180,7 +1206,7 @@ var Xe = class {
1180
1206
  return this.rootServerURL;
1181
1207
  }
1182
1208
  setRootServerURL(e) {
1183
- this.rootServerURL = We(e);
1209
+ this.rootServerURL = Ke(e);
1184
1210
  }
1185
1211
  getDefaultFormat() {
1186
1212
  return this.defaultFormat;
@@ -1213,7 +1239,7 @@ var Xe = class {
1213
1239
  }
1214
1240
  }, $ = class e {
1215
1241
  constructor(e) {
1216
- g(this, "params", {}), g(this, "client", void 0), this.client = e;
1242
+ v(this, "params", {}), v(this, "client", void 0), this.client = e;
1217
1243
  }
1218
1244
  meetingIds(e, t = !1) {
1219
1245
  return Array.isArray(e) ? this.params.meeting_ids = t ? e.map((e) => -e) : e : this.params.meeting_ids = t ? -e : e, this;
@@ -1325,6 +1351,10 @@ var Xe = class {
1325
1351
  async execute() {
1326
1352
  return this.client.searchMeetings(this.params);
1327
1353
  }
1354
+ async executeWithFormats() {
1355
+ let { get_used_formats: e, get_formats_only: t, ...n } = this.params;
1356
+ return this.client.searchMeetingsWithFormats(n);
1357
+ }
1328
1358
  async executeNearAddress(e, t, n, r = !0) {
1329
1359
  return this.client.searchMeetingsByAddress({
1330
1360
  address: e,
@@ -1334,9 +1364,9 @@ var Xe = class {
1334
1364
  searchParams: this.params
1335
1365
  });
1336
1366
  }
1337
- }, Ze = class {
1367
+ }, $e = class {
1338
1368
  constructor(e) {
1339
- g(this, "client", void 0), this.client = e;
1369
+ v(this, "client", void 0), this.client = e;
1340
1370
  }
1341
1371
  today() {
1342
1372
  let e = (/* @__PURE__ */ new Date()).getDay(), t = e === 0 ? X.SUNDAY : e;
@@ -1365,6 +1395,6 @@ var Xe = class {
1365
1395
  }
1366
1396
  };
1367
1397
  //#endregion
1368
- export { Xe as BmltClient, J as BmltDataFormat, Y as BmltEndpoint, W as BmltErrorType, G as BmltQueryError, K as ErrorFactory, q as ErrorHandler, Re as GeocodingService, Be as Language, $ as MeetingQueryBuilder, Ze as QuickSearch, Le as RetryHandler, ze as SortKey, Z as VenueType, X as Weekday, Ve as buildBmltURL, Ge as extractIds, Ke as formatTimeValue, Ye as kilometersToMiles, Je as milesToKilometers, He as normalizeParameters, qe as validateCoordinates, Ue as validateEndpointFormat, Q as validateRadius, We as validateRootServerURL };
1398
+ export { Qe as BmltClient, J as BmltDataFormat, Y as BmltEndpoint, W as BmltErrorType, G as BmltQueryError, K as ErrorFactory, q as ErrorHandler, Be as GeocodingService, He as Language, $ as MeetingQueryBuilder, $e as QuickSearch, ze as RetryHandler, Ve as SortKey, Z as VenueType, X as Weekday, Ue as buildBmltURL, qe as extractIds, Je as formatTimeValue, Ze as kilometersToMiles, Xe as milesToKilometers, We as normalizeParameters, Ye as validateCoordinates, Ge as validateEndpointFormat, Q as validateRadius, Ke as validateRootServerURL };
1369
1399
 
1370
1400
  //# sourceMappingURL=app.js.map