@revolugo/elements 5.5.2-beta.2 → 5.5.2-beta.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/css/revolugo.hoteloffersmap.0LnWfOu_.css +1 -0
- package/dist/css/{revolugo.index.DXv5c7NS.css → revolugo.index.vq4xksqn.css} +1 -1
- package/dist/index.es.min.js +2864 -2527
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +18 -18
- package/dist/index.min.js.map +1 -1
- package/dist/{revolugo.banktransferdetails.C7_zVOmo.min.js → revolugo.banktransferdetails.B7_jPYvK.min.js} +12 -12
- package/dist/{revolugo.bbreakfastoptionbadge.Ce49dA49.min.js → revolugo.bbreakfastoptionbadge.Dm8Hg0JG.min.js} +5 -5
- package/dist/{revolugo.bdaterangepicker.Bn7furEJ.min.js → revolugo.bdaterangepicker.Dg-2V8a-.min.js} +20 -20
- package/dist/{revolugo.bformattedamount.BFXskYwq.min.js → revolugo.bformattedamount.BHx3XEMy.min.js} +3 -3
- package/dist/{revolugo.bhotelroomsdetails.CGzQEygX.min.js → revolugo.bhotelroomsdetails.DclxKw6d.min.js} +4 -4
- package/dist/{revolugo.bhotelsearchbar.AZssZXVa.min.js → revolugo.bhotelsearchbar.B28a8mkX.min.js} +24 -24
- package/dist/{revolugo.booking-api-client.sLozEu8x.min.js → revolugo.booking-api-client.DvSn1HH3.min.js} +1418 -1250
- package/dist/{revolugo.bookingdetailssidebar.CzJuxCyi.min.js → revolugo.bookingdetailssidebar.DowCoe3e.min.js} +4 -4
- package/dist/{revolugo.bookingdetailssidebar.Cyh9ESY5.min.js → revolugo.bookingdetailssidebar.DyzAVIw0.min.js} +15 -15
- package/dist/{revolugo.bookingmanager.DFOGB8oH.min.js → revolugo.bookingmanager.CioQfXve.min.js} +38 -39
- package/dist/{revolugo.bphoneinput.BD5yV30G.min.js → revolugo.bphoneinput.CbjK0GaP.min.js} +5 -5
- package/dist/{revolugo.bpricesummaryskeleton.DLPx7XMt.min.js → revolugo.bpricesummaryskeleton.B1YiMdeT.min.js} +4 -4
- package/dist/{revolugo.breakpoint-service.CligvfbR.min.js → revolugo.breakpoint-service.B_u4hRXE.min.js} +3 -3
- package/dist/{revolugo.bstarrating.EUallQbz.min.js → revolugo.bstarrating.DJbuspKX.min.js} +6 -6
- package/dist/{revolugo.btag.BFCVF0Me.min.js → revolugo.btag.BL0hdWZp.min.js} +6 -6
- package/dist/{revolugo.cancellationpoliciesbadge.DOwMr0x3.min.js → revolugo.cancellationpoliciesbadge.CJfCgxpJ.min.js} +4 -4
- package/dist/{revolugo.cancellationpoliciesbadge.BlUG2A9X.min.js → revolugo.cancellationpoliciesbadge.DAurCaOb.min.js} +29 -45
- package/dist/{revolugo.cancellationpolicieslist.fjdTs1rY.min.js → revolugo.cancellationpolicieslist.DlLz3-L5.min.js} +4 -4
- package/dist/{revolugo.cancellationpolicieslist.5yiBohSU.min.js → revolugo.cancellationpolicieslist.Z6z4KLwq.min.js} +7 -8
- package/dist/{revolugo.common.C_rtPL-E.min.js → revolugo.common.Cr1Vmg4o.min.js} +2 -2
- package/dist/{revolugo.creditcardform.C3fQHyxV.min.js → revolugo.creditcardform.6hrHK5tJ.min.js} +122 -124
- package/dist/{revolugo.creditcardform.LlbnFrMn.min.js → revolugo.creditcardform.BLWVNF08.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.8C5f7CZ4.min.js → revolugo.creditcardpayment.BCxpncb5.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.DUk6kCnc.min.js → revolugo.creditcardpayment.DgccQvIq.min.js} +25 -25
- package/dist/{revolugo.currencypicker.wqREtJ__.min.js → revolugo.currencypicker.DM6LT7QZ.min.js} +9 -9
- package/dist/{revolugo.currencypickerbtn.B2m0S_4y.min.js → revolugo.currencypickerbtn.BCPsT_XN.min.js} +4 -4
- package/dist/{revolugo.currencypickerbtn.DBD-dfnI.min.js → revolugo.currencypickerbtn.CUvxld1g.min.js} +9 -9
- package/dist/{revolugo.dialog-attach.GnnAYjIE.min.js → revolugo.dialog-attach.05NirMLv.min.js} +2 -2
- package/dist/{revolugo.en-us.BP-UxrRq.min.js → revolugo.en-us.C3hceEHJ.min.js} +2 -2
- package/dist/{revolugo.fr-fr.CF_knN5b.min.js → revolugo.fr-fr.CNUKOGnA.min.js} +2 -2
- package/dist/{revolugo.fullbookingflow.C_c9KQQR.min.js → revolugo.fullbookingflow.BWPrcpjW.min.js} +18 -18
- package/dist/{revolugo.hotel-offer.BUVwH9VX.min.js → revolugo.hotel-offer.Djoa0a-k.min.js} +15 -15
- package/dist/{revolugo.hoteldescriptionview.CLJG1-vV.min.js → revolugo.hoteldescriptionview.B2t9oO1z.min.js} +502 -536
- package/dist/{revolugo.hoteldescriptionview.Bq1O1Xil.min.js → revolugo.hoteldescriptionview.B5ZpoXZO.min.js} +4 -4
- package/dist/{revolugo.hotelofferitemlayout.Tqhfw-aC.min.js → revolugo.hotelofferitemlayout.B2XZBWSP.min.js} +8 -8
- package/dist/{revolugo.hotelofferlist.BFL1YRt0.min.js → revolugo.hotelofferlist.CZ2JmuoU.min.js} +4 -4
- package/dist/revolugo.hotelofferlist.D91DAfo1.min.js +3450 -0
- package/dist/{revolugo.hotelofferrequestcreator.BDI8RIzt.min.js → revolugo.hotelofferrequestcreator.CeSDxj2f.min.js} +4 -4
- package/dist/{revolugo.hoteloffersearchmenu.BpJ-FUdV.min.js → revolugo.hoteloffersearchmenu.BYH3cEv-.min.js} +6 -6
- package/dist/{revolugo.hoteloffersmap.BlhVP5-Z.min.js → revolugo.hoteloffersmap.R4MjLA1w.min.js} +4 -4
- package/dist/{revolugo.hoteloffersmap.wLH_KGii.min.js → revolugo.hoteloffersmap.frBZ84xp.min.js} +19 -19
- package/dist/{revolugo.hoteloffersview.Di7h66f5.min.js → revolugo.hoteloffersview.CJ-cKbDb.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.CklEMw2R.min.js → revolugo.hoteloffersview.D6n6-1GE.min.js} +17 -17
- package/dist/{revolugo.hotelroomofferlist.CLiINofQ.min.js → revolugo.hotelroomofferlist.CYH9xFnE.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.CahCySw9.min.js → revolugo.hotelroomofferlist.CxHvmqd8.min.js} +42 -42
- package/dist/{revolugo.hotelroomofferrequestcreator.CBVXmo6p.min.js → revolugo.hotelroomofferrequestcreator.DGcSkjdQ.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersbookingflow.5DxPgDlm.min.js → revolugo.hotelroomoffersbookingflow.BFMzyY4P.min.js} +17 -17
- package/dist/{revolugo.hotelroomoffersearchmenu.ClB2fFNQ.min.js → revolugo.hotelroomoffersearchmenu.CxMc1T-y.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersearchmenu.hkcy1YzX.min.js → revolugo.hotelroomoffersearchmenu.D7rsNGbs.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersview.CF7YEgbC.min.js → revolugo.hotelroomoffersview.Bd3IbS3t.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersview.WAYlooyc.min.js → revolugo.hotelroomoffersview.amgBPtEu.min.js} +13 -13
- package/dist/{revolugo.i18n.CyGKqo0B.min.js → revolugo.i18n.DF3U6VhD.min.js} +3091 -2757
- package/dist/{revolugo.index.B-fKWuIg.min.js → revolugo.index.ARilNRbf.min.js} +3 -3
- package/dist/{revolugo.index.DEJEDSDi.min.js → revolugo.index.BVlYkTKI.min.js} +9 -9
- package/dist/{revolugo.index.BpZHnXFS.min.js → revolugo.index.C43x-oHN.min.js} +4 -4
- package/dist/revolugo.index.CLHTmfqr.min.js +15 -0
- package/dist/{revolugo.index.CsWvarCO.min.js → revolugo.index.CMLLmfXW.min.js} +2 -2
- package/dist/{revolugo.index.FGCgdl6A.min.js → revolugo.index.CtsFvYUh.min.js} +6 -6
- package/dist/{revolugo.index.2rRqbmTI.min.js → revolugo.index.D2e43h2P.min.js} +3 -3
- package/dist/{revolugo.index.roOsqEC8.min.js → revolugo.index.D4OBwuJ8.min.js} +5 -5
- package/dist/{revolugo.index.D4mTtHy0.min.js → revolugo.index.DOIprwMn.min.js} +5 -5
- package/dist/{revolugo.index.CB0aeVeA.min.js → revolugo.index.DgFqq7Hc.min.js} +2 -2
- package/dist/{revolugo.index.DVlgraIx.min.js → revolugo.index.GdvjICDR.min.js} +2 -2
- package/dist/{revolugo.index.B_EzELYh.min.js → revolugo.index.KfhJyl0J.min.js} +6 -6
- package/dist/{revolugo.index.BXlPRtGz.min.js → revolugo.index.WPnnRpp1.min.js} +3 -3
- package/dist/{revolugo.index.Tg1ts5ba.min.js → revolugo.index.djaIYll6.min.js} +5 -5
- package/dist/{revolugo.langpicker.DxUfUdgi.min.js → revolugo.langpicker.6SmJxqB-.min.js} +7 -7
- package/dist/{revolugo.langpickerbtn.CTjVH93j.min.js → revolugo.langpickerbtn.CS5-6hJP.min.js} +13 -13
- package/dist/{revolugo.langpickerbtn.BKUmtrmC.min.js → revolugo.langpickerbtn.x09pwrir.min.js} +4 -4
- package/dist/{revolugo.localizedformat.BmFJB2Ek.min.js → revolugo.localizedformat.Wox_NThB.min.js} +4 -4
- package/dist/revolugo.min.js +25 -25
- package/dist/{revolugo.parsed-height.C9EDOdpc.min.js → revolugo.parsed-height.IQwef2v4.min.js} +87 -87
- package/dist/{revolugo.parsed-props.DLM9lIFH.min.js → revolugo.parsed-props.EmQQE7AT.min.js} +3 -3
- package/dist/{revolugo.prebookform.BOw8d85r.min.js → revolugo.prebookform.Bvi-VzJY.min.js} +4 -4
- package/dist/{revolugo.prebookform.C-UGopr1.min.js → revolugo.prebookform.CnuFtNkd.min.js} +21 -21
- package/dist/{revolugo.revolugo-config.CV2-KqZg.min.js → revolugo.revolugo-config.C_yvumJ4.min.js} +20 -20
- package/dist/{revolugo.roominglisteditor.BylXWjko.min.js → revolugo.roominglisteditor.C8RmVzAV.min.js} +4 -4
- package/dist/{revolugo.roominglisteditor.BraACVch.min.js → revolugo.roominglisteditor.DJ-0gwO3.min.js} +10 -10
- package/dist/{revolugo.sentry.BUFmhrag.min.js → revolugo.sentry.Bc7mnscp.min.js} +5598 -4441
- package/dist/revolugo.store.ByCEVa9r.min.js +1677 -0
- package/dist/{revolugo.storybooktoolbar.B3GXxMU5.min.js → revolugo.storybooktoolbar.Cy7JmbrC.min.js} +20 -20
- package/dist/{revolugo.termsandconditions.iierLPPe.min.js → revolugo.termsandconditions.B_wWY79n.min.js} +4 -4
- package/dist/{revolugo.termsandconditions.gfMYAJC9.min.js → revolugo.termsandconditions.JcibbG0S.min.js} +6 -6
- package/dist/revolugo.typed-mixins.B_7wrdes.min.js +8 -0
- package/dist/{revolugo.valert.D2QkjVyq.min.js → revolugo.valert.B9i90aU5.min.js} +7 -7
- package/dist/{revolugo.vautocomplete.DesK4IqD.min.js → revolugo.vautocomplete.CJlBIY_s.min.js} +5 -5
- package/dist/{revolugo.vbadge.D8uLY_qO.min.js → revolugo.vbadge.yXj9WW14.min.js} +6 -6
- package/dist/{revolugo.vbtn.BnwFj80Q.min.js → revolugo.vbtn.CKZRP-8S.min.js} +7 -7
- package/dist/{revolugo.vcard.B9oLf8X7.min.js → revolugo.vcard.wWqwyJlE.min.js} +5 -5
- package/dist/{revolugo.vchip.gQCW4zyM.min.js → revolugo.vchip.DQ4NkEVD.min.js} +5 -5
- package/dist/{revolugo.vdialog.BGaQYjRQ.min.js → revolugo.vdialog.uV-ELHr9.min.js} +7 -7
- package/dist/{revolugo.vexpansionpanelheader.PUrYDsqZ.min.js → revolugo.vexpansionpanelheader.CaoP-Ur-.min.js} +8 -8
- package/dist/{revolugo.vform.B2Cw_jFG.min.js → revolugo.vform.D4xBVTnZ.min.js} +4 -4
- package/dist/{revolugo.vinput.BH9yXmhW.min.js → revolugo.vinput.D3fd6Cqe.min.js} +5 -5
- package/dist/{revolugo.vitemgroup.ZH_RbJd4.min.js → revolugo.vitemgroup.CzSa19ny.min.js} +5 -5
- package/dist/{revolugo.vlistitem.rGqVrGQv.min.js → revolugo.vlistitem.BSDPmq5P.min.js} +6 -6
- package/dist/{revolugo.vmenu.DVIyMqmT.min.js → revolugo.vmenu.CeTQuzbq.min.js} +8 -8
- package/dist/{revolugo.vselect.DGAcOur7.min.js → revolugo.vselect.BwB03_co.min.js} +15 -15
- package/dist/{revolugo.vsheet.g-wezcj4.min.js → revolugo.vsheet.CAOwV2Uq.min.js} +5 -5
- package/dist/{revolugo.vskeletonloader.By4xa0Dw.min.js → revolugo.vskeletonloader.CYHm_abV.min.js} +4 -4
- package/dist/{revolugo.vslidegroup.FBTC8IQv.min.js → revolugo.vslidegroup.D8AmJirK.min.js} +10 -10
- package/dist/{revolugo.vsnackbar.B-3BiuN_.min.js → revolugo.vsnackbar.B6NbAMIU.min.js} +5 -5
- package/dist/{revolugo.vtextfield.Bz_46CYU.min.js → revolugo.vtextfield.DABGar12.min.js} +7 -7
- package/dist/{revolugo.vtoolbar.C8u8AAF6.min.js → revolugo.vtoolbar.B9Np4Djl.min.js} +5 -5
- package/dist/{revolugo.vtooltip.D-CwTnZW.min.js → revolugo.vtooltip.B-Gq8ikS.min.js} +5 -5
- package/dist/{revolugo.vuetify.wVP8V0K5.min.js → revolugo.vuetify.DmaSrVZn.min.js} +12 -12
- package/dist/{revolugo.watch-list.B0bwqcfr.min.js → revolugo.watch-list.Bf3j_fG4.min.js} +3 -3
- package/dist/{revolugo.webcomponentwrapper.C4B-n-nK.min.js → revolugo.webcomponentwrapper.C2TJRpNa.min.js} +8 -8
- package/package.json +3 -14
- package/dist/css/revolugo.hoteloffersmap.-ZhDcfsj.css +0 -1
- package/dist/revolugo.hotelofferlist.DUw3z5s6.min.js +0 -3779
- package/dist/revolugo.index.Lg6xnuBU.min.js +0 -15
- package/dist/revolugo.store.CrqNkSlz.min.js +0 -2497
- package/dist/revolugo.typed-mixins.D4p2Nb8x.min.js +0 -8
@@ -0,0 +1,3450 @@
|
|
1
|
+
import { _ as vo } from "./revolugo.booking-api-client.DvSn1HH3.min.js";
|
2
|
+
import { a as Ao, g as jt, d as Ve } from "./revolugo.store.ByCEVa9r.min.js";
|
3
|
+
import { h as Io, H as bo } from "./revolugo.hotelofferrequestcreator.CeSDxj2f.min.js";
|
4
|
+
import { H as Eo, B as ko, b as Oo, c as _o, p as Co } from "./revolugo.parsed-height.IQwef2v4.min.js";
|
5
|
+
import { H as xi } from "./revolugo.hotelofferitemlayout.B2XZBWSP.min.js";
|
6
|
+
import { X as So, V as Mi, Y as Re, a as Ro } from "./revolugo.i18n.DF3U6VhD.min.js";
|
7
|
+
import { B as To, _ as wo } from "./revolugo.bphoneinput.CbjK0GaP.min.js";
|
8
|
+
import { l as Pr, n as Dr, _ as $n, a as Ke, B as Po } from "./revolugo.webcomponentwrapper.C2TJRpNa.min.js";
|
9
|
+
import { _ as Do } from "./revolugo.vform.D4xBVTnZ.min.js";
|
10
|
+
import { _ as $e } from "./revolugo.vtextfield.DABGar12.min.js";
|
11
|
+
import { _ as Gr } from "./revolugo.vmenu.CeTQuzbq.min.js";
|
12
|
+
import { a as Ur, _ as Lo } from "./revolugo.bdaterangepicker.Dg-2V8a-.min.js";
|
13
|
+
import { _ as Lr } from "./revolugo.vbtn.CKZRP-8S.min.js";
|
14
|
+
import { b as Ni } from "./revolugo.breakpoint-service.B_u4hRXE.min.js";
|
15
|
+
import { _ as br, p as xo } from "./revolugo.parsed-props.EmQQE7AT.min.js";
|
16
|
+
import { H as Mo } from "./revolugo.hotelroomofferlist.CxHvmqd8.min.js";
|
17
|
+
import { w as No } from "./revolugo.watch-list.Bf3j_fG4.min.js";
|
18
|
+
import { t as Bo } from "./revolugo.typed-mixins.B_7wrdes.min.js";
|
19
|
+
import { T as Fo } from "./revolugo.termsandconditions.JcibbG0S.min.js";
|
20
|
+
import { _ as Go } from "./revolugo.index.BVlYkTKI.min.js";
|
21
|
+
const Uo = {
|
22
|
+
FiltersBar: !0,
|
23
|
+
TermsAndConditionsFooter: !0,
|
24
|
+
HotelOfferItem: Eo
|
25
|
+
}, Ho = {
|
26
|
+
...Io,
|
27
|
+
features: {
|
28
|
+
default: () => Uo,
|
29
|
+
type: [Object, String]
|
30
|
+
},
|
31
|
+
height: {
|
32
|
+
default: "600px",
|
33
|
+
type: [Number, String]
|
34
|
+
},
|
35
|
+
hotelRoomOffersLimit: {
|
36
|
+
type: Number
|
37
|
+
},
|
38
|
+
loadingBarEnabled: {
|
39
|
+
type: Boolean,
|
40
|
+
default: !0
|
41
|
+
},
|
42
|
+
limit: {
|
43
|
+
type: Number,
|
44
|
+
default: So
|
45
|
+
},
|
46
|
+
maxHeight: {
|
47
|
+
default: "90vh",
|
48
|
+
type: [Number, String]
|
49
|
+
},
|
50
|
+
rounded: {
|
51
|
+
type: Boolean,
|
52
|
+
default: !0
|
53
|
+
}
|
54
|
+
};
|
55
|
+
function Hr(n, t) {
|
56
|
+
var e = Object.keys(n);
|
57
|
+
if (Object.getOwnPropertySymbols) {
|
58
|
+
var r = Object.getOwnPropertySymbols(n);
|
59
|
+
t && (r = r.filter(function(i) {
|
60
|
+
return Object.getOwnPropertyDescriptor(n, i).enumerable;
|
61
|
+
})), e.push.apply(e, r);
|
62
|
+
}
|
63
|
+
return e;
|
64
|
+
}
|
65
|
+
function S(n) {
|
66
|
+
for (var t = 1; t < arguments.length; t++) {
|
67
|
+
var e = arguments[t] != null ? arguments[t] : {};
|
68
|
+
t % 2 ? Hr(Object(e), !0).forEach(function(r) {
|
69
|
+
o(n, r, e[r]);
|
70
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(e)) : Hr(Object(e)).forEach(function(r) {
|
71
|
+
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(e, r));
|
72
|
+
});
|
73
|
+
}
|
74
|
+
return n;
|
75
|
+
}
|
76
|
+
function x(n) {
|
77
|
+
return x = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
78
|
+
return typeof t;
|
79
|
+
} : function(t) {
|
80
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
81
|
+
}, x(n);
|
82
|
+
}
|
83
|
+
function B(n, t) {
|
84
|
+
if (!(n instanceof t))
|
85
|
+
throw new TypeError("Cannot call a class as a function");
|
86
|
+
}
|
87
|
+
function jr(n, t) {
|
88
|
+
for (var e = 0; e < t.length; e++) {
|
89
|
+
var r = t[e];
|
90
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, Bi(r.key), r);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
function F(n, t, e) {
|
94
|
+
return t && jr(n.prototype, t), e && jr(n, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
95
|
+
}
|
96
|
+
function o(n, t, e) {
|
97
|
+
return (t = Bi(t)) in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
98
|
+
}
|
99
|
+
function Qe() {
|
100
|
+
return Qe = Object.assign ? Object.assign.bind() : function(n) {
|
101
|
+
for (var t = 1; t < arguments.length; t++) {
|
102
|
+
var e = arguments[t];
|
103
|
+
for (var r in e)
|
104
|
+
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
105
|
+
}
|
106
|
+
return n;
|
107
|
+
}, Qe.apply(this, arguments);
|
108
|
+
}
|
109
|
+
function ce(n) {
|
110
|
+
return function(t) {
|
111
|
+
if (Array.isArray(t))
|
112
|
+
return Xn(t);
|
113
|
+
}(n) || function(t) {
|
114
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null)
|
115
|
+
return Array.from(t);
|
116
|
+
}(n) || function(t, e) {
|
117
|
+
if (t) {
|
118
|
+
if (typeof t == "string")
|
119
|
+
return Xn(t, e);
|
120
|
+
var r = Object.prototype.toString.call(t).slice(8, -1);
|
121
|
+
if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set")
|
122
|
+
return Array.from(t);
|
123
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
124
|
+
return Xn(t, e);
|
125
|
+
}
|
126
|
+
}(n) || function() {
|
127
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
128
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
129
|
+
}();
|
130
|
+
}
|
131
|
+
function Xn(n, t) {
|
132
|
+
(t == null || t > n.length) && (t = n.length);
|
133
|
+
for (var e = 0, r = new Array(t); e < t; e++)
|
134
|
+
r[e] = n[e];
|
135
|
+
return r;
|
136
|
+
}
|
137
|
+
function Bi(n) {
|
138
|
+
var t = function(e, r) {
|
139
|
+
if (typeof e != "object" || e === null)
|
140
|
+
return e;
|
141
|
+
var i = e[Symbol.toPrimitive];
|
142
|
+
if (i !== void 0) {
|
143
|
+
var s = i.call(e, r || "default");
|
144
|
+
if (typeof s != "object")
|
145
|
+
return s;
|
146
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
147
|
+
}
|
148
|
+
return (r === "string" ? String : Number)(e);
|
149
|
+
}(n, "string");
|
150
|
+
return typeof t == "symbol" ? t : String(t);
|
151
|
+
}
|
152
|
+
function Bt(n) {
|
153
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
154
|
+
}
|
155
|
+
var Fi = { exports: {} };
|
156
|
+
(function(n) {
|
157
|
+
function t(e) {
|
158
|
+
if (e)
|
159
|
+
return function(r) {
|
160
|
+
for (var i in t.prototype)
|
161
|
+
r[i] = t.prototype[i];
|
162
|
+
return r;
|
163
|
+
}(e);
|
164
|
+
}
|
165
|
+
Fi.exports = t, t.prototype.on = t.prototype.addEventListener = function(e, r) {
|
166
|
+
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + e] = this._callbacks["$" + e] || []).push(r), this;
|
167
|
+
}, t.prototype.once = function(e, r) {
|
168
|
+
function i() {
|
169
|
+
this.off(e, i), r.apply(this, arguments);
|
170
|
+
}
|
171
|
+
return i.fn = r, this.on(e, i), this;
|
172
|
+
}, t.prototype.off = t.prototype.removeListener = t.prototype.removeAllListeners = t.prototype.removeEventListener = function(e, r) {
|
173
|
+
if (this._callbacks = this._callbacks || {}, arguments.length == 0)
|
174
|
+
return this._callbacks = {}, this;
|
175
|
+
var i, s = this._callbacks["$" + e];
|
176
|
+
if (!s)
|
177
|
+
return this;
|
178
|
+
if (arguments.length == 1)
|
179
|
+
return delete this._callbacks["$" + e], this;
|
180
|
+
for (var u = 0; u < s.length; u++)
|
181
|
+
if ((i = s[u]) === r || i.fn === r) {
|
182
|
+
s.splice(u, 1);
|
183
|
+
break;
|
184
|
+
}
|
185
|
+
return s.length === 0 && delete this._callbacks["$" + e], this;
|
186
|
+
}, t.prototype.emit = function(e) {
|
187
|
+
this._callbacks = this._callbacks || {};
|
188
|
+
for (var r = new Array(arguments.length - 1), i = this._callbacks["$" + e], s = 1; s < arguments.length; s++)
|
189
|
+
r[s - 1] = arguments[s];
|
190
|
+
if (i) {
|
191
|
+
s = 0;
|
192
|
+
for (var u = (i = i.slice(0)).length; s < u; ++s)
|
193
|
+
i[s].apply(this, r);
|
194
|
+
}
|
195
|
+
return this;
|
196
|
+
}, t.prototype.listeners = function(e) {
|
197
|
+
return this._callbacks = this._callbacks || {}, this._callbacks["$" + e] || [];
|
198
|
+
}, t.prototype.hasListeners = function(e) {
|
199
|
+
return !!this.listeners(e).length;
|
200
|
+
};
|
201
|
+
})();
|
202
|
+
var We, Gi = Fi.exports, jo = Bt(Gi), Er = { exports: {} };
|
203
|
+
We = Er.exports, (We = Er.exports = function(n) {
|
204
|
+
return n.trim ? n.trim() : We.right(We.left(n));
|
205
|
+
}).left = function(n) {
|
206
|
+
return n.trimLeft ? n.trimLeft() : n.replace(/^\s\s*/, "");
|
207
|
+
}, We.right = function(n) {
|
208
|
+
if (n.trimRight)
|
209
|
+
return n.trimRight();
|
210
|
+
for (var t = /\s/, e = n.length; t.test(n.charAt(--e)); )
|
211
|
+
;
|
212
|
+
return n.slice(0, e + 1);
|
213
|
+
};
|
214
|
+
var qo = Er.exports, Ko = /(\w+)\[(\d+)\]/, Jn = function(n) {
|
215
|
+
try {
|
216
|
+
return decodeURIComponent(n.replace(/\+/g, " "));
|
217
|
+
} catch {
|
218
|
+
return n;
|
219
|
+
}
|
220
|
+
}, Ui = function(n) {
|
221
|
+
if (typeof n != "string")
|
222
|
+
return {};
|
223
|
+
if ((n = qo(n)) == "")
|
224
|
+
return {};
|
225
|
+
n.charAt(0) == "?" && (n = n.slice(1));
|
226
|
+
for (var t = {}, e = n.split("&"), r = 0; r < e.length; r++) {
|
227
|
+
var i, s = e[r].split("="), u = Jn(s[0]);
|
228
|
+
(i = Ko.exec(u)) ? (t[i[1]] = t[i[1]] || [], t[i[1]][i[2]] = Jn(s[1])) : t[s[0]] = s[1] == null ? "" : Jn(s[1]);
|
229
|
+
}
|
230
|
+
return t;
|
231
|
+
};
|
232
|
+
function N(n) {
|
233
|
+
return n != null && x(n) === "object" && n["@@functional/placeholder"] === !0;
|
234
|
+
}
|
235
|
+
function Mt(n) {
|
236
|
+
return function t(e) {
|
237
|
+
return arguments.length === 0 || N(e) ? t : n.apply(this, arguments);
|
238
|
+
};
|
239
|
+
}
|
240
|
+
function Te(n) {
|
241
|
+
return function t(e, r) {
|
242
|
+
switch (arguments.length) {
|
243
|
+
case 0:
|
244
|
+
return t;
|
245
|
+
case 1:
|
246
|
+
return N(e) ? t : Mt(function(i) {
|
247
|
+
return n(e, i);
|
248
|
+
});
|
249
|
+
default:
|
250
|
+
return N(e) && N(r) ? t : N(e) ? Mt(function(i) {
|
251
|
+
return n(i, r);
|
252
|
+
}) : N(r) ? Mt(function(i) {
|
253
|
+
return n(e, i);
|
254
|
+
}) : n(e, r);
|
255
|
+
}
|
256
|
+
};
|
257
|
+
}
|
258
|
+
function xr(n) {
|
259
|
+
return function t(e, r, i) {
|
260
|
+
switch (arguments.length) {
|
261
|
+
case 0:
|
262
|
+
return t;
|
263
|
+
case 1:
|
264
|
+
return N(e) ? t : Te(function(s, u) {
|
265
|
+
return n(e, s, u);
|
266
|
+
});
|
267
|
+
case 2:
|
268
|
+
return N(e) && N(r) ? t : N(e) ? Te(function(s, u) {
|
269
|
+
return n(s, r, u);
|
270
|
+
}) : N(r) ? Te(function(s, u) {
|
271
|
+
return n(e, s, u);
|
272
|
+
}) : Mt(function(s) {
|
273
|
+
return n(e, r, s);
|
274
|
+
});
|
275
|
+
default:
|
276
|
+
return N(e) && N(r) && N(i) ? t : N(e) && N(r) ? Te(function(s, u) {
|
277
|
+
return n(s, u, i);
|
278
|
+
}) : N(e) && N(i) ? Te(function(s, u) {
|
279
|
+
return n(s, r, u);
|
280
|
+
}) : N(r) && N(i) ? Te(function(s, u) {
|
281
|
+
return n(e, s, u);
|
282
|
+
}) : N(e) ? Mt(function(s) {
|
283
|
+
return n(s, r, i);
|
284
|
+
}) : N(r) ? Mt(function(s) {
|
285
|
+
return n(e, s, i);
|
286
|
+
}) : N(i) ? Mt(function(s) {
|
287
|
+
return n(e, r, s);
|
288
|
+
}) : n(e, r, i);
|
289
|
+
}
|
290
|
+
};
|
291
|
+
}
|
292
|
+
function pn(n, t) {
|
293
|
+
return Object.prototype.hasOwnProperty.call(t, n);
|
294
|
+
}
|
295
|
+
var zo = Mt(function(n) {
|
296
|
+
return n === null ? "Null" : n === void 0 ? "Undefined" : Object.prototype.toString.call(n).slice(8, -1);
|
297
|
+
});
|
298
|
+
function qr(n) {
|
299
|
+
return Object.prototype.toString.call(n) === "[object Object]";
|
300
|
+
}
|
301
|
+
function Hi(n, t, e) {
|
302
|
+
if (e || (e = new Qo()), function(i) {
|
303
|
+
var s = x(i);
|
304
|
+
return i == null || s != "object" && s != "function";
|
305
|
+
}(n))
|
306
|
+
return n;
|
307
|
+
var r = function(i) {
|
308
|
+
var s = e.get(n);
|
309
|
+
if (s)
|
310
|
+
return s;
|
311
|
+
for (var u in e.set(n, i), n)
|
312
|
+
Object.prototype.hasOwnProperty.call(n, u) && (i[u] = t ? Hi(n[u], !0, e) : n[u]);
|
313
|
+
return i;
|
314
|
+
};
|
315
|
+
switch (zo(n)) {
|
316
|
+
case "Object":
|
317
|
+
return r(Object.create(Object.getPrototypeOf(n)));
|
318
|
+
case "Array":
|
319
|
+
return r([]);
|
320
|
+
case "Date":
|
321
|
+
return new Date(n.valueOf());
|
322
|
+
case "RegExp":
|
323
|
+
return function(i) {
|
324
|
+
return new RegExp(i.source, i.flags ? i.flags : (i.global ? "g" : "") + (i.ignoreCase ? "i" : "") + (i.multiline ? "m" : "") + (i.sticky ? "y" : "") + (i.unicode ? "u" : "") + (i.dotAll ? "s" : ""));
|
325
|
+
}(n);
|
326
|
+
case "Int8Array":
|
327
|
+
case "Uint8Array":
|
328
|
+
case "Uint8ClampedArray":
|
329
|
+
case "Int16Array":
|
330
|
+
case "Uint16Array":
|
331
|
+
case "Int32Array":
|
332
|
+
case "Uint32Array":
|
333
|
+
case "Float32Array":
|
334
|
+
case "Float64Array":
|
335
|
+
case "BigInt64Array":
|
336
|
+
case "BigUint64Array":
|
337
|
+
return n.slice();
|
338
|
+
default:
|
339
|
+
return n;
|
340
|
+
}
|
341
|
+
}
|
342
|
+
var Qo = function() {
|
343
|
+
function n() {
|
344
|
+
this.map = {}, this.length = 0;
|
345
|
+
}
|
346
|
+
return n.prototype.set = function(t, e) {
|
347
|
+
var r = this.hash(t), i = this.map[r];
|
348
|
+
i || (this.map[r] = i = []), i.push([t, e]), this.length += 1;
|
349
|
+
}, n.prototype.hash = function(t) {
|
350
|
+
var e = [];
|
351
|
+
for (var r in t)
|
352
|
+
e.push(Object.prototype.toString.call(t[r]));
|
353
|
+
return e.join();
|
354
|
+
}, n.prototype.get = function(t) {
|
355
|
+
if (this.length <= 180)
|
356
|
+
for (var e in this.map)
|
357
|
+
for (var r = this.map[e], i = 0; i < r.length; i += 1) {
|
358
|
+
var s = r[i];
|
359
|
+
if (s[0] === t)
|
360
|
+
return s[1];
|
361
|
+
}
|
362
|
+
else {
|
363
|
+
var u = this.hash(t), a = this.map[u];
|
364
|
+
if (a)
|
365
|
+
for (var c = 0; c < a.length; c += 1) {
|
366
|
+
var f = a[c];
|
367
|
+
if (f[0] === t)
|
368
|
+
return f[1];
|
369
|
+
}
|
370
|
+
}
|
371
|
+
}, n;
|
372
|
+
}(), U = Mt(function(n) {
|
373
|
+
return n != null && typeof n.clone == "function" ? n.clone() : Hi(n, !0);
|
374
|
+
}), Vo = xr(function(n, t, e) {
|
375
|
+
var r, i = {};
|
376
|
+
for (r in e = e || {}, t = t || {})
|
377
|
+
pn(r, t) && (i[r] = pn(r, e) ? n(r, t[r], e[r]) : t[r]);
|
378
|
+
for (r in e)
|
379
|
+
pn(r, e) && !pn(r, i) && (i[r] = e[r]);
|
380
|
+
return i;
|
381
|
+
}), $o = xr(function n(t, e, r) {
|
382
|
+
return Vo(function(i, s, u) {
|
383
|
+
return qr(s) && qr(u) ? n(t, s, u) : t(i, s, u);
|
384
|
+
}, e, r);
|
385
|
+
}), Wo = xr(function(n, t, e) {
|
386
|
+
return $o(function(r, i, s) {
|
387
|
+
return n(i, s);
|
388
|
+
}, t, e);
|
389
|
+
}), ji = function(n) {
|
390
|
+
return n != null && x(n) === "object" && Array.isArray(n) === !1;
|
391
|
+
}, Yo = function(n, t, e) {
|
392
|
+
if (ji(e) || (e = { default: e }), !zr(n))
|
393
|
+
return e.default !== void 0 ? e.default : n;
|
394
|
+
typeof t == "number" && (t = String(t));
|
395
|
+
var r = Array.isArray(t), i = typeof t == "string", s = e.separator || ".", u = e.joinChar || (typeof s == "string" ? s : ".");
|
396
|
+
if (!i && !r)
|
397
|
+
return n;
|
398
|
+
if (i && t in n)
|
399
|
+
return Zn(t, n, e) ? n[t] : e.default;
|
400
|
+
var a = r ? t : function(m, h, b) {
|
401
|
+
return typeof b.split == "function" ? b.split(m) : m.split(h);
|
402
|
+
}(t, s, e), c = a.length, f = 0;
|
403
|
+
do {
|
404
|
+
var d = a[f];
|
405
|
+
for (typeof d == "number" && (d = String(d)); d && d.slice(-1) === "\\"; )
|
406
|
+
d = Kr([d.slice(0, -1), a[++f] || ""], u, e);
|
407
|
+
if (d in n) {
|
408
|
+
if (!Zn(d, n, e))
|
409
|
+
return e.default;
|
410
|
+
n = n[d];
|
411
|
+
} else {
|
412
|
+
for (var l = !1, p = f + 1; p < c; )
|
413
|
+
if (l = (d = Kr([d, a[p++]], u, e)) in n) {
|
414
|
+
if (!Zn(d, n, e))
|
415
|
+
return e.default;
|
416
|
+
n = n[d], f = p - 1;
|
417
|
+
break;
|
418
|
+
}
|
419
|
+
if (!l)
|
420
|
+
return e.default;
|
421
|
+
}
|
422
|
+
} while (++f < c && zr(n));
|
423
|
+
return f === c ? n : e.default;
|
424
|
+
};
|
425
|
+
function Kr(n, t, e) {
|
426
|
+
return typeof e.join == "function" ? e.join(n) : n[0] + t + n[1];
|
427
|
+
}
|
428
|
+
function Zn(n, t, e) {
|
429
|
+
return typeof e.isValid != "function" || e.isValid(n, t);
|
430
|
+
}
|
431
|
+
function zr(n) {
|
432
|
+
return ji(n) || Array.isArray(n) || typeof n == "function";
|
433
|
+
}
|
434
|
+
for (var gn, hn = Bt(Yo), ke = 256, jn = []; ke--; )
|
435
|
+
jn[ke] = (ke + 256).toString(16).substring(1);
|
436
|
+
for (var tr, qn = [], ue = 0; ue < 256; ue++)
|
437
|
+
qn[ue] = (ue + 256).toString(16).substring(1);
|
438
|
+
function Xo() {
|
439
|
+
var n;
|
440
|
+
(!tr || ue + 16 > 4096) && (n = 4096, tr = crypto.getRandomValues(new Uint8Array(n)), ue = 0);
|
441
|
+
for (var t, e = 0, r = ""; e < 16; e++)
|
442
|
+
t = tr[ue + e], r += e == 6 ? qn[15 & t | 64] : e == 8 ? qn[63 & t | 128] : qn[t], 1 & e && e > 1 && e < 11 && (r += "-");
|
443
|
+
return ue += 16, r;
|
444
|
+
}
|
445
|
+
var qt, we, Pe, dt, Ye, Xe, he, Je, Kt, Ze, de, tn, pt, Z, pe, tt, zt, gt, De, en, Le, ge, mn, xe, yn, vn, me, V, An, In, ye, Qt, bn, En, H, mt, Vt, $t, kn, yt, vt, On, At, et, It, nt, Me, rt, _n, Cn, it, Wt, W, Yt, Xt, ot, Sn, bt, Y, Rn, Tn, wn, Ne, Pn, Dn, Et, Ln, nn, st, rn, xn, kt, Jt = 4, D = { setLogLevel: function(n) {
|
446
|
+
switch (n.toUpperCase()) {
|
447
|
+
case "INFO":
|
448
|
+
Jt = 1;
|
449
|
+
break;
|
450
|
+
case "DEBUG":
|
451
|
+
Jt = 2;
|
452
|
+
break;
|
453
|
+
case "WARN":
|
454
|
+
Jt = 3;
|
455
|
+
break;
|
456
|
+
default:
|
457
|
+
Jt = 4;
|
458
|
+
}
|
459
|
+
}, info: function() {
|
460
|
+
var n;
|
461
|
+
Jt <= 1 && (n = console).info.apply(n, arguments);
|
462
|
+
}, debug: function() {
|
463
|
+
var n;
|
464
|
+
Jt <= 2 && (n = console).log.apply(n, arguments);
|
465
|
+
}, warn: function() {
|
466
|
+
var n;
|
467
|
+
Jt <= 3 && (n = console).warn.apply(n, arguments);
|
468
|
+
}, error: function() {
|
469
|
+
var n;
|
470
|
+
Jt <= 4 && (n = console).error.apply(n, arguments);
|
471
|
+
} }, at = "ADOBE_ANALYTICS", Jo = (qt = { "Adobe Analytics": at, ADOBEANALYTICS: at, "ADOBE ANALYTICS": at }, o(qt, at, at), o(qt, "AdobeAnalytics", at), o(qt, "adobeanalytics", at), o(qt, "adobe analytics", at), o(qt, "Adobe analytics", at), o(qt, "adobe Analytics", at), qt), Zo = (we = {}, o(we, "AM", "AM"), o(we, "AMPLITUDE", "AM"), o(we, "Amplitude", "AM"), o(we, "am", "AM"), we), ts = (Pe = {}, o(Pe, "APPCUES", "APPCUES"), o(Pe, "Appcues", "APPCUES"), o(Pe, "App Cues", "APPCUES"), o(Pe, "appcues", "APPCUES"), Pe), es = (dt = {}, o(dt, "BINGADS", "BINGADS"), o(dt, "BingAds", "BINGADS"), o(dt, "bingads", "BINGADS"), o(dt, "Bing Ads", "BINGADS"), o(dt, "Bing ads", "BINGADS"), o(dt, "bing Ads", "BINGADS"), o(dt, "bing ads", "BINGADS"), dt), ns = (Ye = {}, o(Ye, "BRAZE", "BRAZE"), o(Ye, "Braze", "BRAZE"), o(Ye, "braze", "BRAZE"), Ye), rs = (Xe = {}, o(Xe, "BUGSNAG", "BUGSNAG"), o(Xe, "bugsnag", "BUGSNAG"), o(Xe, "Bugsnag", "BUGSNAG"), Xe), Be = "CHARTBEAT", is = (he = {}, o(he, Be, Be), o(he, "Chartbeat", Be), o(he, "chartbeat", Be), o(he, "Chart Beat", Be), o(he, "chart beat", Be), he), os = (Je = {}, o(Je, "CLEVERTAP", "CLEVERTAP"), o(Je, "Clevertap", "CLEVERTAP"), o(Je, "clevertap", "CLEVERTAP"), Je), ve = "COMSCORE", ss = (Kt = {}, o(Kt, ve, ve), o(Kt, "Comscore", ve), o(Kt, "Com Score", ve), o(Kt, "com Score", ve), o(Kt, "com score", ve), o(Kt, "Com score", ve), Kt), as = (Ze = {}, o(Ze, "CRITEO", "CRITEO"), o(Ze, "Criteo", "CRITEO"), o(Ze, "criteo", "CRITEO"), Ze), Fe = "CUSTOMERIO", us = (de = {}, o(de, Fe, Fe), o(de, "Customerio", Fe), o(de, "Customer.io", Fe), o(de, "CUSTOMER.IO", Fe), o(de, "customer.io", Fe), de), cs = (tn = {}, o(tn, "DRIP", "DRIP"), o(tn, "Drip", "DRIP"), o(tn, "drip", "DRIP"), tn), Zt = "FACEBOOK_PIXEL", ls = (pt = {}, o(pt, Zt, Zt), o(pt, "FB Pixel", Zt), o(pt, "Facebook Pixel", Zt), o(pt, "facebook pixel", Zt), o(pt, "fbpixel", Zt), o(pt, "FBPIXEL", Zt), o(pt, "FB_PIXEL", Zt), pt), Ot = "FULLSTORY", fs = (Z = {}, o(Z, Ot, Ot), o(Z, "Fullstory", Ot), o(Z, "FullStory", Ot), o(Z, "full Story", Ot), o(Z, "Full Story", Ot), o(Z, "Full story", Ot), o(Z, "full story", Ot), o(Z, "fullstory", Ot), Z), hs = (pe = {}, o(pe, "GA", "GA"), o(pe, "Google Analytics", "GA"), o(pe, "GoogleAnalytics", "GA"), o(pe, "GOOGLE ANALYTICS", "GA"), o(pe, "google analytics", "GA"), pe), ds = (tt = {}, o(tt, "GA4", "GA4"), o(tt, "Google Analytics 4", "GA4"), o(tt, "Google analytics 4", "GA4"), o(tt, "google analytics 4", "GA4"), o(tt, "Google Analytics4", "GA4"), o(tt, "Google analytics4", "GA4"), o(tt, "google analytics4", "GA4"), o(tt, "GoogleAnalytics4", "GA4"), tt), Ae = "GOOGLEADS", ps = (zt = {}, o(zt, Ae, Ae), o(zt, "Google Ads", Ae), o(zt, "GoogleAds", Ae), o(zt, "GOOGLE ADS", Ae), o(zt, "google ads", Ae), o(zt, "googleads", Ae), zt), _t = "GOOGLE_OPTIMIZE", gs = (o(gt = {}, _t, _t), o(gt, "Google Optimize", _t), o(gt, "GoogleOptimize", _t), o(gt, "Googleoptimize", _t), o(gt, "GOOGLEOPTIMIZE", _t), o(gt, "google optimize", _t), o(gt, "Google optimize", _t), o(gt, "GOOGLE OPTIMIZE", _t), gt), ms = (o(De = {}, "GTM", "GTM"), o(De, "Google Tag Manager", "GTM"), o(De, "google tag manager", "GTM"), o(De, "googletag manager", "GTM"), o(De, "googletagmanager", "GTM"), De), ys = (o(en = {}, "HEAP", "HEAP"), o(en, "Heap", "HEAP"), o(en, "heap", "HEAP"), o(en, "Heap.io", "HEAP"), en), vs = (o(Le = {}, "HOTJAR", "HOTJAR"), o(Le, "Hotjar", "HOTJAR"), o(Le, "hotjar", "HOTJAR"), o(Le, "Hot Jar", "HOTJAR"), o(Le, "hot jar", "HOTJAR"), Le), As = (o(ge = {}, "HS", "HS"), o(ge, "Hubspot", "HS"), o(ge, "HUBSPOT", "HS"), o(ge, "hub spot", "HS"), o(ge, "Hub Spot", "HS"), o(ge, "Hub spot", "HS"), ge), Is = (o(mn = {}, "INTERCOM", "INTERCOM"), o(mn, "Intercom", "INTERCOM"), o(mn, "intercom", "INTERCOM"), mn), bs = (o(xe = {}, "KEEN", "KEEN"), o(xe, "Keen", "KEEN"), o(xe, "Keen.io", "KEEN"), o(xe, "keen", "KEEN"), o(xe, "keen.io", "KEEN"), xe), Mn = "KISSMETRICS", Es = (o(yn = {}, Mn, Mn), o(yn, "Kissmetrics", Mn), o(yn, "kissmetrics", Mn), yn), ks = (o(vn = {}, "KLAVIYO", "KLAVIYO"), o(vn, "Klaviyo", "KLAVIYO"), o(vn, "klaviyo", "KLAVIYO"), vn), Ie = "LAUNCHDARKLY", Os = (o(me = {}, Ie, Ie), o(me, "LaunchDarkly", Ie), o(me, "Launch_Darkly", Ie), o(me, "Launch Darkly", Ie), o(me, "launchDarkly", Ie), o(me, "launch darkly", Ie), me), $ = "LINKEDIN_INSIGHT_TAG", _s = (o(V = {}, $, $), o(V, "LinkedIn Insight Tag", $), o(V, "LinkedIn insight tag", $), o(V, "linkedIn insight tag", $), o(V, "Linkedin_insight_tag", $), o(V, "LinkedinInsighttag", $), o(V, "LinkedinInsightTag", $), o(V, "LinkedInInsightTag", $), o(V, "Linkedininsighttag", $), o(V, "LINKEDININSIGHTTAG", $), o(V, "linkedininsighttag", $), V), Cs = (o(An = {}, "LOTAME", "LOTAME"), o(An, "Lotame", "LOTAME"), o(An, "lotame", "LOTAME"), An), Ss = (o(In = {}, "LYTICS", "LYTICS"), o(In, "Lytics", "LYTICS"), o(In, "lytics", "LYTICS"), In), Rs = (o(ye = {}, "MP", "MP"), o(ye, "MIXPANEL", "MP"), o(ye, "Mixpanel", "MP"), o(ye, "MIX PANEL", "MP"), o(ye, "Mix panel", "MP"), o(ye, "Mix Panel", "MP"), ye), te = "MOENGAGE", Ts = (o(Qt = {}, te, te), o(Qt, "MoEngage", te), o(Qt, "moengage", te), o(Qt, "Moengage", te), o(Qt, "Mo Engage", te), o(Qt, "mo engage", te), o(Qt, "Mo engage", te), Qt), Nn = "OPTIMIZELY", ws = (o(bn = {}, Nn, Nn), o(bn, "Optimizely", Nn), o(bn, "optimizely", Nn), bn), Ps = (o(En = {}, "PENDO", "PENDO"), o(En, "Pendo", "PENDO"), o(En, "pendo", "PENDO"), En), j = "PINTEREST_TAG", Ds = (o(H = {}, j, j), o(H, "PinterestTag", j), o(H, "Pinterest_Tag", j), o(H, "PINTERESTTAG", j), o(H, "pinterest", j), o(H, "PinterestAds", j), o(H, "Pinterest_Ads", j), o(H, "Pinterest", j), o(H, "Pinterest Tag", j), o(H, "Pinterest tag", j), o(H, "PINTEREST TAG", j), o(H, "pinterest tag", j), o(H, "Pinterest Ads", j), o(H, "Pinterest ads", j), H), Ct = "POST_AFFILIATE_PRO", Ls = (o(mt = {}, Ct, Ct), o(mt, "PostAffiliatePro", Ct), o(mt, "Post_affiliate_pro", Ct), o(mt, "Post Affiliate Pro", Ct), o(mt, "Post affiliate pro", Ct), o(mt, "post affiliate pro", Ct), o(mt, "postaffiliatepro", Ct), o(mt, "POSTAFFILIATEPRO", Ct), mt), ee = "POSTHOG", xs = (o(Vt = {}, ee, ee), o(Vt, "PostHog", ee), o(Vt, "Posthog", ee), o(Vt, "posthog", ee), o(Vt, "Post Hog", ee), o(Vt, "Post hog", ee), o(Vt, "post hog", ee), Vt), ne = "PROFITWELL", Ms = (o($t = {}, ne, ne), o($t, "ProfitWell", ne), o($t, "profitwell", ne), o($t, "Profitwell", ne), o($t, "Profit Well", ne), o($t, "profit well", ne), o($t, "Profit well", ne), $t), Bn = "QUALTRICS", Ns = (o(kn = {}, Bn, Bn), o(kn, "Qualtrics", Bn), o(kn, "qualtrics", Bn), kn), St = "QUANTUMMETRIC", Bs = (o(yt = {}, St, St), o(yt, "Quantum Metric", St), o(yt, "quantum Metric", St), o(yt, "quantum metric", St), o(yt, "QuantumMetric", St), o(yt, "quantumMetric", St), o(yt, "quantummetric", St), o(yt, "Quantum_Metric", St), yt), Rt = "REDDIT_PIXEL", Fs = (o(vt = {}, Rt, Rt), o(vt, "Reddit_Pixel", Rt), o(vt, "RedditPixel", Rt), o(vt, "REDDITPIXEL", Rt), o(vt, "redditpixel", Rt), o(vt, "Reddit Pixel", Rt), o(vt, "REDDIT PIXEL", Rt), o(vt, "reddit pixel", Rt), vt), Gs = (o(On = {}, "SENTRY", "SENTRY"), o(On, "sentry", "SENTRY"), o(On, "Sentry", "SENTRY"), On), Tt = "SNAP_PIXEL", Us = (o(At = {}, Tt, Tt), o(At, "Snap_Pixel", Tt), o(At, "SnapPixel", Tt), o(At, "SNAPPIXEL", Tt), o(At, "snappixel", Tt), o(At, "Snap Pixel", Tt), o(At, "SNAP PIXEL", Tt), o(At, "snap pixel", Tt), At), ut = "TVSQUARED", Hs = (o(et = {}, ut, ut), o(et, "TVSquared", ut), o(et, "tvsquared", ut), o(et, "tvSquared", ut), o(et, "TvSquared", ut), o(et, "Tvsquared", ut), o(et, "TV Squared", ut), o(et, "tv squared", ut), o(et, "tv Squared", ut), et), js = (o(It = {}, "VWO", "VWO"), o(It, "VisualWebsiteOptimizer", "VWO"), o(It, "Visualwebsiteoptimizer", "VWO"), o(It, "visualwebsiteoptimizer", "VWO"), o(It, "vwo", "VWO"), o(It, "Visual Website Optimizer", "VWO"), o(It, "Visual website optimizer", "VWO"), o(It, "visual website optimizer", "VWO"), It), qs = (o(nt = {}, "GA360", "GA360"), o(nt, "Google Analytics 360", "GA360"), o(nt, "Google analytics 360", "GA360"), o(nt, "google analytics 360", "GA360"), o(nt, "Google Analytics360", "GA360"), o(nt, "Google analytics360", "GA360"), o(nt, "google analytics360", "GA360"), o(nt, "GoogleAnalytics360", "GA360"), o(nt, "GA 360", "GA360"), nt), Ks = (o(Me = {}, "ADROLL", "ADROLL"), o(Me, "Adroll", "ADROLL"), o(Me, "Ad roll", "ADROLL"), o(Me, "ad roll", "ADROLL"), o(Me, "adroll", "ADROLL"), Me), ct = "DCM_FLOODLIGHT", zs = (o(rt = {}, ct, ct), o(rt, "DCM Floodlight", ct), o(rt, "dcm floodlight", ct), o(rt, "Dcm Floodlight", ct), o(rt, "DCMFloodlight", ct), o(rt, "dcmfloodlight", ct), o(rt, "DcmFloodlight", ct), o(rt, "dcm_floodlight", ct), o(rt, "DCM_Floodlight", ct), rt), Qs = (o(_n = {}, "MATOMO", "MATOMO"), o(_n, "Matomo", "MATOMO"), o(_n, "matomo", "MATOMO"), _n), Vs = (o(Cn = {}, "VERO", "VERO"), o(Cn, "Vero", "VERO"), o(Cn, "vero", "VERO"), Cn), lt = "MOUSEFLOW", $s = (o(it = {}, lt, lt), o(it, "Mouseflow", lt), o(it, "mouseflow", lt), o(it, "mouseFlow", lt), o(it, "MouseFlow", lt), o(it, "Mouse flow", lt), o(it, "mouse flow", lt), o(it, "mouse Flow", lt), o(it, "Mouse Flow", lt), it), re = "ROCKERBOX", Ws = (o(Wt = {}, re, re), o(Wt, "Rockerbox", re), o(Wt, "rockerbox", re), o(Wt, "RockerBox", re), o(Wt, "Rocker box", re), o(Wt, "rocker box", re), o(Wt, "Rocker Box", re), Wt), X = "CONVERTFLOW", Ys = (o(W = {}, X, X), o(W, "Convertflow", X), o(W, "convertflow", X), o(W, "convertFlow", X), o(W, "ConvertFlow", X), o(W, "Convert flow", X), o(W, "convert flow", X), o(W, "convert Flow", X), o(W, "Convert Flow", X), o(W, "CONVERT FLOW", X), W), ie = "SNAPENGAGE", Xs = (o(Yt = {}, ie, ie), o(Yt, "SnapEngage", ie), o(Yt, "Snap_Engage", ie), o(Yt, "snapengage", ie), o(Yt, "SNAP ENGAGE", ie), o(Yt, "Snap Engage", ie), o(Yt, "snap engage", ie), Yt), oe = "LIVECHAT", Js = (o(Xt = {}, oe, oe), o(Xt, "LiveChat", oe), o(Xt, "Live_Chat", oe), o(Xt, "livechat", oe), o(Xt, "LIVE CHAT", oe), o(Xt, "Live Chat", oe), o(Xt, "live chat", oe), Xt), ft = "SHYNET", Zs = (o(ot = {}, ft, ft), o(ot, "shynet", ft), o(ot, "ShyNet", ft), o(ot, "shyNet", ft), o(ot, "Shynet", ft), o(ot, "shy net", ft), o(ot, "Shy Net", ft), o(ot, "shy Net", ft), o(ot, "Shy net", ft), ot), ta = (o(Sn = {}, "WOOPRA", "WOOPRA"), o(Sn, "Woopra", "WOOPRA"), o(Sn, "woopra", "WOOPRA"), Sn), wt = "ROLLBAR", ea = (o(bt = {}, wt, wt), o(bt, "RollBar", wt), o(bt, "Roll_Bar", wt), o(bt, "rollbar", wt), o(bt, "Rollbar", wt), o(bt, "ROLL BAR", wt), o(bt, "Roll Bar", wt), o(bt, "roll bar", wt), bt), J = "QUORA_PIXEL", na = (o(Y = {}, J, J), o(Y, "Quora Pixel", J), o(Y, "Quora pixel", J), o(Y, "QUORA PIXEL", J), o(Y, "QuoraPixel", J), o(Y, "Quorapixel", J), o(Y, "QUORAPIXEL", J), o(Y, "Quora_Pixel", J), o(Y, "quora_pixel", J), o(Y, "Quora", J), Y), ra = (o(Rn = {}, "JUNE", "JUNE"), o(Rn, "June", "JUNE"), o(Rn, "june", "JUNE"), Rn), ia = (o(Tn = {}, "ENGAGE", "ENGAGE"), o(Tn, "Engage", "ENGAGE"), o(Tn, "engage", "ENGAGE"), Tn), oa = (o(wn = {}, "ITERABLE", "ITERABLE"), o(wn, "Iterable", "ITERABLE"), o(wn, "iterable", "ITERABLE"), wn), Ge = "YANDEX_METRICA", sa = (o(Ne = {}, Ge, Ge), o(Ne, "Yandexmetrica", Ge), o(Ne, "yandexmetrica", Ge), o(Ne, "yandexMetrica", Ge), o(Ne, "YandexMetrica", Ge), Ne), aa = (o(Pn = {}, "REFINER", "REFINER"), o(Pn, "Refiner", "REFINER"), o(Pn, "refiner", "REFINER"), Pn), ua = (o(Dn = {}, "QUALAROO", "QUALAROO"), o(Dn, "Qualaroo", "QUALAROO"), o(Dn, "qualaroo", "QUALAROO"), Dn), Pt = "PODSIGHTS", ca = (o(Et = {}, Pt, Pt), o(Et, "Podsights", Pt), o(Et, "PodSights", Pt), o(Et, "pod Sights", Pt), o(Et, "Pod Sights", Pt), o(Et, "pod sights", Pt), o(Et, "POD SIGHTS", Pt), o(Et, "Pod sights", Pt), Et), la = (o(Ln = {}, "AXEPTIO", "AXEPTIO"), o(Ln, "Axeptio", "AXEPTIO"), o(Ln, "axeptio", "AXEPTIO"), Ln), on = "SATISMETER", fa = (o(nn = {}, on, on), o(nn, "Satismeter", on), o(nn, "SatisMeter", on), o(nn, "SATISMETER", on), nn), ht = "MICROSOFT_CLARITY", ha = (o(st = {}, ht, ht), o(st, "Microsoft Clarity", ht), o(st, "Microsoft clarity", ht), o(st, "microsoft clarity", ht), o(st, "Microsoft_clarity", ht), o(st, "MicrosoftClarity", ht), o(st, "MICROSOFTCLARITY", ht), o(st, "microsoftclarity", ht), o(st, "microsoftClarity", ht), st), sn = "SENDINBLUE", da = (o(rn = {}, sn, sn), o(rn, "Sendinblue", sn), o(rn, "sendinblue", sn), o(rn, "SendinBlue", sn), rn), pa = (o(xn = {}, "OLARK", "OLARK"), o(xn, "Olark", "OLARK"), o(xn, "olark", "OLARK"), xn), Dt = "LEMNISK", ga = (o(kt = {}, Dt, Dt), o(kt, "LEMNISK_MARKETING_AUTOMATION", Dt), o(kt, "Lemnisk Marketing Automation", Dt), o(kt, "LemniskMarketingAutomation", Dt), o(kt, "lemniskmarketingautomation", Dt), o(kt, "lemniskMarketingAutomation", Dt), o(kt, "lemnisk", Dt), o(kt, "Lemnisk", Dt), kt), qi = S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S(S({ All: "All" }, Jo), Zo), ts), es), ns), rs), is), os), ss), as), us), cs), ls), fs), hs), ds), qs), ps), gs), ms), ys), vs), As), Is), bs), Es), ks), Os), _s), Cs), Ss), Rs), Ts), ws), Ps), Ds), Ls), xs), Ms), Ns), Bs), Fs), Gs), Us), Hs), js), Ks), zs), Qs), Vs), $s), Ys), Xs), Js), Zs), ta), ea), na), ra), ia), oa), Ws), sa), aa), ua), ca), la), fa), ha), da), pa), ga), ma = { All: "All", GA: "Google Analytics", GOOGLEADS: "Google Ads", BRAZE: "Braze", CHARTBEAT: "Chartbeat", COMSCORE: "Comscore", CUSTOMERIO: "Customer IO", DCM_Floodlight: "DCM Floodlight", FACEBOOK_PIXEL: "Facebook Pixel", GTM: "Google Tag Manager", HOTJAR: "Hotjar", HS: "HubSpot", INTERCOM: "Intercom", KEEN: "Keen", KISSMETRICS: "Kiss Metrics", LOTAME: "Lotame", VWO: "VWO", OPTIMIZELY: "Optimizely Web", FULLSTORY: "Fullstory", TVSQUARED: "TVSquared", GA4: "Google Analytics 4", MOENGAGE: "MoEngage", AM: "Amplitude", PENDO: "Pendo", LYTICS: "Lytics", APPCUES: "Appcues", POSTHOG: "PostHog", PROFITWELL: "ProfitWell", KLAVIYO: "Klaviyo", CLEVERTAP: "CleverTap", BINGADS: "Bing Ads", PINTEREST_TAG: "Pinterest Tag", SNAP_PIXEL: "Snap Pixel", LINKEDIN_INSIGHT_TAG: "Linkedin Insight Tag", REDDIT_PIXEL: "Reddit Pixel", DRIP: "Drip", HEAP: "Heap.io", CRITEO: "Criteo", MP: "Mixpanel", QUALTRICS: "Qualtrics", SENTRY: "Sentry", GOOGLE_OPTIMIZE: "Google Optimize", POST_AFFILIATE_PRO: "Post Affiliate Pro", LAUNCHDARKLY: "LaunchDarkly", GA360: "Google Analytics 360", ADROLL: "Adroll", VERO: "Vero", MATOMO: "Matomo", MOUSEFLOW: "Mouseflow", ROCKERBOX: "Rockerbox", CONVERTFLOW: "ConvertFlow", SNAPENGAGE: "SnapEngage", LIVECHAT: "LiveChat", SHYNET: "Shynet", WOOPRA: "Woopra", ROLLBAR: "RollBar", QUORA_PIXEL: "Quora Pixel", JUNE: "June", ENGAGE: "Engage", ITERABLE: "Iterable", YANDEX_METRICA: "Yandex.Metrica", REFINER: "Refiner", QUALAROO: "Qualaroo", PODSIGHTS: "Podsights", AXEPTIO: "Axeptio", SATISMETER: "Satismeter", MICROSOFT_CLARITY: "Microsoft Clarity", SENDINBLUE: "Sendinblue", OLARK: "Olark", LEMNISK: "Lemnisk" }, er = ["anonymous_id", "id", "sent_at", "received_at", "timestamp", "original_timestamp", "event_text", "event"], Qr = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.34.0", Vr = "".concat("https://cdn.rudderlabs.com", "/").concat("v1.1", "/").concat("js-integrations"), ya = ["Lax", "None", "Strict"], va = ["US", "EU"], Aa = ["oneTrust"], $r = ["library", "consentManagement"], Ia = ["none", "default", "full"], ba = { All: !0 }, Ea = ["Request failed with status:"], Wr = function(n) {
|
472
|
+
var t = window.rudderanalytics && window.rudderanalytics.errorReporting;
|
473
|
+
t && n instanceof Error && t.notify(n);
|
474
|
+
}, ka = function(n, t) {
|
475
|
+
if (!Array.isArray(n) || !Array.isArray(t))
|
476
|
+
return U(t);
|
477
|
+
var e = U(n);
|
478
|
+
return t.forEach(function(r, i) {
|
479
|
+
e[i] = un(e[i], r);
|
480
|
+
}), e;
|
481
|
+
}, un = function(n, t) {
|
482
|
+
return Wo(ka, n, t);
|
483
|
+
}, Ce = function(n, t) {
|
484
|
+
return JSON.stringify(n, /* @__PURE__ */ function(e) {
|
485
|
+
var r = [];
|
486
|
+
return function(i, s) {
|
487
|
+
if (!e || s != null) {
|
488
|
+
if (x(s) !== "object" || s === null)
|
489
|
+
return s;
|
490
|
+
for (; r.length > 0 && r.at(-1) !== this; )
|
491
|
+
r.pop();
|
492
|
+
return r.includes(s) ? "[Circular Reference]" : (r.push(s), s);
|
493
|
+
}
|
494
|
+
};
|
495
|
+
}(t));
|
496
|
+
}, Oa = function(n, t, e) {
|
497
|
+
var r, i;
|
498
|
+
try {
|
499
|
+
r = typeof n == "string" ? n : n instanceof Error || n.message ? n.message : Ce(n);
|
500
|
+
} catch {
|
501
|
+
r = "";
|
502
|
+
}
|
503
|
+
if (x(i = n) === "object" && i !== null && "target" in i) {
|
504
|
+
if (n.target && n.target.localName !== "script" || n.target.dataset && (n.target.dataset.loader !== "RS_JS_SDK" || n.target.dataset.isNonNativeSDK !== "true"))
|
505
|
+
return "";
|
506
|
+
if (r = "error in script loading:: src:: ".concat(n.target.src, " id:: ").concat(n.target.id), n.target.id === "ad-block")
|
507
|
+
return e.page("RudderJS-Initiated", "ad-block page request", { path: "/ad-blocked", title: r }, e.sendAdblockPageOptions), "";
|
508
|
+
}
|
509
|
+
return "[handleError]::".concat(t || "", ' "').concat(r, '"');
|
510
|
+
}, M = function(n, t, e) {
|
511
|
+
var r;
|
512
|
+
try {
|
513
|
+
r = Oa(n, t, e);
|
514
|
+
} catch (i) {
|
515
|
+
D.error("[handleError] Exception:: ", i), D.error("[handleError] Original error:: ", Ce(n)), Wr(i);
|
516
|
+
}
|
517
|
+
r && (D.error(r), function(i) {
|
518
|
+
return !i.message || !Ea.some(function(s) {
|
519
|
+
return i.message.includes(s);
|
520
|
+
});
|
521
|
+
}(n) && Wr(n));
|
522
|
+
};
|
523
|
+
function dn(n) {
|
524
|
+
return n && n.endsWith("/") ? n.replace(/\/+$/, "") : n;
|
525
|
+
}
|
526
|
+
function Ki() {
|
527
|
+
return window.crypto && typeof window.crypto.getRandomValues == "function" ? Xo() : function() {
|
528
|
+
var n, t = 0, e = "";
|
529
|
+
if (!gn || ke + 16 > 256) {
|
530
|
+
for (gn = Array(t = 256); t--; )
|
531
|
+
gn[t] = 256 * Math.random() | 0;
|
532
|
+
t = ke = 0;
|
533
|
+
}
|
534
|
+
for (; t < 16; t++)
|
535
|
+
n = gn[ke + t], e += t == 6 ? jn[15 & n | 64] : t == 8 ? jn[63 & n | 128] : jn[n], 1 & t && t > 1 && t < 11 && (e += "-");
|
536
|
+
return ke++, e;
|
537
|
+
}();
|
538
|
+
}
|
539
|
+
function kr() {
|
540
|
+
return (/* @__PURE__ */ new Date()).toISOString();
|
541
|
+
}
|
542
|
+
function zi(n, t) {
|
543
|
+
Object.keys(n).forEach(function(e) {
|
544
|
+
n.hasOwnProperty(e) && (t[e] && (n[t[e]] = n[e]), e != "All" && t[e] != null && t[e] != e && delete n[e]);
|
545
|
+
});
|
546
|
+
}
|
547
|
+
function nr(n) {
|
548
|
+
zi(n, qi);
|
549
|
+
}
|
550
|
+
function Yr(n) {
|
551
|
+
zi(n, ma);
|
552
|
+
}
|
553
|
+
function rr(n, t) {
|
554
|
+
var e = [];
|
555
|
+
if (!t || t.length === 0)
|
556
|
+
return e;
|
557
|
+
var r = !0;
|
558
|
+
n.All !== void 0 && (r = n.All);
|
559
|
+
var i = [];
|
560
|
+
return typeof t[0] == "string" ? t.forEach(function(s) {
|
561
|
+
i.push({ intgName: s, intObj: s });
|
562
|
+
}) : x(t[0]) === "object" && t.forEach(function(s) {
|
563
|
+
i.push({ intgName: s.name, intObj: s });
|
564
|
+
}), i.forEach(function(s) {
|
565
|
+
var u = s.intgName, a = s.intObj;
|
566
|
+
if (r) {
|
567
|
+
var c = !0;
|
568
|
+
n[u] != null && n[u] == 0 && (c = !1), c && e.push(a);
|
569
|
+
} else
|
570
|
+
n[u] != null && n[u] == 1 && e.push(a);
|
571
|
+
}), e;
|
572
|
+
}
|
573
|
+
var Xr, Jr = function() {
|
574
|
+
for (var n, t = document.getElementsByTagName("script"), e = !1, r = 0; r < t.length; r += 1) {
|
575
|
+
var i = dn(t[r].getAttribute("src"));
|
576
|
+
if (i) {
|
577
|
+
var s = i.match(/^.*rudder-analytics(-staging)?(\.min)?\.js$/);
|
578
|
+
if (s) {
|
579
|
+
n = i, e = s[1] !== void 0;
|
580
|
+
break;
|
581
|
+
}
|
582
|
+
}
|
583
|
+
}
|
584
|
+
return { sdkURL: n, isStaging: e };
|
585
|
+
}, Fn = function(n) {
|
586
|
+
return typeof n == "string" || n == null ? n : JSON.stringify(n);
|
587
|
+
}, Zr = function(n) {
|
588
|
+
return !(!n || typeof n != "string" || n.trim().length === 0);
|
589
|
+
}, _a = function(n, t, e) {
|
590
|
+
try {
|
591
|
+
var r = n.source.dataplanes || {};
|
592
|
+
if (Object.keys(r).length) {
|
593
|
+
var i = function(a) {
|
594
|
+
var c = a ? a.residencyServer : void 0;
|
595
|
+
if (c)
|
596
|
+
return typeof c == "string" && va.includes(c.toUpperCase()) ? c.toUpperCase() : void D.error("Invalid residencyServer input");
|
597
|
+
}(e), s = r[i] || r.US;
|
598
|
+
if (s) {
|
599
|
+
var u = function(a) {
|
600
|
+
if (Array.isArray(a) && a.length) {
|
601
|
+
var c = a.find(function(f) {
|
602
|
+
return f.default === !0;
|
603
|
+
});
|
604
|
+
if (c && Zr(c.url))
|
605
|
+
return c.url;
|
606
|
+
}
|
607
|
+
}(s);
|
608
|
+
if (u)
|
609
|
+
return u;
|
610
|
+
}
|
611
|
+
}
|
612
|
+
if (Zr(t))
|
613
|
+
return t;
|
614
|
+
throw Error("Unable to load the SDK due to invalid data plane url");
|
615
|
+
} catch (a) {
|
616
|
+
throw Error(a);
|
617
|
+
}
|
618
|
+
}, ti = { exports: {} };
|
619
|
+
function le() {
|
620
|
+
return Xr ? ti.exports : (Xr = 1, ti.exports = (n = n || function(t, e) {
|
621
|
+
var r = Object.create || /* @__PURE__ */ function() {
|
622
|
+
function h() {
|
623
|
+
}
|
624
|
+
return function(b) {
|
625
|
+
var y;
|
626
|
+
return h.prototype = b, y = new h(), h.prototype = null, y;
|
627
|
+
};
|
628
|
+
}(), i = {}, s = i.lib = {}, u = s.Base = { extend: function(h) {
|
629
|
+
var b = r(this);
|
630
|
+
return h && b.mixIn(h), b.hasOwnProperty("init") && this.init !== b.init || (b.init = function() {
|
631
|
+
b.$super.init.apply(this, arguments);
|
632
|
+
}), b.init.prototype = b, b.$super = this, b;
|
633
|
+
}, create: function() {
|
634
|
+
var h = this.extend();
|
635
|
+
return h.init.apply(h, arguments), h;
|
636
|
+
}, init: function() {
|
637
|
+
}, mixIn: function(h) {
|
638
|
+
for (var b in h)
|
639
|
+
h.hasOwnProperty(b) && (this[b] = h[b]);
|
640
|
+
h.hasOwnProperty("toString") && (this.toString = h.toString);
|
641
|
+
}, clone: function() {
|
642
|
+
return this.init.prototype.extend(this);
|
643
|
+
} }, a = s.WordArray = u.extend({ init: function(h, b) {
|
644
|
+
h = this.words = h || [], this.sigBytes = b != e ? b : 4 * h.length;
|
645
|
+
}, toString: function(h) {
|
646
|
+
return (h || f).stringify(this);
|
647
|
+
}, concat: function(h) {
|
648
|
+
var b = this.words, y = h.words, E = this.sigBytes, A = h.sigBytes;
|
649
|
+
if (this.clamp(), E % 4)
|
650
|
+
for (var g = 0; g < A; g++) {
|
651
|
+
var v = y[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
652
|
+
b[E + g >>> 2] |= v << 24 - (E + g) % 4 * 8;
|
653
|
+
}
|
654
|
+
else
|
655
|
+
for (g = 0; g < A; g += 4)
|
656
|
+
b[E + g >>> 2] = y[g >>> 2];
|
657
|
+
return this.sigBytes += A, this;
|
658
|
+
}, clamp: function() {
|
659
|
+
var h = this.words, b = this.sigBytes;
|
660
|
+
h[b >>> 2] &= 4294967295 << 32 - b % 4 * 8, h.length = t.ceil(b / 4);
|
661
|
+
}, clone: function() {
|
662
|
+
var h = u.clone.call(this);
|
663
|
+
return h.words = this.words.slice(0), h;
|
664
|
+
}, random: function(h) {
|
665
|
+
for (var b, y = [], E = function(v) {
|
666
|
+
var k = 987654321, I = 4294967295;
|
667
|
+
return function() {
|
668
|
+
var T = ((k = 36969 * (65535 & k) + (k >> 16) & I) << 16) + (v = 18e3 * (65535 & v) + (v >> 16) & I) & I;
|
669
|
+
return T /= 4294967296, (T += 0.5) * (t.random() > 0.5 ? 1 : -1);
|
670
|
+
};
|
671
|
+
}, A = 0; A < h; A += 4) {
|
672
|
+
var g = E(4294967296 * (b || t.random()));
|
673
|
+
b = 987654071 * g(), y.push(4294967296 * g() | 0);
|
674
|
+
}
|
675
|
+
return new a.init(y, h);
|
676
|
+
} }), c = i.enc = {}, f = c.Hex = { stringify: function(h) {
|
677
|
+
for (var b = h.words, y = h.sigBytes, E = [], A = 0; A < y; A++) {
|
678
|
+
var g = b[A >>> 2] >>> 24 - A % 4 * 8 & 255;
|
679
|
+
E.push((g >>> 4).toString(16)), E.push((15 & g).toString(16));
|
680
|
+
}
|
681
|
+
return E.join("");
|
682
|
+
}, parse: function(h) {
|
683
|
+
for (var b = h.length, y = [], E = 0; E < b; E += 2)
|
684
|
+
y[E >>> 3] |= parseInt(h.substr(E, 2), 16) << 24 - E % 8 * 4;
|
685
|
+
return new a.init(y, b / 2);
|
686
|
+
} }, d = c.Latin1 = { stringify: function(h) {
|
687
|
+
for (var b = h.words, y = h.sigBytes, E = [], A = 0; A < y; A++) {
|
688
|
+
var g = b[A >>> 2] >>> 24 - A % 4 * 8 & 255;
|
689
|
+
E.push(String.fromCharCode(g));
|
690
|
+
}
|
691
|
+
return E.join("");
|
692
|
+
}, parse: function(h) {
|
693
|
+
for (var b = h.length, y = [], E = 0; E < b; E++)
|
694
|
+
y[E >>> 2] |= (255 & h.charCodeAt(E)) << 24 - E % 4 * 8;
|
695
|
+
return new a.init(y, b);
|
696
|
+
} }, l = c.Utf8 = { stringify: function(h) {
|
697
|
+
try {
|
698
|
+
return decodeURIComponent(escape(d.stringify(h)));
|
699
|
+
} catch {
|
700
|
+
throw new Error("Malformed UTF-8 data");
|
701
|
+
}
|
702
|
+
}, parse: function(h) {
|
703
|
+
return d.parse(unescape(encodeURIComponent(h)));
|
704
|
+
} }, p = s.BufferedBlockAlgorithm = u.extend({ reset: function() {
|
705
|
+
this._data = new a.init(), this._nDataBytes = 0;
|
706
|
+
}, _append: function(h) {
|
707
|
+
typeof h == "string" && (h = l.parse(h)), this._data.concat(h), this._nDataBytes += h.sigBytes;
|
708
|
+
}, _process: function(h) {
|
709
|
+
var b = this._data, y = b.words, E = b.sigBytes, A = this.blockSize, g = E / (4 * A), v = (g = h ? t.ceil(g) : t.max((0 | g) - this._minBufferSize, 0)) * A, k = t.min(4 * v, E);
|
710
|
+
if (v) {
|
711
|
+
for (var I = 0; I < v; I += A)
|
712
|
+
this._doProcessBlock(y, I);
|
713
|
+
var T = y.splice(0, v);
|
714
|
+
b.sigBytes -= k;
|
715
|
+
}
|
716
|
+
return new a.init(T, k);
|
717
|
+
}, clone: function() {
|
718
|
+
var h = u.clone.call(this);
|
719
|
+
return h._data = this._data.clone(), h;
|
720
|
+
}, _minBufferSize: 0 });
|
721
|
+
s.Hasher = p.extend({ cfg: u.extend(), init: function(h) {
|
722
|
+
this.cfg = this.cfg.extend(h), this.reset();
|
723
|
+
}, reset: function() {
|
724
|
+
p.reset.call(this), this._doReset();
|
725
|
+
}, update: function(h) {
|
726
|
+
return this._append(h), this._process(), this;
|
727
|
+
}, finalize: function(h) {
|
728
|
+
return h && this._append(h), this._doFinalize();
|
729
|
+
}, blockSize: 16, _createHelper: function(h) {
|
730
|
+
return function(b, y) {
|
731
|
+
return new h.init(y).finalize(b);
|
732
|
+
};
|
733
|
+
}, _createHmacHelper: function(h) {
|
734
|
+
return function(b, y) {
|
735
|
+
return new m.HMAC.init(h, y).finalize(b);
|
736
|
+
};
|
737
|
+
} });
|
738
|
+
var m = i.algo = {};
|
739
|
+
return i;
|
740
|
+
}(Math), n));
|
741
|
+
var n;
|
742
|
+
}
|
743
|
+
var ei, ni = { exports: {} };
|
744
|
+
function Ca() {
|
745
|
+
return ei ? ni.exports : (ei = 1, ni.exports = (n = le(), function() {
|
746
|
+
var t = n, e = t.lib.WordArray;
|
747
|
+
function r(i, s, u) {
|
748
|
+
for (var a = [], c = 0, f = 0; f < s; f++)
|
749
|
+
if (f % 4) {
|
750
|
+
var d = u[i.charCodeAt(f - 1)] << f % 4 * 2, l = u[i.charCodeAt(f)] >>> 6 - f % 4 * 2;
|
751
|
+
a[c >>> 2] |= (d | l) << 24 - c % 4 * 8, c++;
|
752
|
+
}
|
753
|
+
return e.create(a, c);
|
754
|
+
}
|
755
|
+
t.enc.Base64 = { stringify: function(i) {
|
756
|
+
var s = i.words, u = i.sigBytes, a = this._map;
|
757
|
+
i.clamp();
|
758
|
+
for (var c = [], f = 0; f < u; f += 3)
|
759
|
+
for (var d = (s[f >>> 2] >>> 24 - f % 4 * 8 & 255) << 16 | (s[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255) << 8 | s[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, l = 0; l < 4 && f + 0.75 * l < u; l++)
|
760
|
+
c.push(a.charAt(d >>> 6 * (3 - l) & 63));
|
761
|
+
var p = a.charAt(64);
|
762
|
+
if (p)
|
763
|
+
for (; c.length % 4; )
|
764
|
+
c.push(p);
|
765
|
+
return c.join("");
|
766
|
+
}, parse: function(i) {
|
767
|
+
var s = i.length, u = this._map, a = this._reverseMap;
|
768
|
+
if (!a) {
|
769
|
+
a = this._reverseMap = [];
|
770
|
+
for (var c = 0; c < u.length; c++)
|
771
|
+
a[u.charCodeAt(c)] = c;
|
772
|
+
}
|
773
|
+
var f = u.charAt(64);
|
774
|
+
if (f) {
|
775
|
+
var d = i.indexOf(f);
|
776
|
+
d !== -1 && (s = d);
|
777
|
+
}
|
778
|
+
return r(i, s, a);
|
779
|
+
}, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" };
|
780
|
+
}(), n.enc.Base64));
|
781
|
+
var n;
|
782
|
+
}
|
783
|
+
var ri, ii = { exports: {} };
|
784
|
+
function Sa() {
|
785
|
+
return ri ? ii.exports : (ri = 1, ii.exports = (n = le(), function(t) {
|
786
|
+
var e = n, r = e.lib, i = r.WordArray, s = r.Hasher, u = e.algo, a = [];
|
787
|
+
(function() {
|
788
|
+
for (var m = 0; m < 64; m++)
|
789
|
+
a[m] = 4294967296 * t.abs(t.sin(m + 1)) | 0;
|
790
|
+
})();
|
791
|
+
var c = u.MD5 = s.extend({ _doReset: function() {
|
792
|
+
this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878]);
|
793
|
+
}, _doProcessBlock: function(m, h) {
|
794
|
+
for (var b = 0; b < 16; b++) {
|
795
|
+
var y = h + b, E = m[y];
|
796
|
+
m[y] = 16711935 & (E << 8 | E >>> 24) | 4278255360 & (E << 24 | E >>> 8);
|
797
|
+
}
|
798
|
+
var A = this._hash.words, g = m[h + 0], v = m[h + 1], k = m[h + 2], I = m[h + 3], T = m[h + 4], w = m[h + 5], L = m[h + 6], G = m[h + 7], q = m[h + 8], K = m[h + 9], z = m[h + 10], fe = m[h + 11], Ft = m[h + 12], Gt = m[h + 13], Ut = m[h + 14], Ht = m[h + 15], O = A[0], R = A[1], _ = A[2], C = A[3];
|
799
|
+
O = f(O, R, _, C, g, 7, a[0]), C = f(C, O, R, _, v, 12, a[1]), _ = f(_, C, O, R, k, 17, a[2]), R = f(R, _, C, O, I, 22, a[3]), O = f(O, R, _, C, T, 7, a[4]), C = f(C, O, R, _, w, 12, a[5]), _ = f(_, C, O, R, L, 17, a[6]), R = f(R, _, C, O, G, 22, a[7]), O = f(O, R, _, C, q, 7, a[8]), C = f(C, O, R, _, K, 12, a[9]), _ = f(_, C, O, R, z, 17, a[10]), R = f(R, _, C, O, fe, 22, a[11]), O = f(O, R, _, C, Ft, 7, a[12]), C = f(C, O, R, _, Gt, 12, a[13]), _ = f(_, C, O, R, Ut, 17, a[14]), O = d(O, R = f(R, _, C, O, Ht, 22, a[15]), _, C, v, 5, a[16]), C = d(C, O, R, _, L, 9, a[17]), _ = d(_, C, O, R, fe, 14, a[18]), R = d(R, _, C, O, g, 20, a[19]), O = d(O, R, _, C, w, 5, a[20]), C = d(C, O, R, _, z, 9, a[21]), _ = d(_, C, O, R, Ht, 14, a[22]), R = d(R, _, C, O, T, 20, a[23]), O = d(O, R, _, C, K, 5, a[24]), C = d(C, O, R, _, Ut, 9, a[25]), _ = d(_, C, O, R, I, 14, a[26]), R = d(R, _, C, O, q, 20, a[27]), O = d(O, R, _, C, Gt, 5, a[28]), C = d(C, O, R, _, k, 9, a[29]), _ = d(_, C, O, R, G, 14, a[30]), O = l(O, R = d(R, _, C, O, Ft, 20, a[31]), _, C, w, 4, a[32]), C = l(C, O, R, _, q, 11, a[33]), _ = l(_, C, O, R, fe, 16, a[34]), R = l(R, _, C, O, Ut, 23, a[35]), O = l(O, R, _, C, v, 4, a[36]), C = l(C, O, R, _, T, 11, a[37]), _ = l(_, C, O, R, G, 16, a[38]), R = l(R, _, C, O, z, 23, a[39]), O = l(O, R, _, C, Gt, 4, a[40]), C = l(C, O, R, _, g, 11, a[41]), _ = l(_, C, O, R, I, 16, a[42]), R = l(R, _, C, O, L, 23, a[43]), O = l(O, R, _, C, K, 4, a[44]), C = l(C, O, R, _, Ft, 11, a[45]), _ = l(_, C, O, R, Ht, 16, a[46]), O = p(O, R = l(R, _, C, O, k, 23, a[47]), _, C, g, 6, a[48]), C = p(C, O, R, _, G, 10, a[49]), _ = p(_, C, O, R, Ut, 15, a[50]), R = p(R, _, C, O, w, 21, a[51]), O = p(O, R, _, C, Ft, 6, a[52]), C = p(C, O, R, _, I, 10, a[53]), _ = p(_, C, O, R, z, 15, a[54]), R = p(R, _, C, O, v, 21, a[55]), O = p(O, R, _, C, q, 6, a[56]), C = p(C, O, R, _, Ht, 10, a[57]), _ = p(_, C, O, R, L, 15, a[58]), R = p(R, _, C, O, Gt, 21, a[59]), O = p(O, R, _, C, T, 6, a[60]), C = p(C, O, R, _, fe, 10, a[61]), _ = p(_, C, O, R, k, 15, a[62]), R = p(R, _, C, O, K, 21, a[63]), A[0] = A[0] + O | 0, A[1] = A[1] + R | 0, A[2] = A[2] + _ | 0, A[3] = A[3] + C | 0;
|
800
|
+
}, _doFinalize: function() {
|
801
|
+
var m = this._data, h = m.words, b = 8 * this._nDataBytes, y = 8 * m.sigBytes;
|
802
|
+
h[y >>> 5] |= 128 << 24 - y % 32;
|
803
|
+
var E = t.floor(b / 4294967296), A = b;
|
804
|
+
h[15 + (y + 64 >>> 9 << 4)] = 16711935 & (E << 8 | E >>> 24) | 4278255360 & (E << 24 | E >>> 8), h[14 + (y + 64 >>> 9 << 4)] = 16711935 & (A << 8 | A >>> 24) | 4278255360 & (A << 24 | A >>> 8), m.sigBytes = 4 * (h.length + 1), this._process();
|
805
|
+
for (var g = this._hash, v = g.words, k = 0; k < 4; k++) {
|
806
|
+
var I = v[k];
|
807
|
+
v[k] = 16711935 & (I << 8 | I >>> 24) | 4278255360 & (I << 24 | I >>> 8);
|
808
|
+
}
|
809
|
+
return g;
|
810
|
+
}, clone: function() {
|
811
|
+
var m = s.clone.call(this);
|
812
|
+
return m._hash = this._hash.clone(), m;
|
813
|
+
} });
|
814
|
+
function f(m, h, b, y, E, A, g) {
|
815
|
+
var v = m + (h & b | ~h & y) + E + g;
|
816
|
+
return (v << A | v >>> 32 - A) + h;
|
817
|
+
}
|
818
|
+
function d(m, h, b, y, E, A, g) {
|
819
|
+
var v = m + (h & y | b & ~y) + E + g;
|
820
|
+
return (v << A | v >>> 32 - A) + h;
|
821
|
+
}
|
822
|
+
function l(m, h, b, y, E, A, g) {
|
823
|
+
var v = m + (h ^ b ^ y) + E + g;
|
824
|
+
return (v << A | v >>> 32 - A) + h;
|
825
|
+
}
|
826
|
+
function p(m, h, b, y, E, A, g) {
|
827
|
+
var v = m + (b ^ (h | ~y)) + E + g;
|
828
|
+
return (v << A | v >>> 32 - A) + h;
|
829
|
+
}
|
830
|
+
e.MD5 = s._createHelper(c), e.HmacMD5 = s._createHmacHelper(c);
|
831
|
+
}(Math), n.MD5));
|
832
|
+
var n;
|
833
|
+
}
|
834
|
+
var oi, si = { exports: {} }, ai = { exports: {} };
|
835
|
+
function Ra() {
|
836
|
+
return oi ? ai.exports : (oi = 1, ai.exports = (a = le(), t = (n = a).lib, e = t.WordArray, r = t.Hasher, i = n.algo, s = [], u = i.SHA1 = r.extend({ _doReset: function() {
|
837
|
+
this._hash = new e.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
838
|
+
}, _doProcessBlock: function(c, f) {
|
839
|
+
for (var d = this._hash.words, l = d[0], p = d[1], m = d[2], h = d[3], b = d[4], y = 0; y < 80; y++) {
|
840
|
+
if (y < 16)
|
841
|
+
s[y] = 0 | c[f + y];
|
842
|
+
else {
|
843
|
+
var E = s[y - 3] ^ s[y - 8] ^ s[y - 14] ^ s[y - 16];
|
844
|
+
s[y] = E << 1 | E >>> 31;
|
845
|
+
}
|
846
|
+
var A = (l << 5 | l >>> 27) + b + s[y];
|
847
|
+
A += y < 20 ? 1518500249 + (p & m | ~p & h) : y < 40 ? 1859775393 + (p ^ m ^ h) : y < 60 ? (p & m | p & h | m & h) - 1894007588 : (p ^ m ^ h) - 899497514, b = h, h = m, m = p << 30 | p >>> 2, p = l, l = A;
|
848
|
+
}
|
849
|
+
d[0] = d[0] + l | 0, d[1] = d[1] + p | 0, d[2] = d[2] + m | 0, d[3] = d[3] + h | 0, d[4] = d[4] + b | 0;
|
850
|
+
}, _doFinalize: function() {
|
851
|
+
var c = this._data, f = c.words, d = 8 * this._nDataBytes, l = 8 * c.sigBytes;
|
852
|
+
return f[l >>> 5] |= 128 << 24 - l % 32, f[14 + (l + 64 >>> 9 << 4)] = Math.floor(d / 4294967296), f[15 + (l + 64 >>> 9 << 4)] = d, c.sigBytes = 4 * f.length, this._process(), this._hash;
|
853
|
+
}, clone: function() {
|
854
|
+
var c = r.clone.call(this);
|
855
|
+
return c._hash = this._hash.clone(), c;
|
856
|
+
} }), n.SHA1 = r._createHelper(u), n.HmacSHA1 = r._createHmacHelper(u), a.SHA1));
|
857
|
+
var n, t, e, r, i, s, u, a;
|
858
|
+
}
|
859
|
+
var ui, ci;
|
860
|
+
function li() {
|
861
|
+
return ci ? si.exports : (ci = 1, si.exports = function(t) {
|
862
|
+
return r = (e = t).lib, i = r.Base, s = r.WordArray, u = e.algo, a = u.MD5, c = u.EvpKDF = i.extend({ cfg: i.extend({ keySize: 4, hasher: a, iterations: 1 }), init: function(f) {
|
863
|
+
this.cfg = this.cfg.extend(f);
|
864
|
+
}, compute: function(f, d) {
|
865
|
+
for (var l = this.cfg, p = l.hasher.create(), m = s.create(), h = m.words, b = l.keySize, y = l.iterations; h.length < b; ) {
|
866
|
+
E && p.update(E);
|
867
|
+
var E = p.update(f).finalize(d);
|
868
|
+
p.reset();
|
869
|
+
for (var A = 1; A < y; A++)
|
870
|
+
E = p.finalize(E), p.reset();
|
871
|
+
m.concat(E);
|
872
|
+
}
|
873
|
+
return m.sigBytes = 4 * b, m;
|
874
|
+
} }), e.EvpKDF = function(f, d, l) {
|
875
|
+
return c.create(l).compute(f, d);
|
876
|
+
}, t.EvpKDF;
|
877
|
+
var e, r, i, s, u, a, c;
|
878
|
+
}(le(), Ra(), ui || (ui = 1, n = le(), void function() {
|
879
|
+
var t = n, e = t.lib.Base, r = t.enc.Utf8;
|
880
|
+
t.algo.HMAC = e.extend({ init: function(i, s) {
|
881
|
+
i = this._hasher = new i.init(), typeof s == "string" && (s = r.parse(s));
|
882
|
+
var u = i.blockSize, a = 4 * u;
|
883
|
+
s.sigBytes > a && (s = i.finalize(s)), s.clamp();
|
884
|
+
for (var c = this._oKey = s.clone(), f = this._iKey = s.clone(), d = c.words, l = f.words, p = 0; p < u; p++)
|
885
|
+
d[p] ^= 1549556828, l[p] ^= 909522486;
|
886
|
+
c.sigBytes = f.sigBytes = a, this.reset();
|
887
|
+
}, reset: function() {
|
888
|
+
var i = this._hasher;
|
889
|
+
i.reset(), i.update(this._iKey);
|
890
|
+
}, update: function(i) {
|
891
|
+
return this._hasher.update(i), this;
|
892
|
+
}, finalize: function(i) {
|
893
|
+
var s = this._hasher, u = s.finalize(i);
|
894
|
+
return s.reset(), s.finalize(this._oKey.clone().concat(u));
|
895
|
+
} });
|
896
|
+
}())));
|
897
|
+
var n;
|
898
|
+
}
|
899
|
+
var fi, ir, Qi = Bt(function(n) {
|
900
|
+
return function() {
|
901
|
+
var t = n, e = t.lib.BlockCipher, r = t.algo, i = [], s = [], u = [], a = [], c = [], f = [], d = [], l = [], p = [], m = [];
|
902
|
+
(function() {
|
903
|
+
for (var y = [], E = 0; E < 256; E++)
|
904
|
+
y[E] = E < 128 ? E << 1 : E << 1 ^ 283;
|
905
|
+
var A = 0, g = 0;
|
906
|
+
for (E = 0; E < 256; E++) {
|
907
|
+
var v = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
|
908
|
+
v = v >>> 8 ^ 255 & v ^ 99, i[A] = v, s[v] = A;
|
909
|
+
var k = y[A], I = y[k], T = y[I], w = 257 * y[v] ^ 16843008 * v;
|
910
|
+
u[A] = w << 24 | w >>> 8, a[A] = w << 16 | w >>> 16, c[A] = w << 8 | w >>> 24, f[A] = w, w = 16843009 * T ^ 65537 * I ^ 257 * k ^ 16843008 * A, d[v] = w << 24 | w >>> 8, l[v] = w << 16 | w >>> 16, p[v] = w << 8 | w >>> 24, m[v] = w, A ? (A = k ^ y[y[y[T ^ k]]], g ^= y[y[g]]) : A = g = 1;
|
911
|
+
}
|
912
|
+
})();
|
913
|
+
var h = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], b = r.AES = e.extend({ _doReset: function() {
|
914
|
+
if (!this._nRounds || this._keyPriorReset !== this._key) {
|
915
|
+
for (var y = this._keyPriorReset = this._key, E = y.words, A = y.sigBytes / 4, g = 4 * ((this._nRounds = A + 6) + 1), v = this._keySchedule = [], k = 0; k < g; k++)
|
916
|
+
if (k < A)
|
917
|
+
v[k] = E[k];
|
918
|
+
else {
|
919
|
+
var I = v[k - 1];
|
920
|
+
k % A ? A > 6 && k % A == 4 && (I = i[I >>> 24] << 24 | i[I >>> 16 & 255] << 16 | i[I >>> 8 & 255] << 8 | i[255 & I]) : (I = i[(I = I << 8 | I >>> 24) >>> 24] << 24 | i[I >>> 16 & 255] << 16 | i[I >>> 8 & 255] << 8 | i[255 & I], I ^= h[k / A | 0] << 24), v[k] = v[k - A] ^ I;
|
921
|
+
}
|
922
|
+
for (var T = this._invKeySchedule = [], w = 0; w < g; w++)
|
923
|
+
k = g - w, I = w % 4 ? v[k] : v[k - 4], T[w] = w < 4 || k <= 4 ? I : d[i[I >>> 24]] ^ l[i[I >>> 16 & 255]] ^ p[i[I >>> 8 & 255]] ^ m[i[255 & I]];
|
924
|
+
}
|
925
|
+
}, encryptBlock: function(y, E) {
|
926
|
+
this._doCryptBlock(y, E, this._keySchedule, u, a, c, f, i);
|
927
|
+
}, decryptBlock: function(y, E) {
|
928
|
+
var A = y[E + 1];
|
929
|
+
y[E + 1] = y[E + 3], y[E + 3] = A, this._doCryptBlock(y, E, this._invKeySchedule, d, l, p, m, s), A = y[E + 1], y[E + 1] = y[E + 3], y[E + 3] = A;
|
930
|
+
}, _doCryptBlock: function(y, E, A, g, v, k, I, T) {
|
931
|
+
for (var w = this._nRounds, L = y[E] ^ A[0], G = y[E + 1] ^ A[1], q = y[E + 2] ^ A[2], K = y[E + 3] ^ A[3], z = 4, fe = 1; fe < w; fe++) {
|
932
|
+
var Ft = g[L >>> 24] ^ v[G >>> 16 & 255] ^ k[q >>> 8 & 255] ^ I[255 & K] ^ A[z++], Gt = g[G >>> 24] ^ v[q >>> 16 & 255] ^ k[K >>> 8 & 255] ^ I[255 & L] ^ A[z++], Ut = g[q >>> 24] ^ v[K >>> 16 & 255] ^ k[L >>> 8 & 255] ^ I[255 & G] ^ A[z++], Ht = g[K >>> 24] ^ v[L >>> 16 & 255] ^ k[G >>> 8 & 255] ^ I[255 & q] ^ A[z++];
|
933
|
+
L = Ft, G = Gt, q = Ut, K = Ht;
|
934
|
+
}
|
935
|
+
Ft = (T[L >>> 24] << 24 | T[G >>> 16 & 255] << 16 | T[q >>> 8 & 255] << 8 | T[255 & K]) ^ A[z++], Gt = (T[G >>> 24] << 24 | T[q >>> 16 & 255] << 16 | T[K >>> 8 & 255] << 8 | T[255 & L]) ^ A[z++], Ut = (T[q >>> 24] << 24 | T[K >>> 16 & 255] << 16 | T[L >>> 8 & 255] << 8 | T[255 & G]) ^ A[z++], Ht = (T[K >>> 24] << 24 | T[L >>> 16 & 255] << 16 | T[G >>> 8 & 255] << 8 | T[255 & q]) ^ A[z++], y[E] = Ft, y[E + 1] = Gt, y[E + 2] = Ut, y[E + 3] = Ht;
|
936
|
+
}, keySize: 8 });
|
937
|
+
t.AES = e._createHelper(b);
|
938
|
+
}(), n.AES;
|
939
|
+
}(le(), Ca(), Sa(), li(), fi || (fi = 1, ir = le(), li(), void (ir.lib.Cipher || function(n) {
|
940
|
+
var t = ir, e = t.lib, r = e.Base, i = e.WordArray, s = e.BufferedBlockAlgorithm, u = t.enc;
|
941
|
+
u.Utf8;
|
942
|
+
var a = u.Base64, c = t.algo.EvpKDF, f = e.Cipher = s.extend({ cfg: r.extend(), createEncryptor: function(g, v) {
|
943
|
+
return this.create(this._ENC_XFORM_MODE, g, v);
|
944
|
+
}, createDecryptor: function(g, v) {
|
945
|
+
return this.create(this._DEC_XFORM_MODE, g, v);
|
946
|
+
}, init: function(g, v, k) {
|
947
|
+
this.cfg = this.cfg.extend(k), this._xformMode = g, this._key = v, this.reset();
|
948
|
+
}, reset: function() {
|
949
|
+
s.reset.call(this), this._doReset();
|
950
|
+
}, process: function(g) {
|
951
|
+
return this._append(g), this._process();
|
952
|
+
}, finalize: function(g) {
|
953
|
+
return g && this._append(g), this._doFinalize();
|
954
|
+
}, keySize: 4, ivSize: 4, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, _createHelper: /* @__PURE__ */ function() {
|
955
|
+
function g(v) {
|
956
|
+
return typeof v == "string" ? A : y;
|
957
|
+
}
|
958
|
+
return function(v) {
|
959
|
+
return { encrypt: function(k, I, T) {
|
960
|
+
return g(I).encrypt(v, k, I, T);
|
961
|
+
}, decrypt: function(k, I, T) {
|
962
|
+
return g(I).decrypt(v, k, I, T);
|
963
|
+
} };
|
964
|
+
};
|
965
|
+
}() });
|
966
|
+
e.StreamCipher = f.extend({ _doFinalize: function() {
|
967
|
+
return this._process(!0);
|
968
|
+
}, blockSize: 1 });
|
969
|
+
var d = t.mode = {}, l = e.BlockCipherMode = r.extend({ createEncryptor: function(g, v) {
|
970
|
+
return this.Encryptor.create(g, v);
|
971
|
+
}, createDecryptor: function(g, v) {
|
972
|
+
return this.Decryptor.create(g, v);
|
973
|
+
}, init: function(g, v) {
|
974
|
+
this._cipher = g, this._iv = v;
|
975
|
+
} }), p = d.CBC = function() {
|
976
|
+
var g = l.extend();
|
977
|
+
function v(k, I, T) {
|
978
|
+
var w = this._iv;
|
979
|
+
if (w) {
|
980
|
+
var L = w;
|
981
|
+
this._iv = n;
|
982
|
+
} else
|
983
|
+
L = this._prevBlock;
|
984
|
+
for (var G = 0; G < T; G++)
|
985
|
+
k[I + G] ^= L[G];
|
986
|
+
}
|
987
|
+
return g.Encryptor = g.extend({ processBlock: function(k, I) {
|
988
|
+
var T = this._cipher, w = T.blockSize;
|
989
|
+
v.call(this, k, I, w), T.encryptBlock(k, I), this._prevBlock = k.slice(I, I + w);
|
990
|
+
} }), g.Decryptor = g.extend({ processBlock: function(k, I) {
|
991
|
+
var T = this._cipher, w = T.blockSize, L = k.slice(I, I + w);
|
992
|
+
T.decryptBlock(k, I), v.call(this, k, I, w), this._prevBlock = L;
|
993
|
+
} }), g;
|
994
|
+
}(), m = (t.pad = {}).Pkcs7 = { pad: function(g, v) {
|
995
|
+
for (var k = 4 * v, I = k - g.sigBytes % k, T = I << 24 | I << 16 | I << 8 | I, w = [], L = 0; L < I; L += 4)
|
996
|
+
w.push(T);
|
997
|
+
var G = i.create(w, I);
|
998
|
+
g.concat(G);
|
999
|
+
}, unpad: function(g) {
|
1000
|
+
var v = 255 & g.words[g.sigBytes - 1 >>> 2];
|
1001
|
+
g.sigBytes -= v;
|
1002
|
+
} };
|
1003
|
+
e.BlockCipher = f.extend({ cfg: f.cfg.extend({ mode: p, padding: m }), reset: function() {
|
1004
|
+
f.reset.call(this);
|
1005
|
+
var g = this.cfg, v = g.iv, k = g.mode;
|
1006
|
+
if (this._xformMode == this._ENC_XFORM_MODE)
|
1007
|
+
var I = k.createEncryptor;
|
1008
|
+
else
|
1009
|
+
I = k.createDecryptor, this._minBufferSize = 1;
|
1010
|
+
this._mode && this._mode.__creator == I ? this._mode.init(this, v && v.words) : (this._mode = I.call(k, this, v && v.words), this._mode.__creator = I);
|
1011
|
+
}, _doProcessBlock: function(g, v) {
|
1012
|
+
this._mode.processBlock(g, v);
|
1013
|
+
}, _doFinalize: function() {
|
1014
|
+
var g = this.cfg.padding;
|
1015
|
+
if (this._xformMode == this._ENC_XFORM_MODE) {
|
1016
|
+
g.pad(this._data, this.blockSize);
|
1017
|
+
var v = this._process(!0);
|
1018
|
+
} else
|
1019
|
+
v = this._process(!0), g.unpad(v);
|
1020
|
+
return v;
|
1021
|
+
}, blockSize: 4 });
|
1022
|
+
var h = e.CipherParams = r.extend({ init: function(g) {
|
1023
|
+
this.mixIn(g);
|
1024
|
+
}, toString: function(g) {
|
1025
|
+
return (g || this.formatter).stringify(this);
|
1026
|
+
} }), b = (t.format = {}).OpenSSL = { stringify: function(g) {
|
1027
|
+
var v = g.ciphertext, k = g.salt;
|
1028
|
+
if (k)
|
1029
|
+
var I = i.create([1398893684, 1701076831]).concat(k).concat(v);
|
1030
|
+
else
|
1031
|
+
I = v;
|
1032
|
+
return I.toString(a);
|
1033
|
+
}, parse: function(g) {
|
1034
|
+
var v = a.parse(g), k = v.words;
|
1035
|
+
if (k[0] == 1398893684 && k[1] == 1701076831) {
|
1036
|
+
var I = i.create(k.slice(2, 4));
|
1037
|
+
k.splice(0, 4), v.sigBytes -= 16;
|
1038
|
+
}
|
1039
|
+
return h.create({ ciphertext: v, salt: I });
|
1040
|
+
} }, y = e.SerializableCipher = r.extend({ cfg: r.extend({ format: b }), encrypt: function(g, v, k, I) {
|
1041
|
+
I = this.cfg.extend(I);
|
1042
|
+
var T = g.createEncryptor(k, I), w = T.finalize(v), L = T.cfg;
|
1043
|
+
return h.create({ ciphertext: w, key: k, iv: L.iv, algorithm: g, mode: L.mode, padding: L.padding, blockSize: g.blockSize, formatter: I.format });
|
1044
|
+
}, decrypt: function(g, v, k, I) {
|
1045
|
+
return I = this.cfg.extend(I), v = this._parse(v, I.format), g.createDecryptor(k, I).finalize(v.ciphertext);
|
1046
|
+
}, _parse: function(g, v) {
|
1047
|
+
return typeof g == "string" ? v.parse(g, this) : g;
|
1048
|
+
} }), E = (t.kdf = {}).OpenSSL = { execute: function(g, v, k, I) {
|
1049
|
+
I || (I = i.random(8));
|
1050
|
+
var T = c.create({ keySize: v + k }).compute(g, I), w = i.create(T.words.slice(v), 4 * k);
|
1051
|
+
return T.sigBytes = 4 * v, h.create({ key: T, iv: w, salt: I });
|
1052
|
+
} }, A = e.PasswordBasedCipher = y.extend({ cfg: y.cfg.extend({ kdf: E }), encrypt: function(g, v, k, I) {
|
1053
|
+
var T = (I = this.cfg.extend(I)).kdf.execute(k, g.keySize, g.ivSize);
|
1054
|
+
I.iv = T.iv;
|
1055
|
+
var w = y.encrypt.call(this, g, v, T.key, I);
|
1056
|
+
return w.mixIn(T), w;
|
1057
|
+
}, decrypt: function(g, v, k, I) {
|
1058
|
+
I = this.cfg.extend(I), v = this._parse(v, I.format);
|
1059
|
+
var T = I.kdf.execute(k, g.keySize, g.ivSize, v.salt);
|
1060
|
+
return I.iv = T.iv, y.decrypt.call(this, g, v, T.key, I);
|
1061
|
+
} });
|
1062
|
+
}())))), Ta = Bt(function(n) {
|
1063
|
+
return n.enc.Utf8;
|
1064
|
+
}(le())), Or = typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {};
|
1065
|
+
function Vi() {
|
1066
|
+
throw new Error("setTimeout has not been defined");
|
1067
|
+
}
|
1068
|
+
function $i() {
|
1069
|
+
throw new Error("clearTimeout has not been defined");
|
1070
|
+
}
|
1071
|
+
var se = Vi, ae = $i;
|
1072
|
+
function Wi(n) {
|
1073
|
+
if (se === setTimeout)
|
1074
|
+
return setTimeout(n, 0);
|
1075
|
+
if ((se === Vi || !se) && setTimeout)
|
1076
|
+
return se = setTimeout, setTimeout(n, 0);
|
1077
|
+
try {
|
1078
|
+
return se(n, 0);
|
1079
|
+
} catch {
|
1080
|
+
try {
|
1081
|
+
return se.call(null, n, 0);
|
1082
|
+
} catch {
|
1083
|
+
return se.call(this, n, 0);
|
1084
|
+
}
|
1085
|
+
}
|
1086
|
+
}
|
1087
|
+
typeof Or.setTimeout == "function" && (se = setTimeout), typeof Or.clearTimeout == "function" && (ae = clearTimeout);
|
1088
|
+
var Oe, Nt = [], ze = !1, Kn = -1;
|
1089
|
+
function wa() {
|
1090
|
+
ze && Oe && (ze = !1, Oe.length ? Nt = Oe.concat(Nt) : Kn = -1, Nt.length && Yi());
|
1091
|
+
}
|
1092
|
+
function Yi() {
|
1093
|
+
if (!ze) {
|
1094
|
+
var n = Wi(wa);
|
1095
|
+
ze = !0;
|
1096
|
+
for (var t = Nt.length; t; ) {
|
1097
|
+
for (Oe = Nt, Nt = []; ++Kn < t; )
|
1098
|
+
Oe && Oe[Kn].run();
|
1099
|
+
Kn = -1, t = Nt.length;
|
1100
|
+
}
|
1101
|
+
Oe = null, ze = !1, function(e) {
|
1102
|
+
if (ae === clearTimeout)
|
1103
|
+
return clearTimeout(e);
|
1104
|
+
if ((ae === $i || !ae) && clearTimeout)
|
1105
|
+
return ae = clearTimeout, clearTimeout(e);
|
1106
|
+
try {
|
1107
|
+
ae(e);
|
1108
|
+
} catch {
|
1109
|
+
try {
|
1110
|
+
return ae.call(null, e);
|
1111
|
+
} catch {
|
1112
|
+
return ae.call(this, e);
|
1113
|
+
}
|
1114
|
+
}
|
1115
|
+
}(n);
|
1116
|
+
}
|
1117
|
+
}
|
1118
|
+
function Xi(n, t) {
|
1119
|
+
this.fun = n, this.array = t;
|
1120
|
+
}
|
1121
|
+
Xi.prototype.run = function() {
|
1122
|
+
this.fun.apply(null, this.array);
|
1123
|
+
};
|
1124
|
+
function Se() {
|
1125
|
+
}
|
1126
|
+
var Pa = Se, Da = Se, La = Se, xa = Se, Ma = Se, Na = Se, Ba = Se, je = Or.performance || {}, Fa = je.now || je.mozNow || je.msNow || je.oNow || je.webkitNow || function() {
|
1127
|
+
return (/* @__PURE__ */ new Date()).getTime();
|
1128
|
+
}, Ga = /* @__PURE__ */ new Date(), or, hi, sr = { nextTick: function(n) {
|
1129
|
+
var t = new Array(arguments.length - 1);
|
1130
|
+
if (arguments.length > 1)
|
1131
|
+
for (var e = 1; e < arguments.length; e++)
|
1132
|
+
t[e - 1] = arguments[e];
|
1133
|
+
Nt.push(new Xi(n, t)), Nt.length !== 1 || ze || Wi(Yi);
|
1134
|
+
}, title: "browser", browser: !0, env: {}, argv: [], version: "", versions: {}, on: Pa, addListener: Da, once: La, off: xa, removeListener: Ma, removeAllListeners: Na, emit: Ba, binding: function(n) {
|
1135
|
+
throw new Error("process.binding is not supported");
|
1136
|
+
}, cwd: function() {
|
1137
|
+
return "/";
|
1138
|
+
}, chdir: function(n) {
|
1139
|
+
throw new Error("process.chdir is not supported");
|
1140
|
+
}, umask: function() {
|
1141
|
+
return 0;
|
1142
|
+
}, hrtime: function(n) {
|
1143
|
+
var t = 1e-3 * Fa.call(je), e = Math.floor(t), r = Math.floor(t % 1 * 1e9);
|
1144
|
+
return n && (e -= n[0], (r -= n[1]) < 0 && (e--, r += 1e9)), [e, r];
|
1145
|
+
}, platform: "browser", release: {}, config: {}, uptime: function() {
|
1146
|
+
return (/* @__PURE__ */ new Date() - Ga) / 1e3;
|
1147
|
+
} }, _r = { exports: {} };
|
1148
|
+
function Ua() {
|
1149
|
+
if (hi)
|
1150
|
+
return or;
|
1151
|
+
hi = 1;
|
1152
|
+
var n = 1e3, t = 60 * n, e = 60 * t, r = 24 * e, i = 7 * r, s = 365.25 * r;
|
1153
|
+
function u(a, c, f, d) {
|
1154
|
+
var l = c >= 1.5 * f;
|
1155
|
+
return Math.round(a / f) + " " + d + (l ? "s" : "");
|
1156
|
+
}
|
1157
|
+
return or = function(a, c) {
|
1158
|
+
c = c || {};
|
1159
|
+
var f = x(a);
|
1160
|
+
if (f === "string" && a.length > 0)
|
1161
|
+
return function(d) {
|
1162
|
+
if (!((d = String(d)).length > 100)) {
|
1163
|
+
var l = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);
|
1164
|
+
if (l) {
|
1165
|
+
var p = parseFloat(l[1]);
|
1166
|
+
switch ((l[2] || "ms").toLowerCase()) {
|
1167
|
+
case "years":
|
1168
|
+
case "year":
|
1169
|
+
case "yrs":
|
1170
|
+
case "yr":
|
1171
|
+
case "y":
|
1172
|
+
return p * s;
|
1173
|
+
case "weeks":
|
1174
|
+
case "week":
|
1175
|
+
case "w":
|
1176
|
+
return p * i;
|
1177
|
+
case "days":
|
1178
|
+
case "day":
|
1179
|
+
case "d":
|
1180
|
+
return p * r;
|
1181
|
+
case "hours":
|
1182
|
+
case "hour":
|
1183
|
+
case "hrs":
|
1184
|
+
case "hr":
|
1185
|
+
case "h":
|
1186
|
+
return p * e;
|
1187
|
+
case "minutes":
|
1188
|
+
case "minute":
|
1189
|
+
case "mins":
|
1190
|
+
case "min":
|
1191
|
+
case "m":
|
1192
|
+
return p * t;
|
1193
|
+
case "seconds":
|
1194
|
+
case "second":
|
1195
|
+
case "secs":
|
1196
|
+
case "sec":
|
1197
|
+
case "s":
|
1198
|
+
return p * n;
|
1199
|
+
case "milliseconds":
|
1200
|
+
case "millisecond":
|
1201
|
+
case "msecs":
|
1202
|
+
case "msec":
|
1203
|
+
case "ms":
|
1204
|
+
return p;
|
1205
|
+
default:
|
1206
|
+
return;
|
1207
|
+
}
|
1208
|
+
}
|
1209
|
+
}
|
1210
|
+
}(a);
|
1211
|
+
if (f === "number" && isFinite(a))
|
1212
|
+
return c.long ? function(d) {
|
1213
|
+
var l = Math.abs(d);
|
1214
|
+
return l >= r ? u(d, l, r, "day") : l >= e ? u(d, l, e, "hour") : l >= t ? u(d, l, t, "minute") : l >= n ? u(d, l, n, "second") : d + " ms";
|
1215
|
+
}(a) : function(d) {
|
1216
|
+
var l = Math.abs(d);
|
1217
|
+
return l >= r ? Math.round(d / r) + "d" : l >= e ? Math.round(d / e) + "h" : l >= t ? Math.round(d / t) + "m" : l >= n ? Math.round(d / n) + "s" : d + "ms";
|
1218
|
+
}(a);
|
1219
|
+
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(a));
|
1220
|
+
}, or;
|
1221
|
+
}
|
1222
|
+
var Ha = function(n) {
|
1223
|
+
function t(i) {
|
1224
|
+
var s, u, a, c = null;
|
1225
|
+
function f() {
|
1226
|
+
for (var d = arguments.length, l = new Array(d), p = 0; p < d; p++)
|
1227
|
+
l[p] = arguments[p];
|
1228
|
+
if (f.enabled) {
|
1229
|
+
var m = f, h = Number(/* @__PURE__ */ new Date()), b = h - (s || h);
|
1230
|
+
m.diff = b, m.prev = s, m.curr = h, s = h, l[0] = t.coerce(l[0]), typeof l[0] != "string" && l.unshift("%O");
|
1231
|
+
var y = 0;
|
1232
|
+
l[0] = l[0].replace(/%([a-zA-Z%])/g, function(A, g) {
|
1233
|
+
if (A === "%%")
|
1234
|
+
return "%";
|
1235
|
+
y++;
|
1236
|
+
var v = t.formatters[g];
|
1237
|
+
if (typeof v == "function") {
|
1238
|
+
var k = l[y];
|
1239
|
+
A = v.call(m, k), l.splice(y, 1), y--;
|
1240
|
+
}
|
1241
|
+
return A;
|
1242
|
+
}), t.formatArgs.call(m, l);
|
1243
|
+
var E = m.log || t.log;
|
1244
|
+
E.apply(m, l);
|
1245
|
+
}
|
1246
|
+
}
|
1247
|
+
return f.namespace = i, f.useColors = t.useColors(), f.color = t.selectColor(i), f.extend = e, f.destroy = t.destroy, Object.defineProperty(f, "enabled", { enumerable: !0, configurable: !1, get: function() {
|
1248
|
+
return c !== null ? c : (u !== t.namespaces && (u = t.namespaces, a = t.enabled(i)), a);
|
1249
|
+
}, set: function(d) {
|
1250
|
+
c = d;
|
1251
|
+
} }), typeof t.init == "function" && t.init(f), f;
|
1252
|
+
}
|
1253
|
+
function e(i, s) {
|
1254
|
+
var u = t(this.namespace + (s === void 0 ? ":" : s) + i);
|
1255
|
+
return u.log = this.log, u;
|
1256
|
+
}
|
1257
|
+
function r(i) {
|
1258
|
+
return i.toString().substring(2, i.toString().length - 2).replace(/\.\*\?$/, "*");
|
1259
|
+
}
|
1260
|
+
return t.debug = t, t.default = t, t.coerce = function(i) {
|
1261
|
+
return i instanceof Error ? i.stack || i.message : i;
|
1262
|
+
}, t.disable = function() {
|
1263
|
+
var i = [].concat(ce(t.names.map(r)), ce(t.skips.map(r).map(function(s) {
|
1264
|
+
return "-" + s;
|
1265
|
+
}))).join(",");
|
1266
|
+
return t.enable(""), i;
|
1267
|
+
}, t.enable = function(i) {
|
1268
|
+
var s;
|
1269
|
+
t.save(i), t.namespaces = i, t.names = [], t.skips = [];
|
1270
|
+
var u = (typeof i == "string" ? i : "").split(/[\s,]+/), a = u.length;
|
1271
|
+
for (s = 0; s < a; s++)
|
1272
|
+
u[s] && ((i = u[s].replace(/\*/g, ".*?"))[0] === "-" ? t.skips.push(new RegExp("^" + i.slice(1) + "$")) : t.names.push(new RegExp("^" + i + "$")));
|
1273
|
+
}, t.enabled = function(i) {
|
1274
|
+
if (i[i.length - 1] === "*")
|
1275
|
+
return !0;
|
1276
|
+
var s, u;
|
1277
|
+
for (s = 0, u = t.skips.length; s < u; s++)
|
1278
|
+
if (t.skips[s].test(i))
|
1279
|
+
return !1;
|
1280
|
+
for (s = 0, u = t.names.length; s < u; s++)
|
1281
|
+
if (t.names[s].test(i))
|
1282
|
+
return !0;
|
1283
|
+
return !1;
|
1284
|
+
}, t.humanize = Ua(), t.destroy = function() {
|
1285
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
1286
|
+
}, Object.keys(n).forEach(function(i) {
|
1287
|
+
t[i] = n[i];
|
1288
|
+
}), t.names = [], t.skips = [], t.formatters = {}, t.selectColor = function(i) {
|
1289
|
+
for (var s = 0, u = 0; u < i.length; u++)
|
1290
|
+
s = (s << 5) - s + i.charCodeAt(u), s |= 0;
|
1291
|
+
return t.colors[Math.abs(s) % t.colors.length];
|
1292
|
+
}, t.enable(t.load()), t;
|
1293
|
+
};
|
1294
|
+
(function(n, t) {
|
1295
|
+
var e;
|
1296
|
+
t.formatArgs = function(r) {
|
1297
|
+
if (r[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + r[0] + (this.useColors ? "%c " : " ") + "+" + n.exports.humanize(this.diff), !!this.useColors) {
|
1298
|
+
var i = "color: " + this.color;
|
1299
|
+
r.splice(1, 0, i, "color: inherit");
|
1300
|
+
var s = 0, u = 0;
|
1301
|
+
r[0].replace(/%[a-zA-Z%]/g, function(a) {
|
1302
|
+
a !== "%%" && (s++, a === "%c" && (u = s));
|
1303
|
+
}), r.splice(u, 0, i);
|
1304
|
+
}
|
1305
|
+
}, t.save = function(r) {
|
1306
|
+
try {
|
1307
|
+
r ? t.storage.setItem("debug", r) : t.storage.removeItem("debug");
|
1308
|
+
} catch {
|
1309
|
+
}
|
1310
|
+
}, t.load = function() {
|
1311
|
+
var r;
|
1312
|
+
try {
|
1313
|
+
r = t.storage.getItem("debug");
|
1314
|
+
} catch {
|
1315
|
+
}
|
1316
|
+
return !r && sr !== void 0 && "env" in sr && (r = sr.env.DEBUG), r;
|
1317
|
+
}, t.useColors = function() {
|
1318
|
+
return typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs) ? !0 : typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/) ? !1 : typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
1319
|
+
}, t.storage = function() {
|
1320
|
+
try {
|
1321
|
+
return localStorage;
|
1322
|
+
} catch {
|
1323
|
+
}
|
1324
|
+
}(), t.destroy = (e = !1, function() {
|
1325
|
+
e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
1326
|
+
}), t.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"], t.log = console.debug || console.log || function() {
|
1327
|
+
}, n.exports = Ha(t), n.exports.formatters.j = function(r) {
|
1328
|
+
try {
|
1329
|
+
return JSON.stringify(r);
|
1330
|
+
} catch (i) {
|
1331
|
+
return "[UnexpectedJSONParseError]: " + i.message;
|
1332
|
+
}
|
1333
|
+
};
|
1334
|
+
})(_r, _r.exports);
|
1335
|
+
var Mr = _r.exports, Ji = Mr("cookie");
|
1336
|
+
function ja(n, t, e) {
|
1337
|
+
e = e || {};
|
1338
|
+
var r = di(n) + "=" + di(t);
|
1339
|
+
t == null && (e.maxage = -1), e.maxage && (e.expires = new Date(+/* @__PURE__ */ new Date() + e.maxage)), e.path && (r += "; path=" + e.path), e.domain && (r += "; domain=" + e.domain), e.expires && (r += "; expires=" + e.expires.toUTCString()), e.samesite && (r += "; samesite=" + e.samesite), e.secure && (r += "; secure"), document.cookie = r;
|
1340
|
+
}
|
1341
|
+
function Zi() {
|
1342
|
+
var n;
|
1343
|
+
try {
|
1344
|
+
n = document.cookie;
|
1345
|
+
} catch (t) {
|
1346
|
+
return typeof console < "u" && typeof console.error == "function" && console.error(t.stack || t), {};
|
1347
|
+
}
|
1348
|
+
return function(t) {
|
1349
|
+
var e, r = {}, i = t.split(/ *; */);
|
1350
|
+
if (i[0] == "")
|
1351
|
+
return r;
|
1352
|
+
for (var s = 0; s < i.length; ++s)
|
1353
|
+
r[pi((e = i[s].split("="))[0])] = pi(e[1]);
|
1354
|
+
return r;
|
1355
|
+
}(n);
|
1356
|
+
}
|
1357
|
+
function qa(n) {
|
1358
|
+
return Zi()[n];
|
1359
|
+
}
|
1360
|
+
function di(n) {
|
1361
|
+
try {
|
1362
|
+
return encodeURIComponent(n);
|
1363
|
+
} catch (t) {
|
1364
|
+
Ji("error `encode(%o)` - %o", n, t);
|
1365
|
+
}
|
1366
|
+
}
|
1367
|
+
function pi(n) {
|
1368
|
+
try {
|
1369
|
+
return decodeURIComponent(n);
|
1370
|
+
} catch (t) {
|
1371
|
+
Ji("error `decode(%o)` - %o", n, t);
|
1372
|
+
}
|
1373
|
+
}
|
1374
|
+
var ar = Bt(function(n, t, e) {
|
1375
|
+
switch (arguments.length) {
|
1376
|
+
case 3:
|
1377
|
+
case 2:
|
1378
|
+
return ja(n, t, e);
|
1379
|
+
case 1:
|
1380
|
+
return qa(n);
|
1381
|
+
default:
|
1382
|
+
return Zi();
|
1383
|
+
}
|
1384
|
+
}), Cr = { exports: {} }, gi = Math.max, Ka = function(n, t) {
|
1385
|
+
var e = t ? t.length : 0;
|
1386
|
+
if (!e)
|
1387
|
+
return [];
|
1388
|
+
for (var r = gi(Number(n) || 0, 0), i = gi(e - r, 0), s = new Array(i), u = 0; u < i; u += 1)
|
1389
|
+
s[u] = t[u + r];
|
1390
|
+
return s;
|
1391
|
+
}, za = Math.max, Qa = function(n) {
|
1392
|
+
if (n == null || !n.length)
|
1393
|
+
return [];
|
1394
|
+
for (var t = new Array(za(n.length - 2, 0)), e = 1; e < n.length; e += 1)
|
1395
|
+
t[e - 1] = n[e];
|
1396
|
+
return t;
|
1397
|
+
}, Va = Ka, to = Qa, eo = Object.prototype.hasOwnProperty, $a = Object.prototype.toString, Wa = function(n) {
|
1398
|
+
return !!n && x(n) === "object";
|
1399
|
+
}, mi = function(n) {
|
1400
|
+
return !!n && $a.call(n) === "[object Object]";
|
1401
|
+
}, Ya = function(n, t, e, r) {
|
1402
|
+
return eo.call(t, r) && n[r] === void 0 && (n[r] = e), t;
|
1403
|
+
}, Xa = function(n, t, e, r) {
|
1404
|
+
return eo.call(t, r) && (mi(n[r]) && mi(e) ? n[r] = ro(n[r], e) : n[r] === void 0 && (n[r] = e)), t;
|
1405
|
+
}, no = function(n, t) {
|
1406
|
+
if (!Wa(t))
|
1407
|
+
return t;
|
1408
|
+
n = n || Ya;
|
1409
|
+
for (var e = Va(2, arguments), r = 0; r < e.length; r += 1)
|
1410
|
+
for (var i in e[r])
|
1411
|
+
n(t, e[r], e[r][i], i);
|
1412
|
+
return t;
|
1413
|
+
}, ro = function(n) {
|
1414
|
+
return no.apply(null, [Xa, n].concat(to(arguments)));
|
1415
|
+
};
|
1416
|
+
Cr.exports = function(n) {
|
1417
|
+
return no.apply(null, [null, n].concat(to(arguments)));
|
1418
|
+
}, Cr.exports.deep = ro;
|
1419
|
+
var io = Bt(Cr.exports), Sr = { exports: {} }, oo = Mr("cookie"), Ja = function(n, t, e) {
|
1420
|
+
switch (arguments.length) {
|
1421
|
+
case 3:
|
1422
|
+
case 2:
|
1423
|
+
return Za(n, t, e);
|
1424
|
+
case 1:
|
1425
|
+
return tu(n);
|
1426
|
+
default:
|
1427
|
+
return so();
|
1428
|
+
}
|
1429
|
+
};
|
1430
|
+
function Za(n, t, e) {
|
1431
|
+
e = e || {};
|
1432
|
+
var r = yi(n) + "=" + yi(t);
|
1433
|
+
t == null && (e.maxage = -1), e.maxage && (e.expires = new Date(+/* @__PURE__ */ new Date() + e.maxage)), e.path && (r += "; path=" + e.path), e.domain && (r += "; domain=" + e.domain), e.expires && (r += "; expires=" + e.expires.toUTCString()), e.secure && (r += "; secure"), document.cookie = r;
|
1434
|
+
}
|
1435
|
+
function so() {
|
1436
|
+
var n;
|
1437
|
+
try {
|
1438
|
+
n = document.cookie;
|
1439
|
+
} catch (t) {
|
1440
|
+
return typeof console < "u" && typeof console.error == "function" && console.error(t.stack || t), {};
|
1441
|
+
}
|
1442
|
+
return function(t) {
|
1443
|
+
var e, r = {}, i = t.split(/ *; */);
|
1444
|
+
if (i[0] == "")
|
1445
|
+
return r;
|
1446
|
+
for (var s = 0; s < i.length; ++s)
|
1447
|
+
r[vi((e = i[s].split("="))[0])] = vi(e[1]);
|
1448
|
+
return r;
|
1449
|
+
}(n);
|
1450
|
+
}
|
1451
|
+
function tu(n) {
|
1452
|
+
return so()[n];
|
1453
|
+
}
|
1454
|
+
function yi(n) {
|
1455
|
+
try {
|
1456
|
+
return encodeURIComponent(n);
|
1457
|
+
} catch (t) {
|
1458
|
+
oo("error `encode(%o)` - %o", n, t);
|
1459
|
+
}
|
1460
|
+
}
|
1461
|
+
function vi(n) {
|
1462
|
+
try {
|
1463
|
+
return decodeURIComponent(n);
|
1464
|
+
} catch (t) {
|
1465
|
+
oo("error `decode(%o)` - %o", n, t);
|
1466
|
+
}
|
1467
|
+
}
|
1468
|
+
(function(n, t) {
|
1469
|
+
var e = Ja;
|
1470
|
+
function r(i) {
|
1471
|
+
for (var s = t.cookie, u = t.levels(i), a = 0; a < u.length; ++a) {
|
1472
|
+
var c = "__tld__", f = u[a], d = { domain: "." + f };
|
1473
|
+
if (s(c, 1, d), s(c))
|
1474
|
+
return s(c, null, d), f;
|
1475
|
+
}
|
1476
|
+
return "";
|
1477
|
+
}
|
1478
|
+
r.levels = function(i) {
|
1479
|
+
var s, u, a = (typeof window.URL != "function" ? (s = i, (u = document.createElement("a")).href = s, u.hostname) : new URL(i).hostname).split("."), c = a[a.length - 1], f = [];
|
1480
|
+
if (a.length === 4 && c === parseInt(c, 10) || a.length <= 1)
|
1481
|
+
return f;
|
1482
|
+
for (var d = a.length - 2; d >= 0; --d)
|
1483
|
+
f.push(a.slice(d).join("."));
|
1484
|
+
return f;
|
1485
|
+
}, r.cookie = e, t = n.exports = r;
|
1486
|
+
})(Sr, Sr.exports);
|
1487
|
+
var eu = Bt(Sr.exports), Gn = new (function() {
|
1488
|
+
function n(t) {
|
1489
|
+
B(this, n), this.cOpts = {}, this.options(t), this.isSupportAvailable = this.checkSupportAvailability();
|
1490
|
+
}
|
1491
|
+
return F(n, [{ key: "options", value: function() {
|
1492
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1493
|
+
if (arguments.length === 0)
|
1494
|
+
return this.cOpts;
|
1495
|
+
var e = ".".concat(eu(window.location.href));
|
1496
|
+
return e === "." && (e = null), this.cOpts = io(t, { maxage: 31536e6, path: "/", domain: e, samesite: "Lax" }), this.cOpts;
|
1497
|
+
} }, { key: "set", value: function(t, e) {
|
1498
|
+
try {
|
1499
|
+
return ar(t, e, U(this.cOpts)), !0;
|
1500
|
+
} catch (r) {
|
1501
|
+
return D.error(r), !1;
|
1502
|
+
}
|
1503
|
+
} }, { key: "get", value: function(t) {
|
1504
|
+
return ar(t);
|
1505
|
+
} }, { key: "remove", value: function(t) {
|
1506
|
+
try {
|
1507
|
+
return ar(t, null, U(this.cOpts)), !0;
|
1508
|
+
} catch {
|
1509
|
+
return !1;
|
1510
|
+
}
|
1511
|
+
} }, { key: "checkSupportAvailability", value: function() {
|
1512
|
+
var t = "test_rudder_cookie";
|
1513
|
+
return this.set(t, !0), !!this.get(t) && (this.remove(t), !0);
|
1514
|
+
} }]), n;
|
1515
|
+
}())({}), ur = Bt(function() {
|
1516
|
+
function n(l) {
|
1517
|
+
return l = JSON.stringify(l), !!/^\{[\s\S]*\}$/.test(l);
|
1518
|
+
}
|
1519
|
+
function t(l) {
|
1520
|
+
return l === void 0 || typeof l == "function" ? l + "" : JSON.stringify(l);
|
1521
|
+
}
|
1522
|
+
function e(l) {
|
1523
|
+
if (typeof l == "string")
|
1524
|
+
try {
|
1525
|
+
return JSON.parse(l);
|
1526
|
+
} catch {
|
1527
|
+
return l;
|
1528
|
+
}
|
1529
|
+
}
|
1530
|
+
function r(l) {
|
1531
|
+
return {}.toString.call(l) === "[object Function]";
|
1532
|
+
}
|
1533
|
+
function i(l) {
|
1534
|
+
return Object.prototype.toString.call(l) === "[object Array]";
|
1535
|
+
}
|
1536
|
+
function s(l) {
|
1537
|
+
var p = "_Is_Incognit", m = "yes";
|
1538
|
+
try {
|
1539
|
+
l || (l = window.localStorage), l.setItem(p, m), l.removeItem(p);
|
1540
|
+
} catch {
|
1541
|
+
var h = { _data: {}, setItem: function(y, E) {
|
1542
|
+
return h._data[y] = String(E);
|
1543
|
+
}, getItem: function(y) {
|
1544
|
+
return h._data.hasOwnProperty(y) ? h._data[y] : void 0;
|
1545
|
+
}, removeItem: function(y) {
|
1546
|
+
return delete h._data[y];
|
1547
|
+
}, clear: function() {
|
1548
|
+
return h._data = {};
|
1549
|
+
} };
|
1550
|
+
l = h;
|
1551
|
+
} finally {
|
1552
|
+
l.getItem(p) === m && l.removeItem(p);
|
1553
|
+
}
|
1554
|
+
return l;
|
1555
|
+
}
|
1556
|
+
var u = s();
|
1557
|
+
function a() {
|
1558
|
+
if (!(this instanceof a))
|
1559
|
+
return new a();
|
1560
|
+
}
|
1561
|
+
a.prototype = { set: function(l, p) {
|
1562
|
+
if (l && !n(l))
|
1563
|
+
u.setItem(l, t(p));
|
1564
|
+
else if (n(l))
|
1565
|
+
for (var m in l)
|
1566
|
+
this.set(m, l[m]);
|
1567
|
+
return this;
|
1568
|
+
}, get: function(l) {
|
1569
|
+
if (!l) {
|
1570
|
+
var p = {};
|
1571
|
+
return this.forEach(function(A, g) {
|
1572
|
+
return p[A] = g;
|
1573
|
+
}), p;
|
1574
|
+
}
|
1575
|
+
if (l.charAt(0) === "?")
|
1576
|
+
return this.has(l.substr(1));
|
1577
|
+
var m = arguments;
|
1578
|
+
if (m.length > 1) {
|
1579
|
+
for (var h = {}, b = 0, y = m.length; b < y; b++) {
|
1580
|
+
var E = e(u.getItem(m[b]));
|
1581
|
+
this.has(m[b]) && (h[m[b]] = E);
|
1582
|
+
}
|
1583
|
+
return h;
|
1584
|
+
}
|
1585
|
+
return e(u.getItem(l));
|
1586
|
+
}, clear: function() {
|
1587
|
+
return u.clear(), this;
|
1588
|
+
}, remove: function(l) {
|
1589
|
+
var p = this.get(l);
|
1590
|
+
return u.removeItem(l), p;
|
1591
|
+
}, has: function(l) {
|
1592
|
+
return {}.hasOwnProperty.call(this.get(), l);
|
1593
|
+
}, keys: function() {
|
1594
|
+
var l = [];
|
1595
|
+
return this.forEach(function(p) {
|
1596
|
+
l.push(p);
|
1597
|
+
}), l;
|
1598
|
+
}, forEach: function(l) {
|
1599
|
+
for (var p = 0, m = u.length; p < m; p++) {
|
1600
|
+
var h = u.key(p);
|
1601
|
+
l(h, this.get(h));
|
1602
|
+
}
|
1603
|
+
return this;
|
1604
|
+
}, search: function(l) {
|
1605
|
+
for (var p = this.keys(), m = {}, h = 0, b = p.length; h < b; h++)
|
1606
|
+
p[h].indexOf(l) > -1 && (m[p[h]] = this.get(p[h]));
|
1607
|
+
return m;
|
1608
|
+
} };
|
1609
|
+
var c = null;
|
1610
|
+
function f(l, p) {
|
1611
|
+
var m = arguments, h = null;
|
1612
|
+
if (c || (c = a()), m.length === 0)
|
1613
|
+
return c.get();
|
1614
|
+
if (m.length === 1) {
|
1615
|
+
if (typeof l == "string")
|
1616
|
+
return c.get(l);
|
1617
|
+
if (n(l))
|
1618
|
+
return c.set(l);
|
1619
|
+
}
|
1620
|
+
if (m.length === 2 && typeof l == "string") {
|
1621
|
+
if (!p)
|
1622
|
+
return c.remove(l);
|
1623
|
+
if (p && typeof p == "string")
|
1624
|
+
return c.set(l, p);
|
1625
|
+
p && r(p) && (h = null, h = p(l, c.get(l)), f.set(l, h));
|
1626
|
+
}
|
1627
|
+
if (m.length === 2 && i(l) && r(p))
|
1628
|
+
for (var b = 0, y = l.length; b < y; b++)
|
1629
|
+
h = p(l[b], c.get(l[b])), f.set(l[b], h);
|
1630
|
+
return f;
|
1631
|
+
}
|
1632
|
+
for (var d in a.prototype)
|
1633
|
+
f[d] = a.prototype[d];
|
1634
|
+
return f;
|
1635
|
+
}()), cn = new (function() {
|
1636
|
+
function n(t) {
|
1637
|
+
B(this, n), this.sOpts = {}, this.enabled = this.checkSupportAvailability(), this.options(t);
|
1638
|
+
}
|
1639
|
+
return F(n, [{ key: "options", value: function() {
|
1640
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1641
|
+
return arguments.length === 0 || (io(t, { enabled: !0 }), this.enabled = t.enabled && this.enabled, this.sOpts = t), this.sOpts;
|
1642
|
+
} }, { key: "set", value: function(t, e) {
|
1643
|
+
return ur.set(t, e);
|
1644
|
+
} }, { key: "get", value: function(t) {
|
1645
|
+
return ur.get(t);
|
1646
|
+
} }, { key: "remove", value: function(t) {
|
1647
|
+
return ur.remove(t);
|
1648
|
+
} }, { key: "checkSupportAvailability", value: function() {
|
1649
|
+
var t = "test_rudder_ls";
|
1650
|
+
return this.set(t, !0), !!this.get(t) && (this.remove(t), !0);
|
1651
|
+
} }]), n;
|
1652
|
+
}())({}), cr = "rl_user_id", lr = "rl_trait", fr = "rl_anonymous_id", hr = "rl_group_id", dr = "rl_group_trait", Ai = "rl_page_init_referrer", Ii = "rl_page_init_referring_domain", pr = "rl_session", gr = "rl_auth_token", zn = "RudderEncrypt:", ao = "Rudder", mr = { segment: "ajs_anonymous_id" };
|
1653
|
+
function bi(n) {
|
1654
|
+
try {
|
1655
|
+
return n ? JSON.parse(n) : null;
|
1656
|
+
} catch (t) {
|
1657
|
+
return D.error(t), n || null;
|
1658
|
+
}
|
1659
|
+
}
|
1660
|
+
function uo(n) {
|
1661
|
+
return n.replace(/^\s+|\s+$/gm, "");
|
1662
|
+
}
|
1663
|
+
function Ei(n) {
|
1664
|
+
return !n || typeof n == "string" && uo(n) === "" ? n : n.substring(0, zn.length) === zn ? Qi.decrypt(n.substring(zn.length), ao).toString(Ta) : n;
|
1665
|
+
}
|
1666
|
+
var nu = function() {
|
1667
|
+
function n() {
|
1668
|
+
B(this, n), Gn.isSupportAvailable ? this.storage = Gn : (cn.enabled && (this.storage = cn), this.storage || D.error("No storage is available :: initializing the SDK without storage"));
|
1669
|
+
}
|
1670
|
+
return F(n, [{ key: "options", value: function() {
|
1671
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1672
|
+
this.storage.options(t);
|
1673
|
+
} }, { key: "setItem", value: function(t, e) {
|
1674
|
+
this.storage.set(t, function(r) {
|
1675
|
+
return uo(r) === "" ? r : "".concat(zn).concat(Qi.encrypt(r, ao).toString());
|
1676
|
+
}(function(r) {
|
1677
|
+
return JSON.stringify(r);
|
1678
|
+
}(e)));
|
1679
|
+
} }, { key: "setStringItem", value: function(t, e) {
|
1680
|
+
typeof e == "string" ? this.setItem(t, e) : D.error("[Storage] ".concat(t, " should be string"));
|
1681
|
+
} }, { key: "setUserId", value: function(t) {
|
1682
|
+
this.setStringItem(cr, t);
|
1683
|
+
} }, { key: "setUserTraits", value: function(t) {
|
1684
|
+
this.setItem(lr, t);
|
1685
|
+
} }, { key: "setGroupId", value: function(t) {
|
1686
|
+
this.setStringItem(hr, t);
|
1687
|
+
} }, { key: "setGroupTraits", value: function(t) {
|
1688
|
+
this.setItem(dr, t);
|
1689
|
+
} }, { key: "setAnonymousId", value: function(t) {
|
1690
|
+
this.setStringItem(fr, t);
|
1691
|
+
} }, { key: "setInitialReferrer", value: function(t) {
|
1692
|
+
this.setItem(Ai, t);
|
1693
|
+
} }, { key: "setInitialReferringDomain", value: function(t) {
|
1694
|
+
this.setItem(Ii, t);
|
1695
|
+
} }, { key: "setSessionInfo", value: function(t) {
|
1696
|
+
this.setItem(pr, t);
|
1697
|
+
} }, { key: "setAuthToken", value: function(t) {
|
1698
|
+
this.setItem(gr, t);
|
1699
|
+
} }, { key: "getItem", value: function(t) {
|
1700
|
+
return bi(Ei(this.storage.get(t)));
|
1701
|
+
} }, { key: "getUserId", value: function() {
|
1702
|
+
return this.getItem(cr);
|
1703
|
+
} }, { key: "getUserTraits", value: function() {
|
1704
|
+
return this.getItem(lr);
|
1705
|
+
} }, { key: "getGroupId", value: function() {
|
1706
|
+
return this.getItem(hr);
|
1707
|
+
} }, { key: "getGroupTraits", value: function() {
|
1708
|
+
return this.getItem(dr);
|
1709
|
+
} }, { key: "fetchExternalAnonymousId", value: function(t) {
|
1710
|
+
var e, r = t.toLowerCase();
|
1711
|
+
return Object.keys(mr).includes(r) && r === "segment" && (cn.enabled && (e = cn.get(mr[r])), !e && Gn.isSupportAvailable && (e = Gn.get(mr[r]))), e;
|
1712
|
+
} }, { key: "getAnonymousId", value: function(t) {
|
1713
|
+
var e = bi(Ei(this.storage.get(fr)));
|
1714
|
+
if (e)
|
1715
|
+
return e;
|
1716
|
+
var r = hn(t, "autoCapture.source");
|
1717
|
+
if (hn(t, "autoCapture.enabled") === !0 && typeof r == "string") {
|
1718
|
+
var i = this.fetchExternalAnonymousId(r);
|
1719
|
+
if (i)
|
1720
|
+
return i;
|
1721
|
+
}
|
1722
|
+
return e;
|
1723
|
+
} }, { key: "getInitialReferrer", value: function() {
|
1724
|
+
return this.getItem(Ai);
|
1725
|
+
} }, { key: "getInitialReferringDomain", value: function() {
|
1726
|
+
return this.getItem(Ii);
|
1727
|
+
} }, { key: "getSessionInfo", value: function() {
|
1728
|
+
return this.getItem(pr);
|
1729
|
+
} }, { key: "getAuthToken", value: function() {
|
1730
|
+
return this.getItem(gr);
|
1731
|
+
} }, { key: "removeItem", value: function(t) {
|
1732
|
+
return this.storage.remove(t);
|
1733
|
+
} }, { key: "removeSessionInfo", value: function() {
|
1734
|
+
this.removeItem(pr);
|
1735
|
+
} }, { key: "clear", value: function(t) {
|
1736
|
+
this.storage.remove(cr), this.storage.remove(lr), this.storage.remove(hr), this.storage.remove(dr), this.storage.remove(gr), t && this.storage.remove(fr);
|
1737
|
+
} }]), n;
|
1738
|
+
}(), Wn = new nu();
|
1739
|
+
function co() {
|
1740
|
+
return document.referrer || "$direct";
|
1741
|
+
}
|
1742
|
+
function lo(n) {
|
1743
|
+
var t = n.split("/");
|
1744
|
+
return t.length >= 3 ? t[2] : "";
|
1745
|
+
}
|
1746
|
+
function ki() {
|
1747
|
+
for (var n = document.getElementsByTagName("link"), t = 0; n[t]; t += 1) {
|
1748
|
+
var e = n[t];
|
1749
|
+
if (e.getAttribute("rel") === "canonical")
|
1750
|
+
return e.getAttribute("href");
|
1751
|
+
}
|
1752
|
+
}
|
1753
|
+
function yr() {
|
1754
|
+
var n = ki(), t = window.location.pathname;
|
1755
|
+
if (n)
|
1756
|
+
try {
|
1757
|
+
t = new URL(n).pathname;
|
1758
|
+
} catch {
|
1759
|
+
}
|
1760
|
+
var e = window.location, r = e.search, i = e.href, s = document.title, u = function(f) {
|
1761
|
+
var d, l = ki(), p = (d = l ? l.includes("?") ? l : l + f : window.location.href).indexOf("#");
|
1762
|
+
return p > -1 ? d.slice(0, p) : d;
|
1763
|
+
}(r), a = i, c = co();
|
1764
|
+
return { path: t, referrer: c, referring_domain: lo(c), search: r, title: s, url: u, tab_url: a, initial_referrer: Wn.getInitialReferrer() || "", initial_referring_domain: Wn.getInitialReferringDomain() || "" };
|
1765
|
+
}
|
1766
|
+
for (var Un, ru = F(function n() {
|
1767
|
+
B(this, n), this.name = "RudderLabs JavaScript SDK", this.namespace = "com.rudderlabs.javascript", this.version = "2.34.0";
|
1768
|
+
}), iu = F(function n() {
|
1769
|
+
B(this, n), this.name = "RudderLabs JavaScript SDK", this.version = "2.34.0";
|
1770
|
+
}), ou = F(function n() {
|
1771
|
+
B(this, n), this.name = "", this.version = "";
|
1772
|
+
}), su = F(function n() {
|
1773
|
+
B(this, n), this.density = 0, this.width = 0, this.height = 0, this.innerWidth = 0, this.innerHeight = 0;
|
1774
|
+
}), au = F(function n() {
|
1775
|
+
var t;
|
1776
|
+
B(this, n), this.app = new ru(), this.traits = null, this.library = new iu(), this.userAgent = function() {
|
1777
|
+
if (typeof navigator > "u")
|
1778
|
+
return null;
|
1779
|
+
var e = navigator.userAgent, r = navigator.brave;
|
1780
|
+
if (r && Object.getPrototypeOf(r).isBrave) {
|
1781
|
+
var i = e.match(/(chrome)\/([\w.]+)/i);
|
1782
|
+
i && (e = "".concat(e, " Brave/").concat(i[2]));
|
1783
|
+
}
|
1784
|
+
return e;
|
1785
|
+
}(), this.device = null, this.network = null, this.os = new ou(), this.locale = typeof navigator > "u" ? null : navigator.language || navigator.browserLanguage, this.screen = (t = new su(), typeof window > "u" || (t.width = window.screen.width, t.height = window.screen.height, t.density = window.devicePixelRatio, t.innerWidth = window.innerWidth, t.innerHeight = window.innerHeight), t);
|
1786
|
+
}), uu = function() {
|
1787
|
+
function n() {
|
1788
|
+
B(this, n), this.channel = "web", this.context = new au(), this.type = null, this.messageId = Ki(), this.originalTimestamp = (/* @__PURE__ */ new Date()).toISOString(), this.anonymousId = null, this.userId = null, this.event = null, this.properties = {};
|
1789
|
+
}
|
1790
|
+
return F(n, [{ key: "getProperty", value: function(t) {
|
1791
|
+
return this.properties[t];
|
1792
|
+
} }, { key: "addProperty", value: function(t, e) {
|
1793
|
+
this.properties[t] = e;
|
1794
|
+
} }]), n;
|
1795
|
+
}(), fo = function() {
|
1796
|
+
function n() {
|
1797
|
+
B(this, n), this.message = new uu();
|
1798
|
+
}
|
1799
|
+
return F(n, [{ key: "setType", value: function(t) {
|
1800
|
+
this.message.type = t;
|
1801
|
+
} }, { key: "setProperty", value: function(t) {
|
1802
|
+
this.message.properties = t;
|
1803
|
+
} }, { key: "setUserProperty", value: function(t) {
|
1804
|
+
this.message.user_properties = t;
|
1805
|
+
} }, { key: "setUserId", value: function(t) {
|
1806
|
+
this.message.userId = t;
|
1807
|
+
} }, { key: "setEventName", value: function(t) {
|
1808
|
+
this.message.event = t;
|
1809
|
+
} }, { key: "getElementContent", value: function() {
|
1810
|
+
return this.message;
|
1811
|
+
} }]), n;
|
1812
|
+
}(), an = function() {
|
1813
|
+
function n() {
|
1814
|
+
B(this, n), this.rudderProperty = null, this.rudderUserProperty = null, this.event = null, this.userId = null, this.type = null;
|
1815
|
+
}
|
1816
|
+
return F(n, [{ key: "setType", value: function(t) {
|
1817
|
+
return this.type = t, this;
|
1818
|
+
} }, { key: "build", value: function() {
|
1819
|
+
var t = new fo();
|
1820
|
+
return t.setUserId(this.userId), t.setType(this.type), t.setEventName(this.event), t.setProperty(this.rudderProperty), t.setUserProperty(this.rudderUserProperty), t;
|
1821
|
+
} }]), n;
|
1822
|
+
}(), Nr = {}, _e = 256, Qn = []; _e--; )
|
1823
|
+
Qn[_e] = (_e + 256).toString(16).substring(1);
|
1824
|
+
Nr.v4 = function() {
|
1825
|
+
var n, t = 0, e = "";
|
1826
|
+
if (!Un || _e + 16 > 256) {
|
1827
|
+
for (Un = Array(t = 256); t--; )
|
1828
|
+
Un[t] = 256 * Math.random() | 0;
|
1829
|
+
t = _e = 0;
|
1830
|
+
}
|
1831
|
+
for (; t < 16; t++)
|
1832
|
+
n = Un[_e + t], e += t == 6 ? Qn[15 & n | 64] : t == 8 ? Qn[63 & n | 128] : Qn[n], 1 & t && t > 1 && t < 11 && (e += "-");
|
1833
|
+
return _e++, e;
|
1834
|
+
};
|
1835
|
+
var Yn = {}, cu = Object.prototype.hasOwnProperty, lu = String.prototype.charAt, fu = Object.prototype.toString, hu = function(n, t) {
|
1836
|
+
return lu.call(n, t);
|
1837
|
+
}, Rr = function(n, t) {
|
1838
|
+
return cu.call(n, t);
|
1839
|
+
}, Oi = function(n, t) {
|
1840
|
+
t = t || Rr;
|
1841
|
+
for (var e = [], r = 0, i = n.length; r < i; r += 1)
|
1842
|
+
t(n, r) && e.push(String(r));
|
1843
|
+
return e;
|
1844
|
+
}, Br = function(n) {
|
1845
|
+
return n == null ? [] : (t = n, fu.call(t) === "[object String]" ? Oi(n, hu) : function(e) {
|
1846
|
+
return e != null && typeof e != "function" && typeof e.length == "number";
|
1847
|
+
}(n) ? Oi(n, Rr) : function(e, r) {
|
1848
|
+
r = r || Rr;
|
1849
|
+
var i = [];
|
1850
|
+
for (var s in e)
|
1851
|
+
r(e, s) && i.push(String(s));
|
1852
|
+
return i;
|
1853
|
+
}(n));
|
1854
|
+
var t;
|
1855
|
+
}, vr = Br, du = Nr.v4, _i = { _data: {}, length: 0, setItem: function(n, t) {
|
1856
|
+
return this._data[n] = t, this.length = vr(this._data).length, t;
|
1857
|
+
}, getItem: function(n) {
|
1858
|
+
return n in this._data ? this._data[n] : null;
|
1859
|
+
}, removeItem: function(n) {
|
1860
|
+
return n in this._data && delete this._data[n], this.length = vr(this._data).length, null;
|
1861
|
+
}, clear: function() {
|
1862
|
+
this._data = {}, this.length = 0;
|
1863
|
+
}, key: function(n) {
|
1864
|
+
return vr(this._data)[n];
|
1865
|
+
} };
|
1866
|
+
Yn.defaultEngine = function() {
|
1867
|
+
try {
|
1868
|
+
if (!window.localStorage)
|
1869
|
+
return !1;
|
1870
|
+
var n = du();
|
1871
|
+
window.localStorage.setItem(n, "test_value");
|
1872
|
+
var t = window.localStorage.getItem(n);
|
1873
|
+
return window.localStorage.removeItem(n), t === "test_value";
|
1874
|
+
} catch {
|
1875
|
+
return !1;
|
1876
|
+
}
|
1877
|
+
}() ? window.localStorage : _i, Yn.inMemoryEngine = _i;
|
1878
|
+
var pu = Br, ho = Object.prototype.toString, gu = typeof Array.isArray == "function" ? Array.isArray : function(n) {
|
1879
|
+
return ho.call(n) === "[object Array]";
|
1880
|
+
}, mu = function(n) {
|
1881
|
+
return n != null && (gu(n) || n !== "function" && function(t) {
|
1882
|
+
var e = x(t);
|
1883
|
+
return e === "number" || e === "object" && ho.call(t) === "[object Number]";
|
1884
|
+
}(n.length));
|
1885
|
+
}, yu = function(n, t) {
|
1886
|
+
for (var e = 0; e < t.length && n(t[e], e, t) !== !1; e += 1)
|
1887
|
+
;
|
1888
|
+
}, vu = function(n, t) {
|
1889
|
+
for (var e = pu(t), r = 0; r < e.length && n(t[e[r]], e[r], t) !== !1; r += 1)
|
1890
|
+
;
|
1891
|
+
}, Fr = function(n, t) {
|
1892
|
+
return (mu(t) ? yu : vu).call(this, n, t);
|
1893
|
+
}, Au = Yn.defaultEngine, Ci = Yn.inMemoryEngine, Si = Fr, Iu = Br, Ri = JSON;
|
1894
|
+
function be(n, t, e, r) {
|
1895
|
+
this.id = t, this.name = n, this.keys = e || {}, this.engine = r || Au, this.originalEngine = this.engine;
|
1896
|
+
}
|
1897
|
+
be.prototype.set = function(n, t) {
|
1898
|
+
var e = this._createValidKey(n);
|
1899
|
+
if (e)
|
1900
|
+
try {
|
1901
|
+
this.engine.setItem(e, Ri.stringify(t));
|
1902
|
+
} catch (r) {
|
1903
|
+
(function(i) {
|
1904
|
+
var s = !1;
|
1905
|
+
if (i.code)
|
1906
|
+
switch (i.code) {
|
1907
|
+
case 22:
|
1908
|
+
s = !0;
|
1909
|
+
break;
|
1910
|
+
case 1014:
|
1911
|
+
i.name === "NS_ERROR_DOM_QUOTA_REACHED" && (s = !0);
|
1912
|
+
}
|
1913
|
+
else
|
1914
|
+
i.number === -2147024882 && (s = !0);
|
1915
|
+
return s;
|
1916
|
+
})(r) && (this._swapEngine(), this.set(n, t));
|
1917
|
+
}
|
1918
|
+
}, be.prototype.get = function(n) {
|
1919
|
+
try {
|
1920
|
+
var t = this.engine.getItem(this._createValidKey(n));
|
1921
|
+
return t === null ? null : Ri.parse(t);
|
1922
|
+
} catch {
|
1923
|
+
return null;
|
1924
|
+
}
|
1925
|
+
}, be.prototype.getOriginalEngine = function() {
|
1926
|
+
return this.originalEngine;
|
1927
|
+
}, be.prototype.remove = function(n) {
|
1928
|
+
this.engine.removeItem(this._createValidKey(n));
|
1929
|
+
}, be.prototype._createValidKey = function(n) {
|
1930
|
+
var t, e = this.name, r = this.id;
|
1931
|
+
return Iu(this.keys).length ? (Si(function(i) {
|
1932
|
+
i === n && (t = [e, r, n].join("."));
|
1933
|
+
}, this.keys), t) : [e, r, n].join(".");
|
1934
|
+
}, be.prototype._swapEngine = function() {
|
1935
|
+
var n = this;
|
1936
|
+
Si(function(t) {
|
1937
|
+
var e = n.get(t);
|
1938
|
+
Ci.setItem([n.name, n.id, t].join("."), e), n.remove(t);
|
1939
|
+
}, this.keys), this.engine = Ci;
|
1940
|
+
};
|
1941
|
+
var bu = be, Eu = Fr, po = { setTimeout: function(n, t) {
|
1942
|
+
return window.setTimeout(n, t);
|
1943
|
+
}, clearTimeout: function(n) {
|
1944
|
+
return window.clearTimeout(n);
|
1945
|
+
}, Date: window.Date }, Ue = po, Hn = { ASAP: 1, RESCHEDULE: 2, ABANDON: 3 };
|
1946
|
+
function Lt() {
|
1947
|
+
this.tasks = {}, this.nextId = 1;
|
1948
|
+
}
|
1949
|
+
Lt.prototype.now = function() {
|
1950
|
+
return +new Ue.Date();
|
1951
|
+
}, Lt.prototype.run = function(n, t, e) {
|
1952
|
+
var r = this.nextId++;
|
1953
|
+
return this.tasks[r] = Ue.setTimeout(this._handle(r, n, t, e || Hn.ASAP), t), r;
|
1954
|
+
}, Lt.prototype.cancel = function(n) {
|
1955
|
+
this.tasks[n] && (Ue.clearTimeout(this.tasks[n]), delete this.tasks[n]);
|
1956
|
+
}, Lt.prototype.cancelAll = function() {
|
1957
|
+
Eu(Ue.clearTimeout, this.tasks), this.tasks = {};
|
1958
|
+
}, Lt.prototype._handle = function(n, t, e, r) {
|
1959
|
+
var i = this, s = i.now();
|
1960
|
+
return function() {
|
1961
|
+
if (delete i.tasks[n], !(r >= Hn.RESCHEDULE && s + 2 * e < i.now()))
|
1962
|
+
return t();
|
1963
|
+
r === Hn.RESCHEDULE && i.run(t, e, r);
|
1964
|
+
};
|
1965
|
+
}, Lt.setClock = function(n) {
|
1966
|
+
Ue = n;
|
1967
|
+
}, Lt.resetClock = function() {
|
1968
|
+
Ue = po;
|
1969
|
+
}, Lt.Modes = Hn;
|
1970
|
+
var ku = Lt, ln = Nr.v4, Tr = bu, Ar = Fr, qe = ku, Ou = Mr("localstorage-retry");
|
1971
|
+
function Ir(n, t) {
|
1972
|
+
return function() {
|
1973
|
+
return n.apply(t, arguments);
|
1974
|
+
};
|
1975
|
+
}
|
1976
|
+
function Q(n, t, e) {
|
1977
|
+
typeof t == "function" && (e = t), this.name = n, this.id = ln(), this.fn = e, this.maxItems = t.maxItems || 1 / 0, this.maxAttempts = t.maxAttempts || 1 / 0, this.backoff = { MIN_RETRY_DELAY: t.minRetryDelay || 1e3, MAX_RETRY_DELAY: t.maxRetryDelay || 3e4, FACTOR: t.backoffFactor || 2, JITTER: t.backoffJitter || 0 }, this.timeouts = { ACK_TIMER: 1e3, RECLAIM_TIMER: 3e3, RECLAIM_TIMEOUT: 1e4, RECLAIM_WAIT: 500 }, this.keys = { IN_PROGRESS: "inProgress", QUEUE: "queue", RECLAIM_START: "reclaimStart", RECLAIM_END: "reclaimEnd", ACK: "ack" }, this._schedule = new qe(), this._processId = 0, this._store = new Tr(this.name, this.id, this.keys), this._store.set(this.keys.IN_PROGRESS, {}), this._store.set(this.keys.QUEUE, []), this._ack = Ir(this._ack, this), this._checkReclaim = Ir(this._checkReclaim, this), this._processHead = Ir(this._processHead, this), this._running = !1;
|
1978
|
+
}
|
1979
|
+
Gi(Q.prototype), Q.prototype.start = function() {
|
1980
|
+
this._running && this.stop(), this._running = !0, this._ack(), this._checkReclaim(), this._processHead();
|
1981
|
+
}, Q.prototype.stop = function() {
|
1982
|
+
this._schedule.cancelAll(), this._running = !1;
|
1983
|
+
}, Q.prototype.shouldRetry = function(n, t) {
|
1984
|
+
return !(t > this.maxAttempts);
|
1985
|
+
}, Q.prototype.getDelay = function(n) {
|
1986
|
+
var t = this.backoff.MIN_RETRY_DELAY * Math.pow(this.backoff.FACTOR, n);
|
1987
|
+
if (this.backoff.JITTER) {
|
1988
|
+
var e = Math.random(), r = Math.floor(e * this.backoff.JITTER * t);
|
1989
|
+
Math.floor(10 * e) < 5 ? t -= r : t += r;
|
1990
|
+
}
|
1991
|
+
return Number(Math.min(t, this.backoff.MAX_RETRY_DELAY).toPrecision(1));
|
1992
|
+
}, Q.prototype.addItem = function(n) {
|
1993
|
+
this._enqueue({ item: n, attemptNumber: 0, time: this._schedule.now(), id: ln() });
|
1994
|
+
}, Q.prototype.requeue = function(n, t, e, r) {
|
1995
|
+
this.shouldRetry(n, t, e) ? this._enqueue({ item: n, attemptNumber: t, time: this._schedule.now() + this.getDelay(t), id: r || ln() }) : this.emit("discard", n, t);
|
1996
|
+
}, Q.prototype._enqueue = function(n) {
|
1997
|
+
var t = this._store.get(this.keys.QUEUE) || [];
|
1998
|
+
(t = t.slice(-(this.maxItems - 1))).push(n), t = t.sort(function(e, r) {
|
1999
|
+
return e.time - r.time;
|
2000
|
+
}), this._store.set(this.keys.QUEUE, t), this._running && this._processHead();
|
2001
|
+
}, Q.prototype._processHead = function() {
|
2002
|
+
var n = this, t = this._store;
|
2003
|
+
this._schedule.cancel(this._processId);
|
2004
|
+
var e = t.get(this.keys.QUEUE) || [], r = t.get(this.keys.IN_PROGRESS) || {}, i = this._schedule.now(), s = [];
|
2005
|
+
function u(d, l) {
|
2006
|
+
s.push({ item: d.item, done: function(p, m) {
|
2007
|
+
var h = t.get(n.keys.IN_PROGRESS) || {};
|
2008
|
+
delete h[l], t.set(n.keys.IN_PROGRESS, h), n.emit("processed", p, m, d.item), p && n.requeue(d.item, d.attemptNumber + 1, p, d.id);
|
2009
|
+
} });
|
2010
|
+
}
|
2011
|
+
for (var a = Object.keys(r).length; e.length && e[0].time <= i && a++ < n.maxItems; ) {
|
2012
|
+
var c = e.shift(), f = ln();
|
2013
|
+
r[f] = { item: c.item, attemptNumber: c.attemptNumber, time: n._schedule.now() }, u(c, f);
|
2014
|
+
}
|
2015
|
+
t.set(this.keys.QUEUE, e), t.set(this.keys.IN_PROGRESS, r), Ar(function(d) {
|
2016
|
+
try {
|
2017
|
+
n.fn(d.item, d.done);
|
2018
|
+
} catch (l) {
|
2019
|
+
Ou("Process function threw error: " + l);
|
2020
|
+
}
|
2021
|
+
}, s), e = t.get(this.keys.QUEUE) || [], this._schedule.cancel(this._processId), e.length > 0 && (this._processId = this._schedule.run(this._processHead, e[0].time - i, qe.Modes.ASAP));
|
2022
|
+
}, Q.prototype._ack = function() {
|
2023
|
+
this._store.set(this.keys.ACK, this._schedule.now()), this._store.set(this.keys.RECLAIM_START, null), this._store.set(this.keys.RECLAIM_END, null), this._schedule.run(this._ack, this.timeouts.ACK_TIMER, qe.Modes.ASAP);
|
2024
|
+
}, Q.prototype._checkReclaim = function() {
|
2025
|
+
var n = this;
|
2026
|
+
Ar(function(t) {
|
2027
|
+
t.id !== n.id && (n._schedule.now() - t.get(n.keys.ACK) < n.timeouts.RECLAIM_TIMEOUT || function(e) {
|
2028
|
+
e.set(n.keys.RECLAIM_START, n.id), e.set(n.keys.ACK, n._schedule.now()), n._schedule.run(function() {
|
2029
|
+
e.get(n.keys.RECLAIM_START) === n.id && (e.set(n.keys.RECLAIM_END, n.id), n._schedule.run(function() {
|
2030
|
+
e.get(n.keys.RECLAIM_END) === n.id && e.get(n.keys.RECLAIM_START) === n.id && n._reclaim(e.id);
|
2031
|
+
}, n.timeouts.RECLAIM_WAIT, qe.Modes.ABANDON));
|
2032
|
+
}, n.timeouts.RECLAIM_WAIT, qe.Modes.ABANDON);
|
2033
|
+
}(t));
|
2034
|
+
}, function(t) {
|
2035
|
+
for (var e = [], r = n._store.getOriginalEngine(), i = 0; i < r.length; i++) {
|
2036
|
+
var s = r.key(i);
|
2037
|
+
if (s !== null) {
|
2038
|
+
var u = s.split(".");
|
2039
|
+
u.length === 3 && u[0] === t && u[2] === "ack" && e.push(new Tr(t, u[1], n.keys));
|
2040
|
+
}
|
2041
|
+
}
|
2042
|
+
return e;
|
2043
|
+
}(this.name)), this._schedule.run(this._checkReclaim, this.timeouts.RECLAIM_TIMER, qe.Modes.RESCHEDULE);
|
2044
|
+
}, Q.prototype._reclaim = function(n) {
|
2045
|
+
var t = this, e = this, r = new Tr(this.name, n, this.keys), i = { queue: this._store.get(this.keys.QUEUE) || [] }, s = { inProgress: r.get(this.keys.IN_PROGRESS) || {}, queue: r.get(this.keys.QUEUE) || [] }, u = [], a = function(c, f) {
|
2046
|
+
Ar(function(d) {
|
2047
|
+
var l = d.id || ln();
|
2048
|
+
u.indexOf(l) >= 0 ? e.emit("duplication", d.item, d.attemptNumber) : (i.queue.push({ item: d.item, attemptNumber: d.attemptNumber + f, time: e._schedule.now(), id: l }), u.push(l));
|
2049
|
+
}, c);
|
2050
|
+
};
|
2051
|
+
a(s.queue, 0), a(s.inProgress, 1), i.queue = i.queue.sort(function(c, f) {
|
2052
|
+
return c.time - f.time;
|
2053
|
+
}), this._store.set(this.keys.QUEUE, i.queue), setTimeout(function() {
|
2054
|
+
r.remove(t.keys.IN_PROGRESS), setTimeout(function() {
|
2055
|
+
r.remove(t.keys.QUEUE), setTimeout(function() {
|
2056
|
+
r.remove(t.keys.RECLAIM_START), setTimeout(function() {
|
2057
|
+
r.remove(t.keys.RECLAIM_END), setTimeout(function() {
|
2058
|
+
r.remove(t.keys.ACK);
|
2059
|
+
}, 10);
|
2060
|
+
}, 10);
|
2061
|
+
}, 10);
|
2062
|
+
}, 10);
|
2063
|
+
}, 10), this._processHead();
|
2064
|
+
};
|
2065
|
+
var go = Bt(Q), Ti = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2, maxAttempts: 10, maxItems: 100 }, _u = function() {
|
2066
|
+
function n() {
|
2067
|
+
B(this, n), this.url = "", this.writeKey = "";
|
2068
|
+
}
|
2069
|
+
return F(n, [{ key: "init", value: function(t, e, r) {
|
2070
|
+
var i = this;
|
2071
|
+
this.url = e, this.writeKey = t, r && Qe(Ti, r), this.payloadQueue = new go("rudder", Ti, function(s, u) {
|
2072
|
+
s.message.sentAt = kr(), i.processQueueElement(s.url, s.headers, s.message, 1e4, function(a, c) {
|
2073
|
+
if (a)
|
2074
|
+
return u(a);
|
2075
|
+
u(null, c);
|
2076
|
+
});
|
2077
|
+
}), this.payloadQueue.start();
|
2078
|
+
} }, { key: "processQueueElement", value: function(t, e, r, i, s) {
|
2079
|
+
try {
|
2080
|
+
var u = new XMLHttpRequest();
|
2081
|
+
for (var a in u.open("POST", t, !0), e)
|
2082
|
+
u.setRequestHeader(a, e[a]);
|
2083
|
+
u.timeout = i, u.ontimeout = s, u.onerror = s, u.onreadystatechange = function() {
|
2084
|
+
if (u.readyState === 4)
|
2085
|
+
if (u.status === 429 || u.status >= 500 && u.status < 600) {
|
2086
|
+
var c = "".concat("Request failed with status:", ' "').concat(u.status, '" status text: "').concat(u.statusText, '" for URL: "').concat(t, '"'), f = new Error(c);
|
2087
|
+
M(f), s(f);
|
2088
|
+
} else
|
2089
|
+
s(null, u.status);
|
2090
|
+
}, u.send(Ce(r, !0));
|
2091
|
+
} catch (c) {
|
2092
|
+
s(c);
|
2093
|
+
}
|
2094
|
+
} }, { key: "enqueue", value: function(t, e) {
|
2095
|
+
var r = { "Content-Type": "application/json", Authorization: "Basic ".concat(btoa("".concat(this.writeKey, ":"))), AnonymousId: btoa(t.anonymousId) };
|
2096
|
+
this.payloadQueue.addItem({ url: "".concat(this.url, "/v1/").concat(e), headers: r, message: t });
|
2097
|
+
} }]), n;
|
2098
|
+
}(), Cu = "queue", Su = 64e3, Ru = function() {
|
2099
|
+
function n() {
|
2100
|
+
B(this, n), this.storage = cn, this.maxItems = 10, this.flushQueueTimeOut = void 0, this.timeOutActive = !1, this.flushQueueTimeOutInterval = 6e5, this.url = "", this.writekey = "", this.queueName = "".concat(Cu, ".").concat(Date.now());
|
2101
|
+
}
|
2102
|
+
return F(n, [{ key: "sendQueueDataForBeacon", value: function() {
|
2103
|
+
this.sendDataFromQueueAndDestroyQueue();
|
2104
|
+
} }, { key: "init", value: function(t, e, r) {
|
2105
|
+
this.url = e, this.writekey = t, r.maxItems && (this.maxItems = r.maxItems), r.flushQueueInterval && (this.flushQueueTimeOutInterval = r.flushQueueInterval);
|
2106
|
+
var i = this.sendQueueDataForBeacon.bind(this);
|
2107
|
+
window.addEventListener("unload", i);
|
2108
|
+
} }, { key: "getQueue", value: function() {
|
2109
|
+
return this.storage.get(this.queueName);
|
2110
|
+
} }, { key: "setQueue", value: function(t) {
|
2111
|
+
this.storage.set(this.queueName, t);
|
2112
|
+
} }, { key: "enqueue", value: function(t) {
|
2113
|
+
var e = this.getQueue() || [];
|
2114
|
+
(e = e.slice(-(this.maxItems - 1))).push(t);
|
2115
|
+
var r = e.slice(0);
|
2116
|
+
Ce({ batch: r }, !0).length > Su && (r = e.slice(0, e.length - 1), this.flushQueue(r), (e = this.getQueue()).push(t)), this.setQueue(e), this.setTimer(), e.length === this.maxItems && this.flushQueue(r);
|
2117
|
+
} }, { key: "sendDataFromQueueAndDestroyQueue", value: function() {
|
2118
|
+
this.sendDataFromQueue(), this.storage.remove(this.queueName);
|
2119
|
+
} }, { key: "sendDataFromQueue", value: function() {
|
2120
|
+
var t = this.getQueue();
|
2121
|
+
if (t && t.length > 0) {
|
2122
|
+
var e = t.slice(0, t.length);
|
2123
|
+
this.flushQueue(e);
|
2124
|
+
}
|
2125
|
+
} }, { key: "flushQueue", value: function(t) {
|
2126
|
+
t.forEach(function(s) {
|
2127
|
+
s.sentAt = (/* @__PURE__ */ new Date()).toISOString();
|
2128
|
+
});
|
2129
|
+
var e = Ce({ batch: t }, !0), r = new Blob([e], { type: "text/plain" }), i = "".concat(this.url, "?writeKey=").concat(this.writekey);
|
2130
|
+
try {
|
2131
|
+
typeof navigator.sendBeacon != "function" && M(new Error("Beacon API is not supported by browser")), navigator.sendBeacon(i, r) || M(new Error("Unable to queue data to browser's beacon queue"));
|
2132
|
+
} catch (s) {
|
2133
|
+
s.message = "".concat(s.message, " - While sending Beacon data to: ").concat(i), M(s);
|
2134
|
+
}
|
2135
|
+
this.setQueue([]), this.clearTimer();
|
2136
|
+
} }, { key: "setTimer", value: function() {
|
2137
|
+
this.timeOutActive || (this.flushQueueTimeOut = setTimeout(this.sendDataFromQueue.bind(this), this.flushQueueTimeOutInterval), this.timeOutActive = !0);
|
2138
|
+
} }, { key: "clearTimer", value: function() {
|
2139
|
+
this.timeOutActive && (clearTimeout(this.flushQueueTimeOut), this.timeOutActive = !1);
|
2140
|
+
} }]), n;
|
2141
|
+
}(), Tu = function() {
|
2142
|
+
function n() {
|
2143
|
+
B(this, n), this.queue = void 0;
|
2144
|
+
}
|
2145
|
+
return F(n, [{ key: "initialize", value: function(t, e, r) {
|
2146
|
+
var i = {}, s = dn(e);
|
2147
|
+
r && r.useBeacon && navigator.sendBeacon ? (r.beaconQueueOptions && r.beaconQueueOptions != null && x(r.beaconQueueOptions) === "object" && (i = r.beaconQueueOptions), s = "".concat(s, "/beacon/v1/batch"), this.queue = new Ru()) : (r && r.useBeacon && D.info("[EventRepository] sendBeacon feature not available in this browser :: fallback to XHR"), r && r.queueOptions && r.queueOptions != null && x(r.queueOptions) === "object" && (i = r.queueOptions), this.queue = new _u()), this.queue.init(t, s, i);
|
2148
|
+
} }, { key: "enqueue", value: function(t, e) {
|
2149
|
+
var r = t.getElementContent();
|
2150
|
+
r.originalTimestamp = r.originalTimestamp || kr(), r.sentAt = kr(), Ce(r, !0).length > 32e3 && D.error("[EventRepository] enqueue:: message length greater 32 Kb ", r), this.queue.enqueue(r, e);
|
2151
|
+
} }]), n;
|
2152
|
+
}(), wu = new Tu(), wi = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2, maxAttempts: 1 / 0 }, Pu = function() {
|
2153
|
+
function n() {
|
2154
|
+
B(this, n), this.callback = void 0, this.processQueueElements = !1;
|
2155
|
+
}
|
2156
|
+
return F(n, [{ key: "init", value: function(t, e) {
|
2157
|
+
var r = this;
|
2158
|
+
t && Qe(wi, t), e && (this.callback = e), this.payloadQueue = new go("rs_events", wi, function(i, s) {
|
2159
|
+
r.processQueueElement(i.type, i.rudderElement, function(u, a) {
|
2160
|
+
if (u)
|
2161
|
+
return s(u);
|
2162
|
+
s(null, a);
|
2163
|
+
});
|
2164
|
+
}), this.payloadQueue.start();
|
2165
|
+
} }, { key: "activateProcessor", value: function() {
|
2166
|
+
this.processQueueElements = !0;
|
2167
|
+
} }, { key: "processQueueElement", value: function(t, e, r) {
|
2168
|
+
try {
|
2169
|
+
this.processQueueElements ? (Object.setPrototypeOf(e, fo.prototype), this.callback(t, e), r(null)) : r(new Error("The queue elements are not ready to be processed yet"));
|
2170
|
+
} catch (i) {
|
2171
|
+
r(i);
|
2172
|
+
}
|
2173
|
+
} }, { key: "enqueue", value: function(t, e) {
|
2174
|
+
this.payloadQueue.addItem({ type: t, rudderElement: e });
|
2175
|
+
} }]), n;
|
2176
|
+
}(), Vn = function(n, t) {
|
2177
|
+
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
2178
|
+
try {
|
2179
|
+
var r = document.getElementById(n);
|
2180
|
+
if (r)
|
2181
|
+
return;
|
2182
|
+
var i = document.createElement("script");
|
2183
|
+
i.src = t, i.async = e.async === void 0 || e.async, i.type = "text/javascript", i.id = n, e.skipDatasetAttributes !== !0 && (i.setAttribute("data-loader", "RS_JS_SDK"), e.isNonNativeSDK !== void 0 && i.setAttribute("data-isNonNativeSDK", e.isNonNativeSDK));
|
2184
|
+
var s = document.getElementsByTagName("head");
|
2185
|
+
if (s.length > 0)
|
2186
|
+
s[0].insertBefore(i, s[0].firstChild);
|
2187
|
+
else {
|
2188
|
+
var u = document.getElementsByTagName("script")[0];
|
2189
|
+
u.parentNode.insertBefore(i, u);
|
2190
|
+
}
|
2191
|
+
} catch (a) {
|
2192
|
+
M(a);
|
2193
|
+
}
|
2194
|
+
}, Du = function() {
|
2195
|
+
return navigator && navigator.language;
|
2196
|
+
}, Lu = function() {
|
2197
|
+
return navigator && navigator.userAgent;
|
2198
|
+
};
|
2199
|
+
function xu(n) {
|
2200
|
+
return decodeURIComponent(atob(n).split("").map(function(t) {
|
2201
|
+
return "%".concat("00".concat(t.charCodeAt(0).toString(16)).slice(-2));
|
2202
|
+
}).join(""));
|
2203
|
+
}
|
2204
|
+
function Mu() {
|
2205
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
2206
|
+
return xu(n = n.endsWith("..") ? n.substr(0, n.length - 2) : n);
|
2207
|
+
}
|
2208
|
+
var Nu = /^[a-zA-Z0-9\-_.]+$/;
|
2209
|
+
function Bu(n, t, e, r) {
|
2210
|
+
var i = function(a, c) {
|
2211
|
+
return [a, (/* @__PURE__ */ new Date()).getTimezoneOffset(), c].join("*");
|
2212
|
+
}(e, r), s = t || 0, u = function(a) {
|
2213
|
+
for (var c = function() {
|
2214
|
+
for (var l, p = [], m = 0; m < 256; m++) {
|
2215
|
+
l = m;
|
2216
|
+
for (var h = 0; h < 8; h++)
|
2217
|
+
l = 1 & l ? 3988292384 ^ l >>> 1 : l >>> 1;
|
2218
|
+
p[m] = l;
|
2219
|
+
}
|
2220
|
+
return p;
|
2221
|
+
}(), f = -1, d = 0; d < a.length; d++)
|
2222
|
+
f = f >>> 8 ^ c[255 & (f ^ a.charCodeAt(d))];
|
2223
|
+
return (-1 ^ f) >>> 0;
|
2224
|
+
}([i, Math.floor(Date.now() / 6e4) - s, n].join("*"));
|
2225
|
+
return u.toString(36);
|
2226
|
+
}
|
2227
|
+
function Fu(n) {
|
2228
|
+
var t = function(i) {
|
2229
|
+
var s = i.split("*"), u = s.length % 2 == 0;
|
2230
|
+
return s.length < 4 || !u || Number(s.shift()) !== 1 ? null : { checksum: s.shift(), serializedIds: s.join("*") };
|
2231
|
+
}(n);
|
2232
|
+
if (!t)
|
2233
|
+
return null;
|
2234
|
+
var e = t.checksum, r = t.serializedIds;
|
2235
|
+
return function(i, s) {
|
2236
|
+
for (var u = Lu(), a = Du(), c = 0; c <= 1; c += 1)
|
2237
|
+
if (Bu(i, c, u, a) === s)
|
2238
|
+
return !0;
|
2239
|
+
return !1;
|
2240
|
+
}(r, e) ? function(i) {
|
2241
|
+
for (var s = {}, u = i.split("*"), a = 0; a < u.length; a += 2) {
|
2242
|
+
var c = u[a];
|
2243
|
+
if (Nu.test(c)) {
|
2244
|
+
var f = Mu(u[a + 1]);
|
2245
|
+
s[c] = f;
|
2246
|
+
}
|
2247
|
+
}
|
2248
|
+
return s;
|
2249
|
+
}(r) : null;
|
2250
|
+
}
|
2251
|
+
var xt = { HS: "HubSpot", GA: "GA", HOTJAR: "Hotjar", GOOGLEADS: "GoogleAds", VWO: "VWO", GTM: "GoogleTagManager", BRAZE: "Braze", INTERCOM: "INTERCOM", KEEN: "Keen", KISSMETRICS: "Kissmetrics", CUSTOMERIO: "CustomerIO", CHARTBEAT: "Chartbeat", COMSCORE: "Comscore", FACEBOOK_PIXEL: "FacebookPixel", LOTAME: "Lotame", OPTIMIZELY: "Optimizely", BUGSNAG: "Bugsnag", FULLSTORY: "Fullstory", TVSQUARED: "TVSquared", GA4: "GA4", MOENGAGE: "MoEngage", AM: "Amplitude", PENDO: "Pendo", LYTICS: "Lytics", APPCUES: "Appcues", POSTHOG: "Posthog", KLAVIYO: "Klaviyo", CLEVERTAP: "Clevertap", BINGADS: "BingAds", PINTEREST_TAG: "PinterestTag", ADOBE_ANALYTICS: "AdobeAnalytics", LINKEDIN_INSIGHT_TAG: "LinkedInInsightTag", REDDIT_PIXEL: "RedditPixel", DRIP: "Drip", HEAP: "Heap", CRITEO: "Criteo", MP: "Mixpanel", QUALTRICS: "Qualtrics", PROFITWELL: "ProfitWell", SENTRY: "Sentry", QUANTUMMETRIC: "QuantumMetric", SNAP_PIXEL: "SnapPixel", POST_AFFILIATE_PRO: "PostAffiliatePro", GOOGLE_OPTIMIZE: "GoogleOptimize", LAUNCHDARKLY: "LaunchDarkly", GA360: "GA360", ADROLL: "Adroll", DCM_FLOODLIGHT: "DCMFloodlight", MATOMO: "Matomo", VERO: "Vero", MOUSEFLOW: "Mouseflow", ROCKERBOX: "Rockerbox", CONVERTFLOW: "ConvertFlow", SNAPENGAGE: "SnapEngage", LIVECHAT: "LiveChat", SHYNET: "Shynet", WOOPRA: "Woopra", ROLLBAR: "RollBar", QUORA_PIXEL: "QuoraPixel", JUNE: "June", ENGAGE: "Engage", ITERABLE: "Iterable", YANDEX_METRICA: "YandexMetrica", REFINER: "Refiner", QUALAROO: "Qualaroo", PODSIGHTS: "Podsights", AXEPTIO: "Axeptio", SATISMETER: "Satismeter", MICROSOFT_CLARITY: "MicrosoftClarity", SENDINBLUE: "Sendinblue", OLARK: "Olark", LEMNISK: "Lemnisk" }, Gu = function() {
|
2252
|
+
function n() {
|
2253
|
+
var t = this;
|
2254
|
+
if (B(this, n), this.isInitialized = !1, window.OneTrust && window.OnetrustActiveGroups) {
|
2255
|
+
this.userSetConsentGroupIds = window.OnetrustActiveGroups.split(",").filter(function(r) {
|
2256
|
+
return r;
|
2257
|
+
});
|
2258
|
+
var e = window.OneTrust.GetDomainData().Groups;
|
2259
|
+
this.userSetConsentGroupNames = [], this.userDeniedConsentGroupIds = [], e.forEach(function(r) {
|
2260
|
+
var i = r.CustomGroupId, s = r.GroupName;
|
2261
|
+
t.userSetConsentGroupIds.includes(i) ? t.userSetConsentGroupNames.push(s.toUpperCase().trim()) : t.userDeniedConsentGroupIds.push(i);
|
2262
|
+
}), this.userSetConsentGroupIds = this.userSetConsentGroupIds.map(function(r) {
|
2263
|
+
return r.toUpperCase();
|
2264
|
+
}), this.isInitialized = !0;
|
2265
|
+
} else
|
2266
|
+
D.error("OneTrust resources are not accessible.");
|
2267
|
+
}
|
2268
|
+
return F(n, [{ key: "isEnabled", value: function(t) {
|
2269
|
+
var e = this;
|
2270
|
+
try {
|
2271
|
+
if (!this.isInitialized)
|
2272
|
+
return !0;
|
2273
|
+
var r = t.oneTrustCookieCategories;
|
2274
|
+
if (!r)
|
2275
|
+
return !0;
|
2276
|
+
var i = r.map(function(s) {
|
2277
|
+
return s.oneTrustCookieCategory;
|
2278
|
+
}).filter(function(s) {
|
2279
|
+
return s;
|
2280
|
+
});
|
2281
|
+
return i.every(function(s) {
|
2282
|
+
return e.userSetConsentGroupIds.includes(s.toUpperCase().trim()) || e.userSetConsentGroupNames.includes(s.toUpperCase().trim());
|
2283
|
+
});
|
2284
|
+
} catch (s) {
|
2285
|
+
return D.error("Error during onetrust cookie consent management ".concat(s)), !0;
|
2286
|
+
}
|
2287
|
+
} }, { key: "getDeniedList", value: function() {
|
2288
|
+
return this.isInitialized ? this.userDeniedConsentGroupIds : [];
|
2289
|
+
} }]), n;
|
2290
|
+
}(), Uu = function() {
|
2291
|
+
function n() {
|
2292
|
+
B(this, n);
|
2293
|
+
}
|
2294
|
+
return F(n, null, [{ key: "initialize", value: function(t) {
|
2295
|
+
var e;
|
2296
|
+
return t != null && (e = t.oneTrust) !== null && e !== void 0 && e.enabled ? new Gu() : null;
|
2297
|
+
} }]), n;
|
2298
|
+
}(), Hu = function() {
|
2299
|
+
function n() {
|
2300
|
+
B(this, n), this.storage = Wn, this.timeout = 18e5, this.sessionInfo = this.storage.getSessionInfo() || { autoTrack: !0 };
|
2301
|
+
}
|
2302
|
+
return F(n, [{ key: "initialize", value: function(t) {
|
2303
|
+
try {
|
2304
|
+
var e;
|
2305
|
+
if (this.sessionInfo.autoTrack = !((t == null || (e = t.sessions) === null || e === void 0 ? void 0 : e.autoTrack) === !1 || this.sessionInfo.manualTrack), t != null && t.sessions && !isNaN(t.sessions.timeout)) {
|
2306
|
+
var r = t.sessions.timeout;
|
2307
|
+
r === 0 && (D.warn("[Session]:: Provided timeout value 0 will disable the auto session tracking feature."), this.sessionInfo.autoTrack = !1), r > 0 && r < 1e4 && D.warn('[Session]:: It is not advised to set "timeout" less than 10 seconds'), this.timeout = r;
|
2308
|
+
}
|
2309
|
+
this.sessionInfo.autoTrack ? this.startAutoTracking() : this.sessionInfo.autoTrack !== !1 || this.sessionInfo.manualTrack || this.end();
|
2310
|
+
} catch (i) {
|
2311
|
+
M(i);
|
2312
|
+
}
|
2313
|
+
} }, { key: "isValidSession", value: function(t) {
|
2314
|
+
return t <= this.sessionInfo.expiresAt;
|
2315
|
+
} }, { key: "generateSessionId", value: function() {
|
2316
|
+
return Date.now();
|
2317
|
+
} }, { key: "startAutoTracking", value: function() {
|
2318
|
+
var t = Date.now();
|
2319
|
+
this.isValidSession(t) || (this.sessionInfo = {}, this.sessionInfo.id = t, this.sessionInfo.expiresAt = t + this.timeout, this.sessionInfo.sessionStart = !0, this.sessionInfo.autoTrack = !0), this.storage.setSessionInfo(this.sessionInfo);
|
2320
|
+
} }, { key: "validateSessionId", value: function(t) {
|
2321
|
+
if (typeof t == "number" && t % 1 == 0) {
|
2322
|
+
var e;
|
2323
|
+
if (!(((e = t) ? e.toString().length : 0) < 10))
|
2324
|
+
return t;
|
2325
|
+
D.error('[Session]:: "sessionId" should at least be "'.concat(10, '" digits long'));
|
2326
|
+
} else
|
2327
|
+
D.error('[Session]:: "sessionId" should only be a positive integer');
|
2328
|
+
} }, { key: "start", value: function(t) {
|
2329
|
+
var e = t ? this.validateSessionId(t) : this.generateSessionId();
|
2330
|
+
this.sessionInfo = { id: e || this.generateSessionId(), sessionStart: !0, manualTrack: !0 }, this.storage.setSessionInfo(this.sessionInfo);
|
2331
|
+
} }, { key: "getSessionId", value: function() {
|
2332
|
+
return this.sessionInfo.autoTrack && this.isValidSession(Date.now()) || this.sessionInfo.manualTrack ? this.sessionInfo.id : null;
|
2333
|
+
} }, { key: "end", value: function() {
|
2334
|
+
this.sessionInfo = {}, this.storage.removeSessionInfo();
|
2335
|
+
} }, { key: "getSessionInfo", value: function() {
|
2336
|
+
var t = {};
|
2337
|
+
if (this.sessionInfo.autoTrack || this.sessionInfo.manualTrack) {
|
2338
|
+
if (this.sessionInfo.autoTrack) {
|
2339
|
+
var e = Date.now();
|
2340
|
+
this.isValidSession(e) ? this.sessionInfo.expiresAt = e + this.timeout : this.startAutoTracking();
|
2341
|
+
}
|
2342
|
+
this.sessionInfo.sessionStart && (t.sessionStart = !0, this.sessionInfo.sessionStart = !1), t.sessionId = this.sessionInfo.id, this.storage.setSessionInfo(this.sessionInfo);
|
2343
|
+
}
|
2344
|
+
return t;
|
2345
|
+
} }, { key: "reset", value: function() {
|
2346
|
+
var t = this.sessionInfo, e = t.manualTrack;
|
2347
|
+
t.autoTrack ? (this.sessionInfo = {}, this.startAutoTracking()) : e && this.start();
|
2348
|
+
} }]), n;
|
2349
|
+
}(), ju = new Hu(), Pi = ["integrations", "anonymousId", "originalTimestamp"], qu = ["Bugsnag", "bugsnag"], wr = "{{{{__RS_BUGSNAG_API_KEY__}}}}", Ku = ["rudder-analytics.min.js", "rudder-analytics-staging.min.js", "rudder-analytics.js"].concat(ce(Object.keys(xt).map(function(n) {
|
2350
|
+
return "".concat(xt[n], ".min.js");
|
2351
|
+
})), ce(Object.keys(xt).map(function(n) {
|
2352
|
+
return "".concat(xt[n], "-staging.min.js");
|
2353
|
+
})), ce(Object.keys(xt).map(function(n) {
|
2354
|
+
return "".concat(xt[n], ".js");
|
2355
|
+
}))), Di = function(n) {
|
2356
|
+
var t = n && n._client && n._client._notifier && n._client._notifier.version;
|
2357
|
+
if (!t) {
|
2358
|
+
var e = n({ apiKey: wr, releaseStage: "version-test", beforeSend: function() {
|
2359
|
+
return !1;
|
2360
|
+
} });
|
2361
|
+
t = e.notifier && e.notifier.version, e = void 0;
|
2362
|
+
}
|
2363
|
+
return t && t.charAt(0) === "6";
|
2364
|
+
}, zu = function(n) {
|
2365
|
+
qu.every(function(t) {
|
2366
|
+
return !function(e, r) {
|
2367
|
+
if (e == null)
|
2368
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
2369
|
+
return Object.prototype.hasOwnProperty.call(Object(e), r);
|
2370
|
+
}(window, t);
|
2371
|
+
}) && Vn(n, "https://d2wy8f7a9ursnm.cloudfront.net/v6/bugsnag.min.js", { isNonNativeSDK: "true", skipDatasetAttributes: !0 });
|
2372
|
+
}, Qu = function() {
|
2373
|
+
function n(t, e) {
|
2374
|
+
B(this, n), this.pluginName = "rs-bugsnag", this.sourceId = t, this.onClientReady = e, this.initClientOnLibReadyInterval = void 0, this.init();
|
2375
|
+
}
|
2376
|
+
return F(n, [{ key: "init", value: function() {
|
2377
|
+
var t = this;
|
2378
|
+
if ((!window.rudderanalytics || !window.rudderanalytics.errorReporting) && !wr.match(/{{.+}}/)) {
|
2379
|
+
zu(this.pluginName);
|
2380
|
+
var e = window.bugsnag;
|
2381
|
+
typeof e != "function" ? (this.initClientOnLibReadyInterval = setInterval(function() {
|
2382
|
+
var r = window.bugsnag;
|
2383
|
+
typeof r == "function" && (Di(r) && t.initClient(), clearInterval(t.initClientOnLibReadyInterval));
|
2384
|
+
}, 100), setTimeout(function() {
|
2385
|
+
clearInterval(t.initClientOnLibReadyInterval);
|
2386
|
+
}, 1e4)) : Di(e) && this.initClient();
|
2387
|
+
}
|
2388
|
+
} }, { key: "initClient", value: function() {
|
2389
|
+
var t, e = window.bugsnag;
|
2390
|
+
this.client = e({ apiKey: wr, appVersion: "2.34.0", metaData: { SDK: { name: "JS", installType: "npm" } }, beforeSend: this.onError(), autoTrackSessions: !1, collectUserIp: !1, enabledBreadcrumbTypes: ["error", "log", "user"], maxEvents: 100, releaseStage: (t = window.location.hostname, t && ["www.rs-unit-test-host.com", "localhost", "127.0.0.1", "[::1]"].includes(t) ? "development" : "production") }), this.onClientReady();
|
2391
|
+
} }, { key: "onError", value: function() {
|
2392
|
+
var t = this.sourceId;
|
2393
|
+
return function(e) {
|
2394
|
+
try {
|
2395
|
+
return !!function(r) {
|
2396
|
+
var i = hn(r, "stacktrace.0.file");
|
2397
|
+
if (!i || typeof i != "string")
|
2398
|
+
return !1;
|
2399
|
+
var s = i.substring(i.lastIndexOf("/") + 1);
|
2400
|
+
return Ku.includes(s);
|
2401
|
+
}(e) && (function(r, i) {
|
2402
|
+
r.updateMetaData("source", { metadataSource: i });
|
2403
|
+
var s = r.errorMessage;
|
2404
|
+
r.context = s, s.includes("error in script loading") && (r.context = "Script load failures"), r.severity = "error";
|
2405
|
+
}(e, t), !0);
|
2406
|
+
} catch {
|
2407
|
+
return !1;
|
2408
|
+
}
|
2409
|
+
};
|
2410
|
+
} }, { key: "notify", value: function(t) {
|
2411
|
+
this.client && this.client.notify(t);
|
2412
|
+
} }, { key: "leaveBreadcrumb", value: function(t) {
|
2413
|
+
this.client && this.client.leaveBreadcrumb(t);
|
2414
|
+
} }]), n;
|
2415
|
+
}(), Li = ["rs-bugsnag"], Vu = function() {
|
2416
|
+
function n(t) {
|
2417
|
+
B(this, n), this.isEnabled = !1, this.providerName = "rs-bugsnag", this.provider = void 0, this.logger = t, this.onClientReady = this.onClientReady.bind(this), this.exposeToGlobal = this.exposeToGlobal.bind(this);
|
2418
|
+
}
|
2419
|
+
return F(n, [{ key: "init", value: function(t, e) {
|
2420
|
+
t && e ? function(r) {
|
2421
|
+
return hn(r, "statsCollection.errors.enabled") || !1;
|
2422
|
+
}(t) === !0 ? (this.enable(), this.setProviderName(function(r) {
|
2423
|
+
return hn(r, "statsCollection.errors.provider");
|
2424
|
+
}(t)), this.initProvider(t, e)) : this.disable() : this.logger.error("[Analytics] ErrorReporting :: Invalid configuration or missing source id provided.");
|
2425
|
+
} }, { key: "enable", value: function() {
|
2426
|
+
this.isEnabled = !0;
|
2427
|
+
} }, { key: "disable", value: function() {
|
2428
|
+
this.isEnabled = !1;
|
2429
|
+
} }, { key: "setProviderName", value: function(t) {
|
2430
|
+
t ? !t || Li.includes(t) ? this.providerName = t : this.logger.error("[Analytics] ErrorReporting :: Invalid error reporting provider value. Value should be one of: ".concat(Li.join(","))) : this.providerName = "rs-bugsnag";
|
2431
|
+
} }, { key: "initProvider", value: function(t, e) {
|
2432
|
+
this.providerName === "rs-bugsnag" && (this.provider = new Qu(e, this.onClientReady));
|
2433
|
+
} }, { key: "onClientReady", value: function() {
|
2434
|
+
this.exposeToGlobal();
|
2435
|
+
} }, { key: "exposeToGlobal", value: function() {
|
2436
|
+
window.rudderanalytics.errorReporting = this;
|
2437
|
+
} }, { key: "leaveBreadcrumb", value: function(t) {
|
2438
|
+
if (this.provider)
|
2439
|
+
try {
|
2440
|
+
this.provider.leaveBreadcrumb(t);
|
2441
|
+
} catch (e) {
|
2442
|
+
this.logger.error("[Analytics] ErrorReporting :: leaveBreadcrumb method ".concat(e.toString()));
|
2443
|
+
}
|
2444
|
+
} }, { key: "notify", value: function(t) {
|
2445
|
+
if (this.provider)
|
2446
|
+
try {
|
2447
|
+
this.provider.notify(t);
|
2448
|
+
} catch (e) {
|
2449
|
+
this.logger.error("[Analytics] ErrorReporting :: notify method ".concat(e.toString()));
|
2450
|
+
}
|
2451
|
+
} }]), n;
|
2452
|
+
}(), $u = new (function() {
|
2453
|
+
function n() {
|
2454
|
+
B(this, n), this.retryAttempt = 3, this.queue = [], this.isTransformationProcessing = !1, this.authToken = null;
|
2455
|
+
}
|
2456
|
+
return F(n, [{ key: "init", value: function(t, e, r) {
|
2457
|
+
this.dataPlaneUrl = dn(e), this.writeKey = t, this.authToken = r || this.authToken, this.start();
|
2458
|
+
} }, { key: "enqueue", value: function(t, e) {
|
2459
|
+
this.queue.push({ event: t, cb: e });
|
2460
|
+
} }, { key: "sendEventForTransformation", value: function(t, e) {
|
2461
|
+
var r = this;
|
2462
|
+
return new Promise(function(i, s) {
|
2463
|
+
var u = "".concat(r.dataPlaneUrl, "/transform"), a = { "Content-Type": "application/json", Authorization: "Basic ".concat(btoa("".concat(r.writeKey, ":"))) };
|
2464
|
+
try {
|
2465
|
+
var c = new XMLHttpRequest();
|
2466
|
+
c.open("POST", u, !0), Object.keys(a).forEach(function(f) {
|
2467
|
+
return c.setRequestHeader(f, a[f]);
|
2468
|
+
}), c.timeout = 1e4, c.onreadystatechange = function() {
|
2469
|
+
if (c.readyState === 4)
|
2470
|
+
try {
|
2471
|
+
var f = c.status, d = c.response;
|
2472
|
+
if (f === 200)
|
2473
|
+
return d && typeof d == "string" ? (d = JSON.parse(d), void i({ transformedPayload: d.transformedBatch, transformationServerAccess: !0 })) : void s("[Transformation]:: Transformation failed. Invalid response from server.");
|
2474
|
+
if (f === 400) {
|
2475
|
+
var l = d ? "[Transformation]:: ".concat(d) : "[Transformation]:: Invalid request payload";
|
2476
|
+
return void s(l);
|
2477
|
+
}
|
2478
|
+
if (f === 404)
|
2479
|
+
return void i({ transformedPayload: t.batch, transformationServerAccess: !1 });
|
2480
|
+
if (!(e > 0))
|
2481
|
+
return void s("[Transformation]:: Transformation failed with status ".concat(f));
|
2482
|
+
var p = e - 1;
|
2483
|
+
setTimeout(function() {
|
2484
|
+
return r.sendEventForTransformation(t, p).then(i).catch(s);
|
2485
|
+
}, 500 * Math.pow(2, r.retryAttempt - p));
|
2486
|
+
} catch (m) {
|
2487
|
+
s(m);
|
2488
|
+
}
|
2489
|
+
}, c.send(Ce(t, !0));
|
2490
|
+
} catch (f) {
|
2491
|
+
s(f);
|
2492
|
+
}
|
2493
|
+
});
|
2494
|
+
} }, { key: "checkQueueLengthAndProcess", value: function() {
|
2495
|
+
this.queue.length > 0 && this.process();
|
2496
|
+
} }, { key: "process", value: function() {
|
2497
|
+
var t = this;
|
2498
|
+
this.isTransformationProcessing = !0;
|
2499
|
+
var e, r = this.queue.shift(), i = (e = r.event, { metadata: { "Custom-Authorization": this.authToken }, batch: [{ orderNo: Date.now(), event: e.message }] });
|
2500
|
+
this.sendEventForTransformation(i, this.retryAttempt).then(function(s) {
|
2501
|
+
t.isTransformationProcessing = !1, r.cb(s), t.checkQueueLengthAndProcess();
|
2502
|
+
}).catch(function(s) {
|
2503
|
+
M(typeof s == "string" ? s : s.message), t.isTransformationProcessing = !1, r.cb({ transformedPayload: null }), t.checkQueueLengthAndProcess();
|
2504
|
+
});
|
2505
|
+
} }, { key: "start", value: function() {
|
2506
|
+
var t = this;
|
2507
|
+
setInterval(function() {
|
2508
|
+
t.isTransformationProcessing || t.checkQueueLengthAndProcess();
|
2509
|
+
}, 100);
|
2510
|
+
} }, { key: "setAuthToken", value: function(t) {
|
2511
|
+
this.authToken = t;
|
2512
|
+
} }]), n;
|
2513
|
+
}())(), Wu = function() {
|
2514
|
+
function n() {
|
2515
|
+
B(this, n), this.initialized = !1, this.clientIntegrations = [], this.loadOnlyIntegrations = {}, this.clientIntegrationObjects = void 0, this.successfullyLoadedIntegration = [], this.failedToBeLoadedIntegration = [], this.toBeProcessedArray = [], this.toBeProcessedByIntegrationArray = [], this.storage = Wn, this.eventRepository = wu, this.preProcessQueue = new Pu(), this.sendAdblockPage = !1, this.sendAdblockPageOptions = {}, this.clientSuppliedCallbacks = {}, this.readyCallbacks = [], this.methodToCallbackMapping = { syncPixel: "syncPixelCallback" }, this.loaded = !1, this.loadIntegration = !0, this.bufferDataPlaneEventsUntilReady = !1, this.integrationsData = {}, this.dynamicallyLoadedIntegrations = {}, this.destSDKBaseURL = Vr, this.cookieConsentOptions = {}, this.logLevel = void 0, this.clientIntegrationsReady = !1, this.uSession = ju, this.version = "2.34.0", this.lockIntegrationsVersion = !1, this.errorReporting = new Vu(D), this.deniedConsentIds = [], this.transformationHandler = $u;
|
2516
|
+
}
|
2517
|
+
return F(n, [{ key: "initializeUser", value: function(t) {
|
2518
|
+
this.userId = this.storage.getUserId() || "", this.storage.setUserId(this.userId), this.userTraits = this.storage.getUserTraits() || {}, this.storage.setUserTraits(this.userTraits), this.groupId = this.storage.getGroupId() || "", this.storage.setGroupId(this.groupId), this.groupTraits = this.storage.getGroupTraits() || {}, this.storage.setGroupTraits(this.groupTraits), this.anonymousId = this.getAnonymousId(t), this.storage.setAnonymousId(this.anonymousId);
|
2519
|
+
} }, { key: "setInitialPageProperties", value: function() {
|
2520
|
+
if (this.storage.getInitialReferrer() == null && this.storage.getInitialReferringDomain() == null) {
|
2521
|
+
var t = co();
|
2522
|
+
this.storage.setInitialReferrer(t), this.storage.setInitialReferringDomain(lo(t));
|
2523
|
+
}
|
2524
|
+
} }, { key: "allModulesInitialized", value: function() {
|
2525
|
+
var t = this, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
2526
|
+
return new Promise(function(r) {
|
2527
|
+
t.clientIntegrations.every(function(i) {
|
2528
|
+
return t.dynamicallyLoadedIntegrations["".concat(xt[i.name]).concat("_RS")] != null;
|
2529
|
+
}) || e >= 2e4 ? r(t) : t.pause(1e3).then(function() {
|
2530
|
+
return t.allModulesInitialized(e + 1e3).then(r);
|
2531
|
+
});
|
2532
|
+
});
|
2533
|
+
} }, { key: "executeReadyCallback", value: function() {
|
2534
|
+
this.readyCallbacks.forEach(function(t) {
|
2535
|
+
return t();
|
2536
|
+
});
|
2537
|
+
} }, { key: "integrationSDKLoaded", value: function(t, e) {
|
2538
|
+
try {
|
2539
|
+
return t && e && window[t] && window.hasOwnProperty(t) && window[t][e] && window[t][e].prototype.constructor !== void 0;
|
2540
|
+
} catch (r) {
|
2541
|
+
return M(r, "While attempting to load ".concat(t, " ").concat(e)), !1;
|
2542
|
+
}
|
2543
|
+
} }, { key: "processResponse", value: function(t, e) {
|
2544
|
+
var r = this;
|
2545
|
+
try {
|
2546
|
+
var i = e;
|
2547
|
+
try {
|
2548
|
+
if (typeof e == "string" && (i = JSON.parse(e)), !i || x(i) !== "object" || Array.isArray(i))
|
2549
|
+
return void D.error("Invalid source configuration");
|
2550
|
+
} catch (c) {
|
2551
|
+
return void M(c);
|
2552
|
+
}
|
2553
|
+
try {
|
2554
|
+
this.errorReporting.init(i.source.config, i.source.id);
|
2555
|
+
} catch (c) {
|
2556
|
+
M(c);
|
2557
|
+
}
|
2558
|
+
if (this.serverUrl = _a(i, this.serverUrl, this.options), this.eventRepository.initialize(this.writeKey, this.serverUrl, this.options), this.loaded = !0, this.transformationHandler.init(this.writeKey, this.serverUrl, this.storage.getAuthToken()), this.options && typeof this.options.onLoaded == "function" && this.options.onLoaded(this), function(c) {
|
2559
|
+
if (c.toBeProcessedArray.length > 0)
|
2560
|
+
for (; c.toBeProcessedArray.length > 0; ) {
|
2561
|
+
var f = ce(c.toBeProcessedArray[0]);
|
2562
|
+
c.toBeProcessedArray.shift();
|
2563
|
+
var d = f[0];
|
2564
|
+
f.shift(), c[d].apply(c, ce(f));
|
2565
|
+
}
|
2566
|
+
}(this), i.source.destinations.forEach(function(c) {
|
2567
|
+
c.enabled && this.clientIntegrations.push({ name: c.destinationDefinition.name, config: c.config, destinationInfo: { areTransformationsConnected: c.areTransformationsConnected || !1, destinationId: c.id } });
|
2568
|
+
}, this), this.clientIntegrations = rr(this.loadOnlyIntegrations, this.clientIntegrations), Object.keys(this.cookieConsentOptions).length > 0)
|
2569
|
+
try {
|
2570
|
+
var s = Uu.initialize(this.cookieConsentOptions);
|
2571
|
+
this.deniedConsentIds = s && s.getDeniedList(), this.clientIntegrations = this.clientIntegrations.filter(function(c) {
|
2572
|
+
return !s || s && s.isEnabled(c.config);
|
2573
|
+
});
|
2574
|
+
} catch (c) {
|
2575
|
+
M(c);
|
2576
|
+
}
|
2577
|
+
this.clientIntegrations = this.clientIntegrations.filter(function(c) {
|
2578
|
+
return !!xt[c.name] || (D.error("[Analytics] Integration:: ".concat(c.name, " not available for initialization")), !1);
|
2579
|
+
});
|
2580
|
+
var u = "";
|
2581
|
+
Jr().isStaging && (u = "-staging"), this.bufferDataPlaneEventsUntilReady && setTimeout(function() {
|
2582
|
+
r.processBufferedCloudModeEvents();
|
2583
|
+
}, 1e4), this.errorReporting.leaveBreadcrumb("Starting device-mode initialization"), this.clientIntegrations.forEach(function(c) {
|
2584
|
+
var f = xt[c.name], d = "".concat(f).concat("_RS"), l = "".concat(r.destSDKBaseURL, "/").concat(f).concat(u, ".min.js");
|
2585
|
+
window.hasOwnProperty(d) || Vn(d, l, { isNonNativeSDK: !0 });
|
2586
|
+
var p = r, m = setInterval(function() {
|
2587
|
+
if (p.integrationSDKLoaded(d, f)) {
|
2588
|
+
var h, b = window[d];
|
2589
|
+
clearInterval(m);
|
2590
|
+
try {
|
2591
|
+
var y = "[Analytics] processResponse :: trying to initialize integration name:: ".concat(d);
|
2592
|
+
r.errorReporting.leaveBreadcrumb(y), (h = new b[f](c.config, p, c.destinationInfo)).init(), p.isInitialized(h).then(function() {
|
2593
|
+
p.dynamicallyLoadedIntegrations[d] = b[f];
|
2594
|
+
});
|
2595
|
+
} catch (A) {
|
2596
|
+
var E = "[Analytics] 'integration.init()' failed :: ".concat(d, " :: ").concat(A.message);
|
2597
|
+
M(A, E), p.failedToBeLoadedIntegration.push(h);
|
2598
|
+
}
|
2599
|
+
}
|
2600
|
+
}, 100);
|
2601
|
+
setTimeout(function() {
|
2602
|
+
clearInterval(m);
|
2603
|
+
}, 1e4);
|
2604
|
+
});
|
2605
|
+
var a = this;
|
2606
|
+
this.allModulesInitialized().then(function() {
|
2607
|
+
if (!a.clientIntegrations || a.clientIntegrations.length === 0)
|
2608
|
+
return r.clientIntegrationsReady = !0, r.executeReadyCallback(), void (r.toBeProcessedByIntegrationArray = []);
|
2609
|
+
a.replayEvents(a);
|
2610
|
+
});
|
2611
|
+
} catch (c) {
|
2612
|
+
M(c);
|
2613
|
+
}
|
2614
|
+
} }, { key: "sendDataToDestination", value: function(t, e, r) {
|
2615
|
+
try {
|
2616
|
+
if (t[r]) {
|
2617
|
+
var i = U(e);
|
2618
|
+
t[r](i);
|
2619
|
+
}
|
2620
|
+
} catch (u) {
|
2621
|
+
var s = "[sendToNative]:: [Destination: ".concat(t.name, "]:: ");
|
2622
|
+
M(u, s);
|
2623
|
+
}
|
2624
|
+
} }, { key: "sendTransformedDataToDestination", value: function(t, e, r) {
|
2625
|
+
var i = this;
|
2626
|
+
try {
|
2627
|
+
Yr(e.message.integrations), this.transformationHandler.enqueue(e, function(s) {
|
2628
|
+
var u = s.transformedPayload, a = s.transformationServerAccess;
|
2629
|
+
u && t.forEach(function(c) {
|
2630
|
+
try {
|
2631
|
+
var f, d = [];
|
2632
|
+
if (a) {
|
2633
|
+
var l = u.find(function(p) {
|
2634
|
+
return p.id === c.destinationId;
|
2635
|
+
});
|
2636
|
+
if (!l)
|
2637
|
+
return void D.error('[DMT]::Transformed data for destination "'.concat(c.name, '" was not sent from the server'));
|
2638
|
+
l == null || l.payload.forEach(function(p) {
|
2639
|
+
p.status === "200" ? d.push(p) : D.error('[DMT]::Event transformation unsuccessful for destination "'.concat(c.name, '". Dropping the event. Status: "').concat(p.status, '". Error Message: "').concat(p.error, '"'));
|
2640
|
+
});
|
2641
|
+
} else
|
2642
|
+
d = u;
|
2643
|
+
(f = d) === null || f === void 0 || f.forEach(function(p) {
|
2644
|
+
p.event && i.sendDataToDestination(c, { message: p.event }, r);
|
2645
|
+
});
|
2646
|
+
} catch (p) {
|
2647
|
+
p instanceof Error && (p.message = "[DMT]::[Destination:".concat(c.name, "]:: ").concat(p.message)), M(p);
|
2648
|
+
}
|
2649
|
+
});
|
2650
|
+
});
|
2651
|
+
} catch (s) {
|
2652
|
+
s instanceof Error && (s.message = "[DMT]:: ".concat(s.message)), M(s);
|
2653
|
+
}
|
2654
|
+
} }, { key: "processAndSendEventsToDeviceMode", value: function(t, e, r) {
|
2655
|
+
var i = this, s = [], u = [];
|
2656
|
+
t.forEach(function(a) {
|
2657
|
+
!i.IsEventBlackListed(e.message.event, a.name) && (a.areTransformationsConnected ? u.push(a) : s.push(a));
|
2658
|
+
}), s.forEach(function(a) {
|
2659
|
+
i.sendDataToDestination(a, e, r);
|
2660
|
+
}), u.length > 0 && this.sendTransformedDataToDestination(u, e, r);
|
2661
|
+
} }, { key: "queueEventForDataPlane", value: function(t, e) {
|
2662
|
+
var r = e.message.integrations || { All: !0 };
|
2663
|
+
e.message.integrations = function(i, s) {
|
2664
|
+
var u = U(i), a = Object.keys(s).filter(function(c) {
|
2665
|
+
return !(s[c] === !0 && u[c]);
|
2666
|
+
}).reduce(function(c, f) {
|
2667
|
+
return c[f] = s[f], c;
|
2668
|
+
}, {});
|
2669
|
+
return un(u, a);
|
2670
|
+
}(this.integrationsData, r), this.eventRepository.enqueue(e, t);
|
2671
|
+
} }, { key: "processBufferedCloudModeEvents", value: function() {
|
2672
|
+
this.bufferDataPlaneEventsUntilReady && this.preProcessQueue.activateProcessor();
|
2673
|
+
} }, { key: "replayEvents", value: function(t) {
|
2674
|
+
var e, r, i, s = this;
|
2675
|
+
this.errorReporting.leaveBreadcrumb("Started replaying buffered events"), t.clientIntegrationObjects = [], t.clientIntegrationObjects = t.successfullyLoadedIntegration, t.clientIntegrationObjects.every(function(u) {
|
2676
|
+
return !u.isReady || u.isReady();
|
2677
|
+
}) && (this.integrationsData = (e = this.integrationsData, r = t.clientIntegrationObjects, i = U(e), r.forEach(function(u) {
|
2678
|
+
if (u.getDataForIntegrationsObject)
|
2679
|
+
try {
|
2680
|
+
i = un(i, u.getDataForIntegrationsObject());
|
2681
|
+
} catch (a) {
|
2682
|
+
D.debug("[Analytics: prepareDataForIntegrationsObj]", a);
|
2683
|
+
}
|
2684
|
+
}), i), t.clientIntegrationsReady = !0, t.executeReadyCallback()), this.processBufferedCloudModeEvents(), t.toBeProcessedByIntegrationArray.forEach(function(u) {
|
2685
|
+
var a = u[0];
|
2686
|
+
u.shift(), Object.keys(u[0].message.integrations).length > 0 && nr(u[0].message.integrations);
|
2687
|
+
var c = rr(u[0].message.integrations, t.clientIntegrationObjects);
|
2688
|
+
s.processAndSendEventsToDeviceMode(c, u[0], a);
|
2689
|
+
}), t.toBeProcessedByIntegrationArray = [];
|
2690
|
+
} }, { key: "pause", value: function(t) {
|
2691
|
+
return new Promise(function(e) {
|
2692
|
+
setTimeout(e, t);
|
2693
|
+
});
|
2694
|
+
} }, { key: "isInitialized", value: function(t) {
|
2695
|
+
var e = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
2696
|
+
return new Promise(function(i) {
|
2697
|
+
t.isLoaded() ? (e.successfullyLoadedIntegration.push(t), i(e)) : r >= 1e4 ? (e.failedToBeLoadedIntegration.push(t), i(e)) : e.pause(1e3).then(function() {
|
2698
|
+
return e.isInitialized(t, r + 1e3).then(i);
|
2699
|
+
});
|
2700
|
+
});
|
2701
|
+
} }, { key: "page", value: function(t, e, r, i, s) {
|
2702
|
+
if (this.errorReporting.leaveBreadcrumb("Page event"), this.loaded) {
|
2703
|
+
typeof i == "function" && (s = i, i = null), typeof r == "function" && (s = r, i = r = null), typeof e == "function" && (s = e, i = r = e = null), typeof t == "function" && (s = t, i = r = e = t = null), x(t) === "object" && t != null && t != null && (i = e, r = t, e = t = null), x(e) === "object" && e != null && e != null && (i = r, r = e, e = null), typeof t == "string" && typeof e != "string" && (e = t, t = null), this.sendAdblockPage && t != "RudderJS-Initiated" && this.sendSampleRequest();
|
2704
|
+
var u = U(r), a = U(i), c = new an().setType("page").build();
|
2705
|
+
u || (u = {}), e && (c.message.name = u.name = e), t && (c.message.category = u.category = t), c.message.properties = this.getPageProperties(u), this.processAndSendDataToDestinations("page", c, a, s);
|
2706
|
+
} else
|
2707
|
+
this.toBeProcessedArray.push(["page"].concat(Array.prototype.slice.call(arguments)));
|
2708
|
+
} }, { key: "track", value: function(t, e, r, i) {
|
2709
|
+
if (this.errorReporting.leaveBreadcrumb("Track event"), this.loaded) {
|
2710
|
+
typeof r == "function" && (i = r, r = null), typeof e == "function" && (i = e, r = null, e = null);
|
2711
|
+
var s = U(e), u = U(r), a = new an().setType("track").build();
|
2712
|
+
t && a.setEventName(t), a.setProperty(s || {}), this.processAndSendDataToDestinations("track", a, u, i);
|
2713
|
+
} else
|
2714
|
+
this.toBeProcessedArray.push(["track"].concat(Array.prototype.slice.call(arguments)));
|
2715
|
+
} }, { key: "identify", value: function(t, e, r, i) {
|
2716
|
+
if (this.errorReporting.leaveBreadcrumb("Identify event"), this.loaded) {
|
2717
|
+
typeof r == "function" && (i = r, r = null), typeof e == "function" && (i = e, r = null, e = null), x(t) === "object" && (r = e, e = t, t = this.userId), t && this.userId && t !== this.userId && this.reset(), this.userId = Fn(t), this.storage.setUserId(this.userId);
|
2718
|
+
var s = U(e), u = U(r);
|
2719
|
+
if (s) {
|
2720
|
+
for (var a in s)
|
2721
|
+
this.userTraits[a] = s[a];
|
2722
|
+
this.storage.setUserTraits(this.userTraits);
|
2723
|
+
}
|
2724
|
+
var c = new an().setType("identify").build();
|
2725
|
+
this.processAndSendDataToDestinations("identify", c, u, i);
|
2726
|
+
} else
|
2727
|
+
this.toBeProcessedArray.push(["identify"].concat(Array.prototype.slice.call(arguments)));
|
2728
|
+
} }, { key: "alias", value: function(t, e, r, i) {
|
2729
|
+
if (this.errorReporting.leaveBreadcrumb("Alias event"), this.loaded) {
|
2730
|
+
typeof r == "function" && (i = r, r = null), typeof e == "function" && (i = e, r = null, e = null), typeof t == "function" && (i = t, r = null, e = null, t = null), x(e) === "object" && (r = e, e = null), x(t) === "object" && (r = t, e = null, t = null);
|
2731
|
+
var s = new an().setType("alias").build();
|
2732
|
+
s.message.previousId = Fn(e) || (this.userId ? this.userId : this.getAnonymousId()), s.message.userId = Fn(t);
|
2733
|
+
var u = U(r);
|
2734
|
+
this.processAndSendDataToDestinations("alias", s, u, i);
|
2735
|
+
} else
|
2736
|
+
this.toBeProcessedArray.push(["alias"].concat(Array.prototype.slice.call(arguments)));
|
2737
|
+
} }, { key: "group", value: function(t, e, r, i) {
|
2738
|
+
if (this.errorReporting.leaveBreadcrumb("Group event"), this.loaded) {
|
2739
|
+
if (arguments.length !== 0) {
|
2740
|
+
typeof r == "function" && (i = r, r = null), typeof e == "function" && (i = e, r = null, e = null), x(t) === "object" && (r = e, e = t, t = this.groupId), typeof t == "function" && (i = t, r = null, e = null, t = this.groupId), this.groupId = Fn(t), this.storage.setGroupId(this.groupId);
|
2741
|
+
var s = U(e), u = U(r), a = new an().setType("group").build();
|
2742
|
+
if (s)
|
2743
|
+
for (var c in s)
|
2744
|
+
this.groupTraits[c] = s[c];
|
2745
|
+
else
|
2746
|
+
this.groupTraits = {};
|
2747
|
+
this.storage.setGroupTraits(this.groupTraits), this.processAndSendDataToDestinations("group", a, u, i);
|
2748
|
+
}
|
2749
|
+
} else
|
2750
|
+
this.toBeProcessedArray.push(["group"].concat(Array.prototype.slice.call(arguments)));
|
2751
|
+
} }, { key: "IsEventBlackListed", value: function(t, e) {
|
2752
|
+
if (!t || typeof t != "string")
|
2753
|
+
return !1;
|
2754
|
+
var r = qi[e], i = this.clientIntegrations.find(function(f) {
|
2755
|
+
return f.name === r;
|
2756
|
+
}).config, s = i.blacklistedEvents, u = i.whitelistedEvents, a = i.eventFilteringOption;
|
2757
|
+
if (!a)
|
2758
|
+
return !1;
|
2759
|
+
var c = t.trim().toUpperCase();
|
2760
|
+
switch (a) {
|
2761
|
+
case "disable":
|
2762
|
+
default:
|
2763
|
+
return !1;
|
2764
|
+
case "blacklistedEvents":
|
2765
|
+
return !!Array.isArray(s) && s.some(function(f) {
|
2766
|
+
return f.eventName.trim().toUpperCase() === c;
|
2767
|
+
});
|
2768
|
+
case "whitelistedEvents":
|
2769
|
+
return !Array.isArray(u) || !u.some(function(f) {
|
2770
|
+
return f.eventName.trim().toUpperCase() === c;
|
2771
|
+
});
|
2772
|
+
}
|
2773
|
+
} }, { key: "shouldUseGlobalIntegrationsConfigInEvents", value: function() {
|
2774
|
+
return this.useGlobalIntegrationsConfigInEvents && this.loadOnlyIntegrations && Object.keys(this.loadOnlyIntegrations).length > 0;
|
2775
|
+
} }, { key: "processAndSendDataToDestinations", value: function(t, e, r, i) {
|
2776
|
+
try {
|
2777
|
+
this.anonymousId || this.setAnonymousId(), this.errorReporting.leaveBreadcrumb("Started sending data to destinations"), e.message.context.traits = S({}, this.userTraits), e.message.anonymousId = this.anonymousId, e.message.userId = e.message.userId ? e.message.userId : this.userId, t == "group" && (this.groupId && (e.message.groupId = this.groupId), this.groupTraits && (e.message.traits = S({}, this.groupTraits)));
|
2778
|
+
try {
|
2779
|
+
var s = this.uSession.getSessionInfo(), u = s.sessionId, a = s.sessionStart;
|
2780
|
+
e.message.context.sessionId = u, a && (e.message.context.sessionStart = !0);
|
2781
|
+
} catch (m) {
|
2782
|
+
M(m);
|
2783
|
+
}
|
2784
|
+
l = this.cookieConsentOptions, p = !1, Object.keys(l).forEach(function(m) {
|
2785
|
+
Aa.includes(m) && typeof l[m].enabled == "boolean" && l[m].enabled === !0 && (p = !0);
|
2786
|
+
}), p && (e.message.context.consentManagement = { deniedConsentIds: this.deniedConsentIds || [] }), this.processOptionsParam(e, r), function(m, h) {
|
2787
|
+
var b = m.properties, y = m.traits;
|
2788
|
+
b && Object.keys(b).forEach(function(A) {
|
2789
|
+
er.indexOf(A.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in properties--> ".concat(A, " with ").concat(h, " call"));
|
2790
|
+
}), y && Object.keys(y).forEach(function(A) {
|
2791
|
+
er.indexOf(A.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in traits--> ".concat(A, " with ").concat(h, " call"));
|
2792
|
+
});
|
2793
|
+
var E = m.context.traits;
|
2794
|
+
E && Object.keys(E).forEach(function(A) {
|
2795
|
+
er.indexOf(A.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in traits --> ".concat(A, " with ").concat(h, " call"));
|
2796
|
+
});
|
2797
|
+
}(e.message, t);
|
2798
|
+
var c = e.message.integrations;
|
2799
|
+
c ? nr(c) : c = this.shouldUseGlobalIntegrationsConfigInEvents() ? this.loadOnlyIntegrations : ba, e.message.integrations = c;
|
2800
|
+
try {
|
2801
|
+
e.message.context["ua-ch"] = this.uach;
|
2802
|
+
} catch (m) {
|
2803
|
+
M(m);
|
2804
|
+
}
|
2805
|
+
if (this.clientIntegrationObjects) {
|
2806
|
+
var f = rr(c, this.clientIntegrationObjects);
|
2807
|
+
this.processAndSendEventsToDeviceMode(f, e, t);
|
2808
|
+
} else
|
2809
|
+
this.toBeProcessedByIntegrationArray.push([t, e]);
|
2810
|
+
var d = U(e);
|
2811
|
+
Yr(d.message.integrations), !this.bufferDataPlaneEventsUntilReady || this.clientIntegrationObjects ? this.queueEventForDataPlane(t, d) : this.preProcessQueue.enqueue(t, d), i && typeof i == "function" && i(d);
|
2812
|
+
} catch (m) {
|
2813
|
+
M(m);
|
2814
|
+
}
|
2815
|
+
var l, p;
|
2816
|
+
} }, { key: "utm", value: function(t) {
|
2817
|
+
var e;
|
2818
|
+
t.charAt(0) === "?" && (t = t.substring(1)), t = t.replace(/\?/g, "&");
|
2819
|
+
var r = Ui(t), i = {};
|
2820
|
+
for (var s in r)
|
2821
|
+
Object.prototype.hasOwnProperty.call(r, s) && s.substr(0, 4) === "utm_" && ((e = s.substr(4)) === "campaign" && (e = "name"), i[e] = r[s]);
|
2822
|
+
return i;
|
2823
|
+
} }, { key: "addCampaignInfo", value: function(t) {
|
2824
|
+
var e = t.message.context;
|
2825
|
+
if (e && x(e) === "object") {
|
2826
|
+
var r = yr().search;
|
2827
|
+
t.message.context.campaign = this.utm(r);
|
2828
|
+
}
|
2829
|
+
} }, { key: "processOptionsParam", value: function(t, e) {
|
2830
|
+
var r = t.message, i = r.type, s = r.properties;
|
2831
|
+
this.addCampaignInfo(t), t.message.context.page = this.getContextPageProperties(i === "page" ? s : void 0), function(u) {
|
2832
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
2833
|
+
x(a) === "object" && a !== null && Object.keys(a).forEach(function(c) {
|
2834
|
+
Pi.includes(c) && (u[c] = a[c]);
|
2835
|
+
});
|
2836
|
+
}(t.message, e), t.message.context = function(u) {
|
2837
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = u.context;
|
2838
|
+
return x(a) !== "object" || a === null || Object.keys(a).forEach(function(f) {
|
2839
|
+
if (!Pi.includes(f) && !$r.includes(f))
|
2840
|
+
if (f !== "context")
|
2841
|
+
c = un(c, o({}, f, a[f]));
|
2842
|
+
else if (x(a[f]) === "object" && a[f] !== null) {
|
2843
|
+
var d = {};
|
2844
|
+
Object.keys(a[f]).forEach(function(l) {
|
2845
|
+
$r.includes(l) || (d[l] = a[f][l]);
|
2846
|
+
}), c = un(c, S({}, d));
|
2847
|
+
} else
|
2848
|
+
D.error("[Analytics: processOptionsParam] context passed in options ".concat(f, " is not object."));
|
2849
|
+
}), c;
|
2850
|
+
}(t.message, e);
|
2851
|
+
} }, { key: "getPageProperties", value: function(t, e) {
|
2852
|
+
var r = yr(), i = e && e.page || {};
|
2853
|
+
for (var s in r)
|
2854
|
+
t[s] === void 0 && (t[s] = i[s] || r[s]);
|
2855
|
+
return t;
|
2856
|
+
} }, { key: "getContextPageProperties", value: function(t) {
|
2857
|
+
var e = yr(), r = {};
|
2858
|
+
for (var i in e)
|
2859
|
+
r[i] = t && t[i] ? t[i] : e[i];
|
2860
|
+
return r;
|
2861
|
+
} }, { key: "reset", value: function(t) {
|
2862
|
+
this.errorReporting.leaveBreadcrumb("reset API :: flag: ".concat(t)), this.loaded ? (t && (this.anonymousId = ""), this.userId = "", this.userTraits = {}, this.groupId = "", this.groupTraits = {}, this.uSession.reset(), this.storage.clear(t)) : this.toBeProcessedArray.push(["reset", t]);
|
2863
|
+
} }, { key: "getAnonymousId", value: function(t) {
|
2864
|
+
return this.anonymousId = this.storage.getAnonymousId(t), this.anonymousId || this.setAnonymousId(), this.anonymousId;
|
2865
|
+
} }, { key: "getUserId", value: function() {
|
2866
|
+
return this.userId;
|
2867
|
+
} }, { key: "getSessionId", value: function() {
|
2868
|
+
return this.uSession.getSessionId();
|
2869
|
+
} }, { key: "getUserTraits", value: function() {
|
2870
|
+
return this.userTraits;
|
2871
|
+
} }, { key: "getGroupId", value: function() {
|
2872
|
+
return this.groupId;
|
2873
|
+
} }, { key: "getGroupTraits", value: function() {
|
2874
|
+
return this.groupTraits;
|
2875
|
+
} }, { key: "setAnonymousId", value: function(t, e) {
|
2876
|
+
var r = e ? Fu(e) : null, i = r ? r.rs_amp_id : null;
|
2877
|
+
this.anonymousId = t || i || Ki(), this.storage.setAnonymousId(this.anonymousId);
|
2878
|
+
} }, { key: "isValidWriteKey", value: function(t) {
|
2879
|
+
return t && typeof t == "string" && t.trim().length > 0;
|
2880
|
+
} }, { key: "isValidServerUrl", value: function(t) {
|
2881
|
+
return t && typeof t == "string" && t.trim().length > 0;
|
2882
|
+
} }, { key: "isDatasetAvailable", value: function() {
|
2883
|
+
var t = document.createElement("div");
|
2884
|
+
return t.setAttribute("data-a-b", "c"), !!t.dataset && t.dataset.aB === "c";
|
2885
|
+
} }, { key: "loadAfterPolyfill", value: function(t, e, r) {
|
2886
|
+
var i = this;
|
2887
|
+
if (x(e) === "object" && e !== null && (r = e, e = null), r && r.logLevel && (this.logLevel = r.logLevel, D.setLogLevel(r.logLevel)), !this.isValidWriteKey(t))
|
2888
|
+
throw Error("Unable to load the SDK due to invalid writeKey");
|
2889
|
+
if (!this.storage || Object.keys(this.storage).length === 0)
|
2890
|
+
throw Error("Cannot proceed as no storage is available");
|
2891
|
+
r && r.cookieConsentManager && (this.cookieConsentOptions = r.cookieConsentManager), this.writeKey = t, this.serverUrl = e, this.options = r;
|
2892
|
+
var s = {};
|
2893
|
+
if (r && r.setCookieDomain && (s = S(S({}, s), {}, { domain: r.setCookieDomain })), r && typeof r.secureCookie == "boolean" && (s = S(S({}, s), {}, { secure: r.secureCookie })), r && ya.indexOf(r.sameSiteCookie) !== -1 && (s = S(S({}, s), {}, { samesite: r.sameSiteCookie })), this.storage.options(s), r && typeof r.uaChTrackLevel == "string" && Ia.includes(r.uaChTrackLevel) && (this.uaChTrackLevel = r.uaChTrackLevel), navigator.userAgentData && function(f) {
|
2894
|
+
var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
2895
|
+
d === "none" && f(void 0), d === "default" && f(navigator.userAgentData), d === "full" && navigator.userAgentData.getHighEntropyValues(["architecture", "bitness", "brands", "mobile", "model", "platform", "platformVersion", "uaFullVersion", "fullVersionList", "wow64"]).then(function(l) {
|
2896
|
+
f(l);
|
2897
|
+
});
|
2898
|
+
}(function(f) {
|
2899
|
+
i.uach = f;
|
2900
|
+
}, this.uaChTrackLevel), r && r.integrations && (Qe(this.loadOnlyIntegrations, r.integrations), nr(this.loadOnlyIntegrations)), this.useGlobalIntegrationsConfigInEvents = r && r.useGlobalIntegrationsConfigInEvents === !0, r && r.sendAdblockPage && (this.sendAdblockPage = !0), r && r.sendAdblockPageOptions && x(r.sendAdblockPageOptions) === "object" && (this.sendAdblockPageOptions = r.sendAdblockPageOptions), this.uSession.initialize(r), r && r.clientSuppliedCallbacks) {
|
2901
|
+
var u = {};
|
2902
|
+
Object.keys(this.methodToCallbackMapping).forEach(function(f) {
|
2903
|
+
i.methodToCallbackMapping.hasOwnProperty(f) && r.clientSuppliedCallbacks[i.methodToCallbackMapping[f]] && (u[f] = r.clientSuppliedCallbacks[i.methodToCallbackMapping[f]]);
|
2904
|
+
}), Qe(this.clientSuppliedCallbacks, u), this.registerCallbacks(!0);
|
2905
|
+
}
|
2906
|
+
if (r && r.loadIntegration != null && (this.loadIntegration = !!r.loadIntegration), r && typeof r.bufferDataPlaneEventsUntilReady == "boolean" && (this.bufferDataPlaneEventsUntilReady = r.bufferDataPlaneEventsUntilReady === !0, this.bufferDataPlaneEventsUntilReady && this.preProcessQueue.init(this.options, this.queueEventForDataPlane.bind(this))), r && r.lockIntegrationsVersion !== void 0 && (this.lockIntegrationsVersion = r.lockIntegrationsVersion === !0), this.initializeUser(r ? r.anonymousIdOptions : void 0), this.setInitialPageProperties(), this.destSDKBaseURL = function(f, d, l) {
|
2907
|
+
var p = "";
|
2908
|
+
if (l) {
|
2909
|
+
if (!(p = dn(l))) {
|
2910
|
+
var m = "CDN base URL for integrations is not valid";
|
2911
|
+
throw M({ message: "[Analytics] load:: ".concat(m) }), Error("Failed to load Rudder SDK: ".concat(m));
|
2912
|
+
}
|
2913
|
+
return p;
|
2914
|
+
}
|
2915
|
+
var h = Jr().sdkURL;
|
2916
|
+
return p = h ? h.split("/").slice(0, -1).concat("js-integrations").join("/") : Vr, d && (p = p.replace("v1.1", f)), p;
|
2917
|
+
}(this.version, this.lockIntegrationsVersion, r && r.destSDKBaseURL), r && r.getSourceConfig)
|
2918
|
+
if (typeof r.getSourceConfig != "function")
|
2919
|
+
M(new Error('option "getSourceConfig" must be a function'));
|
2920
|
+
else {
|
2921
|
+
var a = r.getSourceConfig();
|
2922
|
+
a instanceof Promise ? a.then(function(f) {
|
2923
|
+
return i.processResponse(200, f);
|
2924
|
+
}).catch(M) : this.processResponse(200, a);
|
2925
|
+
}
|
2926
|
+
else {
|
2927
|
+
var c = function(f) {
|
2928
|
+
return Qr.concat(Qr.includes("?") ? "&" : "?").concat(f ? "writeKey=".concat(f) : "");
|
2929
|
+
}(t);
|
2930
|
+
r && r.configUrl && (c = function(f, d) {
|
2931
|
+
var l = f;
|
2932
|
+
l.indexOf("sourceConfig") === -1 && (l = "".concat(dn(l), "/sourceConfig/")), l = l.slice(-1) === "/" ? l : "".concat(l, "/");
|
2933
|
+
var p = d.split("?")[1], m = l.split("?");
|
2934
|
+
return m.length > 1 && m[1] !== p ? "".concat(m[0], "?").concat(p) : "".concat(l, "?").concat(p);
|
2935
|
+
}(r.configUrl, c));
|
2936
|
+
try {
|
2937
|
+
(function(f, d, l, p) {
|
2938
|
+
var m = p.bind(f), h = new XMLHttpRequest();
|
2939
|
+
h.open("GET", d, !0), h.setRequestHeader("Authorization", "Basic ".concat(btoa("".concat(l, ":")))), h.onload = function() {
|
2940
|
+
var b = h.status;
|
2941
|
+
b == 200 ? m(200, h.responseText) : (M(new Error("".concat("Request failed with status:", " ").concat(b, " for url: ").concat(d))), m(b));
|
2942
|
+
}, h.send();
|
2943
|
+
})(this, c, t, this.processResponse);
|
2944
|
+
} catch (f) {
|
2945
|
+
M(f);
|
2946
|
+
}
|
2947
|
+
}
|
2948
|
+
} }, { key: "arePolyfillsRequired", value: function(t) {
|
2949
|
+
return (!t || typeof t.polyfillIfRequired != "boolean" || t.polyfillIfRequired) && (!String.prototype.endsWith || !String.prototype.startsWith || !String.prototype.includes || !Array.prototype.find || !Array.prototype.includes || !Array.prototype.at || typeof window.URL != "function" || typeof Promise > "u" || !Object.entries || !Object.values || !String.prototype.replaceAll || !this.isDatasetAvailable());
|
2950
|
+
} }, { key: "load", value: function(t, e, r) {
|
2951
|
+
if (!this.loaded) {
|
2952
|
+
var i = U(r);
|
2953
|
+
if (this.arePolyfillsRequired(i)) {
|
2954
|
+
var s = "polyfill";
|
2955
|
+
Vn(s, "https://polyfill.io/v3/polyfill.min.js?features=Number.isNaN%2CURL%2CArray.prototype.at%2CArray.prototype.find%2CArray.prototype.includes%2CPromise%2CString.prototype.endsWith%2CString.prototype.includes%2CString.prototype.startsWith%2CObject.entries%2CObject.values%2CElement.prototype.dataset%2CString.prototype.replaceAll", { skipDatasetAttributes: !0 });
|
2956
|
+
var u = this, a = setInterval(function() {
|
2957
|
+
!window.hasOwnProperty(s) && document.getElementById(s) === null || typeof Promise > "u" || (clearInterval(a), u.loadAfterPolyfill(t, e, i));
|
2958
|
+
}, 100);
|
2959
|
+
setTimeout(function() {
|
2960
|
+
clearInterval(a);
|
2961
|
+
}, 1e4);
|
2962
|
+
} else
|
2963
|
+
this.loadAfterPolyfill(t, e, i);
|
2964
|
+
}
|
2965
|
+
} }, { key: "ready", value: function(t) {
|
2966
|
+
this.loaded ? typeof t != "function" ? D.error("ready callback is not a function") : this.clientIntegrationsReady ? t() : this.readyCallbacks.push(t) : this.toBeProcessedArray.push(["ready", t]);
|
2967
|
+
} }, { key: "initializeCallbacks", value: function() {
|
2968
|
+
var t = this;
|
2969
|
+
Object.keys(this.methodToCallbackMapping).forEach(function(e) {
|
2970
|
+
t.methodToCallbackMapping.hasOwnProperty(e) && t.on(e, function() {
|
2971
|
+
});
|
2972
|
+
});
|
2973
|
+
} }, { key: "registerCallbacks", value: function(t) {
|
2974
|
+
var e = this;
|
2975
|
+
t || Object.keys(this.methodToCallbackMapping).forEach(function(r) {
|
2976
|
+
e.methodToCallbackMapping.hasOwnProperty(r) && window.rudderanalytics && typeof window.rudderanalytics[e.methodToCallbackMapping[r]] == "function" && (e.clientSuppliedCallbacks[r] = window.rudderanalytics[e.methodToCallbackMapping[r]]);
|
2977
|
+
}), Object.keys(this.clientSuppliedCallbacks).forEach(function(r) {
|
2978
|
+
e.clientSuppliedCallbacks.hasOwnProperty(r) && e.on(r, e.clientSuppliedCallbacks[r]);
|
2979
|
+
});
|
2980
|
+
} }, { key: "sendSampleRequest", value: function() {
|
2981
|
+
Vn("ad-block", "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js");
|
2982
|
+
} }, { key: "startSession", value: function(t) {
|
2983
|
+
this.uSession.start(t);
|
2984
|
+
} }, { key: "endSession", value: function() {
|
2985
|
+
this.uSession.end();
|
2986
|
+
} }, { key: "setAuthToken", value: function(t) {
|
2987
|
+
typeof t == "string" ? (this.storage.setAuthToken(t), this.transformationHandler.setAuthToken(t)) : D.error("Provided input should be in string format");
|
2988
|
+
} }]), n;
|
2989
|
+
}(), P = new Wu();
|
2990
|
+
jo(P), window.addEventListener("error", function(n) {
|
2991
|
+
M(n, void 0, P);
|
2992
|
+
}, !0), P.initializeCallbacks(), P.registerCallbacks(!1);
|
2993
|
+
var fn, Ee = window.rudderanalytics, mo = Array.isArray(Ee);
|
2994
|
+
if (mo)
|
2995
|
+
for (var He = 0; He < Ee.length; ) {
|
2996
|
+
if (Ee[He] && Ee[He][0] === "load") {
|
2997
|
+
fn = Ee[He], Ee.splice(He, 1);
|
2998
|
+
break;
|
2999
|
+
}
|
3000
|
+
He += 1;
|
3001
|
+
}
|
3002
|
+
(function(n) {
|
3003
|
+
var t = "ajs_trait_", e = "ajs_prop_";
|
3004
|
+
function r(s, u) {
|
3005
|
+
var a = {};
|
3006
|
+
return Object.keys(s).forEach(function(c) {
|
3007
|
+
c.startsWith(u) && (a[c.substr(u.length)] = s[c]);
|
3008
|
+
}), a;
|
3009
|
+
}
|
3010
|
+
var i = Ui(n);
|
3011
|
+
i.ajs_aid && P.toBeProcessedArray.push(["setAnonymousId", i.ajs_aid]), i.ajs_uid && P.toBeProcessedArray.push(["identify", i.ajs_uid, r(i, t)]), i.ajs_event && P.toBeProcessedArray.push(["track", i.ajs_event, r(i, e)]);
|
3012
|
+
})(window.location.search), mo && Ee.forEach(function(n) {
|
3013
|
+
return P.toBeProcessedArray.push(n);
|
3014
|
+
}), fn && fn.length > 0 && (fn.shift(), P.load.apply(P, ce(fn)));
|
3015
|
+
P.ready.bind(P);
|
3016
|
+
P.identify.bind(P);
|
3017
|
+
P.page.bind(P);
|
3018
|
+
var Yu = P.track.bind(P);
|
3019
|
+
P.alias.bind(P);
|
3020
|
+
P.group.bind(P);
|
3021
|
+
P.reset.bind(P);
|
3022
|
+
var Xu = P.load.bind(P);
|
3023
|
+
P.initialized = !0;
|
3024
|
+
P.getUserId.bind(P);
|
3025
|
+
P.getSessionId.bind(P);
|
3026
|
+
P.getUserTraits.bind(P);
|
3027
|
+
P.getAnonymousId.bind(P);
|
3028
|
+
P.setAnonymousId.bind(P);
|
3029
|
+
P.getGroupId.bind(P);
|
3030
|
+
P.getGroupTraits.bind(P);
|
3031
|
+
P.startSession.bind(P);
|
3032
|
+
P.endSession.bind(P);
|
3033
|
+
P.setAuthToken.bind(P);
|
3034
|
+
const Ju = {
|
3035
|
+
STAGING: "2R6llJi7YSuOeJToPXGlQfizt18",
|
3036
|
+
SANDBOX: "2R6mEpjiTJBErRIn724pt2MWyLA",
|
3037
|
+
LOCAL: "2QHmFAx84bL4Up6CDHRw0XkKJKC",
|
3038
|
+
LIVE: "2R6mT9xSJCcbvr6JkiEu7vbrUSW"
|
3039
|
+
}, Zu = "https://revolugohxxwg.dataplane.rudderstack.com", tc = window.RevolugoElements.config.apiEnvironment, ec = Ju[tc];
|
3040
|
+
try {
|
3041
|
+
Xu(ec, Zu);
|
3042
|
+
} catch (n) {
|
3043
|
+
console.error(n);
|
3044
|
+
}
|
3045
|
+
const yo = {
|
3046
|
+
startDate: {
|
3047
|
+
type: String
|
3048
|
+
},
|
3049
|
+
endDate: {
|
3050
|
+
type: String
|
3051
|
+
},
|
3052
|
+
roomCount: {
|
3053
|
+
type: Number
|
3054
|
+
},
|
3055
|
+
adultCount: {
|
3056
|
+
type: Number
|
3057
|
+
},
|
3058
|
+
location: {
|
3059
|
+
type: Object
|
3060
|
+
}
|
3061
|
+
}, nc = Mi.extend({
|
3062
|
+
name: "ContactForm",
|
3063
|
+
components: {
|
3064
|
+
BSearchLocationInput: ko,
|
3065
|
+
BPhoneInput: To
|
3066
|
+
},
|
3067
|
+
mixins: [Pr("components/RevolugoElements/ContactForm")],
|
3068
|
+
props: yo,
|
3069
|
+
data() {
|
3070
|
+
return {
|
3071
|
+
isFormValid: !1,
|
3072
|
+
isSubmitting: !1,
|
3073
|
+
isSuccess: !1,
|
3074
|
+
errorCode: "",
|
3075
|
+
menuStartDate: !1,
|
3076
|
+
menuEndDate: !1,
|
3077
|
+
formData: {
|
3078
|
+
email: "",
|
3079
|
+
phoneData: {
|
3080
|
+
phoneNumber: "",
|
3081
|
+
phoneCountry: "FR",
|
3082
|
+
phonePrefix: "+33"
|
3083
|
+
},
|
3084
|
+
startDate: this.startDate,
|
3085
|
+
endDate: this.endDate,
|
3086
|
+
adultCount: this.adultCount,
|
3087
|
+
roomCount: this.roomCount,
|
3088
|
+
location: this.location,
|
3089
|
+
specificRequest: ""
|
3090
|
+
},
|
3091
|
+
rules: {
|
3092
|
+
email: [
|
3093
|
+
(n) => Re.required(n) || this.$t("ContactForm.errors.requiredEmail"),
|
3094
|
+
(n) => Re.email(n) || this.$t("ContactForm.errors.invalidEmail")
|
3095
|
+
],
|
3096
|
+
adultCount: [
|
3097
|
+
(n) => Re.minCount(n, 1) || this.$t("ContactForm.errors.minAdultCount"),
|
3098
|
+
(n) => Re.maxCount(n, 400) || this.$t("ContactForm.errors.maxAdultCount")
|
3099
|
+
],
|
3100
|
+
roomCount: [
|
3101
|
+
(n) => Re.minCount(n, 1) || this.$t("ContactForm.errors.minRoomCount"),
|
3102
|
+
(n) => Re.maxCount(n, 100) || this.$t("ContactForm.errors.maxRoomCount")
|
3103
|
+
]
|
3104
|
+
}
|
3105
|
+
};
|
3106
|
+
},
|
3107
|
+
methods: {
|
3108
|
+
onSubmit() {
|
3109
|
+
var t;
|
3110
|
+
this.isSubmitting = !0;
|
3111
|
+
let n = "";
|
3112
|
+
(t = this.config) != null && t.eventMetadata && (n = this.config.eventMetadata.name, this.config.eventMetadata.slug && (n += ` ${this.config.eventMetadata.slug}`)), Yu(
|
3113
|
+
"accomodation-request",
|
3114
|
+
{
|
3115
|
+
data: {
|
3116
|
+
...this.formData,
|
3117
|
+
event: n
|
3118
|
+
}
|
3119
|
+
},
|
3120
|
+
() => {
|
3121
|
+
this.isSuccess = !0, this.isSubmitting = !1, this.$emit("accomodationSuccess");
|
3122
|
+
}
|
3123
|
+
);
|
3124
|
+
}
|
3125
|
+
}
|
3126
|
+
});
|
3127
|
+
var rc = function() {
|
3128
|
+
var t = this, e = t._self._c;
|
3129
|
+
return t._self._setupProxy, e("div", [e(Do, { model: { value: t.isFormValid, callback: function(r) {
|
3130
|
+
t.isFormValid = r;
|
3131
|
+
}, expression: "isFormValid" } }, [e($e, { attrs: { dense: "", label: t.$t("ContactForm.email"), outlined: "", required: "", rules: t.rules.email }, scopedSlots: t._u([{ key: "message", fn: function({ message: r }) {
|
3132
|
+
return [t._v(" " + t._s(t.$t(r)) + " ")];
|
3133
|
+
} }]), model: { value: t.formData.email, callback: function(r) {
|
3134
|
+
t.$set(t.formData, "email", r);
|
3135
|
+
}, expression: "formData.email" } }), e("b-phone-input", { staticClass: "mt-0", model: { value: t.formData.phoneData, callback: function(r) {
|
3136
|
+
t.$set(t.formData, "phoneData", r);
|
3137
|
+
}, expression: "formData.phoneData" } }), e($n, { staticClass: "mt-0" }, [e(Ke, [e(Gr, { attrs: { "close-on-content-click": !1, "min-width": "auto", "nudge-right": 40, "offset-y": "", transition: "scale-transition" }, scopedSlots: t._u([{ key: "activator", fn: function({ on: r, attrs: i }) {
|
3138
|
+
return [e($e, t._g(t._b({ attrs: { dense: "", "hide-details": "", label: t.$t("ContactForm.startDate"), outlined: "", readonly: "", required: "" }, model: { value: t.formData.startDate, callback: function(s) {
|
3139
|
+
t.$set(t.formData, "startDate", s);
|
3140
|
+
}, expression: "formData.startDate" } }, "v-text-field", i, !1), r))];
|
3141
|
+
} }]), model: { value: t.menuStartDate, callback: function(r) {
|
3142
|
+
t.menuStartDate = r;
|
3143
|
+
}, expression: "menuStartDate" } }, [e(Ur, { on: { input: function(r) {
|
3144
|
+
t.menuStartDate = !1;
|
3145
|
+
} }, model: { value: t.formData.startDate, callback: function(r) {
|
3146
|
+
t.$set(t.formData, "startDate", r);
|
3147
|
+
}, expression: "formData.startDate" } })], 1)], 1), e(Ke, [e(Gr, { attrs: { "close-on-content-click": !1, "min-width": "auto", "nudge-right": 40, "offset-y": "", transition: "scale-transition" }, scopedSlots: t._u([{ key: "activator", fn: function({ on: r, attrs: i }) {
|
3148
|
+
return [e($e, t._g(t._b({ attrs: { dense: "", "hide-details": "", label: t.$t("ContactForm.endDate"), outlined: "", readonly: "", required: "" }, model: { value: t.formData.endDate, callback: function(s) {
|
3149
|
+
t.$set(t.formData, "endDate", s);
|
3150
|
+
}, expression: "formData.endDate" } }, "v-text-field", i, !1), r))];
|
3151
|
+
} }]), model: { value: t.menuEndDate, callback: function(r) {
|
3152
|
+
t.menuEndDate = r;
|
3153
|
+
}, expression: "menuEndDate" } }, [e(Ur, { on: { input: function(r) {
|
3154
|
+
t.menuEndDate = !1;
|
3155
|
+
} }, model: { value: t.formData.endDate, callback: function(r) {
|
3156
|
+
t.$set(t.formData, "endDate", r);
|
3157
|
+
}, expression: "formData.endDate" } })], 1)], 1)], 1), e($n, [e(Ke, [e($e, { attrs: { dense: "", label: t.$t("ContactForm.adultCount"), max: "400", min: "1", outlined: "", required: "", rules: t.rules.adultCount, type: "number" }, model: { value: t.formData.adultCount, callback: function(r) {
|
3158
|
+
t.$set(t.formData, "adultCount", r);
|
3159
|
+
}, expression: "formData.adultCount" } })], 1), e(Ke, [e($e, { attrs: { dense: "", label: t.$t("ContactForm.roomCount"), max: "400", min: "1", outlined: "", required: "", rules: t.rules.roomCount, type: "number" }, model: { value: t.formData.roomCount, callback: function(r) {
|
3160
|
+
t.$set(t.formData, "roomCount", r);
|
3161
|
+
}, expression: "formData.roomCount" } })], 1)], 1), e("b-search-location-input", { attrs: { outlined: "", "with-details": "" }, model: { value: t.formData.location, callback: function(r) {
|
3162
|
+
t.$set(t.formData, "location", r);
|
3163
|
+
}, expression: "formData.location" } }), e(wo, { attrs: { dense: "", label: t.$t("ContactForm.specificRequest"), outlined: "" }, model: { value: t.formData.specificRequest, callback: function(r) {
|
3164
|
+
t.$set(t.formData, "specificRequest", r);
|
3165
|
+
}, expression: "formData.specificRequest" } }), e("div", { staticClass: "d-flex justify-end" }, [e(Lr, { attrs: { color: t.isSuccess ? "green" : "primary", "data-cy": "submit-button", disabled: !t.isFormValid || t.isSubmitting || t.isSuccess, loading: t.isSubmitting }, on: { click: function(r) {
|
3166
|
+
return t.onSubmit();
|
3167
|
+
} } }, [t._v(" " + t._s(t.$t("ContactForm.submit")) + " ")])], 1)], 1)], 1);
|
3168
|
+
}, ic = [], oc = /* @__PURE__ */ Dr(
|
3169
|
+
nc,
|
3170
|
+
rc,
|
3171
|
+
ic,
|
3172
|
+
!1,
|
3173
|
+
null,
|
3174
|
+
null,
|
3175
|
+
null,
|
3176
|
+
null
|
3177
|
+
);
|
3178
|
+
const sc = oc.exports, ac = {
|
3179
|
+
...yo,
|
3180
|
+
boilerplateSkeleton: {
|
3181
|
+
type: Boolean
|
3182
|
+
},
|
3183
|
+
itemCount: {
|
3184
|
+
type: Number,
|
3185
|
+
default: 3
|
3186
|
+
},
|
3187
|
+
type: {
|
3188
|
+
type: String
|
3189
|
+
},
|
3190
|
+
checkInDate: {
|
3191
|
+
type: String
|
3192
|
+
},
|
3193
|
+
checkOutDate: {
|
3194
|
+
type: String
|
3195
|
+
}
|
3196
|
+
}, uc = Mi.extend({
|
3197
|
+
name: "HotelOfferListEmpty",
|
3198
|
+
components: {
|
3199
|
+
BErrorOverlay: Po,
|
3200
|
+
HotelOfferItemLayout: xi,
|
3201
|
+
ContactForm: sc
|
3202
|
+
},
|
3203
|
+
mixins: [Pr("components/RevolugoElements/HotelOfferListEmpty"), Ni],
|
3204
|
+
props: ac,
|
3205
|
+
data() {
|
3206
|
+
return {
|
3207
|
+
typeData: this.type
|
3208
|
+
};
|
3209
|
+
},
|
3210
|
+
computed: {
|
3211
|
+
wording() {
|
3212
|
+
let n = {
|
3213
|
+
title: "",
|
3214
|
+
description: ""
|
3215
|
+
};
|
3216
|
+
if (this.typeData)
|
3217
|
+
switch (this.typeData) {
|
3218
|
+
case "internalError": {
|
3219
|
+
n = {
|
3220
|
+
title: this.$t("HotelOfferListEmpty.internalError.title"),
|
3221
|
+
description: this.$t(
|
3222
|
+
"HotelOfferListEmpty.internalError.description"
|
3223
|
+
)
|
3224
|
+
};
|
3225
|
+
break;
|
3226
|
+
}
|
3227
|
+
case "missingHotelOfferRequest": {
|
3228
|
+
n = {
|
3229
|
+
title: this.$t(
|
3230
|
+
"HotelOfferListEmpty.missingHotelOfferRequest.title"
|
3231
|
+
),
|
3232
|
+
description: this.$t(
|
3233
|
+
"HotelOfferListEmpty.missingHotelOfferRequest.description"
|
3234
|
+
)
|
3235
|
+
};
|
3236
|
+
break;
|
3237
|
+
}
|
3238
|
+
case "accomodationSuccess": {
|
3239
|
+
n = {
|
3240
|
+
title: this.$t("HotelOfferListEmpty.accomodationSuccess.title"),
|
3241
|
+
description: this.$t(
|
3242
|
+
"HotelOfferListEmpty.accomodationSuccess.description"
|
3243
|
+
)
|
3244
|
+
};
|
3245
|
+
break;
|
3246
|
+
}
|
3247
|
+
case "noResultsFiltered": {
|
3248
|
+
n = {
|
3249
|
+
title: this.$t("HotelOfferListEmpty.noResults.title"),
|
3250
|
+
description: this.$t(
|
3251
|
+
"HotelOfferListEmpty.noResultsFiltered.description"
|
3252
|
+
)
|
3253
|
+
};
|
3254
|
+
break;
|
3255
|
+
}
|
3256
|
+
default: {
|
3257
|
+
n = {
|
3258
|
+
title: this.$t("HotelOfferListEmpty.noResults.title"),
|
3259
|
+
description: this.$t("HotelOfferListEmpty.noResults.description")
|
3260
|
+
};
|
3261
|
+
break;
|
3262
|
+
}
|
3263
|
+
}
|
3264
|
+
return n;
|
3265
|
+
}
|
3266
|
+
},
|
3267
|
+
watch: {
|
3268
|
+
type: {
|
3269
|
+
immediate: !1,
|
3270
|
+
handler() {
|
3271
|
+
this.typeData = this.type;
|
3272
|
+
}
|
3273
|
+
}
|
3274
|
+
},
|
3275
|
+
methods: {
|
3276
|
+
onResetFilters() {
|
3277
|
+
this.$emit("reset-filters");
|
3278
|
+
}
|
3279
|
+
}
|
3280
|
+
});
|
3281
|
+
var cc = function() {
|
3282
|
+
var t = this, e = t._self._c;
|
3283
|
+
return t._self._setupProxy, e("div", { staticClass: "position-relative" }, [t._l(6, function(r) {
|
3284
|
+
return [e("hotel-offer-item-layout", { key: r, class: {
|
3285
|
+
"mt-0": r === 1,
|
3286
|
+
"mb-0": r === t.itemCount,
|
3287
|
+
"mb-2": t.$breakpointService.xs
|
3288
|
+
}, attrs: { boilerplate: t.boilerplateSkeleton } }), t.$breakpointService.xs ? t._e() : e(br, { key: r + "-divider" })];
|
3289
|
+
}), t.typeData ? e("b-error-overlay", { scopedSlots: t._u([{ key: "title", fn: function() {
|
3290
|
+
return [t._v(" " + t._s(t.wording.title) + " ")];
|
3291
|
+
}, proxy: !0 }, { key: "description", fn: function() {
|
3292
|
+
return [e("div", [e("p", [t._v(t._s(t.wording.description))]), t.typeData !== "noResultsFiltered" && t.typeData !== "accomodationSuccess" ? e("contact-form", { attrs: { "adult-count": t.adultCount, "end-date": t.checkOutDate, location: t.location, "room-count": t.roomCount, "start-date": t.checkInDate }, on: { accomodationSuccess: function(r) {
|
3293
|
+
t.typeData = "accomodationSuccess";
|
3294
|
+
} } }) : t._e(), t.typeData === "noResultsFiltered" ? e(Lr, { attrs: { color: "primary", outlined: "", small: "" }, on: { click: t.onResetFilters } }, [t._v(" " + t._s(t.$t("HotelOfferListEmpty.noResultsFiltered.reset")) + " ")]) : t._e()], 1)];
|
3295
|
+
}, proxy: !0 }], null, !1, 1267038487) }) : t._e()], 2);
|
3296
|
+
}, lc = [], fc = /* @__PURE__ */ Dr(
|
3297
|
+
uc,
|
3298
|
+
cc,
|
3299
|
+
lc,
|
3300
|
+
!1,
|
3301
|
+
null,
|
3302
|
+
null,
|
3303
|
+
null,
|
3304
|
+
null
|
3305
|
+
);
|
3306
|
+
const hc = fc.exports, dc = Bo(
|
3307
|
+
bo,
|
3308
|
+
xo({
|
3309
|
+
fallbackValue: {},
|
3310
|
+
propsName: "features"
|
3311
|
+
})
|
3312
|
+
).extend({
|
3313
|
+
name: "HotelOfferList",
|
3314
|
+
components: {
|
3315
|
+
BHotelOffersFilterBar: Oo,
|
3316
|
+
HotelOfferItem: _o,
|
3317
|
+
HotelOfferItemLayout: xi,
|
3318
|
+
HotelOfferListEmpty: hc,
|
3319
|
+
HotelRoomOfferList: Mo,
|
3320
|
+
TermsAndConditions: Fo
|
3321
|
+
},
|
3322
|
+
mixins: [
|
3323
|
+
Ni,
|
3324
|
+
Pr("components/RevolugoElements/HotelOfferList"),
|
3325
|
+
Co,
|
3326
|
+
No(
|
3327
|
+
["bookingApiClient", "config.currency", "config.lang"],
|
3328
|
+
"retrieveHotelOffers"
|
3329
|
+
)
|
3330
|
+
],
|
3331
|
+
store: Ao,
|
3332
|
+
props: Ho,
|
3333
|
+
computed: {
|
3334
|
+
areFiltersActive: jt("hotelOffers/areFiltersActive"),
|
3335
|
+
hasErrorHotelOffers: jt("hotelOffers/hasError"),
|
3336
|
+
hotelOffersCurrency: jt(
|
3337
|
+
"hotelOffers/hotelOffersCurrency"
|
3338
|
+
),
|
3339
|
+
isPollingHotelOffers: jt("hotelOffers/isPolling"),
|
3340
|
+
startingAfter: jt("hotelOffers/startingAfter"),
|
3341
|
+
filters: jt("hotelOffers/filters"),
|
3342
|
+
hotelOffers: jt("hotelOffers/hotelOffers"),
|
3343
|
+
hotelOfferRequest: jt("hotelOfferRequest"),
|
3344
|
+
displayFiltersMenu() {
|
3345
|
+
return !this.isHotelOfferRequestMissing && !!this.parsedFeatures.FiltersBar;
|
3346
|
+
},
|
3347
|
+
isTopPicksSelected() {
|
3348
|
+
var n;
|
3349
|
+
return ((n = this.filters.sort_by) == null ? void 0 : n.value) === vo.TopPicks;
|
3350
|
+
},
|
3351
|
+
showNoResultsMessage() {
|
3352
|
+
return !!this.hotelOfferRequest.id && !this.isPollingHotelOffers && Array.isArray(this.hotelOffers) && this.hotelOffers.length === 0;
|
3353
|
+
},
|
3354
|
+
showErrorMessage() {
|
3355
|
+
return this.hotelOfferRequest.hasError || this.hasErrorHotelOffers;
|
3356
|
+
},
|
3357
|
+
showSkeleton() {
|
3358
|
+
var n;
|
3359
|
+
return !this.hotelOfferRequest.id || this.hotelOfferRequest.isFetching || this.isPollingHotelOffers && (!this.hotelOffers || ((n = this.hotelOffers) == null ? void 0 : n.length) === 0);
|
3360
|
+
}
|
3361
|
+
},
|
3362
|
+
watch: {
|
3363
|
+
filters: {
|
3364
|
+
deep: !0,
|
3365
|
+
async handler(n, t) {
|
3366
|
+
Ro(n, t) || await this.retrieveHotelOffers();
|
3367
|
+
}
|
3368
|
+
},
|
3369
|
+
"hotelOfferRequest.id": {
|
3370
|
+
immediate: !0,
|
3371
|
+
handler() {
|
3372
|
+
this.$nextTick(async () => {
|
3373
|
+
await this.retrieveHotelOffers();
|
3374
|
+
});
|
3375
|
+
}
|
3376
|
+
},
|
3377
|
+
limit: {
|
3378
|
+
immediate: !0,
|
3379
|
+
handler() {
|
3380
|
+
this.$nextTick(async () => {
|
3381
|
+
await this.retrieveHotelOffers();
|
3382
|
+
});
|
3383
|
+
}
|
3384
|
+
}
|
3385
|
+
},
|
3386
|
+
methods: {
|
3387
|
+
onHotelOfferItemMouseover(n) {
|
3388
|
+
this.$emit("hotel-offer-item-mouseover", n);
|
3389
|
+
},
|
3390
|
+
onHotelOfferItemMouseleave() {
|
3391
|
+
this.$emit("hotel-offer-item-mouseleave");
|
3392
|
+
},
|
3393
|
+
async onResetFilters() {
|
3394
|
+
await Ve("hotelOffers/resetFilters");
|
3395
|
+
},
|
3396
|
+
async retrieveHotelOffers() {
|
3397
|
+
this.$refs["hotel-offer-list-container"].scrollTo({
|
3398
|
+
top: 0,
|
3399
|
+
behavior: "smooth"
|
3400
|
+
}), await Ve("hotelRoomOfferRequest/resetHotelRoomOfferRequests").then(() => Ve("hotelRoomOffers/resetHotelRoomOffers")).then(
|
3401
|
+
() => Ve("hotelOffers/retrieveHotelOffers", {
|
3402
|
+
hotelOfferRequestId: this.hotelOfferRequest.id,
|
3403
|
+
limit: this.limit
|
3404
|
+
})
|
3405
|
+
);
|
3406
|
+
},
|
3407
|
+
async onSeeMoreClick() {
|
3408
|
+
await Ve("hotelOffers/retrieveHotelOffers", {
|
3409
|
+
hotelOfferRequestId: this.hotelOfferRequest.id,
|
3410
|
+
limit: this.limit,
|
3411
|
+
startingAfter: this.startingAfter
|
3412
|
+
});
|
3413
|
+
}
|
3414
|
+
}
|
3415
|
+
});
|
3416
|
+
var pc = function() {
|
3417
|
+
var t = this, e = t._self._c;
|
3418
|
+
return t._self._setupProxy, e(Lo, { ref: "hotel-offer-list-container", staticClass: "pa-0 white", staticStyle: { "min-height": "500px" }, style: {
|
3419
|
+
height: t.parsedHeight,
|
3420
|
+
maxHeight: t.maxHeight,
|
3421
|
+
overflowY: "auto",
|
3422
|
+
overflowX: "hidden"
|
3423
|
+
} }, [t.displayFiltersMenu && t.isBookingApiClientDefined ? e($n, { staticClass: "pt-1", class: t.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : "", attrs: { "no-gutters": "" } }, [e(Ke, [e("b-hotel-offers-filter-bar"), t.$breakpointService.xs ? t._e() : e(br)], 1)], 1) : t._e(), e($n, { attrs: { "no-gutters": "" } }, [e(Ke, [t.showSkeleton ? [e("hotel-offer-list-empty")] : t.showErrorMessage ? [e("hotel-offer-list-empty", { attrs: { type: "internalError" } })] : t.showNoResultsMessage ? [e("hotel-offer-list-empty", { attrs: { address: t.hotelOfferRequest.address, "adult-count": t.hotelOfferRequest.adultCount, "check-in-date": t.hotelOfferRequest.checkInDate, "check-out-date": t.hotelOfferRequest.checkOutDate, latitude: t.hotelOfferRequest.latitude, longitude: t.hotelOfferRequest.longitude, "room-count": t.hotelOfferRequest.roomCount, "source-market": t.hotelOfferRequest.sourceMarket, type: "noResults" }, on: { "reset-filters": t.onResetFilters } })] : [e(Go, { directives: [{ name: "show", rawName: "v-show", value: t.loadingBarEnabled && t.isPollingHotelOffers, expression: "loadingBarEnabled && isPollingHotelOffers" }], attrs: { indeterminate: "" } }), t._l(t.hotelOffers, function(r, i) {
|
3424
|
+
var s;
|
3425
|
+
return [e("hotel-offer-item", { key: r.id, staticClass: "pr-3", class: {
|
3426
|
+
"mt-0": i === 0,
|
3427
|
+
"mb-0": i === t.hotelOffers.length - 1
|
3428
|
+
}, attrs: { features: t.parsedFeatures.HotelOfferItem, "hotel-offer": r, "single-offer": t.hotelRoomOffersLimit === 1 }, nativeOn: { mouseleave: function(u) {
|
3429
|
+
return t.onHotelOfferItemMouseleave.apply(null, arguments);
|
3430
|
+
}, mouseover: function(u) {
|
3431
|
+
return t.onHotelOfferItemMouseover(r);
|
3432
|
+
} } }, [(s = t.parsedFeatures.HotelOfferItem) != null && s.HotelRoomOfferList ? e("div", { staticClass: "mx-n2" }, [e("hotel-room-offer-list", { attrs: { "adult-count": t.hotelOfferRequest.adultCount, "check-in-date": t.hotelOfferRequest.checkInDate, "check-out-date": t.hotelOfferRequest.checkOutDate, children: t.hotelOfferRequest.children, "hotel-id": r.id, "hotel-timezone": r.timezone, limit: t.hotelRoomOffersLimit, "room-count": t.hotelOfferRequest.roomCount, "source-market": t.hotelOfferRequest.sourceMarket } })], 1) : t._e()]), e(br, { key: r.id + "-divider" })];
|
3433
|
+
}), t.startingAfter ? e("div", { staticClass: "d-flex justify-center align-center py-3" }, [e(Lr, { attrs: { color: "primary", depressed: "", disabled: t.isPollingHotelOffers || !t.startingAfter, loading: t.isPollingHotelOffers }, on: { click: t.onSeeMoreClick } }, [t._v(" " + t._s(t.$t("HotelOfferList.showMore")) + " ")])], 1) : t._e()]], 2)], 1), t.parsedFeatures.TermsAndConditionsFooter ? e("terms-and-conditions", { attrs: { theme: "light" } }) : t._e()], 1);
|
3434
|
+
}, gc = [], mc = /* @__PURE__ */ Dr(
|
3435
|
+
dc,
|
3436
|
+
pc,
|
3437
|
+
gc,
|
3438
|
+
!1,
|
3439
|
+
null,
|
3440
|
+
null,
|
3441
|
+
null,
|
3442
|
+
null
|
3443
|
+
);
|
3444
|
+
const Bc = mc.exports;
|
3445
|
+
export {
|
3446
|
+
Bc as H,
|
3447
|
+
Uo as a,
|
3448
|
+
Ho as h
|
3449
|
+
};
|
3450
|
+
//# sourceMappingURL=revolugo.hotelofferlist.D91DAfo1.min.js.map
|