@revolugo/booking-api-client 7.0.1 → 7.1.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -23,19 +23,19 @@ function ft(i) {
23
23
  return e;
24
24
  }
25
25
  function Xe(i, e) {
26
- const [n, t, r] = Me(i, e);
26
+ const [n, t, r] = Te(i, e);
27
27
  return n + t.map(Ee(e?.locale)).join(e?.delimiter ?? " ") + r;
28
28
  }
29
29
  function dt(i, e) {
30
- const [n, t, r] = Me(i, e), s = Ee(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ? _e(s, u) : et(s, u);
30
+ const [n, t, r] = Te(i, e), s = Ee(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ? _e(s, u) : et(s, u);
31
31
  return n + t.map((h, S) => S === 0 ? s(h) : c(h, S)).join(e?.delimiter ?? "") + r;
32
32
  }
33
33
  function ht(i, e) {
34
- const [n, t, r] = Me(i, e), s = Ee(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ? _e(s, u) : et(s, u);
34
+ const [n, t, r] = Te(i, e), s = Ee(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ? _e(s, u) : et(s, u);
35
35
  return n + t.map(c).join(e?.delimiter ?? "") + r;
36
36
  }
37
37
  function pt(i, e) {
38
- const [n, t, r] = Me(i, e), s = Ee(e?.locale), u = ke(e?.locale);
38
+ const [n, t, r] = Te(i, e), s = Ee(e?.locale), u = ke(e?.locale);
39
39
  return n + t.map(_e(s, u)).join(e?.delimiter ?? " ") + r;
40
40
  }
41
41
  function Qe(i, e) {
@@ -59,7 +59,7 @@ function et(i, e) {
59
59
  return (t > 0 && r >= "0" && r <= "9" ? "_" + r : e(r)) + i(n.slice(1));
60
60
  };
61
61
  }
62
- function Me(i, e = {}) {
62
+ function Te(i, e = {}) {
63
63
  const n = e.split ?? (e.separateNumbers ? ft : Je), t = e.prefixCharacters ?? Be, r = e.suffixCharacters ?? Be;
64
64
  let s = 0, u = i.length;
65
65
  for (; s < i.length; ) {
@@ -146,19 +146,19 @@ const Et = {
146
146
  "CI-CD": "https://booking-api.staging.revolugo.com",
147
147
  LOCAL: "http://127.0.0.1:3001"
148
148
  };
149
- var De = /* @__PURE__ */ ((i) => (i.HOTEL_ROOM_OFFERS = "HOTEL_ROOM_OFFERS", i.HOTEL_SEARCH_POLLING = "HOTEL_SEARCH_POLLING", i))(De || {}), le = { exports: {} }, Mt = le.exports, xe;
149
+ var De = /* @__PURE__ */ ((i) => (i.HOTEL_ROOM_OFFERS = "HOTEL_ROOM_OFFERS", i.HOTEL_SEARCH_POLLING = "HOTEL_SEARCH_POLLING", i))(De || {}), le = { exports: {} }, Tt = le.exports, xe;
150
150
  function tt() {
151
151
  return xe || (xe = 1, (function(i, e) {
152
152
  (function(n, t) {
153
153
  i.exports = t();
154
- })(Mt, (function() {
155
- var n = 1e3, t = 6e4, r = 36e5, s = "millisecond", u = "second", c = "minute", h = "hour", S = "day", A = "week", y = "month", m = "quarter", C = "year", E = "date", d = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
154
+ })(Tt, (function() {
155
+ var n = 1e3, t = 6e4, r = 36e5, s = "millisecond", u = "second", c = "minute", h = "hour", S = "day", A = "week", y = "month", m = "quarter", C = "year", E = "date", d = "Invalid Date", T = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
156
156
  var o = ["th", "st", "nd", "rd"], a = R % 100;
157
157
  return "[" + R + (o[(a - 20) % 10] || o[a] || o[0]) + "]";
158
158
  } }, _ = function(R, o, a) {
159
159
  var f = String(R);
160
160
  return !f || f.length >= o ? R : "" + Array(o + 1 - f.length).join(a) + R;
161
- }, $ = { s: _, z: function(R) {
161
+ }, U = { s: _, z: function(R) {
162
162
  var o = -R.utcOffset(), a = Math.abs(o), f = Math.floor(a / 60), l = a % 60;
163
163
  return (o <= 0 ? "+" : "-") + _(f, 2, "0") + ":" + _(l, 2, "0");
164
164
  }, m: function R(o, a) {
@@ -171,13 +171,13 @@ function tt() {
171
171
  return { M: y, y: C, w: A, d: S, D: E, h, m: c, s: u, ms: s, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
172
172
  }, u: function(R) {
173
173
  return R === void 0;
174
- } }, T = "en", B = {};
175
- B[T] = b;
174
+ } }, M = "en", B = {};
175
+ B[M] = b;
176
176
  var F = "$isDayjsObject", K = function(R) {
177
- return R instanceof V || !(!R || !R[F]);
178
- }, U = function R(o, a, f) {
177
+ return R instanceof Y || !(!R || !R[F]);
178
+ }, $ = function R(o, a, f) {
179
179
  var l;
180
- if (!o) return T;
180
+ if (!o) return M;
181
181
  if (typeof o == "string") {
182
182
  var g = o.toLowerCase();
183
183
  B[g] && (l = g), a && (B[g] = a, l = g);
@@ -187,18 +187,18 @@ function tt() {
187
187
  var D = o.name;
188
188
  B[D] = o, l = D;
189
189
  }
190
- return !f && l && (T = l), l || !f && T;
190
+ return !f && l && (M = l), l || !f && M;
191
191
  }, L = function(R, o) {
192
192
  if (K(R)) return R.clone();
193
193
  var a = typeof o == "object" ? o : {};
194
- return a.date = R, a.args = arguments, new V(a);
195
- }, O = $;
196
- O.l = U, O.i = K, O.w = function(R, o) {
194
+ return a.date = R, a.args = arguments, new Y(a);
195
+ }, O = U;
196
+ O.l = $, O.i = K, O.w = function(R, o) {
197
197
  return L(R, { locale: o.$L, utc: o.$u, x: o.$x, $offset: o.$offset });
198
198
  };
199
- var V = (function() {
199
+ var Y = (function() {
200
200
  function R(a) {
201
- this.$L = U(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[F] = !0;
201
+ this.$L = $(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[F] = !0;
202
202
  }
203
203
  var o = R.prototype;
204
204
  return o.parse = function(a) {
@@ -208,10 +208,10 @@ function tt() {
208
208
  if (O.u(l)) return /* @__PURE__ */ new Date();
209
209
  if (l instanceof Date) return new Date(l);
210
210
  if (typeof l == "string" && !/Z$/i.test(l)) {
211
- var p = l.match(M);
211
+ var p = l.match(T);
212
212
  if (p) {
213
- var D = p[2] - 1 || 0, x = (p[7] || "0").substring(0, 3);
214
- return g ? new Date(Date.UTC(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, x)) : new Date(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, x);
213
+ var D = p[2] - 1 || 0, N = (p[7] || "0").substring(0, 3);
214
+ return g ? new Date(Date.UTC(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, N)) : new Date(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, N);
215
215
  }
216
216
  }
217
217
  return new Date(l);
@@ -240,7 +240,7 @@ function tt() {
240
240
  var l = this, g = !!O.u(f) || f, p = O.p(a), D = function(Q, q) {
241
241
  var Z = O.w(l.$u ? Date.UTC(l.$y, q, Q) : new Date(l.$y, q, Q), l);
242
242
  return g ? Z : Z.endOf(S);
243
- }, x = function(Q, q) {
243
+ }, N = function(Q, q) {
244
244
  return O.w(l.toDate()[Q].apply(l.toDate("s"), (g ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), l);
245
245
  }, G = this.$W, k = this.$M, H = this.$D, te = "set" + (this.$u ? "UTC" : "");
246
246
  switch (p) {
@@ -253,24 +253,24 @@ function tt() {
253
253
  return D(g ? H - re : H + (6 - re), k);
254
254
  case S:
255
255
  case E:
256
- return x(te + "Hours", 0);
256
+ return N(te + "Hours", 0);
257
257
  case h:
258
- return x(te + "Minutes", 1);
258
+ return N(te + "Minutes", 1);
259
259
  case c:
260
- return x(te + "Seconds", 2);
260
+ return N(te + "Seconds", 2);
261
261
  case u:
262
- return x(te + "Milliseconds", 3);
262
+ return N(te + "Milliseconds", 3);
263
263
  default:
264
264
  return this.clone();
265
265
  }
266
266
  }, o.endOf = function(a) {
267
267
  return this.startOf(a, !1);
268
268
  }, o.$set = function(a, f) {
269
- var l, g = O.p(a), p = "set" + (this.$u ? "UTC" : ""), D = (l = {}, l[S] = p + "Date", l[E] = p + "Date", l[y] = p + "Month", l[C] = p + "FullYear", l[h] = p + "Hours", l[c] = p + "Minutes", l[u] = p + "Seconds", l[s] = p + "Milliseconds", l)[g], x = g === S ? this.$D + (f - this.$W) : f;
269
+ var l, g = O.p(a), p = "set" + (this.$u ? "UTC" : ""), D = (l = {}, l[S] = p + "Date", l[E] = p + "Date", l[y] = p + "Month", l[C] = p + "FullYear", l[h] = p + "Hours", l[c] = p + "Minutes", l[u] = p + "Seconds", l[s] = p + "Milliseconds", l)[g], N = g === S ? this.$D + (f - this.$W) : f;
270
270
  if (g === y || g === C) {
271
271
  var G = this.clone().set(E, 1);
272
- G.$d[D](x), G.init(), this.$d = G.set(E, Math.min(this.$D, G.daysInMonth())).$d;
273
- } else D && this.$d[D](x);
272
+ G.$d[D](N), G.init(), this.$d = G.set(E, Math.min(this.$D, G.daysInMonth())).$d;
273
+ } else D && this.$d[D](N);
274
274
  return this.init(), this;
275
275
  }, o.set = function(a, f) {
276
276
  return this.clone().$set(a, f);
@@ -287,14 +287,14 @@ function tt() {
287
287
  if (p === C) return this.set(C, this.$y + a);
288
288
  if (p === S) return D(1);
289
289
  if (p === A) return D(7);
290
- var x = (l = {}, l[c] = t, l[h] = r, l[u] = n, l)[p] || 1, G = this.$d.getTime() + a * x;
290
+ var N = (l = {}, l[c] = t, l[h] = r, l[u] = n, l)[p] || 1, G = this.$d.getTime() + a * N;
291
291
  return O.w(G, this);
292
292
  }, o.subtract = function(a, f) {
293
293
  return this.add(-1 * a, f);
294
294
  }, o.format = function(a) {
295
295
  var f = this, l = this.$locale();
296
296
  if (!this.isValid()) return l.invalidDate || d;
297
- var g = a || "YYYY-MM-DDTHH:mm:ssZ", p = O.z(this), D = this.$H, x = this.$m, G = this.$M, k = l.weekdays, H = l.months, te = l.meridiem, X = function(q, Z, ie, ae) {
297
+ var g = a || "YYYY-MM-DDTHH:mm:ssZ", p = O.z(this), D = this.$H, N = this.$m, G = this.$M, k = l.weekdays, H = l.months, te = l.meridiem, X = function(q, Z, ie, ae) {
298
298
  return q && (q[Z] || q(f, g)) || ie[Z].slice(0, ae);
299
299
  }, re = function(q) {
300
300
  return O.s(D % 12 || 12, q, "0");
@@ -338,13 +338,13 @@ function tt() {
338
338
  case "hh":
339
339
  return re(2);
340
340
  case "a":
341
- return Q(D, x, !0);
341
+ return Q(D, N, !0);
342
342
  case "A":
343
- return Q(D, x, !1);
343
+ return Q(D, N, !1);
344
344
  case "m":
345
- return String(x);
345
+ return String(N);
346
346
  case "mm":
347
- return O.s(x, 2, "0");
347
+ return O.s(N, 2, "0");
348
348
  case "s":
349
349
  return String(f.$s);
350
350
  case "ss":
@@ -360,8 +360,8 @@ function tt() {
360
360
  }, o.utcOffset = function() {
361
361
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
362
362
  }, o.diff = function(a, f, l) {
363
- var g, p = this, D = O.p(f), x = L(a), G = (x.utcOffset() - this.utcOffset()) * t, k = this - x, H = function() {
364
- return O.m(p, x);
363
+ var g, p = this, D = O.p(f), N = L(a), G = (N.utcOffset() - this.utcOffset()) * t, k = this - N, H = function() {
364
+ return O.m(p, N);
365
365
  };
366
366
  switch (D) {
367
367
  case C:
@@ -398,7 +398,7 @@ function tt() {
398
398
  return B[this.$L];
399
399
  }, o.locale = function(a, f) {
400
400
  if (!a) return this.$L;
401
- var l = this.clone(), g = U(a, f, !0);
401
+ var l = this.clone(), g = $(a, f, !0);
402
402
  return g && (l.$L = g), l;
403
403
  }, o.clone = function() {
404
404
  return O.w(this.$d, this);
@@ -411,21 +411,21 @@ function tt() {
411
411
  }, o.toString = function() {
412
412
  return this.$d.toUTCString();
413
413
  }, R;
414
- })(), oe = V.prototype;
414
+ })(), oe = Y.prototype;
415
415
  return L.prototype = oe, [["$ms", s], ["$s", u], ["$m", c], ["$H", h], ["$W", S], ["$M", y], ["$y", C], ["$D", E]].forEach((function(R) {
416
416
  oe[R[1]] = function(o) {
417
417
  return this.$g(o, R[0], R[1]);
418
418
  };
419
419
  })), L.extend = function(R, o) {
420
- return R.$i || (R(o, V, L), R.$i = !0), L;
421
- }, L.locale = U, L.isDayjs = K, L.unix = function(R) {
420
+ return R.$i || (R(o, Y, L), R.$i = !0), L;
421
+ }, L.locale = $, L.isDayjs = K, L.unix = function(R) {
422
422
  return L(1e3 * R);
423
- }, L.en = B[T], L.Ls = B, L.p = {}, L;
423
+ }, L.en = B[M], L.Ls = B, L.p = {}, L;
424
424
  }));
425
425
  })(le)), le.exports;
426
426
  }
427
- var Tt = tt();
428
- const z = /* @__PURE__ */ j(Tt);
427
+ var Mt = tt();
428
+ const W = /* @__PURE__ */ j(Mt);
429
429
  var fe = { exports: {} }, Ot = fe.exports, Pe;
430
430
  function kt() {
431
431
  return Pe || (Pe = 1, (function(i, e) {
@@ -495,9 +495,9 @@ function It() {
495
495
  }
496
496
  var Bt = It();
497
497
  const Lt = /* @__PURE__ */ j(Bt);
498
- var he = { exports: {} }, xt = he.exports, $e;
498
+ var he = { exports: {} }, xt = he.exports, Ue;
499
499
  function Pt() {
500
- return $e || ($e = 1, (function(i, e) {
500
+ return Ue || (Ue = 1, (function(i, e) {
501
501
  (function(n, t) {
502
502
  i.exports = t();
503
503
  })(xt, (function() {
@@ -510,13 +510,13 @@ function Pt() {
510
510
  })(he)), he.exports;
511
511
  }
512
512
  var Nt = Pt();
513
- const $t = /* @__PURE__ */ j(Nt);
514
- var pe = { exports: {} }, Ut = pe.exports, Ue;
513
+ const Ut = /* @__PURE__ */ j(Nt);
514
+ var pe = { exports: {} }, $t = pe.exports, $e;
515
515
  function Gt() {
516
- return Ue || (Ue = 1, (function(i, e) {
516
+ return $e || ($e = 1, (function(i, e) {
517
517
  (function(n, t) {
518
518
  i.exports = t();
519
- })(Ut, (function() {
519
+ })($t, (function() {
520
520
  return function(n, t) {
521
521
  t.prototype.isSameOrBefore = function(r, s) {
522
522
  return this.isSame(r, s) || this.isBefore(r, s);
@@ -528,7 +528,7 @@ function Gt() {
528
528
  var Ht = Gt();
529
529
  const Ft = /* @__PURE__ */ j(Ht);
530
530
  var me = { exports: {} }, Kt = me.exports, Ge;
531
- function Yt() {
531
+ function Vt() {
532
532
  return Ge || (Ge = 1, (function(i, e) {
533
533
  (function(n, t) {
534
534
  i.exports = t();
@@ -537,20 +537,20 @@ function Yt() {
537
537
  var s = t.prototype, u = function(y) {
538
538
  return y && (y.indexOf ? y : y.s);
539
539
  }, c = function(y, m, C, E, d) {
540
- var M = y.name ? y : y.$locale(), I = u(M[m]), b = u(M[C]), _ = I || b.map((function(T) {
541
- return T.slice(0, E);
540
+ var T = y.name ? y : y.$locale(), I = u(T[m]), b = u(T[C]), _ = I || b.map((function(M) {
541
+ return M.slice(0, E);
542
542
  }));
543
543
  if (!d) return _;
544
- var $ = M.weekStart;
545
- return _.map((function(T, B) {
546
- return _[(B + ($ || 0)) % 7];
544
+ var U = T.weekStart;
545
+ return _.map((function(M, B) {
546
+ return _[(B + (U || 0)) % 7];
547
547
  }));
548
548
  }, h = function() {
549
549
  return r.Ls[r.locale()];
550
550
  }, S = function(y, m) {
551
551
  return y.formats[m] || (function(C) {
552
- return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(E, d, M) {
553
- return d || M.slice(1);
552
+ return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(E, d, T) {
553
+ return d || T.slice(1);
554
554
  }));
555
555
  })(y.formats[m.toUpperCase()]);
556
556
  }, A = function() {
@@ -605,8 +605,8 @@ function Yt() {
605
605
  }));
606
606
  })(me)), me.exports;
607
607
  }
608
- var Vt = Yt();
609
- const qt = /* @__PURE__ */ j(Vt);
608
+ var Yt = Vt();
609
+ const qt = /* @__PURE__ */ j(Yt);
610
610
  var ye = { exports: {} }, jt = ye.exports, He;
611
611
  function zt() {
612
612
  return He || (He = 1, (function(i, e) {
@@ -620,8 +620,8 @@ function zt() {
620
620
  h === void 0 && (h = "YYYY-MM-DDTHH:mm:ssZ");
621
621
  var S = this.$locale().formats, A = (function(y, m) {
622
622
  return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(C, E, d) {
623
- var M = d && d.toUpperCase();
624
- return E || m[d] || n[d] || m[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(I, b, _) {
623
+ var T = d && d.toUpperCase();
624
+ return E || m[d] || n[d] || m[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(I, b, _) {
625
625
  return b || _.slice(1);
626
626
  }));
627
627
  }));
@@ -676,19 +676,19 @@ function nn() {
676
676
  return s.fromToBase(S, A, y, m);
677
677
  }
678
678
  r.en.relativeTime = u, s.fromToBase = function(S, A, y, m, C) {
679
- for (var E, d, M, I = y.$locale().relativeTime || u, b = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], _ = b.length, $ = 0; $ < _; $ += 1) {
680
- var T = b[$];
681
- T.d && (E = m ? r(S).diff(y, T.d, !0) : y.diff(S, T.d, !0));
679
+ for (var E, d, T, I = y.$locale().relativeTime || u, b = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], _ = b.length, U = 0; U < _; U += 1) {
680
+ var M = b[U];
681
+ M.d && (E = m ? r(S).diff(y, M.d, !0) : y.diff(S, M.d, !0));
682
682
  var B = (n.rounding || Math.round)(Math.abs(E));
683
- if (M = E > 0, B <= T.r || !T.r) {
684
- B <= 1 && $ > 0 && (T = b[$ - 1]);
685
- var F = I[T.l];
686
- C && (B = C("" + B)), d = typeof F == "string" ? F.replace("%d", B) : F(B, A, T.l, M);
683
+ if (T = E > 0, B <= M.r || !M.r) {
684
+ B <= 1 && U > 0 && (M = b[U - 1]);
685
+ var F = I[M.l];
686
+ C && (B = C("" + B)), d = typeof F == "string" ? F.replace("%d", B) : F(B, A, M.l, T);
687
687
  break;
688
688
  }
689
689
  }
690
690
  if (A) return d;
691
- var K = M ? I.future : I.past;
691
+ var K = T ? I.future : I.past;
692
692
  return typeof K == "function" ? K(d) : K.replace("%s", d);
693
693
  }, s.to = function(S, A) {
694
694
  return c(S, A, this, !0);
@@ -709,9 +709,9 @@ function nn() {
709
709
  }
710
710
  var rn = nn();
711
711
  const on = /* @__PURE__ */ j(rn);
712
- var ve = { exports: {} }, an = ve.exports, Ye;
712
+ var ve = { exports: {} }, an = ve.exports, Ve;
713
713
  function sn() {
714
- return Ye || (Ye = 1, (function(i, e) {
714
+ return Ve || (Ve = 1, (function(i, e) {
715
715
  (function(n, t) {
716
716
  i.exports = t();
717
717
  })(an, (function() {
@@ -719,27 +719,27 @@ function sn() {
719
719
  return function(r, s, u) {
720
720
  var c, h = function(m, C, E) {
721
721
  E === void 0 && (E = {});
722
- var d = new Date(m), M = (function(I, b) {
722
+ var d = new Date(m), T = (function(I, b) {
723
723
  b === void 0 && (b = {});
724
- var _ = b.timeZoneName || "short", $ = I + "|" + _, T = t[$];
725
- return T || (T = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: I, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: _ }), t[$] = T), T;
724
+ var _ = b.timeZoneName || "short", U = I + "|" + _, M = t[U];
725
+ return M || (M = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: I, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: _ }), t[U] = M), M;
726
726
  })(C, E);
727
- return M.formatToParts(d);
727
+ return T.formatToParts(d);
728
728
  }, S = function(m, C) {
729
- for (var E = h(m, C), d = [], M = 0; M < E.length; M += 1) {
730
- var I = E[M], b = I.type, _ = I.value, $ = n[b];
731
- $ >= 0 && (d[$] = parseInt(_, 10));
729
+ for (var E = h(m, C), d = [], T = 0; T < E.length; T += 1) {
730
+ var I = E[T], b = I.type, _ = I.value, U = n[b];
731
+ U >= 0 && (d[U] = parseInt(_, 10));
732
732
  }
733
- var T = d[3], B = T === 24 ? 0 : T, F = d[0] + "-" + d[1] + "-" + d[2] + " " + B + ":" + d[4] + ":" + d[5] + ":000", K = +m;
733
+ var M = d[3], B = M === 24 ? 0 : M, F = d[0] + "-" + d[1] + "-" + d[2] + " " + B + ":" + d[4] + ":" + d[5] + ":000", K = +m;
734
734
  return (u.utc(F).valueOf() - (K -= K % 1e3)) / 6e4;
735
735
  }, A = s.prototype;
736
736
  A.tz = function(m, C) {
737
737
  m === void 0 && (m = c);
738
- var E, d = this.utcOffset(), M = this.toDate(), I = M.toLocaleString("en-US", { timeZone: m }), b = Math.round((M - new Date(I)) / 1e3 / 60), _ = 15 * -Math.round(M.getTimezoneOffset() / 15) - b;
738
+ var E, d = this.utcOffset(), T = this.toDate(), I = T.toLocaleString("en-US", { timeZone: m }), b = Math.round((T - new Date(I)) / 1e3 / 60), _ = 15 * -Math.round(T.getTimezoneOffset() / 15) - b;
739
739
  if (!Number(_)) E = this.utcOffset(0, C);
740
740
  else if (E = u(I, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(_, !0), C) {
741
- var $ = E.utcOffset();
742
- E = E.add(d - $, "minute");
741
+ var U = E.utcOffset();
742
+ E = E.add(d - U, "minute");
743
743
  }
744
744
  return E.$x.$timezone = m, E;
745
745
  }, A.offsetName = function(m) {
@@ -754,15 +754,15 @@ function sn() {
754
754
  var E = u(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
755
755
  return y.call(E, m, C).tz(this.$x.$timezone, !0);
756
756
  }, u.tz = function(m, C, E) {
757
- var d = E && C, M = E || C || c, I = S(+u(), M);
758
- if (typeof m != "string") return u(m).tz(M);
757
+ var d = E && C, T = E || C || c, I = S(+u(), T);
758
+ if (typeof m != "string") return u(m).tz(T);
759
759
  var b = (function(B, F, K) {
760
- var U = B - 60 * F * 1e3, L = S(U, K);
761
- if (F === L) return [U, F];
762
- var O = S(U -= 60 * (L - F) * 1e3, K);
763
- return L === O ? [U, L] : [B - 60 * Math.min(L, O) * 1e3, Math.max(L, O)];
764
- })(u.utc(m, d).valueOf(), I, M), _ = b[0], $ = b[1], T = u(_).utcOffset($);
765
- return T.$x.$timezone = M, T;
760
+ var $ = B - 60 * F * 1e3, L = S($, K);
761
+ if (F === L) return [$, F];
762
+ var O = S($ -= 60 * (L - F) * 1e3, K);
763
+ return L === O ? [$, L] : [B - 60 * Math.min(L, O) * 1e3, Math.max(L, O)];
764
+ })(u.utc(m, d).valueOf(), I, T), _ = b[0], U = b[1], M = u(_).utcOffset(U);
765
+ return M.$x.$timezone = T, M;
766
766
  }, u.tz.guess = function() {
767
767
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
768
768
  }, u.tz.setDefault = function(m) {
@@ -774,9 +774,9 @@ function sn() {
774
774
  }
775
775
  var un = sn();
776
776
  const cn = /* @__PURE__ */ j(un);
777
- var Se = { exports: {} }, ln = Se.exports, Ve;
777
+ var Se = { exports: {} }, ln = Se.exports, Ye;
778
778
  function fn() {
779
- return Ve || (Ve = 1, (function(i, e) {
779
+ return Ye || (Ye = 1, (function(i, e) {
780
780
  (function(n, t) {
781
781
  i.exports = t();
782
782
  })(ln, (function() {
@@ -784,11 +784,11 @@ function fn() {
784
784
  return function(s, u, c) {
785
785
  var h = u.prototype;
786
786
  c.utc = function(d) {
787
- var M = { date: d, utc: !0, args: arguments };
788
- return new u(M);
787
+ var T = { date: d, utc: !0, args: arguments };
788
+ return new u(T);
789
789
  }, h.utc = function(d) {
790
- var M = c(this.toDate(), { locale: this.$L, utc: !0 });
791
- return d ? M.add(this.utcOffset(), n) : M;
790
+ var T = c(this.toDate(), { locale: this.$L, utc: !0 });
791
+ return d ? T.add(this.utcOffset(), n) : T;
792
792
  }, h.local = function() {
793
793
  return c(this.toDate(), { locale: this.$L, utc: !1 });
794
794
  };
@@ -804,27 +804,27 @@ function fn() {
804
804
  } else A.call(this);
805
805
  };
806
806
  var y = h.utcOffset;
807
- h.utcOffset = function(d, M) {
807
+ h.utcOffset = function(d, T) {
808
808
  var I = this.$utils().u;
809
809
  if (I(d)) return this.$u ? 0 : I(this.$offset) ? y.call(this) : this.$offset;
810
- if (typeof d == "string" && (d = (function(T) {
811
- T === void 0 && (T = "");
812
- var B = T.match(t);
810
+ if (typeof d == "string" && (d = (function(M) {
811
+ M === void 0 && (M = "");
812
+ var B = M.match(t);
813
813
  if (!B) return null;
814
- var F = ("" + B[0]).match(r) || ["-", 0, 0], K = F[0], U = 60 * +F[1] + +F[2];
815
- return U === 0 ? 0 : K === "+" ? U : -U;
814
+ var F = ("" + B[0]).match(r) || ["-", 0, 0], K = F[0], $ = 60 * +F[1] + +F[2];
815
+ return $ === 0 ? 0 : K === "+" ? $ : -$;
816
816
  })(d), d === null)) return this;
817
817
  var b = Math.abs(d) <= 16 ? 60 * d : d;
818
- if (b === 0) return this.utc(M);
818
+ if (b === 0) return this.utc(T);
819
819
  var _ = this.clone();
820
- if (M) return _.$offset = b, _.$u = !1, _;
821
- var $ = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
822
- return (_ = this.local().add(b + $, n)).$offset = b, _.$x.$localOffset = $, _;
820
+ if (T) return _.$offset = b, _.$u = !1, _;
821
+ var U = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
822
+ return (_ = this.local().add(b + U, n)).$offset = b, _.$x.$localOffset = U, _;
823
823
  };
824
824
  var m = h.format;
825
825
  h.format = function(d) {
826
- var M = d || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
827
- return m.call(this, M);
826
+ var T = d || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
827
+ return m.call(this, T);
828
828
  }, h.valueOf = function() {
829
829
  var d = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
830
830
  return this.$d.valueOf() - 6e4 * d;
@@ -840,10 +840,10 @@ function fn() {
840
840
  return d === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : C.call(this);
841
841
  };
842
842
  var E = h.diff;
843
- h.diff = function(d, M, I) {
844
- if (d && this.$u === d.$u) return E.call(this, d, M, I);
843
+ h.diff = function(d, T, I) {
844
+ if (d && this.$u === d.$u) return E.call(this, d, T, I);
845
845
  var b = this.local(), _ = c(d).local();
846
- return E.call(b, _, M, I);
846
+ return E.call(b, _, T, I);
847
847
  };
848
848
  };
849
849
  }));
@@ -882,16 +882,16 @@ function gn() {
882
882
  })(Ae)), Ae.exports;
883
883
  }
884
884
  gn();
885
- z.extend(Dt);
886
- z.extend(Lt);
887
- z.extend($t);
888
- z.extend(Ft);
889
- z.extend(Zt);
890
- z.extend(qt);
891
- z.extend(en);
892
- z.extend(on);
893
- z.extend(cn);
894
- z.extend(hn);
885
+ W.extend(Dt);
886
+ W.extend(Lt);
887
+ W.extend(Ut);
888
+ W.extend(Ft);
889
+ W.extend(Zt);
890
+ W.extend(qt);
891
+ W.extend(en);
892
+ W.extend(on);
893
+ W.extend(cn);
894
+ W.extend(hn);
895
895
  function J(i) {
896
896
  if (i === null || typeof i != "object")
897
897
  return !1;
@@ -940,21 +940,21 @@ function ze(i, ...e) {
940
940
  t != null && be(i, t, n);
941
941
  return i;
942
942
  }
943
- const Y = [];
943
+ const V = [];
944
944
  for (let i = 0; i < 256; ++i)
945
- Y.push((i + 256).toString(16).slice(1));
945
+ V.push((i + 256).toString(16).slice(1));
946
946
  function wn(i, e = 0) {
947
- return (Y[i[e + 0]] + Y[i[e + 1]] + Y[i[e + 2]] + Y[i[e + 3]] + "-" + Y[i[e + 4]] + Y[i[e + 5]] + "-" + Y[i[e + 6]] + Y[i[e + 7]] + "-" + Y[i[e + 8]] + Y[i[e + 9]] + "-" + Y[i[e + 10]] + Y[i[e + 11]] + Y[i[e + 12]] + Y[i[e + 13]] + Y[i[e + 14]] + Y[i[e + 15]]).toLowerCase();
947
+ return (V[i[e + 0]] + V[i[e + 1]] + V[i[e + 2]] + V[i[e + 3]] + "-" + V[i[e + 4]] + V[i[e + 5]] + "-" + V[i[e + 6]] + V[i[e + 7]] + "-" + V[i[e + 8]] + V[i[e + 9]] + "-" + V[i[e + 10]] + V[i[e + 11]] + V[i[e + 12]] + V[i[e + 13]] + V[i[e + 14]] + V[i[e + 15]]).toLowerCase();
948
948
  }
949
- let Te;
949
+ let Me;
950
950
  const vn = new Uint8Array(16);
951
951
  function Sn() {
952
- if (!Te) {
952
+ if (!Me) {
953
953
  if (typeof crypto > "u" || !crypto.getRandomValues)
954
954
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
955
- Te = crypto.getRandomValues.bind(crypto);
955
+ Me = crypto.getRandomValues.bind(crypto);
956
956
  }
957
- return Te(vn);
957
+ return Me(vn);
958
958
  }
959
959
  const Rn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), We = { randomUUID: Rn };
960
960
  function An(i, e, n) {
@@ -976,7 +976,6 @@ class ne {
976
976
  maxCallCount: 20,
977
977
  minCallCount: 1
978
978
  };
979
- pollings = {};
980
979
  events = {
981
980
  complete: () => {
982
981
  },
@@ -985,34 +984,22 @@ class ne {
985
984
  error: () => {
986
985
  }
987
986
  };
987
+ pollings = {};
988
988
  static getInstance() {
989
989
  return ne.instance || (ne.instance = new ne()), ne.instance;
990
990
  }
991
+ on(e, n) {
992
+ this.events[e] = n;
993
+ }
991
994
  poll(e, n) {
992
995
  const t = this.buildPollerOptions(n);
993
996
  return this.storeCurrentPolling(t), this.isActivePoller(t) && e().then((r) => this.onRequest(r, e, t)).catch((r) => {
994
997
  this.dispatch("error", r);
995
998
  }), this;
996
999
  }
997
- on(e, n) {
998
- this.events[e] = n;
999
- }
1000
1000
  stop(e) {
1001
1001
  e && this.pollings[e] && delete this.pollings[e];
1002
1002
  }
1003
- dispatch(e, n) {
1004
- this.events[e](n);
1005
- }
1006
- async onRequest(e, n, t) {
1007
- const r = w(e ?? {}, v.Camel);
1008
- this.isActivePoller(t) && (this.isInProgress(r) && t.callCount && t.maxCallCount && t.callCount < t.maxCallCount || !this.isInProgress(r) && t.callCount && t.minCallCount && t.callCount < t.minCallCount ? (this.isInProgress(r) || (r.meta = r.meta || {}, r.meta.status = "IN_PROGRESS"), t.callCount += 1, this.dispatch("data", r), t.interval && await this.pause(t), this.poll(n, t)) : this.isInProgress(r) ? (r.meta = r.meta || {}, r.meta.status = "COMPLETE", this.onComplete(r, t)) : this.onComplete(r, t));
1009
- }
1010
- onComplete(e, n) {
1011
- this.dispatch("data", e), this.dispatch("complete", e), this.removeCurrentPolling(n);
1012
- }
1013
- isInProgress(e) {
1014
- return (e?.meta?.status ?? "") !== "COMPLETE";
1015
- }
1016
1003
  buildPollerOptions(e) {
1017
1004
  const n = Object.entries(e).reduce((t, [r, s]) => {
1018
1005
  if (s !== void 0) {
@@ -1026,12 +1013,22 @@ class ne {
1026
1013
  ...n
1027
1014
  };
1028
1015
  }
1029
- storeCurrentPolling(e) {
1030
- e.type && !e.uuid && (e.uuid = Cn(), this.pollings[e.type] = e.uuid);
1016
+ dispatch(e, n) {
1017
+ this.events[e](n);
1031
1018
  }
1032
1019
  isActivePoller(e) {
1033
1020
  return e.type ? !!this.pollings[e.type] && this.pollings[e.type] === e.uuid : !0;
1034
1021
  }
1022
+ isInProgress(e) {
1023
+ return (e?.meta?.status ?? "") !== "COMPLETE";
1024
+ }
1025
+ onComplete(e, n) {
1026
+ this.dispatch("data", e), this.dispatch("complete", e), this.removeCurrentPolling(n);
1027
+ }
1028
+ async onRequest(e, n, t) {
1029
+ const r = w(e ?? {}, v.Camel);
1030
+ this.isActivePoller(t) && (this.isInProgress(r) && t.callCount && t.maxCallCount && t.callCount < t.maxCallCount || !this.isInProgress(r) && t.callCount && t.minCallCount && t.callCount < t.minCallCount ? (this.isInProgress(r) || (r.meta = r.meta || {}, r.meta.status = "IN_PROGRESS"), t.callCount += 1, this.dispatch("data", r), t.interval && await this.pause(t), this.poll(n, t)) : this.isInProgress(r) ? (r.meta = r.meta || {}, r.meta.status = "COMPLETE", this.onComplete(r, t)) : this.onComplete(r, t));
1031
+ }
1035
1032
  pause(e) {
1036
1033
  return new Promise((n) => {
1037
1034
  setTimeout(n, e.interval);
@@ -1040,6 +1037,9 @@ class ne {
1040
1037
  removeCurrentPolling(e) {
1041
1038
  e.type && this.pollings[e.type] && delete this.pollings[e.type];
1042
1039
  }
1040
+ storeCurrentPolling(e) {
1041
+ e.type && !e.uuid && (e.uuid = Cn(), this.pollings[e.type] = e.uuid);
1042
+ }
1043
1043
  }
1044
1044
  function rt(i, e, n) {
1045
1045
  const t = ne.getInstance();
@@ -1053,8 +1053,8 @@ function rt(i, e, n) {
1053
1053
  });
1054
1054
  });
1055
1055
  }
1056
- const Mn = "http://localhost".replace(/\/+$/, ""), Tn = (i) => typeof Blob < "u" && i instanceof Blob;
1057
- class W {
1056
+ const Tn = "http://localhost".replace(/\/+$/, ""), Mn = (i) => typeof Blob < "u" && i instanceof Blob;
1057
+ class z {
1058
1058
  constructor(e = new it()) {
1059
1059
  this.configuration = e, this.middleware = e.middleware;
1060
1060
  }
@@ -1080,7 +1080,7 @@ class W {
1080
1080
  createFetchParams(e, n) {
1081
1081
  let t = this.configuration.basePath + e.path;
1082
1082
  e.query !== void 0 && Object.keys(e.query).length !== 0 && (t += "?" + this.configuration.queryParamsStringify(e.query));
1083
- const r = typeof FormData < "u" && e.body instanceof FormData || e.body instanceof URLSearchParams || Tn(e.body) ? e.body : JSON.stringify(e.body), s = Object.assign({}, this.configuration.headers, e.headers);
1083
+ const r = typeof FormData < "u" && e.body instanceof FormData || e.body instanceof URLSearchParams || Mn(e.body) ? e.body : JSON.stringify(e.body), s = Object.assign({}, this.configuration.headers, e.headers);
1084
1084
  Object.keys(s).forEach((c) => s[c] === void 0 ? delete s[c] : {});
1085
1085
  const u = {
1086
1086
  method: e.method,
@@ -1124,13 +1124,13 @@ class On extends Error {
1124
1124
  }
1125
1125
  name = "ResponseError";
1126
1126
  }
1127
- class N extends Error {
1127
+ class P extends Error {
1128
1128
  constructor(e, n) {
1129
1129
  super(n), this.field = e;
1130
1130
  }
1131
1131
  name = "RequiredError";
1132
1132
  }
1133
- const qn = {
1133
+ const jn = {
1134
1134
  csv: ",",
1135
1135
  ssv: " ",
1136
1136
  tsv: " ",
@@ -1141,7 +1141,7 @@ class it {
1141
1141
  this.configuration = e;
1142
1142
  }
1143
1143
  get basePath() {
1144
- return this.configuration.basePath != null ? this.configuration.basePath : Mn;
1144
+ return this.configuration.basePath != null ? this.configuration.basePath : Tn;
1145
1145
  }
1146
1146
  get fetchApi() {
1147
1147
  return this.configuration.fetchApi;
@@ -1175,7 +1175,7 @@ class it {
1175
1175
  return this.configuration.credentials;
1176
1176
  }
1177
1177
  }
1178
- function jn(i, e) {
1178
+ function zn(i, e) {
1179
1179
  const n = i[e];
1180
1180
  return n != null;
1181
1181
  }
@@ -1189,19 +1189,19 @@ function ot(i, e = "") {
1189
1189
  return r instanceof Date ? `${encodeURIComponent(t)}=${encodeURIComponent(r.toISOString())}` : r instanceof Object ? ot(r, t) : `${encodeURIComponent(t)}=${encodeURIComponent(String(r))}`;
1190
1190
  }).filter((n) => n.length > 0).join("&");
1191
1191
  }
1192
- function zn(i, e) {
1192
+ function Wn(i, e) {
1193
1193
  return Object.keys(i).reduce(
1194
1194
  (n, t) => ({ ...n, [t]: e(i[t]) }),
1195
1195
  {}
1196
1196
  );
1197
1197
  }
1198
- function Wn(i) {
1198
+ function Zn(i) {
1199
1199
  for (const e of i)
1200
1200
  if (e.contentType === "multipart/form-data")
1201
1201
  return !0;
1202
1202
  return !1;
1203
1203
  }
1204
- class P {
1204
+ class x {
1205
1205
  constructor(e, n = (t) => t) {
1206
1206
  this.raw = e, this.transformer = n;
1207
1207
  }
@@ -1209,14 +1209,14 @@ class P {
1209
1209
  return this.transformer(await this.raw.json());
1210
1210
  }
1211
1211
  }
1212
- class Zn {
1212
+ class Jn {
1213
1213
  constructor(e) {
1214
1214
  this.raw = e;
1215
1215
  }
1216
1216
  async value() {
1217
1217
  }
1218
1218
  }
1219
- class Jn {
1219
+ class Xn {
1220
1220
  constructor(e) {
1221
1221
  this.raw = e;
1222
1222
  }
@@ -1232,23 +1232,23 @@ class kn {
1232
1232
  return await this.raw.text();
1233
1233
  }
1234
1234
  }
1235
- const Xn = {
1235
+ const Qn = {
1236
1236
  CreditCard: "CREDIT_CARD"
1237
- }, Qn = {
1238
- Coupon: "COUPON"
1239
1237
  }, er = {
1240
- DepositAccount: "DEPOSIT_ACCOUNT"
1238
+ Coupon: "COUPON"
1241
1239
  }, tr = {
1242
- PayLater: "PAY_LATER"
1240
+ DepositAccount: "DEPOSIT_ACCOUNT"
1243
1241
  }, nr = {
1242
+ PayLater: "PAY_LATER"
1243
+ }, rr = {
1244
1244
  Disabled: "DISABLED",
1245
1245
  Enabled: "ENABLED",
1246
1246
  Forced: "FORCED"
1247
- }, rr = {
1247
+ }, ir = {
1248
1248
  Disabled: "DISABLED",
1249
1249
  Enabled: "ENABLED",
1250
1250
  Forced: "FORCED"
1251
- }, ir = {
1251
+ }, or = {
1252
1252
  Cx: "bkg-cx",
1253
1253
  Cf: "bkg-cf",
1254
1254
  Created: "bkg-created",
@@ -1257,7 +1257,7 @@ const Xn = {
1257
1257
  Pc: "bkg-pc",
1258
1258
  Pp: "bkg-pp",
1259
1259
  Qr: "bkg-qr"
1260
- }, or = {
1260
+ }, ar = {
1261
1261
  DeDe: "de-DE",
1262
1262
  EnUs: "en-US",
1263
1263
  EsEs: "es-ES",
@@ -1265,7 +1265,7 @@ const Xn = {
1265
1265
  ItIt: "it-IT",
1266
1266
  NlNl: "nl-NL",
1267
1267
  PtPt: "pt-PT"
1268
- }, ar = {
1268
+ }, sr = {
1269
1269
  DeDe: "de-DE",
1270
1270
  EnUs: "en-US",
1271
1271
  EsEs: "es-ES",
@@ -1273,14 +1273,14 @@ const Xn = {
1273
1273
  ItIt: "it-IT",
1274
1274
  NlNl: "nl-NL",
1275
1275
  PtPt: "pt-PT"
1276
- }, sr = {
1276
+ }, ur = {
1277
1277
  Dr: "dr",
1278
1278
  Mr: "mr",
1279
1279
  Mrs: "mrs",
1280
1280
  Ms: "ms",
1281
1281
  NotSpecified: "notSpecified",
1282
1282
  Prof: "prof"
1283
- }, ur = {
1283
+ }, cr = {
1284
1284
  Ad: "AD",
1285
1285
  Ae: "AE",
1286
1286
  Af: "AF",
@@ -1524,7 +1524,7 @@ const Xn = {
1524
1524
  Za: "ZA",
1525
1525
  Zm: "ZM",
1526
1526
  Zw: "ZW"
1527
- }, cr = {
1527
+ }, lr = {
1528
1528
  Aed: "AED",
1529
1529
  Afn: "AFN",
1530
1530
  All: "ALL",
@@ -1663,7 +1663,7 @@ const Xn = {
1663
1663
  Yer: "YER",
1664
1664
  Zar: "ZAR",
1665
1665
  Zmw: "ZMW"
1666
- }, lr = {
1666
+ }, fr = {
1667
1667
  ApiError: "api_error",
1668
1668
  BadGateway: "bad_gateway",
1669
1669
  InternalServerError: "internal_server_error",
@@ -1673,23 +1673,23 @@ const Xn = {
1673
1673
  ResourceNotFound: "resource_not_found",
1674
1674
  Unauthorized: "unauthorized",
1675
1675
  ValidationError: "validation_error"
1676
- }, fr = {
1676
+ }, dr = {
1677
1677
  Included: "INCLUDED",
1678
1678
  NotIncluded: "NOT_INCLUDED",
1679
1679
  Optional: "OPTIONAL"
1680
- }, dr = {
1680
+ }, hr = {
1681
1681
  BestMatch: "BEST_MATCH",
1682
1682
  Cheapest: "CHEAPEST",
1683
1683
  MatchingRoomCount: "MATCHING_ROOM_COUNT",
1684
1684
  Regular: "REGULAR"
1685
- }, hr = {
1685
+ }, pr = {
1686
1686
  Included: "included",
1687
1687
  NotIncluded: "not_included",
1688
1688
  Unknown: "unknown"
1689
- }, pr = {
1689
+ }, mr = {
1690
1690
  HotelRoom: "HOTEL_ROOM",
1691
1691
  Package: "PACKAGE"
1692
- }, mr = {
1692
+ }, yr = {
1693
1693
  DeDe: "de-DE",
1694
1694
  EnUs: "en-US",
1695
1695
  EsEs: "es-ES",
@@ -1697,29 +1697,29 @@ const Xn = {
1697
1697
  ItIt: "it-IT",
1698
1698
  NlNl: "nl-NL",
1699
1699
  PtPt: "pt-PT"
1700
- }, yr = {
1700
+ }, gr = {
1701
1701
  CreditNote: "credit_note",
1702
1702
  Invoice: "invoice"
1703
- }, gr = {
1704
- CreditCard: "CREDIT_CARD"
1705
1703
  }, wr = {
1706
- Coupon: "COUPON"
1704
+ CreditCard: "CREDIT_CARD"
1707
1705
  }, vr = {
1708
- DepositAccount: "DEPOSIT_ACCOUNT"
1706
+ Coupon: "COUPON"
1709
1707
  }, Sr = {
1710
- PayLater: "PAY_LATER"
1708
+ DepositAccount: "DEPOSIT_ACCOUNT"
1711
1709
  }, Rr = {
1710
+ PayLater: "PAY_LATER"
1711
+ }, Ar = {
1712
1712
  Disabled: "DISABLED",
1713
1713
  Enabled: "ENABLED",
1714
1714
  Forced: "FORCED"
1715
- }, Ar = {
1715
+ }, Cr = {
1716
1716
  Coupon: "COUPON",
1717
1717
  CreditCard: "CREDIT_CARD",
1718
1718
  DepositAccount: "DEPOSIT_ACCOUNT"
1719
- }, Cr = {
1719
+ }, Er = {
1720
1720
  Complete: "COMPLETE",
1721
1721
  InProgress: "IN_PROGRESS"
1722
- }, Er = {
1722
+ }, Tr = {
1723
1723
  Ad: "AD",
1724
1724
  Ae: "AE",
1725
1725
  Af: "AF",
@@ -1966,17 +1966,17 @@ const Xn = {
1966
1966
  }, Mr = {
1967
1967
  Night: "PER_NIGHT",
1968
1968
  Stay: "PER_STAY"
1969
- }, Tr = {
1969
+ }, Or = {
1970
1970
  Adult: "PER_ADULT",
1971
1971
  Booking: "PER_BOOKING"
1972
1972
  };
1973
- class _n extends W {
1973
+ class _n extends z {
1974
1974
  /**
1975
1975
  * Get Booking Policy
1976
1976
  */
1977
1977
  async retrieveRaw(e, n) {
1978
1978
  if (e.id === null || e.id === void 0)
1979
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");
1979
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");
1980
1980
  const t = {}, r = {};
1981
1981
  this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
1982
1982
  const s = await this.request({
@@ -1985,7 +1985,7 @@ class _n extends W {
1985
1985
  headers: r,
1986
1986
  query: w(t, v.Snake)
1987
1987
  }, n);
1988
- return await new P(s, (u) => w(u, v.Camel)).value();
1988
+ return await new x(s, (u) => w(u, v.Camel)).value();
1989
1989
  }
1990
1990
  /**
1991
1991
  * Get Booking Policy
@@ -1999,7 +1999,7 @@ class _n extends W {
1999
1999
  */
2000
2000
  async paymentMethodsRaw(e, n) {
2001
2001
  if (e.id === null || e.id === void 0)
2002
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");
2002
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");
2003
2003
  const t = {}, r = {};
2004
2004
  this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2005
2005
  const s = await this.request({
@@ -2008,7 +2008,7 @@ class _n extends W {
2008
2008
  headers: r,
2009
2009
  query: w(t, v.Snake)
2010
2010
  }, n);
2011
- return new P(s, (u) => w(u, v.Camel)).value();
2011
+ return new x(s, (u) => w(u, v.Camel)).value();
2012
2012
  }
2013
2013
  /**
2014
2014
  * Retrieve payment methods for a booking policy
@@ -2031,7 +2031,7 @@ class _n extends W {
2031
2031
  query: w(t, v.Snake),
2032
2032
  body: w(e.bookingPoliciesCreateApi, v.Snake)
2033
2033
  }, n);
2034
- return await new P(s, (u) => w(u, v.Camel)).value();
2034
+ return await new x(s, (u) => w(u, v.Camel)).value();
2035
2035
  }
2036
2036
  /**
2037
2037
  * In order to be able to create and confirm a booking against a specific **Hotel Room Offer** package, you need to make a booking policy call. Retrieving a booking policy returns additional information about the booking being made and includes details like cancellation policies. This API call is equivalent to an availability check and it is important not to let long periods between retrieval of this policy and the booking confirmation call itself as this will often reduce the likelihood of the **Hotel Room Offer** being successfully booked. The **booking_policy_id** returned is meant to be used to carry out a pre-book call via **[Pre Book endpoint](/v1/documentation#operation/postV1Bookings)** on the next **Booking Flow** step. ⚠️ This call may take from 1 second up to 15 seconds to return as we may request various suppliers to fulfill this request.
@@ -2041,21 +2041,21 @@ class _n extends W {
2041
2041
  return this.createRaw(e, n);
2042
2042
  }
2043
2043
  }
2044
- class Dn extends W {
2044
+ class Dn extends z {
2045
2045
  /**
2046
2046
  * Cancel a confirmed Booking. A booking can only be cancelled if it\'s in one of the following status: **bkg-cf**, **bkg-pc**.
2047
2047
  * Cancel a Booking
2048
2048
  */
2049
2049
  async deleteRaw(e, n) {
2050
2050
  if (e.token === null || e.token === void 0)
2051
- throw new N("token", "Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");
2051
+ throw new P("token", "Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");
2052
2052
  const t = {}, r = {}, s = await this.request({
2053
2053
  path: "/v1/bookings/{token}".replace("{token}", encodeURIComponent(String(e.token))),
2054
2054
  method: "DELETE",
2055
2055
  headers: r,
2056
2056
  query: w(t, v.Snake)
2057
2057
  }, n);
2058
- return await new P(s, (u) => w(u, v.Camel)).value();
2058
+ return await new x(s, (u) => w(u, v.Camel)).value();
2059
2059
  }
2060
2060
  /**
2061
2061
  * Cancel a confirmed Booking. A booking can only be cancelled if it\'s in one of the following status: **bkg-cf**, **bkg-pc**.
@@ -2079,7 +2079,7 @@ class Dn extends W {
2079
2079
  headers: r,
2080
2080
  query: w(t, v.Snake)
2081
2081
  }, n);
2082
- return await new P(s, (u) => w(u, v.Camel)).value();
2082
+ return await new x(s, (u) => w(u, v.Camel)).value();
2083
2083
  }
2084
2084
  /**
2085
2085
  * Returns a list of detailed bookings made on behalf of a specific API Key credential.
@@ -2094,7 +2094,7 @@ class Dn extends W {
2094
2094
  */
2095
2095
  async retrieveRaw(e, n) {
2096
2096
  if (e.id === null || e.id === void 0)
2097
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");
2097
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");
2098
2098
  const t = {}, r = {};
2099
2099
  this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2100
2100
  const s = await this.request({
@@ -2103,7 +2103,7 @@ class Dn extends W {
2103
2103
  headers: r,
2104
2104
  query: w(t, v.Snake)
2105
2105
  }, n);
2106
- return await new P(s, (u) => w(u, v.Camel)).value();
2106
+ return await new x(s, (u) => w(u, v.Camel)).value();
2107
2107
  }
2108
2108
  /**
2109
2109
  * Retrieve the status and information of a booking.
@@ -2118,14 +2118,14 @@ class Dn extends W {
2118
2118
  */
2119
2119
  async retrievePublicRaw(e, n) {
2120
2120
  if (e.token === null || e.token === void 0)
2121
- throw new N("token", "Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");
2121
+ throw new P("token", "Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");
2122
2122
  const t = {}, r = {}, s = await this.request({
2123
2123
  path: "/v1/bookings/{token}/public".replace("{token}", encodeURIComponent(String(e.token))),
2124
2124
  method: "GET",
2125
2125
  headers: r,
2126
2126
  query: w(t, v.Snake)
2127
2127
  }, n);
2128
- return await new P(s, (u) => w(u, v.Camel)).value();
2128
+ return await new x(s, (u) => w(u, v.Camel)).value();
2129
2129
  }
2130
2130
  /**
2131
2131
  * Retrieve the status and information of a booking based on a valid token. This endpoint is public and does not require a secret API key.
@@ -2148,7 +2148,7 @@ class Dn extends W {
2148
2148
  query: w(t, v.Snake),
2149
2149
  body: w(e.bookingCreateApi, v.Snake)
2150
2150
  }, n);
2151
- return await new P(s, (u) => w(u, v.Camel)).value();
2151
+ return await new x(s, (u) => w(u, v.Camel)).value();
2152
2152
  }
2153
2153
  /**
2154
2154
  * Creates an unconfirmed booking
@@ -2163,9 +2163,9 @@ class Dn extends W {
2163
2163
  */
2164
2164
  async couponChargeRaw(e, n) {
2165
2165
  if (e.couponId === null || e.couponId === void 0)
2166
- throw new N("couponId", "Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");
2166
+ throw new P("couponId", "Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");
2167
2167
  if (e.id === null || e.id === void 0)
2168
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");
2168
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");
2169
2169
  const t = {}, r = {};
2170
2170
  this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2171
2171
  const s = await this.request({
@@ -2174,7 +2174,7 @@ class Dn extends W {
2174
2174
  headers: r,
2175
2175
  query: w(t, v.Snake)
2176
2176
  }, n);
2177
- return await new P(s, (u) => w(u, v.Camel)).value();
2177
+ return await new x(s, (u) => w(u, v.Camel)).value();
2178
2178
  }
2179
2179
  /**
2180
2180
  * Confirm booking from Coupon payment method
@@ -2189,7 +2189,7 @@ class Dn extends W {
2189
2189
  */
2190
2190
  async paylaterRaw(e, n) {
2191
2191
  if (e.id === null || e.id === void 0)
2192
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");
2192
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");
2193
2193
  const t = {}, r = {};
2194
2194
  this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2195
2195
  const s = await this.request({
@@ -2198,7 +2198,7 @@ class Dn extends W {
2198
2198
  headers: r,
2199
2199
  query: w(t, v.Snake)
2200
2200
  }, n);
2201
- return await new P(s, (u) => w(u, v.Camel)).value();
2201
+ return await new x(s, (u) => w(u, v.Camel)).value();
2202
2202
  }
2203
2203
  /**
2204
2204
  * Pay later and retrieve the status and information of a booking.
@@ -2213,7 +2213,7 @@ class Dn extends W {
2213
2213
  */
2214
2214
  async confirmpaylaterRaw(e, n) {
2215
2215
  if (e.id === null || e.id === void 0)
2216
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");
2216
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");
2217
2217
  const t = {}, r = {};
2218
2218
  this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2219
2219
  const s = await this.request({
@@ -2222,7 +2222,7 @@ class Dn extends W {
2222
2222
  headers: r,
2223
2223
  query: w(t, v.Snake)
2224
2224
  }, n);
2225
- return await new P(s, (u) => w(u, v.Camel)).value();
2225
+ return await new x(s, (u) => w(u, v.Camel)).value();
2226
2226
  }
2227
2227
  /**
2228
2228
  * Confirm later paid and retrieve the status and information of a booking.
@@ -2237,7 +2237,7 @@ class Dn extends W {
2237
2237
  */
2238
2238
  async confirmRaw(e, n) {
2239
2239
  if (e.id === null || e.id === void 0)
2240
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");
2240
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");
2241
2241
  const t = {}, r = {};
2242
2242
  this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2243
2243
  const s = await this.request({
@@ -2246,7 +2246,7 @@ class Dn extends W {
2246
2246
  headers: r,
2247
2247
  query: w(t, v.Snake)
2248
2248
  }, n);
2249
- return await new P(s, (u) => w(u, v.Camel)).value();
2249
+ return await new x(s, (u) => w(u, v.Camel)).value();
2250
2250
  }
2251
2251
  /**
2252
2252
  * Trigger the actual booking confirmation process. 💡 This endpoint is only available for Bookings in the **bkg-created** status. ⚠️ The booking confirmation is an asynchronous process. The booking won\'t transition immediatly to **bkg-cf** status. Rather, the endpoint will return a booking in **bkg-ip** and you\'ll be required to check booking status calling **[Get Booking endpoint](/v1/documentation#operation/getV1BookingsId)**, ideally with a polling mechanism, and perform further action(s), whether you need to let your customer know about their booking or you just need to update some data on your system, when booking status transitions to **bkg-cf** (confirmed) or **bkg-af** (fail). ⚠️ Once you have called this endpoint, we immediatly send your confirmation request to our supplier(s) and they may confirm it immediatly, so you\'ll be liable for up to the total booking tax included price amount if you need to cancel it at a later time (refer to the booking\'s cancellation policies to get the actual current penalty percentage applied in case of cancellation).
@@ -2261,7 +2261,7 @@ class Dn extends W {
2261
2261
  */
2262
2262
  async updatePaymentMethodsRaw(e, n) {
2263
2263
  if (e.id === null || e.id === void 0)
2264
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");
2264
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");
2265
2265
  const t = {}, r = {};
2266
2266
  r["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2267
2267
  const s = await this.request({
@@ -2271,7 +2271,7 @@ class Dn extends W {
2271
2271
  query: w(t, v.Snake),
2272
2272
  body: w(e.paymentMethodUpdatePayloadApi, v.Snake)
2273
2273
  }, n);
2274
- return await new P(s, (u) => w(u, v.Camel)).value();
2274
+ return await new x(s, (u) => w(u, v.Camel)).value();
2275
2275
  }
2276
2276
  /**
2277
2277
  * Updates an ongoing Booking payment methods
@@ -2281,22 +2281,22 @@ class Dn extends W {
2281
2281
  return this.updatePaymentMethodsRaw(e, n);
2282
2282
  }
2283
2283
  }
2284
- const Or = {
2284
+ const kr = {
2285
2285
  CheckInDate: "check_in_date",
2286
2286
  CreatedAt: "created_at",
2287
2287
  LastStatusUpdatedAt: "last_status_updated_at"
2288
- }, kr = {
2288
+ }, _r = {
2289
2289
  Asc: "asc",
2290
2290
  Desc: "desc"
2291
2291
  };
2292
- class bn extends W {
2292
+ class bn extends z {
2293
2293
  /**
2294
2294
  * Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
2295
2295
  * Retrieve Images of an Hotel
2296
2296
  */
2297
2297
  async retrieveRaw(e, n) {
2298
2298
  if (e.id === null || e.id === void 0)
2299
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");
2299
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");
2300
2300
  const t = {};
2301
2301
  e.lang !== void 0 && (t.lang = e.lang);
2302
2302
  const r = {};
@@ -2307,7 +2307,7 @@ class bn extends W {
2307
2307
  headers: r,
2308
2308
  query: w(t, v.Snake)
2309
2309
  }, n);
2310
- return new P(s, (u) => w(u, v.Camel)).value();
2310
+ return new x(s, (u) => w(u, v.Camel)).value();
2311
2311
  }
2312
2312
  /**
2313
2313
  * Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
@@ -2317,7 +2317,7 @@ class bn extends W {
2317
2317
  return this.retrieveRaw(e, n);
2318
2318
  }
2319
2319
  }
2320
- const _r = {
2320
+ const Dr = {
2321
2321
  DeDe: "de-DE",
2322
2322
  EnUs: "en-US",
2323
2323
  EsEs: "es-ES",
@@ -2326,14 +2326,14 @@ const _r = {
2326
2326
  NlNl: "nl-NL",
2327
2327
  PtPt: "pt-PT"
2328
2328
  };
2329
- class In extends W {
2329
+ class In extends z {
2330
2330
  /**
2331
2331
  * Returns a single Hotel Offer Request by id
2332
2332
  * Retrieve a Single Hotel Offer Request
2333
2333
  */
2334
2334
  async retrieveRaw(e, n) {
2335
2335
  if (e.id === null || e.id === void 0)
2336
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");
2336
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");
2337
2337
  const t = {}, r = {};
2338
2338
  this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2339
2339
  const s = await this.request({
@@ -2342,7 +2342,7 @@ class In extends W {
2342
2342
  headers: r,
2343
2343
  query: w(t, v.Snake)
2344
2344
  }, n);
2345
- return await new P(s, (u) => w(u, v.Camel)).value();
2345
+ return await new x(s, (u) => w(u, v.Camel)).value();
2346
2346
  }
2347
2347
  /**
2348
2348
  * Returns a single Hotel Offer Request by id
@@ -2365,7 +2365,7 @@ class In extends W {
2365
2365
  query: w(t, v.Snake),
2366
2366
  body: w(e.hotelOfferRequestCreateApi, v.Snake)
2367
2367
  }, n);
2368
- return await new P(s, (u) => w(u, v.Camel)).value();
2368
+ return await new x(s, (u) => w(u, v.Camel)).value();
2369
2369
  }
2370
2370
  /**
2371
2371
  * Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
@@ -2375,16 +2375,16 @@ class In extends W {
2375
2375
  return this.createRaw(e, n);
2376
2376
  }
2377
2377
  }
2378
- class Bn extends W {
2378
+ class Bn extends z {
2379
2379
  /**
2380
2380
  * You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
2381
2381
  * ⚛️ Retrieve Hotel Offers
2382
2382
  */
2383
2383
  async listRaw(e, n) {
2384
2384
  if (e.currency === null || e.currency === void 0)
2385
- throw new N("currency", "Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");
2385
+ throw new P("currency", "Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");
2386
2386
  if (e.hotelOfferRequestId === null || e.hotelOfferRequestId === void 0)
2387
- throw new N("hotelOfferRequestId", "Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");
2387
+ throw new P("hotelOfferRequestId", "Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");
2388
2388
  const t = {};
2389
2389
  e.currency !== void 0 && (t.currency = e.currency), e.endingBefore !== void 0 && (t.ending_before = e.endingBefore), e.filterByPrice !== void 0 && (t.filter_by_price = e.filterByPrice), e.filterByReviewRating !== void 0 && (t.filter_by_review_rating = e.filterByReviewRating), e.filterByStar !== void 0 && (t.filter_by_star = e.filterByStar), e.hotelOfferRequestId !== void 0 && (t.hotel_offer_request_id = e.hotelOfferRequestId), e.hotelRoomOffersLimit !== void 0 && (t.hotel_room_offers_limit = e.hotelRoomOffersLimit), e.includeHotelContentDetails !== void 0 && (t.include_hotel_content_details = e.includeHotelContentDetails), e.lang !== void 0 && (t.lang = e.lang), e.limit !== void 0 && (t.limit = e.limit), e.onlyRecommendedHotelOffers !== void 0 && (t.only_recommended_hotel_offers = e.onlyRecommendedHotelOffers), e.priceHistogramStepCount !== void 0 && (t.price_histogram_step_count = e.priceHistogramStepCount), e.sortBy !== void 0 && (t.sort_by = e.sortBy), e.sortByOrder !== void 0 && (t.sort_by_order = e.sortByOrder), e.startingAfter !== void 0 && (t.starting_after = e.startingAfter);
2390
2390
  const r = {};
@@ -2395,7 +2395,7 @@ class Bn extends W {
2395
2395
  headers: r,
2396
2396
  query: w(t, v.Snake)
2397
2397
  }, n);
2398
- return await new P(s, (u) => w(u, v.Camel)).value();
2398
+ return await new x(s, (u) => w(u, v.Camel)).value();
2399
2399
  }
2400
2400
  /**
2401
2401
  * You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
@@ -2409,7 +2409,7 @@ class Bn extends W {
2409
2409
  );
2410
2410
  }
2411
2411
  }
2412
- const Dr = {
2412
+ const br = {
2413
2413
  DeDe: "de-DE",
2414
2414
  EnUs: "en-US",
2415
2415
  EsEs: "es-ES",
@@ -2417,24 +2417,61 @@ const Dr = {
2417
2417
  ItIt: "it-IT",
2418
2418
  NlNl: "nl-NL",
2419
2419
  PtPt: "pt-PT"
2420
- }, br = {
2420
+ }, Ir = {
2421
2421
  Distance: "distance",
2422
2422
  Price: "price",
2423
2423
  Rating: "rating",
2424
2424
  ReviewRating: "review_rating",
2425
2425
  TopPicks: "top_picks"
2426
- }, Ir = {
2426
+ }, Br = {
2427
2427
  Asc: "asc",
2428
2428
  Desc: "desc"
2429
2429
  };
2430
- class Ln extends W {
2430
+ class Ln extends z {
2431
+ /**
2432
+ * Returns a list of images for an Hotel Room OfferId with their content localize into the requested **lang**.
2433
+ * Retrieve Images of an Hotel Room Offer
2434
+ */
2435
+ async retrieveRaw(e, n) {
2436
+ if (e.id === null || e.id === void 0)
2437
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOffersIdImages.");
2438
+ const t = {};
2439
+ e.lang !== void 0 && (t.lang = e.lang);
2440
+ const r = {};
2441
+ this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2442
+ const s = await this.request({
2443
+ path: "/v1/hotel_room_offers/{id}/images".replace("{id}", encodeURIComponent(String(e.id))),
2444
+ method: "GET",
2445
+ headers: r,
2446
+ query: w(t, v.Snake)
2447
+ }, n);
2448
+ return await new x(s, (u) => w(u, v.Camel)).value();
2449
+ }
2450
+ /**
2451
+ * Returns a list of images for an Hotel Room OfferId with their content localize into the requested **lang**.
2452
+ * Retrieve Images of an Hotel Room Offer
2453
+ */
2454
+ async retrieve(e, n) {
2455
+ return this.retrieveRaw(e, n);
2456
+ }
2457
+ }
2458
+ const Lr = {
2459
+ DeDe: "de-DE",
2460
+ EnUs: "en-US",
2461
+ EsEs: "es-ES",
2462
+ FrFr: "fr-FR",
2463
+ ItIt: "it-IT",
2464
+ NlNl: "nl-NL",
2465
+ PtPt: "pt-PT"
2466
+ };
2467
+ class xn extends z {
2431
2468
  /**
2432
2469
  * Returns a single Hotel Room Offer Request by id
2433
2470
  * Retrieve a Single Hotel Room Offer Request
2434
2471
  */
2435
2472
  async retrieveRaw(e, n) {
2436
2473
  if (e.id === null || e.id === void 0)
2437
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");
2474
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");
2438
2475
  const t = {}, r = {};
2439
2476
  this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
2440
2477
  const s = await this.request({
@@ -2443,7 +2480,7 @@ class Ln extends W {
2443
2480
  headers: r,
2444
2481
  query: w(t, v.Snake)
2445
2482
  }, n);
2446
- return await new P(s, (u) => w(u, v.Camel)).value();
2483
+ return await new x(s, (u) => w(u, v.Camel)).value();
2447
2484
  }
2448
2485
  /**
2449
2486
  * Returns a single Hotel Room Offer Request by id
@@ -2466,7 +2503,7 @@ class Ln extends W {
2466
2503
  query: w(t, v.Snake),
2467
2504
  body: w(e.hotelRoomOfferRequestCreateApi, v.Snake)
2468
2505
  }, n);
2469
- return await new P(s, (u) => w(u, v.Camel)).value();
2506
+ return await new x(s, (u) => w(u, v.Camel)).value();
2470
2507
  }
2471
2508
  /**
2472
2509
  * To check available rates, or **Hotel Room Offers**, at a specific hotel, you first need to create an **Hotel Room Offer Request**. An **Hotel Room Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and the id of the hotel you want to check available rates at.
@@ -2476,16 +2513,16 @@ class Ln extends W {
2476
2513
  return this.createRaw(e, n);
2477
2514
  }
2478
2515
  }
2479
- class xn extends W {
2516
+ class Pn extends z {
2480
2517
  /**
2481
2518
  * You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
2482
2519
  * ⚛️ Retrieve Hotel Room Offers
2483
2520
  */
2484
2521
  async listRaw(e, n) {
2485
2522
  if (e.currency === null || e.currency === void 0)
2486
- throw new N("currency", "Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");
2523
+ throw new P("currency", "Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");
2487
2524
  if (e.hotelRoomOfferRequestId === null || e.hotelRoomOfferRequestId === void 0)
2488
- throw new N("hotelRoomOfferRequestId", "Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");
2525
+ throw new P("hotelRoomOfferRequestId", "Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");
2489
2526
  const t = {};
2490
2527
  e.currency !== void 0 && (t.currency = e.currency), e.hotelRoomOfferRequestId !== void 0 && (t.hotel_room_offer_request_id = e.hotelRoomOfferRequestId), e.lang !== void 0 && (t.lang = e.lang), e.limit !== void 0 && (t.limit = e.limit);
2491
2528
  const r = {};
@@ -2496,7 +2533,7 @@ class xn extends W {
2496
2533
  headers: r,
2497
2534
  query: w(t, v.Snake)
2498
2535
  }, n);
2499
- return await new P(s, (u) => w(u, v.Camel)).value();
2536
+ return await new x(s, (u) => w(u, v.Camel)).value();
2500
2537
  }
2501
2538
  /**
2502
2539
  * You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
@@ -2523,7 +2560,7 @@ class xn extends W {
2523
2560
  query: w(t, v.Snake),
2524
2561
  body: w(e.hotelRoomOffersCreateApi, v.Snake)
2525
2562
  }, n);
2526
- return await new P(s, (u) => w(u, v.Camel)).value();
2563
+ return await new x(s, (u) => w(u, v.Camel)).value();
2527
2564
  }
2528
2565
  /**
2529
2566
  * This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Check a specific **Hotel Room Offer** live availability - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
@@ -2533,7 +2570,7 @@ class xn extends W {
2533
2570
  return this.createRaw(e, n);
2534
2571
  }
2535
2572
  }
2536
- const Br = {
2573
+ const xr = {
2537
2574
  DeDe: "de-DE",
2538
2575
  EnUs: "en-US",
2539
2576
  EsEs: "es-ES",
@@ -2542,16 +2579,16 @@ const Br = {
2542
2579
  NlNl: "nl-NL",
2543
2580
  PtPt: "pt-PT"
2544
2581
  };
2545
- class Pn extends W {
2582
+ class Nn extends z {
2546
2583
  /**
2547
2584
  * Delete a hotel rooming list guest from a booking based on a valid token. This endpoint is public and does not require a secret API key.
2548
2585
  * Delete Hotel Room List Guest
2549
2586
  */
2550
2587
  async deleteRaw(e, n) {
2551
2588
  if (e.id === null || e.id === void 0)
2552
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");
2589
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");
2553
2590
  if (e.token === null || e.token === void 0)
2554
- throw new N("token", "Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");
2591
+ throw new P("token", "Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");
2555
2592
  const t = {}, r = {}, s = await this.request({
2556
2593
  path: "/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}", encodeURIComponent(String(e.id))).replace("{token}", encodeURIComponent(String(e.token))),
2557
2594
  method: "DELETE",
@@ -2573,9 +2610,9 @@ class Pn extends W {
2573
2610
  */
2574
2611
  async updateRaw(e, n) {
2575
2612
  if (e.id === null || e.id === void 0)
2576
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");
2613
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");
2577
2614
  if (e.token === null || e.token === void 0)
2578
- throw new N("token", "Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");
2615
+ throw new P("token", "Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");
2579
2616
  const t = {}, r = {};
2580
2617
  r["Content-Type"] = "application/json";
2581
2618
  const s = await this.request({
@@ -2585,7 +2622,7 @@ class Pn extends W {
2585
2622
  query: w(t, v.Snake),
2586
2623
  body: w(e.hotelRoomingListGuestsUpdateApi, v.Snake)
2587
2624
  }, n);
2588
- return await new P(s, (u) => w(u, v.Camel)).value();
2625
+ return await new x(s, (u) => w(u, v.Camel)).value();
2589
2626
  }
2590
2627
  /**
2591
2628
  * Update a hotel rooming list guest from a booking based on a valid token. This endpoint is public and does not require a secret API key.
@@ -2600,7 +2637,7 @@ class Pn extends W {
2600
2637
  */
2601
2638
  async createRaw(e, n) {
2602
2639
  if (e.token === null || e.token === void 0)
2603
- throw new N("token", "Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");
2640
+ throw new P("token", "Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");
2604
2641
  const t = {}, r = {};
2605
2642
  r["Content-Type"] = "application/json";
2606
2643
  const s = await this.request({
@@ -2610,7 +2647,7 @@ class Pn extends W {
2610
2647
  query: w(t, v.Snake),
2611
2648
  body: w(e.hotelRoomingListGuestsCreateApi, v.Snake)
2612
2649
  }, n);
2613
- return await new P(s, (u) => w(u, v.Camel)).value();
2650
+ return await new x(s, (u) => w(u, v.Camel)).value();
2614
2651
  }
2615
2652
  /**
2616
2653
  * Create a new hotel rooming list guest to a booking based on a valid token. This endpoint is public and does not require a secret API key.
@@ -2620,14 +2657,14 @@ class Pn extends W {
2620
2657
  return this.createRaw(e, n);
2621
2658
  }
2622
2659
  }
2623
- class Nn extends W {
2660
+ class Un extends z {
2624
2661
  /**
2625
2662
  * Get Hotel Rooming Lists of a booking. This endpoint is public and does not require a secret API key.
2626
2663
  * Get Hotel Rooming Lists for a booking
2627
2664
  */
2628
2665
  async listRaw(e, n) {
2629
2666
  if (e.token === null || e.token === void 0)
2630
- throw new N("token", "Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");
2667
+ throw new P("token", "Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");
2631
2668
  const t = {};
2632
2669
  e.lang !== void 0 && (t.lang = e.lang);
2633
2670
  const r = {}, s = await this.request({
@@ -2636,7 +2673,7 @@ class Nn extends W {
2636
2673
  headers: r,
2637
2674
  query: w(t, v.Snake)
2638
2675
  }, n);
2639
- return new P(s, (u) => w(u, v.Camel)).value();
2676
+ return new x(s, (u) => w(u, v.Camel)).value();
2640
2677
  }
2641
2678
  /**
2642
2679
  * Get Hotel Rooming Lists of a booking. This endpoint is public and does not require a secret API key.
@@ -2646,7 +2683,7 @@ class Nn extends W {
2646
2683
  return this.listRaw(e, n);
2647
2684
  }
2648
2685
  }
2649
- const Lr = {
2686
+ const Pr = {
2650
2687
  DeDe: "de-DE",
2651
2688
  EnUs: "en-US",
2652
2689
  EsEs: "es-ES",
@@ -2655,14 +2692,14 @@ const Lr = {
2655
2692
  NlNl: "nl-NL",
2656
2693
  PtPt: "pt-PT"
2657
2694
  };
2658
- class $n extends W {
2695
+ class $n extends z {
2659
2696
  /**
2660
2697
  * Returns a single Hotel by id with their content localize into the requested **lang**.
2661
2698
  * Retrieve a Hotel
2662
2699
  */
2663
2700
  async retrieveRaw(e, n) {
2664
2701
  if (e.id === null || e.id === void 0)
2665
- throw new N("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");
2702
+ throw new P("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");
2666
2703
  const t = {};
2667
2704
  e.event !== void 0 && (t.event = e.event), e.lang !== void 0 && (t.lang = e.lang);
2668
2705
  const r = {};
@@ -2673,7 +2710,7 @@ class $n extends W {
2673
2710
  headers: r,
2674
2711
  query: w(t, v.Snake)
2675
2712
  }, n);
2676
- return await new P(s, (u) => w(u, v.Camel)).value();
2713
+ return await new x(s, (u) => w(u, v.Camel)).value();
2677
2714
  }
2678
2715
  /**
2679
2716
  * Returns a single Hotel by id with their content localize into the requested **lang**.
@@ -2683,7 +2720,7 @@ class $n extends W {
2683
2720
  return this.retrieveRaw(e, n);
2684
2721
  }
2685
2722
  }
2686
- const xr = {
2723
+ const Nr = {
2687
2724
  DeDe: "de-DE",
2688
2725
  EnUs: "en-US",
2689
2726
  EsEs: "es-ES",
@@ -2693,7 +2730,7 @@ const xr = {
2693
2730
  PtPt: "pt-PT"
2694
2731
  };
2695
2732
  var ue = { exports: {} }, Ze;
2696
- function Un() {
2733
+ function Gn() {
2697
2734
  return Ze || (Ze = 1, (function(i, e) {
2698
2735
  var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof se < "u" && se, t = (function() {
2699
2736
  function s() {
@@ -2795,7 +2832,7 @@ function Un() {
2795
2832
  o.push([f, a]);
2796
2833
  }), E(o);
2797
2834
  }, h.iterable && (d.prototype[Symbol.iterator] = d.prototype.entries);
2798
- function M(o) {
2835
+ function T(o) {
2799
2836
  if (!o._noBody) {
2800
2837
  if (o.bodyUsed)
2801
2838
  return Promise.reject(new TypeError("Already read"));
@@ -2819,12 +2856,12 @@ function Un() {
2819
2856
  var a = new FileReader(), f = I(a), l = /charset=([A-Za-z0-9_-]+)/.exec(o.type), g = l ? l[1] : "utf-8";
2820
2857
  return a.readAsText(o, g), f;
2821
2858
  }
2822
- function $(o) {
2859
+ function U(o) {
2823
2860
  for (var a = new Uint8Array(o), f = new Array(a.length), l = 0; l < a.length; l++)
2824
2861
  f[l] = String.fromCharCode(a[l]);
2825
2862
  return f.join("");
2826
2863
  }
2827
- function T(o) {
2864
+ function M(o) {
2828
2865
  if (o.slice)
2829
2866
  return o.slice(0);
2830
2867
  var a = new Uint8Array(o.byteLength);
@@ -2832,9 +2869,9 @@ function Un() {
2832
2869
  }
2833
2870
  function B() {
2834
2871
  return this.bodyUsed = !1, this._initBody = function(o) {
2835
- this.bodyUsed = this.bodyUsed, this._bodyInit = o, o ? typeof o == "string" ? this._bodyText = o : h.blob && Blob.prototype.isPrototypeOf(o) ? this._bodyBlob = o : h.formData && FormData.prototype.isPrototypeOf(o) ? this._bodyFormData = o : h.searchParams && URLSearchParams.prototype.isPrototypeOf(o) ? this._bodyText = o.toString() : h.arrayBuffer && h.blob && S(o) ? (this._bodyArrayBuffer = T(o.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : h.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(o) || y(o)) ? this._bodyArrayBuffer = T(o) : this._bodyText = o = Object.prototype.toString.call(o) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof o == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : h.searchParams && URLSearchParams.prototype.isPrototypeOf(o) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2872
+ this.bodyUsed = this.bodyUsed, this._bodyInit = o, o ? typeof o == "string" ? this._bodyText = o : h.blob && Blob.prototype.isPrototypeOf(o) ? this._bodyBlob = o : h.formData && FormData.prototype.isPrototypeOf(o) ? this._bodyFormData = o : h.searchParams && URLSearchParams.prototype.isPrototypeOf(o) ? this._bodyText = o.toString() : h.arrayBuffer && h.blob && S(o) ? (this._bodyArrayBuffer = M(o.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : h.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(o) || y(o)) ? this._bodyArrayBuffer = M(o) : this._bodyText = o = Object.prototype.toString.call(o) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof o == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : h.searchParams && URLSearchParams.prototype.isPrototypeOf(o) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2836
2873
  }, h.blob && (this.blob = function() {
2837
- var o = M(this);
2874
+ var o = T(this);
2838
2875
  if (o)
2839
2876
  return o;
2840
2877
  if (this._bodyBlob)
@@ -2846,7 +2883,7 @@ function Un() {
2846
2883
  return Promise.resolve(new Blob([this._bodyText]));
2847
2884
  }), this.arrayBuffer = function() {
2848
2885
  if (this._bodyArrayBuffer) {
2849
- var o = M(this);
2886
+ var o = T(this);
2850
2887
  return o || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
2851
2888
  this._bodyArrayBuffer.buffer.slice(
2852
2889
  this._bodyArrayBuffer.byteOffset,
@@ -2859,13 +2896,13 @@ function Un() {
2859
2896
  throw new Error("could not read as ArrayBuffer");
2860
2897
  }
2861
2898
  }, this.text = function() {
2862
- var o = M(this);
2899
+ var o = T(this);
2863
2900
  if (o)
2864
2901
  return o;
2865
2902
  if (this._bodyBlob)
2866
2903
  return _(this._bodyBlob);
2867
2904
  if (this._bodyArrayBuffer)
2868
- return Promise.resolve($(this._bodyArrayBuffer));
2905
+ return Promise.resolve(U(this._bodyArrayBuffer));
2869
2906
  if (this._bodyFormData)
2870
2907
  throw new Error("could not read FormData body as text");
2871
2908
  return Promise.resolve(this._bodyText);
@@ -2880,12 +2917,12 @@ function Un() {
2880
2917
  var a = o.toUpperCase();
2881
2918
  return F.indexOf(a) > -1 ? a : o;
2882
2919
  }
2883
- function U(o, a) {
2884
- if (!(this instanceof U))
2920
+ function $(o, a) {
2921
+ if (!(this instanceof $))
2885
2922
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2886
2923
  a = a || {};
2887
2924
  var f = a.body;
2888
- if (o instanceof U) {
2925
+ if (o instanceof $) {
2889
2926
  if (o.bodyUsed)
2890
2927
  throw new TypeError("Already read");
2891
2928
  this.url = o.url, this.credentials = o.credentials, a.headers || (this.headers = new d(o.headers)), this.method = o.method, this.mode = o.mode, this.signal = o.signal, !f && o._bodyInit != null && (f = o._bodyInit, o.bodyUsed = !0);
@@ -2908,8 +2945,8 @@ function Un() {
2908
2945
  }
2909
2946
  }
2910
2947
  }
2911
- U.prototype.clone = function() {
2912
- return new U(this, { body: this._bodyInit });
2948
+ $.prototype.clone = function() {
2949
+ return new $(this, { body: this._bodyInit });
2913
2950
  };
2914
2951
  function L(o) {
2915
2952
  var a = new FormData();
@@ -2931,36 +2968,36 @@ function Un() {
2931
2968
  var D = g.join(":").trim();
2932
2969
  try {
2933
2970
  a.append(p, D);
2934
- } catch (x) {
2935
- console.warn("Response " + x.message);
2971
+ } catch (N) {
2972
+ console.warn("Response " + N.message);
2936
2973
  }
2937
2974
  }
2938
2975
  }), a;
2939
2976
  }
2940
- B.call(U.prototype);
2941
- function V(o, a) {
2942
- if (!(this instanceof V))
2977
+ B.call($.prototype);
2978
+ function Y(o, a) {
2979
+ if (!(this instanceof Y))
2943
2980
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2944
2981
  if (a || (a = {}), this.type = "default", this.status = a.status === void 0 ? 200 : a.status, this.status < 200 || this.status > 599)
2945
2982
  throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
2946
2983
  this.ok = this.status >= 200 && this.status < 300, this.statusText = a.statusText === void 0 ? "" : "" + a.statusText, this.headers = new d(a.headers), this.url = a.url || "", this._initBody(o);
2947
2984
  }
2948
- B.call(V.prototype), V.prototype.clone = function() {
2949
- return new V(this._bodyInit, {
2985
+ B.call(Y.prototype), Y.prototype.clone = function() {
2986
+ return new Y(this._bodyInit, {
2950
2987
  status: this.status,
2951
2988
  statusText: this.statusText,
2952
2989
  headers: new d(this.headers),
2953
2990
  url: this.url
2954
2991
  });
2955
- }, V.error = function() {
2956
- var o = new V(null, { status: 200, statusText: "" });
2992
+ }, Y.error = function() {
2993
+ var o = new Y(null, { status: 200, statusText: "" });
2957
2994
  return o.ok = !1, o.status = 0, o.type = "error", o;
2958
2995
  };
2959
2996
  var oe = [301, 302, 303, 307, 308];
2960
- V.redirect = function(o, a) {
2997
+ Y.redirect = function(o, a) {
2961
2998
  if (oe.indexOf(a) === -1)
2962
2999
  throw new RangeError("Invalid status code");
2963
- return new V(null, { status: a, headers: { location: o } });
3000
+ return new Y(null, { status: a, headers: { location: o } });
2964
3001
  }, u.DOMException = c.DOMException;
2965
3002
  try {
2966
3003
  new u.DOMException();
@@ -2973,7 +3010,7 @@ function Un() {
2973
3010
  }
2974
3011
  function R(o, a) {
2975
3012
  return new Promise(function(f, l) {
2976
- var g = new U(o, a);
3013
+ var g = new $(o, a);
2977
3014
  if (g.signal && g.signal.aborted)
2978
3015
  return l(new u.DOMException("Aborted", "AbortError"));
2979
3016
  var p = new XMLHttpRequest();
@@ -2988,7 +3025,7 @@ function Un() {
2988
3025
  g.url.indexOf("file://") === 0 && (p.status < 200 || p.status > 599) ? k.status = 200 : k.status = p.status, k.url = "responseURL" in p ? p.responseURL : k.headers.get("X-Request-URL");
2989
3026
  var H = "response" in p ? p.response : p.responseText;
2990
3027
  setTimeout(function() {
2991
- f(new V(H, k));
3028
+ f(new Y(H, k));
2992
3029
  }, 0);
2993
3030
  }, p.onerror = function() {
2994
3031
  setTimeout(function() {
@@ -3003,14 +3040,14 @@ function Un() {
3003
3040
  l(new u.DOMException("Aborted", "AbortError"));
3004
3041
  }, 0);
3005
3042
  };
3006
- function x(k) {
3043
+ function N(k) {
3007
3044
  try {
3008
3045
  return k === "" && c.location.href ? c.location.href : k;
3009
3046
  } catch {
3010
3047
  return k;
3011
3048
  }
3012
3049
  }
3013
- if (p.open(g.method, x(g.url), !0), g.credentials === "include" ? p.withCredentials = !0 : g.credentials === "omit" && (p.withCredentials = !1), "responseType" in p && (h.blob ? p.responseType = "blob" : h.arrayBuffer && (p.responseType = "arraybuffer")), a && typeof a.headers == "object" && !(a.headers instanceof d || c.Headers && a.headers instanceof c.Headers)) {
3050
+ if (p.open(g.method, N(g.url), !0), g.credentials === "include" ? p.withCredentials = !0 : g.credentials === "omit" && (p.withCredentials = !1), "responseType" in p && (h.blob ? p.responseType = "blob" : h.arrayBuffer && (p.responseType = "arraybuffer")), a && typeof a.headers == "object" && !(a.headers instanceof d || c.Headers && a.headers instanceof c.Headers)) {
3014
3051
  var G = [];
3015
3052
  Object.getOwnPropertyNames(a.headers).forEach(function(k) {
3016
3053
  G.push(m(k)), p.setRequestHeader(k, C(a.headers[k]));
@@ -3026,27 +3063,28 @@ function Un() {
3026
3063
  }), p.send(typeof g._bodyInit > "u" ? null : g._bodyInit);
3027
3064
  });
3028
3065
  }
3029
- return R.polyfill = !0, c.fetch || (c.fetch = R, c.Headers = d, c.Request = U, c.Response = V), u.Headers = d, u.Request = U, u.Response = V, u.fetch = R, u;
3066
+ return R.polyfill = !0, c.fetch || (c.fetch = R, c.Headers = d, c.Request = $, c.Response = Y), u.Headers = d, u.Request = $, u.Response = Y, u.fetch = R, u;
3030
3067
  })({});
3031
3068
  })(t), t.fetch.ponyfill = !0, delete t.fetch.polyfill;
3032
3069
  var r = n.fetch ? n : t;
3033
3070
  e = r.fetch, e.default = r.fetch, e.fetch = r.fetch, e.Headers = r.Headers, e.Request = r.Request, e.Response = r.Response, i.exports = e;
3034
3071
  })(ue, ue.exports)), ue.exports;
3035
3072
  }
3036
- var Gn = Un();
3037
- const Hn = /* @__PURE__ */ j(Gn), Fn = (i) => ({
3073
+ var Hn = Gn();
3074
+ const Fn = /* @__PURE__ */ j(Hn), Kn = (i) => ({
3038
3075
  bookingPolicies: new _n(i),
3039
3076
  bookings: new Dn(i),
3040
3077
  hotelImages: new bn(i),
3041
3078
  hotelOfferRequests: new In(i),
3042
3079
  hotelOffers: new Bn(i),
3043
- hotelRoomOfferRequests: new Ln(i),
3044
- hotelRoomOffers: new xn(i),
3045
- hotelRoomingListGuests: new Pn(i),
3046
- hotelRoomingLists: new Nn(i),
3080
+ hotelRoomOfferImages: new Ln(i),
3081
+ hotelRoomOfferRequests: new xn(i),
3082
+ hotelRoomOffers: new Pn(i),
3083
+ hotelRoomingListGuests: new Nn(i),
3084
+ hotelRoomingLists: new Un(i),
3047
3085
  hotels: new $n(i)
3048
3086
  });
3049
- function Kn(i) {
3087
+ function Vn(i) {
3050
3088
  switch (i) {
3051
3089
  case ee.Production:
3052
3090
  return "AUTH_TOKEN";
@@ -3064,7 +3102,7 @@ function Kn(i) {
3064
3102
  }
3065
3103
  function at(i) {
3066
3104
  return !!(typeof document < "u" && document?.cookie && document.cookie.split(";").find(
3067
- (t) => t.includes(Kn(i))
3105
+ (t) => t.includes(Vn(i))
3068
3106
  ));
3069
3107
  }
3070
3108
  class Yn {
@@ -3076,7 +3114,7 @@ class Yn {
3076
3114
  return e.init.mode = "cors", at(this.config.apiEnvironment) && (e.init.credentials = "include"), e;
3077
3115
  }
3078
3116
  }
3079
- class Vn {
3117
+ class qn {
3080
3118
  constructor(e) {
3081
3119
  this.config = e;
3082
3120
  }
@@ -3088,7 +3126,7 @@ class Vn {
3088
3126
  }), e;
3089
3127
  }
3090
3128
  }
3091
- class Pr {
3129
+ class Ur {
3092
3130
  constructor(e) {
3093
3131
  if (this.config = e, !e.apiVersion || !Object.values(Oe).includes(e.apiVersion))
3094
3132
  throw new Error(
@@ -3108,15 +3146,15 @@ class Pr {
3108
3146
  t === ee.Local && process.env.BOOKING_API_BASE_URL && (r = process.env.BOOKING_API_BASE_URL);
3109
3147
  const s = new it({
3110
3148
  basePath: r,
3111
- fetchApi: Hn,
3149
+ fetchApi: Fn,
3112
3150
  headers: n,
3113
3151
  middleware: [
3114
3152
  new Yn(this.config),
3115
- new Vn(this.config)
3153
+ new qn(this.config)
3116
3154
  ]
3117
3155
  });
3118
3156
  this.apiVersionsToClient = {
3119
- v1: Fn(s)
3157
+ v1: Kn(s)
3120
3158
  };
3121
3159
  }
3122
3160
  apiVersionsToClient;
@@ -3150,70 +3188,75 @@ class Pr {
3150
3188
  get hotelImages() {
3151
3189
  return this.apiVersionsToClient[this.config.apiVersion].hotelImages;
3152
3190
  }
3191
+ get hotelRoomOfferImages() {
3192
+ return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferImages;
3193
+ }
3153
3194
  }
3154
3195
  export {
3155
- Qn as AllowedPaymentMethodApiOneOf1NameEnum,
3156
- er as AllowedPaymentMethodApiOneOf2NameEnum,
3157
- tr as AllowedPaymentMethodApiOneOf3NameEnum,
3158
- nr as AllowedPaymentMethodApiOneOf3PayloadStatusEnum,
3159
- Xn as AllowedPaymentMethodApiOneOfNameEnum,
3160
- Pr as ApiClient,
3161
- Mn as BASE_PATH,
3162
- W as BaseAPI,
3163
- Jn as BlobApiResponse,
3164
- rr as BookingApiPayLaterEnum,
3165
- ir as BookingApiStatusEnum,
3196
+ er as AllowedPaymentMethodApiOneOf1NameEnum,
3197
+ tr as AllowedPaymentMethodApiOneOf2NameEnum,
3198
+ nr as AllowedPaymentMethodApiOneOf3NameEnum,
3199
+ rr as AllowedPaymentMethodApiOneOf3PayloadStatusEnum,
3200
+ Qn as AllowedPaymentMethodApiOneOfNameEnum,
3201
+ Ur as ApiClient,
3202
+ Tn as BASE_PATH,
3203
+ z as BaseAPI,
3204
+ Xn as BlobApiResponse,
3205
+ ir as BookingApiPayLaterEnum,
3206
+ or as BookingApiStatusEnum,
3166
3207
  _n as BookingPolicies,
3167
- or as BookingPoliciesCreateApiLangEnum,
3208
+ ar as BookingPoliciesCreateApiLangEnum,
3168
3209
  Dn as Bookings,
3169
- Or as BookingsSortByEnum,
3170
- kr as BookingsSortByOrderEnum,
3171
- qn as COLLECTION_FORMATS,
3210
+ kr as BookingsSortByEnum,
3211
+ _r as BookingsSortByOrderEnum,
3212
+ jn as COLLECTION_FORMATS,
3172
3213
  it as Configuration,
3173
- ar as ContactPersonApiLangEnum,
3174
- sr as ContactPersonApiSalutationEnum,
3175
- ur as CountryIso2Code,
3176
- cr as CurrencyBookingApiClient,
3177
- lr as ErrorApiResponseTypeEnum,
3214
+ sr as ContactPersonApiLangEnum,
3215
+ ur as ContactPersonApiSalutationEnum,
3216
+ cr as CountryIso2Code,
3217
+ lr as CurrencyBookingApiClient,
3218
+ fr as ErrorApiResponseTypeEnum,
3178
3219
  bn as HotelImages,
3179
- _r as HotelImagesLangEnum,
3220
+ Dr as HotelImagesLangEnum,
3180
3221
  In as HotelOfferRequests,
3181
3222
  Bn as HotelOffers,
3182
- Dr as HotelOffersLangEnum,
3183
- br as HotelOffersSortByEnum,
3184
- Ir as HotelOffersSortByOrderEnum,
3185
- fr as HotelRoomOfferApiBreakfastOptionEnum,
3186
- dr as HotelRoomOfferApiPackageTypeEnum,
3187
- hr as HotelRoomOfferApiStayTaxesInfoEnum,
3188
- pr as HotelRoomOfferApiTypeEnum,
3189
- Ln as HotelRoomOfferRequests,
3190
- xn as HotelRoomOffers,
3191
- mr as HotelRoomOffersCreateApiLangEnum,
3192
- Br as HotelRoomOffersLangEnum,
3193
- Pn as HotelRoomingListGuests,
3194
- Nn as HotelRoomingLists,
3195
- Lr as HotelRoomingListsLangEnum,
3223
+ br as HotelOffersLangEnum,
3224
+ Ir as HotelOffersSortByEnum,
3225
+ Br as HotelOffersSortByOrderEnum,
3226
+ dr as HotelRoomOfferApiBreakfastOptionEnum,
3227
+ hr as HotelRoomOfferApiPackageTypeEnum,
3228
+ pr as HotelRoomOfferApiStayTaxesInfoEnum,
3229
+ mr as HotelRoomOfferApiTypeEnum,
3230
+ Ln as HotelRoomOfferImages,
3231
+ Lr as HotelRoomOfferImagesLangEnum,
3232
+ xn as HotelRoomOfferRequests,
3233
+ Pn as HotelRoomOffers,
3234
+ yr as HotelRoomOffersCreateApiLangEnum,
3235
+ xr as HotelRoomOffersLangEnum,
3236
+ Nn as HotelRoomingListGuests,
3237
+ Un as HotelRoomingLists,
3238
+ Pr as HotelRoomingListsLangEnum,
3196
3239
  $n as Hotels,
3197
- xr as HotelsLangEnum,
3198
- yr as InvoiceApiTypeEnum,
3199
- P as JSONApiResponse,
3200
- wr as PaymentMethodApiOneOf1NameEnum,
3201
- vr as PaymentMethodApiOneOf2NameEnum,
3202
- Sr as PaymentMethodApiOneOf3NameEnum,
3203
- Rr as PaymentMethodApiOneOf3PayloadStatusEnum,
3204
- gr as PaymentMethodApiOneOfNameEnum,
3205
- Ar as PaymentMethodRequestApiNameEnum,
3206
- Cr as PollerStatus,
3207
- N as RequiredError,
3240
+ Nr as HotelsLangEnum,
3241
+ gr as InvoiceApiTypeEnum,
3242
+ x as JSONApiResponse,
3243
+ vr as PaymentMethodApiOneOf1NameEnum,
3244
+ Sr as PaymentMethodApiOneOf2NameEnum,
3245
+ Rr as PaymentMethodApiOneOf3NameEnum,
3246
+ Ar as PaymentMethodApiOneOf3PayloadStatusEnum,
3247
+ wr as PaymentMethodApiOneOfNameEnum,
3248
+ Cr as PaymentMethodRequestApiNameEnum,
3249
+ Er as PollerStatus,
3250
+ P as RequiredError,
3208
3251
  On as ResponseError,
3209
- Er as SourceMarket,
3252
+ Tr as SourceMarket,
3210
3253
  Mr as TaxApiTaxFrequencyEnum,
3211
- Tr as TaxApiTaxModeEnum,
3254
+ Or as TaxApiTaxModeEnum,
3212
3255
  kn as TextApiResponse,
3213
- Zn as VoidApiResponse,
3214
- Wn as canConsumeForm,
3215
- jn as exists,
3216
- zn as mapValues,
3256
+ Jn as VoidApiResponse,
3257
+ Zn as canConsumeForm,
3258
+ zn as exists,
3259
+ Wn as mapValues,
3217
3260
  ot as querystring,
3218
- Fn as v1ApiClient
3261
+ Kn as v1ApiClient
3219
3262
  };