@revolugo/elements 5.23.2 → 5.23.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/revolugo.bhotelsearchbar.DHDSlZcq.css +1 -0
- package/dist/index.es.min.js +847 -845
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +30 -29
- package/dist/index.min.js.map +1 -1
- package/dist/{revolugo.bhotelsearchbar.D93xEM2k.min.js → revolugo.bhotelsearchbar.CX1UVhVD.min.js} +15 -15
- package/dist/{revolugo.fastbookingflow.IR4sf7sM.min.js → revolugo.fastbookingflow.ZDMgVKNf.min.js} +9 -8
- package/dist/{revolugo.fullbookingflow.UGxSjnrU.min.js → revolugo.fullbookingflow.DizeV_Wm.min.js} +4 -4
- package/dist/{revolugo.hotelofferlist.C9p28YSh.min.js → revolugo.hotelofferlist.CBPL81ft.min.js} +466 -461
- package/dist/{revolugo.hotelofferlist.BF1-Ptnw.min.js → revolugo.hotelofferlist.Cmkj4owr.min.js} +2 -2
- package/dist/{revolugo.hoteloffersearchmenu.CDOlZLhP.min.js → revolugo.hoteloffersearchmenu.Ml3NdZaU.min.js} +2 -2
- package/dist/{revolugo.hoteloffersmap.BOZJz6_T.min.js → revolugo.hoteloffersmap.CdE7rKlp.min.js} +2 -2
- package/dist/{revolugo.hoteloffersmap.BuCtH7eo.min.js → revolugo.hoteloffersmap.DIE6zd6C.min.js} +2 -2
- package/dist/{revolugo.hoteloffersview.fyE6vGfM.min.js → revolugo.hoteloffersview.Ci6J3bNB.min.js} +2 -2
- package/dist/{revolugo.hoteloffersview.8pNgYCa4.min.js → revolugo.hoteloffersview.D7WuWY2a.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersbookingflow.DoOadma7.min.js → revolugo.hotelroomoffersbookingflow.C5NkifWW.min.js} +2 -2
- package/dist/{revolugo.hotelroomoffersearchmenu.CHrfuGXA.min.js → revolugo.hotelroomoffersearchmenu.DWdBjuJC.min.js} +2 -2
- package/dist/{revolugo.hotelroomoffersearchmenu.C3zrpvGp.min.js → revolugo.hotelroomoffersearchmenu.DfGrJz-y.min.js} +2 -2
- package/dist/{revolugo.hotelroomoffersview.BctF7y5C.min.js → revolugo.hotelroomoffersview.DA5oUzV2.min.js} +2 -2
- package/dist/{revolugo.hotelroomoffersview.D0cXCGCF.min.js → revolugo.hotelroomoffersview.aAFL4XQu.min.js} +2 -2
- package/dist/revolugo.min.js +10 -10
- package/dist/{revolugo.parsed-height.CsGkSuTU.min.js → revolugo.parsed-height.BGOJE97O.min.js} +2 -2
- package/package.json +4 -4
- package/dist/css/revolugo.bhotelsearchbar.D4kotShA.css +0 -1
package/dist/{revolugo.hotelofferlist.C9p28YSh.min.js → revolugo.hotelofferlist.CBPL81ft.min.js}
RENAMED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { a as Vi } from "./revolugo.booking-api-client.BCKZqfWj.min.js";
|
2
2
|
import { a as $i, g as Ee, d as lt } from "./revolugo.store.BFX4bNHv.min.js";
|
3
3
|
import { h as Wi, H as Yi } from "./revolugo.hotelofferrequestcreator.CJfHHVD0.min.js";
|
4
|
-
import { H as Xi, B as Ji, b as Zi, c as eo, p as to } from "./revolugo.parsed-height.
|
4
|
+
import { H as Xi, B as Ji, b as Zi, c as eo, p as to } from "./revolugo.parsed-height.BGOJE97O.min.js";
|
5
5
|
import { H as li } from "./revolugo.hotelofferitemlayout.C7dHkYAZ.min.js";
|
6
|
-
import { Y as no, V as fi, Z as
|
6
|
+
import { Y as no, V as fi, Z as Ye, a as ro } from "./revolugo.i18n.DJp1BJZl.min.js";
|
7
7
|
import { B as io, _ as oo } from "./revolugo.bphoneinput.BiLTXs4Q.min.js";
|
8
|
-
import { l as Jn, n as Zn, _ as
|
8
|
+
import { l as Jn, n as Zn, _ as Ct, a as Qe, B as so } from "./revolugo.webcomponentwrapper.d0YeBVme.min.js";
|
9
9
|
import { _ as ao } from "./revolugo.vform.JCmOGsze.min.js";
|
10
10
|
import { _ as ft } from "./revolugo.vtextfield.C-XlJvCY.min.js";
|
11
11
|
import { _ as cr } from "./revolugo.vmenu.CRGzwCqR.min.js";
|
@@ -14,18 +14,20 @@ import { _ as er } from "./revolugo.vbtn.CYlzSTnJ.min.js";
|
|
14
14
|
import { b as hi } from "./revolugo.breakpoint-service.CHVSQIOe.min.js";
|
15
15
|
import { _ as Kn, p as co } from "./revolugo.parsed-props.I_cYKLdb.min.js";
|
16
16
|
import { H as lo } from "./revolugo.hotelroomofferlist.Xv2EZvEV.min.js";
|
17
|
-
import {
|
18
|
-
import {
|
19
|
-
import {
|
20
|
-
import {
|
21
|
-
|
17
|
+
import { B as fo } from "./revolugo.bhotelsearchbar.CX1UVhVD.min.js";
|
18
|
+
import { w as ho } from "./revolugo.watch-list.D1gPD-hg.min.js";
|
19
|
+
import { t as po } from "./revolugo.typed-mixins.DP8MlXy7.min.js";
|
20
|
+
import { T as go } from "./revolugo.termsandconditions.C0tZ8JDu.min.js";
|
21
|
+
import { _ as mo } from "./revolugo.index.DUTng9Gn.min.js";
|
22
|
+
const yo = {
|
22
23
|
FiltersBar: !0,
|
24
|
+
HotelOfferSearchMenu: !1,
|
23
25
|
TermsAndConditionsFooter: !0,
|
24
26
|
HotelOfferItem: Xi
|
25
|
-
},
|
27
|
+
}, vo = {
|
26
28
|
...Wi,
|
27
29
|
features: {
|
28
|
-
default: () =>
|
30
|
+
default: () => yo,
|
29
31
|
type: [Object, String]
|
30
32
|
},
|
31
33
|
height: {
|
@@ -86,38 +88,38 @@ function di(n) {
|
|
86
88
|
}(n, "string");
|
87
89
|
return typeof e == "symbol" ? e : String(e);
|
88
90
|
}
|
89
|
-
function
|
90
|
-
return
|
91
|
+
function L(n) {
|
92
|
+
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
91
93
|
return typeof e;
|
92
94
|
} : function(e) {
|
93
95
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
94
|
-
},
|
96
|
+
}, L(n);
|
95
97
|
}
|
96
|
-
function
|
98
|
+
function F(n, e) {
|
97
99
|
if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
|
98
100
|
}
|
99
|
-
function
|
101
|
+
function bo(n, e) {
|
100
102
|
for (var t = 0; t < e.length; t++) {
|
101
103
|
var r = e[t];
|
102
104
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, di(r.key), r);
|
103
105
|
}
|
104
106
|
}
|
105
107
|
function N(n, e, t) {
|
106
|
-
return e &&
|
108
|
+
return e && bo(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
107
109
|
}
|
108
110
|
function i(n, e, t) {
|
109
111
|
return (e = di(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
110
112
|
}
|
111
|
-
function
|
112
|
-
return
|
113
|
+
function We() {
|
114
|
+
return We = Object.assign ? Object.assign.bind() : function(n) {
|
113
115
|
for (var e = 1; e < arguments.length; e++) {
|
114
116
|
var t = arguments[e];
|
115
117
|
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
116
118
|
}
|
117
119
|
return n;
|
118
|
-
},
|
120
|
+
}, We.apply(this, arguments);
|
119
121
|
}
|
120
|
-
function
|
122
|
+
function ko(n, e) {
|
121
123
|
return function(t) {
|
122
124
|
if (Array.isArray(t)) return t;
|
123
125
|
}(n) || function(t, r) {
|
@@ -200,14 +202,14 @@ var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
200
202
|
function ve(n) {
|
201
203
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
202
204
|
}
|
203
|
-
function
|
205
|
+
function Io(n) {
|
204
206
|
return n && Object.prototype.hasOwnProperty.call(n, "default") && Object.keys(n).length === 1 ? n.default : n;
|
205
207
|
}
|
206
208
|
var pi = { exports: {} };
|
207
209
|
(function(n) {
|
208
210
|
function e(t) {
|
209
211
|
if (t) return function(r) {
|
210
|
-
return
|
212
|
+
return We(r, e.prototype), r._callbacks = /* @__PURE__ */ new Map(), r;
|
211
213
|
}(t);
|
212
214
|
this._callbacks = /* @__PURE__ */ new Map();
|
213
215
|
}
|
@@ -229,7 +231,7 @@ var pi = { exports: {} };
|
|
229
231
|
var s, u = bn(o.entries());
|
230
232
|
try {
|
231
233
|
for (u.s(); !(s = u.n()).done; ) {
|
232
|
-
var a =
|
234
|
+
var a = ko(s.value, 2), c = a[0], l = a[1];
|
233
235
|
if (l === r || l.fn === r) {
|
234
236
|
o.splice(c, 1);
|
235
237
|
break;
|
@@ -277,28 +279,28 @@ var pi = { exports: {} };
|
|
277
279
|
return this.listenerCount(t) > 0;
|
278
280
|
}, e.prototype.addEventListener = e.prototype.on, e.prototype.removeListener = e.prototype.off, e.prototype.removeEventListener = e.prototype.off, e.prototype.removeAllListeners = e.prototype.off, n.exports = e;
|
279
281
|
})(pi);
|
280
|
-
var
|
281
|
-
function
|
282
|
-
return n != null &&
|
282
|
+
var Ao = ve(pi.exports);
|
283
|
+
function B(n) {
|
284
|
+
return n != null && L(n) === "object" && n["@@functional/placeholder"] === !0;
|
283
285
|
}
|
284
286
|
function me(n) {
|
285
287
|
return function e(t) {
|
286
|
-
return arguments.length === 0 ||
|
288
|
+
return arguments.length === 0 || B(t) ? e : n.apply(this, arguments);
|
287
289
|
};
|
288
290
|
}
|
289
|
-
function
|
291
|
+
function Xe(n) {
|
290
292
|
return function e(t, r) {
|
291
293
|
switch (arguments.length) {
|
292
294
|
case 0:
|
293
295
|
return e;
|
294
296
|
case 1:
|
295
|
-
return
|
297
|
+
return B(t) ? e : me(function(o) {
|
296
298
|
return n(t, o);
|
297
299
|
});
|
298
300
|
default:
|
299
|
-
return
|
301
|
+
return B(t) && B(r) ? e : B(t) ? me(function(o) {
|
300
302
|
return n(o, r);
|
301
|
-
}) :
|
303
|
+
}) : B(r) ? me(function(o) {
|
302
304
|
return n(t, o);
|
303
305
|
}) : n(t, r);
|
304
306
|
}
|
@@ -310,46 +312,46 @@ function nr(n) {
|
|
310
312
|
case 0:
|
311
313
|
return e;
|
312
314
|
case 1:
|
313
|
-
return
|
315
|
+
return B(t) ? e : Xe(function(s, u) {
|
314
316
|
return n(t, s, u);
|
315
317
|
});
|
316
318
|
case 2:
|
317
|
-
return
|
319
|
+
return B(t) && B(r) ? e : B(t) ? Xe(function(s, u) {
|
318
320
|
return n(s, r, u);
|
319
|
-
}) :
|
321
|
+
}) : B(r) ? Xe(function(s, u) {
|
320
322
|
return n(t, s, u);
|
321
323
|
}) : me(function(s) {
|
322
324
|
return n(t, r, s);
|
323
325
|
});
|
324
326
|
default:
|
325
|
-
return
|
327
|
+
return B(t) && B(r) && B(o) ? e : B(t) && B(r) ? Xe(function(s, u) {
|
326
328
|
return n(s, u, o);
|
327
|
-
}) :
|
329
|
+
}) : B(t) && B(o) ? Xe(function(s, u) {
|
328
330
|
return n(s, r, u);
|
329
|
-
}) :
|
331
|
+
}) : B(r) && B(o) ? Xe(function(s, u) {
|
330
332
|
return n(t, s, u);
|
331
|
-
}) :
|
333
|
+
}) : B(t) ? me(function(s) {
|
332
334
|
return n(s, r, o);
|
333
|
-
}) :
|
335
|
+
}) : B(r) ? me(function(s) {
|
334
336
|
return n(t, s, o);
|
335
|
-
}) :
|
337
|
+
}) : B(o) ? me(function(s) {
|
336
338
|
return n(t, r, s);
|
337
339
|
}) : n(t, r, o);
|
338
340
|
}
|
339
341
|
};
|
340
342
|
}
|
341
|
-
function
|
343
|
+
function Tt(n, e) {
|
342
344
|
return Object.prototype.hasOwnProperty.call(e, n);
|
343
345
|
}
|
344
|
-
var
|
346
|
+
var Eo = me(function(n) {
|
345
347
|
return n === null ? "Null" : n === void 0 ? "Undefined" : Object.prototype.toString.call(n).slice(8, -1);
|
346
348
|
});
|
347
349
|
function hr(n) {
|
348
350
|
return Object.prototype.toString.call(n) === "[object Object]";
|
349
351
|
}
|
350
352
|
function gi(n, e, t) {
|
351
|
-
if (t || (t = new
|
352
|
-
var u =
|
353
|
+
if (t || (t = new Co()), function(s) {
|
354
|
+
var u = L(s);
|
353
355
|
return s == null || u != "object" && u != "function";
|
354
356
|
}(n)) return n;
|
355
357
|
var r, o = function(s) {
|
@@ -358,7 +360,7 @@ function gi(n, e, t) {
|
|
358
360
|
for (var a in t.set(n, s), n) Object.prototype.hasOwnProperty.call(n, a) && (s[a] = gi(n[a], !0, t));
|
359
361
|
return s;
|
360
362
|
};
|
361
|
-
switch (
|
363
|
+
switch (Eo(n)) {
|
362
364
|
case "Object":
|
363
365
|
return o(Object.create(Object.getPrototypeOf(n)));
|
364
366
|
case "Array":
|
@@ -383,7 +385,7 @@ function gi(n, e, t) {
|
|
383
385
|
return n;
|
384
386
|
}
|
385
387
|
}
|
386
|
-
var
|
388
|
+
var Co = function() {
|
387
389
|
function n() {
|
388
390
|
this.map = {}, this.length = 0;
|
389
391
|
}
|
@@ -409,202 +411,202 @@ var Eo = function() {
|
|
409
411
|
}, n;
|
410
412
|
}(), U = me(function(n) {
|
411
413
|
return n != null && typeof n.clone == "function" ? n.clone() : gi(n);
|
412
|
-
}),
|
414
|
+
}), Oo = nr(function(n, e, t) {
|
413
415
|
var r, o = {};
|
414
|
-
for (r in t = t || {}, e = e || {})
|
415
|
-
for (r in t)
|
416
|
+
for (r in t = t || {}, e = e || {}) Tt(r, e) && (o[r] = Tt(r, t) ? n(r, e[r], t[r]) : e[r]);
|
417
|
+
for (r in t) Tt(r, t) && !Tt(r, o) && (o[r] = t[r]);
|
416
418
|
return o;
|
417
|
-
}),
|
418
|
-
return
|
419
|
+
}), _o = nr(function n(e, t, r) {
|
420
|
+
return Oo(function(o, s, u) {
|
419
421
|
return hr(s) && hr(u) ? n(e, s, u) : e(o, s, u);
|
420
422
|
}, t, r);
|
421
|
-
}),
|
422
|
-
return
|
423
|
+
}), So = nr(function(n, e, t) {
|
424
|
+
return _o(function(r, o, s) {
|
423
425
|
return n(o, s);
|
424
426
|
}, e, t);
|
425
|
-
}),
|
427
|
+
}), ze = { 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", TIKTOK_ADS: "TiktokAds", ACTIVE_CAMPAIGN: "ActiveCampaign", SPRIG: "Sprig", SPOTIFYPIXEL: "SpotifyPixel", COMMANDBAR: "CommandBar", NINETAILED: "Ninetailed" }, X = "ADOBE_ANALYTICS";
|
426
428
|
i({}, "Adobe Analytics", "AdobeAnalytics");
|
427
|
-
var
|
429
|
+
var wo = i(i(i(i(i(i({ "Adobe Analytics": X, ADOBEANALYTICS: X, "ADOBE ANALYTICS": X }, X, X), "AdobeAnalytics", X), "adobeanalytics", X), "adobe analytics", X), "Adobe analytics", X), "adobe Analytics", X), ht = "AM";
|
428
430
|
i({}, "Amplitude", "Amplitude");
|
429
|
-
var
|
431
|
+
var To = i(i(i(i({}, ht, ht), "AMPLITUDE", ht), "Amplitude", ht), "am", ht), dt = "APPCUES";
|
430
432
|
i({}, "Appcues", "Appcues");
|
431
|
-
var
|
433
|
+
var Ro = i(i(i(i({}, dt, dt), "Appcues", dt), "App Cues", dt), "appcues", dt), Ce = "BINGADS";
|
432
434
|
i({}, "Bing Ads", "BingAds");
|
433
|
-
var
|
435
|
+
var Po = i(i(i(i(i(i(i({}, Ce, Ce), "BingAds", Ce), "bingads", Ce), "Bing Ads", Ce), "Bing ads", Ce), "bing Ads", Ce), "bing ads", Ce), Rt = "BRAZE";
|
434
436
|
i({}, "Braze", "Braze");
|
435
|
-
var
|
437
|
+
var Do = i(i(i({}, Rt, Rt), "Braze", Rt), "braze", Rt), Pt = "BUGSNAG";
|
436
438
|
i({}, "Bugsnag", "Bugsnag");
|
437
|
-
var
|
439
|
+
var xo = i(i(i({}, Pt, Pt), "bugsnag", Pt), "Bugsnag", Pt), Je = "CHARTBEAT";
|
438
440
|
i({}, "Chartbeat", "Chartbeat");
|
439
|
-
var Lo = i(i(i(i(i({},
|
441
|
+
var Lo = i(i(i(i(i({}, Je, Je), "Chartbeat", Je), "chartbeat", Je), "Chart Beat", Je), "chart beat", Je), Dt = "CLEVERTAP";
|
440
442
|
i({}, "CleverTap", "Clevertap");
|
441
|
-
var
|
443
|
+
var Mo = i(i(i({}, Dt, Dt), "Clevertap", Dt), "clevertap", Dt), Ne = "COMSCORE";
|
442
444
|
i({}, "Comscore", "Comscore");
|
443
|
-
var
|
445
|
+
var Bo = i(i(i(i(i(i({}, Ne, Ne), "Comscore", Ne), "Com Score", Ne), "com Score", Ne), "com score", Ne), "Com score", Ne), xt = "CRITEO";
|
444
446
|
i({}, "Criteo", "Criteo");
|
445
|
-
var Fo = i(i(i({},
|
447
|
+
var Fo = i(i(i({}, xt, xt), "Criteo", xt), "criteo", xt), Ze = "CUSTOMERIO";
|
446
448
|
i({}, "Customer IO", "CustomerIO");
|
447
|
-
var
|
449
|
+
var No = i(i(i(i(i({}, Ze, Ze), "Customerio", Ze), "Customer.io", Ze), "CUSTOMER.IO", Ze), "customer.io", Ze), Lt = "DRIP";
|
448
450
|
i({}, "Drip", "Drip");
|
449
|
-
var
|
451
|
+
var Go = i(i(i({}, Lt, Lt), "Drip", Lt), "drip", Lt), Oe = "FACEBOOK_PIXEL";
|
450
452
|
i({}, "Facebook Pixel", "FacebookPixel");
|
451
|
-
var
|
453
|
+
var Uo = i(i(i(i(i(i(i({}, Oe, Oe), "FB Pixel", Oe), "Facebook Pixel", Oe), "facebook pixel", Oe), "fbpixel", Oe), "FBPIXEL", Oe), "FB_PIXEL", Oe), oe = "FULLSTORY";
|
452
454
|
i({}, "Fullstory", "Fullstory");
|
453
|
-
var
|
455
|
+
var jo = i(i(i(i(i(i(i(i({}, oe, oe), "Fullstory", oe), "FullStory", oe), "full Story", oe), "Full Story", oe), "Full story", oe), "full story", oe), "fullstory", oe), et = "GA";
|
454
456
|
i({}, "Google Analytics", "GA");
|
455
|
-
var
|
457
|
+
var Ho = i(i(i(i(i({}, et, et), "Google Analytics", et), "GoogleAnalytics", et), "GOOGLE ANALYTICS", et), "google analytics", et), $ = "GA4";
|
456
458
|
i({}, "Google Analytics 4 (GA4)", "GA4");
|
457
|
-
var
|
459
|
+
var qo = i(i(i(i(i(i(i(i(i(i({}, $, $), "Google Analytics 4", $), "Google analytics 4", $), "google analytics 4", $), "Google Analytics4", $), "Google analytics4", $), "google analytics4", $), "Google Analytics 4 (GA4)", $), "google analytics 4 (ga4)", $), "GoogleAnalytics4", $), Ge = "GOOGLEADS";
|
458
460
|
i({}, "Google Ads", "GoogleAds");
|
459
|
-
var
|
461
|
+
var Ko = i(i(i(i(i(i({}, Ge, Ge), "Google Ads", Ge), "GoogleAds", Ge), "GOOGLE ADS", Ge), "google ads", Ge), "googleads", Ge), se = "GOOGLE_OPTIMIZE";
|
460
462
|
i({}, "Google Optimize", "GoogleOptimize");
|
461
|
-
var
|
463
|
+
var Qo = i(i(i(i(i(i(i(i({}, se, se), "Google Optimize", se), "GoogleOptimize", se), "Googleoptimize", se), "GOOGLEOPTIMIZE", se), "google optimize", se), "Google optimize", se), "GOOGLE OPTIMIZE", se), tt = "GTM";
|
462
464
|
i({}, "Google Tag Manager", "GoogleTagManager");
|
463
|
-
var
|
465
|
+
var zo = i(i(i(i(i({}, tt, tt), "Google Tag Manager", tt), "google tag manager", tt), "googletag manager", tt), "googletagmanager", tt), pt = "HEAP";
|
464
466
|
i({}, "Heap.io", "Heap");
|
465
|
-
var
|
467
|
+
var Vo = i(i(i(i({}, pt, pt), "Heap", pt), "heap", pt), "Heap.io", pt), nt = "HOTJAR";
|
466
468
|
i({}, "Hotjar", "Hotjar");
|
467
|
-
var
|
469
|
+
var $o = i(i(i(i(i({}, nt, nt), "Hotjar", nt), "hotjar", nt), "Hot Jar", nt), "hot jar", nt), Ue = "HS";
|
468
470
|
i({}, "HubSpot", "HubSpot");
|
469
|
-
var
|
471
|
+
var Wo = i(i(i(i(i(i({}, Ue, Ue), "Hubspot", Ue), "HUBSPOT", Ue), "hub spot", Ue), "Hub Spot", Ue), "Hub spot", Ue), Mt = "INTERCOM";
|
470
472
|
i({}, "Intercom", "INTERCOM");
|
471
|
-
var
|
473
|
+
var Yo = i(i(i({}, Mt, Mt), "Intercom", Mt), "intercom", Mt), rt = "KEEN";
|
472
474
|
i({}, "Keen", "Keen");
|
473
|
-
var
|
475
|
+
var Xo = i(i(i(i(i({}, rt, rt), "Keen", rt), "Keen.io", rt), "keen", rt), "keen.io", rt), Bt = "KISSMETRICS";
|
474
476
|
i({}, "Kiss Metrics", "Kissmetrics");
|
475
|
-
var
|
477
|
+
var Jo = i(i(i({}, Bt, Bt), "Kissmetrics", Bt), "kissmetrics", Bt), Ft = "KLAVIYO";
|
476
478
|
i({}, "Klaviyo", "Klaviyo");
|
477
|
-
var
|
479
|
+
var Zo = i(i(i({}, Ft, Ft), "Klaviyo", Ft), "klaviyo", Ft), je = "LAUNCHDARKLY";
|
478
480
|
i({}, "LaunchDarkly", "LaunchDarkly");
|
479
|
-
var dr,
|
481
|
+
var dr, es = i(i(i(i(i(i({}, je, je), "LaunchDarkly", je), "Launch_Darkly", je), "Launch Darkly", je), "launchDarkly", je), "launch darkly", je), z = "LINKEDIN_INSIGHT_TAG";
|
480
482
|
i({}, "Linkedin Insight Tag", "LinkedInInsightTag");
|
481
|
-
var
|
483
|
+
var ts = (i(i(i(i(i(i(i(i(i(i(dr = {}, z, z), "LinkedIn Insight Tag", z), "LinkedIn insight tag", z), "linkedIn insight tag", z), "Linkedin_insight_tag", z), "LinkedinInsighttag", z), "LinkedinInsightTag", z), "LinkedInInsightTag", z), "Linkedininsighttag", z), "LINKEDININSIGHTTAG", z), i(dr, "linkedininsighttag", z)), Nt = "LOTAME";
|
482
484
|
i({}, "Lotame", "Lotame");
|
483
|
-
var
|
485
|
+
var ns = i(i(i({}, Nt, Nt), "Lotame", Nt), "lotame", Nt), Gt = "LYTICS";
|
484
486
|
i({}, "Lytics", "Lytics");
|
485
|
-
var
|
487
|
+
var rs = i(i(i({}, Gt, Gt), "Lytics", Gt), "lytics", Gt), He = "MP";
|
486
488
|
i({}, "Mixpanel", "Mixpanel");
|
487
|
-
var
|
489
|
+
var is = i(i(i(i(i(i({}, He, He), "MIXPANEL", He), "Mixpanel", He), "MIX PANEL", He), "Mix panel", He), "Mix Panel", He), _e = "MOENGAGE";
|
488
490
|
i({}, "MoEngage", "MoEngage");
|
489
|
-
var
|
491
|
+
var os = i(i(i(i(i(i(i({}, _e, _e), "MoEngage", _e), "moengage", _e), "Moengage", _e), "Mo Engage", _e), "mo engage", _e), "Mo engage", _e), Ut = "OPTIMIZELY";
|
490
492
|
i({}, "Optimizely Web", "Optimizely");
|
491
|
-
var
|
493
|
+
var ss = i(i(i({}, Ut, Ut), "Optimizely", Ut), "optimizely", Ut), jt = "PENDO";
|
492
494
|
i({}, "Pendo", "Pendo");
|
493
|
-
var pr,
|
495
|
+
var pr, as = i(i(i({}, jt, jt), "Pendo", jt), "pendo", jt), j = "PINTEREST_TAG";
|
494
496
|
i({}, "Pinterest Tag", "PinterestTag");
|
495
|
-
var
|
497
|
+
var us = (i(i(i(i(i(i(i(i(i(i(pr = {}, j, j), "PinterestTag", j), "Pinterest_Tag", j), "PINTERESTTAG", j), "pinterest", j), "PinterestAds", j), "Pinterest_Ads", j), "Pinterest", j), "Pinterest Tag", j), "Pinterest tag", j), i(i(i(i(pr, "PINTEREST TAG", j), "pinterest tag", j), "Pinterest Ads", j), "Pinterest ads", j)), ae = "POST_AFFILIATE_PRO";
|
496
498
|
i({}, "Post Affiliate Pro", "PostAffiliatePro");
|
497
|
-
var
|
499
|
+
var cs = i(i(i(i(i(i(i(i({}, ae, ae), "PostAffiliatePro", ae), "Post_affiliate_pro", ae), "Post Affiliate Pro", ae), "Post affiliate pro", ae), "post affiliate pro", ae), "postaffiliatepro", ae), "POSTAFFILIATEPRO", ae), Se = "POSTHOG";
|
498
500
|
i({}, "PostHog", "Posthog");
|
499
|
-
var
|
501
|
+
var ls = i(i(i(i(i(i(i({}, Se, Se), "PostHog", Se), "Posthog", Se), "posthog", Se), "Post Hog", Se), "Post hog", Se), "post hog", Se), we = "PROFITWELL";
|
500
502
|
i({}, "ProfitWell", "ProfitWell");
|
501
|
-
var
|
503
|
+
var fs = i(i(i(i(i(i(i({}, we, we), "ProfitWell", we), "profitwell", we), "Profitwell", we), "Profit Well", we), "profit well", we), "Profit well", we), Ht = "QUALTRICS";
|
502
504
|
i({}, "Qualtrics", "Qualtrics");
|
503
|
-
var
|
505
|
+
var hs = i(i(i({}, Ht, Ht), "Qualtrics", Ht), "qualtrics", Ht), ue = "QUANTUMMETRIC";
|
504
506
|
i({}, "Quantum Metric", "QuantumMetric");
|
505
|
-
var
|
507
|
+
var ds = i(i(i(i(i(i(i(i({}, ue, ue), "Quantum Metric", ue), "quantum Metric", ue), "quantum metric", ue), "QuantumMetric", ue), "quantumMetric", ue), "quantummetric", ue), "Quantum_Metric", ue), ce = "REDDIT_PIXEL";
|
506
508
|
i({}, "Reddit Pixel", "RedditPixel");
|
507
|
-
var
|
509
|
+
var ps = i(i(i(i(i(i(i(i({}, ce, ce), "Reddit_Pixel", ce), "RedditPixel", ce), "REDDITPIXEL", ce), "redditpixel", ce), "Reddit Pixel", ce), "REDDIT PIXEL", ce), "reddit pixel", ce), qt = "SENTRY";
|
508
510
|
i({}, "Sentry", "Sentry");
|
509
|
-
var
|
511
|
+
var gs = i(i(i({}, qt, qt), "sentry", qt), "Sentry", qt), le = "SNAP_PIXEL";
|
510
512
|
i({}, "Snap Pixel", "SnapPixel");
|
511
|
-
var
|
513
|
+
var ms = i(i(i(i(i(i(i(i({}, le, le), "Snap_Pixel", le), "SnapPixel", le), "SNAPPIXEL", le), "snappixel", le), "Snap Pixel", le), "SNAP PIXEL", le), "snap pixel", le), J = "TVSQUARED";
|
512
514
|
i({}, "TVSquared", "TVSquared");
|
513
|
-
var
|
515
|
+
var ys = i(i(i(i(i(i(i(i(i({}, J, J), "TVSquared", J), "tvsquared", J), "tvSquared", J), "TvSquared", J), "Tvsquared", J), "TV Squared", J), "tv squared", J), "tv Squared", J), fe = "VWO";
|
514
516
|
i({}, "VWO", "VWO");
|
515
|
-
var
|
517
|
+
var vs = i(i(i(i(i(i(i(i({}, fe, fe), "VisualWebsiteOptimizer", fe), "Visualwebsiteoptimizer", fe), "visualwebsiteoptimizer", fe), "vwo", fe), "Visual Website Optimizer", fe), "Visual website optimizer", fe), "visual website optimizer", fe), Z = "GA360";
|
516
518
|
i({}, "Google Analytics 360", "GA360");
|
517
|
-
var
|
519
|
+
var bs = i(i(i(i(i(i(i(i(i({}, Z, Z), "Google Analytics 360", Z), "Google analytics 360", Z), "google analytics 360", Z), "Google Analytics360", Z), "Google analytics360", Z), "google analytics360", Z), "GoogleAnalytics360", Z), "GA 360", Z), it = "ADROLL";
|
518
520
|
i({}, "Adroll", "Adroll");
|
519
|
-
var
|
521
|
+
var ks = i(i(i(i(i({}, it, it), "Adroll", it), "Ad roll", it), "ad roll", it), "adroll", it), ee = "DCM_FLOODLIGHT";
|
520
522
|
i({}, "DCM Floodlight", "DCMFloodlight");
|
521
|
-
var
|
523
|
+
var Is = i(i(i(i(i(i(i(i(i({}, ee, ee), "DCM Floodlight", ee), "dcm floodlight", ee), "Dcm Floodlight", ee), "DCMFloodlight", ee), "dcmfloodlight", ee), "DcmFloodlight", ee), "dcm_floodlight", ee), "DCM_Floodlight", ee), Kt = "MATOMO";
|
522
524
|
i({}, "Matomo", "Matomo");
|
523
|
-
var
|
525
|
+
var As = i(i(i({}, Kt, Kt), "Matomo", Kt), "matomo", Kt), Qt = "VERO";
|
524
526
|
i({}, "Vero", "Vero");
|
525
|
-
var
|
527
|
+
var Es = i(i(i({}, Qt, Qt), "Vero", Qt), "vero", Qt), te = "MOUSEFLOW";
|
526
528
|
i({}, "Mouseflow", "Mouseflow");
|
527
|
-
var
|
529
|
+
var Cs = i(i(i(i(i(i(i(i(i({}, te, te), "Mouseflow", te), "mouseflow", te), "mouseFlow", te), "MouseFlow", te), "Mouse flow", te), "mouse flow", te), "mouse Flow", te), "Mouse Flow", te), Te = "ROCKERBOX";
|
528
530
|
i({}, "Rockerbox", "Rockerbox");
|
529
|
-
var
|
531
|
+
var Os = i(i(i(i(i(i(i({}, Te, Te), "Rockerbox", Te), "rockerbox", Te), "RockerBox", Te), "Rocker box", Te), "rocker box", Te), "Rocker Box", Te), W = "CONVERTFLOW";
|
530
532
|
i({}, "ConvertFlow", "ConvertFlow");
|
531
|
-
var
|
533
|
+
var _s = i(i(i(i(i(i(i(i(i(i({}, W, W), "Convertflow", W), "convertflow", W), "convertFlow", W), "ConvertFlow", W), "Convert flow", W), "convert flow", W), "convert Flow", W), "Convert Flow", W), "CONVERT FLOW", W), Re = "SNAPENGAGE";
|
532
534
|
i({}, "SnapEngage", "SnapEngage");
|
533
|
-
var
|
535
|
+
var Ss = i(i(i(i(i(i(i({}, Re, Re), "SnapEngage", Re), "Snap_Engage", Re), "snapengage", Re), "SNAP ENGAGE", Re), "Snap Engage", Re), "snap engage", Re), Pe = "LIVECHAT";
|
534
536
|
i({}, "LiveChat", "LiveChat");
|
535
|
-
var
|
537
|
+
var ws = i(i(i(i(i(i(i({}, Pe, Pe), "LiveChat", Pe), "Live_Chat", Pe), "livechat", Pe), "LIVE CHAT", Pe), "Live Chat", Pe), "live chat", Pe), ne = "SHYNET";
|
536
538
|
i({}, "Shynet", "Shynet");
|
537
|
-
var
|
539
|
+
var Ts = i(i(i(i(i(i(i(i(i({}, ne, ne), "shynet", ne), "ShyNet", ne), "shyNet", ne), "Shynet", ne), "shy net", ne), "Shy Net", ne), "shy Net", ne), "Shy net", ne), zt = "WOOPRA";
|
538
540
|
i({}, "Woopra", "Woopra");
|
539
|
-
var
|
541
|
+
var Rs = i(i(i({}, zt, zt), "Woopra", zt), "woopra", zt), he = "ROLLBAR";
|
540
542
|
i({}, "RollBar", "RollBar");
|
541
|
-
var
|
543
|
+
var Ps = i(i(i(i(i(i(i(i({}, he, he), "RollBar", he), "Roll_Bar", he), "rollbar", he), "Rollbar", he), "ROLL BAR", he), "Roll Bar", he), "roll bar", he), Y = "QUORA_PIXEL";
|
542
544
|
i({}, "Quora Pixel", "QuoraPixel");
|
543
|
-
var
|
545
|
+
var Ds = i(i(i(i(i(i(i(i(i(i({}, Y, Y), "Quora Pixel", Y), "Quora pixel", Y), "QUORA PIXEL", Y), "QuoraPixel", Y), "Quorapixel", Y), "QUORAPIXEL", Y), "Quora_Pixel", Y), "quora_pixel", Y), "Quora", Y), Vt = "JUNE";
|
544
546
|
i({}, "June", "June");
|
545
|
-
var
|
547
|
+
var xs = i(i(i({}, Vt, Vt), "June", Vt), "june", Vt), $t = "ENGAGE";
|
546
548
|
i({}, "Engage", "Engage");
|
547
|
-
var Ls = i(i(i({},
|
549
|
+
var Ls = i(i(i({}, $t, $t), "Engage", $t), "engage", $t), Wt = "ITERABLE";
|
548
550
|
i({}, "Iterable", "Iterable");
|
549
|
-
var
|
551
|
+
var Ms = i(i(i({}, Wt, Wt), "Iterable", Wt), "iterable", Wt), ot = "YANDEX_METRICA";
|
550
552
|
i({}, "Yandex.Metrica", "YandexMetrica");
|
551
|
-
var
|
553
|
+
var Bs = i(i(i(i(i({}, ot, ot), "Yandexmetrica", ot), "yandexmetrica", ot), "yandexMetrica", ot), "YandexMetrica", ot), Yt = "REFINER";
|
552
554
|
i({}, "Refiner", "Refiner");
|
553
|
-
var Fs = i(i(i({},
|
555
|
+
var Fs = i(i(i({}, Yt, Yt), "Refiner", Yt), "refiner", Yt), Xt = "QUALAROO";
|
554
556
|
i({}, "Qualaroo", "Qualaroo");
|
555
|
-
var
|
557
|
+
var Ns = i(i(i({}, Xt, Xt), "Qualaroo", Xt), "qualaroo", Xt), de = "PODSIGHTS";
|
556
558
|
i({}, "Podsights", "Podsights");
|
557
|
-
var
|
559
|
+
var Gs = i(i(i(i(i(i(i(i({}, de, de), "Podsights", de), "PodSights", de), "pod Sights", de), "Pod Sights", de), "pod sights", de), "POD SIGHTS", de), "Pod sights", de), Jt = "AXEPTIO";
|
558
560
|
i({}, "Axeptio", "Axeptio");
|
559
|
-
var
|
561
|
+
var Us = i(i(i({}, Jt, Jt), "Axeptio", Jt), "axeptio", Jt), Zt = "SATISMETER";
|
560
562
|
i({}, "Satismeter", "Satismeter");
|
561
|
-
var
|
563
|
+
var js = i(i(i({}, Zt, Zt), "Satismeter", Zt), "SatisMeter", Zt), re = "MICROSOFT_CLARITY";
|
562
564
|
i({}, "Microsoft Clarity", "MicrosoftClarity");
|
563
|
-
var
|
565
|
+
var Hs = i(i(i(i(i(i(i(i(i({}, re, re), "Microsoft Clarity", re), "Microsoft clarity", re), "microsoft clarity", re), "Microsoft_clarity", re), "MicrosoftClarity", re), "MICROSOFTCLARITY", re), "microsoftclarity", re), "microsoftClarity", re), gt = "SENDINBLUE";
|
564
566
|
i({}, "Sendinblue", "Sendinblue");
|
565
|
-
var
|
567
|
+
var qs = i(i(i(i({}, gt, gt), "Sendinblue", gt), "sendinblue", gt), "SendinBlue", gt), en = "OLARK";
|
566
568
|
i({}, "Olark", "Olark");
|
567
|
-
var
|
569
|
+
var Ks = i(i(i({}, en, en), "Olark", en), "olark", en), pe = "LEMNISK";
|
568
570
|
i({}, "Lemnisk", "Lemnisk");
|
569
|
-
var
|
571
|
+
var Qs = i(i(i(i(i(i(i(i({}, pe, pe), "LEMNISK_MARKETING_AUTOMATION", pe), "Lemnisk Marketing Automation", pe), "LemniskMarketingAutomation", pe), "lemniskmarketingautomation", pe), "lemniskMarketingAutomation", pe), "lemnisk", pe), "Lemnisk", pe), De = "TIKTOK_ADS";
|
570
572
|
i({}, "TikTok Ads", "TiktokAds");
|
571
|
-
var
|
573
|
+
var zs = i(i(i(i(i(i(i({}, De, De), "TiktokAds", De), "Tiktok ads", De), "Tiktok Ads", De), "Tik Tok Ads", De), "tik tok ads", De), "tiktokads", De), ie = "ACTIVE_CAMPAIGN";
|
572
574
|
i({}, "Active Campaign", "ActiveCampaign");
|
573
|
-
var
|
575
|
+
var Vs = i(i(i(i(i(i({ ActiveCampaign: ie, "Active Campaign": ie, "ACTIVE CAMPAIGN": ie }, ie, ie), "activecampaign", ie), "active campaign", ie), "Active campaign", ie), "active Campaign", ie), "active_campaign", ie), tn = "SPRIG";
|
574
576
|
i({}, "Sprig", "Sprig");
|
575
|
-
var
|
577
|
+
var $s = i(i(i({}, tn, tn), "Sprig", tn), "sprig", tn), mt = "SPOTIFYPIXEL";
|
576
578
|
i({}, "Spotify Pixel", "SpotifyPixel");
|
577
|
-
var
|
579
|
+
var Ws = i(i(i(i({}, mt, mt), "Spotify Pixel", mt), "spotify pixel", mt), "SPOTIFY_PIXEL", mt), st = "COMMANDBAR";
|
578
580
|
i({}, "CommandBar", "CommandBar");
|
579
|
-
var
|
581
|
+
var Ys = i(i(i(i(i({}, st, st), "Command Bar", st), "Commandbar", st), "COMMAND_BAR", st), "commandbar", st), yt = "NINETAILED";
|
580
582
|
i({}, "Ninetailed", "Ninetailed");
|
581
|
-
var
|
583
|
+
var Xs = i(i(i(i({}, yt, yt), "Ninetailed", yt), "ninetailed", yt), "NineTailed", yt), mi = E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E(E({ All: "All" }, wo), To), Ro), Po), Do), xo), Ys), Lo), Mo), Bo), Fo), No), Go), Uo), jo), Ho), qo), bs), Ko), Qo), zo), Vo), $o), Wo), Yo), Xo), Jo), Zo), es), ts), ns), rs), is), os), Xs), ss), as), us), cs), ls), fs), hs), ds), ps), gs), ms), ys), vs), ks), Is), As), Es), Cs), _s), Ss), ws), Ts), Rs), Ps), Ds), xs), Ls), Ms), Os), Bs), Fs), Ns), Gs), Us), js), Hs), qs), Ks), Qs), zs), Vs), $s), Ws), xe = 4, D = { setLogLevel: function(n) {
|
582
584
|
switch (n.toUpperCase()) {
|
583
585
|
case "INFO":
|
584
|
-
|
586
|
+
xe = 1;
|
585
587
|
break;
|
586
588
|
case "DEBUG":
|
587
|
-
|
589
|
+
xe = 2;
|
588
590
|
break;
|
589
591
|
case "WARN":
|
590
|
-
|
592
|
+
xe = 3;
|
591
593
|
break;
|
592
594
|
default:
|
593
|
-
|
595
|
+
xe = 4;
|
594
596
|
}
|
595
597
|
}, info: function() {
|
596
598
|
var n;
|
597
|
-
|
599
|
+
xe <= 1 && (n = console).info.apply(n, arguments);
|
598
600
|
}, debug: function() {
|
599
601
|
var n;
|
600
|
-
|
602
|
+
xe <= 2 && (n = console).log.apply(n, arguments);
|
601
603
|
}, warn: function() {
|
602
604
|
var n;
|
603
|
-
|
605
|
+
xe <= 3 && (n = console).warn.apply(n, arguments);
|
604
606
|
}, error: function() {
|
605
607
|
var n;
|
606
|
-
|
607
|
-
} },
|
608
|
+
xe <= 4 && (n = console).error.apply(n, arguments);
|
609
|
+
} }, cn = 1e4, nn = 1e3, yi = "RS_JS_SDK", rr = "Request failed with status:", Js = [rr], ir = "errorReporting", gr = function(n) {
|
608
610
|
var e = window.RudderStackGlobals && window.RudderStackGlobals[ir];
|
609
611
|
e && n instanceof Error && e.notify(n);
|
610
612
|
}, ye = function(n, e) {
|
@@ -613,7 +615,7 @@ var Ys = i(i(i(i({}, yt, yt), "Ninetailed", yt), "ninetailed", yt), "NineTailed"
|
|
613
615
|
var r = [];
|
614
616
|
return function(o, s) {
|
615
617
|
if (!t || s != null) {
|
616
|
-
if (
|
618
|
+
if (L(s) !== "object" || s === null) return s;
|
617
619
|
for (; r.length > 0 && r[r.length - 1] !== this; ) r.pop();
|
618
620
|
return r.includes(s) ? (D.debug("Circular Reference detected for key: ".concat(o)), "[Circular Reference]") : (r.push(s), s);
|
619
621
|
}
|
@@ -622,14 +624,14 @@ var Ys = i(i(i(i({}, yt, yt), "Ninetailed", yt), "ninetailed", yt), "NineTailed"
|
|
622
624
|
} catch {
|
623
625
|
return D.warn("Failed to convert the value to a JSON string."), null;
|
624
626
|
}
|
625
|
-
},
|
627
|
+
}, Zs = function(n, e, t) {
|
626
628
|
var r, o;
|
627
629
|
try {
|
628
630
|
r = typeof n == "string" ? n : n instanceof Error || n.message ? n.message : ye(n);
|
629
631
|
} catch {
|
630
632
|
r = "";
|
631
633
|
}
|
632
|
-
if (
|
634
|
+
if (L(o = n) === "object" && o !== null && "target" in o) {
|
633
635
|
if (n.target && n.target.localName !== "script" || n.target.dataset && (n.target.dataset.loader !== yi || n.target.dataset.isnonnativesdk !== "true")) return "";
|
634
636
|
if (r = "error in script loading:: src:: ".concat(n.target.src, " id:: ").concat(n.target.id), n.target.id === "ad-block") return t.page("RudderJS-Initiated", "ad-block page request", { path: "/ad-blocked", title: r }, t.sendAdblockPageOptions), "";
|
635
637
|
}
|
@@ -637,21 +639,21 @@ var Ys = i(i(i(i({}, yt, yt), "Ninetailed", yt), "ninetailed", yt), "NineTailed"
|
|
637
639
|
}, M = function(n, e, t) {
|
638
640
|
var r;
|
639
641
|
try {
|
640
|
-
r =
|
642
|
+
r = Zs(n, e, t);
|
641
643
|
} catch (o) {
|
642
644
|
D.error("[handleError] Exception:: ", o), D.error("[handleError] Original error:: ", ye(n)), gr(o);
|
643
645
|
}
|
644
646
|
r && (D.error(r), function(o) {
|
645
|
-
return !o.message || !
|
647
|
+
return !o.message || !Js.some(function(s) {
|
646
648
|
return o.message.includes(s);
|
647
649
|
});
|
648
650
|
}(n) && gr(n));
|
649
|
-
}, vi = { exports: {} }, mr, yr = { exports: {} },
|
650
|
-
function
|
651
|
+
}, vi = { exports: {} }, mr, yr = { exports: {} }, ea = Io(Object.freeze({ __proto__: null, default: {} }));
|
652
|
+
function Be() {
|
651
653
|
return mr || (mr = 1, yr.exports = (n = n || function(e, t) {
|
652
654
|
var r;
|
653
655
|
if (typeof window < "u" && window.crypto && (r = window.crypto), typeof self < "u" && self.crypto && (r = self.crypto), typeof globalThis < "u" && globalThis.crypto && (r = globalThis.crypto), !r && typeof window < "u" && window.msCrypto && (r = window.msCrypto), !r && kn !== void 0 && kn.crypto && (r = kn.crypto), !r) try {
|
654
|
-
r =
|
656
|
+
r = ea;
|
655
657
|
} catch {
|
656
658
|
}
|
657
659
|
var o = function() {
|
@@ -741,7 +743,7 @@ function Fe() {
|
|
741
743
|
}, _process: function(d) {
|
742
744
|
var y, k = this._data, p = k.words, v = k.sigBytes, I = this.blockSize, A = v / (4 * I), T = (A = d ? e.ceil(A) : e.max((0 | A) - this._minBufferSize, 0)) * I, w = e.min(4 * T, v);
|
743
745
|
if (T) {
|
744
|
-
for (var
|
746
|
+
for (var x = 0; x < T; x += I) this._doProcessBlock(p, x);
|
745
747
|
y = p.splice(0, T), k.sigBytes -= w;
|
746
748
|
}
|
747
749
|
return new l.init(y, w);
|
@@ -772,8 +774,8 @@ function Fe() {
|
|
772
774
|
var n;
|
773
775
|
}
|
774
776
|
var vr, br = { exports: {} };
|
775
|
-
function
|
776
|
-
return vr || (vr = 1, br.exports = (n =
|
777
|
+
function ta() {
|
778
|
+
return vr || (vr = 1, br.exports = (n = Be(), function() {
|
777
779
|
var e = n, t = e.lib.WordArray;
|
778
780
|
function r(o, s, u) {
|
779
781
|
for (var a = [], c = 0, l = 0; l < s; l++) if (l % 4) {
|
@@ -806,8 +808,8 @@ function ea() {
|
|
806
808
|
var n;
|
807
809
|
}
|
808
810
|
var kr, Ir = { exports: {} };
|
809
|
-
function
|
810
|
-
return kr || (kr = 1, Ir.exports = (n =
|
811
|
+
function na() {
|
812
|
+
return kr || (kr = 1, Ir.exports = (n = Be(), function(e) {
|
811
813
|
var t = n, r = t.lib, o = r.WordArray, s = r.Hasher, u = t.algo, a = [];
|
812
814
|
(function() {
|
813
815
|
for (var g = 0; g < 64; g++) a[g] = 4294967296 * e.abs(e.sin(g + 1)) | 0;
|
@@ -819,8 +821,8 @@ function ta() {
|
|
819
821
|
var d = b + R, y = g[d];
|
820
822
|
g[d] = 16711935 & (y << 8 | y >>> 24) | 4278255360 & (y << 24 | y >>> 8);
|
821
823
|
}
|
822
|
-
var k = this._hash.words, p = g[b + 0], v = g[b + 1], I = g[b + 2], A = g[b + 3], T = g[b + 4], w = g[b + 5],
|
823
|
-
C = l(C, S, O, _, p, 7, a[0]), _ = l(_, C, S, O, v, 12, a[1]), O = l(O, _, C, S, I, 17, a[2]), S = l(S, O, _, C, A, 22, a[3]), C = l(C, S, O, _, T, 7, a[4]), _ = l(_, C, S, O, w, 12, a[5]), O = l(O, _, C, S,
|
824
|
+
var k = this._hash.words, p = g[b + 0], v = g[b + 1], I = g[b + 2], A = g[b + 3], T = g[b + 4], w = g[b + 5], x = g[b + 6], G = g[b + 7], H = g[b + 8], q = g[b + 9], Q = g[b + 10], Fe = g[b + 11], be = g[b + 12], ke = g[b + 13], Ie = g[b + 14], Ae = g[b + 15], C = k[0], S = k[1], O = k[2], _ = k[3];
|
825
|
+
C = l(C, S, O, _, p, 7, a[0]), _ = l(_, C, S, O, v, 12, a[1]), O = l(O, _, C, S, I, 17, a[2]), S = l(S, O, _, C, A, 22, a[3]), C = l(C, S, O, _, T, 7, a[4]), _ = l(_, C, S, O, w, 12, a[5]), O = l(O, _, C, S, x, 17, a[6]), S = l(S, O, _, C, G, 22, a[7]), C = l(C, S, O, _, H, 7, a[8]), _ = l(_, C, S, O, q, 12, a[9]), O = l(O, _, C, S, Q, 17, a[10]), S = l(S, O, _, C, Fe, 22, a[11]), C = l(C, S, O, _, be, 7, a[12]), _ = l(_, C, S, O, ke, 12, a[13]), O = l(O, _, C, S, Ie, 17, a[14]), C = h(C, S = l(S, O, _, C, Ae, 22, a[15]), O, _, v, 5, a[16]), _ = h(_, C, S, O, x, 9, a[17]), O = h(O, _, C, S, Fe, 14, a[18]), S = h(S, O, _, C, p, 20, a[19]), C = h(C, S, O, _, w, 5, a[20]), _ = h(_, C, S, O, Q, 9, a[21]), O = h(O, _, C, S, Ae, 14, a[22]), S = h(S, O, _, C, T, 20, a[23]), C = h(C, S, O, _, q, 5, a[24]), _ = h(_, C, S, O, Ie, 9, a[25]), O = h(O, _, C, S, A, 14, a[26]), S = h(S, O, _, C, H, 20, a[27]), C = h(C, S, O, _, ke, 5, a[28]), _ = h(_, C, S, O, I, 9, a[29]), O = h(O, _, C, S, G, 14, a[30]), C = f(C, S = h(S, O, _, C, be, 20, a[31]), O, _, w, 4, a[32]), _ = f(_, C, S, O, H, 11, a[33]), O = f(O, _, C, S, Fe, 16, a[34]), S = f(S, O, _, C, Ie, 23, a[35]), C = f(C, S, O, _, v, 4, a[36]), _ = f(_, C, S, O, T, 11, a[37]), O = f(O, _, C, S, G, 16, a[38]), S = f(S, O, _, C, Q, 23, a[39]), C = f(C, S, O, _, ke, 4, a[40]), _ = f(_, C, S, O, p, 11, a[41]), O = f(O, _, C, S, A, 16, a[42]), S = f(S, O, _, C, x, 23, a[43]), C = f(C, S, O, _, q, 4, a[44]), _ = f(_, C, S, O, be, 11, a[45]), O = f(O, _, C, S, Ae, 16, a[46]), C = m(C, S = f(S, O, _, C, I, 23, a[47]), O, _, p, 6, a[48]), _ = m(_, C, S, O, G, 10, a[49]), O = m(O, _, C, S, Ie, 15, a[50]), S = m(S, O, _, C, w, 21, a[51]), C = m(C, S, O, _, be, 6, a[52]), _ = m(_, C, S, O, A, 10, a[53]), O = m(O, _, C, S, Q, 15, a[54]), S = m(S, O, _, C, v, 21, a[55]), C = m(C, S, O, _, H, 6, a[56]), _ = m(_, C, S, O, Ae, 10, a[57]), O = m(O, _, C, S, x, 15, a[58]), S = m(S, O, _, C, ke, 21, a[59]), C = m(C, S, O, _, T, 6, a[60]), _ = m(_, C, S, O, Fe, 10, a[61]), O = m(O, _, C, S, I, 15, a[62]), S = m(S, O, _, C, q, 21, a[63]), k[0] = k[0] + C | 0, k[1] = k[1] + S | 0, k[2] = k[2] + O | 0, k[3] = k[3] + _ | 0;
|
824
826
|
}, _doFinalize: function() {
|
825
827
|
var g = this._data, b = g.words, R = 8 * this._nDataBytes, d = 8 * g.sigBytes;
|
826
828
|
b[d >>> 5] |= 128 << 24 - d % 32;
|
@@ -856,8 +858,8 @@ function ta() {
|
|
856
858
|
var n;
|
857
859
|
}
|
858
860
|
var Ar, Er = { exports: {} }, Cr = { exports: {} };
|
859
|
-
function
|
860
|
-
return Ar || (Ar = 1, Cr.exports = (a =
|
861
|
+
function ra() {
|
862
|
+
return Ar || (Ar = 1, Cr.exports = (a = Be(), e = (n = a).lib, t = e.WordArray, r = e.Hasher, o = n.algo, s = [], u = o.SHA1 = r.extend({ _doReset: function() {
|
861
863
|
this._hash = new t.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
862
864
|
}, _doProcessBlock: function(c, l) {
|
863
865
|
for (var h = this._hash.words, f = h[0], m = h[1], g = h[2], b = h[3], R = h[4], d = 0; d < 80; d++) {
|
@@ -895,7 +897,7 @@ function wr() {
|
|
895
897
|
return c.create(f).compute(l, h);
|
896
898
|
}, e.EvpKDF;
|
897
899
|
var t, r, o, s, u, a, c;
|
898
|
-
}(
|
900
|
+
}(Be(), ra(), (Or || (Or = 1, Sr.exports = (n = Be(), void function() {
|
899
901
|
var e = n, t = e.lib.Base, r = e.enc.Utf8;
|
900
902
|
e.algo.HMAC = t.extend({ init: function(o, s) {
|
901
903
|
o = this._hasher = new o.init(), typeof s == "string" && (s = r.parse(s));
|
@@ -944,15 +946,15 @@ vi.exports = function(n) {
|
|
944
946
|
var k = d[y + 1];
|
945
947
|
d[y + 1] = d[y + 3], d[y + 3] = k, this._doCryptBlock(d, y, this._invKeySchedule, h, f, m, g, s), k = d[y + 1], d[y + 1] = d[y + 3], d[y + 3] = k;
|
946
948
|
}, _doCryptBlock: function(d, y, k, p, v, I, A, T) {
|
947
|
-
for (var w = this._nRounds,
|
948
|
-
var be = p[
|
949
|
-
|
949
|
+
for (var w = this._nRounds, x = d[y] ^ k[0], G = d[y + 1] ^ k[1], H = d[y + 2] ^ k[2], q = d[y + 3] ^ k[3], Q = 4, Fe = 1; Fe < w; Fe++) {
|
950
|
+
var be = p[x >>> 24] ^ v[G >>> 16 & 255] ^ I[H >>> 8 & 255] ^ A[255 & q] ^ k[Q++], ke = p[G >>> 24] ^ v[H >>> 16 & 255] ^ I[q >>> 8 & 255] ^ A[255 & x] ^ k[Q++], Ie = p[H >>> 24] ^ v[q >>> 16 & 255] ^ I[x >>> 8 & 255] ^ A[255 & G] ^ k[Q++], Ae = p[q >>> 24] ^ v[x >>> 16 & 255] ^ I[G >>> 8 & 255] ^ A[255 & H] ^ k[Q++];
|
951
|
+
x = be, G = ke, H = Ie, q = Ae;
|
950
952
|
}
|
951
|
-
be = (T[
|
953
|
+
be = (T[x >>> 24] << 24 | T[G >>> 16 & 255] << 16 | T[H >>> 8 & 255] << 8 | T[255 & q]) ^ k[Q++], ke = (T[G >>> 24] << 24 | T[H >>> 16 & 255] << 16 | T[q >>> 8 & 255] << 8 | T[255 & x]) ^ k[Q++], Ie = (T[H >>> 24] << 24 | T[q >>> 16 & 255] << 16 | T[x >>> 8 & 255] << 8 | T[255 & G]) ^ k[Q++], Ae = (T[q >>> 24] << 24 | T[x >>> 16 & 255] << 16 | T[G >>> 8 & 255] << 8 | T[255 & H]) ^ k[Q++], d[y] = be, d[y + 1] = ke, d[y + 2] = Ie, d[y + 3] = Ae;
|
952
954
|
}, keySize: 8 });
|
953
955
|
e.AES = t._createHelper(R);
|
954
956
|
}(), n.AES;
|
955
|
-
}(
|
957
|
+
}(Be(), ta(), na(), wr(), Tr || (Tr = 1, In = Be(), wr(), void (In.lib.Cipher || function(n) {
|
956
958
|
var e = In, t = e.lib, r = t.Base, o = t.WordArray, s = t.BufferedBlockAlgorithm, u = e.enc;
|
957
959
|
u.Utf8;
|
958
960
|
var a = u.Base64, c = e.algo.EvpKDF, l = t.Cipher = s.extend({ cfg: r.extend(), createEncryptor: function(p, v) {
|
@@ -991,19 +993,19 @@ vi.exports = function(n) {
|
|
991
993
|
} }), m = h.CBC = function() {
|
992
994
|
var p = f.extend();
|
993
995
|
function v(I, A, T) {
|
994
|
-
var w,
|
995
|
-
|
996
|
+
var w, x = this._iv;
|
997
|
+
x ? (w = x, this._iv = n) : w = this._prevBlock;
|
996
998
|
for (var G = 0; G < T; G++) I[A + G] ^= w[G];
|
997
999
|
}
|
998
1000
|
return p.Encryptor = p.extend({ processBlock: function(I, A) {
|
999
1001
|
var T = this._cipher, w = T.blockSize;
|
1000
1002
|
v.call(this, I, A, w), T.encryptBlock(I, A), this._prevBlock = I.slice(A, A + w);
|
1001
1003
|
} }), p.Decryptor = p.extend({ processBlock: function(I, A) {
|
1002
|
-
var T = this._cipher, w = T.blockSize,
|
1003
|
-
T.decryptBlock(I, A), v.call(this, I, A, w), this._prevBlock =
|
1004
|
+
var T = this._cipher, w = T.blockSize, x = I.slice(A, A + w);
|
1005
|
+
T.decryptBlock(I, A), v.call(this, I, A, w), this._prevBlock = x;
|
1004
1006
|
} }), p;
|
1005
1007
|
}(), g = (e.pad = {}).Pkcs7 = { pad: function(p, v) {
|
1006
|
-
for (var I = 4 * v, A = I - p.sigBytes % I, T = A << 24 | A << 16 | A << 8 | A, w = [],
|
1008
|
+
for (var I = 4 * v, A = I - p.sigBytes % I, T = A << 24 | A << 16 | A << 8 | A, w = [], x = 0; x < A; x += 4) w.push(T);
|
1007
1009
|
var G = o.create(w, A);
|
1008
1010
|
p.concat(G);
|
1009
1011
|
}, unpad: function(p) {
|
@@ -1033,8 +1035,8 @@ vi.exports = function(n) {
|
|
1033
1035
|
return A[0] == 1398893684 && A[1] == 1701076831 && (v = o.create(A.slice(2, 4)), A.splice(0, 4), I.sigBytes -= 16), b.create({ ciphertext: I, salt: v });
|
1034
1036
|
} }, d = t.SerializableCipher = r.extend({ cfg: r.extend({ format: R }), encrypt: function(p, v, I, A) {
|
1035
1037
|
A = this.cfg.extend(A);
|
1036
|
-
var T = p.createEncryptor(I, A), w = T.finalize(v),
|
1037
|
-
return b.create({ ciphertext: w, key: I, iv:
|
1038
|
+
var T = p.createEncryptor(I, A), w = T.finalize(v), x = T.cfg;
|
1039
|
+
return b.create({ ciphertext: w, key: I, iv: x.iv, algorithm: p, mode: x.mode, padding: x.padding, blockSize: p.blockSize, formatter: A.format });
|
1038
1040
|
}, decrypt: function(p, v, I, A) {
|
1039
1041
|
return A = this.cfg.extend(A), v = this._parse(v, A.format), p.createDecryptor(I, A).finalize(v.ciphertext);
|
1040
1042
|
}, _parse: function(p, v) {
|
@@ -1042,8 +1044,8 @@ vi.exports = function(n) {
|
|
1042
1044
|
} }), y = (e.kdf = {}).OpenSSL = { execute: function(p, v, I, A, T) {
|
1043
1045
|
if (A || (A = o.random(8)), T) w = c.create({ keySize: v + I, hasher: T }).compute(p, A);
|
1044
1046
|
else var w = c.create({ keySize: v + I }).compute(p, A);
|
1045
|
-
var
|
1046
|
-
return w.sigBytes = 4 * v, b.create({ key: w, iv:
|
1047
|
+
var x = o.create(w.words.slice(v), 4 * I);
|
1048
|
+
return w.sigBytes = 4 * v, b.create({ key: w, iv: x, salt: A });
|
1047
1049
|
} }, k = t.PasswordBasedCipher = d.extend({ cfg: d.cfg.extend({ kdf: y }), encrypt: function(p, v, I, A) {
|
1048
1050
|
var T = (A = this.cfg.extend(A)).kdf.execute(I, p.keySize, p.ivSize, A.salt, A.hasher);
|
1049
1051
|
A.iv = T.iv;
|
@@ -1058,10 +1060,10 @@ vi.exports = function(n) {
|
|
1058
1060
|
var bi = ve(vi.exports), ki = { exports: {} };
|
1059
1061
|
ki.exports = function(n) {
|
1060
1062
|
return n.enc.Utf8;
|
1061
|
-
}(
|
1062
|
-
var
|
1063
|
-
return n != null &&
|
1064
|
-
},
|
1063
|
+
}(Be());
|
1064
|
+
var ia = ve(ki.exports), Ii = function(n) {
|
1065
|
+
return n != null && L(n) === "object" && Array.isArray(n) === !1;
|
1066
|
+
}, oa = function(n, e, t) {
|
1065
1067
|
if (Ii(t) || (t = { default: t }), !Pr(n)) return t.default !== void 0 ? t.default : n;
|
1066
1068
|
typeof e == "number" && (e = String(e));
|
1067
1069
|
var r = Array.isArray(e), o = typeof e == "string", s = t.separator || ".", u = t.joinChar || (typeof s == "string" ? s : ".");
|
@@ -1096,8 +1098,8 @@ function An(n, e, t) {
|
|
1096
1098
|
function Pr(n) {
|
1097
1099
|
return Ii(n) || Array.isArray(n) || typeof n == "function";
|
1098
1100
|
}
|
1099
|
-
var En, Dr,
|
1100
|
-
function
|
1101
|
+
var En, Dr, _t = ve(oa), zn = { exports: {} };
|
1102
|
+
function sa() {
|
1101
1103
|
if (Dr) return En;
|
1102
1104
|
Dr = 1;
|
1103
1105
|
var n = 1e3, e = 60 * n, t = 60 * e, r = 24 * t, o = 7 * r, s = 365.25 * r;
|
@@ -1107,7 +1109,7 @@ function oa() {
|
|
1107
1109
|
}
|
1108
1110
|
return En = function(a, c) {
|
1109
1111
|
c = c || {};
|
1110
|
-
var l =
|
1112
|
+
var l = L(a);
|
1111
1113
|
if (l === "string" && a.length > 0) return function(h) {
|
1112
1114
|
if (!((h = String(h)).length > 100)) {
|
1113
1115
|
var f = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);
|
@@ -1168,7 +1170,7 @@ function oa() {
|
|
1168
1170
|
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(a));
|
1169
1171
|
}, En;
|
1170
1172
|
}
|
1171
|
-
var
|
1173
|
+
var rn, V, Cn, aa = function(n) {
|
1172
1174
|
function e(o) {
|
1173
1175
|
var s, u, a, c = null;
|
1174
1176
|
function l() {
|
@@ -1220,7 +1222,7 @@ var nn, V, Cn, sa = function(n) {
|
|
1220
1222
|
for (s = 0, u = e.skips.length; s < u; s++) if (e.skips[s].test(o)) return !1;
|
1221
1223
|
for (s = 0, u = e.names.length; s < u; s++) if (e.names[s].test(o)) return !0;
|
1222
1224
|
return !1;
|
1223
|
-
}, e.humanize =
|
1225
|
+
}, e.humanize = sa(), e.destroy = function() {
|
1224
1226
|
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
1225
1227
|
}, Object.keys(n).forEach(function(o) {
|
1226
1228
|
e[o] = n[o];
|
@@ -1229,8 +1231,8 @@ var nn, V, Cn, sa = function(n) {
|
|
1229
1231
|
return e.colors[Math.abs(s) % e.colors.length];
|
1230
1232
|
}, e.enable(e.load()), e;
|
1231
1233
|
};
|
1232
|
-
|
1233
|
-
if (n[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + n[0] + (this.useColors ? "%c " : " ") + "+" +
|
1234
|
+
rn = zn, (V = zn.exports).formatArgs = function(n) {
|
1235
|
+
if (n[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + n[0] + (this.useColors ? "%c " : " ") + "+" + rn.exports.humanize(this.diff), this.useColors) {
|
1234
1236
|
var e = "color: " + this.color;
|
1235
1237
|
n.splice(1, 0, e, "color: inherit");
|
1236
1238
|
var t = 0, r = 0;
|
@@ -1260,7 +1262,7 @@ nn = zn, (V = zn.exports).formatArgs = function(n) {
|
|
1260
1262
|
}(), V.destroy = (Cn = !1, function() {
|
1261
1263
|
Cn || (Cn = !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`."));
|
1262
1264
|
}), V.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"], V.log = console.debug || console.log || function() {
|
1263
|
-
},
|
1265
|
+
}, rn.exports = aa(V), rn.exports.formatters.j = function(n) {
|
1264
1266
|
try {
|
1265
1267
|
return JSON.stringify(n);
|
1266
1268
|
} catch (e) {
|
@@ -1268,7 +1270,7 @@ nn = zn, (V = zn.exports).formatArgs = function(n) {
|
|
1268
1270
|
}
|
1269
1271
|
};
|
1270
1272
|
var or = zn.exports, Ai = or("cookie");
|
1271
|
-
function
|
1273
|
+
function xr() {
|
1272
1274
|
var n;
|
1273
1275
|
try {
|
1274
1276
|
n = document.cookie;
|
@@ -1282,7 +1284,7 @@ function Lr() {
|
|
1282
1284
|
return r;
|
1283
1285
|
}(n);
|
1284
1286
|
}
|
1285
|
-
function
|
1287
|
+
function Lr(n) {
|
1286
1288
|
try {
|
1287
1289
|
return encodeURIComponent(n);
|
1288
1290
|
} catch (e) {
|
@@ -1302,44 +1304,44 @@ var On = ve(function(n, e, t) {
|
|
1302
1304
|
case 2:
|
1303
1305
|
return function(r, o, s) {
|
1304
1306
|
s = s || {};
|
1305
|
-
var u =
|
1307
|
+
var u = Lr(r) + "=" + Lr(o);
|
1306
1308
|
o == null && (s.maxage = -1), s.maxage && (s.expires = new Date(+/* @__PURE__ */ new Date() + s.maxage)), s.path && (u += "; path=" + s.path), s.domain && (u += "; domain=" + s.domain), s.expires && (u += "; expires=" + s.expires.toUTCString()), s.samesite && (u += "; samesite=" + s.samesite), s.secure && (u += "; secure"), document.cookie = u;
|
1307
1309
|
}(n, e, t);
|
1308
1310
|
case 1:
|
1309
1311
|
return function(r) {
|
1310
|
-
return
|
1312
|
+
return xr()[r];
|
1311
1313
|
}(n);
|
1312
1314
|
default:
|
1313
|
-
return
|
1315
|
+
return xr();
|
1314
1316
|
}
|
1315
|
-
}), Vn = { exports: {} },
|
1317
|
+
}), Vn = { exports: {} }, Br = Math.max, ua = function(n, e) {
|
1316
1318
|
var t = e ? e.length : 0;
|
1317
1319
|
if (!t) return [];
|
1318
|
-
for (var r =
|
1320
|
+
for (var r = Br(Number(n) || 0, 0), o = Br(t - r, 0), s = new Array(o), u = 0; u < o; u += 1) s[u] = e[u + r];
|
1319
1321
|
return s;
|
1320
|
-
},
|
1322
|
+
}, ca = Math.max, la = function(n) {
|
1321
1323
|
if (n == null || !n.length) return [];
|
1322
|
-
for (var e = new Array(
|
1324
|
+
for (var e = new Array(ca(n.length - 2, 0)), t = 1; t < n.length; t += 1) e[t - 1] = n[t];
|
1323
1325
|
return e;
|
1324
|
-
},
|
1325
|
-
return !!n &&
|
1326
|
-
}, ha = function(n, e, t, r) {
|
1327
|
-
return Ci.call(e, r) && n[r] === void 0 && (n[r] = t), e;
|
1326
|
+
}, fa = ua, Ei = la, Ci = Object.prototype.hasOwnProperty, ha = Object.prototype.toString, Fr = function(n) {
|
1327
|
+
return !!n && ha.call(n) === "[object Object]";
|
1328
1328
|
}, da = function(n, e, t, r) {
|
1329
|
-
return Ci.call(e, r) &&
|
1329
|
+
return Ci.call(e, r) && n[r] === void 0 && (n[r] = t), e;
|
1330
|
+
}, pa = function(n, e, t, r) {
|
1331
|
+
return Ci.call(e, r) && (Fr(n[r]) && Fr(t) ? n[r] = _i(n[r], t) : n[r] === void 0 && (n[r] = t)), e;
|
1330
1332
|
}, Oi = function(n, e) {
|
1331
|
-
if (t = e, !t ||
|
1333
|
+
if (t = e, !t || L(t) !== "object") return e;
|
1332
1334
|
var t;
|
1333
|
-
n = n ||
|
1334
|
-
for (var r =
|
1335
|
+
n = n || da;
|
1336
|
+
for (var r = fa(2, arguments), o = 0; o < r.length; o += 1) for (var s in r[o]) n(e, r[o], r[o][s], s);
|
1335
1337
|
return e;
|
1336
1338
|
}, _i = function(n) {
|
1337
|
-
return Oi.apply(null, [
|
1339
|
+
return Oi.apply(null, [pa, n].concat(Ei(arguments)));
|
1338
1340
|
};
|
1339
1341
|
Vn.exports = function(n) {
|
1340
1342
|
return Oi.apply(null, [null, n].concat(Ei(arguments)));
|
1341
1343
|
}, Vn.exports.deep = _i;
|
1342
|
-
var Si = ve(Vn.exports), $n = { exports: {} }, wi = or("cookie"),
|
1344
|
+
var Si = ve(Vn.exports), $n = { exports: {} }, wi = or("cookie"), ga = function(n, e, t) {
|
1343
1345
|
switch (arguments.length) {
|
1344
1346
|
case 3:
|
1345
1347
|
case 2:
|
@@ -1385,7 +1387,7 @@ function Ur(n) {
|
|
1385
1387
|
}
|
1386
1388
|
}
|
1387
1389
|
(function(n, e) {
|
1388
|
-
var t =
|
1390
|
+
var t = ga;
|
1389
1391
|
function r(o) {
|
1390
1392
|
for (var s = e.cookie, u = e.levels(o), a = 0; a < u.length; ++a) {
|
1391
1393
|
var c = "__tld__", l = u[a], h = { domain: "." + l };
|
@@ -1400,14 +1402,14 @@ function Ur(n) {
|
|
1400
1402
|
return l;
|
1401
1403
|
}, r.cookie = t, e = n.exports = r;
|
1402
1404
|
})($n, $n.exports);
|
1403
|
-
var
|
1405
|
+
var ma = ve($n.exports), bt = new (function() {
|
1404
1406
|
function n(e) {
|
1405
|
-
|
1407
|
+
F(this, n), this.cOpts = {}, this.options(e), this.isSupportAvailable = this.checkSupportAvailability();
|
1406
1408
|
}
|
1407
1409
|
return N(n, [{ key: "options", value: function() {
|
1408
1410
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1409
1411
|
if (arguments.length === 0) return this.cOpts;
|
1410
|
-
var t = ".".concat(
|
1412
|
+
var t = ".".concat(ma(window.location.href));
|
1411
1413
|
return t === "." && (t = null), this.cOpts = Si(e, { maxage: 31536e6, path: "/", domain: t, samesite: "Lax" }), e.sameDomainCookiesOnly && delete this.cOpts.domain, this.cOpts;
|
1412
1414
|
} }, { key: "set", value: function(e, t) {
|
1413
1415
|
try {
|
@@ -1538,7 +1540,7 @@ Ti.exports = function() {
|
|
1538
1540
|
}();
|
1539
1541
|
var _n = ve(Ti.exports), kt = new (function() {
|
1540
1542
|
function n(e) {
|
1541
|
-
|
1543
|
+
F(this, n), this.sOpts = {}, this.enabled = this.checkSupportAvailability(), this.options(e);
|
1542
1544
|
}
|
1543
1545
|
return N(n, [{ key: "options", value: function() {
|
1544
1546
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -1557,12 +1559,12 @@ var _n = ve(Ti.exports), kt = new (function() {
|
|
1557
1559
|
return !1;
|
1558
1560
|
}
|
1559
1561
|
} }]), n;
|
1560
|
-
}())({}),
|
1562
|
+
}())({}), ya = function(n) {
|
1561
1563
|
return new TextDecoder().decode((e = n, t = globalThis.atob(e).split("").map(function(r) {
|
1562
1564
|
return r.charCodeAt(0);
|
1563
1565
|
}), new Uint8Array(t)));
|
1564
1566
|
var e, t;
|
1565
|
-
}, Sn = "rl_user_id", wn = "rl_trait", Tn = "rl_anonymous_id", Rn = "rl_group_id", Pn = "rl_group_trait", jr = "rl_page_init_referrer", Hr = "rl_page_init_referring_domain", Dn = "rl_session",
|
1567
|
+
}, Sn = "rl_user_id", wn = "rl_trait", Tn = "rl_anonymous_id", Rn = "rl_group_id", Pn = "rl_group_trait", jr = "rl_page_init_referrer", Hr = "rl_page_init_referring_domain", Dn = "rl_session", xn = "rl_auth_token", ln = "RudderEncrypt:", Ln = "RS_ENC_v3_", Ri = "Rudder", Mn = { segment: "ajs_anonymous_id" };
|
1566
1568
|
function qr(n) {
|
1567
1569
|
try {
|
1568
1570
|
return n ? JSON.parse(n) : null;
|
@@ -1574,11 +1576,11 @@ function Pi(n) {
|
|
1574
1576
|
return n.replace(/^\s+|\s+$/gm, "");
|
1575
1577
|
}
|
1576
1578
|
function Kr(n) {
|
1577
|
-
return n && typeof n == "string" && Pi(n) !== "" ? n.substring(0,
|
1579
|
+
return n && typeof n == "string" && Pi(n) !== "" ? n.substring(0, ln.length) === ln ? bi.decrypt(n.substring(ln.length), Ri).toString(ia) : n.substring(0, Ln.length) === Ln ? ya(n.substring(Ln.length)) : n : n;
|
1578
1580
|
}
|
1579
|
-
for (var
|
1581
|
+
for (var on, va = function() {
|
1580
1582
|
function n() {
|
1581
|
-
|
1583
|
+
F(this, n), bt.isSupportAvailable ? this.storage = bt : (kt.enabled && (this.storage = kt), this.storage || D.error("No storage is available :: initializing the SDK without storage"));
|
1582
1584
|
}
|
1583
1585
|
return N(n, [{ key: "options", value: function() {
|
1584
1586
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -1586,7 +1588,7 @@ for (var rn, ya = function() {
|
|
1586
1588
|
} }, { key: "setItem", value: function(e, t) {
|
1587
1589
|
var r = ye(t);
|
1588
1590
|
r !== null && this.storage.set(e, function(o) {
|
1589
|
-
return Pi(o) === "" ? o : "".concat(
|
1591
|
+
return Pi(o) === "" ? o : "".concat(ln).concat(bi.encrypt(o, Ri).toString());
|
1590
1592
|
}(r));
|
1591
1593
|
} }, { key: "setStringItem", value: function(e, t) {
|
1592
1594
|
typeof t == "string" ? this.setItem(e, t) : D.error("[Storage] ".concat(e, " should be string"));
|
@@ -1607,7 +1609,7 @@ for (var rn, ya = function() {
|
|
1607
1609
|
} }, { key: "setSessionInfo", value: function(e) {
|
1608
1610
|
this.setItem(Dn, e);
|
1609
1611
|
} }, { key: "setAuthToken", value: function(e) {
|
1610
|
-
this.setItem(
|
1612
|
+
this.setItem(xn, e);
|
1611
1613
|
} }, { key: "getItem", value: function(e) {
|
1612
1614
|
return qr(Kr(this.storage.get(e)));
|
1613
1615
|
} }, { key: "getUserId", value: function() {
|
@@ -1624,8 +1626,8 @@ for (var rn, ya = function() {
|
|
1624
1626
|
} }, { key: "getAnonymousId", value: function(e) {
|
1625
1627
|
var t = qr(Kr(this.storage.get(Tn)));
|
1626
1628
|
if (t) return t;
|
1627
|
-
var r =
|
1628
|
-
if (
|
1629
|
+
var r = _t(e, "autoCapture.source");
|
1630
|
+
if (_t(e, "autoCapture.enabled") === !0 && typeof r == "string") {
|
1629
1631
|
var o = this.fetchExternalAnonymousId(r);
|
1630
1632
|
if (o) return o;
|
1631
1633
|
}
|
@@ -1637,15 +1639,15 @@ for (var rn, ya = function() {
|
|
1637
1639
|
} }, { key: "getSessionInfo", value: function() {
|
1638
1640
|
return this.getItem(Dn);
|
1639
1641
|
} }, { key: "getAuthToken", value: function() {
|
1640
|
-
return this.getItem(
|
1642
|
+
return this.getItem(xn);
|
1641
1643
|
} }, { key: "removeItem", value: function(e) {
|
1642
1644
|
return this.storage.remove(e);
|
1643
1645
|
} }, { key: "removeSessionInfo", value: function() {
|
1644
1646
|
this.removeItem(Dn);
|
1645
1647
|
} }, { key: "clear", value: function(e) {
|
1646
|
-
this.storage.remove(Sn), this.storage.remove(wn), this.storage.remove(Rn), this.storage.remove(Pn), this.storage.remove(
|
1648
|
+
this.storage.remove(Sn), this.storage.remove(wn), this.storage.remove(Rn), this.storage.remove(Pn), this.storage.remove(xn), e && this.storage.remove(Tn);
|
1647
1649
|
} }]), n;
|
1648
|
-
}(), mn = new
|
1650
|
+
}(), mn = new va(), fn = function(n, e) {
|
1649
1651
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
1650
1652
|
try {
|
1651
1653
|
if (document.getElementById(n)) return;
|
@@ -1662,56 +1664,56 @@ for (var rn, ya = function() {
|
|
1662
1664
|
}
|
1663
1665
|
}, Qr = function(n) {
|
1664
1666
|
return n === null;
|
1665
|
-
},
|
1667
|
+
}, ba = function(n, e) {
|
1666
1668
|
if (!Array.isArray(n) || !Array.isArray(e)) return U(e);
|
1667
1669
|
var t = U(n);
|
1668
1670
|
return e.forEach(function(r, o) {
|
1669
1671
|
t[o] = Array.isArray(r) || function(s) {
|
1670
|
-
return !Qr(s) &&
|
1672
|
+
return !Qr(s) && L(s) === "object" && !Array.isArray(s);
|
1671
1673
|
}(r) ? It(t[o], r) : r;
|
1672
1674
|
}), t;
|
1673
1675
|
}, It = function(n, e) {
|
1674
|
-
return
|
1675
|
-
},
|
1676
|
+
return So(ba, n, e);
|
1677
|
+
}, ka = function(n) {
|
1676
1678
|
return function(e) {
|
1677
1679
|
return !Qr(e) && Object.prototype.toString.call(e) === "[object Object]";
|
1678
1680
|
}(n) && Object.keys(n).length > 0;
|
1679
|
-
},
|
1680
|
-
for (var
|
1681
|
-
function
|
1681
|
+
}, Ve = 256, hn = []; Ve--; ) hn[Ve] = (Ve + 256).toString(16).substring(1);
|
1682
|
+
for (var Bn, zr = 4096, dn = [], Le = 0; Le < 256; Le++) dn[Le] = (Le + 256).toString(16).substring(1);
|
1683
|
+
function Ia() {
|
1682
1684
|
var n;
|
1683
|
-
(!
|
1684
|
-
for (var e, t = 0, r = ""; t < 16; t++) e =
|
1685
|
-
return
|
1685
|
+
(!Bn || Le + 16 > zr) && (n = zr, Bn = crypto.getRandomValues(new Uint8Array(n)), Le = 0);
|
1686
|
+
for (var e, t = 0, r = ""; t < 16; t++) e = Bn[Le + t], r += t == 6 ? dn[15 & e | 64] : t == 8 ? dn[63 & e | 128] : dn[e], 1 & t && t > 1 && t < 11 && (r += "-");
|
1687
|
+
return Le += 16, r;
|
1686
1688
|
}
|
1687
|
-
var
|
1688
|
-
function
|
1689
|
+
var Aa = { 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 (GA4)", 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", TIKTOK_ADS: "TikTok Ads", ACTIVE_CAMPAIGN: "ActiveCampaign", SPRIG: "Sprig", SPOTIFYPIXEL: "Spotify Pixel", COMMANDBAR: "CommandBar", NINETAILED: "Ninetailed" }, Fn = ["anonymous_id", "id", "sent_at", "received_at", "timestamp", "original_timestamp", "event_text", "event"], Nn = "https://api.rudderstack.com/sourceConfig/?p=npm&v=2.48.7", Di = "v1.1", xi = "js-integrations", Li = "".concat("https://cdn.rudderlabs.com", "/").concat(Di, "/").concat(xi), Vr = "https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=Number.isNaN%2CURL%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%2CTextEncoder%2Cnavigator.sendBeacon", Ea = ["Lax", "None", "Strict"], Ca = ["US", "EU"], Oa = ["oneTrust", "ketch"], $r = ["library", "consentManagement"], _a = ["none", "default", "full"], Sa = { All: !0 };
|
1690
|
+
function St(n) {
|
1689
1691
|
return n && n.endsWith("/") ? n.replace(/\/+$/, "") : n;
|
1690
1692
|
}
|
1691
1693
|
function Mi() {
|
1692
|
-
return window.crypto && typeof window.crypto.getRandomValues == "function" ?
|
1694
|
+
return window.crypto && typeof window.crypto.getRandomValues == "function" ? Ia() : function() {
|
1693
1695
|
var n, e = 0, t = "";
|
1694
|
-
if (!
|
1695
|
-
for (
|
1696
|
-
e =
|
1696
|
+
if (!on || Ve + 16 > 256) {
|
1697
|
+
for (on = Array(e = 256); e--; ) on[e] = 256 * Math.random() | 0;
|
1698
|
+
e = Ve = 0;
|
1697
1699
|
}
|
1698
|
-
for (; e < 16; e++) n =
|
1699
|
-
return
|
1700
|
+
for (; e < 16; e++) n = on[Ve + e], t += e == 6 ? hn[15 & n | 64] : e == 8 ? hn[63 & n | 128] : hn[n], 1 & e && e > 1 && e < 11 && (t += "-");
|
1701
|
+
return Ve++, t;
|
1700
1702
|
}();
|
1701
1703
|
}
|
1702
|
-
function
|
1704
|
+
function wt() {
|
1703
1705
|
return (/* @__PURE__ */ new Date()).toISOString();
|
1704
1706
|
}
|
1705
|
-
function
|
1707
|
+
function Bi(n, e) {
|
1706
1708
|
Object.keys(n).forEach(function(t) {
|
1707
1709
|
n.hasOwnProperty(t) && (e[t] && (n[e[t]] = n[t]), t !== "All" && e[t] !== void 0 && e[t] !== t && delete n[t]);
|
1708
1710
|
});
|
1709
1711
|
}
|
1710
1712
|
function Gn(n) {
|
1711
|
-
|
1713
|
+
Bi(n, mi);
|
1712
1714
|
}
|
1713
1715
|
function Wr(n) {
|
1714
|
-
|
1716
|
+
Bi(n, Aa);
|
1715
1717
|
}
|
1716
1718
|
function Un(n, e) {
|
1717
1719
|
var t = [];
|
@@ -1721,7 +1723,7 @@ function Un(n, e) {
|
|
1721
1723
|
var o = [];
|
1722
1724
|
return typeof e[0] == "string" ? e.forEach(function(s) {
|
1723
1725
|
o.push({ intgName: s, intObj: s });
|
1724
|
-
}) :
|
1726
|
+
}) : L(e[0]) === "object" && e.forEach(function(s) {
|
1725
1727
|
o.push({ intgName: s.name, intObj: s });
|
1726
1728
|
}), o.forEach(function(s) {
|
1727
1729
|
var u = s.intgName, a = s.intObj;
|
@@ -1731,17 +1733,17 @@ function Un(n, e) {
|
|
1731
1733
|
} else n[u] !== void 0 && n[u] && t.push(a);
|
1732
1734
|
}), t;
|
1733
1735
|
}
|
1734
|
-
var
|
1736
|
+
var sn = function(n) {
|
1735
1737
|
return typeof n == "string" || n == null ? n : ye(n);
|
1736
1738
|
}, Yr = function(n) {
|
1737
1739
|
return typeof n == "string" && n.trim().length > 0;
|
1738
|
-
},
|
1740
|
+
}, wa = function(n, e, t) {
|
1739
1741
|
try {
|
1740
1742
|
var r = n.source.dataplanes || {};
|
1741
1743
|
if (Object.keys(r).length > 0) {
|
1742
1744
|
var o = function(a) {
|
1743
1745
|
var c = a ? a.residencyServer : void 0;
|
1744
|
-
if (c) return typeof c == "string" &&
|
1746
|
+
if (c) return typeof c == "string" && Ca.includes(c.toUpperCase()) ? c.toUpperCase() : void D.error("Invalid residencyServer input");
|
1745
1747
|
}(t), s = r[o] || r.US;
|
1746
1748
|
if (s) {
|
1747
1749
|
var u = function(a) {
|
@@ -1761,7 +1763,7 @@ var on = function(n) {
|
|
1761
1763
|
throw Error(a);
|
1762
1764
|
}
|
1763
1765
|
};
|
1764
|
-
function
|
1766
|
+
function Fi() {
|
1765
1767
|
var n;
|
1766
1768
|
return ((n = document) === null || n === void 0 ? void 0 : n.referrer) || "$direct";
|
1767
1769
|
}
|
@@ -1784,20 +1786,20 @@ function Jr() {
|
|
1784
1786
|
var t = window.location, r = t.search, o = t.href, s = document.title, u = function(l) {
|
1785
1787
|
var h, f = Xr(), m = (h = f ? f.includes("?") ? f : f + l : window.location.href).indexOf("#");
|
1786
1788
|
return m > -1 ? h.slice(0, m) : h;
|
1787
|
-
}(r), a = o, c =
|
1789
|
+
}(r), a = o, c = Fi();
|
1788
1790
|
return { path: e, referrer: c, referring_domain: Ni(c), search: r, title: s, url: u, tab_url: a, initial_referrer: mn.getInitialReferrer() || "", initial_referring_domain: mn.getInitialReferringDomain() || "" };
|
1789
1791
|
}
|
1790
|
-
for (var
|
1791
|
-
|
1792
|
-
}), Ta = N(function n() {
|
1793
|
-
B(this, n), this.name = "RudderLabs JavaScript SDK", this.version = "2.48.7";
|
1792
|
+
for (var an, Ta = N(function n() {
|
1793
|
+
F(this, n), this.name = "RudderLabs JavaScript SDK", this.namespace = "com.rudderlabs.javascript", this.version = "2.48.7";
|
1794
1794
|
}), Ra = N(function n() {
|
1795
|
-
|
1795
|
+
F(this, n), this.name = "RudderLabs JavaScript SDK", this.version = "2.48.7";
|
1796
1796
|
}), Pa = N(function n() {
|
1797
|
-
|
1797
|
+
F(this, n), this.name = "", this.version = "";
|
1798
1798
|
}), Da = N(function n() {
|
1799
|
+
F(this, n), this.density = 0, this.width = 0, this.height = 0, this.innerWidth = 0, this.innerHeight = 0;
|
1800
|
+
}), xa = N(function n() {
|
1799
1801
|
var e, t;
|
1800
|
-
|
1802
|
+
F(this, n), this.app = new Ta(), this.traits = null, this.library = new Ra(), this.userAgent = function() {
|
1801
1803
|
if (typeof navigator > "u") return null;
|
1802
1804
|
var r = navigator.userAgent, o = navigator.brave;
|
1803
1805
|
if (o && Object.getPrototypeOf(o).isBrave) {
|
@@ -1805,10 +1807,10 @@ for (var sn, wa = N(function n() {
|
|
1805
1807
|
s && (r = "".concat(r, " Brave/").concat(s[2]));
|
1806
1808
|
}
|
1807
1809
|
return r;
|
1808
|
-
}(), this.device = null, this.network = null, this.os = new
|
1810
|
+
}(), this.device = null, this.network = null, this.os = new Pa(), this.locale = typeof navigator > "u" ? null : navigator.language || navigator.browserLanguage, this.screen = (e = new Da(), typeof window > "u" || (e.width = window.screen.width, e.height = window.screen.height, e.density = window.devicePixelRatio, e.innerWidth = window.innerWidth, e.innerHeight = window.innerHeight), e), this.timezone = (t = (/* @__PURE__ */ new Date()).toString().match(/([A-Z]+[+-]\d+)/)) && t[1] ? t[1] : "NA";
|
1809
1811
|
}), La = function() {
|
1810
1812
|
function n() {
|
1811
|
-
|
1813
|
+
F(this, n), this.channel = "web", this.context = new xa(), this.type = null, this.messageId = Mi(), this.originalTimestamp = (/* @__PURE__ */ new Date()).toISOString(), this.anonymousId = null, this.userId = null, this.event = null, this.properties = {};
|
1812
1814
|
}
|
1813
1815
|
return N(n, [{ key: "getProperty", value: function(e) {
|
1814
1816
|
return this.properties[e];
|
@@ -1817,7 +1819,7 @@ for (var sn, wa = N(function n() {
|
|
1817
1819
|
} }]), n;
|
1818
1820
|
}(), Gi = function() {
|
1819
1821
|
function n() {
|
1820
|
-
|
1822
|
+
F(this, n), this.message = new La();
|
1821
1823
|
}
|
1822
1824
|
return N(n, [{ key: "setType", value: function(e) {
|
1823
1825
|
this.message.type = e;
|
@@ -1834,7 +1836,7 @@ for (var sn, wa = N(function n() {
|
|
1834
1836
|
} }]), n;
|
1835
1837
|
}(), vt = function() {
|
1836
1838
|
function n() {
|
1837
|
-
|
1839
|
+
F(this, n), this.rudderProperty = null, this.rudderUserProperty = null, this.event = null, this.userId = null, this.type = null;
|
1838
1840
|
}
|
1839
1841
|
return N(n, [{ key: "setType", value: function(e) {
|
1840
1842
|
return this.type = e, this;
|
@@ -1842,26 +1844,26 @@ for (var sn, wa = N(function n() {
|
|
1842
1844
|
var e = new Gi();
|
1843
1845
|
return e.setUserId(this.userId), e.setType(this.type), e.setEventName(this.event), e.setProperty(this.rudderProperty), e.setUserProperty(this.rudderUserProperty), e;
|
1844
1846
|
} }]), n;
|
1845
|
-
}(), sr = {},
|
1847
|
+
}(), sr = {}, $e = 256, pn = []; $e--; ) pn[$e] = ($e + 256).toString(16).substring(1);
|
1846
1848
|
sr.v4 = function() {
|
1847
1849
|
var n, e = 0, t = "";
|
1848
|
-
if (!
|
1849
|
-
for (
|
1850
|
-
e =
|
1850
|
+
if (!an || $e + 16 > 256) {
|
1851
|
+
for (an = Array(e = 256); e--; ) an[e] = 256 * Math.random() | 0;
|
1852
|
+
e = $e = 0;
|
1851
1853
|
}
|
1852
|
-
for (; e < 16; e++) n =
|
1853
|
-
return
|
1854
|
+
for (; e < 16; e++) n = an[$e + e], t += e == 6 ? pn[15 & n | 64] : e == 8 ? pn[63 & n | 128] : pn[n], 1 & e && e > 1 && e < 11 && (t += "-");
|
1855
|
+
return $e++, t;
|
1854
1856
|
};
|
1855
|
-
var yn = {},
|
1856
|
-
return
|
1857
|
+
var yn = {}, Ma = Object.prototype.hasOwnProperty, Ba = String.prototype.charAt, Fa = Object.prototype.toString, Na = function(n, e) {
|
1858
|
+
return Ba.call(n, e);
|
1857
1859
|
}, Wn = function(n, e) {
|
1858
|
-
return
|
1860
|
+
return Ma.call(n, e);
|
1859
1861
|
}, Zr = function(n, e) {
|
1860
1862
|
e = e || Wn;
|
1861
1863
|
for (var t = [], r = 0, o = n.length; r < o; r += 1) e(n, r) && t.push(String(r));
|
1862
1864
|
return t;
|
1863
1865
|
}, ar = function(n) {
|
1864
|
-
return n == null ? [] : (e = n, Fa.call(e) === "[object String]" ? Zr(n,
|
1866
|
+
return n == null ? [] : (e = n, Fa.call(e) === "[object String]" ? Zr(n, Na) : function(t) {
|
1865
1867
|
return t != null && typeof t != "function" && typeof t.length == "number";
|
1866
1868
|
}(n) ? Zr(n, Wn) : function(t, r) {
|
1867
1869
|
r = r || Wn;
|
@@ -1870,7 +1872,7 @@ var yn = {}, xa = Object.prototype.hasOwnProperty, Ma = String.prototype.charAt,
|
|
1870
1872
|
return o;
|
1871
1873
|
}(n));
|
1872
1874
|
var e;
|
1873
|
-
}, jn = ar,
|
1875
|
+
}, jn = ar, Ga = sr.v4, ei = { _data: {}, length: 0, setItem: function(n, e) {
|
1874
1876
|
return this._data[n] = e, this.length = jn(this._data).length, e;
|
1875
1877
|
}, getItem: function(n) {
|
1876
1878
|
return n in this._data ? this._data[n] : null;
|
@@ -1884,7 +1886,7 @@ var yn = {}, xa = Object.prototype.hasOwnProperty, Ma = String.prototype.charAt,
|
|
1884
1886
|
yn.defaultEngine = function() {
|
1885
1887
|
try {
|
1886
1888
|
if (!window.localStorage) return !1;
|
1887
|
-
var n =
|
1889
|
+
var n = Ga();
|
1888
1890
|
window.localStorage.setItem(n, "test_value");
|
1889
1891
|
var e = window.localStorage.getItem(n);
|
1890
1892
|
return window.localStorage.removeItem(n), e === "test_value";
|
@@ -1892,24 +1894,24 @@ yn.defaultEngine = function() {
|
|
1892
1894
|
return !1;
|
1893
1895
|
}
|
1894
1896
|
}() ? window.localStorage : ei, yn.inMemoryEngine = ei;
|
1895
|
-
var
|
1897
|
+
var Ua = ar, Ui = Object.prototype.toString, ja = typeof Array.isArray == "function" ? Array.isArray : function(n) {
|
1896
1898
|
return Ui.call(n) === "[object Array]";
|
1897
|
-
},
|
1898
|
-
return n != null && (
|
1899
|
-
var t =
|
1899
|
+
}, Ha = function(n) {
|
1900
|
+
return n != null && (ja(n) || n !== "function" && function(e) {
|
1901
|
+
var t = L(e);
|
1900
1902
|
return t === "number" || t === "object" && Ui.call(e) === "[object Number]";
|
1901
1903
|
}(n.length));
|
1902
|
-
}, Ha = function(n, e) {
|
1903
|
-
for (var t = 0; t < e.length && n(e[t], t, e) !== !1; t += 1) ;
|
1904
1904
|
}, qa = function(n, e) {
|
1905
|
-
for (var t =
|
1905
|
+
for (var t = 0; t < e.length && n(e[t], t, e) !== !1; t += 1) ;
|
1906
|
+
}, Ka = function(n, e) {
|
1907
|
+
for (var t = Ua(e), r = 0; r < t.length && n(e[t[r]], t[r], e) !== !1; r += 1) ;
|
1906
1908
|
}, ur = function(n, e) {
|
1907
|
-
return (
|
1908
|
-
},
|
1909
|
-
function
|
1909
|
+
return (Ha(e) ? qa : Ka).call(this, n, e);
|
1910
|
+
}, Qa = yn.defaultEngine, ti = yn.inMemoryEngine, ni = ur, za = ar, Va = JSON;
|
1911
|
+
function $a(n) {
|
1910
1912
|
try {
|
1911
1913
|
return JSON.stringify(n, (e = [], function(t, r) {
|
1912
|
-
if (
|
1914
|
+
if (L(r) !== "object" || r === null) return r;
|
1913
1915
|
for (; e.length > 0 && e[e.length - 1] !== this; ) e.pop();
|
1914
1916
|
return e.includes(r) ? "[Circular Reference]" : (e.push(r), r);
|
1915
1917
|
}));
|
@@ -1919,12 +1921,12 @@ function Va(n) {
|
|
1919
1921
|
var e;
|
1920
1922
|
}
|
1921
1923
|
function qe(n, e, t, r) {
|
1922
|
-
this.id = e, this.name = n, this.keys = t || {}, this.engine = r ||
|
1924
|
+
this.id = e, this.name = n, this.keys = t || {}, this.engine = r || Qa, this.originalEngine = this.engine;
|
1923
1925
|
}
|
1924
1926
|
qe.prototype.set = function(n, e) {
|
1925
1927
|
var t = this._createValidKey(n);
|
1926
1928
|
if (t) try {
|
1927
|
-
this.engine.setItem(t,
|
1929
|
+
this.engine.setItem(t, $a(e));
|
1928
1930
|
} catch (r) {
|
1929
1931
|
(function(o) {
|
1930
1932
|
var s = !1;
|
@@ -1942,7 +1944,7 @@ qe.prototype.set = function(n, e) {
|
|
1942
1944
|
}, qe.prototype.get = function(n) {
|
1943
1945
|
try {
|
1944
1946
|
var e = this.engine.getItem(this._createValidKey(n));
|
1945
|
-
return e === null ? null :
|
1947
|
+
return e === null ? null : Va.parse(e);
|
1946
1948
|
} catch {
|
1947
1949
|
return null;
|
1948
1950
|
}
|
@@ -1952,7 +1954,7 @@ qe.prototype.set = function(n, e) {
|
|
1952
1954
|
this.engine.removeItem(this._createValidKey(n));
|
1953
1955
|
}, qe.prototype._createValidKey = function(n) {
|
1954
1956
|
var e, t = this.name, r = this.id;
|
1955
|
-
return
|
1957
|
+
return za(this.keys).length ? (ni(function(o) {
|
1956
1958
|
o === n && (e = [t, r, n].join("."));
|
1957
1959
|
}, this.keys), e) : [t, r, n].join(".");
|
1958
1960
|
}, qe.prototype._swapEngine = function() {
|
@@ -1962,35 +1964,35 @@ qe.prototype.set = function(n, e) {
|
|
1962
1964
|
ti.setItem([n.name, n.id, e].join("."), t), n.remove(e);
|
1963
1965
|
}, this.keys), this.engine = ti;
|
1964
1966
|
};
|
1965
|
-
var
|
1967
|
+
var Wa = qe, Ya = ur, ji = { setTimeout: function(n, e) {
|
1966
1968
|
return window.setTimeout(n, e);
|
1967
1969
|
}, clearTimeout: function(n) {
|
1968
1970
|
return window.clearTimeout(n);
|
1969
|
-
}, Date: window.Date },
|
1971
|
+
}, Date: window.Date }, at = ji, un = { ASAP: 1, RESCHEDULE: 2, ABANDON: 3 };
|
1970
1972
|
function ge() {
|
1971
1973
|
this.tasks = {}, this.nextId = 1;
|
1972
1974
|
}
|
1973
1975
|
ge.prototype.now = function() {
|
1974
|
-
return +new
|
1976
|
+
return +new at.Date();
|
1975
1977
|
}, ge.prototype.run = function(n, e, t) {
|
1976
1978
|
var r = this.nextId++;
|
1977
|
-
return this.tasks[r] =
|
1979
|
+
return this.tasks[r] = at.setTimeout(this._handle(r, n, e, t || un.ASAP), e), r;
|
1978
1980
|
}, ge.prototype.cancel = function(n) {
|
1979
|
-
this.tasks[n] && (
|
1981
|
+
this.tasks[n] && (at.clearTimeout(this.tasks[n]), delete this.tasks[n]);
|
1980
1982
|
}, ge.prototype.cancelAll = function() {
|
1981
|
-
|
1983
|
+
Ya(at.clearTimeout, this.tasks), this.tasks = {};
|
1982
1984
|
}, ge.prototype._handle = function(n, e, t, r) {
|
1983
1985
|
var o = this, s = o.now();
|
1984
1986
|
return function() {
|
1985
|
-
if (delete o.tasks[n], !(r >=
|
1986
|
-
r ===
|
1987
|
+
if (delete o.tasks[n], !(r >= un.RESCHEDULE && s + 2 * t < o.now())) return e();
|
1988
|
+
r === un.RESCHEDULE && o.run(e, t, r);
|
1987
1989
|
};
|
1988
1990
|
}, ge.setClock = function(n) {
|
1989
|
-
|
1991
|
+
at = n;
|
1990
1992
|
}, ge.resetClock = function() {
|
1991
|
-
|
1992
|
-
}, ge.Modes =
|
1993
|
-
var
|
1993
|
+
at = ji;
|
1994
|
+
}, ge.Modes = un;
|
1995
|
+
var Xa = ge, Hi = { exports: {} };
|
1994
1996
|
(function(n) {
|
1995
1997
|
function e(t) {
|
1996
1998
|
if (t) return function(r) {
|
@@ -2029,16 +2031,16 @@ var Ya = ge, Hi = { exports: {} };
|
|
2029
2031
|
return !!this.listeners(t).length;
|
2030
2032
|
};
|
2031
2033
|
})();
|
2032
|
-
var
|
2034
|
+
var Ja = Hi.exports, At = sr.v4, Yn = Wa, Hn = ur, ct = Xa, Za = or("localstorage-retry");
|
2033
2035
|
function qn(n, e) {
|
2034
2036
|
return function() {
|
2035
2037
|
return n.apply(e, arguments);
|
2036
2038
|
};
|
2037
2039
|
}
|
2038
2040
|
function K(n, e, t) {
|
2039
|
-
typeof e == "function" && (t = e), this.name = n, this.id = At(), this.fn = t, this.maxItems = e.maxItems || 1 / 0, this.maxAttempts = e.maxAttempts || 1 / 0, this.backoff = { MIN_RETRY_DELAY: e.minRetryDelay || 1e3, MAX_RETRY_DELAY: e.maxRetryDelay || 3e4, FACTOR: e.backoffFactor || 2, JITTER: e.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
|
2041
|
+
typeof e == "function" && (t = e), this.name = n, this.id = At(), this.fn = t, this.maxItems = e.maxItems || 1 / 0, this.maxAttempts = e.maxAttempts || 1 / 0, this.backoff = { MIN_RETRY_DELAY: e.minRetryDelay || 1e3, MAX_RETRY_DELAY: e.maxRetryDelay || 3e4, FACTOR: e.backoffFactor || 2, JITTER: e.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 ct(), this._processId = 0, this._store = new Yn(this.name, this.id, this.keys), this._store.set(this.keys.IN_PROGRESS, {}), this._store.set(this.keys.QUEUE, []), this._ack = qn(this._ack, this), this._checkReclaim = qn(this._checkReclaim, this), this._processHead = qn(this._processHead, this), this._running = !1;
|
2040
2042
|
}
|
2041
|
-
|
2043
|
+
Ja(K.prototype), K.prototype.start = function() {
|
2042
2044
|
this._running && this.stop(), this._running = !0, this._ack(), this._checkReclaim(), this._processHead();
|
2043
2045
|
}, K.prototype.stop = function() {
|
2044
2046
|
this._schedule.cancelAll(), this._running = !1;
|
@@ -2078,11 +2080,11 @@ Xa(K.prototype), K.prototype.start = function() {
|
|
2078
2080
|
try {
|
2079
2081
|
n.fn(h.item, h.done);
|
2080
2082
|
} catch (f) {
|
2081
|
-
|
2083
|
+
Za("Process function threw error: " + f);
|
2082
2084
|
}
|
2083
|
-
}, s), t = e.get(this.keys.QUEUE) || [], this._schedule.cancel(this._processId), t.length > 0 && (this._processId = this._schedule.run(this._processHead, t[0].time - o,
|
2085
|
+
}, s), t = e.get(this.keys.QUEUE) || [], this._schedule.cancel(this._processId), t.length > 0 && (this._processId = this._schedule.run(this._processHead, t[0].time - o, ct.Modes.ASAP));
|
2084
2086
|
}, K.prototype._ack = function() {
|
2085
|
-
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,
|
2087
|
+
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, ct.Modes.ASAP);
|
2086
2088
|
}, K.prototype._checkReclaim = function() {
|
2087
2089
|
var n = this;
|
2088
2090
|
Hn(function(e) {
|
@@ -2090,8 +2092,8 @@ Xa(K.prototype), K.prototype.start = function() {
|
|
2090
2092
|
t.set(n.keys.RECLAIM_START, n.id), t.set(n.keys.ACK, n._schedule.now()), n._schedule.run(function() {
|
2091
2093
|
t.get(n.keys.RECLAIM_START) === n.id && (t.set(n.keys.RECLAIM_END, n.id), n._schedule.run(function() {
|
2092
2094
|
t.get(n.keys.RECLAIM_END) === n.id && t.get(n.keys.RECLAIM_START) === n.id && n._reclaim(t.id);
|
2093
|
-
}, n.timeouts.RECLAIM_WAIT,
|
2094
|
-
}, n.timeouts.RECLAIM_WAIT,
|
2095
|
+
}, n.timeouts.RECLAIM_WAIT, ct.Modes.ABANDON));
|
2096
|
+
}, n.timeouts.RECLAIM_WAIT, ct.Modes.ABANDON);
|
2095
2097
|
}(e));
|
2096
2098
|
}, function(e) {
|
2097
2099
|
for (var t = [], r = n._store.getOriginalEngine(), o = 0; o < r.length; o++) {
|
@@ -2102,7 +2104,7 @@ Xa(K.prototype), K.prototype.start = function() {
|
|
2102
2104
|
}
|
2103
2105
|
}
|
2104
2106
|
return t;
|
2105
|
-
}(this.name)), this._schedule.run(this._checkReclaim, this.timeouts.RECLAIM_TIMER,
|
2107
|
+
}(this.name)), this._schedule.run(this._checkReclaim, this.timeouts.RECLAIM_TIMER, ct.Modes.RESCHEDULE);
|
2106
2108
|
}, K.prototype._reclaim = function(n) {
|
2107
2109
|
var e = this, t = new Yn(this.name, n, this.keys), r = { queue: this._store.get(this.keys.QUEUE) || [] }, o = { inProgress: t.get(this.keys.IN_PROGRESS) || {}, queue: t.get(this.keys.QUEUE) || [] }, s = [], u = function(a, c) {
|
2108
2110
|
Hn(function(l) {
|
@@ -2138,14 +2140,14 @@ Xa(K.prototype), K.prototype.start = function() {
|
|
2138
2140
|
}, e);
|
2139
2141
|
}, e);
|
2140
2142
|
};
|
2141
|
-
var qi = ve(K), ri = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2, maxAttempts: 10, maxItems: 100 },
|
2143
|
+
var qi = ve(K), ri = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2, maxAttempts: 10, maxItems: 100 }, eu = function() {
|
2142
2144
|
function n() {
|
2143
|
-
|
2145
|
+
F(this, n), this.url = "", this.writeKey = "";
|
2144
2146
|
}
|
2145
2147
|
return N(n, [{ key: "init", value: function(e, t, r) {
|
2146
2148
|
var o = this;
|
2147
|
-
this.url = t, this.writeKey = e, r &&
|
2148
|
-
s.message.sentAt =
|
2149
|
+
this.url = t, this.writeKey = e, r && We(ri, r), this.payloadQueue = new qi("rudder", ri, function(s, u) {
|
2150
|
+
s.message.sentAt = wt(), o.processQueueElement(s.url, s.headers, s.message, 3e4, function(a, c) {
|
2149
2151
|
if (a) return u(a);
|
2150
2152
|
u(null, c);
|
2151
2153
|
});
|
@@ -2169,9 +2171,9 @@ var qi = ve(K), ri = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2
|
|
2169
2171
|
var r = { "Content-Type": "application/json", Authorization: "Basic ".concat(btoa("".concat(this.writeKey, ":"))), AnonymousId: btoa(e.anonymousId) };
|
2170
2172
|
this.payloadQueue.addItem({ url: "".concat(this.url, "/v1/").concat(t), headers: r, message: e });
|
2171
2173
|
} }]), n;
|
2172
|
-
}(),
|
2174
|
+
}(), tu = "queue", nu = 64e3, ru = function() {
|
2173
2175
|
function n() {
|
2174
|
-
|
2176
|
+
F(this, n), this.storage = kt, this.maxItems = 10, this.flushQueueTimeOut = void 0, this.timeOutActive = !1, this.flushQueueTimeOutInterval = 6e5, this.url = "", this.writekey = "", this.queueName = "".concat(tu, ".").concat(Date.now());
|
2175
2177
|
}
|
2176
2178
|
return N(n, [{ key: "sendQueueDataForBeacon", value: function() {
|
2177
2179
|
this.sendDataFromQueueAndDestroyQueue();
|
@@ -2189,8 +2191,8 @@ var qi = ve(K), ri = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2
|
|
2189
2191
|
} }, { key: "enqueue", value: function(e) {
|
2190
2192
|
var t = this.getQueue() || [];
|
2191
2193
|
(t = t.slice(-(this.maxItems - 1))).push(e);
|
2192
|
-
var r = t.slice(0), o = { batch: r, sentAt:
|
2193
|
-
s && s.length >
|
2194
|
+
var r = t.slice(0), o = { batch: r, sentAt: wt() }, s = ye(o, !0);
|
2195
|
+
s && s.length > nu && (r = t.slice(0, t.length - 1), this.flushQueue(r), (t = this.getQueue()).push(e)), this.setQueue(t), this.setTimer(), t.length === this.maxItems && this.flushQueue(r);
|
2194
2196
|
} }, { key: "sendDataFromQueueAndDestroyQueue", value: function() {
|
2195
2197
|
this.sendDataFromQueue(), this.storage.remove(this.queueName);
|
2196
2198
|
} }, { key: "sendDataFromQueue", value: function() {
|
@@ -2201,7 +2203,7 @@ var qi = ve(K), ri = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2
|
|
2201
2203
|
}
|
2202
2204
|
} }, { key: "flushQueue", value: function(e) {
|
2203
2205
|
if (e && e.length > 0) {
|
2204
|
-
var t =
|
2206
|
+
var t = wt();
|
2205
2207
|
e.forEach(function(u) {
|
2206
2208
|
u.sentAt = t;
|
2207
2209
|
});
|
@@ -2221,26 +2223,26 @@ var qi = ve(K), ri = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2
|
|
2221
2223
|
} }, { key: "clearTimer", value: function() {
|
2222
2224
|
this.timeOutActive && (clearTimeout(this.flushQueueTimeOut), this.timeOutActive = !1);
|
2223
2225
|
} }]), n;
|
2224
|
-
}(),
|
2226
|
+
}(), iu = function() {
|
2225
2227
|
function n() {
|
2226
|
-
|
2228
|
+
F(this, n), this.queue = void 0;
|
2227
2229
|
}
|
2228
2230
|
return N(n, [{ key: "initialize", value: function(e, t, r) {
|
2229
|
-
var o = {}, s =
|
2230
|
-
r && r.useBeacon && navigator.sendBeacon ? (r.beaconQueueOptions && r.beaconQueueOptions != null &&
|
2231
|
+
var o = {}, s = St(t);
|
2232
|
+
r && r.useBeacon && navigator.sendBeacon ? (r.beaconQueueOptions && r.beaconQueueOptions != null && L(r.beaconQueueOptions) === "object" && (o = 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 && L(r.queueOptions) === "object" && (o = r.queueOptions), this.queue = new eu()), this.queue.init(e, s, o);
|
2231
2233
|
} }, { key: "enqueue", value: function(e, t) {
|
2232
2234
|
var r = e.getElementContent();
|
2233
|
-
r.originalTimestamp = r.originalTimestamp ||
|
2235
|
+
r.originalTimestamp = r.originalTimestamp || wt(), r.sentAt = wt();
|
2234
2236
|
var o = ye(r, !0);
|
2235
2237
|
o && o.length > 32e3 && D.error("[EventRepository] enqueue:: message length greater 32 Kb ", r), this.queue.enqueue(r, t);
|
2236
2238
|
} }]), n;
|
2237
|
-
}(),
|
2239
|
+
}(), ou = new iu(), ii = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2, maxAttempts: 1 / 0 }, su = function() {
|
2238
2240
|
function n() {
|
2239
|
-
|
2241
|
+
F(this, n), this.callback = void 0, this.processQueueElements = !1;
|
2240
2242
|
}
|
2241
2243
|
return N(n, [{ key: "init", value: function(e, t) {
|
2242
2244
|
var r = this;
|
2243
|
-
e &&
|
2245
|
+
e && We(ii, e), t && (this.callback = t), this.payloadQueue = new qi("rs_events", ii, function(o, s) {
|
2244
2246
|
r.processQueueElement(o.type, o.rudderElement, function(u, a) {
|
2245
2247
|
if (u) return s(u);
|
2246
2248
|
s(null, a);
|
@@ -2257,7 +2259,7 @@ var qi = ve(K), ri = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2
|
|
2257
2259
|
} }, { key: "enqueue", value: function(e, t) {
|
2258
2260
|
this.payloadQueue.addItem({ type: e, rudderElement: t });
|
2259
2261
|
} }]), n;
|
2260
|
-
}(),
|
2262
|
+
}(), au = function(n) {
|
2261
2263
|
for (var e = function() {
|
2262
2264
|
for (var o, s = [], u = 0; u < 256; u++) {
|
2263
2265
|
o = u;
|
@@ -2272,44 +2274,44 @@ var qi = ve(K), ri = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2
|
|
2272
2274
|
}, getUserAgent: function() {
|
2273
2275
|
return navigator && navigator.userAgent;
|
2274
2276
|
} };
|
2275
|
-
function
|
2277
|
+
function uu() {
|
2276
2278
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
2277
2279
|
return n = n.endsWith("..") ? n.substr(0, n.length - 2) : n, decodeURIComponent(atob(n).split("").map(function(e) {
|
2278
2280
|
return "%".concat("00".concat(e.charCodeAt(0).toString(16)).slice(-2));
|
2279
2281
|
}).join(""));
|
2280
2282
|
}
|
2281
|
-
var
|
2282
|
-
function
|
2283
|
+
var cu = /^[a-zA-Z0-9\-_.]+$/, lu = 1, fu = 1, Ot = "*";
|
2284
|
+
function hu(n, e, t, r) {
|
2283
2285
|
var o = function(a, c) {
|
2284
|
-
return [a, (/* @__PURE__ */ new Date()).getTimezoneOffset(), c].join(
|
2286
|
+
return [a, (/* @__PURE__ */ new Date()).getTimezoneOffset(), c].join(Ot);
|
2285
2287
|
}(t, r), s = e || 0, u = Math.floor(Date.now() / 6e4) - s;
|
2286
|
-
return
|
2288
|
+
return au([o, u, n].join(Ot)).toString(36);
|
2287
2289
|
}
|
2288
|
-
function
|
2290
|
+
function du(n) {
|
2289
2291
|
var e = function(o) {
|
2290
|
-
var s = o.split(
|
2291
|
-
return s.length < 4 || !u || Number(s.shift()) !==
|
2292
|
+
var s = o.split(Ot), u = s.length % 2 == 0;
|
2293
|
+
return s.length < 4 || !u || Number(s.shift()) !== fu ? null : { checksum: s.shift(), serializedIds: s.join(Ot) };
|
2292
2294
|
}(n);
|
2293
2295
|
if (!e) return null;
|
2294
2296
|
var t = e.checksum, r = e.serializedIds;
|
2295
2297
|
return function(o, s) {
|
2296
|
-
for (var u = oi.getUserAgent(), a = oi.getUserLanguage(), c = 0; c <=
|
2298
|
+
for (var u = oi.getUserAgent(), a = oi.getUserLanguage(), c = 0; c <= lu; c += 1) if (hu(o, c, u, a) === s) return !0;
|
2297
2299
|
return !1;
|
2298
2300
|
}(r, t) ? function(o) {
|
2299
|
-
for (var s = {}, u = o.split(
|
2301
|
+
for (var s = {}, u = o.split(Ot), a = 0; a < u.length; a += 2) {
|
2300
2302
|
var c = u[a];
|
2301
|
-
if (
|
2302
|
-
var l =
|
2303
|
+
if (cu.test(c)) {
|
2304
|
+
var l = uu(u[a + 1]);
|
2303
2305
|
s[c] = l;
|
2304
2306
|
}
|
2305
2307
|
}
|
2306
2308
|
return s;
|
2307
2309
|
}(r) : null;
|
2308
2310
|
}
|
2309
|
-
var
|
2311
|
+
var pu = function() {
|
2310
2312
|
function n() {
|
2311
2313
|
var e = this;
|
2312
|
-
if (
|
2314
|
+
if (F(this, n), i(this, "isInitialized", !1), window.OneTrust && window.OnetrustActiveGroups) {
|
2313
2315
|
this.userSetConsentGroupIds = window.OnetrustActiveGroups.split(",").filter(function(r) {
|
2314
2316
|
return r;
|
2315
2317
|
});
|
@@ -2342,10 +2344,10 @@ var du = function() {
|
|
2342
2344
|
} }, { key: "getDeniedList", value: function() {
|
2343
2345
|
return this.isInitialized ? this.userDeniedConsentGroupIds : [];
|
2344
2346
|
} }]), n;
|
2345
|
-
}(),
|
2347
|
+
}(), gu = function() {
|
2346
2348
|
function n() {
|
2347
2349
|
var e = this;
|
2348
|
-
if (
|
2350
|
+
if (F(this, n), i(this, "updatePurposes", function(r) {
|
2349
2351
|
r && Object.entries(r).forEach(function(o) {
|
2350
2352
|
var s = o[0];
|
2351
2353
|
o[1] ? e.userConsentedPurposes.push(s) : e.userDeniedPurposes.push(s);
|
@@ -2398,12 +2400,12 @@ var du = function() {
|
|
2398
2400
|
}
|
2399
2401
|
}
|
2400
2402
|
} }]), n;
|
2401
|
-
}(),
|
2403
|
+
}(), mu = function(n) {
|
2402
2404
|
var e, t;
|
2403
|
-
return n != null && (e = n.oneTrust) !== null && e !== void 0 && e.enabled ? new
|
2404
|
-
},
|
2405
|
+
return n != null && (e = n.oneTrust) !== null && e !== void 0 && e.enabled ? new pu() : n != null && (t = n.ketch) !== null && t !== void 0 && t.enabled ? new gu() : null;
|
2406
|
+
}, yu = function() {
|
2405
2407
|
function n() {
|
2406
|
-
|
2408
|
+
F(this, n), this.storage = mn, this.timeout = 18e5, this.sessionInfo = this.storage.getSessionInfo() || { autoTrack: !0 };
|
2407
2409
|
}
|
2408
2410
|
return N(n, [{ key: "initialize", value: function(e) {
|
2409
2411
|
try {
|
@@ -2450,10 +2452,10 @@ var du = function() {
|
|
2450
2452
|
var e = this.sessionInfo, t = e.manualTrack;
|
2451
2453
|
e.autoTrack ? (this.sessionInfo = {}, this.startAutoTracking()) : t && this.start();
|
2452
2454
|
} }]), n;
|
2453
|
-
}(),
|
2455
|
+
}(), vu = new yu(), si = ["integrations", "anonymousId", "originalTimestamp"], bu = function(n, e, t) {
|
2454
2456
|
var r = "";
|
2455
2457
|
if (t) {
|
2456
|
-
if (!(r =
|
2458
|
+
if (!(r = St(t))) {
|
2457
2459
|
var o = "CDN base URL for integrations is not valid";
|
2458
2460
|
throw M({ message: "[Analytics] load:: ".concat(o) }), Error("Failed to load Rudder SDK: ".concat(o));
|
2459
2461
|
}
|
@@ -2461,7 +2463,7 @@ var du = function() {
|
|
2461
2463
|
}
|
2462
2464
|
var s = function() {
|
2463
2465
|
for (var a, c = document.getElementsByTagName("script"), l = 0; l < c.length; l += 1) {
|
2464
|
-
var h =
|
2466
|
+
var h = St(c[l].getAttribute("src"));
|
2465
2467
|
if (h && h.match(/^.*rudder-analytics?(\.min)?\.js$/)) {
|
2466
2468
|
a = h;
|
2467
2469
|
break;
|
@@ -2469,11 +2471,11 @@ var du = function() {
|
|
2469
2471
|
}
|
2470
2472
|
return { sdkURL: a };
|
2471
2473
|
}(), u = s.sdkURL;
|
2472
|
-
return r = u ? u.split("/").slice(0, -1).concat(
|
2473
|
-
}, vn = "rs-bugsnag",
|
2474
|
-
return "".concat(
|
2475
|
-
})), Me(Object.keys(
|
2476
|
-
return "".concat(
|
2474
|
+
return r = u ? u.split("/").slice(0, -1).concat(xi).join("/") : Li, e && (r = r.replace(Di, n)), r;
|
2475
|
+
}, vn = "rs-bugsnag", gn = "bugsnag", ku = ["Bugsnag", gn], Xn = "0d96a60df267f4a13f808bbaa54e535c", Iu = ["rudder-analytics.min.js", "rudder-analytics.js"].concat(Me(Object.keys(ze).map(function(n) {
|
2476
|
+
return "".concat(ze[n], ".min.js");
|
2477
|
+
})), Me(Object.keys(ze).map(function(n) {
|
2478
|
+
return "".concat(ze[n], ".js");
|
2477
2479
|
}))), ai = function(n) {
|
2478
2480
|
var e = n && n._client && n._client._notifier && n._client._notifier.version;
|
2479
2481
|
if (!e) {
|
@@ -2483,41 +2485,41 @@ var du = function() {
|
|
2483
2485
|
e = t.notifier && t.notifier.version, t = void 0;
|
2484
2486
|
}
|
2485
2487
|
return e && e.charAt(0) === "6";
|
2486
|
-
},
|
2487
|
-
|
2488
|
+
}, Au = function(n) {
|
2489
|
+
ku.every(function(e) {
|
2488
2490
|
return !function(t, r) {
|
2489
2491
|
if (t == null) throw new TypeError("Cannot convert undefined or null to object");
|
2490
2492
|
return Object.prototype.hasOwnProperty.call(Object(t), r);
|
2491
2493
|
}(window, e);
|
2492
|
-
}) &&
|
2493
|
-
},
|
2494
|
+
}) && fn(n, "https://d2wy8f7a9ursnm.cloudfront.net/v6/bugsnag.min.js", { isNonNativeSDK: "true", skipDatasetAttributes: !0 });
|
2495
|
+
}, Eu = function() {
|
2494
2496
|
function n(e, t, r) {
|
2495
|
-
|
2497
|
+
F(this, n), this.pluginName = vn, this.sourceId = e, this.writeKey = t, this.onClientReady = r, this.initClientOnLibReadyInterval = void 0, this.init();
|
2496
2498
|
}
|
2497
2499
|
return N(n, [{ key: "init", value: function() {
|
2498
2500
|
var e = this;
|
2499
2501
|
if ((!window.RudderStackGlobals || !window.RudderStackGlobals[ir]) && !Xn.match(/{{.+}}/)) {
|
2500
|
-
|
2501
|
-
var t = window[
|
2502
|
+
Au(this.pluginName);
|
2503
|
+
var t = window[gn];
|
2502
2504
|
typeof t != "function" ? (this.initClientOnLibReadyInterval = setInterval(function() {
|
2503
|
-
var r = window[
|
2505
|
+
var r = window[gn];
|
2504
2506
|
typeof r == "function" && (ai(r) && e.initClient(), clearInterval(e.initClientOnLibReadyInterval));
|
2505
2507
|
}, 100), setTimeout(function() {
|
2506
2508
|
clearInterval(e.initClientOnLibReadyInterval);
|
2507
|
-
},
|
2509
|
+
}, cn)) : ai(t) && this.initClient();
|
2508
2510
|
}
|
2509
2511
|
} }, { key: "initClient", value: function() {
|
2510
|
-
var e, t = window[
|
2512
|
+
var e, t = window[gn];
|
2511
2513
|
this.client = t({ apiKey: Xn, appVersion: "2.48.7", metaData: { SDK: { name: "JS", installType: "npm" } }, beforeSend: this.onError(), autoTrackSessions: !1, collectUserIp: !1, enabledBreadcrumbTypes: ["error", "log", "user"], maxEvents: 100, releaseStage: (e = window.location.hostname, e && ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"].includes(e) ? "development" : "production"), networkBreadcrumbsEnabled: !1, user: { id: this.writeKey } }), this.onClientReady();
|
2512
2514
|
} }, { key: "onError", value: function() {
|
2513
2515
|
var e = this.sourceId;
|
2514
2516
|
return function(t) {
|
2515
2517
|
try {
|
2516
2518
|
return !!function(r) {
|
2517
|
-
var o =
|
2519
|
+
var o = _t(r, "stacktrace.0.file");
|
2518
2520
|
if (!o || typeof o != "string") return !1;
|
2519
2521
|
var s = o.substring(o.lastIndexOf("/") + 1);
|
2520
|
-
return
|
2522
|
+
return Iu.includes(s);
|
2521
2523
|
}(t) && (function(r, o) {
|
2522
2524
|
r.updateMetaData("source", { metadataSource: o });
|
2523
2525
|
var s = r.errorMessage;
|
@@ -2532,15 +2534,15 @@ var du = function() {
|
|
2532
2534
|
} }, { key: "leaveBreadcrumb", value: function(e) {
|
2533
2535
|
this.client && this.client.leaveBreadcrumb(e);
|
2534
2536
|
} }]), n;
|
2535
|
-
}(), ui = vn, ci = [vn],
|
2537
|
+
}(), ui = vn, ci = [vn], Cu = function() {
|
2536
2538
|
function n(e) {
|
2537
|
-
|
2539
|
+
F(this, n), this.isEnabled = !1, this.providerName = ui, this.provider = void 0, this.logger = e, this.onClientReady = this.onClientReady.bind(this), this.exposeToGlobal = this.exposeToGlobal.bind(this);
|
2538
2540
|
}
|
2539
2541
|
return N(n, [{ key: "init", value: function(e, t, r) {
|
2540
2542
|
e && t ? function(o) {
|
2541
|
-
return
|
2543
|
+
return _t(o, "statsCollection.errors.enabled") || !1;
|
2542
2544
|
}(e) === !0 ? (this.enable(), this.setProviderName(function(o) {
|
2543
|
-
return
|
2545
|
+
return _t(o, "statsCollection.errors.provider");
|
2544
2546
|
}(e)), this.initProvider(e, t, r)) : this.disable() : this.logger.error("[Analytics] ErrorReporting :: Invalid configuration or missing source id provided.");
|
2545
2547
|
} }, { key: "enable", value: function() {
|
2546
2548
|
this.isEnabled = !0;
|
@@ -2549,7 +2551,7 @@ var du = function() {
|
|
2549
2551
|
} }, { key: "setProviderName", value: function(e) {
|
2550
2552
|
e ? !e || ci.includes(e) ? this.providerName = e : this.logger.error("[Analytics] ErrorReporting :: Invalid error reporting provider value. Value should be one of: ".concat(ci.join(","))) : this.providerName = ui;
|
2551
2553
|
} }, { key: "initProvider", value: function(e, t, r) {
|
2552
|
-
this.providerName === vn && (this.provider = new
|
2554
|
+
this.providerName === vn && (this.provider = new Eu(t, r, this.onClientReady));
|
2553
2555
|
} }, { key: "onClientReady", value: function() {
|
2554
2556
|
this.exposeToGlobal();
|
2555
2557
|
} }, { key: "exposeToGlobal", value: function() {
|
@@ -2567,12 +2569,12 @@ var du = function() {
|
|
2567
2569
|
this.logger.error("[Analytics] ErrorReporting :: notify method ".concat(t.toString()));
|
2568
2570
|
}
|
2569
2571
|
} }]), n;
|
2570
|
-
}(),
|
2572
|
+
}(), Ou = new (function() {
|
2571
2573
|
function n() {
|
2572
|
-
|
2574
|
+
F(this, n), this.retryAttempt = 3, this.queue = [], this.isTransformationProcessing = !1, this.authToken = null;
|
2573
2575
|
}
|
2574
2576
|
return N(n, [{ key: "init", value: function(e, t, r) {
|
2575
|
-
this.dataPlaneUrl =
|
2577
|
+
this.dataPlaneUrl = St(t), this.writeKey = e, this.authToken = r || this.authToken, this.start();
|
2576
2578
|
} }, { key: "enqueue", value: function(e, t, r) {
|
2577
2579
|
this.queue.push({ event: e, destinationIds: t, cb: r });
|
2578
2580
|
} }, { key: "sendEventForTransformation", value: function(e, t) {
|
@@ -2631,24 +2633,24 @@ var du = function() {
|
|
2631
2633
|
} }, { key: "setAuthToken", value: function(e) {
|
2632
2634
|
this.authToken = e;
|
2633
2635
|
} }]), n;
|
2634
|
-
}())(),
|
2636
|
+
}())(), _u = function() {
|
2635
2637
|
function n() {
|
2636
|
-
|
2638
|
+
F(this, n), this.initialized = !1, this.clientIntegrations = [], this.loadOnlyIntegrations = {}, this.clientIntegrationObjects = void 0, this.successfullyLoadedIntegration = [], this.failedToBeLoadedIntegration = [], this.toBeProcessedArray = [], this.toBeProcessedByIntegrationArray = [], this.storage = mn, this.eventRepository = ou, this.preProcessQueue = new su(), this.sendAdblockPage = !1, this.sendAdblockPageOptions = {}, this.clientSuppliedCallbacks = {}, this.readyCallbacks = [], this.methodToCallbackMapping = { syncPixel: "syncPixelCallback" }, this.loaded = !1, this.loadIntegration = !0, this.bufferDataPlaneEventsUntilReady = !1, this.dataPlaneEventsBufferTimeout = 1e4, this.integrationsData = {}, this.dynamicallyLoadedIntegrations = {}, this.destSDKBaseURL = Li, this.cookieConsentOptions = {}, this.logLevel = void 0, this.clientIntegrationsReady = !1, this.uSession = vu, this.version = "2.48.7", this.lockIntegrationsVersion = !1, this.errorReporting = new Cu(D), this.deniedConsentIds = [], this.transformationHandler = Ou;
|
2637
2639
|
}
|
2638
2640
|
return N(n, [{ key: "initializeUser", value: function(e) {
|
2639
2641
|
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(e), this.storage.setAnonymousId(this.anonymousId);
|
2640
2642
|
} }, { key: "setInitialPageProperties", value: function() {
|
2641
2643
|
if (this.storage.getInitialReferrer() == null && this.storage.getInitialReferringDomain() == null) {
|
2642
|
-
var e =
|
2644
|
+
var e = Fi();
|
2643
2645
|
this.storage.setInitialReferrer(e), this.storage.setInitialReferringDomain(Ni(e));
|
2644
2646
|
}
|
2645
2647
|
} }, { key: "allModulesInitialized", value: function() {
|
2646
2648
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
2647
2649
|
return new Promise(function(r) {
|
2648
2650
|
e.clientIntegrations.every(function(o) {
|
2649
|
-
return e.dynamicallyLoadedIntegrations["".concat(
|
2650
|
-
}) || t >= 2e4 ? r(e) : e.pause(
|
2651
|
-
return e.allModulesInitialized(t +
|
2651
|
+
return e.dynamicallyLoadedIntegrations["".concat(ze[o.name]).concat("_RS")] != null;
|
2652
|
+
}) || t >= 2e4 ? r(e) : e.pause(nn).then(function() {
|
2653
|
+
return e.allModulesInitialized(t + nn).then(r);
|
2652
2654
|
});
|
2653
2655
|
});
|
2654
2656
|
} }, { key: "executeReadyCallback", value: function() {
|
@@ -2662,7 +2664,7 @@ var du = function() {
|
|
2662
2664
|
try {
|
2663
2665
|
var o = t;
|
2664
2666
|
try {
|
2665
|
-
if (typeof t == "string" && (o = JSON.parse(t)), !o ||
|
2667
|
+
if (typeof t == "string" && (o = JSON.parse(t)), !o || L(o) !== "object" || Array.isArray(o)) return void D.error("Invalid source configuration");
|
2666
2668
|
} catch (a) {
|
2667
2669
|
return void M(a);
|
2668
2670
|
}
|
@@ -2671,10 +2673,10 @@ var du = function() {
|
|
2671
2673
|
} catch (a) {
|
2672
2674
|
M(a);
|
2673
2675
|
}
|
2674
|
-
if (this.serverUrl =
|
2676
|
+
if (this.serverUrl = wa(o, this.serverUrl, this.options), this.eventRepository.initialize(this.writeKey, this.serverUrl, this.options), this.transformationHandler.init(this.writeKey, this.serverUrl, this.storage.getAuthToken()), o.source.destinations.forEach(function(a) {
|
2675
2677
|
a.enabled && this.clientIntegrations.push({ name: a.destinationDefinition.name, config: a.config, destinationInfo: { shouldApplyDeviceModeTransformation: a.shouldApplyDeviceModeTransformation || !1, propagateEventsUntransformedOnError: a.propagateEventsUntransformedOnError || !1, destinationId: a.id } });
|
2676
2678
|
}, this), this.clientIntegrations = Un(this.loadOnlyIntegrations, this.clientIntegrations), Object.keys(this.cookieConsentOptions).length > 0) try {
|
2677
|
-
var s =
|
2679
|
+
var s = mu(this.cookieConsentOptions);
|
2678
2680
|
this.deniedConsentIds = s && s.getDeniedList(), this.clientIntegrations = this.clientIntegrations.filter(function(a) {
|
2679
2681
|
return !s || s && s.isEnabled(a.config);
|
2680
2682
|
});
|
@@ -2689,12 +2691,12 @@ var du = function() {
|
|
2689
2691
|
c.shift(), a[l].apply(a, Me(c));
|
2690
2692
|
}
|
2691
2693
|
}(this), this.clientIntegrations = this.clientIntegrations.filter(function(a) {
|
2692
|
-
return !!
|
2694
|
+
return !!ze[a.name] || (D.error("[Analytics] Integration:: ".concat(a.name, " not available for initialization")), !1);
|
2693
2695
|
}), this.bufferDataPlaneEventsUntilReady && setTimeout(function() {
|
2694
2696
|
r.processBufferedCloudModeEvents();
|
2695
2697
|
}, this.dataPlaneEventsBufferTimeout), this.errorReporting.leaveBreadcrumb("Starting device-mode initialization"), this.clientIntegrations.forEach(function(a) {
|
2696
|
-
var c =
|
2697
|
-
window.hasOwnProperty(l) ||
|
2698
|
+
var c = ze[a.name], l = "".concat(c).concat("_RS"), h = "".concat(r.destSDKBaseURL, "/").concat(c, ".min.js");
|
2699
|
+
window.hasOwnProperty(l) || fn(l, h, { isNonNativeSDK: !0 });
|
2698
2700
|
var f = r, m = setInterval(function() {
|
2699
2701
|
if (f.integrationSDKLoaded(l, c)) {
|
2700
2702
|
var g, b = window[l];
|
@@ -2712,7 +2714,7 @@ var du = function() {
|
|
2712
2714
|
}, 100);
|
2713
2715
|
setTimeout(function() {
|
2714
2716
|
clearInterval(m);
|
2715
|
-
},
|
2717
|
+
}, cn);
|
2716
2718
|
});
|
2717
2719
|
var u = this;
|
2718
2720
|
this.allModulesInitialized().then(function() {
|
@@ -2757,7 +2759,7 @@ var du = function() {
|
|
2757
2759
|
h.propagateEventsUntransformedOnError === !0 && (d = "Sending untransformed event to the destination", y = D.warn, m.push({ event: t.message })), y("".concat(b, " ").concat(R, ". ").concat(d, "."));
|
2758
2760
|
}
|
2759
2761
|
}), m == null || m.forEach(function(g) {
|
2760
|
-
|
2762
|
+
ka(g.event) && o.sendDataToDestination(h, { message: g.event }, r);
|
2761
2763
|
});
|
2762
2764
|
break;
|
2763
2765
|
case 404:
|
@@ -2826,13 +2828,13 @@ var du = function() {
|
|
2826
2828
|
} }, { key: "isInitialized", value: function(e) {
|
2827
2829
|
var t = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
2828
2830
|
return new Promise(function(o) {
|
2829
|
-
e.isLoaded() ? (t.successfullyLoadedIntegration.push(e), o(t)) : r >=
|
2830
|
-
return t.isInitialized(e, r +
|
2831
|
+
e.isLoaded() ? (t.successfullyLoadedIntegration.push(e), o(t)) : r >= cn ? (t.failedToBeLoadedIntegration.push(e), o(t)) : t.pause(nn).then(function() {
|
2832
|
+
return t.isInitialized(e, r + nn).then(o);
|
2831
2833
|
});
|
2832
2834
|
});
|
2833
2835
|
} }, { key: "page", value: function(e, t, r, o, s) {
|
2834
2836
|
if (this.errorReporting.leaveBreadcrumb("Page event"), this.loaded) {
|
2835
|
-
typeof o == "function" && (s = o, o = null), typeof r == "function" && (s = r, o = r = null), typeof t == "function" && (s = t, o = r = t = null), typeof e == "function" && (s = e, o = r = t = e = null),
|
2837
|
+
typeof o == "function" && (s = o, o = null), typeof r == "function" && (s = r, o = r = null), typeof t == "function" && (s = t, o = r = t = null), typeof e == "function" && (s = e, o = r = t = e = null), L(e) === "object" && e != null && e != null && (o = t, r = e, t = e = null), L(t) === "object" && t != null && t != null && (o = r, r = t, t = null), typeof e == "string" && typeof t != "string" && (t = e, e = null), this.sendAdblockPage && e !== "RudderJS-Initiated" && this.sendSampleRequest();
|
2836
2838
|
var u = U(r), a = U(o), c = new vt().setType("page").build();
|
2837
2839
|
u || (u = {}), t && (c.message.name = u.name = t), e && (c.message.category = u.category = e), c.message.properties = this.getPageProperties(u), this.processAndSendDataToDestinations("page", c, a, s);
|
2838
2840
|
} else this.toBeProcessedArray.push(["page"].concat(Array.prototype.slice.call(arguments)));
|
@@ -2844,8 +2846,8 @@ var du = function() {
|
|
2844
2846
|
} else this.toBeProcessedArray.push(["track"].concat(Array.prototype.slice.call(arguments)));
|
2845
2847
|
} }, { key: "identify", value: function(e, t, r, o) {
|
2846
2848
|
if (this.errorReporting.leaveBreadcrumb("Identify event"), this.loaded) {
|
2847
|
-
typeof r == "function" && (o = r, r = null), typeof t == "function" && (o = t, r = null, t = null),
|
2848
|
-
var s =
|
2849
|
+
typeof r == "function" && (o = r, r = null), typeof t == "function" && (o = t, r = null, t = null), L(e) === "object" && (r = t, t = e, e = this.userId);
|
2850
|
+
var s = sn(e);
|
2849
2851
|
s && this.userId && s !== this.userId && this.reset(), this.userId = s, this.storage.setUserId(this.userId);
|
2850
2852
|
var u = U(t), a = U(r);
|
2851
2853
|
if (u) {
|
@@ -2857,16 +2859,16 @@ var du = function() {
|
|
2857
2859
|
} else this.toBeProcessedArray.push(["identify"].concat(Array.prototype.slice.call(arguments)));
|
2858
2860
|
} }, { key: "alias", value: function(e, t, r, o) {
|
2859
2861
|
if (this.errorReporting.leaveBreadcrumb("Alias event"), this.loaded) {
|
2860
|
-
typeof r == "function" && (o = r, r = null), typeof t == "function" && (o = t, r = null, t = null), typeof e == "function" && (o = e, r = null, t = null, e = null),
|
2862
|
+
typeof r == "function" && (o = r, r = null), typeof t == "function" && (o = t, r = null, t = null), typeof e == "function" && (o = e, r = null, t = null, e = null), L(t) === "object" && (r = t, t = null), L(e) === "object" && (r = e, t = null, e = null);
|
2861
2863
|
var s = new vt().setType("alias").build();
|
2862
|
-
s.message.previousId =
|
2864
|
+
s.message.previousId = sn(t) || (this.userId ? this.userId : this.getAnonymousId()), s.message.userId = sn(e);
|
2863
2865
|
var u = U(r);
|
2864
2866
|
this.processAndSendDataToDestinations("alias", s, u, o);
|
2865
2867
|
} else this.toBeProcessedArray.push(["alias"].concat(Array.prototype.slice.call(arguments)));
|
2866
2868
|
} }, { key: "group", value: function(e, t, r, o) {
|
2867
2869
|
if (this.errorReporting.leaveBreadcrumb("Group event"), this.loaded) {
|
2868
2870
|
if (arguments.length !== 0) {
|
2869
|
-
typeof r == "function" && (o = r, r = null), typeof t == "function" && (o = t, r = null, t = null),
|
2871
|
+
typeof r == "function" && (o = r, r = null), typeof t == "function" && (o = t, r = null, t = null), L(e) === "object" && (r = t, t = e, e = this.groupId), typeof e == "function" && (o = e, r = null, t = null, e = this.groupId), this.groupId = sn(e), this.storage.setGroupId(this.groupId);
|
2870
2872
|
var s = U(t), u = U(r), a = new vt().setType("group").build();
|
2871
2873
|
if (s) for (var c in s) this.groupTraits[c] = s[c];
|
2872
2874
|
else this.groupTraits = {};
|
@@ -2905,21 +2907,21 @@ var du = function() {
|
|
2905
2907
|
M(g);
|
2906
2908
|
}
|
2907
2909
|
f = this.cookieConsentOptions, m = !1, Object.keys(f).forEach(function(g) {
|
2908
|
-
|
2910
|
+
Oa.includes(g) && typeof f[g].enabled == "boolean" && f[g].enabled === !0 && (m = !0);
|
2909
2911
|
}), m && (t.message.context.consentManagement = { deniedConsentIds: this.deniedConsentIds || [] }), this.processOptionsParam(t, r), function(g, b) {
|
2910
2912
|
var R = g.properties, d = g.traits, y = g.context;
|
2911
2913
|
R && Object.keys(R).forEach(function(p) {
|
2912
|
-
|
2914
|
+
Fn.indexOf(p.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in properties--> ".concat(p, " with ").concat(b, " call"));
|
2913
2915
|
}), d && Object.keys(d).forEach(function(p) {
|
2914
|
-
|
2916
|
+
Fn.indexOf(p.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in traits--> ".concat(p, " with ").concat(b, " call"));
|
2915
2917
|
});
|
2916
2918
|
var k = y.traits;
|
2917
2919
|
k && Object.keys(k).forEach(function(p) {
|
2918
|
-
|
2920
|
+
Fn.indexOf(p.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in traits --> ".concat(p, " with ").concat(b, " call"));
|
2919
2921
|
});
|
2920
2922
|
}(t.message, e);
|
2921
2923
|
var c = t.message.integrations;
|
2922
|
-
c ? Gn(c) : c = this.shouldUseGlobalIntegrationsConfigInEvents() ? this.loadOnlyIntegrations :
|
2924
|
+
c ? Gn(c) : c = this.shouldUseGlobalIntegrationsConfigInEvents() ? this.loadOnlyIntegrations : Sa, t.message.integrations = c;
|
2923
2925
|
try {
|
2924
2926
|
t.message.context["ua-ch"] = this.uach;
|
2925
2927
|
} catch (g) {
|
@@ -2954,19 +2956,19 @@ var du = function() {
|
|
2954
2956
|
return t;
|
2955
2957
|
} }, { key: "addCampaignInfo", value: function(e) {
|
2956
2958
|
var t = e.message.context;
|
2957
|
-
t &&
|
2959
|
+
t && L(t) === "object" && (e.message.context.campaign = this.utm(window.location.href));
|
2958
2960
|
} }, { key: "processOptionsParam", value: function(e, t) {
|
2959
2961
|
var r = e.message, o = r.type, s = r.properties;
|
2960
2962
|
this.addCampaignInfo(e), e.message.context.page = this.getContextPageProperties(o === "page" ? s : void 0), function(u) {
|
2961
2963
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
2962
|
-
|
2964
|
+
L(a) === "object" && a !== null && Object.keys(a).forEach(function(c) {
|
2963
2965
|
si.includes(c) && (u[c] = a[c]);
|
2964
2966
|
});
|
2965
2967
|
}(e.message, t), e.message.context = function(u) {
|
2966
2968
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = u.context;
|
2967
|
-
return
|
2969
|
+
return L(a) !== "object" || a === null || Object.keys(a).forEach(function(l) {
|
2968
2970
|
if (!si.includes(l) && !$r.includes(l)) if (l !== "context") c = It(c, i({}, l, a[l]));
|
2969
|
-
else if (
|
2971
|
+
else if (L(a[l]) === "object" && a[l] !== null) {
|
2970
2972
|
var h = {};
|
2971
2973
|
Object.keys(a[l]).forEach(function(f) {
|
2972
2974
|
$r.includes(f) || (h[f] = a[l][f]);
|
@@ -2997,7 +2999,7 @@ var du = function() {
|
|
2997
2999
|
} }, { key: "getGroupTraits", value: function() {
|
2998
3000
|
return this.groupTraits;
|
2999
3001
|
} }, { key: "setAnonymousId", value: function(e, t) {
|
3000
|
-
var r = t ?
|
3002
|
+
var r = t ? du(t) : null, o = r ? r.rs_amp_id : null;
|
3001
3003
|
this.anonymousId = e || o || Mi(), this.storage.setAnonymousId(this.anonymousId);
|
3002
3004
|
} }, { key: "isValidWriteKey", value: function(e) {
|
3003
3005
|
return e && typeof e == "string" && e.trim().length > 0;
|
@@ -3008,24 +3010,24 @@ var du = function() {
|
|
3008
3010
|
return e.setAttribute("data-a-b", "c"), !!e.dataset && e.dataset.aB === "c";
|
3009
3011
|
} }, { key: "loadAfterPolyfill", value: function(e, t, r) {
|
3010
3012
|
var o = this;
|
3011
|
-
if (
|
3013
|
+
if (L(t) === "object" && t !== null && (r = t, t = null), r && r.logLevel && (this.logLevel = r.logLevel, D.setLogLevel(r.logLevel)), !this.isValidWriteKey(e)) throw Error("Unable to load the SDK due to invalid writeKey");
|
3012
3014
|
if (!this.storage || Object.keys(this.storage).length === 0) throw Error("Cannot proceed as no storage is available");
|
3013
3015
|
r && r.cookieConsentManager && (this.cookieConsentOptions = r.cookieConsentManager), this.writeKey = e, this.serverUrl = t, this.options = r;
|
3014
3016
|
var s = {};
|
3015
|
-
if (r && r.setCookieDomain && (s = E(E({}, s), {}, { domain: r.setCookieDomain })), r && typeof r.secureCookie == "boolean" && (s = E(E({}, s), {}, { secure: r.secureCookie })), r && typeof r.sameDomainCookiesOnly == "boolean" && (s = E(E({}, s), {}, { sameDomainCookiesOnly: r.sameDomainCookiesOnly })), r &&
|
3017
|
+
if (r && r.setCookieDomain && (s = E(E({}, s), {}, { domain: r.setCookieDomain })), r && typeof r.secureCookie == "boolean" && (s = E(E({}, s), {}, { secure: r.secureCookie })), r && typeof r.sameDomainCookiesOnly == "boolean" && (s = E(E({}, s), {}, { sameDomainCookiesOnly: r.sameDomainCookiesOnly })), r && Ea.indexOf(r.sameSiteCookie) !== -1 && (s = E(E({}, s), {}, { samesite: r.sameSiteCookie })), this.storage.options(s), r && typeof r.uaChTrackLevel == "string" && _a.includes(r.uaChTrackLevel) && (this.uaChTrackLevel = r.uaChTrackLevel), navigator.userAgentData && function(l) {
|
3016
3018
|
var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
3017
3019
|
h === "none" && l(void 0), h === "default" && l(navigator.userAgentData), h === "full" && navigator.userAgentData.getHighEntropyValues(["architecture", "bitness", "brands", "mobile", "model", "platform", "platformVersion", "uaFullVersion", "fullVersionList", "wow64"]).then(function(f) {
|
3018
3020
|
l(f);
|
3019
3021
|
});
|
3020
3022
|
}(function(l) {
|
3021
3023
|
o.uach = l;
|
3022
|
-
}, this.uaChTrackLevel), r && r.integrations && (
|
3024
|
+
}, this.uaChTrackLevel), r && r.integrations && (We(this.loadOnlyIntegrations, r.integrations), Gn(this.loadOnlyIntegrations)), this.useGlobalIntegrationsConfigInEvents = r && r.useGlobalIntegrationsConfigInEvents === !0, r && r.sendAdblockPage && (this.sendAdblockPage = !0), r && r.sendAdblockPageOptions && L(r.sendAdblockPageOptions) === "object" && (this.sendAdblockPageOptions = r.sendAdblockPageOptions), this.uSession.initialize(r), r && r.clientSuppliedCallbacks) {
|
3023
3025
|
var u = {};
|
3024
3026
|
Object.keys(this.methodToCallbackMapping).forEach(function(l) {
|
3025
3027
|
o.methodToCallbackMapping.hasOwnProperty(l) && r.clientSuppliedCallbacks[o.methodToCallbackMapping[l]] && (u[l] = r.clientSuppliedCallbacks[o.methodToCallbackMapping[l]]);
|
3026
|
-
}),
|
3028
|
+
}), We(this.clientSuppliedCallbacks, u), this.registerCallbacks(!0);
|
3027
3029
|
}
|
3028
|
-
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 && typeof r.dataPlaneEventsBufferTimeout == "number" && (this.dataPlaneEventsBufferTimeout = r.dataPlaneEventsBufferTimeout), r && r.lockIntegrationsVersion !== void 0 && (this.lockIntegrationsVersion = r.lockIntegrationsVersion === !0), this.initializeUser(r ? r.anonymousIdOptions : void 0), this.setInitialPageProperties(), this.destSDKBaseURL =
|
3030
|
+
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 && typeof r.dataPlaneEventsBufferTimeout == "number" && (this.dataPlaneEventsBufferTimeout = r.dataPlaneEventsBufferTimeout), r && r.lockIntegrationsVersion !== void 0 && (this.lockIntegrationsVersion = r.lockIntegrationsVersion === !0), this.initializeUser(r ? r.anonymousIdOptions : void 0), this.setInitialPageProperties(), this.destSDKBaseURL = bu(this.version, this.lockIntegrationsVersion, r && r.destSDKBaseURL), r && r.getSourceConfig) if (typeof r.getSourceConfig != "function") M(new Error('option "getSourceConfig" must be a function'));
|
3029
3031
|
else {
|
3030
3032
|
var a = r.getSourceConfig();
|
3031
3033
|
a instanceof Promise ? a.then(function(l) {
|
@@ -3039,7 +3041,7 @@ var du = function() {
|
|
3039
3041
|
}(e, this.lockIntegrationsVersion);
|
3040
3042
|
r && r.configUrl && (c = function(l, h) {
|
3041
3043
|
var f = l;
|
3042
|
-
f.indexOf("sourceConfig") === -1 && (f = "".concat(
|
3044
|
+
f.indexOf("sourceConfig") === -1 && (f = "".concat(St(f), "/sourceConfig/")), f = f.slice(-1) === "/" ? f : "".concat(f, "/");
|
3043
3045
|
var m = h.split("?")[1], g = f.split("?");
|
3044
3046
|
return g.length > 1 && g[1] !== m ? "".concat(g[0], "?").concat(m) : "".concat(f, "?").concat(m);
|
3045
3047
|
}(r.configUrl, c));
|
@@ -3062,13 +3064,13 @@ var du = function() {
|
|
3062
3064
|
var o = U(r);
|
3063
3065
|
if (this.arePolyfillsRequired(o) && Vr) {
|
3064
3066
|
var s = "polyfill";
|
3065
|
-
|
3067
|
+
fn(s, Vr, { skipDatasetAttributes: !0 });
|
3066
3068
|
var u = this, a = setInterval(function() {
|
3067
3069
|
!window.hasOwnProperty(s) && document.getElementById(s) === null || typeof Promise > "u" || (clearInterval(a), u.loadAfterPolyfill(e, t, o));
|
3068
3070
|
}, 100);
|
3069
3071
|
setTimeout(function() {
|
3070
3072
|
clearInterval(a);
|
3071
|
-
},
|
3073
|
+
}, cn);
|
3072
3074
|
} else this.loadAfterPolyfill(e, t, o);
|
3073
3075
|
}
|
3074
3076
|
} }, { key: "ready", value: function(e) {
|
@@ -3087,7 +3089,7 @@ var du = function() {
|
|
3087
3089
|
t.clientSuppliedCallbacks.hasOwnProperty(r) && t.on(r, t.clientSuppliedCallbacks[r]);
|
3088
3090
|
});
|
3089
3091
|
} }, { key: "sendSampleRequest", value: function() {
|
3090
|
-
|
3092
|
+
fn("ad-block", "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js", { isNonNativeSDK: !0 });
|
3091
3093
|
} }, { key: "startSession", value: function(e) {
|
3092
3094
|
this.uSession.start(e);
|
3093
3095
|
} }, { key: "endSession", value: function() {
|
@@ -3095,17 +3097,17 @@ var du = function() {
|
|
3095
3097
|
} }, { key: "setAuthToken", value: function(e) {
|
3096
3098
|
typeof e == "string" ? (this.storage.setAuthToken(e), this.transformationHandler.setAuthToken(e)) : D.error("Provided input should be in string format");
|
3097
3099
|
} }]), n;
|
3098
|
-
}(), P = new
|
3099
|
-
|
3100
|
+
}(), P = new _u();
|
3101
|
+
Ao(P), window.addEventListener("error", function(n) {
|
3100
3102
|
M(n, void 0, P);
|
3101
3103
|
}, !0), P.initializeCallbacks(), P.registerCallbacks(!1);
|
3102
3104
|
var Et, Ki = "load", Ke = window.rudderanalytics, Qi = Array.isArray(Ke);
|
3103
|
-
if (Qi) for (var
|
3104
|
-
if (Ke[
|
3105
|
-
Et = Ke[
|
3105
|
+
if (Qi) for (var ut = 0; ut < Ke.length; ) {
|
3106
|
+
if (Ke[ut] && Ke[ut][0] === Ki) {
|
3107
|
+
Et = Ke[ut], Ke.splice(ut, 1);
|
3106
3108
|
break;
|
3107
3109
|
}
|
3108
|
-
|
3110
|
+
ut += 1;
|
3109
3111
|
}
|
3110
3112
|
(function(n) {
|
3111
3113
|
var e = "ajs_trait_", t = "ajs_prop_";
|
@@ -3132,11 +3134,11 @@ if (Qi) for (var at = 0; at < Ke.length; ) {
|
|
3132
3134
|
P.ready.bind(P);
|
3133
3135
|
P.identify.bind(P);
|
3134
3136
|
P.page.bind(P);
|
3135
|
-
var
|
3137
|
+
var Su = P.track.bind(P);
|
3136
3138
|
P.alias.bind(P);
|
3137
3139
|
P.group.bind(P);
|
3138
3140
|
P.reset.bind(P);
|
3139
|
-
var
|
3141
|
+
var wu = P.load.bind(P);
|
3140
3142
|
P.initialized = !0;
|
3141
3143
|
P.getUserId.bind(P);
|
3142
3144
|
P.getSessionId.bind(P);
|
@@ -3148,14 +3150,14 @@ P.getGroupTraits.bind(P);
|
|
3148
3150
|
P.startSession.bind(P);
|
3149
3151
|
P.endSession.bind(P);
|
3150
3152
|
P.setAuthToken.bind(P);
|
3151
|
-
const
|
3153
|
+
const Tu = {
|
3152
3154
|
STAGING: "2R6llJi7YSuOeJToPXGlQfizt18",
|
3153
3155
|
SANDBOX: "2R6mEpjiTJBErRIn724pt2MWyLA",
|
3154
3156
|
LOCAL: "2QHmFAx84bL4Up6CDHRw0XkKJKC",
|
3155
3157
|
LIVE: "2R6mT9xSJCcbvr6JkiEu7vbrUSW"
|
3156
|
-
},
|
3158
|
+
}, Ru = "https://revolugohxxwg.dataplane.rudderstack.com", Pu = window.RevolugoElements.config.apiEnvironment, Du = Tu[Pu];
|
3157
3159
|
try {
|
3158
|
-
|
3160
|
+
wu(Du, Ru);
|
3159
3161
|
} catch (n) {
|
3160
3162
|
console.error(n);
|
3161
3163
|
}
|
@@ -3175,7 +3177,7 @@ const zi = {
|
|
3175
3177
|
location: {
|
3176
3178
|
type: Object
|
3177
3179
|
}
|
3178
|
-
},
|
3180
|
+
}, xu = fi.extend({
|
3179
3181
|
name: "ContactForm",
|
3180
3182
|
components: {
|
3181
3183
|
BSearchLocationInput: Ji,
|
@@ -3207,16 +3209,16 @@ const zi = {
|
|
3207
3209
|
},
|
3208
3210
|
rules: {
|
3209
3211
|
email: [
|
3210
|
-
(n) =>
|
3211
|
-
(n) =>
|
3212
|
+
(n) => Ye.required(n) || this.$t("ContactForm.errors.requiredEmail"),
|
3213
|
+
(n) => Ye.email(n) || this.$t("ContactForm.errors.invalidEmail")
|
3212
3214
|
],
|
3213
3215
|
adultCount: [
|
3214
|
-
(n) =>
|
3215
|
-
(n) =>
|
3216
|
+
(n) => Ye.minCount(n, 1) || this.$t("ContactForm.errors.minAdultCount"),
|
3217
|
+
(n) => Ye.maxCount(n, 400) || this.$t("ContactForm.errors.maxAdultCount")
|
3216
3218
|
],
|
3217
3219
|
roomCount: [
|
3218
|
-
(n) =>
|
3219
|
-
(n) =>
|
3220
|
+
(n) => Ye.minCount(n, 1) || this.$t("ContactForm.errors.minRoomCount"),
|
3221
|
+
(n) => Ye.maxCount(n, 100) || this.$t("ContactForm.errors.maxRoomCount")
|
3220
3222
|
]
|
3221
3223
|
}
|
3222
3224
|
};
|
@@ -3226,7 +3228,7 @@ const zi = {
|
|
3226
3228
|
var e;
|
3227
3229
|
this.isSubmitting = !0;
|
3228
3230
|
let n = "";
|
3229
|
-
(e = this.config) != null && e.eventMetadata && (n = this.config.eventMetadata.name, this.config.eventMetadata.slug && (n += ` ${this.config.eventMetadata.slug}`)),
|
3231
|
+
(e = this.config) != null && e.eventMetadata && (n = this.config.eventMetadata.name, this.config.eventMetadata.slug && (n += ` ${this.config.eventMetadata.slug}`)), Su(
|
3230
3232
|
"accommodation-request",
|
3231
3233
|
{
|
3232
3234
|
data: {
|
@@ -3251,7 +3253,7 @@ var Lu = function() {
|
|
3251
3253
|
e.$set(e.formData, "email", r);
|
3252
3254
|
}, expression: "formData.email" } }), t("BPhoneInput", { staticClass: "mt-0", model: { value: e.formData.phoneData, callback: function(r) {
|
3253
3255
|
e.$set(e.formData, "phoneData", r);
|
3254
|
-
}, expression: "formData.phoneData" } }), t(
|
3256
|
+
}, expression: "formData.phoneData" } }), t(Ct, { staticClass: "mt-0" }, [t(Qe, [t(cr, { attrs: { "close-on-content-click": !1, "min-width": "auto", "nudge-right": 40, "offset-y": "", transition: "scale-transition" }, scopedSlots: e._u([{ key: "activator", fn: function({ on: r, attrs: o }) {
|
3255
3257
|
return [t(ft, e._g(e._b({ attrs: { dense: "", "hide-details": "", label: e.$t("ContactForm.startDate"), outlined: "", readonly: "", required: "" }, model: { value: e.formData.startDate, callback: function(s) {
|
3256
3258
|
e.$set(e.formData, "startDate", s);
|
3257
3259
|
}, expression: "formData.startDate" } }, "VTextField", o, !1), r))];
|
@@ -3261,7 +3263,7 @@ var Lu = function() {
|
|
3261
3263
|
e.menuStartDate = !1;
|
3262
3264
|
} }, model: { value: e.formData.startDate, callback: function(r) {
|
3263
3265
|
e.$set(e.formData, "startDate", r);
|
3264
|
-
}, expression: "formData.startDate" } })], 1)], 1), t(
|
3266
|
+
}, expression: "formData.startDate" } })], 1)], 1), t(Qe, [t(cr, { attrs: { "close-on-content-click": !1, "min-width": "auto", "nudge-right": 40, "offset-y": "", transition: "scale-transition" }, scopedSlots: e._u([{ key: "activator", fn: function({ on: r, attrs: o }) {
|
3265
3267
|
return [t(ft, e._g(e._b({ attrs: { dense: "", "hide-details": "", label: e.$t("ContactForm.endDate"), outlined: "", readonly: "", required: "" }, model: { value: e.formData.endDate, callback: function(s) {
|
3266
3268
|
e.$set(e.formData, "endDate", s);
|
3267
3269
|
}, expression: "formData.endDate" } }, "VTextField", o, !1), r))];
|
@@ -3271,9 +3273,9 @@ var Lu = function() {
|
|
3271
3273
|
e.menuEndDate = !1;
|
3272
3274
|
} }, model: { value: e.formData.endDate, callback: function(r) {
|
3273
3275
|
e.$set(e.formData, "endDate", r);
|
3274
|
-
}, expression: "formData.endDate" } })], 1)], 1)], 1), t(
|
3276
|
+
}, expression: "formData.endDate" } })], 1)], 1)], 1), t(Ct, [t(Qe, [t(ft, { attrs: { dense: "", label: e.$t("ContactForm.adultCount"), max: "400", min: "1", outlined: "", required: "", rules: e.rules.adultCount, type: "number" }, model: { value: e.formData.adultCount, callback: function(r) {
|
3275
3277
|
e.$set(e.formData, "adultCount", r);
|
3276
|
-
}, expression: "formData.adultCount" } })], 1), t(
|
3278
|
+
}, expression: "formData.adultCount" } })], 1), t(Qe, [t(ft, { attrs: { dense: "", label: e.$t("ContactForm.roomCount"), max: "400", min: "1", outlined: "", required: "", rules: e.rules.roomCount, type: "number" }, model: { value: e.formData.roomCount, callback: function(r) {
|
3277
3279
|
e.$set(e.formData, "roomCount", r);
|
3278
3280
|
}, expression: "formData.roomCount" } })], 1)], 1), t("BSearchLocationInput", { attrs: { outlined: "", "with-details": "" }, model: { value: e.formData.location, callback: function(r) {
|
3279
3281
|
e.$set(e.formData, "location", r);
|
@@ -3282,15 +3284,15 @@ var Lu = function() {
|
|
3282
3284
|
}, expression: "formData.specificRequest" } }), t("div", { staticClass: "d-flex justify-end" }, [t(er, { attrs: { color: e.isSuccess ? "green" : "primary", "data-cy": "submit-button", "data-attr": "submit-button", disabled: !e.isFormValid || e.isSubmitting || e.isSuccess, loading: e.isSubmitting }, on: { click: function(r) {
|
3283
3285
|
return e.onSubmit();
|
3284
3286
|
} } }, [e._v(" " + e._s(e.$t("ContactForm.submit")) + " ")])], 1)], 1)], 1);
|
3285
|
-
},
|
3286
|
-
Du,
|
3287
|
-
Lu,
|
3287
|
+
}, Mu = [], Bu = /* @__PURE__ */ Zn(
|
3288
3288
|
xu,
|
3289
|
+
Lu,
|
3290
|
+
Mu,
|
3289
3291
|
!1,
|
3290
3292
|
null,
|
3291
3293
|
null
|
3292
3294
|
);
|
3293
|
-
const Fu =
|
3295
|
+
const Fu = Bu.exports, Nu = {
|
3294
3296
|
...zi,
|
3295
3297
|
boilerplateSkeleton: {
|
3296
3298
|
type: Boolean
|
@@ -3308,7 +3310,7 @@ const Fu = Mu.exports, Bu = {
|
|
3308
3310
|
checkOutDate: {
|
3309
3311
|
type: String
|
3310
3312
|
}
|
3311
|
-
},
|
3313
|
+
}, Gu = fi.extend({
|
3312
3314
|
name: "HotelOfferListEmpty",
|
3313
3315
|
components: {
|
3314
3316
|
BErrorOverlay: so,
|
@@ -3316,7 +3318,7 @@ const Fu = Mu.exports, Bu = {
|
|
3316
3318
|
ContactForm: Fu
|
3317
3319
|
},
|
3318
3320
|
mixins: [Jn("components/RevolugoElements/HotelOfferListEmpty"), hi],
|
3319
|
-
props:
|
3321
|
+
props: Nu,
|
3320
3322
|
data() {
|
3321
3323
|
return {
|
3322
3324
|
typeData: this.type
|
@@ -3393,7 +3395,7 @@ const Fu = Mu.exports, Bu = {
|
|
3393
3395
|
}
|
3394
3396
|
}
|
3395
3397
|
});
|
3396
|
-
var
|
3398
|
+
var Uu = function() {
|
3397
3399
|
var e = this, t = e._self._c;
|
3398
3400
|
return e._self._setupProxy, t("div", { staticClass: "position-relative" }, [e._l(6, function(r) {
|
3399
3401
|
return [t("HotelOfferItemLayout", { key: r, class: {
|
@@ -3408,15 +3410,15 @@ var Gu = function() {
|
|
3408
3410
|
e.typeData = "accommodationSuccess";
|
3409
3411
|
} } }) : e._e(), e.typeData === "noResultsFiltered" ? t(er, { attrs: { color: "primary", outlined: "", small: "" }, on: { click: e.onResetFilters } }, [e._v(" " + e._s(e.$t("HotelOfferListEmpty.noResultsFiltered.reset")) + " ")]) : e._e()], 1)];
|
3410
3412
|
}, proxy: !0 }], null, !1, 1236007322) }) : e._e()], 2);
|
3411
|
-
},
|
3412
|
-
Nu,
|
3413
|
+
}, ju = [], Hu = /* @__PURE__ */ Zn(
|
3413
3414
|
Gu,
|
3414
3415
|
Uu,
|
3416
|
+
ju,
|
3415
3417
|
!1,
|
3416
3418
|
null,
|
3417
3419
|
null
|
3418
3420
|
);
|
3419
|
-
const
|
3421
|
+
const qu = Hu.exports, Ku = po(
|
3420
3422
|
Yi,
|
3421
3423
|
co({
|
3422
3424
|
fallbackValue: {},
|
@@ -3426,23 +3428,24 @@ const Hu = ju.exports, qu = ho(
|
|
3426
3428
|
name: "HotelOfferList",
|
3427
3429
|
components: {
|
3428
3430
|
BHotelOffersFilterBar: Zi,
|
3431
|
+
BHotelSearchBar: fo,
|
3429
3432
|
HotelOfferItem: eo,
|
3430
3433
|
HotelOfferItemLayout: li,
|
3431
|
-
HotelOfferListEmpty:
|
3434
|
+
HotelOfferListEmpty: qu,
|
3432
3435
|
HotelRoomOfferList: lo,
|
3433
|
-
TermsAndConditions:
|
3436
|
+
TermsAndConditions: go
|
3434
3437
|
},
|
3435
3438
|
mixins: [
|
3436
3439
|
hi,
|
3437
3440
|
Jn("components/RevolugoElements/HotelOfferList"),
|
3438
3441
|
to,
|
3439
|
-
|
3442
|
+
ho(
|
3440
3443
|
["bookingApiClient", "config.currency", "config.lang"],
|
3441
3444
|
"retrieveHotelOffers"
|
3442
3445
|
)
|
3443
3446
|
],
|
3444
3447
|
store: $i,
|
3445
|
-
props:
|
3448
|
+
props: vo,
|
3446
3449
|
computed: {
|
3447
3450
|
areFiltersActive: Ee("hotelOffers/areFiltersActive"),
|
3448
3451
|
hasErrorHotelOffers: Ee("hotelOffers/hasError"),
|
@@ -3526,14 +3529,16 @@ const Hu = ju.exports, qu = ho(
|
|
3526
3529
|
}
|
3527
3530
|
}
|
3528
3531
|
});
|
3529
|
-
var
|
3532
|
+
var Qu = function() {
|
3530
3533
|
var e = this, t = e._self._c;
|
3531
3534
|
return e._self._setupProxy, t(uo, { ref: "hotel-offer-list-container", staticClass: "pa-0 white", staticStyle: { "min-height": "500px" }, style: {
|
3532
3535
|
height: e.parsedHeight,
|
3533
3536
|
maxHeight: e.maxHeight,
|
3534
3537
|
overflowY: "auto",
|
3535
3538
|
overflowX: "hidden"
|
3536
|
-
} }, [e.
|
3539
|
+
} }, [e.parsedFeatures.HotelOfferSearchMenu ? t(Ct, { staticClass: "px-2 pt-4", class: e.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : "", attrs: { "no-gutters": "" } }, [t(Qe, [e.isBookingApiClientDefined ? t("BHotelSearchBar", { attrs: { "is-fetching": e.showSkeleton, "loading-bar-enabled": !1, "with-border": !1 }, model: { value: e.hotelOfferRequestInternal, callback: function(r) {
|
3540
|
+
e.hotelOfferRequestInternal = r;
|
3541
|
+
}, expression: "hotelOfferRequestInternal" } }) : e._e()], 1)], 1) : e._e(), e.displayFiltersMenu && e.isBookingApiClientDefined ? t(Ct, { class: e.$isCurrentBreakpointAboveOrEqual("md") ? "sticky" : "", attrs: { "no-gutters": "" } }, [t(Qe, [t("BHotelOffersFilterBar"), e.$breakpointService.xs ? e._e() : t(Kn)], 1)], 1) : e._e(), t(Ct, { attrs: { "no-gutters": "" } }, [t(Qe, [e.showSkeleton ? [t("HotelOfferListEmpty")] : e.showErrorMessage ? [t("HotelOfferListEmpty", { attrs: { type: "internalError" } })] : e.showNoResultsMessage ? [t("HotelOfferListEmpty", { attrs: { address: e.hotelOfferRequest.address, "adult-count": e.hotelOfferRequest.adultCount, "check-in-date": e.hotelOfferRequest.checkInDate, "check-out-date": e.hotelOfferRequest.checkOutDate, latitude: e.hotelOfferRequest.latitude, longitude: e.hotelOfferRequest.longitude, "room-count": e.hotelOfferRequest.roomCount, "source-market": e.hotelOfferRequest.sourceMarket, type: "noResults" }, on: { "reset-filters": e.onResetFilters } })] : [t(mo, { directives: [{ name: "show", rawName: "v-show", value: e.loadingBarEnabled && e.isPollingHotelOffers, expression: "loadingBarEnabled && isPollingHotelOffers" }], attrs: { indeterminate: "" } }), e._l(e.hotelOffers, function(r, o) {
|
3537
3542
|
var s;
|
3538
3543
|
return [t("HotelOfferItem", { key: r.id, staticClass: "pr-3", class: {
|
3539
3544
|
"mt-0": o === 0,
|
@@ -3544,18 +3549,18 @@ var Ku = function() {
|
|
3544
3549
|
return e.onHotelOfferItemMouseover(r);
|
3545
3550
|
} } }, [(s = e.parsedFeatures.HotelOfferItem) != null && s.HotelRoomOfferList ? t("div", { staticClass: "mx-n2" }, [t("HotelRoomOfferList", { attrs: { "adult-count": e.hotelOfferRequest.adultCount, "check-in-date": e.hotelOfferRequest.checkInDate, "check-out-date": e.hotelOfferRequest.checkOutDate, children: e.hotelOfferRequest.children, "hotel-id": r.id, "hotel-timezone": r.timezone, limit: e.hotelRoomOffersLimit, "room-count": e.hotelOfferRequest.roomCount, "source-market": e.hotelOfferRequest.sourceMarket } })], 1) : e._e()]), t(Kn, { key: r.id + "-divider" })];
|
3546
3551
|
}), e.startingAfter ? t("div", { staticClass: "d-flex justify-center align-center py-3" }, [t(er, { attrs: { color: "primary", depressed: "", disabled: e.isPollingHotelOffers || !e.startingAfter, loading: e.isPollingHotelOffers }, on: { click: e.onSeeMoreClick } }, [e._v(" " + e._s(e.$t("HotelOfferList.showMore")) + " ")])], 1) : e._e()]], 2)], 1), e.parsedFeatures.TermsAndConditionsFooter ? t("TermsAndConditions", { attrs: { theme: "light" } }) : e._e()], 1);
|
3547
|
-
},
|
3548
|
-
qu,
|
3552
|
+
}, zu = [], Vu = /* @__PURE__ */ Zn(
|
3549
3553
|
Ku,
|
3550
3554
|
Qu,
|
3555
|
+
zu,
|
3551
3556
|
!1,
|
3552
3557
|
null,
|
3553
3558
|
null
|
3554
3559
|
);
|
3555
|
-
const
|
3560
|
+
const gc = Vu.exports;
|
3556
3561
|
export {
|
3557
|
-
|
3558
|
-
|
3559
|
-
|
3562
|
+
gc as H,
|
3563
|
+
yo as a,
|
3564
|
+
vo as h
|
3560
3565
|
};
|
3561
|
-
//# sourceMappingURL=revolugo.hotelofferlist.
|
3566
|
+
//# sourceMappingURL=revolugo.hotelofferlist.CBPL81ft.min.js.map
|