@revolugo/booking-api-client 7.9.0 → 7.9.1-alpha.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 +187 -179
- package/dist/index.umd.js +2 -2
- package/package.json +10 -10
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDescriptor, bt = Object.getOwnPropertyNames, vt = Object.getPrototypeOf, Nt = Object.prototype.hasOwnProperty, X = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Pt = (e, t, i, n) => {
|
|
1
|
+
var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDescriptor, bt = Object.getOwnPropertyNames, vt = Object.getPrototypeOf, Nt = Object.prototype.hasOwnProperty, X = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Pt = (e, t, i, n) => {
|
|
2
2
|
if (t && typeof t == "object" || typeof t == "function")
|
|
3
3
|
for (var o = bt(t), s = 0, u = o.length, d; s < u; s++)
|
|
4
4
|
d = o[s], !Nt.call(e, d) && d !== i && ze(e, d, {
|
|
@@ -127,7 +127,7 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
127
127
|
"[object Uint32Array]",
|
|
128
128
|
"[object Float32Array]",
|
|
129
129
|
"[object Float64Array]"
|
|
130
|
-
],
|
|
130
|
+
], O = ArrayBuffer.isView || function(a) {
|
|
131
131
|
return a && A.indexOf(Object.prototype.toString.call(a)) > -1;
|
|
132
132
|
};
|
|
133
133
|
function g(a) {
|
|
@@ -204,13 +204,13 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
204
204
|
};
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function T(a) {
|
|
208
208
|
var c = new FileReader(), f = w(c);
|
|
209
209
|
return c.readAsArrayBuffer(a), f;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
var c = new FileReader(), f = w(c), l = /charset=([A-Za-z0-9_-]+)/.exec(a.type),
|
|
213
|
-
return c.readAsText(a,
|
|
211
|
+
function k(a) {
|
|
212
|
+
var c = new FileReader(), f = w(c), l = /charset=([A-Za-z0-9_-]+)/.exec(a.type), _ = l ? l[1] : "utf-8";
|
|
213
|
+
return c.readAsText(a, _), f;
|
|
214
214
|
}
|
|
215
215
|
function P(a) {
|
|
216
216
|
for (var c = new Uint8Array(a), f = new Array(c.length), l = 0; l < c.length; l++) f[l] = String.fromCharCode(c[l]);
|
|
@@ -223,7 +223,7 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
223
223
|
}
|
|
224
224
|
function H() {
|
|
225
225
|
return this.bodyUsed = !1, this._initBody = function(a) {
|
|
226
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = a, a ? typeof a == "string" ? this._bodyText = a : h.blob && Blob.prototype.isPrototypeOf(a) ? this._bodyBlob = a : h.formData && FormData.prototype.isPrototypeOf(a) ? this._bodyFormData = a : h.searchParams && URLSearchParams.prototype.isPrototypeOf(a) ? this._bodyText = a.toString() : h.arrayBuffer && h.blob && S(a) ? (this._bodyArrayBuffer = v(a.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : h.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(a) ||
|
|
226
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = a, a ? typeof a == "string" ? this._bodyText = a : h.blob && Blob.prototype.isPrototypeOf(a) ? this._bodyBlob = a : h.formData && FormData.prototype.isPrototypeOf(a) ? this._bodyFormData = a : h.searchParams && URLSearchParams.prototype.isPrototypeOf(a) ? this._bodyText = a.toString() : h.arrayBuffer && h.blob && S(a) ? (this._bodyArrayBuffer = v(a.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : h.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(a) || O(a)) ? this._bodyArrayBuffer = v(a) : this._bodyText = a = Object.prototype.toString.call(a) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof a == "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(a) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
227
227
|
}, h.blob && (this.blob = function() {
|
|
228
228
|
var a = p(this);
|
|
229
229
|
if (a) return a;
|
|
@@ -236,13 +236,13 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
236
236
|
var a = p(this);
|
|
237
237
|
return a || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer));
|
|
238
238
|
} else {
|
|
239
|
-
if (h.blob) return this.blob().then(
|
|
239
|
+
if (h.blob) return this.blob().then(T);
|
|
240
240
|
throw new Error("could not read as ArrayBuffer");
|
|
241
241
|
}
|
|
242
242
|
}, this.text = function() {
|
|
243
243
|
var a = p(this);
|
|
244
244
|
if (a) return a;
|
|
245
|
-
if (this._bodyBlob) return
|
|
245
|
+
if (this._bodyBlob) return k(this._bodyBlob);
|
|
246
246
|
if (this._bodyArrayBuffer) return Promise.resolve(P(this._bodyArrayBuffer));
|
|
247
247
|
if (this._bodyFormData) throw new Error("could not read FormData body as text");
|
|
248
248
|
return Promise.resolve(this._bodyText);
|
|
@@ -280,7 +280,11 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
280
280
|
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && f) throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
281
281
|
if (this._initBody(f), (this.method === "GET" || this.method === "HEAD") && (c.cache === "no-store" || c.cache === "no-cache")) {
|
|
282
282
|
var l = /([?&])_=[^&]*/;
|
|
283
|
-
l.test(this.url)
|
|
283
|
+
if (l.test(this.url)) this.url = this.url.replace(l, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
284
|
+
else {
|
|
285
|
+
var _ = /\?/;
|
|
286
|
+
this.url += (_.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
287
|
+
}
|
|
284
288
|
}
|
|
285
289
|
}
|
|
286
290
|
B.prototype.clone = function() {
|
|
@@ -290,8 +294,8 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
290
294
|
var c = new FormData();
|
|
291
295
|
return a.trim().split("&").forEach(function(f) {
|
|
292
296
|
if (f) {
|
|
293
|
-
var l = f.split("="),
|
|
294
|
-
c.append(decodeURIComponent(
|
|
297
|
+
var l = f.split("="), _ = l.shift().replace(/\+/g, " "), y = l.join("=").replace(/\+/g, " ");
|
|
298
|
+
c.append(decodeURIComponent(_), decodeURIComponent(y));
|
|
295
299
|
}
|
|
296
300
|
}), c;
|
|
297
301
|
}
|
|
@@ -301,11 +305,11 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
301
305
|
return f.indexOf(`
|
|
302
306
|
`) === 0 ? f.substr(1, f.length) : f;
|
|
303
307
|
}).forEach(function(f) {
|
|
304
|
-
var l = f.split(":"),
|
|
305
|
-
if (
|
|
308
|
+
var l = f.split(":"), _ = l.shift().trim();
|
|
309
|
+
if (_) {
|
|
306
310
|
var y = l.join(":").trim();
|
|
307
311
|
try {
|
|
308
|
-
c.append(
|
|
312
|
+
c.append(_, y);
|
|
309
313
|
} catch (I) {
|
|
310
314
|
console.warn("Response " + I.message);
|
|
311
315
|
}
|
|
@@ -350,13 +354,15 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
350
354
|
new u.DOMException();
|
|
351
355
|
} catch {
|
|
352
356
|
u.DOMException = function(c, f) {
|
|
353
|
-
this.message = c, this.name = f
|
|
357
|
+
this.message = c, this.name = f;
|
|
358
|
+
var l = Error(c);
|
|
359
|
+
this.stack = l.stack;
|
|
354
360
|
}, u.DOMException.prototype = Object.create(Error.prototype), u.DOMException.prototype.constructor = u.DOMException;
|
|
355
361
|
}
|
|
356
362
|
function R(a, c) {
|
|
357
363
|
return new Promise(function(f, l) {
|
|
358
|
-
var
|
|
359
|
-
if (
|
|
364
|
+
var _ = new B(a, c);
|
|
365
|
+
if (_.signal && _.signal.aborted) return l(new u.DOMException("Aborted", "AbortError"));
|
|
360
366
|
var y = new XMLHttpRequest();
|
|
361
367
|
function I() {
|
|
362
368
|
y.abort();
|
|
@@ -366,7 +372,7 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
366
372
|
statusText: y.statusText,
|
|
367
373
|
headers: D(y.getAllResponseHeaders() || "")
|
|
368
374
|
};
|
|
369
|
-
|
|
375
|
+
_.url.indexOf("file://") === 0 && (y.status < 200 || y.status > 599) ? E.status = 200 : E.status = y.status, E.url = "responseURL" in y ? y.responseURL : E.headers.get("X-Request-URL");
|
|
370
376
|
var Y = "response" in y ? y.response : y.responseText;
|
|
371
377
|
setTimeout(function() {
|
|
372
378
|
f(new U(Y, E));
|
|
@@ -391,19 +397,19 @@ var It = Object.create, ze = Object.defineProperty, Dt = Object.getOwnPropertyDe
|
|
|
391
397
|
return E;
|
|
392
398
|
}
|
|
393
399
|
}
|
|
394
|
-
if (y.open(
|
|
400
|
+
if (y.open(_.method, G(_.url), !0), _.credentials === "include" ? y.withCredentials = !0 : _.credentials === "omit" && (y.withCredentials = !1), "responseType" in y && (h.blob ? y.responseType = "blob" : h.arrayBuffer && (y.responseType = "arraybuffer")), c && typeof c.headers == "object" && !(c.headers instanceof m || d.Headers && c.headers instanceof d.Headers)) {
|
|
395
401
|
var $ = [];
|
|
396
402
|
Object.getOwnPropertyNames(c.headers).forEach(function(E) {
|
|
397
403
|
$.push(g(E)), y.setRequestHeader(E, M(c.headers[E]));
|
|
398
|
-
}),
|
|
404
|
+
}), _.headers.forEach(function(E, Y) {
|
|
399
405
|
$.indexOf(Y) === -1 && y.setRequestHeader(Y, E);
|
|
400
406
|
});
|
|
401
|
-
} else
|
|
407
|
+
} else _.headers.forEach(function(E, Y) {
|
|
402
408
|
y.setRequestHeader(Y, E);
|
|
403
409
|
});
|
|
404
|
-
|
|
405
|
-
y.readyState === 4 &&
|
|
406
|
-
}), y.send(typeof
|
|
410
|
+
_.signal && (_.signal.addEventListener("abort", I), y.onreadystatechange = function() {
|
|
411
|
+
y.readyState === 4 && _.signal.removeEventListener("abort", I);
|
|
412
|
+
}), y.send(typeof _._bodyInit > "u" ? null : _._bodyInit);
|
|
407
413
|
});
|
|
408
414
|
}
|
|
409
415
|
return R.polyfill = !0, d.fetch || (d.fetch = R, d.Headers = m, d.Request = B, d.Response = U), u.Headers = m, u.Request = B, u.Response = U, u.fetch = R, u;
|
|
@@ -502,9 +508,9 @@ var Yt = /* @__PURE__ */ X(((e, t) => {
|
|
|
502
508
|
function o(s, u) {
|
|
503
509
|
if (typeof s != "string") throw new Error("slugify: string argument expected");
|
|
504
510
|
u = typeof u == "string" ? { replacement: u } : u || {};
|
|
505
|
-
var d = n[u.locale] || {}, h = u.replacement === void 0 ? "-" : u.replacement, S = u.trim === void 0 ? !0 : u.trim, A = s.normalize().split("").reduce(function(
|
|
511
|
+
var d = n[u.locale] || {}, h = u.replacement === void 0 ? "-" : u.replacement, S = u.trim === void 0 ? !0 : u.trim, A = s.normalize().split("").reduce(function(O, g) {
|
|
506
512
|
var M = d[g];
|
|
507
|
-
return M === void 0 && (M = i[g]), M === void 0 && (M = g), M === h && (M = " "),
|
|
513
|
+
return M === void 0 && (M = i[g]), M === void 0 && (M = g), M === h && (M = " "), O + M.replace(u.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
508
514
|
}, "");
|
|
509
515
|
return u.strict && (A = A.replace(/[^A-Za-z0-9\s]/g, "")), S && (A = A.trim()), A = A.replace(/\s+/g, h), u.lower && (A = A.toLowerCase()), A;
|
|
510
516
|
}
|
|
@@ -546,7 +552,7 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
546
552
|
typeof e == "object" && typeof t < "u" ? t.exports = n() : typeof define == "function" && define.amd ? define(n) : (i = typeof globalThis < "u" ? globalThis : i || self).dayjs = n();
|
|
547
553
|
})(e, (function() {
|
|
548
554
|
"use strict";
|
|
549
|
-
var i = 1e3, n = 6e4, o = 36e5, s = "millisecond", u = "second", d = "minute", h = "hour", S = "day", A = "week",
|
|
555
|
+
var i = 1e3, n = 6e4, o = 36e5, s = "millisecond", u = "second", d = "minute", h = "hour", S = "day", A = "week", O = "month", g = "quarter", M = "year", C = "date", m = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|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, T = {
|
|
550
556
|
name: "en",
|
|
551
557
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
552
558
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
@@ -559,26 +565,26 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
559
565
|
], c = R % 100;
|
|
560
566
|
return "[" + R + (a[(c - 20) % 10] || a[c] || a[0]) + "]";
|
|
561
567
|
}
|
|
562
|
-
},
|
|
568
|
+
}, k = function(R, a, c) {
|
|
563
569
|
var f = String(R);
|
|
564
570
|
return !f || f.length >= a ? R : "" + Array(a + 1 - f.length).join(c) + R;
|
|
565
571
|
}, P = {
|
|
566
|
-
s:
|
|
572
|
+
s: k,
|
|
567
573
|
z: function(R) {
|
|
568
574
|
var a = -R.utcOffset(), c = Math.abs(a), f = Math.floor(c / 60), l = c % 60;
|
|
569
|
-
return (a <= 0 ? "+" : "-") +
|
|
575
|
+
return (a <= 0 ? "+" : "-") + k(f, 2, "0") + ":" + k(l, 2, "0");
|
|
570
576
|
},
|
|
571
577
|
m: function R(a, c) {
|
|
572
578
|
if (a.date() < c.date()) return -R(c, a);
|
|
573
|
-
var f = 12 * (c.year() - a.year()) + (c.month() - a.month()), l = a.clone().add(f,
|
|
574
|
-
return +(-(f + (c - l) / (
|
|
579
|
+
var f = 12 * (c.year() - a.year()) + (c.month() - a.month()), l = a.clone().add(f, O), _ = c - l < 0, y = a.clone().add(f + (_ ? -1 : 1), O);
|
|
580
|
+
return +(-(f + (c - l) / (_ ? l - y : y - l)) || 0);
|
|
575
581
|
},
|
|
576
582
|
a: function(R) {
|
|
577
583
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
578
584
|
},
|
|
579
585
|
p: function(R) {
|
|
580
586
|
return {
|
|
581
|
-
M:
|
|
587
|
+
M: O,
|
|
582
588
|
y: M,
|
|
583
589
|
w: A,
|
|
584
590
|
d: S,
|
|
@@ -594,15 +600,15 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
594
600
|
return R === void 0;
|
|
595
601
|
}
|
|
596
602
|
}, v = "en", H = {};
|
|
597
|
-
H[v] =
|
|
603
|
+
H[v] = T;
|
|
598
604
|
var x = "$isDayjsObject", J = function(R) {
|
|
599
605
|
return R instanceof U || !(!R || !R[x]);
|
|
600
606
|
}, B = function R(a, c, f) {
|
|
601
607
|
var l;
|
|
602
608
|
if (!a) return v;
|
|
603
609
|
if (typeof a == "string") {
|
|
604
|
-
var
|
|
605
|
-
H[
|
|
610
|
+
var _ = a.toLowerCase();
|
|
611
|
+
H[_] && (l = _), c && (H[_] = c, l = _);
|
|
606
612
|
var y = a.split("-");
|
|
607
613
|
if (!l && y.length > 1) return R(y[0]);
|
|
608
614
|
} else {
|
|
@@ -630,7 +636,7 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
630
636
|
var a = R.prototype;
|
|
631
637
|
return a.parse = function(c) {
|
|
632
638
|
this.$d = (function(f) {
|
|
633
|
-
var l = f.date,
|
|
639
|
+
var l = f.date, _ = f.utc;
|
|
634
640
|
if (l === null) return /* @__PURE__ */ new Date(NaN);
|
|
635
641
|
if (D.u(l)) return /* @__PURE__ */ new Date();
|
|
636
642
|
if (l instanceof Date) return new Date(l);
|
|
@@ -638,7 +644,7 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
638
644
|
var y = l.match(p);
|
|
639
645
|
if (y) {
|
|
640
646
|
var I = y[2] - 1 || 0, G = (y[7] || "0").substring(0, 3);
|
|
641
|
-
return
|
|
647
|
+
return _ ? new Date(Date.UTC(y[1], I, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, G)) : new Date(y[1], I, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, G);
|
|
642
648
|
}
|
|
643
649
|
}
|
|
644
650
|
return new Date(l);
|
|
@@ -664,11 +670,11 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
664
670
|
}, a.valueOf = function() {
|
|
665
671
|
return this.$d.getTime();
|
|
666
672
|
}, a.startOf = function(c, f) {
|
|
667
|
-
var l = this,
|
|
673
|
+
var l = this, _ = !!D.u(f) || f, y = D.p(c), I = function(ne, V) {
|
|
668
674
|
var j = D.w(l.$u ? Date.UTC(l.$y, V, ne) : new Date(l.$y, V, ne), l);
|
|
669
|
-
return
|
|
675
|
+
return _ ? j : j.endOf(S);
|
|
670
676
|
}, G = function(ne, V) {
|
|
671
|
-
return D.w(l.toDate()[ne].apply(l.toDate("s"), (
|
|
677
|
+
return D.w(l.toDate()[ne].apply(l.toDate("s"), (_ ? [
|
|
672
678
|
0,
|
|
673
679
|
0,
|
|
674
680
|
0,
|
|
@@ -682,12 +688,12 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
682
688
|
}, $ = this.$W, E = this.$M, Y = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
|
683
689
|
switch (y) {
|
|
684
690
|
case M:
|
|
685
|
-
return
|
|
686
|
-
case
|
|
687
|
-
return
|
|
691
|
+
return _ ? I(1, 0) : I(31, 11);
|
|
692
|
+
case O:
|
|
693
|
+
return _ ? I(1, E) : I(0, E + 1);
|
|
688
694
|
case A:
|
|
689
695
|
var oe = this.$locale().weekStart || 0, fe = ($ < oe ? $ + 7 : $) - oe;
|
|
690
|
-
return I(
|
|
696
|
+
return I(_ ? Y - fe : Y + (6 - fe), E);
|
|
691
697
|
case S:
|
|
692
698
|
case C:
|
|
693
699
|
return G(se + "Hours", 0);
|
|
@@ -703,8 +709,8 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
703
709
|
}, a.endOf = function(c) {
|
|
704
710
|
return this.startOf(c, !1);
|
|
705
711
|
}, a.$set = function(c, f) {
|
|
706
|
-
var l,
|
|
707
|
-
if (
|
|
712
|
+
var l, _ = D.p(c), y = "set" + (this.$u ? "UTC" : ""), I = (l = {}, l[S] = y + "Date", l[C] = y + "Date", l[O] = y + "Month", l[M] = y + "FullYear", l[h] = y + "Hours", l[d] = y + "Minutes", l[u] = y + "Seconds", l[s] = y + "Milliseconds", l)[_], G = _ === S ? this.$D + (f - this.$W) : f;
|
|
713
|
+
if (_ === O || _ === M) {
|
|
708
714
|
var $ = this.clone().set(C, 1);
|
|
709
715
|
$.$d[I](G), $.init(), this.$d = $.set(C, Math.min(this.$D, $.daysInMonth())).$d;
|
|
710
716
|
} else I && this.$d[I](G);
|
|
@@ -714,13 +720,13 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
714
720
|
}, a.get = function(c) {
|
|
715
721
|
return this[D.p(c)]();
|
|
716
722
|
}, a.add = function(c, f) {
|
|
717
|
-
var l,
|
|
723
|
+
var l, _ = this;
|
|
718
724
|
c = Number(c);
|
|
719
725
|
var y = D.p(f), I = function(E) {
|
|
720
|
-
var Y = L(
|
|
721
|
-
return D.w(Y.date(Y.date() + Math.round(E * c)),
|
|
726
|
+
var Y = L(_);
|
|
727
|
+
return D.w(Y.date(Y.date() + Math.round(E * c)), _);
|
|
722
728
|
};
|
|
723
|
-
if (y ===
|
|
729
|
+
if (y === O) return this.set(O, this.$M + c);
|
|
724
730
|
if (y === M) return this.set(M, this.$y + c);
|
|
725
731
|
if (y === S) return I(1);
|
|
726
732
|
if (y === A) return I(7);
|
|
@@ -731,15 +737,15 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
731
737
|
}, a.format = function(c) {
|
|
732
738
|
var f = this, l = this.$locale();
|
|
733
739
|
if (!this.isValid()) return l.invalidDate || m;
|
|
734
|
-
var
|
|
735
|
-
return V && (V[j] || V(f,
|
|
740
|
+
var _ = c || "YYYY-MM-DDTHH:mm:ssZ", y = D.z(this), I = this.$H, G = this.$m, $ = this.$M, E = l.weekdays, Y = l.months, se = l.meridiem, oe = function(V, j, ae, de) {
|
|
741
|
+
return V && (V[j] || V(f, _)) || ae[j].slice(0, de);
|
|
736
742
|
}, fe = function(V) {
|
|
737
743
|
return D.s(I % 12 || 12, V, "0");
|
|
738
744
|
}, ne = se || function(V, j, ae) {
|
|
739
745
|
var de = V < 12 ? "AM" : "PM";
|
|
740
746
|
return ae ? de.toLowerCase() : de;
|
|
741
747
|
};
|
|
742
|
-
return
|
|
748
|
+
return _.replace(w, (function(V, j) {
|
|
743
749
|
return j || (function(ae) {
|
|
744
750
|
switch (ae) {
|
|
745
751
|
case "YY":
|
|
@@ -797,46 +803,46 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
797
803
|
}, a.utcOffset = function() {
|
|
798
804
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
799
805
|
}, a.diff = function(c, f, l) {
|
|
800
|
-
var
|
|
806
|
+
var _, y = this, I = D.p(f), G = L(c), $ = (G.utcOffset() - this.utcOffset()) * n, E = this - G, Y = function() {
|
|
801
807
|
return D.m(y, G);
|
|
802
808
|
};
|
|
803
809
|
switch (I) {
|
|
804
810
|
case M:
|
|
805
|
-
|
|
811
|
+
_ = Y() / 12;
|
|
806
812
|
break;
|
|
807
|
-
case
|
|
808
|
-
|
|
813
|
+
case O:
|
|
814
|
+
_ = Y();
|
|
809
815
|
break;
|
|
810
816
|
case g:
|
|
811
|
-
|
|
817
|
+
_ = Y() / 3;
|
|
812
818
|
break;
|
|
813
819
|
case A:
|
|
814
|
-
|
|
820
|
+
_ = (E - $) / 6048e5;
|
|
815
821
|
break;
|
|
816
822
|
case S:
|
|
817
|
-
|
|
823
|
+
_ = (E - $) / 864e5;
|
|
818
824
|
break;
|
|
819
825
|
case h:
|
|
820
|
-
|
|
826
|
+
_ = E / o;
|
|
821
827
|
break;
|
|
822
828
|
case d:
|
|
823
|
-
|
|
829
|
+
_ = E / n;
|
|
824
830
|
break;
|
|
825
831
|
case u:
|
|
826
|
-
|
|
832
|
+
_ = E / i;
|
|
827
833
|
break;
|
|
828
834
|
default:
|
|
829
|
-
|
|
835
|
+
_ = E;
|
|
830
836
|
}
|
|
831
|
-
return l ?
|
|
837
|
+
return l ? _ : D.a(_);
|
|
832
838
|
}, a.daysInMonth = function() {
|
|
833
|
-
return this.endOf(
|
|
839
|
+
return this.endOf(O).$D;
|
|
834
840
|
}, a.$locale = function() {
|
|
835
841
|
return H[this.$L];
|
|
836
842
|
}, a.locale = function(c, f) {
|
|
837
843
|
if (!c) return this.$L;
|
|
838
|
-
var l = this.clone(),
|
|
839
|
-
return
|
|
844
|
+
var l = this.clone(), _ = B(c, f, !0);
|
|
845
|
+
return _ && (l.$L = _), l;
|
|
840
846
|
}, a.clone = function() {
|
|
841
847
|
return D.w(this.$d, this);
|
|
842
848
|
}, a.toDate = function() {
|
|
@@ -855,7 +861,7 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
855
861
|
["$m", d],
|
|
856
862
|
["$H", h],
|
|
857
863
|
["$W", S],
|
|
858
|
-
["$M",
|
|
864
|
+
["$M", O],
|
|
859
865
|
["$y", M],
|
|
860
866
|
["$D", C]
|
|
861
867
|
].forEach((function(R) {
|
|
@@ -878,8 +884,8 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
878
884
|
o.format = function(u) {
|
|
879
885
|
var d = this, h = this.$locale();
|
|
880
886
|
if (!this.isValid()) return s.bind(this)(u);
|
|
881
|
-
var S = this.$utils(), A = (u || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(
|
|
882
|
-
switch (
|
|
887
|
+
var S = this.$utils(), A = (u || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(O) {
|
|
888
|
+
switch (O) {
|
|
883
889
|
case "Q":
|
|
884
890
|
return Math.ceil((d.$M + 1) / 3);
|
|
885
891
|
case "Do":
|
|
@@ -892,13 +898,13 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
892
898
|
return h.ordinal(d.week(), "W");
|
|
893
899
|
case "w":
|
|
894
900
|
case "ww":
|
|
895
|
-
return S.s(d.week(),
|
|
901
|
+
return S.s(d.week(), O === "w" ? 1 : 2, "0");
|
|
896
902
|
case "W":
|
|
897
903
|
case "WW":
|
|
898
|
-
return S.s(d.isoWeek(),
|
|
904
|
+
return S.s(d.isoWeek(), O === "W" ? 1 : 2, "0");
|
|
899
905
|
case "k":
|
|
900
906
|
case "kk":
|
|
901
|
-
return S.s(String(d.$H === 0 ? 24 : d.$H),
|
|
907
|
+
return S.s(String(d.$H === 0 ? 24 : d.$H), O === "k" ? 1 : 2, "0");
|
|
902
908
|
case "X":
|
|
903
909
|
return Math.floor(d.$d.getTime() / 1e3);
|
|
904
910
|
case "x":
|
|
@@ -908,7 +914,7 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
908
914
|
case "zzz":
|
|
909
915
|
return "[" + d.offsetName("long") + "]";
|
|
910
916
|
default:
|
|
911
|
-
return
|
|
917
|
+
return O;
|
|
912
918
|
}
|
|
913
919
|
}));
|
|
914
920
|
return s.bind(this)(A);
|
|
@@ -933,24 +939,24 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
933
939
|
return function(w) {
|
|
934
940
|
this[p] = +w;
|
|
935
941
|
};
|
|
936
|
-
},
|
|
942
|
+
}, O = [/[+-]\d\d:?(\d\d)?|Z/, function(p) {
|
|
937
943
|
(this.zone || (this.zone = {})).offset = (function(w) {
|
|
938
944
|
if (!w || w === "Z") return 0;
|
|
939
|
-
var
|
|
940
|
-
return
|
|
945
|
+
var T = w.match(/([+-]|\d\d)/g), k = 60 * T[1] + (+T[2] || 0);
|
|
946
|
+
return k === 0 ? 0 : T[0] === "+" ? -k : k;
|
|
941
947
|
})(p);
|
|
942
948
|
}], g = function(p) {
|
|
943
949
|
var w = h[p];
|
|
944
950
|
return w && (w.indexOf ? w : w.s.concat(w.f));
|
|
945
951
|
}, M = function(p, w) {
|
|
946
|
-
var
|
|
947
|
-
if (
|
|
948
|
-
for (var P = 1; P <= 24; P += 1) if (p.indexOf(
|
|
949
|
-
|
|
952
|
+
var T, k = h.meridiem;
|
|
953
|
+
if (k) {
|
|
954
|
+
for (var P = 1; P <= 24; P += 1) if (p.indexOf(k(P, 0, w)) > -1) {
|
|
955
|
+
T = P > 12;
|
|
950
956
|
break;
|
|
951
957
|
}
|
|
952
|
-
} else
|
|
953
|
-
return
|
|
958
|
+
} else T = p === (w ? "pm" : "PM");
|
|
959
|
+
return T;
|
|
954
960
|
}, C = {
|
|
955
961
|
A: [d, function(p) {
|
|
956
962
|
this.afternoon = M(p, !1);
|
|
@@ -981,19 +987,19 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
981
987
|
D: [u, A("day")],
|
|
982
988
|
DD: [s, A("day")],
|
|
983
989
|
Do: [d, function(p) {
|
|
984
|
-
var w = h.ordinal;
|
|
985
|
-
if (this.day =
|
|
990
|
+
var w = h.ordinal, T = p.match(/\d+/);
|
|
991
|
+
if (this.day = T[0], w) for (var k = 1; k <= 31; k += 1) w(k).replace(/\[|\]/g, "") === p && (this.day = k);
|
|
986
992
|
}],
|
|
987
993
|
w: [u, A("week")],
|
|
988
994
|
ww: [s, A("week")],
|
|
989
995
|
M: [u, A("month")],
|
|
990
996
|
MM: [s, A("month")],
|
|
991
997
|
MMM: [d, function(p) {
|
|
992
|
-
var w = g("months"),
|
|
993
|
-
return
|
|
998
|
+
var w = g("months"), T = (g("monthsShort") || w.map((function(k) {
|
|
999
|
+
return k.slice(0, 3);
|
|
994
1000
|
}))).indexOf(p) + 1;
|
|
995
|
-
if (
|
|
996
|
-
this.month =
|
|
1001
|
+
if (T < 1) throw new Error();
|
|
1002
|
+
this.month = T % 12 || T;
|
|
997
1003
|
}],
|
|
998
1004
|
MMMM: [d, function(p) {
|
|
999
1005
|
var w = g("months").indexOf(p) + 1;
|
|
@@ -1005,63 +1011,63 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1005
1011
|
this.year = S(p);
|
|
1006
1012
|
}],
|
|
1007
1013
|
YYYY: [/\d{4}/, A("year")],
|
|
1008
|
-
Z:
|
|
1009
|
-
ZZ:
|
|
1014
|
+
Z: O,
|
|
1015
|
+
ZZ: O
|
|
1010
1016
|
};
|
|
1011
1017
|
function m(p) {
|
|
1012
|
-
for (var w = p,
|
|
1018
|
+
for (var w = p, T = h && h.formats, k = (p = w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(L, D, U) {
|
|
1013
1019
|
var W = U && U.toUpperCase();
|
|
1014
|
-
return D ||
|
|
1020
|
+
return D || T[U] || i[U] || T[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(R, a, c) {
|
|
1015
1021
|
return a || c.slice(1);
|
|
1016
1022
|
}));
|
|
1017
|
-
}))).match(n), P =
|
|
1018
|
-
var H =
|
|
1019
|
-
|
|
1023
|
+
}))).match(n), P = k.length, v = 0; v < P; v += 1) {
|
|
1024
|
+
var H = k[v], x = C[H], J = x && x[0], B = x && x[1];
|
|
1025
|
+
k[v] = B ? {
|
|
1020
1026
|
regex: J,
|
|
1021
1027
|
parser: B
|
|
1022
1028
|
} : H.replace(/^\[|\]$/g, "");
|
|
1023
1029
|
}
|
|
1024
1030
|
return function(L) {
|
|
1025
1031
|
for (var D = {}, U = 0, W = 0; U < P; U += 1) {
|
|
1026
|
-
var R =
|
|
1032
|
+
var R = k[U];
|
|
1027
1033
|
if (typeof R == "string") W += R.length;
|
|
1028
1034
|
else {
|
|
1029
1035
|
var a = R.regex, c = R.parser, f = L.slice(W), l = a.exec(f)[0];
|
|
1030
1036
|
c.call(D, l), L = L.replace(l, "");
|
|
1031
1037
|
}
|
|
1032
1038
|
}
|
|
1033
|
-
return (function(
|
|
1034
|
-
var y =
|
|
1039
|
+
return (function(_) {
|
|
1040
|
+
var y = _.afternoon;
|
|
1035
1041
|
if (y !== void 0) {
|
|
1036
|
-
var I =
|
|
1037
|
-
y ? I < 12 && (
|
|
1042
|
+
var I = _.hours;
|
|
1043
|
+
y ? I < 12 && (_.hours += 12) : I === 12 && (_.hours = 0), delete _.afternoon;
|
|
1038
1044
|
}
|
|
1039
1045
|
})(D), D;
|
|
1040
1046
|
};
|
|
1041
1047
|
}
|
|
1042
|
-
return function(p, w,
|
|
1043
|
-
|
|
1044
|
-
var
|
|
1045
|
-
|
|
1048
|
+
return function(p, w, T) {
|
|
1049
|
+
T.p.customParseFormat = !0, p && p.parseTwoDigitYear && (S = p.parseTwoDigitYear);
|
|
1050
|
+
var k = w.prototype, P = k.parse;
|
|
1051
|
+
k.parse = function(v) {
|
|
1046
1052
|
var H = v.date, x = v.utc, J = v.args;
|
|
1047
1053
|
this.$u = x;
|
|
1048
1054
|
var B = J[1];
|
|
1049
1055
|
if (typeof B == "string") {
|
|
1050
1056
|
var L = J[2] === !0, D = J[3] === !0, U = L || D, W = J[2];
|
|
1051
|
-
D && (W = J[2]), h = this.$locale(), !L && W && (h =
|
|
1057
|
+
D && (W = J[2]), h = this.$locale(), !L && W && (h = T.Ls[W]), this.$d = (function(f, l, _, y) {
|
|
1052
1058
|
try {
|
|
1053
1059
|
if (["x", "X"].indexOf(l) > -1) return /* @__PURE__ */ new Date((l === "X" ? 1e3 : 1) * f);
|
|
1054
1060
|
var I = m(l)(f), G = I.year, $ = I.month, E = I.day, Y = I.hours, se = I.minutes, oe = I.seconds, fe = I.milliseconds, ne = I.zone, V = I.week, j = /* @__PURE__ */ new Date(), ae = E || (G || $ ? 1 : j.getDate()), de = G || j.getFullYear(), Ae = 0;
|
|
1055
1061
|
G && !$ || (Ae = $ > 0 ? $ - 1 : j.getMonth());
|
|
1056
1062
|
var Se, Te = Y || 0, Me = se || 0, Ce = oe || 0, Ie = fe || 0;
|
|
1057
|
-
return ne ? new Date(Date.UTC(de, Ae, ae, Te, Me, Ce, Ie + 60 * ne.offset * 1e3)) :
|
|
1063
|
+
return ne ? new Date(Date.UTC(de, Ae, ae, Te, Me, Ce, Ie + 60 * ne.offset * 1e3)) : _ ? new Date(Date.UTC(de, Ae, ae, Te, Me, Ce, Ie)) : (Se = new Date(de, Ae, ae, Te, Me, Ce, Ie), V && (Se = y(Se).week(V).toDate()), Se);
|
|
1058
1064
|
} catch {
|
|
1059
1065
|
return /* @__PURE__ */ new Date("");
|
|
1060
1066
|
}
|
|
1061
|
-
})(H, B, x,
|
|
1067
|
+
})(H, B, x, T), this.init(), W && W !== !0 && (this.$L = this.locale(W).$L), U && H != this.format(B) && (this.$d = /* @__PURE__ */ new Date("")), h = {};
|
|
1062
1068
|
} else if (B instanceof Array) for (var R = B.length, a = 1; a <= R; a += 1) {
|
|
1063
1069
|
J[1] = B[a - 1];
|
|
1064
|
-
var c =
|
|
1070
|
+
var c = T.apply(this, J);
|
|
1065
1071
|
if (c.isValid()) {
|
|
1066
1072
|
this.$d = c.$d, this.$L = c.$L, this.init();
|
|
1067
1073
|
break;
|
|
@@ -1079,8 +1085,8 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1079
1085
|
"use strict";
|
|
1080
1086
|
return function(i, n, o) {
|
|
1081
1087
|
n.prototype.isBetween = function(s, u, d, h) {
|
|
1082
|
-
var S = o(s), A = o(u),
|
|
1083
|
-
return (
|
|
1088
|
+
var S = o(s), A = o(u), O = (h = h || "()")[0] === "(", g = h[1] === ")";
|
|
1089
|
+
return (O ? this.isAfter(S, d) : !this.isBefore(S, d)) && (g ? this.isBefore(A, d) : !this.isAfter(A, d)) || (O ? this.isBefore(S, d) : !this.isAfter(S, d)) && (g ? this.isAfter(A, d) : !this.isBefore(A, d));
|
|
1084
1090
|
};
|
|
1085
1091
|
};
|
|
1086
1092
|
}));
|
|
@@ -1112,48 +1118,48 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1112
1118
|
})(e, (function() {
|
|
1113
1119
|
"use strict";
|
|
1114
1120
|
return function(i, n, o) {
|
|
1115
|
-
var s = n.prototype, u = function(
|
|
1116
|
-
return
|
|
1117
|
-
}, d = function(
|
|
1118
|
-
var p =
|
|
1121
|
+
var s = n.prototype, u = function(O) {
|
|
1122
|
+
return O && (O.indexOf ? O : O.s);
|
|
1123
|
+
}, d = function(O, g, M, C, m) {
|
|
1124
|
+
var p = O.name ? O : O.$locale(), w = u(p[g]), T = u(p[M]), k = w || T.map((function(v) {
|
|
1119
1125
|
return v.slice(0, C);
|
|
1120
1126
|
}));
|
|
1121
|
-
if (!m) return
|
|
1127
|
+
if (!m) return k;
|
|
1122
1128
|
var P = p.weekStart;
|
|
1123
|
-
return
|
|
1124
|
-
return
|
|
1129
|
+
return k.map((function(v, H) {
|
|
1130
|
+
return k[(H + (P || 0)) % 7];
|
|
1125
1131
|
}));
|
|
1126
1132
|
}, h = function() {
|
|
1127
1133
|
return o.Ls[o.locale()];
|
|
1128
|
-
}, S = function(
|
|
1129
|
-
return
|
|
1134
|
+
}, S = function(O, g) {
|
|
1135
|
+
return O.formats[g] || (function(M) {
|
|
1130
1136
|
return M.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(C, m, p) {
|
|
1131
1137
|
return m || p.slice(1);
|
|
1132
1138
|
}));
|
|
1133
|
-
})(
|
|
1139
|
+
})(O.formats[g.toUpperCase()]);
|
|
1134
1140
|
}, A = function() {
|
|
1135
|
-
var
|
|
1141
|
+
var O = this;
|
|
1136
1142
|
return {
|
|
1137
1143
|
months: function(g) {
|
|
1138
|
-
return g ? g.format("MMMM") : d(
|
|
1144
|
+
return g ? g.format("MMMM") : d(O, "months");
|
|
1139
1145
|
},
|
|
1140
1146
|
monthsShort: function(g) {
|
|
1141
|
-
return g ? g.format("MMM") : d(
|
|
1147
|
+
return g ? g.format("MMM") : d(O, "monthsShort", "months", 3);
|
|
1142
1148
|
},
|
|
1143
1149
|
firstDayOfWeek: function() {
|
|
1144
|
-
return
|
|
1150
|
+
return O.$locale().weekStart || 0;
|
|
1145
1151
|
},
|
|
1146
1152
|
weekdays: function(g) {
|
|
1147
|
-
return g ? g.format("dddd") : d(
|
|
1153
|
+
return g ? g.format("dddd") : d(O, "weekdays");
|
|
1148
1154
|
},
|
|
1149
1155
|
weekdaysMin: function(g) {
|
|
1150
|
-
return g ? g.format("dd") : d(
|
|
1156
|
+
return g ? g.format("dd") : d(O, "weekdaysMin", "weekdays", 2);
|
|
1151
1157
|
},
|
|
1152
1158
|
weekdaysShort: function(g) {
|
|
1153
|
-
return g ? g.format("ddd") : d(
|
|
1159
|
+
return g ? g.format("ddd") : d(O, "weekdaysShort", "weekdays", 3);
|
|
1154
1160
|
},
|
|
1155
1161
|
longDateFormat: function(g) {
|
|
1156
|
-
return S(
|
|
1162
|
+
return S(O.$locale(), g);
|
|
1157
1163
|
},
|
|
1158
1164
|
meridiem: this.$locale().meridiem,
|
|
1159
1165
|
ordinal: this.$locale().ordinal
|
|
@@ -1162,10 +1168,10 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1162
1168
|
s.localeData = function() {
|
|
1163
1169
|
return A.bind(this)();
|
|
1164
1170
|
}, o.localeData = function() {
|
|
1165
|
-
var
|
|
1171
|
+
var O = h();
|
|
1166
1172
|
return {
|
|
1167
1173
|
firstDayOfWeek: function() {
|
|
1168
|
-
return
|
|
1174
|
+
return O.weekStart || 0;
|
|
1169
1175
|
},
|
|
1170
1176
|
weekdays: function() {
|
|
1171
1177
|
return o.weekdays();
|
|
@@ -1183,21 +1189,21 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1183
1189
|
return o.monthsShort();
|
|
1184
1190
|
},
|
|
1185
1191
|
longDateFormat: function(g) {
|
|
1186
|
-
return S(
|
|
1192
|
+
return S(O, g);
|
|
1187
1193
|
},
|
|
1188
|
-
meridiem:
|
|
1189
|
-
ordinal:
|
|
1194
|
+
meridiem: O.meridiem,
|
|
1195
|
+
ordinal: O.ordinal
|
|
1190
1196
|
};
|
|
1191
1197
|
}, o.months = function() {
|
|
1192
1198
|
return d(h(), "months");
|
|
1193
1199
|
}, o.monthsShort = function() {
|
|
1194
1200
|
return d(h(), "monthsShort", "months", 3);
|
|
1195
|
-
}, o.weekdays = function(
|
|
1196
|
-
return d(h(), "weekdays", null, null,
|
|
1197
|
-
}, o.weekdaysShort = function(
|
|
1198
|
-
return d(h(), "weekdaysShort", "weekdays", 3,
|
|
1199
|
-
}, o.weekdaysMin = function(
|
|
1200
|
-
return d(h(), "weekdaysMin", "weekdays", 2,
|
|
1201
|
+
}, o.weekdays = function(O) {
|
|
1202
|
+
return d(h(), "weekdays", null, null, O);
|
|
1203
|
+
}, o.weekdaysShort = function(O) {
|
|
1204
|
+
return d(h(), "weekdaysShort", "weekdays", 3, O);
|
|
1205
|
+
}, o.weekdaysMin = function(O) {
|
|
1206
|
+
return d(h(), "weekdaysMin", "weekdays", 2, O);
|
|
1201
1207
|
};
|
|
1202
1208
|
};
|
|
1203
1209
|
}));
|
|
@@ -1218,11 +1224,11 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1218
1224
|
var u = o.prototype, d = u.format;
|
|
1219
1225
|
s.en.formats = i, u.format = function(h) {
|
|
1220
1226
|
h === void 0 && (h = "YYYY-MM-DDTHH:mm:ssZ");
|
|
1221
|
-
var S = this.$locale().formats, A = (function(
|
|
1222
|
-
return
|
|
1227
|
+
var S = this.$locale().formats, A = (function(O, g) {
|
|
1228
|
+
return O.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(M, C, m) {
|
|
1223
1229
|
var p = m && m.toUpperCase();
|
|
1224
|
-
return C || g[m] || i[m] || g[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(w,
|
|
1225
|
-
return
|
|
1230
|
+
return C || g[m] || i[m] || g[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(w, T, k) {
|
|
1231
|
+
return T || k.slice(1);
|
|
1226
1232
|
}));
|
|
1227
1233
|
}));
|
|
1228
1234
|
})(h, S === void 0 ? {} : S);
|
|
@@ -1274,11 +1280,11 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1274
1280
|
y: "a year",
|
|
1275
1281
|
yy: "%d years"
|
|
1276
1282
|
};
|
|
1277
|
-
function d(S, A,
|
|
1278
|
-
return s.fromToBase(S, A,
|
|
1283
|
+
function d(S, A, O, g) {
|
|
1284
|
+
return s.fromToBase(S, A, O, g);
|
|
1279
1285
|
}
|
|
1280
|
-
o.en.relativeTime = u, s.fromToBase = function(S, A,
|
|
1281
|
-
for (var C, m, p, w =
|
|
1286
|
+
o.en.relativeTime = u, s.fromToBase = function(S, A, O, g, M) {
|
|
1287
|
+
for (var C, m, p, w = O.$locale().relativeTime || u, T = i.thresholds || [
|
|
1282
1288
|
{
|
|
1283
1289
|
l: "s",
|
|
1284
1290
|
r: 44,
|
|
@@ -1328,12 +1334,12 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1328
1334
|
l: "yy",
|
|
1329
1335
|
d: "year"
|
|
1330
1336
|
}
|
|
1331
|
-
],
|
|
1332
|
-
var v =
|
|
1333
|
-
v.d && (C = g ? o(S).diff(
|
|
1337
|
+
], k = T.length, P = 0; P < k; P += 1) {
|
|
1338
|
+
var v = T[P];
|
|
1339
|
+
v.d && (C = g ? o(S).diff(O, v.d, !0) : O.diff(S, v.d, !0));
|
|
1334
1340
|
var H = (i.rounding || Math.round)(Math.abs(C));
|
|
1335
1341
|
if (p = C > 0, H <= v.r || !v.r) {
|
|
1336
|
-
H <= 1 && P > 0 && (v =
|
|
1342
|
+
H <= 1 && P > 0 && (v = T[P - 1]);
|
|
1337
1343
|
var x = w[v.l];
|
|
1338
1344
|
M && (H = M("" + H)), m = typeof x == "string" ? x.replace("%d", H) : x(H, A, v.l, p);
|
|
1339
1345
|
break;
|
|
@@ -1376,7 +1382,7 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1376
1382
|
var m = new Date(g);
|
|
1377
1383
|
return (function(p, w) {
|
|
1378
1384
|
w === void 0 && (w = {});
|
|
1379
|
-
var
|
|
1385
|
+
var T = w.timeZoneName || "short", k = p + "|" + T, P = n[k];
|
|
1380
1386
|
return P || (P = new Intl.DateTimeFormat("en-US", {
|
|
1381
1387
|
hour12: !1,
|
|
1382
1388
|
timeZone: p,
|
|
@@ -1386,22 +1392,22 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1386
1392
|
hour: "2-digit",
|
|
1387
1393
|
minute: "2-digit",
|
|
1388
1394
|
second: "2-digit",
|
|
1389
|
-
timeZoneName:
|
|
1390
|
-
}), n[
|
|
1395
|
+
timeZoneName: T
|
|
1396
|
+
}), n[k] = P), P;
|
|
1391
1397
|
})(M, C).formatToParts(m);
|
|
1392
1398
|
}, S = function(g, M) {
|
|
1393
1399
|
for (var C = h(g, M), m = [], p = 0; p < C.length; p += 1) {
|
|
1394
|
-
var w = C[p],
|
|
1395
|
-
P >= 0 && (m[P] = parseInt(
|
|
1400
|
+
var w = C[p], T = w.type, k = w.value, P = i[T];
|
|
1401
|
+
P >= 0 && (m[P] = parseInt(k, 10));
|
|
1396
1402
|
}
|
|
1397
1403
|
var v = m[3], H = v === 24 ? 0 : v, x = m[0] + "-" + m[1] + "-" + m[2] + " " + H + ":" + m[4] + ":" + m[5] + ":000", J = +g;
|
|
1398
1404
|
return (u.utc(x).valueOf() - (J -= J % 1e3)) / 6e4;
|
|
1399
1405
|
}, A = s.prototype;
|
|
1400
1406
|
A.tz = function(g, M) {
|
|
1401
1407
|
g === void 0 && (g = d);
|
|
1402
|
-
var C, m = this.utcOffset(), p = this.toDate(), w = p.toLocaleString("en-US", { timeZone: g }),
|
|
1403
|
-
if (!Number(
|
|
1404
|
-
else if (C = u(w, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(
|
|
1408
|
+
var C, m = this.utcOffset(), p = this.toDate(), w = p.toLocaleString("en-US", { timeZone: g }), T = Math.round((p - new Date(w)) / 1e3 / 60), k = 15 * -Math.round(p.getTimezoneOffset() / 15) - T;
|
|
1409
|
+
if (!Number(k)) C = this.utcOffset(0, M);
|
|
1410
|
+
else if (C = u(w, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(k, !0), M) {
|
|
1405
1411
|
var P = C.utcOffset();
|
|
1406
1412
|
C = C.add(m - P, "minute");
|
|
1407
1413
|
}
|
|
@@ -1412,20 +1418,20 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1412
1418
|
}));
|
|
1413
1419
|
return C && C.value;
|
|
1414
1420
|
};
|
|
1415
|
-
var
|
|
1421
|
+
var O = A.startOf;
|
|
1416
1422
|
A.startOf = function(g, M) {
|
|
1417
|
-
if (!this.$x || !this.$x.$timezone) return
|
|
1423
|
+
if (!this.$x || !this.$x.$timezone) return O.call(this, g, M);
|
|
1418
1424
|
var C = u(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
1419
|
-
return
|
|
1425
|
+
return O.call(C, g, M).tz(this.$x.$timezone, !0);
|
|
1420
1426
|
}, u.tz = function(g, M, C) {
|
|
1421
1427
|
var m = C && M, p = C || M || d, w = S(+u(), p);
|
|
1422
1428
|
if (typeof g != "string") return u(g).tz(p);
|
|
1423
|
-
var
|
|
1429
|
+
var T = (function(H, x, J) {
|
|
1424
1430
|
var B = H - 60 * x * 1e3, L = S(B, J);
|
|
1425
1431
|
if (x === L) return [B, x];
|
|
1426
1432
|
var D = S(B -= 60 * (L - x) * 1e3, J);
|
|
1427
1433
|
return L === D ? [B, L] : [H - 60 * Math.min(L, D) * 1e3, Math.max(L, D)];
|
|
1428
|
-
})(u.utc(g, m).valueOf(), w, p),
|
|
1434
|
+
})(u.utc(g, m).valueOf(), w, p), k = T[0], P = T[1], v = u(k).utcOffset(P);
|
|
1429
1435
|
return v.$x.$timezone = p, v;
|
|
1430
1436
|
}, u.tz.guess = function() {
|
|
1431
1437
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -1471,10 +1477,10 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1471
1477
|
this.$y = m.getUTCFullYear(), this.$M = m.getUTCMonth(), this.$D = m.getUTCDate(), this.$W = m.getUTCDay(), this.$H = m.getUTCHours(), this.$m = m.getUTCMinutes(), this.$s = m.getUTCSeconds(), this.$ms = m.getUTCMilliseconds();
|
|
1472
1478
|
} else A.call(this);
|
|
1473
1479
|
};
|
|
1474
|
-
var
|
|
1480
|
+
var O = h.utcOffset;
|
|
1475
1481
|
h.utcOffset = function(m, p) {
|
|
1476
1482
|
var w = this.$utils().u;
|
|
1477
|
-
if (w(m)) return this.$u ? 0 : w(this.$offset) ?
|
|
1483
|
+
if (w(m)) return this.$u ? 0 : w(this.$offset) ? O.call(this) : this.$offset;
|
|
1478
1484
|
if (typeof m == "string" && (m = (function(v) {
|
|
1479
1485
|
v === void 0 && (v = "");
|
|
1480
1486
|
var H = v.match(n);
|
|
@@ -1486,12 +1492,12 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1486
1492
|
], J = x[0], B = 60 * +x[1] + +x[2];
|
|
1487
1493
|
return B === 0 ? 0 : J === "+" ? B : -B;
|
|
1488
1494
|
})(m), m === null)) return this;
|
|
1489
|
-
var
|
|
1490
|
-
if (
|
|
1491
|
-
var
|
|
1492
|
-
if (p) return
|
|
1495
|
+
var T = Math.abs(m) <= 16 ? 60 * m : m;
|
|
1496
|
+
if (T === 0) return this.utc(p);
|
|
1497
|
+
var k = this.clone();
|
|
1498
|
+
if (p) return k.$offset = T, k.$u = !1, k;
|
|
1493
1499
|
var P = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1494
|
-
return (
|
|
1500
|
+
return (k = this.local().add(T + P, i)).$offset = T, k.$x.$localOffset = P, k;
|
|
1495
1501
|
};
|
|
1496
1502
|
var g = h.format;
|
|
1497
1503
|
h.format = function(m) {
|
|
@@ -1514,8 +1520,8 @@ var je = /* @__PURE__ */ X(((e, t) => {
|
|
|
1514
1520
|
var C = h.diff;
|
|
1515
1521
|
h.diff = function(m, p, w) {
|
|
1516
1522
|
if (m && this.$u === m.$u) return C.call(this, m, p, w);
|
|
1517
|
-
var
|
|
1518
|
-
return C.call(
|
|
1523
|
+
var T = this.local(), k = d(m).local();
|
|
1524
|
+
return C.call(T, k, p, w);
|
|
1519
1525
|
};
|
|
1520
1526
|
};
|
|
1521
1527
|
}));
|
|
@@ -5161,12 +5167,14 @@ var vo = class {
|
|
|
5161
5167
|
});
|
|
5162
5168
|
const i = this.config.apiEnvironment;
|
|
5163
5169
|
let n = this.config.apiBaseUrl ?? Et[i];
|
|
5164
|
-
i === ee.Local && (n = "http://127.0.0.1:3001")
|
|
5170
|
+
i === ee.Local && (n = "http://127.0.0.1:3001");
|
|
5171
|
+
const o = new it({
|
|
5165
5172
|
basePath: n,
|
|
5166
5173
|
fetchApi: Ht.default,
|
|
5167
5174
|
headers: t,
|
|
5168
5175
|
middleware: [new vo(this.config), new No(this.config)]
|
|
5169
|
-
})
|
|
5176
|
+
});
|
|
5177
|
+
this.apiVersionsToClient = { v1: Do(o) };
|
|
5170
5178
|
}
|
|
5171
5179
|
get bookingPolicies() {
|
|
5172
5180
|
return this.apiVersionsToClient[this.config.apiVersion].bookingPolicies;
|