@revolugo/elements 5.23.3-beta.4 → 5.23.3-beta.40

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.
Files changed (112) hide show
  1. package/dist/index.es.min.js +525 -523
  2. package/dist/index.es.min.js.map +1 -1
  3. package/dist/index.min.js +3 -3
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/{revolugo.banktransferdetails.BPoCZOc6.min.js → revolugo.banktransferdetails.abCtPgHD.min.js} +12 -12
  6. package/dist/{revolugo.bdaterangepicker.CkV4cZB0.min.js → revolugo.bdaterangepicker.B7dkBByh.min.js} +12 -12
  7. package/dist/{revolugo.bformattedamount.CsOFIEgy.min.js → revolugo.bformattedamount.Bu4V-Ui5.min.js} +3 -3
  8. package/dist/{revolugo.bhotelroomsdetails.BkmVy-EE.min.js → revolugo.bhotelroomsdetails.b1pvaSpB.min.js} +7 -7
  9. package/dist/{revolugo.bhotelsearchbar.BaY2roHn.min.js → revolugo.bhotelsearchbar.xOnEInc-.min.js} +17 -17
  10. package/dist/{revolugo.booking-api-client.D56Pe2vn.min.js → revolugo.booking-api-client.BOzfwVYX.min.js} +298 -297
  11. package/dist/{revolugo.bookingdetailssidebar.ClpP6ITa.min.js → revolugo.bookingdetailssidebar.COAANpPA.min.js} +4 -4
  12. package/dist/{revolugo.bookingdetailssidebar.d__pd2jO.min.js → revolugo.bookingdetailssidebar.DNtdVV_p.min.js} +13 -13
  13. package/dist/{revolugo.bookingmanager.BisvG_FM.min.js → revolugo.bookingmanager.BtkAOGoG.min.js} +23 -23
  14. package/dist/{revolugo.bphoneinput.Bg8CS8mC.min.js → revolugo.bphoneinput.DmGBPbRi.min.js} +6 -6
  15. package/dist/{revolugo.bpricesummaryskeleton.DbHt_PGm.min.js → revolugo.bpricesummaryskeleton.Dn4RFqEr.min.js} +4 -4
  16. package/dist/{revolugo.breakpoint-service.DUb5_ezX.min.js → revolugo.breakpoint-service.CYufk1eo.min.js} +3 -3
  17. package/dist/{revolugo.bstarrating.CuZh0f5w.min.js → revolugo.bstarrating.Bvgl8dLm.min.js} +6 -6
  18. package/dist/{revolugo.btag.3vdsKlgH.min.js → revolugo.btag.BvOz4Gun.min.js} +7 -7
  19. package/dist/{revolugo.cancellationpoliciesbadge.BPd3LRJI.min.js → revolugo.cancellationpoliciesbadge.BT58DhH8.min.js} +4 -4
  20. package/dist/{revolugo.cancellationpoliciesbadge.DpVX5YWF.min.js → revolugo.cancellationpoliciesbadge.C2fdUJMx.min.js} +7 -7
  21. package/dist/{revolugo.cancellationpolicieslist.BpOsykWq.min.js → revolugo.cancellationpolicieslist.D3iB523D.min.js} +4 -4
  22. package/dist/{revolugo.cancellationpolicieslist.C1kM3IqM.min.js → revolugo.cancellationpolicieslist.D7-_qpRx.min.js} +3 -3
  23. package/dist/{revolugo.common.BS_crY4Y.min.js → revolugo.common.Ds2kJJjk.min.js} +2 -2
  24. package/dist/{revolugo.creditcardform.BupqZk89.min.js → revolugo.creditcardform.BUS8RitX.min.js} +4 -4
  25. package/dist/{revolugo.creditcardform.DmLlXRmn.min.js → revolugo.creditcardform.azL7EOJI.min.js} +14 -14
  26. package/dist/{revolugo.creditcardpayment.21H7PWsv.min.js → revolugo.creditcardpayment.RryGMo6F.min.js} +16 -16
  27. package/dist/{revolugo.creditcardpayment.D4flbHpN.min.js → revolugo.creditcardpayment.u33P8_zp.min.js} +4 -4
  28. package/dist/{revolugo.currencypicker.BaTLWYOJ.min.js → revolugo.currencypicker.pgTJ4rt4.min.js} +9 -9
  29. package/dist/{revolugo.currencypickerbtn.RCPoysCi.min.js → revolugo.currencypickerbtn.D0e0gPz7.min.js} +4 -4
  30. package/dist/{revolugo.currencypickerbtn.DyI0qNsN.min.js → revolugo.currencypickerbtn.QvHF15D0.min.js} +9 -9
  31. package/dist/{revolugo.dialog-attach.I-eRrHaU.min.js → revolugo.dialog-attach.MZOEqNEV.min.js} +2 -2
  32. package/dist/{revolugo.fastbookingflow.BObItYgs.min.js → revolugo.fastbookingflow.tLTnI0rU.min.js} +4 -4
  33. package/dist/{revolugo.fullbookingflow.D-XqkY0f.min.js → revolugo.fullbookingflow.CwMQovLH.min.js} +18 -18
  34. package/dist/{revolugo.hotel-offer.CnjihA8E.min.js → revolugo.hotel-offer.BI38d5Tm.min.js} +13 -13
  35. package/dist/{revolugo.hoteldescriptionview.CdSXoADy.min.js → revolugo.hoteldescriptionview.CLucJ1gS.min.js} +4 -4
  36. package/dist/{revolugo.hoteldescriptionview.DPrWR-tz.min.js → revolugo.hoteldescriptionview.D5n4WBqc.min.js} +488 -507
  37. package/dist/{revolugo.hotelofferitemlayout.CVtYhBUf.min.js → revolugo.hotelofferitemlayout.YB8WDf9L.min.js} +8 -8
  38. package/dist/{revolugo.hotelofferlist.TKKQIUqa.min.js → revolugo.hotelofferlist.B-rtidyw.min.js} +4 -4
  39. package/dist/revolugo.hotelofferlist.DTu7ZopK.min.js +3619 -0
  40. package/dist/{revolugo.hotelofferrequestcreator.IQR0aDCs.min.js → revolugo.hotelofferrequestcreator.BQsTvD8F.min.js} +4 -4
  41. package/dist/{revolugo.hoteloffersearchmenu.CfQHCrZR.min.js → revolugo.hoteloffersearchmenu.BPHAQoVZ.min.js} +6 -6
  42. package/dist/{revolugo.hoteloffersmap.Du2V7IHy.min.js → revolugo.hoteloffersmap.Dc3Djbce.min.js} +27 -27
  43. package/dist/{revolugo.hoteloffersmap.CeeGfpPA.min.js → revolugo.hoteloffersmap.fhoY4i49.min.js} +4 -4
  44. package/dist/{revolugo.hoteloffersview.CbTgbl8k.min.js → revolugo.hoteloffersview.CN3aDzKp.min.js} +4 -4
  45. package/dist/{revolugo.hoteloffersview.C5jY4-eP.min.js → revolugo.hoteloffersview.u9eJgSdG.min.js} +17 -17
  46. package/dist/{revolugo.hotelroomofferlist.Bwwqc-Q6.min.js → revolugo.hotelroomofferlist.BrpTGPm2.min.js} +29 -29
  47. package/dist/{revolugo.hotelroomofferlist.DWXIli7v.min.js → revolugo.hotelroomofferlist.DWaAwePZ.min.js} +4 -4
  48. package/dist/{revolugo.hotelroomofferrequestcreator.MunzTrJO.min.js → revolugo.hotelroomofferrequestcreator.CM4cg4DS.min.js} +4 -4
  49. package/dist/{revolugo.hotelroomoffersbookingflow.COD_0DhN.min.js → revolugo.hotelroomoffersbookingflow.RH7qyqPm.min.js} +19 -19
  50. package/dist/{revolugo.hotelroomoffersearchmenu.zfNi4b7U.min.js → revolugo.hotelroomoffersearchmenu.55HHjwST.min.js} +4 -4
  51. package/dist/{revolugo.hotelroomoffersearchmenu.B_bUx5cj.min.js → revolugo.hotelroomoffersearchmenu.OVFJ9LCC.min.js} +5 -5
  52. package/dist/{revolugo.hotelroomoffersview.DaQGRCBc.min.js → revolugo.hotelroomoffersview.BvpNR588.min.js} +4 -4
  53. package/dist/{revolugo.hotelroomoffersview.CrbpPnbl.min.js → revolugo.hotelroomoffersview.C9W3t6oM.min.js} +12 -12
  54. package/dist/{revolugo.i18n.DJp1BJZl.min.js → revolugo.i18n.CuDReacQ.min.js} +440 -441
  55. package/dist/{revolugo.index.Cgg8DUoL.min.js → revolugo.index.BG5xy16p.min.js} +2 -2
  56. package/dist/{revolugo.index.DgazXTs1.min.js → revolugo.index.BfaIoxFY.min.js} +2 -2
  57. package/dist/{revolugo.index.BoBOxjpv.min.js → revolugo.index.BjMVo6uv.min.js} +6 -6
  58. package/dist/{revolugo.index.C2VOA16L.min.js → revolugo.index.C1PRuwys.min.js} +3 -3
  59. package/dist/{revolugo.index.CBJ5iEc4.min.js → revolugo.index.CFSkbmtc.min.js} +7 -7
  60. package/dist/{revolugo.index.D7cGYfra.min.js → revolugo.index.CKgve2FN.min.js} +3 -3
  61. package/dist/{revolugo.index.CRanWVGQ.min.js → revolugo.index.CnetTZdK.min.js} +3 -3
  62. package/dist/revolugo.index.Dj2qcRAu.min.js +15 -0
  63. package/dist/{revolugo.index.BJPpTba5.min.js → revolugo.index.DtnM8mh_.min.js} +5 -5
  64. package/dist/{revolugo.index.D4INQ-Xw.min.js → revolugo.index.SpWD4hl3.min.js} +5 -5
  65. package/dist/{revolugo.index.B_dxxszI.min.js → revolugo.index._koCafXL.min.js} +2 -2
  66. package/dist/{revolugo.index.CM7Dj4bN.min.js → revolugo.index.nG_rdN5i.min.js} +6 -6
  67. package/dist/{revolugo.index.BhwYkpJz.min.js → revolugo.index.wKEERS5G.min.js} +5 -5
  68. package/dist/{revolugo.index.DNgB-JFT.min.js → revolugo.index.y2z5jkKQ.min.js} +4 -4
  69. package/dist/{revolugo.langpicker.CFQGlH-z.min.js → revolugo.langpicker.BzFnLUm9.min.js} +7 -7
  70. package/dist/{revolugo.langpickerbtn.BVFpcWD9.min.js → revolugo.langpickerbtn.Cn-p3RAu.min.js} +4 -4
  71. package/dist/{revolugo.langpickerbtn.B6rXIuIK.min.js → revolugo.langpickerbtn.EMYV4hoY.min.js} +10 -10
  72. package/dist/revolugo.min.js +26 -26
  73. package/dist/{revolugo.parsed-height.LvRt1mVp.min.js → revolugo.parsed-height.D3VO935x.min.js} +51 -50
  74. package/dist/{revolugo.parsed-props.NmBxeUBk.min.js → revolugo.parsed-props.C2NezSgu.min.js} +3 -3
  75. package/dist/{revolugo.prebookform.DSV_SZ6s.min.js → revolugo.prebookform.y6Le8jqk.min.js} +19 -19
  76. package/dist/{revolugo.prebookform.bB7V9YzS.min.js → revolugo.prebookform.z40QeX8Y.min.js} +4 -4
  77. package/dist/{revolugo.revolugo-config.Dkehj59O.min.js → revolugo.revolugo-config.Dlt8EylH.min.js} +4 -4
  78. package/dist/{revolugo.roominglisteditor.rZVMmU5a.min.js → revolugo.roominglisteditor.CGGfrU9y.min.js} +4 -4
  79. package/dist/{revolugo.roominglisteditor.CaybuE05.min.js → revolugo.roominglisteditor.ltVJG2yb.min.js} +10 -10
  80. package/dist/{revolugo.sentry.CA9DWKCt.min.js → revolugo.sentry.fRRV-E4u.min.js} +5 -5
  81. package/dist/{revolugo.store.C_qA6Gfo.min.js → revolugo.store.BlcQQ-4u.min.js} +5 -6
  82. package/dist/{revolugo.storybooktoolbar.D2dH-JXc.min.js → revolugo.storybooktoolbar.PNDGMI0x.min.js} +16 -16
  83. package/dist/{revolugo.termsandconditions.MunLwxhw.min.js → revolugo.termsandconditions.BcLdmO9u.min.js} +4 -4
  84. package/dist/{revolugo.termsandconditions.CYLfBMut.min.js → revolugo.termsandconditions.BpNUnlCe.min.js} +6 -6
  85. package/dist/revolugo.typed-mixins.CTkQuxKC.min.js +8 -0
  86. package/dist/{revolugo.valert.D3pDjc9Q.min.js → revolugo.valert.BaEBE0P-.min.js} +7 -7
  87. package/dist/{revolugo.vautocomplete.CPaVaGiA.min.js → revolugo.vautocomplete.DYSxxpv7.min.js} +5 -5
  88. package/dist/{revolugo.vbadge.CDbO47P2.min.js → revolugo.vbadge.DgrYAEFj.min.js} +6 -6
  89. package/dist/{revolugo.vbtn.BOfgH8Wa.min.js → revolugo.vbtn.C9YDeyc-.min.js} +7 -7
  90. package/dist/{revolugo.vcard.Bzp7wqdG.min.js → revolugo.vcard.DX8p2-Xj.min.js} +6 -6
  91. package/dist/{revolugo.vdialog.Bcrnfgjj.min.js → revolugo.vdialog.Cd0XOERM.min.js} +7 -7
  92. package/dist/{revolugo.vexpansionpanelheader.UKudIRjp.min.js → revolugo.vexpansionpanelheader.D0qJ_bqC.min.js} +8 -8
  93. package/dist/{revolugo.vform.DF6KnN39.min.js → revolugo.vform.DYPyEXKA.min.js} +5 -5
  94. package/dist/{revolugo.vinput.DME_O8bX.min.js → revolugo.vinput.CBbRCC9E.min.js} +5 -5
  95. package/dist/{revolugo.vitemgroup.8HXdmkxE.min.js → revolugo.vitemgroup.BWlTh2TE.min.js} +5 -5
  96. package/dist/{revolugo.vlistitem.DiEPSDnW.min.js → revolugo.vlistitem.It57-y90.min.js} +6 -6
  97. package/dist/{revolugo.vmenu.CpxV4-ha.min.js → revolugo.vmenu.CXLFtdm8.min.js} +8 -8
  98. package/dist/{revolugo.vselect.-b9NHAuu.min.js → revolugo.vselect.5aTjQlRS.min.js} +15 -15
  99. package/dist/{revolugo.vsheet.CeWjeG7F.min.js → revolugo.vsheet.Crxfmq3Y.min.js} +5 -5
  100. package/dist/{revolugo.vskeletonloader.BZ3Ofw3r.min.js → revolugo.vskeletonloader.Dety0a9H.min.js} +4 -4
  101. package/dist/{revolugo.vslidegroup.CNm71Mlw.min.js → revolugo.vslidegroup.3piQiZq8.min.js} +10 -10
  102. package/dist/{revolugo.vsnackbar.3nGknINv.min.js → revolugo.vsnackbar.L36Qpan4.min.js} +5 -5
  103. package/dist/{revolugo.vtextfield.Bv4jVNDA.min.js → revolugo.vtextfield.CPbhfKsq.min.js} +7 -7
  104. package/dist/{revolugo.vtoolbar.DQkfwaLz.min.js → revolugo.vtoolbar.BnwpZJCn.min.js} +5 -5
  105. package/dist/{revolugo.vtooltip.DfaGkFuR.min.js → revolugo.vtooltip.BtiNycgC.min.js} +5 -5
  106. package/dist/{revolugo.vuetify.DGhSGOdJ.min.js → revolugo.vuetify.CewyUEmk.min.js} +3 -3
  107. package/dist/{revolugo.watch-list.DAnXYWrE.min.js → revolugo.watch-list.DLmiG3rJ.min.js} +3 -3
  108. package/dist/{revolugo.webcomponentwrapper.B5IE4fW6.min.js → revolugo.webcomponentwrapper.Od8ojyDM.min.js} +5 -5
  109. package/package.json +6 -6
  110. package/dist/revolugo.hotelofferlist.C-g6dHx1.min.js +0 -3566
  111. package/dist/revolugo.index.tqPrtZRB.min.js +0 -15
  112. package/dist/revolugo.typed-mixins.DP8MlXy7.min.js +0 -8
@@ -1,3566 +0,0 @@
1
- import { a as Vi } from "./revolugo.booking-api-client.D56Pe2vn.min.js";
2
- import { a as $i, g as Ee, d as lt } from "./revolugo.store.C_qA6Gfo.min.js";
3
- import { h as Wi, H as Yi } from "./revolugo.hotelofferrequestcreator.IQR0aDCs.min.js";
4
- import { H as Xi, B as Ji, b as Zi, c as eo, p as to } from "./revolugo.parsed-height.LvRt1mVp.min.js";
5
- import { H as li } from "./revolugo.hotelofferitemlayout.CVtYhBUf.min.js";
6
- import { Y as no, V as fi, Z as Ye, a as ro } from "./revolugo.i18n.DJp1BJZl.min.js";
7
- import { B as io, _ as oo } from "./revolugo.bphoneinput.Bg8CS8mC.min.js";
8
- import { l as Jn, n as Zn, _ as Ct, a as Qe, B as so } from "./revolugo.webcomponentwrapper.B5IE4fW6.min.js";
9
- import { _ as ao } from "./revolugo.vform.DF6KnN39.min.js";
10
- import { _ as ft } from "./revolugo.vtextfield.Bv4jVNDA.min.js";
11
- import { _ as cr } from "./revolugo.vmenu.CpxV4-ha.min.js";
12
- import { a as lr, _ as uo } from "./revolugo.bdaterangepicker.CkV4cZB0.min.js";
13
- import { _ as er } from "./revolugo.vbtn.BOfgH8Wa.min.js";
14
- import { b as hi } from "./revolugo.breakpoint-service.DUb5_ezX.min.js";
15
- import { _ as Kn, p as co } from "./revolugo.parsed-props.NmBxeUBk.min.js";
16
- import { H as lo } from "./revolugo.hotelroomofferlist.Bwwqc-Q6.min.js";
17
- import { B as fo } from "./revolugo.bhotelsearchbar.BaY2roHn.min.js";
18
- import { w as ho } from "./revolugo.watch-list.DAnXYWrE.min.js";
19
- import { t as po } from "./revolugo.typed-mixins.DP8MlXy7.min.js";
20
- import { T as go } from "./revolugo.termsandconditions.CYLfBMut.min.js";
21
- import { _ as mo } from "./revolugo.index.CBJ5iEc4.min.js";
22
- const yo = {
23
- FiltersBar: !0,
24
- HotelOfferSearchMenu: !1,
25
- TermsAndConditionsFooter: !0,
26
- HotelOfferItem: Xi
27
- }, vo = {
28
- ...Wi,
29
- features: {
30
- default: () => yo,
31
- type: [Object, String]
32
- },
33
- height: {
34
- default: "600px",
35
- type: [Number, String]
36
- },
37
- hotelRoomOffersLimit: {
38
- type: Number
39
- },
40
- loadingBarEnabled: {
41
- type: Boolean,
42
- default: !0
43
- },
44
- limit: {
45
- type: Number,
46
- default: no
47
- },
48
- maxHeight: {
49
- default: "90vh",
50
- type: [Number, String]
51
- },
52
- rounded: {
53
- type: Boolean,
54
- default: !0
55
- }
56
- };
57
- function fr(n, e) {
58
- var t = Object.keys(n);
59
- if (Object.getOwnPropertySymbols) {
60
- var r = Object.getOwnPropertySymbols(n);
61
- e && (r = r.filter(function(o) {
62
- return Object.getOwnPropertyDescriptor(n, o).enumerable;
63
- })), t.push.apply(t, r);
64
- }
65
- return t;
66
- }
67
- function E(n) {
68
- for (var e = 1; e < arguments.length; e++) {
69
- var t = arguments[e] != null ? arguments[e] : {};
70
- e % 2 ? fr(Object(t), !0).forEach(function(r) {
71
- i(n, r, t[r]);
72
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : fr(Object(t)).forEach(function(r) {
73
- Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
74
- });
75
- }
76
- return n;
77
- }
78
- function di(n) {
79
- var e = function(t, r) {
80
- if (typeof t != "object" || !t) return t;
81
- var o = t[Symbol.toPrimitive];
82
- if (o !== void 0) {
83
- var s = o.call(t, r || "default");
84
- if (typeof s != "object") return s;
85
- throw new TypeError("@@toPrimitive must return a primitive value.");
86
- }
87
- return (r === "string" ? String : Number)(t);
88
- }(n, "string");
89
- return typeof e == "symbol" ? e : String(e);
90
- }
91
- function L(n) {
92
- return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
93
- return typeof e;
94
- } : function(e) {
95
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
96
- }, L(n);
97
- }
98
- function F(n, e) {
99
- if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
100
- }
101
- function bo(n, e) {
102
- for (var t = 0; t < e.length; t++) {
103
- var r = e[t];
104
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, di(r.key), r);
105
- }
106
- }
107
- function N(n, e, t) {
108
- return e && bo(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n;
109
- }
110
- function i(n, e, t) {
111
- return (e = di(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
112
- }
113
- function We() {
114
- return We = Object.assign ? Object.assign.bind() : function(n) {
115
- for (var e = 1; e < arguments.length; e++) {
116
- var t = arguments[e];
117
- for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
118
- }
119
- return n;
120
- }, We.apply(this, arguments);
121
- }
122
- function ko(n, e) {
123
- return function(t) {
124
- if (Array.isArray(t)) return t;
125
- }(n) || function(t, r) {
126
- var o = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
127
- if (o != null) {
128
- var s, u, a, c, l = [], h = !0, f = !1;
129
- try {
130
- if (a = (o = o.call(t)).next, r !== 0) for (; !(h = (s = a.call(o)).done) && (l.push(s.value), l.length !== r); h = !0) ;
131
- } catch (m) {
132
- f = !0, u = m;
133
- } finally {
134
- try {
135
- if (!h && o.return != null && (c = o.return(), Object(c) !== c)) return;
136
- } finally {
137
- if (f) throw u;
138
- }
139
- }
140
- return l;
141
- }
142
- }(n, e) || tr(n, e) || function() {
143
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
145
- }();
146
- }
147
- function Me(n) {
148
- return function(e) {
149
- if (Array.isArray(e)) return Qn(e);
150
- }(n) || function(e) {
151
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
152
- }(n) || tr(n) || function() {
153
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
154
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
155
- }();
156
- }
157
- function tr(n, e) {
158
- if (n) {
159
- if (typeof n == "string") return Qn(n, e);
160
- var t = Object.prototype.toString.call(n).slice(8, -1);
161
- return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Qn(n, e) : void 0;
162
- }
163
- }
164
- function Qn(n, e) {
165
- (e == null || e > n.length) && (e = n.length);
166
- for (var t = 0, r = new Array(e); t < e; t++) r[t] = n[t];
167
- return r;
168
- }
169
- function bn(n, e) {
170
- var t = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
171
- if (!t) {
172
- if (Array.isArray(n) || (t = tr(n)) || e) {
173
- t && (n = t);
174
- var r = 0, o = function() {
175
- };
176
- return { s: o, n: function() {
177
- return r >= n.length ? { done: !0 } : { done: !1, value: n[r++] };
178
- }, e: function(c) {
179
- throw c;
180
- }, f: o };
181
- }
182
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
183
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
184
- }
185
- var s, u = !0, a = !1;
186
- return { s: function() {
187
- t = t.call(n);
188
- }, n: function() {
189
- var c = t.next();
190
- return u = c.done, c;
191
- }, e: function(c) {
192
- a = !0, s = c;
193
- }, f: function() {
194
- try {
195
- u || t.return == null || t.return();
196
- } finally {
197
- if (a) throw s;
198
- }
199
- } };
200
- }
201
- var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
202
- function ve(n) {
203
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
204
- }
205
- function Io(n) {
206
- return n && Object.prototype.hasOwnProperty.call(n, "default") && Object.keys(n).length === 1 ? n.default : n;
207
- }
208
- var pi = { exports: {} };
209
- (function(n) {
210
- function e(t) {
211
- if (t) return function(r) {
212
- return We(r, e.prototype), r._callbacks = /* @__PURE__ */ new Map(), r;
213
- }(t);
214
- this._callbacks = /* @__PURE__ */ new Map();
215
- }
216
- e.prototype.on = function(t, r) {
217
- var o, s = (o = this._callbacks.get(t)) !== null && o !== void 0 ? o : [];
218
- return s.push(r), this._callbacks.set(t, s), this;
219
- }, e.prototype.once = function(t, r) {
220
- var o = this, s = function u() {
221
- o.off(t, u);
222
- for (var a = arguments.length, c = new Array(a), l = 0; l < a; l++) c[l] = arguments[l];
223
- r.apply(o, c);
224
- };
225
- return s.fn = r, this.on(t, s), this;
226
- }, e.prototype.off = function(t, r) {
227
- if (t === void 0 && r === void 0) return this._callbacks.clear(), this;
228
- if (r === void 0) return this._callbacks.delete(t), this;
229
- var o = this._callbacks.get(t);
230
- if (o) {
231
- var s, u = bn(o.entries());
232
- try {
233
- for (u.s(); !(s = u.n()).done; ) {
234
- var a = ko(s.value, 2), c = a[0], l = a[1];
235
- if (l === r || l.fn === r) {
236
- o.splice(c, 1);
237
- break;
238
- }
239
- }
240
- } catch (h) {
241
- u.e(h);
242
- } finally {
243
- u.f();
244
- }
245
- o.length === 0 ? this._callbacks.delete(t) : this._callbacks.set(t, o);
246
- }
247
- return this;
248
- }, e.prototype.emit = function(t) {
249
- var r = this._callbacks.get(t);
250
- if (r) {
251
- for (var o = Me(r), s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), a = 1; a < s; a++) u[a - 1] = arguments[a];
252
- var c, l = bn(o);
253
- try {
254
- for (l.s(); !(c = l.n()).done; )
255
- c.value.apply(this, u);
256
- } catch (h) {
257
- l.e(h);
258
- } finally {
259
- l.f();
260
- }
261
- }
262
- return this;
263
- }, e.prototype.listeners = function(t) {
264
- var r;
265
- return (r = this._callbacks.get(t)) !== null && r !== void 0 ? r : [];
266
- }, e.prototype.listenerCount = function(t) {
267
- if (t) return this.listeners(t).length;
268
- var r, o = 0, s = bn(this._callbacks.values());
269
- try {
270
- for (s.s(); !(r = s.n()).done; )
271
- o += r.value.length;
272
- } catch (u) {
273
- s.e(u);
274
- } finally {
275
- s.f();
276
- }
277
- return o;
278
- }, e.prototype.hasListeners = function(t) {
279
- return this.listenerCount(t) > 0;
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;
281
- })(pi);
282
- var Ao = ve(pi.exports);
283
- function B(n) {
284
- return n != null && L(n) === "object" && n["@@functional/placeholder"] === !0;
285
- }
286
- function me(n) {
287
- return function e(t) {
288
- return arguments.length === 0 || B(t) ? e : n.apply(this, arguments);
289
- };
290
- }
291
- function Xe(n) {
292
- return function e(t, r) {
293
- switch (arguments.length) {
294
- case 0:
295
- return e;
296
- case 1:
297
- return B(t) ? e : me(function(o) {
298
- return n(t, o);
299
- });
300
- default:
301
- return B(t) && B(r) ? e : B(t) ? me(function(o) {
302
- return n(o, r);
303
- }) : B(r) ? me(function(o) {
304
- return n(t, o);
305
- }) : n(t, r);
306
- }
307
- };
308
- }
309
- function nr(n) {
310
- return function e(t, r, o) {
311
- switch (arguments.length) {
312
- case 0:
313
- return e;
314
- case 1:
315
- return B(t) ? e : Xe(function(s, u) {
316
- return n(t, s, u);
317
- });
318
- case 2:
319
- return B(t) && B(r) ? e : B(t) ? Xe(function(s, u) {
320
- return n(s, r, u);
321
- }) : B(r) ? Xe(function(s, u) {
322
- return n(t, s, u);
323
- }) : me(function(s) {
324
- return n(t, r, s);
325
- });
326
- default:
327
- return B(t) && B(r) && B(o) ? e : B(t) && B(r) ? Xe(function(s, u) {
328
- return n(s, u, o);
329
- }) : B(t) && B(o) ? Xe(function(s, u) {
330
- return n(s, r, u);
331
- }) : B(r) && B(o) ? Xe(function(s, u) {
332
- return n(t, s, u);
333
- }) : B(t) ? me(function(s) {
334
- return n(s, r, o);
335
- }) : B(r) ? me(function(s) {
336
- return n(t, s, o);
337
- }) : B(o) ? me(function(s) {
338
- return n(t, r, s);
339
- }) : n(t, r, o);
340
- }
341
- };
342
- }
343
- function Tt(n, e) {
344
- return Object.prototype.hasOwnProperty.call(e, n);
345
- }
346
- var Eo = me(function(n) {
347
- return n === null ? "Null" : n === void 0 ? "Undefined" : Object.prototype.toString.call(n).slice(8, -1);
348
- });
349
- function hr(n) {
350
- return Object.prototype.toString.call(n) === "[object Object]";
351
- }
352
- function gi(n, e, t) {
353
- if (t || (t = new Co()), function(s) {
354
- var u = L(s);
355
- return s == null || u != "object" && u != "function";
356
- }(n)) return n;
357
- var r, o = function(s) {
358
- var u = t.get(n);
359
- if (u) return u;
360
- for (var a in t.set(n, s), n) Object.prototype.hasOwnProperty.call(n, a) && (s[a] = gi(n[a], !0, t));
361
- return s;
362
- };
363
- switch (Eo(n)) {
364
- case "Object":
365
- return o(Object.create(Object.getPrototypeOf(n)));
366
- case "Array":
367
- return o([]);
368
- case "Date":
369
- return new Date(n.valueOf());
370
- case "RegExp":
371
- return r = n, new RegExp(r.source, r.flags ? r.flags : (r.global ? "g" : "") + (r.ignoreCase ? "i" : "") + (r.multiline ? "m" : "") + (r.sticky ? "y" : "") + (r.unicode ? "u" : "") + (r.dotAll ? "s" : ""));
372
- case "Int8Array":
373
- case "Uint8Array":
374
- case "Uint8ClampedArray":
375
- case "Int16Array":
376
- case "Uint16Array":
377
- case "Int32Array":
378
- case "Uint32Array":
379
- case "Float32Array":
380
- case "Float64Array":
381
- case "BigInt64Array":
382
- case "BigUint64Array":
383
- return n.slice();
384
- default:
385
- return n;
386
- }
387
- }
388
- var Co = function() {
389
- function n() {
390
- this.map = {}, this.length = 0;
391
- }
392
- return n.prototype.set = function(e, t) {
393
- var r = this.hash(e), o = this.map[r];
394
- o || (this.map[r] = o = []), o.push([e, t]), this.length += 1;
395
- }, n.prototype.hash = function(e) {
396
- var t = [];
397
- for (var r in e) t.push(Object.prototype.toString.call(e[r]));
398
- return t.join();
399
- }, n.prototype.get = function(e) {
400
- if (this.length <= 180) for (var t in this.map) for (var r = this.map[t], o = 0; o < r.length; o += 1) {
401
- var s = r[o];
402
- if (s[0] === e) return s[1];
403
- }
404
- else {
405
- var u = this.hash(e), a = this.map[u];
406
- if (a) for (var c = 0; c < a.length; c += 1) {
407
- var l = a[c];
408
- if (l[0] === e) return l[1];
409
- }
410
- }
411
- }, n;
412
- }(), U = me(function(n) {
413
- return n != null && typeof n.clone == "function" ? n.clone() : gi(n);
414
- }), Oo = nr(function(n, e, t) {
415
- var r, o = {};
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]);
418
- return o;
419
- }), _o = nr(function n(e, t, r) {
420
- return Oo(function(o, s, u) {
421
- return hr(s) && hr(u) ? n(e, s, u) : e(o, s, u);
422
- }, t, r);
423
- }), So = nr(function(n, e, t) {
424
- return _o(function(r, o, s) {
425
- return n(o, s);
426
- }, e, t);
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";
428
- i({}, "Adobe Analytics", "AdobeAnalytics");
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";
430
- i({}, "Amplitude", "Amplitude");
431
- var To = i(i(i(i({}, ht, ht), "AMPLITUDE", ht), "Amplitude", ht), "am", ht), dt = "APPCUES";
432
- i({}, "Appcues", "Appcues");
433
- var Ro = i(i(i(i({}, dt, dt), "Appcues", dt), "App Cues", dt), "appcues", dt), Ce = "BINGADS";
434
- i({}, "Bing Ads", "BingAds");
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";
436
- i({}, "Braze", "Braze");
437
- var Do = i(i(i({}, Rt, Rt), "Braze", Rt), "braze", Rt), Pt = "BUGSNAG";
438
- i({}, "Bugsnag", "Bugsnag");
439
- var xo = i(i(i({}, Pt, Pt), "bugsnag", Pt), "Bugsnag", Pt), Je = "CHARTBEAT";
440
- i({}, "Chartbeat", "Chartbeat");
441
- var Lo = i(i(i(i(i({}, Je, Je), "Chartbeat", Je), "chartbeat", Je), "Chart Beat", Je), "chart beat", Je), Dt = "CLEVERTAP";
442
- i({}, "CleverTap", "Clevertap");
443
- var Mo = i(i(i({}, Dt, Dt), "Clevertap", Dt), "clevertap", Dt), Ne = "COMSCORE";
444
- i({}, "Comscore", "Comscore");
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";
446
- i({}, "Criteo", "Criteo");
447
- var Fo = i(i(i({}, xt, xt), "Criteo", xt), "criteo", xt), Ze = "CUSTOMERIO";
448
- i({}, "Customer IO", "CustomerIO");
449
- var No = i(i(i(i(i({}, Ze, Ze), "Customerio", Ze), "Customer.io", Ze), "CUSTOMER.IO", Ze), "customer.io", Ze), Lt = "DRIP";
450
- i({}, "Drip", "Drip");
451
- var Go = i(i(i({}, Lt, Lt), "Drip", Lt), "drip", Lt), Oe = "FACEBOOK_PIXEL";
452
- i({}, "Facebook Pixel", "FacebookPixel");
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";
454
- i({}, "Fullstory", "Fullstory");
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";
456
- i({}, "Google Analytics", "GA");
457
- var Ho = i(i(i(i(i({}, et, et), "Google Analytics", et), "GoogleAnalytics", et), "GOOGLE ANALYTICS", et), "google analytics", et), $ = "GA4";
458
- i({}, "Google Analytics 4 (GA4)", "GA4");
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";
460
- i({}, "Google Ads", "GoogleAds");
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";
462
- i({}, "Google Optimize", "GoogleOptimize");
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";
464
- i({}, "Google Tag Manager", "GoogleTagManager");
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";
466
- i({}, "Heap.io", "Heap");
467
- var Vo = i(i(i(i({}, pt, pt), "Heap", pt), "heap", pt), "Heap.io", pt), nt = "HOTJAR";
468
- i({}, "Hotjar", "Hotjar");
469
- var $o = i(i(i(i(i({}, nt, nt), "Hotjar", nt), "hotjar", nt), "Hot Jar", nt), "hot jar", nt), Ue = "HS";
470
- i({}, "HubSpot", "HubSpot");
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";
472
- i({}, "Intercom", "INTERCOM");
473
- var Yo = i(i(i({}, Mt, Mt), "Intercom", Mt), "intercom", Mt), rt = "KEEN";
474
- i({}, "Keen", "Keen");
475
- var Xo = i(i(i(i(i({}, rt, rt), "Keen", rt), "Keen.io", rt), "keen", rt), "keen.io", rt), Bt = "KISSMETRICS";
476
- i({}, "Kiss Metrics", "Kissmetrics");
477
- var Jo = i(i(i({}, Bt, Bt), "Kissmetrics", Bt), "kissmetrics", Bt), Ft = "KLAVIYO";
478
- i({}, "Klaviyo", "Klaviyo");
479
- var Zo = i(i(i({}, Ft, Ft), "Klaviyo", Ft), "klaviyo", Ft), je = "LAUNCHDARKLY";
480
- i({}, "LaunchDarkly", "LaunchDarkly");
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";
482
- i({}, "Linkedin Insight Tag", "LinkedInInsightTag");
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";
484
- i({}, "Lotame", "Lotame");
485
- var ns = i(i(i({}, Nt, Nt), "Lotame", Nt), "lotame", Nt), Gt = "LYTICS";
486
- i({}, "Lytics", "Lytics");
487
- var rs = i(i(i({}, Gt, Gt), "Lytics", Gt), "lytics", Gt), He = "MP";
488
- i({}, "Mixpanel", "Mixpanel");
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";
490
- i({}, "MoEngage", "MoEngage");
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";
492
- i({}, "Optimizely Web", "Optimizely");
493
- var ss = i(i(i({}, Ut, Ut), "Optimizely", Ut), "optimizely", Ut), jt = "PENDO";
494
- i({}, "Pendo", "Pendo");
495
- var pr, as = i(i(i({}, jt, jt), "Pendo", jt), "pendo", jt), j = "PINTEREST_TAG";
496
- i({}, "Pinterest Tag", "PinterestTag");
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";
498
- i({}, "Post Affiliate Pro", "PostAffiliatePro");
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";
500
- i({}, "PostHog", "Posthog");
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";
502
- i({}, "ProfitWell", "ProfitWell");
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";
504
- i({}, "Qualtrics", "Qualtrics");
505
- var hs = i(i(i({}, Ht, Ht), "Qualtrics", Ht), "qualtrics", Ht), ue = "QUANTUMMETRIC";
506
- i({}, "Quantum Metric", "QuantumMetric");
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";
508
- i({}, "Reddit Pixel", "RedditPixel");
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";
510
- i({}, "Sentry", "Sentry");
511
- var gs = i(i(i({}, qt, qt), "sentry", qt), "Sentry", qt), le = "SNAP_PIXEL";
512
- i({}, "Snap Pixel", "SnapPixel");
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";
514
- i({}, "TVSquared", "TVSquared");
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";
516
- i({}, "VWO", "VWO");
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";
518
- i({}, "Google Analytics 360", "GA360");
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";
520
- i({}, "Adroll", "Adroll");
521
- var ks = i(i(i(i(i({}, it, it), "Adroll", it), "Ad roll", it), "ad roll", it), "adroll", it), ee = "DCM_FLOODLIGHT";
522
- i({}, "DCM Floodlight", "DCMFloodlight");
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";
524
- i({}, "Matomo", "Matomo");
525
- var As = i(i(i({}, Kt, Kt), "Matomo", Kt), "matomo", Kt), Qt = "VERO";
526
- i({}, "Vero", "Vero");
527
- var Es = i(i(i({}, Qt, Qt), "Vero", Qt), "vero", Qt), te = "MOUSEFLOW";
528
- i({}, "Mouseflow", "Mouseflow");
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";
530
- i({}, "Rockerbox", "Rockerbox");
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";
532
- i({}, "ConvertFlow", "ConvertFlow");
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";
534
- i({}, "SnapEngage", "SnapEngage");
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";
536
- i({}, "LiveChat", "LiveChat");
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";
538
- i({}, "Shynet", "Shynet");
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";
540
- i({}, "Woopra", "Woopra");
541
- var Rs = i(i(i({}, zt, zt), "Woopra", zt), "woopra", zt), he = "ROLLBAR";
542
- i({}, "RollBar", "RollBar");
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";
544
- i({}, "Quora Pixel", "QuoraPixel");
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";
546
- i({}, "June", "June");
547
- var xs = i(i(i({}, Vt, Vt), "June", Vt), "june", Vt), $t = "ENGAGE";
548
- i({}, "Engage", "Engage");
549
- var Ls = i(i(i({}, $t, $t), "Engage", $t), "engage", $t), Wt = "ITERABLE";
550
- i({}, "Iterable", "Iterable");
551
- var Ms = i(i(i({}, Wt, Wt), "Iterable", Wt), "iterable", Wt), ot = "YANDEX_METRICA";
552
- i({}, "Yandex.Metrica", "YandexMetrica");
553
- var Bs = i(i(i(i(i({}, ot, ot), "Yandexmetrica", ot), "yandexmetrica", ot), "yandexMetrica", ot), "YandexMetrica", ot), Yt = "REFINER";
554
- i({}, "Refiner", "Refiner");
555
- var Fs = i(i(i({}, Yt, Yt), "Refiner", Yt), "refiner", Yt), Xt = "QUALAROO";
556
- i({}, "Qualaroo", "Qualaroo");
557
- var Ns = i(i(i({}, Xt, Xt), "Qualaroo", Xt), "qualaroo", Xt), de = "PODSIGHTS";
558
- i({}, "Podsights", "Podsights");
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";
560
- i({}, "Axeptio", "Axeptio");
561
- var Us = i(i(i({}, Jt, Jt), "Axeptio", Jt), "axeptio", Jt), Zt = "SATISMETER";
562
- i({}, "Satismeter", "Satismeter");
563
- var js = i(i(i({}, Zt, Zt), "Satismeter", Zt), "SatisMeter", Zt), re = "MICROSOFT_CLARITY";
564
- i({}, "Microsoft Clarity", "MicrosoftClarity");
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";
566
- i({}, "Sendinblue", "Sendinblue");
567
- var qs = i(i(i(i({}, gt, gt), "Sendinblue", gt), "sendinblue", gt), "SendinBlue", gt), en = "OLARK";
568
- i({}, "Olark", "Olark");
569
- var Ks = i(i(i({}, en, en), "Olark", en), "olark", en), pe = "LEMNISK";
570
- i({}, "Lemnisk", "Lemnisk");
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";
572
- i({}, "TikTok Ads", "TiktokAds");
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";
574
- i({}, "Active Campaign", "ActiveCampaign");
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";
576
- i({}, "Sprig", "Sprig");
577
- var $s = i(i(i({}, tn, tn), "Sprig", tn), "sprig", tn), mt = "SPOTIFYPIXEL";
578
- i({}, "Spotify Pixel", "SpotifyPixel");
579
- var Ws = i(i(i(i({}, mt, mt), "Spotify Pixel", mt), "spotify pixel", mt), "SPOTIFY_PIXEL", mt), st = "COMMANDBAR";
580
- i({}, "CommandBar", "CommandBar");
581
- var Ys = i(i(i(i(i({}, st, st), "Command Bar", st), "Commandbar", st), "COMMAND_BAR", st), "commandbar", st), yt = "NINETAILED";
582
- i({}, "Ninetailed", "Ninetailed");
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) {
584
- switch (n.toUpperCase()) {
585
- case "INFO":
586
- xe = 1;
587
- break;
588
- case "DEBUG":
589
- xe = 2;
590
- break;
591
- case "WARN":
592
- xe = 3;
593
- break;
594
- default:
595
- xe = 4;
596
- }
597
- }, info: function() {
598
- var n;
599
- xe <= 1 && (n = console).info.apply(n, arguments);
600
- }, debug: function() {
601
- var n;
602
- xe <= 2 && (n = console).log.apply(n, arguments);
603
- }, warn: function() {
604
- var n;
605
- xe <= 3 && (n = console).warn.apply(n, arguments);
606
- }, error: function() {
607
- var n;
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) {
610
- var e = window.RudderStackGlobals && window.RudderStackGlobals[ir];
611
- e && n instanceof Error && e.notify(n);
612
- }, ye = function(n, e) {
613
- try {
614
- return JSON.stringify(n, /* @__PURE__ */ function(t) {
615
- var r = [];
616
- return function(o, s) {
617
- if (!t || s != null) {
618
- if (L(s) !== "object" || s === null) return s;
619
- for (; r.length > 0 && r[r.length - 1] !== this; ) r.pop();
620
- return r.includes(s) ? (D.debug("Circular Reference detected for key: ".concat(o)), "[Circular Reference]") : (r.push(s), s);
621
- }
622
- };
623
- }(e));
624
- } catch {
625
- return D.warn("Failed to convert the value to a JSON string."), null;
626
- }
627
- }, Zs = function(n, e, t) {
628
- var r, o;
629
- try {
630
- r = typeof n == "string" ? n : n instanceof Error || n.message ? n.message : ye(n);
631
- } catch {
632
- r = "";
633
- }
634
- if (L(o = n) === "object" && o !== null && "target" in o) {
635
- if (n.target && n.target.localName !== "script" || n.target.dataset && (n.target.dataset.loader !== yi || n.target.dataset.isnonnativesdk !== "true")) return "";
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), "";
637
- }
638
- return "[handleError]::".concat(e || "", ' "').concat(r, '"');
639
- }, M = function(n, e, t) {
640
- var r;
641
- try {
642
- r = Zs(n, e, t);
643
- } catch (o) {
644
- D.error("[handleError] Exception:: ", o), D.error("[handleError] Original error:: ", ye(n)), gr(o);
645
- }
646
- r && (D.error(r), function(o) {
647
- return !o.message || !Js.some(function(s) {
648
- return o.message.includes(s);
649
- });
650
- }(n) && gr(n));
651
- }, vi = { exports: {} }, mr, yr = { exports: {} }, ea = Io(Object.freeze({ __proto__: null, default: {} }));
652
- function Be() {
653
- return mr || (mr = 1, yr.exports = (n = n || function(e, t) {
654
- var r;
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 {
656
- r = ea;
657
- } catch {
658
- }
659
- var o = function() {
660
- if (r) {
661
- if (typeof r.getRandomValues == "function") try {
662
- return r.getRandomValues(new Uint32Array(1))[0];
663
- } catch {
664
- }
665
- if (typeof r.randomBytes == "function") try {
666
- return r.randomBytes(4).readInt32LE();
667
- } catch {
668
- }
669
- }
670
- throw new Error("Native crypto module could not be used to get secure random number.");
671
- }, s = Object.create || /* @__PURE__ */ function() {
672
- function d() {
673
- }
674
- return function(y) {
675
- var k;
676
- return d.prototype = y, k = new d(), d.prototype = null, k;
677
- };
678
- }(), u = {}, a = u.lib = {}, c = a.Base = { extend: function(d) {
679
- var y = s(this);
680
- return d && y.mixIn(d), y.hasOwnProperty("init") && this.init !== y.init || (y.init = function() {
681
- y.$super.init.apply(this, arguments);
682
- }), y.init.prototype = y, y.$super = this, y;
683
- }, create: function() {
684
- var d = this.extend();
685
- return d.init.apply(d, arguments), d;
686
- }, init: function() {
687
- }, mixIn: function(d) {
688
- for (var y in d) d.hasOwnProperty(y) && (this[y] = d[y]);
689
- d.hasOwnProperty("toString") && (this.toString = d.toString);
690
- }, clone: function() {
691
- return this.init.prototype.extend(this);
692
- } }, l = a.WordArray = c.extend({ init: function(d, y) {
693
- d = this.words = d || [], this.sigBytes = y != t ? y : 4 * d.length;
694
- }, toString: function(d) {
695
- return (d || f).stringify(this);
696
- }, concat: function(d) {
697
- var y = this.words, k = d.words, p = this.sigBytes, v = d.sigBytes;
698
- if (this.clamp(), p % 4) for (var I = 0; I < v; I++) {
699
- var A = k[I >>> 2] >>> 24 - I % 4 * 8 & 255;
700
- y[p + I >>> 2] |= A << 24 - (p + I) % 4 * 8;
701
- }
702
- else for (var T = 0; T < v; T += 4) y[p + T >>> 2] = k[T >>> 2];
703
- return this.sigBytes += v, this;
704
- }, clamp: function() {
705
- var d = this.words, y = this.sigBytes;
706
- d[y >>> 2] &= 4294967295 << 32 - y % 4 * 8, d.length = e.ceil(y / 4);
707
- }, clone: function() {
708
- var d = c.clone.call(this);
709
- return d.words = this.words.slice(0), d;
710
- }, random: function(d) {
711
- for (var y = [], k = 0; k < d; k += 4) y.push(o());
712
- return new l.init(y, d);
713
- } }), h = u.enc = {}, f = h.Hex = { stringify: function(d) {
714
- for (var y = d.words, k = d.sigBytes, p = [], v = 0; v < k; v++) {
715
- var I = y[v >>> 2] >>> 24 - v % 4 * 8 & 255;
716
- p.push((I >>> 4).toString(16)), p.push((15 & I).toString(16));
717
- }
718
- return p.join("");
719
- }, parse: function(d) {
720
- for (var y = d.length, k = [], p = 0; p < y; p += 2) k[p >>> 3] |= parseInt(d.substr(p, 2), 16) << 24 - p % 8 * 4;
721
- return new l.init(k, y / 2);
722
- } }, m = h.Latin1 = { stringify: function(d) {
723
- for (var y = d.words, k = d.sigBytes, p = [], v = 0; v < k; v++) {
724
- var I = y[v >>> 2] >>> 24 - v % 4 * 8 & 255;
725
- p.push(String.fromCharCode(I));
726
- }
727
- return p.join("");
728
- }, parse: function(d) {
729
- for (var y = d.length, k = [], p = 0; p < y; p++) k[p >>> 2] |= (255 & d.charCodeAt(p)) << 24 - p % 4 * 8;
730
- return new l.init(k, y);
731
- } }, g = h.Utf8 = { stringify: function(d) {
732
- try {
733
- return decodeURIComponent(escape(m.stringify(d)));
734
- } catch {
735
- throw new Error("Malformed UTF-8 data");
736
- }
737
- }, parse: function(d) {
738
- return m.parse(unescape(encodeURIComponent(d)));
739
- } }, b = a.BufferedBlockAlgorithm = c.extend({ reset: function() {
740
- this._data = new l.init(), this._nDataBytes = 0;
741
- }, _append: function(d) {
742
- typeof d == "string" && (d = g.parse(d)), this._data.concat(d), this._nDataBytes += d.sigBytes;
743
- }, _process: function(d) {
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);
745
- if (T) {
746
- for (var x = 0; x < T; x += I) this._doProcessBlock(p, x);
747
- y = p.splice(0, T), k.sigBytes -= w;
748
- }
749
- return new l.init(y, w);
750
- }, clone: function() {
751
- var d = c.clone.call(this);
752
- return d._data = this._data.clone(), d;
753
- }, _minBufferSize: 0 });
754
- a.Hasher = b.extend({ cfg: c.extend(), init: function(d) {
755
- this.cfg = this.cfg.extend(d), this.reset();
756
- }, reset: function() {
757
- b.reset.call(this), this._doReset();
758
- }, update: function(d) {
759
- return this._append(d), this._process(), this;
760
- }, finalize: function(d) {
761
- return d && this._append(d), this._doFinalize();
762
- }, blockSize: 16, _createHelper: function(d) {
763
- return function(y, k) {
764
- return new d.init(k).finalize(y);
765
- };
766
- }, _createHmacHelper: function(d) {
767
- return function(y, k) {
768
- return new R.HMAC.init(d, k).finalize(y);
769
- };
770
- } });
771
- var R = u.algo = {};
772
- return u;
773
- }(Math), n)), yr.exports;
774
- var n;
775
- }
776
- var vr, br = { exports: {} };
777
- function ta() {
778
- return vr || (vr = 1, br.exports = (n = Be(), function() {
779
- var e = n, t = e.lib.WordArray;
780
- function r(o, s, u) {
781
- for (var a = [], c = 0, l = 0; l < s; l++) if (l % 4) {
782
- var h = u[o.charCodeAt(l - 1)] << l % 4 * 2 | u[o.charCodeAt(l)] >>> 6 - l % 4 * 2;
783
- a[c >>> 2] |= h << 24 - c % 4 * 8, c++;
784
- }
785
- return t.create(a, c);
786
- }
787
- e.enc.Base64 = { stringify: function(o) {
788
- var s = o.words, u = o.sigBytes, a = this._map;
789
- o.clamp();
790
- for (var c = [], l = 0; l < u; l += 3) for (var h = (s[l >>> 2] >>> 24 - l % 4 * 8 & 255) << 16 | (s[l + 1 >>> 2] >>> 24 - (l + 1) % 4 * 8 & 255) << 8 | s[l + 2 >>> 2] >>> 24 - (l + 2) % 4 * 8 & 255, f = 0; f < 4 && l + 0.75 * f < u; f++) c.push(a.charAt(h >>> 6 * (3 - f) & 63));
791
- var m = a.charAt(64);
792
- if (m) for (; c.length % 4; ) c.push(m);
793
- return c.join("");
794
- }, parse: function(o) {
795
- var s = o.length, u = this._map, a = this._reverseMap;
796
- if (!a) {
797
- a = this._reverseMap = [];
798
- for (var c = 0; c < u.length; c++) a[u.charCodeAt(c)] = c;
799
- }
800
- var l = u.charAt(64);
801
- if (l) {
802
- var h = o.indexOf(l);
803
- h !== -1 && (s = h);
804
- }
805
- return r(o, s, a);
806
- }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" };
807
- }(), n.enc.Base64)), br.exports;
808
- var n;
809
- }
810
- var kr, Ir = { exports: {} };
811
- function na() {
812
- return kr || (kr = 1, Ir.exports = (n = Be(), function(e) {
813
- var t = n, r = t.lib, o = r.WordArray, s = r.Hasher, u = t.algo, a = [];
814
- (function() {
815
- for (var g = 0; g < 64; g++) a[g] = 4294967296 * e.abs(e.sin(g + 1)) | 0;
816
- })();
817
- var c = u.MD5 = s.extend({ _doReset: function() {
818
- this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878]);
819
- }, _doProcessBlock: function(g, b) {
820
- for (var R = 0; R < 16; R++) {
821
- var d = b + R, y = g[d];
822
- g[d] = 16711935 & (y << 8 | y >>> 24) | 4278255360 & (y << 24 | y >>> 8);
823
- }
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;
826
- }, _doFinalize: function() {
827
- var g = this._data, b = g.words, R = 8 * this._nDataBytes, d = 8 * g.sigBytes;
828
- b[d >>> 5] |= 128 << 24 - d % 32;
829
- var y = e.floor(R / 4294967296), k = R;
830
- b[15 + (d + 64 >>> 9 << 4)] = 16711935 & (y << 8 | y >>> 24) | 4278255360 & (y << 24 | y >>> 8), b[14 + (d + 64 >>> 9 << 4)] = 16711935 & (k << 8 | k >>> 24) | 4278255360 & (k << 24 | k >>> 8), g.sigBytes = 4 * (b.length + 1), this._process();
831
- for (var p = this._hash, v = p.words, I = 0; I < 4; I++) {
832
- var A = v[I];
833
- v[I] = 16711935 & (A << 8 | A >>> 24) | 4278255360 & (A << 24 | A >>> 8);
834
- }
835
- return p;
836
- }, clone: function() {
837
- var g = s.clone.call(this);
838
- return g._hash = this._hash.clone(), g;
839
- } });
840
- function l(g, b, R, d, y, k, p) {
841
- var v = g + (b & R | ~b & d) + y + p;
842
- return (v << k | v >>> 32 - k) + b;
843
- }
844
- function h(g, b, R, d, y, k, p) {
845
- var v = g + (b & d | R & ~d) + y + p;
846
- return (v << k | v >>> 32 - k) + b;
847
- }
848
- function f(g, b, R, d, y, k, p) {
849
- var v = g + (b ^ R ^ d) + y + p;
850
- return (v << k | v >>> 32 - k) + b;
851
- }
852
- function m(g, b, R, d, y, k, p) {
853
- var v = g + (R ^ (b | ~d)) + y + p;
854
- return (v << k | v >>> 32 - k) + b;
855
- }
856
- t.MD5 = s._createHelper(c), t.HmacMD5 = s._createHmacHelper(c);
857
- }(Math), n.MD5)), Ir.exports;
858
- var n;
859
- }
860
- var Ar, Er = { exports: {} }, Cr = { exports: {} };
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() {
863
- this._hash = new t.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
864
- }, _doProcessBlock: function(c, l) {
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++) {
866
- if (d < 16) s[d] = 0 | c[l + d];
867
- else {
868
- var y = s[d - 3] ^ s[d - 8] ^ s[d - 14] ^ s[d - 16];
869
- s[d] = y << 1 | y >>> 31;
870
- }
871
- var k = (f << 5 | f >>> 27) + R + s[d];
872
- k += d < 20 ? 1518500249 + (m & g | ~m & b) : d < 40 ? 1859775393 + (m ^ g ^ b) : d < 60 ? (m & g | m & b | g & b) - 1894007588 : (m ^ g ^ b) - 899497514, R = b, b = g, g = m << 30 | m >>> 2, m = f, f = k;
873
- }
874
- h[0] = h[0] + f | 0, h[1] = h[1] + m | 0, h[2] = h[2] + g | 0, h[3] = h[3] + b | 0, h[4] = h[4] + R | 0;
875
- }, _doFinalize: function() {
876
- var c = this._data, l = c.words, h = 8 * this._nDataBytes, f = 8 * c.sigBytes;
877
- return l[f >>> 5] |= 128 << 24 - f % 32, l[14 + (f + 64 >>> 9 << 4)] = Math.floor(h / 4294967296), l[15 + (f + 64 >>> 9 << 4)] = h, c.sigBytes = 4 * l.length, this._process(), this._hash;
878
- }, clone: function() {
879
- var c = r.clone.call(this);
880
- return c._hash = this._hash.clone(), c;
881
- } }), n.SHA1 = r._createHelper(u), n.HmacSHA1 = r._createHmacHelper(u), a.SHA1)), Cr.exports;
882
- var n, e, t, r, o, s, u, a;
883
- }
884
- var Or, _r, Sr = { exports: {} };
885
- function wr() {
886
- return _r || (_r = 1, Er.exports = function(e) {
887
- return r = (t = e).lib, o = r.Base, s = r.WordArray, u = t.algo, a = u.MD5, c = u.EvpKDF = o.extend({ cfg: o.extend({ keySize: 4, hasher: a, iterations: 1 }), init: function(l) {
888
- this.cfg = this.cfg.extend(l);
889
- }, compute: function(l, h) {
890
- for (var f, m = this.cfg, g = m.hasher.create(), b = s.create(), R = b.words, d = m.keySize, y = m.iterations; R.length < d; ) {
891
- f && g.update(f), f = g.update(l).finalize(h), g.reset();
892
- for (var k = 1; k < y; k++) f = g.finalize(f), g.reset();
893
- b.concat(f);
894
- }
895
- return b.sigBytes = 4 * d, b;
896
- } }), t.EvpKDF = function(l, h, f) {
897
- return c.create(f).compute(l, h);
898
- }, e.EvpKDF;
899
- var t, r, o, s, u, a, c;
900
- }(Be(), ra(), (Or || (Or = 1, Sr.exports = (n = Be(), void function() {
901
- var e = n, t = e.lib.Base, r = e.enc.Utf8;
902
- e.algo.HMAC = t.extend({ init: function(o, s) {
903
- o = this._hasher = new o.init(), typeof s == "string" && (s = r.parse(s));
904
- var u = o.blockSize, a = 4 * u;
905
- s.sigBytes > a && (s = o.finalize(s)), s.clamp();
906
- for (var c = this._oKey = s.clone(), l = this._iKey = s.clone(), h = c.words, f = l.words, m = 0; m < u; m++) h[m] ^= 1549556828, f[m] ^= 909522486;
907
- c.sigBytes = l.sigBytes = a, this.reset();
908
- }, reset: function() {
909
- var o = this._hasher;
910
- o.reset(), o.update(this._iKey);
911
- }, update: function(o) {
912
- return this._hasher.update(o), this;
913
- }, finalize: function(o) {
914
- var s = this._hasher, u = s.finalize(o);
915
- return s.reset(), s.finalize(this._oKey.clone().concat(u));
916
- } });
917
- }())), Sr.exports))), Er.exports;
918
- var n;
919
- }
920
- var Tr, In;
921
- vi.exports = function(n) {
922
- return function() {
923
- var e = n, t = e.lib.BlockCipher, r = e.algo, o = [], s = [], u = [], a = [], c = [], l = [], h = [], f = [], m = [], g = [];
924
- (function() {
925
- for (var d = [], y = 0; y < 256; y++) d[y] = y < 128 ? y << 1 : y << 1 ^ 283;
926
- var k = 0, p = 0;
927
- for (y = 0; y < 256; y++) {
928
- var v = p ^ p << 1 ^ p << 2 ^ p << 3 ^ p << 4;
929
- v = v >>> 8 ^ 255 & v ^ 99, o[k] = v, s[v] = k;
930
- var I = d[k], A = d[I], T = d[A], w = 257 * d[v] ^ 16843008 * v;
931
- u[k] = w << 24 | w >>> 8, a[k] = w << 16 | w >>> 16, c[k] = w << 8 | w >>> 24, l[k] = w, w = 16843009 * T ^ 65537 * A ^ 257 * I ^ 16843008 * k, h[v] = w << 24 | w >>> 8, f[v] = w << 16 | w >>> 16, m[v] = w << 8 | w >>> 24, g[v] = w, k ? (k = I ^ d[d[d[T ^ I]]], p ^= d[d[p]]) : k = p = 1;
932
- }
933
- })();
934
- var b = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], R = r.AES = t.extend({ _doReset: function() {
935
- if (!this._nRounds || this._keyPriorReset !== this._key) {
936
- for (var d = this._keyPriorReset = this._key, y = d.words, k = d.sigBytes / 4, p = 4 * ((this._nRounds = k + 6) + 1), v = this._keySchedule = [], I = 0; I < p; I++) I < k ? v[I] = y[I] : (w = v[I - 1], I % k ? k > 6 && I % k == 4 && (w = o[w >>> 24] << 24 | o[w >>> 16 & 255] << 16 | o[w >>> 8 & 255] << 8 | o[255 & w]) : (w = o[(w = w << 8 | w >>> 24) >>> 24] << 24 | o[w >>> 16 & 255] << 16 | o[w >>> 8 & 255] << 8 | o[255 & w], w ^= b[I / k | 0] << 24), v[I] = v[I - k] ^ w);
937
- for (var A = this._invKeySchedule = [], T = 0; T < p; T++) {
938
- if (I = p - T, T % 4) var w = v[I];
939
- else w = v[I - 4];
940
- A[T] = T < 4 || I <= 4 ? w : h[o[w >>> 24]] ^ f[o[w >>> 16 & 255]] ^ m[o[w >>> 8 & 255]] ^ g[o[255 & w]];
941
- }
942
- }
943
- }, encryptBlock: function(d, y) {
944
- this._doCryptBlock(d, y, this._keySchedule, u, a, c, l, o);
945
- }, decryptBlock: function(d, y) {
946
- var k = d[y + 1];
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;
948
- }, _doCryptBlock: function(d, y, k, p, v, I, A, T) {
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;
952
- }
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;
954
- }, keySize: 8 });
955
- e.AES = t._createHelper(R);
956
- }(), n.AES;
957
- }(Be(), ta(), na(), wr(), Tr || (Tr = 1, In = Be(), wr(), void (In.lib.Cipher || function(n) {
958
- var e = In, t = e.lib, r = t.Base, o = t.WordArray, s = t.BufferedBlockAlgorithm, u = e.enc;
959
- u.Utf8;
960
- var a = u.Base64, c = e.algo.EvpKDF, l = t.Cipher = s.extend({ cfg: r.extend(), createEncryptor: function(p, v) {
961
- return this.create(this._ENC_XFORM_MODE, p, v);
962
- }, createDecryptor: function(p, v) {
963
- return this.create(this._DEC_XFORM_MODE, p, v);
964
- }, init: function(p, v, I) {
965
- this.cfg = this.cfg.extend(I), this._xformMode = p, this._key = v, this.reset();
966
- }, reset: function() {
967
- s.reset.call(this), this._doReset();
968
- }, process: function(p) {
969
- return this._append(p), this._process();
970
- }, finalize: function(p) {
971
- return p && this._append(p), this._doFinalize();
972
- }, keySize: 4, ivSize: 4, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, _createHelper: /* @__PURE__ */ function() {
973
- function p(v) {
974
- return typeof v == "string" ? k : d;
975
- }
976
- return function(v) {
977
- return { encrypt: function(I, A, T) {
978
- return p(A).encrypt(v, I, A, T);
979
- }, decrypt: function(I, A, T) {
980
- return p(A).decrypt(v, I, A, T);
981
- } };
982
- };
983
- }() });
984
- t.StreamCipher = l.extend({ _doFinalize: function() {
985
- return this._process(!0);
986
- }, blockSize: 1 });
987
- var h = e.mode = {}, f = t.BlockCipherMode = r.extend({ createEncryptor: function(p, v) {
988
- return this.Encryptor.create(p, v);
989
- }, createDecryptor: function(p, v) {
990
- return this.Decryptor.create(p, v);
991
- }, init: function(p, v) {
992
- this._cipher = p, this._iv = v;
993
- } }), m = h.CBC = function() {
994
- var p = f.extend();
995
- function v(I, A, T) {
996
- var w, x = this._iv;
997
- x ? (w = x, this._iv = n) : w = this._prevBlock;
998
- for (var G = 0; G < T; G++) I[A + G] ^= w[G];
999
- }
1000
- return p.Encryptor = p.extend({ processBlock: function(I, A) {
1001
- var T = this._cipher, w = T.blockSize;
1002
- v.call(this, I, A, w), T.encryptBlock(I, A), this._prevBlock = I.slice(A, A + w);
1003
- } }), p.Decryptor = p.extend({ processBlock: function(I, A) {
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;
1006
- } }), p;
1007
- }(), g = (e.pad = {}).Pkcs7 = { pad: function(p, v) {
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);
1009
- var G = o.create(w, A);
1010
- p.concat(G);
1011
- }, unpad: function(p) {
1012
- var v = 255 & p.words[p.sigBytes - 1 >>> 2];
1013
- p.sigBytes -= v;
1014
- } };
1015
- t.BlockCipher = l.extend({ cfg: l.cfg.extend({ mode: m, padding: g }), reset: function() {
1016
- var p;
1017
- l.reset.call(this);
1018
- var v = this.cfg, I = v.iv, A = v.mode;
1019
- this._xformMode == this._ENC_XFORM_MODE ? p = A.createEncryptor : (p = A.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == p ? this._mode.init(this, I && I.words) : (this._mode = p.call(A, this, I && I.words), this._mode.__creator = p);
1020
- }, _doProcessBlock: function(p, v) {
1021
- this._mode.processBlock(p, v);
1022
- }, _doFinalize: function() {
1023
- var p, v = this.cfg.padding;
1024
- return this._xformMode == this._ENC_XFORM_MODE ? (v.pad(this._data, this.blockSize), p = this._process(!0)) : (p = this._process(!0), v.unpad(p)), p;
1025
- }, blockSize: 4 });
1026
- var b = t.CipherParams = r.extend({ init: function(p) {
1027
- this.mixIn(p);
1028
- }, toString: function(p) {
1029
- return (p || this.formatter).stringify(this);
1030
- } }), R = (e.format = {}).OpenSSL = { stringify: function(p) {
1031
- var v = p.ciphertext, I = p.salt;
1032
- return (I ? o.create([1398893684, 1701076831]).concat(I).concat(v) : v).toString(a);
1033
- }, parse: function(p) {
1034
- var v, I = a.parse(p), A = I.words;
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 });
1036
- } }, d = t.SerializableCipher = r.extend({ cfg: r.extend({ format: R }), encrypt: function(p, v, I, A) {
1037
- A = this.cfg.extend(A);
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 });
1040
- }, decrypt: function(p, v, I, A) {
1041
- return A = this.cfg.extend(A), v = this._parse(v, A.format), p.createDecryptor(I, A).finalize(v.ciphertext);
1042
- }, _parse: function(p, v) {
1043
- return typeof p == "string" ? v.parse(p, this) : p;
1044
- } }), y = (e.kdf = {}).OpenSSL = { execute: function(p, v, I, A, T) {
1045
- if (A || (A = o.random(8)), T) w = c.create({ keySize: v + I, hasher: T }).compute(p, A);
1046
- else var w = c.create({ keySize: v + I }).compute(p, A);
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 });
1049
- } }, k = t.PasswordBasedCipher = d.extend({ cfg: d.cfg.extend({ kdf: y }), encrypt: function(p, v, I, A) {
1050
- var T = (A = this.cfg.extend(A)).kdf.execute(I, p.keySize, p.ivSize, A.salt, A.hasher);
1051
- A.iv = T.iv;
1052
- var w = d.encrypt.call(this, p, v, T.key, A);
1053
- return w.mixIn(T), w;
1054
- }, decrypt: function(p, v, I, A) {
1055
- A = this.cfg.extend(A), v = this._parse(v, A.format);
1056
- var T = A.kdf.execute(I, p.keySize, p.ivSize, v.salt, A.hasher);
1057
- return A.iv = T.iv, d.decrypt.call(this, p, v, T.key, A);
1058
- } });
1059
- }())));
1060
- var bi = ve(vi.exports), ki = { exports: {} };
1061
- ki.exports = function(n) {
1062
- return n.enc.Utf8;
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) {
1067
- if (Ii(t) || (t = { default: t }), !Pr(n)) return t.default !== void 0 ? t.default : n;
1068
- typeof e == "number" && (e = String(e));
1069
- var r = Array.isArray(e), o = typeof e == "string", s = t.separator || ".", u = t.joinChar || (typeof s == "string" ? s : ".");
1070
- if (!o && !r) return n;
1071
- if (o && e in n) return An(e, n, t) ? n[e] : t.default;
1072
- var a = r ? e : function(g, b, R) {
1073
- return typeof R.split == "function" ? R.split(g) : g.split(b);
1074
- }(e, s, t), c = a.length, l = 0;
1075
- do {
1076
- var h = a[l];
1077
- for (typeof h == "number" && (h = String(h)); h && h.slice(-1) === "\\"; ) h = Rr([h.slice(0, -1), a[++l] || ""], u, t);
1078
- if (h in n) {
1079
- if (!An(h, n, t)) return t.default;
1080
- n = n[h];
1081
- } else {
1082
- for (var f = !1, m = l + 1; m < c; ) if (f = (h = Rr([h, a[m++]], u, t)) in n) {
1083
- if (!An(h, n, t)) return t.default;
1084
- n = n[h], l = m - 1;
1085
- break;
1086
- }
1087
- if (!f) return t.default;
1088
- }
1089
- } while (++l < c && Pr(n));
1090
- return l === c ? n : t.default;
1091
- };
1092
- function Rr(n, e, t) {
1093
- return typeof t.join == "function" ? t.join(n) : n[0] + e + n[1];
1094
- }
1095
- function An(n, e, t) {
1096
- return typeof t.isValid != "function" || t.isValid(n, e);
1097
- }
1098
- function Pr(n) {
1099
- return Ii(n) || Array.isArray(n) || typeof n == "function";
1100
- }
1101
- var En, Dr, _t = ve(oa), zn = { exports: {} };
1102
- function sa() {
1103
- if (Dr) return En;
1104
- Dr = 1;
1105
- var n = 1e3, e = 60 * n, t = 60 * e, r = 24 * t, o = 7 * r, s = 365.25 * r;
1106
- function u(a, c, l, h) {
1107
- var f = c >= 1.5 * l;
1108
- return Math.round(a / l) + " " + h + (f ? "s" : "");
1109
- }
1110
- return En = function(a, c) {
1111
- c = c || {};
1112
- var l = L(a);
1113
- if (l === "string" && a.length > 0) return function(h) {
1114
- if (!((h = String(h)).length > 100)) {
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);
1116
- if (f) {
1117
- var m = parseFloat(f[1]);
1118
- switch ((f[2] || "ms").toLowerCase()) {
1119
- case "years":
1120
- case "year":
1121
- case "yrs":
1122
- case "yr":
1123
- case "y":
1124
- return m * s;
1125
- case "weeks":
1126
- case "week":
1127
- case "w":
1128
- return m * o;
1129
- case "days":
1130
- case "day":
1131
- case "d":
1132
- return m * r;
1133
- case "hours":
1134
- case "hour":
1135
- case "hrs":
1136
- case "hr":
1137
- case "h":
1138
- return m * t;
1139
- case "minutes":
1140
- case "minute":
1141
- case "mins":
1142
- case "min":
1143
- case "m":
1144
- return m * e;
1145
- case "seconds":
1146
- case "second":
1147
- case "secs":
1148
- case "sec":
1149
- case "s":
1150
- return m * n;
1151
- case "milliseconds":
1152
- case "millisecond":
1153
- case "msecs":
1154
- case "msec":
1155
- case "ms":
1156
- return m;
1157
- default:
1158
- return;
1159
- }
1160
- }
1161
- }
1162
- }(a);
1163
- if (l === "number" && isFinite(a)) return c.long ? function(h) {
1164
- var f = Math.abs(h);
1165
- return f >= r ? u(h, f, r, "day") : f >= t ? u(h, f, t, "hour") : f >= e ? u(h, f, e, "minute") : f >= n ? u(h, f, n, "second") : h + " ms";
1166
- }(a) : function(h) {
1167
- var f = Math.abs(h);
1168
- return f >= r ? Math.round(h / r) + "d" : f >= t ? Math.round(h / t) + "h" : f >= e ? Math.round(h / e) + "m" : f >= n ? Math.round(h / n) + "s" : h + "ms";
1169
- }(a);
1170
- throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(a));
1171
- }, En;
1172
- }
1173
- var rn, V, Cn, aa = function(n) {
1174
- function e(o) {
1175
- var s, u, a, c = null;
1176
- function l() {
1177
- for (var h = arguments.length, f = new Array(h), m = 0; m < h; m++) f[m] = arguments[m];
1178
- if (l.enabled) {
1179
- var g = l, b = Number(/* @__PURE__ */ new Date()), R = b - (s || b);
1180
- g.diff = R, g.prev = s, g.curr = b, s = b, f[0] = e.coerce(f[0]), typeof f[0] != "string" && f.unshift("%O");
1181
- var d = 0;
1182
- f[0] = f[0].replace(/%([a-zA-Z%])/g, function(y, k) {
1183
- if (y === "%%") return "%";
1184
- d++;
1185
- var p = e.formatters[k];
1186
- if (typeof p == "function") {
1187
- var v = f[d];
1188
- y = p.call(g, v), f.splice(d, 1), d--;
1189
- }
1190
- return y;
1191
- }), e.formatArgs.call(g, f), (g.log || e.log).apply(g, f);
1192
- }
1193
- }
1194
- return l.namespace = o, l.useColors = e.useColors(), l.color = e.selectColor(o), l.extend = t, l.destroy = e.destroy, Object.defineProperty(l, "enabled", { enumerable: !0, configurable: !1, get: function() {
1195
- return c !== null ? c : (u !== e.namespaces && (u = e.namespaces, a = e.enabled(o)), a);
1196
- }, set: function(h) {
1197
- c = h;
1198
- } }), typeof e.init == "function" && e.init(l), l;
1199
- }
1200
- function t(o, s) {
1201
- var u = e(this.namespace + (s === void 0 ? ":" : s) + o);
1202
- return u.log = this.log, u;
1203
- }
1204
- function r(o) {
1205
- return o.toString().substring(2, o.toString().length - 2).replace(/\.\*\?$/, "*");
1206
- }
1207
- return e.debug = e, e.default = e, e.coerce = function(o) {
1208
- return o instanceof Error ? o.stack || o.message : o;
1209
- }, e.disable = function() {
1210
- var o = [].concat(Me(e.names.map(r)), Me(e.skips.map(r).map(function(s) {
1211
- return "-" + s;
1212
- }))).join(",");
1213
- return e.enable(""), o;
1214
- }, e.enable = function(o) {
1215
- var s;
1216
- e.save(o), e.namespaces = o, e.names = [], e.skips = [];
1217
- var u = (typeof o == "string" ? o : "").split(/[\s,]+/), a = u.length;
1218
- for (s = 0; s < a; s++) u[s] && ((o = u[s].replace(/\*/g, ".*?"))[0] === "-" ? e.skips.push(new RegExp("^" + o.slice(1) + "$")) : e.names.push(new RegExp("^" + o + "$")));
1219
- }, e.enabled = function(o) {
1220
- if (o[o.length - 1] === "*") return !0;
1221
- var s, u;
1222
- for (s = 0, u = e.skips.length; s < u; s++) if (e.skips[s].test(o)) return !1;
1223
- for (s = 0, u = e.names.length; s < u; s++) if (e.names[s].test(o)) return !0;
1224
- return !1;
1225
- }, e.humanize = sa(), e.destroy = function() {
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`.");
1227
- }, Object.keys(n).forEach(function(o) {
1228
- e[o] = n[o];
1229
- }), e.names = [], e.skips = [], e.formatters = {}, e.selectColor = function(o) {
1230
- for (var s = 0, u = 0; u < o.length; u++) s = (s << 5) - s + o.charCodeAt(u), s |= 0;
1231
- return e.colors[Math.abs(s) % e.colors.length];
1232
- }, e.enable(e.load()), e;
1233
- };
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) {
1236
- var e = "color: " + this.color;
1237
- n.splice(1, 0, e, "color: inherit");
1238
- var t = 0, r = 0;
1239
- n[0].replace(/%[a-zA-Z%]/g, function(o) {
1240
- o !== "%%" && (t++, o === "%c" && (r = t));
1241
- }), n.splice(r, 0, e);
1242
- }
1243
- }, V.save = function(n) {
1244
- try {
1245
- n ? V.storage.setItem("debug", n) : V.storage.removeItem("debug");
1246
- } catch {
1247
- }
1248
- }, V.load = function() {
1249
- var n;
1250
- try {
1251
- n = V.storage.getItem("debug");
1252
- } catch {
1253
- }
1254
- return !n && typeof process < "u" && "env" in process && (n = process.env.DEBUG), n;
1255
- }, V.useColors = function() {
1256
- return !(typeof window > "u" || !window.process || window.process.type !== "renderer" && !window.process.__nwjs) || (typeof navigator > "u" || !navigator.userAgent || !navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) && (typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
1257
- }, V.storage = function() {
1258
- try {
1259
- return localStorage;
1260
- } catch {
1261
- }
1262
- }(), V.destroy = (Cn = !1, function() {
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`."));
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() {
1265
- }, rn.exports = aa(V), rn.exports.formatters.j = function(n) {
1266
- try {
1267
- return JSON.stringify(n);
1268
- } catch (e) {
1269
- return "[UnexpectedJSONParseError]: " + e.message;
1270
- }
1271
- };
1272
- var or = zn.exports, Ai = or("cookie");
1273
- function xr() {
1274
- var n;
1275
- try {
1276
- n = document.cookie;
1277
- } catch (e) {
1278
- return typeof console < "u" && typeof console.error == "function" && console.error(e.stack || e), {};
1279
- }
1280
- return function(e) {
1281
- var t, r = {}, o = e.split(/ *; */);
1282
- if (o[0] == "") return r;
1283
- for (var s = 0; s < o.length; ++s) r[Mr((t = o[s].split("="))[0])] = Mr(t[1]);
1284
- return r;
1285
- }(n);
1286
- }
1287
- function Lr(n) {
1288
- try {
1289
- return encodeURIComponent(n);
1290
- } catch (e) {
1291
- Ai("error `encode(%o)` - %o", n, e);
1292
- }
1293
- }
1294
- function Mr(n) {
1295
- try {
1296
- return decodeURIComponent(n);
1297
- } catch (e) {
1298
- Ai("error `decode(%o)` - %o", n, e);
1299
- }
1300
- }
1301
- var On = ve(function(n, e, t) {
1302
- switch (arguments.length) {
1303
- case 3:
1304
- case 2:
1305
- return function(r, o, s) {
1306
- s = s || {};
1307
- var u = Lr(r) + "=" + Lr(o);
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;
1309
- }(n, e, t);
1310
- case 1:
1311
- return function(r) {
1312
- return xr()[r];
1313
- }(n);
1314
- default:
1315
- return xr();
1316
- }
1317
- }), Vn = { exports: {} }, Br = Math.max, ua = function(n, e) {
1318
- var t = e ? e.length : 0;
1319
- if (!t) return [];
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];
1321
- return s;
1322
- }, ca = Math.max, la = function(n) {
1323
- if (n == null || !n.length) return [];
1324
- for (var e = new Array(ca(n.length - 2, 0)), t = 1; t < n.length; t += 1) e[t - 1] = n[t];
1325
- return 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
- }, da = function(n, e, t, 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;
1332
- }, Oi = function(n, e) {
1333
- if (t = e, !t || L(t) !== "object") return e;
1334
- var t;
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);
1337
- return e;
1338
- }, _i = function(n) {
1339
- return Oi.apply(null, [pa, n].concat(Ei(arguments)));
1340
- };
1341
- Vn.exports = function(n) {
1342
- return Oi.apply(null, [null, n].concat(Ei(arguments)));
1343
- }, Vn.exports.deep = _i;
1344
- var Si = ve(Vn.exports), $n = { exports: {} }, wi = or("cookie"), ga = function(n, e, t) {
1345
- switch (arguments.length) {
1346
- case 3:
1347
- case 2:
1348
- return function(r, o, s) {
1349
- s = s || {};
1350
- var u = Gr(r) + "=" + Gr(o);
1351
- 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.secure && (u += "; secure"), document.cookie = u;
1352
- }(n, e, t);
1353
- case 1:
1354
- return function(r) {
1355
- return Nr()[r];
1356
- }(n);
1357
- default:
1358
- return Nr();
1359
- }
1360
- };
1361
- function Nr() {
1362
- var n;
1363
- try {
1364
- n = document.cookie;
1365
- } catch (e) {
1366
- return typeof console < "u" && typeof console.error == "function" && console.error(e.stack || e), {};
1367
- }
1368
- return function(e) {
1369
- var t, r = {}, o = e.split(/ *; */);
1370
- if (o[0] == "") return r;
1371
- for (var s = 0; s < o.length; ++s) r[Ur((t = o[s].split("="))[0])] = Ur(t[1]);
1372
- return r;
1373
- }(n);
1374
- }
1375
- function Gr(n) {
1376
- try {
1377
- return encodeURIComponent(n);
1378
- } catch (e) {
1379
- wi("error `encode(%o)` - %o", n, e);
1380
- }
1381
- }
1382
- function Ur(n) {
1383
- try {
1384
- return decodeURIComponent(n);
1385
- } catch (e) {
1386
- wi("error `decode(%o)` - %o", n, e);
1387
- }
1388
- }
1389
- (function(n, e) {
1390
- var t = ga;
1391
- function r(o) {
1392
- for (var s = e.cookie, u = e.levels(o), a = 0; a < u.length; ++a) {
1393
- var c = "__tld__", l = u[a], h = { domain: "." + l };
1394
- if (s(c, 1, h), s(c)) return s(c, null, h), l;
1395
- }
1396
- return "";
1397
- }
1398
- r.levels = function(o) {
1399
- var s, u, a = (typeof window.URL != "function" ? (s = o, (u = document.createElement("a")).href = s, u.hostname) : new URL(o).hostname).split("."), c = a[a.length - 1], l = [];
1400
- if (a.length === 4 && c === parseInt(c, 10) || a.length <= 1) return l;
1401
- for (var h = a.length - 2; h >= 0; --h) l.push(a.slice(h).join("."));
1402
- return l;
1403
- }, r.cookie = t, e = n.exports = r;
1404
- })($n, $n.exports);
1405
- var ma = ve($n.exports), bt = new (function() {
1406
- function n(e) {
1407
- F(this, n), this.cOpts = {}, this.options(e), this.isSupportAvailable = this.checkSupportAvailability();
1408
- }
1409
- return N(n, [{ key: "options", value: function() {
1410
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1411
- if (arguments.length === 0) return this.cOpts;
1412
- var t = ".".concat(ma(window.location.href));
1413
- return t === "." && (t = null), this.cOpts = Si(e, { maxage: 31536e6, path: "/", domain: t, samesite: "Lax" }), e.sameDomainCookiesOnly && delete this.cOpts.domain, this.cOpts;
1414
- } }, { key: "set", value: function(e, t) {
1415
- try {
1416
- return On(e, t, U(this.cOpts)), !0;
1417
- } catch (r) {
1418
- return D.error(r), !1;
1419
- }
1420
- } }, { key: "get", value: function(e) {
1421
- return On(e);
1422
- } }, { key: "remove", value: function(e) {
1423
- try {
1424
- return On(e, null, U(this.cOpts)), !0;
1425
- } catch {
1426
- return !1;
1427
- }
1428
- } }, { key: "checkSupportAvailability", value: function() {
1429
- var e = "test_rudder_cookie";
1430
- return this.set(e, !0), !!this.get(e) && (this.remove(e), !0);
1431
- } }]), n;
1432
- }())({}), Ti = { exports: {} };
1433
- Ti.exports = function() {
1434
- function n(f) {
1435
- return f = JSON.stringify(f), !!/^\{[\s\S]*\}$/.test(f);
1436
- }
1437
- function e(f) {
1438
- return f === void 0 || typeof f == "function" ? f + "" : JSON.stringify(f);
1439
- }
1440
- function t(f) {
1441
- if (typeof f == "string") try {
1442
- return JSON.parse(f);
1443
- } catch {
1444
- return f;
1445
- }
1446
- }
1447
- function r(f) {
1448
- return {}.toString.call(f) === "[object Function]";
1449
- }
1450
- function o(f) {
1451
- return Object.prototype.toString.call(f) === "[object Array]";
1452
- }
1453
- function s(f) {
1454
- var m = "_Is_Incognit", g = "yes";
1455
- try {
1456
- f || (f = window.localStorage), f.setItem(m, g), f.removeItem(m);
1457
- } catch {
1458
- var b = { _data: {}, setItem: function(d, y) {
1459
- return b._data[d] = String(y);
1460
- }, getItem: function(d) {
1461
- return b._data.hasOwnProperty(d) ? b._data[d] : void 0;
1462
- }, removeItem: function(d) {
1463
- return delete b._data[d];
1464
- }, clear: function() {
1465
- return b._data = {};
1466
- } };
1467
- f = b;
1468
- } finally {
1469
- f.getItem(m) === g && f.removeItem(m);
1470
- }
1471
- return f;
1472
- }
1473
- var u = s();
1474
- function a() {
1475
- if (!(this instanceof a)) return new a();
1476
- }
1477
- a.prototype = { set: function(f, m) {
1478
- if (f && !n(f)) u.setItem(f, e(m));
1479
- else if (n(f)) for (var g in f) this.set(g, f[g]);
1480
- return this;
1481
- }, get: function(f) {
1482
- if (f === void 0) {
1483
- var m = {};
1484
- return this.forEach(function(k, p) {
1485
- return m[k] = p;
1486
- }), m;
1487
- }
1488
- if (f.charAt(0) === "?") return this.has(f.substr(1));
1489
- var g = arguments;
1490
- if (g.length > 1) {
1491
- for (var b = {}, R = 0, d = g.length; R < d; R++) {
1492
- var y = t(u.getItem(g[R]));
1493
- this.has(g[R]) && (b[g[R]] = y);
1494
- }
1495
- return b;
1496
- }
1497
- return t(u.getItem(f));
1498
- }, clear: function() {
1499
- return u.clear(), this;
1500
- }, remove: function(f) {
1501
- var m = this.get(f);
1502
- return u.removeItem(f), m;
1503
- }, has: function(f) {
1504
- return {}.hasOwnProperty.call(this.get(), f);
1505
- }, keys: function() {
1506
- var f = [];
1507
- return this.forEach(function(m) {
1508
- f.push(m);
1509
- }), f;
1510
- }, forEach: function(f) {
1511
- for (var m = 0, g = u.length; m < g; m++) {
1512
- var b = u.key(m);
1513
- f(b, this.get(b));
1514
- }
1515
- return this;
1516
- }, search: function(f) {
1517
- for (var m = this.keys(), g = {}, b = 0, R = m.length; b < R; b++) m[b].indexOf(f) > -1 && (g[m[b]] = this.get(m[b]));
1518
- return g;
1519
- }, len: function() {
1520
- return u.length;
1521
- } };
1522
- var c = null;
1523
- function l(f, m) {
1524
- var g = arguments, b = null;
1525
- if (c || (c = a()), g.length === 0) return c.get();
1526
- if (g.length === 1) {
1527
- if (typeof f == "string") return c.get(f);
1528
- if (n(f)) return c.set(f);
1529
- }
1530
- if (g.length === 2 && typeof f == "string") {
1531
- if (!m) return c.remove(f);
1532
- if (m && typeof m == "string") return c.set(f, m);
1533
- m && r(m) && (b = null, b = m(f, c.get(f)), l.set(f, b));
1534
- }
1535
- if (g.length === 2 && o(f) && r(m)) for (var R = 0, d = f.length; R < d; R++) b = m(f[R], c.get(f[R])), l.set(f[R], b);
1536
- return l;
1537
- }
1538
- for (var h in a.prototype) l[h] = a.prototype[h];
1539
- return l;
1540
- }();
1541
- var _n = ve(Ti.exports), kt = new (function() {
1542
- function n(e) {
1543
- F(this, n), this.sOpts = {}, this.enabled = this.checkSupportAvailability(), this.options(e);
1544
- }
1545
- return N(n, [{ key: "options", value: function() {
1546
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1547
- return arguments.length === 0 || (Si(e, { enabled: !0 }), this.enabled = e.enabled && this.enabled, this.sOpts = e), this.sOpts;
1548
- } }, { key: "set", value: function(e, t) {
1549
- return _n.set(e, t);
1550
- } }, { key: "get", value: function(e) {
1551
- return _n.get(e);
1552
- } }, { key: "remove", value: function(e) {
1553
- return _n.remove(e);
1554
- } }, { key: "checkSupportAvailability", value: function() {
1555
- try {
1556
- var e = "test_rudder_ls";
1557
- return this.set(e, !0), !!this.get(e) && (this.remove(e), !0);
1558
- } catch {
1559
- return !1;
1560
- }
1561
- } }]), n;
1562
- }())({}), ya = function(n) {
1563
- return new TextDecoder().decode((e = n, t = globalThis.atob(e).split("").map(function(r) {
1564
- return r.charCodeAt(0);
1565
- }), new Uint8Array(t)));
1566
- var e, t;
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" };
1568
- function qr(n) {
1569
- try {
1570
- return n ? JSON.parse(n) : null;
1571
- } catch (e) {
1572
- return D.error(e), n || null;
1573
- }
1574
- }
1575
- function Pi(n) {
1576
- return n.replace(/^\s+|\s+$/gm, "");
1577
- }
1578
- function Kr(n) {
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;
1580
- }
1581
- for (var on, va = function() {
1582
- function n() {
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"));
1584
- }
1585
- return N(n, [{ key: "options", value: function() {
1586
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1587
- this.storage.options(e);
1588
- } }, { key: "setItem", value: function(e, t) {
1589
- var r = ye(t);
1590
- r !== null && this.storage.set(e, function(o) {
1591
- return Pi(o) === "" ? o : "".concat(ln).concat(bi.encrypt(o, Ri).toString());
1592
- }(r));
1593
- } }, { key: "setStringItem", value: function(e, t) {
1594
- typeof t == "string" ? this.setItem(e, t) : D.error("[Storage] ".concat(e, " should be string"));
1595
- } }, { key: "setUserId", value: function(e) {
1596
- this.setStringItem(Sn, e);
1597
- } }, { key: "setUserTraits", value: function(e) {
1598
- this.setItem(wn, e);
1599
- } }, { key: "setGroupId", value: function(e) {
1600
- this.setStringItem(Rn, e);
1601
- } }, { key: "setGroupTraits", value: function(e) {
1602
- this.setItem(Pn, e);
1603
- } }, { key: "setAnonymousId", value: function(e) {
1604
- this.setStringItem(Tn, e);
1605
- } }, { key: "setInitialReferrer", value: function(e) {
1606
- this.setItem(jr, e);
1607
- } }, { key: "setInitialReferringDomain", value: function(e) {
1608
- this.setItem(Hr, e);
1609
- } }, { key: "setSessionInfo", value: function(e) {
1610
- this.setItem(Dn, e);
1611
- } }, { key: "setAuthToken", value: function(e) {
1612
- this.setItem(xn, e);
1613
- } }, { key: "getItem", value: function(e) {
1614
- return qr(Kr(this.storage.get(e)));
1615
- } }, { key: "getUserId", value: function() {
1616
- return this.getItem(Sn);
1617
- } }, { key: "getUserTraits", value: function() {
1618
- return this.getItem(wn);
1619
- } }, { key: "getGroupId", value: function() {
1620
- return this.getItem(Rn);
1621
- } }, { key: "getGroupTraits", value: function() {
1622
- return this.getItem(Pn);
1623
- } }, { key: "fetchExternalAnonymousId", value: function(e) {
1624
- var t, r = e.toLowerCase();
1625
- return Object.keys(Mn).includes(r) && r === "segment" && (kt.enabled && (t = kt.get(Mn[r])), !t && bt.isSupportAvailable && (t = bt.get(Mn[r]))), t;
1626
- } }, { key: "getAnonymousId", value: function(e) {
1627
- var t = qr(Kr(this.storage.get(Tn)));
1628
- if (t) return t;
1629
- var r = _t(e, "autoCapture.source");
1630
- if (_t(e, "autoCapture.enabled") === !0 && typeof r == "string") {
1631
- var o = this.fetchExternalAnonymousId(r);
1632
- if (o) return o;
1633
- }
1634
- return t;
1635
- } }, { key: "getInitialReferrer", value: function() {
1636
- return this.getItem(jr);
1637
- } }, { key: "getInitialReferringDomain", value: function() {
1638
- return this.getItem(Hr);
1639
- } }, { key: "getSessionInfo", value: function() {
1640
- return this.getItem(Dn);
1641
- } }, { key: "getAuthToken", value: function() {
1642
- return this.getItem(xn);
1643
- } }, { key: "removeItem", value: function(e) {
1644
- return this.storage.remove(e);
1645
- } }, { key: "removeSessionInfo", value: function() {
1646
- this.removeItem(Dn);
1647
- } }, { key: "clear", value: function(e) {
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);
1649
- } }]), n;
1650
- }(), mn = new va(), fn = function(n, e) {
1651
- var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1652
- try {
1653
- if (document.getElementById(n)) return;
1654
- var r = document.createElement("script");
1655
- r.src = e, r.async = t.async === void 0 || t.async, r.type = "text/javascript", r.id = n, t.skipDatasetAttributes !== !0 && (r.setAttribute("data-loader", yi), t.isNonNativeSDK !== void 0 && r.setAttribute("data-isNonNativeSDK", t.isNonNativeSDK));
1656
- var o = document.getElementsByTagName("head");
1657
- if (o.length > 0) o[0].insertBefore(r, o[0].firstChild);
1658
- else {
1659
- var s = document.getElementsByTagName("script")[0];
1660
- s.parentNode.insertBefore(r, s);
1661
- }
1662
- } catch (u) {
1663
- M(u);
1664
- }
1665
- }, Qr = function(n) {
1666
- return n === null;
1667
- }, ba = function(n, e) {
1668
- if (!Array.isArray(n) || !Array.isArray(e)) return U(e);
1669
- var t = U(n);
1670
- return e.forEach(function(r, o) {
1671
- t[o] = Array.isArray(r) || function(s) {
1672
- return !Qr(s) && L(s) === "object" && !Array.isArray(s);
1673
- }(r) ? It(t[o], r) : r;
1674
- }), t;
1675
- }, It = function(n, e) {
1676
- return So(ba, n, e);
1677
- }, ka = function(n) {
1678
- return function(e) {
1679
- return !Qr(e) && Object.prototype.toString.call(e) === "[object Object]";
1680
- }(n) && Object.keys(n).length > 0;
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() {
1684
- var n;
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;
1688
- }
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) {
1691
- return n && n.endsWith("/") ? n.replace(/\/+$/, "") : n;
1692
- }
1693
- function Mi() {
1694
- return window.crypto && typeof window.crypto.getRandomValues == "function" ? Ia() : function() {
1695
- var n, e = 0, t = "";
1696
- if (!on || Ve + 16 > 256) {
1697
- for (on = Array(e = 256); e--; ) on[e] = 256 * Math.random() | 0;
1698
- e = Ve = 0;
1699
- }
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;
1702
- }();
1703
- }
1704
- function wt() {
1705
- return (/* @__PURE__ */ new Date()).toISOString();
1706
- }
1707
- function Bi(n, e) {
1708
- Object.keys(n).forEach(function(t) {
1709
- n.hasOwnProperty(t) && (e[t] && (n[e[t]] = n[t]), t !== "All" && e[t] !== void 0 && e[t] !== t && delete n[t]);
1710
- });
1711
- }
1712
- function Gn(n) {
1713
- Bi(n, mi);
1714
- }
1715
- function Wr(n) {
1716
- Bi(n, Aa);
1717
- }
1718
- function Un(n, e) {
1719
- var t = [];
1720
- if (!e || e.length === 0) return t;
1721
- var r = !0;
1722
- n.All !== void 0 && (r = n.All);
1723
- var o = [];
1724
- return typeof e[0] == "string" ? e.forEach(function(s) {
1725
- o.push({ intgName: s, intObj: s });
1726
- }) : L(e[0]) === "object" && e.forEach(function(s) {
1727
- o.push({ intgName: s.name, intObj: s });
1728
- }), o.forEach(function(s) {
1729
- var u = s.intgName, a = s.intObj;
1730
- if (r) {
1731
- var c = !0;
1732
- n[u] !== void 0 && !n[u] && (c = !1), c && t.push(a);
1733
- } else n[u] !== void 0 && n[u] && t.push(a);
1734
- }), t;
1735
- }
1736
- var sn = function(n) {
1737
- return typeof n == "string" || n == null ? n : ye(n);
1738
- }, Yr = function(n) {
1739
- return typeof n == "string" && n.trim().length > 0;
1740
- }, wa = function(n, e, t) {
1741
- try {
1742
- var r = n.source.dataplanes || {};
1743
- if (Object.keys(r).length > 0) {
1744
- var o = function(a) {
1745
- var c = a ? a.residencyServer : void 0;
1746
- if (c) return typeof c == "string" && Ca.includes(c.toUpperCase()) ? c.toUpperCase() : void D.error("Invalid residencyServer input");
1747
- }(t), s = r[o] || r.US;
1748
- if (s) {
1749
- var u = function(a) {
1750
- if (Array.isArray(a) && a.length > 0) {
1751
- var c = a.find(function(l) {
1752
- return l.default === !0;
1753
- });
1754
- if (c && Yr(c.url)) return c.url;
1755
- }
1756
- }(s);
1757
- if (u) return u;
1758
- }
1759
- }
1760
- if (Yr(e)) return e;
1761
- throw Error("Unable to load the SDK due to invalid data plane url");
1762
- } catch (a) {
1763
- throw Error(a);
1764
- }
1765
- };
1766
- function Fi() {
1767
- var n;
1768
- return ((n = document) === null || n === void 0 ? void 0 : n.referrer) || "$direct";
1769
- }
1770
- function Ni(n) {
1771
- var e = n.split("/");
1772
- return e.length >= 3 ? e[2] : "";
1773
- }
1774
- function Xr() {
1775
- for (var n = document.getElementsByTagName("link"), e = 0; n[e]; e += 1) {
1776
- var t = n[e];
1777
- if (t.getAttribute("rel") === "canonical") return t.getAttribute("href");
1778
- }
1779
- }
1780
- function Jr() {
1781
- var n = Xr(), e = window.location.pathname;
1782
- if (n) try {
1783
- e = new URL(n).pathname;
1784
- } catch {
1785
- }
1786
- var t = window.location, r = t.search, o = t.href, s = document.title, u = function(l) {
1787
- var h, f = Xr(), m = (h = f ? f.includes("?") ? f : f + l : window.location.href).indexOf("#");
1788
- return m > -1 ? h.slice(0, m) : h;
1789
- }(r), a = o, c = Fi();
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() || "" };
1791
- }
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
- }), Ra = N(function n() {
1795
- F(this, n), this.name = "RudderLabs JavaScript SDK", this.version = "2.48.7";
1796
- }), Pa = N(function n() {
1797
- F(this, n), this.name = "", this.version = "";
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() {
1801
- var e, t;
1802
- F(this, n), this.app = new Ta(), this.traits = null, this.library = new Ra(), this.userAgent = function() {
1803
- if (typeof navigator > "u") return null;
1804
- var r = navigator.userAgent, o = navigator.brave;
1805
- if (o && Object.getPrototypeOf(o).isBrave) {
1806
- var s = r.match(/(chrome)\/([\w.]+)/i);
1807
- s && (r = "".concat(r, " Brave/").concat(s[2]));
1808
- }
1809
- return r;
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";
1811
- }), La = function() {
1812
- function n() {
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 = {};
1814
- }
1815
- return N(n, [{ key: "getProperty", value: function(e) {
1816
- return this.properties[e];
1817
- } }, { key: "addProperty", value: function(e, t) {
1818
- this.properties[e] = t;
1819
- } }]), n;
1820
- }(), Gi = function() {
1821
- function n() {
1822
- F(this, n), this.message = new La();
1823
- }
1824
- return N(n, [{ key: "setType", value: function(e) {
1825
- this.message.type = e;
1826
- } }, { key: "setProperty", value: function(e) {
1827
- this.message.properties = e;
1828
- } }, { key: "setUserProperty", value: function(e) {
1829
- this.message.user_properties = e;
1830
- } }, { key: "setUserId", value: function(e) {
1831
- this.message.userId = e;
1832
- } }, { key: "setEventName", value: function(e) {
1833
- this.message.event = e;
1834
- } }, { key: "getElementContent", value: function() {
1835
- return this.message;
1836
- } }]), n;
1837
- }(), vt = function() {
1838
- function n() {
1839
- F(this, n), this.rudderProperty = null, this.rudderUserProperty = null, this.event = null, this.userId = null, this.type = null;
1840
- }
1841
- return N(n, [{ key: "setType", value: function(e) {
1842
- return this.type = e, this;
1843
- } }, { key: "build", value: function() {
1844
- var e = new Gi();
1845
- return e.setUserId(this.userId), e.setType(this.type), e.setEventName(this.event), e.setProperty(this.rudderProperty), e.setUserProperty(this.rudderUserProperty), e;
1846
- } }]), n;
1847
- }(), sr = {}, $e = 256, pn = []; $e--; ) pn[$e] = ($e + 256).toString(16).substring(1);
1848
- sr.v4 = function() {
1849
- var n, e = 0, t = "";
1850
- if (!an || $e + 16 > 256) {
1851
- for (an = Array(e = 256); e--; ) an[e] = 256 * Math.random() | 0;
1852
- e = $e = 0;
1853
- }
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;
1856
- };
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);
1859
- }, Wn = function(n, e) {
1860
- return Ma.call(n, e);
1861
- }, Zr = function(n, e) {
1862
- e = e || Wn;
1863
- for (var t = [], r = 0, o = n.length; r < o; r += 1) e(n, r) && t.push(String(r));
1864
- return t;
1865
- }, ar = function(n) {
1866
- return n == null ? [] : (e = n, Fa.call(e) === "[object String]" ? Zr(n, Na) : function(t) {
1867
- return t != null && typeof t != "function" && typeof t.length == "number";
1868
- }(n) ? Zr(n, Wn) : function(t, r) {
1869
- r = r || Wn;
1870
- var o = [];
1871
- for (var s in t) r(t, s) && o.push(String(s));
1872
- return o;
1873
- }(n));
1874
- var e;
1875
- }, jn = ar, Ga = sr.v4, ei = { _data: {}, length: 0, setItem: function(n, e) {
1876
- return this._data[n] = e, this.length = jn(this._data).length, e;
1877
- }, getItem: function(n) {
1878
- return n in this._data ? this._data[n] : null;
1879
- }, removeItem: function(n) {
1880
- return n in this._data && delete this._data[n], this.length = jn(this._data).length, null;
1881
- }, clear: function() {
1882
- this._data = {}, this.length = 0;
1883
- }, key: function(n) {
1884
- return jn(this._data)[n];
1885
- } };
1886
- yn.defaultEngine = function() {
1887
- try {
1888
- if (!window.localStorage) return !1;
1889
- var n = Ga();
1890
- window.localStorage.setItem(n, "test_value");
1891
- var e = window.localStorage.getItem(n);
1892
- return window.localStorage.removeItem(n), e === "test_value";
1893
- } catch {
1894
- return !1;
1895
- }
1896
- }() ? window.localStorage : ei, yn.inMemoryEngine = ei;
1897
- var Ua = ar, Ui = Object.prototype.toString, ja = typeof Array.isArray == "function" ? Array.isArray : function(n) {
1898
- return Ui.call(n) === "[object Array]";
1899
- }, Ha = function(n) {
1900
- return n != null && (ja(n) || n !== "function" && function(e) {
1901
- var t = L(e);
1902
- return t === "number" || t === "object" && Ui.call(e) === "[object Number]";
1903
- }(n.length));
1904
- }, qa = function(n, e) {
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) ;
1908
- }, ur = function(n, e) {
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) {
1912
- try {
1913
- return JSON.stringify(n, (e = [], function(t, r) {
1914
- if (L(r) !== "object" || r === null) return r;
1915
- for (; e.length > 0 && e[e.length - 1] !== this; ) e.pop();
1916
- return e.includes(r) ? "[Circular Reference]" : (e.push(r), r);
1917
- }));
1918
- } catch {
1919
- return null;
1920
- }
1921
- var e;
1922
- }
1923
- function qe(n, e, t, r) {
1924
- this.id = e, this.name = n, this.keys = t || {}, this.engine = r || Qa, this.originalEngine = this.engine;
1925
- }
1926
- qe.prototype.set = function(n, e) {
1927
- var t = this._createValidKey(n);
1928
- if (t) try {
1929
- this.engine.setItem(t, $a(e));
1930
- } catch (r) {
1931
- (function(o) {
1932
- var s = !1;
1933
- if (o.code) switch (o.code) {
1934
- case 22:
1935
- s = !0;
1936
- break;
1937
- case 1014:
1938
- o.name === "NS_ERROR_DOM_QUOTA_REACHED" && (s = !0);
1939
- }
1940
- else o.number === -2147024882 && (s = !0);
1941
- return s;
1942
- })(r) && (this._swapEngine(), this.set(n, e));
1943
- }
1944
- }, qe.prototype.get = function(n) {
1945
- try {
1946
- var e = this.engine.getItem(this._createValidKey(n));
1947
- return e === null ? null : Va.parse(e);
1948
- } catch {
1949
- return null;
1950
- }
1951
- }, qe.prototype.getOriginalEngine = function() {
1952
- return this.originalEngine;
1953
- }, qe.prototype.remove = function(n) {
1954
- this.engine.removeItem(this._createValidKey(n));
1955
- }, qe.prototype._createValidKey = function(n) {
1956
- var e, t = this.name, r = this.id;
1957
- return za(this.keys).length ? (ni(function(o) {
1958
- o === n && (e = [t, r, n].join("."));
1959
- }, this.keys), e) : [t, r, n].join(".");
1960
- }, qe.prototype._swapEngine = function() {
1961
- var n = this;
1962
- ni(function(e) {
1963
- var t = n.get(e);
1964
- ti.setItem([n.name, n.id, e].join("."), t), n.remove(e);
1965
- }, this.keys), this.engine = ti;
1966
- };
1967
- var Wa = qe, Ya = ur, ji = { setTimeout: function(n, e) {
1968
- return window.setTimeout(n, e);
1969
- }, clearTimeout: function(n) {
1970
- return window.clearTimeout(n);
1971
- }, Date: window.Date }, at = ji, un = { ASAP: 1, RESCHEDULE: 2, ABANDON: 3 };
1972
- function ge() {
1973
- this.tasks = {}, this.nextId = 1;
1974
- }
1975
- ge.prototype.now = function() {
1976
- return +new at.Date();
1977
- }, ge.prototype.run = function(n, e, t) {
1978
- var r = this.nextId++;
1979
- return this.tasks[r] = at.setTimeout(this._handle(r, n, e, t || un.ASAP), e), r;
1980
- }, ge.prototype.cancel = function(n) {
1981
- this.tasks[n] && (at.clearTimeout(this.tasks[n]), delete this.tasks[n]);
1982
- }, ge.prototype.cancelAll = function() {
1983
- Ya(at.clearTimeout, this.tasks), this.tasks = {};
1984
- }, ge.prototype._handle = function(n, e, t, r) {
1985
- var o = this, s = o.now();
1986
- return function() {
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);
1989
- };
1990
- }, ge.setClock = function(n) {
1991
- at = n;
1992
- }, ge.resetClock = function() {
1993
- at = ji;
1994
- }, ge.Modes = un;
1995
- var Xa = ge, Hi = { exports: {} };
1996
- (function(n) {
1997
- function e(t) {
1998
- if (t) return function(r) {
1999
- for (var o in e.prototype) r[o] = e.prototype[o];
2000
- return r;
2001
- }(t);
2002
- }
2003
- Hi.exports = e, e.prototype.on = e.prototype.addEventListener = function(t, r) {
2004
- return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(r), this;
2005
- }, e.prototype.once = function(t, r) {
2006
- function o() {
2007
- this.off(t, o), r.apply(this, arguments);
2008
- }
2009
- return o.fn = r, this.on(t, o), this;
2010
- }, e.prototype.off = e.prototype.removeListener = e.prototype.removeAllListeners = e.prototype.removeEventListener = function(t, r) {
2011
- if (this._callbacks = this._callbacks || {}, arguments.length == 0) return this._callbacks = {}, this;
2012
- var o, s = this._callbacks["$" + t];
2013
- if (!s) return this;
2014
- if (arguments.length == 1) return delete this._callbacks["$" + t], this;
2015
- for (var u = 0; u < s.length; u++) if ((o = s[u]) === r || o.fn === r) {
2016
- s.splice(u, 1);
2017
- break;
2018
- }
2019
- return s.length === 0 && delete this._callbacks["$" + t], this;
2020
- }, e.prototype.emit = function(t) {
2021
- this._callbacks = this._callbacks || {};
2022
- for (var r = new Array(arguments.length - 1), o = this._callbacks["$" + t], s = 1; s < arguments.length; s++) r[s - 1] = arguments[s];
2023
- if (o) {
2024
- s = 0;
2025
- for (var u = (o = o.slice(0)).length; s < u; ++s) o[s].apply(this, r);
2026
- }
2027
- return this;
2028
- }, e.prototype.listeners = function(t) {
2029
- return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
2030
- }, e.prototype.hasListeners = function(t) {
2031
- return !!this.listeners(t).length;
2032
- };
2033
- })();
2034
- var Ja = Hi.exports, At = sr.v4, Yn = Wa, Hn = ur, ct = Xa, Za = or("localstorage-retry");
2035
- function qn(n, e) {
2036
- return function() {
2037
- return n.apply(e, arguments);
2038
- };
2039
- }
2040
- function K(n, e, t) {
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;
2042
- }
2043
- Ja(K.prototype), K.prototype.start = function() {
2044
- this._running && this.stop(), this._running = !0, this._ack(), this._checkReclaim(), this._processHead();
2045
- }, K.prototype.stop = function() {
2046
- this._schedule.cancelAll(), this._running = !1;
2047
- }, K.prototype.shouldRetry = function(n, e) {
2048
- return !(e > this.maxAttempts);
2049
- }, K.prototype.getDelay = function(n) {
2050
- var e = this.backoff.MIN_RETRY_DELAY * Math.pow(this.backoff.FACTOR, n);
2051
- if (this.backoff.JITTER) {
2052
- var t = Math.random(), r = Math.floor(t * this.backoff.JITTER * e);
2053
- Math.floor(10 * t) < 5 ? e -= r : e += r;
2054
- }
2055
- return Number(Math.min(e, this.backoff.MAX_RETRY_DELAY).toPrecision(1));
2056
- }, K.prototype.addItem = function(n) {
2057
- this._enqueue({ item: n, attemptNumber: 0, time: this._schedule.now(), id: At() });
2058
- }, K.prototype.requeue = function(n, e, t, r) {
2059
- this.shouldRetry(n, e, t) ? this._enqueue({ item: n, attemptNumber: e, time: this._schedule.now() + this.getDelay(e), id: r || At() }) : this.emit("discard", n, e);
2060
- }, K.prototype._enqueue = function(n) {
2061
- var e = this._store.get(this.keys.QUEUE) || [];
2062
- (e = e.slice(-(this.maxItems - 1))).push(n), e = e.sort(function(t, r) {
2063
- return t.time - r.time;
2064
- }), this._store.set(this.keys.QUEUE, e), this._running && this._processHead();
2065
- }, K.prototype._processHead = function() {
2066
- var n = this, e = this._store;
2067
- this._schedule.cancel(this._processId);
2068
- var t = e.get(this.keys.QUEUE) || [], r = e.get(this.keys.IN_PROGRESS) || {}, o = this._schedule.now(), s = [];
2069
- function u(h, f) {
2070
- s.push({ item: h.item, done: function(m, g) {
2071
- var b = e.get(n.keys.IN_PROGRESS) || {};
2072
- delete b[f], e.set(n.keys.IN_PROGRESS, b), n.emit("processed", m, g, h.item), m && n.requeue(h.item, h.attemptNumber + 1, m, h.id);
2073
- } });
2074
- }
2075
- for (var a = Object.keys(r).length; t.length && t[0].time <= o && a++ < n.maxItems; ) {
2076
- var c = t.shift(), l = At();
2077
- r[l] = { item: c.item, attemptNumber: c.attemptNumber, time: n._schedule.now() }, u(c, l);
2078
- }
2079
- e.set(this.keys.QUEUE, t), e.set(this.keys.IN_PROGRESS, r), Hn(function(h) {
2080
- try {
2081
- n.fn(h.item, h.done);
2082
- } catch (f) {
2083
- Za("Process function threw error: " + f);
2084
- }
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));
2086
- }, K.prototype._ack = function() {
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);
2088
- }, K.prototype._checkReclaim = function() {
2089
- var n = this;
2090
- Hn(function(e) {
2091
- e.id !== n.id && (n._schedule.now() - e.get(n.keys.ACK) < n.timeouts.RECLAIM_TIMEOUT || function(t) {
2092
- t.set(n.keys.RECLAIM_START, n.id), t.set(n.keys.ACK, n._schedule.now()), n._schedule.run(function() {
2093
- t.get(n.keys.RECLAIM_START) === n.id && (t.set(n.keys.RECLAIM_END, n.id), n._schedule.run(function() {
2094
- t.get(n.keys.RECLAIM_END) === n.id && t.get(n.keys.RECLAIM_START) === n.id && n._reclaim(t.id);
2095
- }, n.timeouts.RECLAIM_WAIT, ct.Modes.ABANDON));
2096
- }, n.timeouts.RECLAIM_WAIT, ct.Modes.ABANDON);
2097
- }(e));
2098
- }, function(e) {
2099
- for (var t = [], r = n._store.getOriginalEngine(), o = 0; o < r.length; o++) {
2100
- var s = r.key(o);
2101
- if (s !== null) {
2102
- var u = s.split(".");
2103
- u.length === 3 && u[0] === e && u[2] === "ack" && t.push(new Yn(e, u[1], n.keys));
2104
- }
2105
- }
2106
- return t;
2107
- }(this.name)), this._schedule.run(this._checkReclaim, this.timeouts.RECLAIM_TIMER, ct.Modes.RESCHEDULE);
2108
- }, K.prototype._reclaim = function(n) {
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) {
2110
- Hn(function(l) {
2111
- var h = l.id || At();
2112
- s.indexOf(h) >= 0 ? e.emit("duplication", l.item, l.attemptNumber) : (r.queue.push({ item: l.item, attemptNumber: l.attemptNumber + c, time: e._schedule.now(), id: h }), s.push(h));
2113
- }, a);
2114
- };
2115
- u(o.queue, 0), u(o.inProgress, 1), r.queue = r.queue.sort(function(a, c) {
2116
- return a.time - c.time;
2117
- }), this._store.set(this.keys.QUEUE, r.queue);
2118
- try {
2119
- this._clearOtherQueue(t, 1);
2120
- } catch (a) {
2121
- if (a.name === "NS_ERROR_STORAGE_BUSY" || a.code === "NS_ERROR_STORAGE_BUSY" || a.code === 2153971713) try {
2122
- this._clearOtherQueue(t, 40);
2123
- } catch (c) {
2124
- console.error(c);
2125
- }
2126
- else console.error(a);
2127
- }
2128
- this._processHead();
2129
- }, K.prototype._clearOtherQueue = function(n, e) {
2130
- var t = this;
2131
- setTimeout(function() {
2132
- n.remove(t.keys.IN_PROGRESS), setTimeout(function() {
2133
- n.remove(t.keys.QUEUE), setTimeout(function() {
2134
- n.remove(t.keys.RECLAIM_START), setTimeout(function() {
2135
- n.remove(t.keys.RECLAIM_END), setTimeout(function() {
2136
- n.remove(t.keys.ACK);
2137
- }, e);
2138
- }, e);
2139
- }, e);
2140
- }, e);
2141
- }, e);
2142
- };
2143
- var qi = ve(K), ri = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2, maxAttempts: 10, maxItems: 100 }, eu = function() {
2144
- function n() {
2145
- F(this, n), this.url = "", this.writeKey = "";
2146
- }
2147
- return N(n, [{ key: "init", value: function(e, t, r) {
2148
- var o = this;
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) {
2151
- if (a) return u(a);
2152
- u(null, c);
2153
- });
2154
- }), this.payloadQueue.start();
2155
- } }, { key: "processQueueElement", value: function(e, t, r, o, s) {
2156
- try {
2157
- var u = new XMLHttpRequest();
2158
- for (var a in u.open("POST", e, !0), t) u.setRequestHeader(a, t[a]);
2159
- u.timeout = o, u.ontimeout = s, u.onerror = s, u.onreadystatechange = function() {
2160
- if (u.readyState === 4) if (u.status === 429 || u.status >= 500 && u.status < 600) {
2161
- var l = "".concat(rr, ' "').concat(u.status, '" status text: "').concat(u.statusText, '" for URL: "').concat(e, '"'), h = new Error(l);
2162
- M(h), s(h);
2163
- } else s(null, u.status);
2164
- };
2165
- var c = ye(r, !0);
2166
- c ? u.send(c) : D.error("Invalid payload: Event dropped");
2167
- } catch (l) {
2168
- s(l);
2169
- }
2170
- } }, { key: "enqueue", value: function(e, t) {
2171
- var r = { "Content-Type": "application/json", Authorization: "Basic ".concat(btoa("".concat(this.writeKey, ":"))), AnonymousId: btoa(e.anonymousId) };
2172
- this.payloadQueue.addItem({ url: "".concat(this.url, "/v1/").concat(t), headers: r, message: e });
2173
- } }]), n;
2174
- }(), tu = "queue", nu = 64e3, ru = function() {
2175
- function n() {
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());
2177
- }
2178
- return N(n, [{ key: "sendQueueDataForBeacon", value: function() {
2179
- this.sendDataFromQueueAndDestroyQueue();
2180
- } }, { key: "init", value: function(e, t, r) {
2181
- this.url = t, this.writekey = e, r.maxItems && (this.maxItems = r.maxItems), r.flushQueueInterval && (this.flushQueueTimeOutInterval = r.flushQueueInterval), this.sendQueueDataForBeacon = this.sendQueueDataForBeacon.bind(this), this.attachListeners();
2182
- } }, { key: "attachListeners", value: function() {
2183
- var e = this;
2184
- window.addEventListener("visibilitychange", function() {
2185
- document.visibilityState === "hidden" && e.sendQueueDataForBeacon();
2186
- });
2187
- } }, { key: "getQueue", value: function() {
2188
- return this.storage.get(this.queueName);
2189
- } }, { key: "setQueue", value: function(e) {
2190
- this.storage.set(this.queueName, e);
2191
- } }, { key: "enqueue", value: function(e) {
2192
- var t = this.getQueue() || [];
2193
- (t = t.slice(-(this.maxItems - 1))).push(e);
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);
2196
- } }, { key: "sendDataFromQueueAndDestroyQueue", value: function() {
2197
- this.sendDataFromQueue(), this.storage.remove(this.queueName);
2198
- } }, { key: "sendDataFromQueue", value: function() {
2199
- var e = this.getQueue();
2200
- if (e && e.length > 0) {
2201
- var t = e.slice(0, e.length);
2202
- this.flushQueue(t);
2203
- }
2204
- } }, { key: "flushQueue", value: function(e) {
2205
- if (e && e.length > 0) {
2206
- var t = wt();
2207
- e.forEach(function(u) {
2208
- u.sentAt = t;
2209
- });
2210
- var r = ye({ batch: e, sentAt: t }, !0);
2211
- if (r !== null) {
2212
- var o = new Blob([r], { type: "text/plain" }), s = "".concat(this.url, "?writeKey=").concat(this.writekey);
2213
- try {
2214
- typeof navigator.sendBeacon != "function" && M(new Error("Beacon API is not supported by browser")), navigator.sendBeacon(s, o) || M(new Error("Unable to queue data to browser's beacon queue"));
2215
- } catch (u) {
2216
- u.message = "".concat(u.message, " - While sending Beacon data to: ").concat(s), M(u);
2217
- }
2218
- } else D.error("Invalid payload: Event dropped");
2219
- }
2220
- this.setQueue([]), this.clearTimer();
2221
- } }, { key: "setTimer", value: function() {
2222
- this.timeOutActive || (this.flushQueueTimeOut = setTimeout(this.sendDataFromQueue.bind(this), this.flushQueueTimeOutInterval), this.timeOutActive = !0);
2223
- } }, { key: "clearTimer", value: function() {
2224
- this.timeOutActive && (clearTimeout(this.flushQueueTimeOut), this.timeOutActive = !1);
2225
- } }]), n;
2226
- }(), iu = function() {
2227
- function n() {
2228
- F(this, n), this.queue = void 0;
2229
- }
2230
- return N(n, [{ key: "initialize", value: function(e, t, r) {
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);
2233
- } }, { key: "enqueue", value: function(e, t) {
2234
- var r = e.getElementContent();
2235
- r.originalTimestamp = r.originalTimestamp || wt(), r.sentAt = wt();
2236
- var o = ye(r, !0);
2237
- o && o.length > 32e3 && D.error("[EventRepository] enqueue:: message length greater 32 Kb ", r), this.queue.enqueue(r, t);
2238
- } }]), n;
2239
- }(), ou = new iu(), ii = { maxRetryDelay: 36e4, minRetryDelay: 1e3, backoffFactor: 2, maxAttempts: 1 / 0 }, su = function() {
2240
- function n() {
2241
- F(this, n), this.callback = void 0, this.processQueueElements = !1;
2242
- }
2243
- return N(n, [{ key: "init", value: function(e, t) {
2244
- var r = this;
2245
- e && We(ii, e), t && (this.callback = t), this.payloadQueue = new qi("rs_events", ii, function(o, s) {
2246
- r.processQueueElement(o.type, o.rudderElement, function(u, a) {
2247
- if (u) return s(u);
2248
- s(null, a);
2249
- });
2250
- }), this.payloadQueue.start();
2251
- } }, { key: "activateProcessor", value: function() {
2252
- this.processQueueElements = !0;
2253
- } }, { key: "processQueueElement", value: function(e, t, r) {
2254
- try {
2255
- this.processQueueElements ? (Object.setPrototypeOf(t, Gi.prototype), this.callback(e, t), r(null)) : r(new Error("The queue elements are not ready to be processed yet"));
2256
- } catch (o) {
2257
- r(o);
2258
- }
2259
- } }, { key: "enqueue", value: function(e, t) {
2260
- this.payloadQueue.addItem({ type: e, rudderElement: t });
2261
- } }]), n;
2262
- }(), au = function(n) {
2263
- for (var e = function() {
2264
- for (var o, s = [], u = 0; u < 256; u++) {
2265
- o = u;
2266
- for (var a = 0; a < 8; a++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
2267
- s[u] = o;
2268
- }
2269
- return s;
2270
- }(), t = -1, r = 0; r < n.length; r++) t = t >>> 8 ^ e[255 & (t ^ n.charCodeAt(r))];
2271
- return (-1 ^ t) >>> 0;
2272
- }, oi = { getUserLanguage: function() {
2273
- return navigator && navigator.language;
2274
- }, getUserAgent: function() {
2275
- return navigator && navigator.userAgent;
2276
- } };
2277
- function uu() {
2278
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
2279
- return n = n.endsWith("..") ? n.substr(0, n.length - 2) : n, decodeURIComponent(atob(n).split("").map(function(e) {
2280
- return "%".concat("00".concat(e.charCodeAt(0).toString(16)).slice(-2));
2281
- }).join(""));
2282
- }
2283
- var cu = /^[a-zA-Z0-9\-_.]+$/, lu = 1, fu = 1, Ot = "*";
2284
- function hu(n, e, t, r) {
2285
- var o = function(a, c) {
2286
- return [a, (/* @__PURE__ */ new Date()).getTimezoneOffset(), c].join(Ot);
2287
- }(t, r), s = e || 0, u = Math.floor(Date.now() / 6e4) - s;
2288
- return au([o, u, n].join(Ot)).toString(36);
2289
- }
2290
- function du(n) {
2291
- var e = function(o) {
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) };
2294
- }(n);
2295
- if (!e) return null;
2296
- var t = e.checksum, r = e.serializedIds;
2297
- return function(o, s) {
2298
- for (var u = oi.getUserAgent(), a = oi.getUserLanguage(), c = 0; c <= lu; c += 1) if (hu(o, c, u, a) === s) return !0;
2299
- return !1;
2300
- }(r, t) ? function(o) {
2301
- for (var s = {}, u = o.split(Ot), a = 0; a < u.length; a += 2) {
2302
- var c = u[a];
2303
- if (cu.test(c)) {
2304
- var l = uu(u[a + 1]);
2305
- s[c] = l;
2306
- }
2307
- }
2308
- return s;
2309
- }(r) : null;
2310
- }
2311
- var pu = function() {
2312
- function n() {
2313
- var e = this;
2314
- if (F(this, n), i(this, "isInitialized", !1), window.OneTrust && window.OnetrustActiveGroups) {
2315
- this.userSetConsentGroupIds = window.OnetrustActiveGroups.split(",").filter(function(r) {
2316
- return r;
2317
- });
2318
- var t = window.OneTrust.GetDomainData().Groups;
2319
- this.userSetConsentGroupNames = [], this.userDeniedConsentGroupIds = [], t.forEach(function(r) {
2320
- var o = r.CustomGroupId, s = r.GroupName;
2321
- e.userSetConsentGroupIds.includes(o) ? e.userSetConsentGroupNames.push(s.toUpperCase().trim()) : e.userDeniedConsentGroupIds.push(o);
2322
- }), this.userSetConsentGroupIds = this.userSetConsentGroupIds.map(function(r) {
2323
- return r.toUpperCase();
2324
- }), this.isInitialized = !0;
2325
- } else D.error("OneTrust resources are not accessible.");
2326
- }
2327
- return N(n, [{ key: "isEnabled", value: function(e) {
2328
- var t = this;
2329
- try {
2330
- if (!this.isInitialized) return !0;
2331
- var r = e.oneTrustCookieCategories;
2332
- if (!r) return !0;
2333
- var o = r.map(function(s) {
2334
- return s.oneTrustCookieCategory;
2335
- }).filter(function(s) {
2336
- return s;
2337
- });
2338
- return o.every(function(s) {
2339
- return t.userSetConsentGroupIds.includes(s.toUpperCase().trim()) || t.userSetConsentGroupNames.includes(s.toUpperCase().trim());
2340
- });
2341
- } catch (s) {
2342
- return D.error("Error during onetrust cookie consent management ".concat(s)), !0;
2343
- }
2344
- } }, { key: "getDeniedList", value: function() {
2345
- return this.isInitialized ? this.userDeniedConsentGroupIds : [];
2346
- } }]), n;
2347
- }(), gu = function() {
2348
- function n() {
2349
- var e = this;
2350
- if (F(this, n), i(this, "updatePurposes", function(r) {
2351
- r && Object.entries(r).forEach(function(o) {
2352
- var s = o[0];
2353
- o[1] ? e.userConsentedPurposes.push(s) : e.userDeniedPurposes.push(s);
2354
- });
2355
- }), this.userConsentedPurposes = [], this.userDeniedPurposes = [], window.updateKetchConsent = function(r) {
2356
- r && (e.userConsentedPurposes = [], e.userDeniedPurposes = [], e.updatePurposes(r));
2357
- }, window.getKetchUserConsentedPurposes = function() {
2358
- return e.userConsentedPurposes.slice();
2359
- }, window.getKetchUserDeniedPurposes = function() {
2360
- return e.userDeniedPurposes.slice();
2361
- }, window.ketchConsent) this.updatePurposes(window.ketchConsent);
2362
- else {
2363
- var t = this.getConsent();
2364
- this.updatePurposes(t);
2365
- }
2366
- }
2367
- return N(n, [{ key: "isEnabled", value: function(e) {
2368
- var t = this;
2369
- try {
2370
- var r = e.ketchConsentPurposes;
2371
- if (!r || r.length === 0) return !0;
2372
- var o = r.map(function(s) {
2373
- return s.purpose;
2374
- }).filter(function(s) {
2375
- return s;
2376
- });
2377
- return o.some(function(s) {
2378
- return t.userConsentedPurposes.includes(s.trim());
2379
- });
2380
- } catch (s) {
2381
- return D.error("Error occured checking ketch consent state ".concat(s)), !0;
2382
- }
2383
- } }, { key: "getDeniedList", value: function() {
2384
- return this.userDeniedPurposes;
2385
- } }, { key: "getConsent", value: function() {
2386
- var e = bt.get("_ketch_consent_v1_");
2387
- if (e) {
2388
- var t;
2389
- try {
2390
- t = JSON.parse(atob(e));
2391
- } catch (o) {
2392
- return void D.error("Error occurred while parsing consent cookie ".concat(o));
2393
- }
2394
- if (t) {
2395
- var r = {};
2396
- return Object.entries(t).forEach(function(o) {
2397
- var s = o[0], u = o[1];
2398
- u && u.status && (r[s] = u.status === "granted");
2399
- }), r;
2400
- }
2401
- }
2402
- } }]), n;
2403
- }(), mu = function(n) {
2404
- var e, t;
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() {
2407
- function n() {
2408
- F(this, n), this.storage = mn, this.timeout = 18e5, this.sessionInfo = this.storage.getSessionInfo() || { autoTrack: !0 };
2409
- }
2410
- return N(n, [{ key: "initialize", value: function(e) {
2411
- try {
2412
- var t;
2413
- if (this.sessionInfo.autoTrack = !((e == null || (t = e.sessions) === null || t === void 0 ? void 0 : t.autoTrack) === !1 || this.sessionInfo.manualTrack), e != null && e.sessions && !isNaN(e.sessions.timeout)) {
2414
- var r = e.sessions.timeout;
2415
- r === 0 && (D.warn("[Session]:: Provided timeout value 0 will disable the auto session tracking feature."), this.sessionInfo.autoTrack = !1), r > 0 && r < 1e4 && D.warn('[Session]:: It is not advised to set "timeout" less than 10 seconds'), this.timeout = r;
2416
- }
2417
- this.sessionInfo.autoTrack ? this.startAutoTracking() : this.sessionInfo.autoTrack !== !1 || this.sessionInfo.manualTrack || this.end();
2418
- } catch (o) {
2419
- M(o);
2420
- }
2421
- } }, { key: "isValidSession", value: function(e) {
2422
- return e <= this.sessionInfo.expiresAt;
2423
- } }, { key: "generateSessionId", value: function() {
2424
- return Date.now();
2425
- } }, { key: "startAutoTracking", value: function() {
2426
- var e = Date.now();
2427
- this.isValidSession(e) || (this.sessionInfo = {}, this.sessionInfo.id = e, this.sessionInfo.expiresAt = e + this.timeout, this.sessionInfo.sessionStart = !0, this.sessionInfo.autoTrack = !0), this.storage.setSessionInfo(this.sessionInfo);
2428
- } }, { key: "validateSessionId", value: function(e) {
2429
- if (typeof e == "number" && e % 1 == 0) {
2430
- var t;
2431
- if (!(((t = e) ? t.toString().length : 0) < 10)) return e;
2432
- D.error('[Session]:: "sessionId" should at least be "'.concat(10, '" digits long'));
2433
- } else D.error('[Session]:: "sessionId" should only be a positive integer');
2434
- } }, { key: "start", value: function(e) {
2435
- var t = e ? this.validateSessionId(e) : this.generateSessionId();
2436
- this.sessionInfo = { id: t || this.generateSessionId(), sessionStart: !0, manualTrack: !0 }, this.storage.setSessionInfo(this.sessionInfo);
2437
- } }, { key: "getSessionId", value: function() {
2438
- return this.sessionInfo.autoTrack && this.isValidSession(Date.now()) || this.sessionInfo.manualTrack ? this.sessionInfo.id : null;
2439
- } }, { key: "end", value: function() {
2440
- this.sessionInfo = {}, this.storage.removeSessionInfo();
2441
- } }, { key: "getSessionInfo", value: function() {
2442
- var e = {};
2443
- if (this.sessionInfo.autoTrack || this.sessionInfo.manualTrack) {
2444
- if (this.sessionInfo.autoTrack) {
2445
- var t = Date.now();
2446
- this.isValidSession(t) ? this.sessionInfo.expiresAt = t + this.timeout : this.startAutoTracking();
2447
- }
2448
- this.sessionInfo.sessionStart && (e.sessionStart = !0, this.sessionInfo.sessionStart = !1), e.sessionId = this.sessionInfo.id, this.storage.setSessionInfo(this.sessionInfo);
2449
- }
2450
- return e;
2451
- } }, { key: "reset", value: function() {
2452
- var e = this.sessionInfo, t = e.manualTrack;
2453
- e.autoTrack ? (this.sessionInfo = {}, this.startAutoTracking()) : t && this.start();
2454
- } }]), n;
2455
- }(), vu = new yu(), si = ["integrations", "anonymousId", "originalTimestamp"], bu = function(n, e, t) {
2456
- var r = "";
2457
- if (t) {
2458
- if (!(r = St(t))) {
2459
- var o = "CDN base URL for integrations is not valid";
2460
- throw M({ message: "[Analytics] load:: ".concat(o) }), Error("Failed to load Rudder SDK: ".concat(o));
2461
- }
2462
- return r;
2463
- }
2464
- var s = function() {
2465
- for (var a, c = document.getElementsByTagName("script"), l = 0; l < c.length; l += 1) {
2466
- var h = St(c[l].getAttribute("src"));
2467
- if (h && h.match(/^.*rudder-analytics?(\.min)?\.js$/)) {
2468
- a = h;
2469
- break;
2470
- }
2471
- }
2472
- return { sdkURL: a };
2473
- }(), u = s.sdkURL;
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");
2479
- }))), ai = function(n) {
2480
- var e = n && n._client && n._client._notifier && n._client._notifier.version;
2481
- if (!e) {
2482
- var t = n({ apiKey: Xn, releaseStage: "version-test", beforeSend: function() {
2483
- return !1;
2484
- } });
2485
- e = t.notifier && t.notifier.version, t = void 0;
2486
- }
2487
- return e && e.charAt(0) === "6";
2488
- }, Au = function(n) {
2489
- ku.every(function(e) {
2490
- return !function(t, r) {
2491
- if (t == null) throw new TypeError("Cannot convert undefined or null to object");
2492
- return Object.prototype.hasOwnProperty.call(Object(t), r);
2493
- }(window, e);
2494
- }) && fn(n, "https://d2wy8f7a9ursnm.cloudfront.net/v6/bugsnag.min.js", { isNonNativeSDK: "true", skipDatasetAttributes: !0 });
2495
- }, Eu = function() {
2496
- function n(e, t, r) {
2497
- F(this, n), this.pluginName = vn, this.sourceId = e, this.writeKey = t, this.onClientReady = r, this.initClientOnLibReadyInterval = void 0, this.init();
2498
- }
2499
- return N(n, [{ key: "init", value: function() {
2500
- var e = this;
2501
- if ((!window.RudderStackGlobals || !window.RudderStackGlobals[ir]) && !Xn.match(/{{.+}}/)) {
2502
- Au(this.pluginName);
2503
- var t = window[gn];
2504
- typeof t != "function" ? (this.initClientOnLibReadyInterval = setInterval(function() {
2505
- var r = window[gn];
2506
- typeof r == "function" && (ai(r) && e.initClient(), clearInterval(e.initClientOnLibReadyInterval));
2507
- }, 100), setTimeout(function() {
2508
- clearInterval(e.initClientOnLibReadyInterval);
2509
- }, cn)) : ai(t) && this.initClient();
2510
- }
2511
- } }, { key: "initClient", value: function() {
2512
- var e, t = window[gn];
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();
2514
- } }, { key: "onError", value: function() {
2515
- var e = this.sourceId;
2516
- return function(t) {
2517
- try {
2518
- return !!function(r) {
2519
- var o = _t(r, "stacktrace.0.file");
2520
- if (!o || typeof o != "string") return !1;
2521
- var s = o.substring(o.lastIndexOf("/") + 1);
2522
- return Iu.includes(s);
2523
- }(t) && (function(r, o) {
2524
- r.updateMetaData("source", { metadataSource: o });
2525
- var s = r.errorMessage;
2526
- r.context = s, s.includes("error in script loading") && (r.context = "Script load failures"), r.severity = "error";
2527
- }(t, e), !0);
2528
- } catch {
2529
- return !1;
2530
- }
2531
- };
2532
- } }, { key: "notify", value: function(e) {
2533
- this.client && this.client.notify(e);
2534
- } }, { key: "leaveBreadcrumb", value: function(e) {
2535
- this.client && this.client.leaveBreadcrumb(e);
2536
- } }]), n;
2537
- }(), ui = vn, ci = [vn], Cu = function() {
2538
- function n(e) {
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);
2540
- }
2541
- return N(n, [{ key: "init", value: function(e, t, r) {
2542
- e && t ? function(o) {
2543
- return _t(o, "statsCollection.errors.enabled") || !1;
2544
- }(e) === !0 ? (this.enable(), this.setProviderName(function(o) {
2545
- return _t(o, "statsCollection.errors.provider");
2546
- }(e)), this.initProvider(e, t, r)) : this.disable() : this.logger.error("[Analytics] ErrorReporting :: Invalid configuration or missing source id provided.");
2547
- } }, { key: "enable", value: function() {
2548
- this.isEnabled = !0;
2549
- } }, { key: "disable", value: function() {
2550
- this.isEnabled = !1;
2551
- } }, { key: "setProviderName", value: function(e) {
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;
2553
- } }, { key: "initProvider", value: function(e, t, r) {
2554
- this.providerName === vn && (this.provider = new Eu(t, r, this.onClientReady));
2555
- } }, { key: "onClientReady", value: function() {
2556
- this.exposeToGlobal();
2557
- } }, { key: "exposeToGlobal", value: function() {
2558
- window.RudderStackGlobals || (window.RudderStackGlobals = {}), window.RudderStackGlobals[ir] = this;
2559
- } }, { key: "leaveBreadcrumb", value: function(e) {
2560
- if (this.provider) try {
2561
- this.provider.leaveBreadcrumb(e);
2562
- } catch (t) {
2563
- this.logger.error("[Analytics] ErrorReporting :: leaveBreadcrumb method ".concat(t.toString()));
2564
- }
2565
- } }, { key: "notify", value: function(e) {
2566
- if (this.provider) try {
2567
- this.provider.notify(e);
2568
- } catch (t) {
2569
- this.logger.error("[Analytics] ErrorReporting :: notify method ".concat(t.toString()));
2570
- }
2571
- } }]), n;
2572
- }(), Ou = new (function() {
2573
- function n() {
2574
- F(this, n), this.retryAttempt = 3, this.queue = [], this.isTransformationProcessing = !1, this.authToken = null;
2575
- }
2576
- return N(n, [{ key: "init", value: function(e, t, r) {
2577
- this.dataPlaneUrl = St(t), this.writeKey = e, this.authToken = r || this.authToken, this.start();
2578
- } }, { key: "enqueue", value: function(e, t, r) {
2579
- this.queue.push({ event: e, destinationIds: t, cb: r });
2580
- } }, { key: "sendEventForTransformation", value: function(e, t) {
2581
- var r = this;
2582
- return new Promise(function(o, s) {
2583
- var u = "".concat(r.dataPlaneUrl, "/transform"), a = { "Content-Type": "application/json", Authorization: "Basic ".concat(btoa("".concat(r.writeKey, ":"))) };
2584
- try {
2585
- var c = new XMLHttpRequest();
2586
- c.open("POST", u, !0), Object.keys(a).forEach(function(h) {
2587
- return c.setRequestHeader(h, a[h]);
2588
- }), c.timeout = 1e4, c.onreadystatechange = function() {
2589
- if (c.readyState === 4) try {
2590
- var h = c.status, f = c.response;
2591
- switch (h) {
2592
- case 200:
2593
- return f = JSON.parse(f), void o({ status: h, transformedPayload: f.transformedBatch });
2594
- case 400:
2595
- var m = f ? "".concat(f) : "Invalid request payload";
2596
- return void o({ status: h, errorMessage: m });
2597
- case 404:
2598
- return void o({ status: h });
2599
- default:
2600
- if (t > 0) {
2601
- var g = t - 1;
2602
- setTimeout(function() {
2603
- return r.sendEventForTransformation(e, g).then(o).catch(s);
2604
- }, 500 * Math.pow(2, r.retryAttempt - g));
2605
- } else o({ status: h, errorMessage: "Retries exhausted" });
2606
- }
2607
- } catch (b) {
2608
- s(b);
2609
- }
2610
- };
2611
- var l = ye(e, !0);
2612
- l ? c.send(l) : D.error("Invalid payload: Event dropped");
2613
- } catch (h) {
2614
- s(h);
2615
- }
2616
- });
2617
- } }, { key: "checkQueueLengthAndProcess", value: function() {
2618
- this.queue.length > 0 && this.process();
2619
- } }, { key: "process", value: function() {
2620
- var e = this;
2621
- this.isTransformationProcessing = !0;
2622
- var t, r, o = this.queue.shift(), s = (t = o.event, r = o.destinationIds, { metadata: { "Custom-Authorization": this.authToken }, batch: [{ orderNo: Date.now(), destinationIds: r, event: t.message }] });
2623
- this.sendEventForTransformation(s, this.retryAttempt).then(function(u) {
2624
- e.isTransformationProcessing = !1, o.cb(u), e.checkQueueLengthAndProcess();
2625
- }).catch(function(u) {
2626
- M(typeof u == "string" ? u : u.message), e.isTransformationProcessing = !1, o.cb({ status: 0 }), e.checkQueueLengthAndProcess();
2627
- });
2628
- } }, { key: "start", value: function() {
2629
- var e = this;
2630
- setInterval(function() {
2631
- e.isTransformationProcessing || e.checkQueueLengthAndProcess();
2632
- }, 100);
2633
- } }, { key: "setAuthToken", value: function(e) {
2634
- this.authToken = e;
2635
- } }]), n;
2636
- }())(), _u = function() {
2637
- function n() {
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;
2639
- }
2640
- return N(n, [{ key: "initializeUser", value: function(e) {
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);
2642
- } }, { key: "setInitialPageProperties", value: function() {
2643
- if (this.storage.getInitialReferrer() == null && this.storage.getInitialReferringDomain() == null) {
2644
- var e = Fi();
2645
- this.storage.setInitialReferrer(e), this.storage.setInitialReferringDomain(Ni(e));
2646
- }
2647
- } }, { key: "allModulesInitialized", value: function() {
2648
- var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
2649
- return new Promise(function(r) {
2650
- e.clientIntegrations.every(function(o) {
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);
2654
- });
2655
- });
2656
- } }, { key: "executeReadyCallback", value: function() {
2657
- this.readyCallbacks.forEach(function(e) {
2658
- return e();
2659
- });
2660
- } }, { key: "integrationSDKLoaded", value: function(e, t) {
2661
- return window[e] && window[e][t] && window[e][t].prototype && window[e][t].prototype.constructor !== void 0;
2662
- } }, { key: "processResponse", value: function(e, t) {
2663
- var r = this;
2664
- try {
2665
- var o = t;
2666
- try {
2667
- if (typeof t == "string" && (o = JSON.parse(t)), !o || L(o) !== "object" || Array.isArray(o)) return void D.error("Invalid source configuration");
2668
- } catch (a) {
2669
- return void M(a);
2670
- }
2671
- try {
2672
- window.chrome && window.chrome.runtime && window.chrome.runtime.id || this.errorReporting.init(o.source.config, o.source.id, this.writeKey);
2673
- } catch (a) {
2674
- M(a);
2675
- }
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) {
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 } });
2678
- }, this), this.clientIntegrations = Un(this.loadOnlyIntegrations, this.clientIntegrations), Object.keys(this.cookieConsentOptions).length > 0) try {
2679
- var s = mu(this.cookieConsentOptions);
2680
- this.deniedConsentIds = s && s.getDeniedList(), this.clientIntegrations = this.clientIntegrations.filter(function(a) {
2681
- return !s || s && s.isEnabled(a.config);
2682
- });
2683
- } catch (a) {
2684
- M(a);
2685
- }
2686
- this.loaded = !0, this.options && typeof this.options.onLoaded == "function" && this.options.onLoaded(this), function(a) {
2687
- if (a.toBeProcessedArray.length > 0) for (; a.toBeProcessedArray.length > 0; ) {
2688
- var c = Me(a.toBeProcessedArray[0]);
2689
- a.toBeProcessedArray.shift();
2690
- var l = c[0];
2691
- c.shift(), a[l].apply(a, Me(c));
2692
- }
2693
- }(this), this.clientIntegrations = this.clientIntegrations.filter(function(a) {
2694
- return !!ze[a.name] || (D.error("[Analytics] Integration:: ".concat(a.name, " not available for initialization")), !1);
2695
- }), this.bufferDataPlaneEventsUntilReady && setTimeout(function() {
2696
- r.processBufferedCloudModeEvents();
2697
- }, this.dataPlaneEventsBufferTimeout), this.errorReporting.leaveBreadcrumb("Starting device-mode initialization"), this.clientIntegrations.forEach(function(a) {
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 });
2700
- var f = r, m = setInterval(function() {
2701
- if (f.integrationSDKLoaded(l, c)) {
2702
- var g, b = window[l];
2703
- clearInterval(m);
2704
- try {
2705
- var R = "[Analytics] processResponse :: trying to initialize integration name:: ".concat(l);
2706
- r.errorReporting.leaveBreadcrumb(R), (g = new b[c](a.config, f, a.destinationInfo)).init(), f.isInitialized(g).then(function() {
2707
- f.dynamicallyLoadedIntegrations[l] = b[c];
2708
- });
2709
- } catch (y) {
2710
- var d = "[Analytics] 'integration.init()' failed :: ".concat(l, " :: ").concat(y.message);
2711
- M(y, d), f.failedToBeLoadedIntegration.push(g);
2712
- }
2713
- }
2714
- }, 100);
2715
- setTimeout(function() {
2716
- clearInterval(m);
2717
- }, cn);
2718
- });
2719
- var u = this;
2720
- this.allModulesInitialized().then(function() {
2721
- if (!u.clientIntegrations || u.clientIntegrations.length === 0) return r.clientIntegrationsReady = !0, r.executeReadyCallback(), void (r.toBeProcessedByIntegrationArray = []);
2722
- u.replayEvents(u);
2723
- });
2724
- } catch (a) {
2725
- M(a);
2726
- }
2727
- } }, { key: "sendDataToDestination", value: function(e, t, r) {
2728
- try {
2729
- if (e[r]) {
2730
- var o = U(t);
2731
- e[r](o);
2732
- }
2733
- } catch (u) {
2734
- var s = "[sendToNative]:: [Destination: ".concat(e.name, "]:: ");
2735
- M(u, s);
2736
- }
2737
- } }, { key: "sendTransformedDataToDestination", value: function(e, t, r) {
2738
- var o = this;
2739
- try {
2740
- Wr(t.message.integrations);
2741
- var s = e.map(function(u) {
2742
- return u.destinationId;
2743
- });
2744
- this.transformationHandler.enqueue(t, s, function(u) {
2745
- var a = u.status, c = u.transformedPayload, l = u.errorMessage;
2746
- e.forEach(function(h) {
2747
- try {
2748
- switch (a) {
2749
- case 200:
2750
- var f = c.find(function(g) {
2751
- return g.id === h.destinationId;
2752
- }), m = [];
2753
- f == null || f.payload.forEach(function(g) {
2754
- if (g.status === "200") m.push(g);
2755
- else {
2756
- var b = '[DMT]:: Event transformation unsuccessful for destination "'.concat(h.name, '". Reason: '), R = "Unknown";
2757
- g.status === "410" && (R = "Transformation is not available");
2758
- var d = "Dropping the event", y = D.error;
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, "."));
2760
- }
2761
- }), m == null || m.forEach(function(g) {
2762
- ka(g.event) && o.sendDataToDestination(h, { message: g.event }, r);
2763
- });
2764
- break;
2765
- case 404:
2766
- D.warn("[DMT]:: Transformation server access is denied. The configuration data seems to be out of sync. Sending untransformed event to the destination."), o.sendDataToDestination(h, t, r);
2767
- break;
2768
- default:
2769
- h.propagateEventsUntransformedOnError === !0 ? (D.warn("[DMT]::[Destination: ".concat(h.name, "] :: Transformation request failed with status: ").concat(a, " ").concat(l, ". Sending untransformed event.")), o.sendDataToDestination(h, t, r)) : D.error("[DMT]::[Destination: ".concat(h.name, "] :: Transformation request failed with status: ").concat(a, " ").concat(l, ". Dropping the event."));
2770
- }
2771
- } catch (g) {
2772
- g instanceof Error && (g.message = "[DMT]::[Destination:".concat(h.name, "]:: ").concat(g.message)), M(g);
2773
- }
2774
- });
2775
- });
2776
- } catch (u) {
2777
- u instanceof Error && (u.message = "[DMT]:: ".concat(u.message)), M(u);
2778
- }
2779
- } }, { key: "processAndSendEventsToDeviceMode", value: function(e, t, r) {
2780
- var o = this, s = [], u = [];
2781
- e.forEach(function(a) {
2782
- try {
2783
- !o.IsEventBlackListed(t.message.event, a.name) && (a.shouldApplyDeviceModeTransformation ? u.push(a) : s.push(a));
2784
- } catch (c) {
2785
- M(c);
2786
- }
2787
- }), s.forEach(function(a) {
2788
- o.sendDataToDestination(a, t, r);
2789
- }), u.length > 0 && this.sendTransformedDataToDestination(u, t, r);
2790
- } }, { key: "queueEventForDataPlane", value: function(e, t) {
2791
- var r = t.message.integrations || { All: !0 };
2792
- t.message.integrations = function(o, s) {
2793
- var u = U(o), a = Object.keys(s).filter(function(c) {
2794
- return !(s[c] === !0 && u[c]);
2795
- }).reduce(function(c, l) {
2796
- return c[l] = s[l], c;
2797
- }, {});
2798
- return It(u, a);
2799
- }(this.integrationsData, r), this.eventRepository.enqueue(t, e);
2800
- } }, { key: "processBufferedCloudModeEvents", value: function() {
2801
- this.bufferDataPlaneEventsUntilReady && this.preProcessQueue.activateProcessor();
2802
- } }, { key: "replayEvents", value: function(e) {
2803
- var t, r, o, s = this;
2804
- this.errorReporting.leaveBreadcrumb("Started replaying buffered events"), e.clientIntegrationObjects = [], e.clientIntegrationObjects = e.successfullyLoadedIntegration;
2805
- try {
2806
- e.clientIntegrationObjects.every(function(u) {
2807
- return !u.isReady || u.isReady();
2808
- }) && (this.integrationsData = (t = this.integrationsData, r = e.clientIntegrationObjects, o = U(t), r.forEach(function(u) {
2809
- if (u.getDataForIntegrationsObject) try {
2810
- o = It(o, u.getDataForIntegrationsObject());
2811
- } catch (a) {
2812
- D.debug("[Analytics: prepareDataForIntegrationsObj]", a);
2813
- }
2814
- }), o), e.clientIntegrationsReady = !0, e.executeReadyCallback());
2815
- } catch (u) {
2816
- M(u, "Replay buffered cloud mode events");
2817
- }
2818
- this.processBufferedCloudModeEvents(), e.toBeProcessedByIntegrationArray.forEach(function(u) {
2819
- var a = u[0];
2820
- u.shift(), Object.keys(u[0].message.integrations).length > 0 && Gn(u[0].message.integrations);
2821
- var c = Un(u[0].message.integrations, e.clientIntegrationObjects);
2822
- s.processAndSendEventsToDeviceMode(c, u[0], a);
2823
- }), e.toBeProcessedByIntegrationArray = [];
2824
- } }, { key: "pause", value: function(e) {
2825
- return new Promise(function(t) {
2826
- setTimeout(t, e);
2827
- });
2828
- } }, { key: "isInitialized", value: function(e) {
2829
- var t = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
2830
- return new Promise(function(o) {
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);
2833
- });
2834
- });
2835
- } }, { key: "page", value: function(e, t, r, o, s) {
2836
- if (this.errorReporting.leaveBreadcrumb("Page event"), this.loaded) {
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();
2838
- var u = U(r), a = U(o), c = new vt().setType("page").build();
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);
2840
- } else this.toBeProcessedArray.push(["page"].concat(Array.prototype.slice.call(arguments)));
2841
- } }, { key: "track", value: function(e, t, r, o) {
2842
- if (this.errorReporting.leaveBreadcrumb("Track event"), this.loaded) {
2843
- typeof r == "function" && (o = r, r = null), typeof t == "function" && (o = t, r = null, t = null);
2844
- var s = U(t), u = U(r), a = new vt().setType("track").build();
2845
- e && a.setEventName(e), a.setProperty(s || {}), this.processAndSendDataToDestinations("track", a, u, o);
2846
- } else this.toBeProcessedArray.push(["track"].concat(Array.prototype.slice.call(arguments)));
2847
- } }, { key: "identify", value: function(e, t, r, o) {
2848
- if (this.errorReporting.leaveBreadcrumb("Identify event"), this.loaded) {
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);
2851
- s && this.userId && s !== this.userId && this.reset(), this.userId = s, this.storage.setUserId(this.userId);
2852
- var u = U(t), a = U(r);
2853
- if (u) {
2854
- for (var c in u) this.userTraits[c] = u[c];
2855
- this.storage.setUserTraits(this.userTraits);
2856
- }
2857
- var l = new vt().setType("identify").build();
2858
- this.processAndSendDataToDestinations("identify", l, a, o);
2859
- } else this.toBeProcessedArray.push(["identify"].concat(Array.prototype.slice.call(arguments)));
2860
- } }, { key: "alias", value: function(e, t, r, o) {
2861
- if (this.errorReporting.leaveBreadcrumb("Alias event"), this.loaded) {
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);
2863
- var s = new vt().setType("alias").build();
2864
- s.message.previousId = sn(t) || (this.userId ? this.userId : this.getAnonymousId()), s.message.userId = sn(e);
2865
- var u = U(r);
2866
- this.processAndSendDataToDestinations("alias", s, u, o);
2867
- } else this.toBeProcessedArray.push(["alias"].concat(Array.prototype.slice.call(arguments)));
2868
- } }, { key: "group", value: function(e, t, r, o) {
2869
- if (this.errorReporting.leaveBreadcrumb("Group event"), this.loaded) {
2870
- if (arguments.length !== 0) {
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);
2872
- var s = U(t), u = U(r), a = new vt().setType("group").build();
2873
- if (s) for (var c in s) this.groupTraits[c] = s[c];
2874
- else this.groupTraits = {};
2875
- this.storage.setGroupTraits(this.groupTraits), this.processAndSendDataToDestinations("group", a, u, o);
2876
- }
2877
- } else this.toBeProcessedArray.push(["group"].concat(Array.prototype.slice.call(arguments)));
2878
- } }, { key: "IsEventBlackListed", value: function(e, t) {
2879
- if (!e || typeof e != "string") return !1;
2880
- var r = mi[t], o = this.clientIntegrations.find(function(l) {
2881
- return l.name === r;
2882
- }).config, s = o.blacklistedEvents, u = o.whitelistedEvents, a = o.eventFilteringOption;
2883
- if (!a) return !1;
2884
- var c = e.trim().toUpperCase();
2885
- switch (a) {
2886
- case "disable":
2887
- default:
2888
- return !1;
2889
- case "blacklistedEvents":
2890
- return !!Array.isArray(s) && s.some(function(l) {
2891
- return l.eventName.trim().toUpperCase() === c;
2892
- });
2893
- case "whitelistedEvents":
2894
- return !Array.isArray(u) || !u.some(function(l) {
2895
- return l.eventName.trim().toUpperCase() === c;
2896
- });
2897
- }
2898
- } }, { key: "shouldUseGlobalIntegrationsConfigInEvents", value: function() {
2899
- return this.useGlobalIntegrationsConfigInEvents && this.loadOnlyIntegrations && Object.keys(this.loadOnlyIntegrations).length > 0;
2900
- } }, { key: "processAndSendDataToDestinations", value: function(e, t, r, o) {
2901
- try {
2902
- this.anonymousId || this.setAnonymousId(), this.errorReporting.leaveBreadcrumb("Started sending data to destinations"), t.message.context.traits = E({}, this.userTraits), t.message.anonymousId = this.anonymousId, t.message.userId = t.message.userId ? t.message.userId : this.userId, e == "group" && (this.groupId && (t.message.groupId = this.groupId), this.groupTraits && (t.message.traits = E({}, this.groupTraits)));
2903
- try {
2904
- var s = this.uSession.getSessionInfo(), u = s.sessionId, a = s.sessionStart;
2905
- t.message.context.sessionId = u, a && (t.message.context.sessionStart = !0);
2906
- } catch (g) {
2907
- M(g);
2908
- }
2909
- f = this.cookieConsentOptions, m = !1, Object.keys(f).forEach(function(g) {
2910
- Oa.includes(g) && typeof f[g].enabled == "boolean" && f[g].enabled === !0 && (m = !0);
2911
- }), m && (t.message.context.consentManagement = { deniedConsentIds: this.deniedConsentIds || [] }), this.processOptionsParam(t, r), function(g, b) {
2912
- var R = g.properties, d = g.traits, y = g.context;
2913
- R && Object.keys(R).forEach(function(p) {
2914
- Fn.indexOf(p.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in properties--> ".concat(p, " with ").concat(b, " call"));
2915
- }), d && Object.keys(d).forEach(function(p) {
2916
- Fn.indexOf(p.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in traits--> ".concat(p, " with ").concat(b, " call"));
2917
- });
2918
- var k = y.traits;
2919
- k && Object.keys(k).forEach(function(p) {
2920
- Fn.indexOf(p.toLowerCase()) >= 0 && D.error("Warning! : Reserved keyword used in traits --> ".concat(p, " with ").concat(b, " call"));
2921
- });
2922
- }(t.message, e);
2923
- var c = t.message.integrations;
2924
- c ? Gn(c) : c = this.shouldUseGlobalIntegrationsConfigInEvents() ? this.loadOnlyIntegrations : Sa, t.message.integrations = c;
2925
- try {
2926
- t.message.context["ua-ch"] = this.uach;
2927
- } catch (g) {
2928
- M(g);
2929
- }
2930
- try {
2931
- if (this.clientIntegrationObjects) {
2932
- var l = Un(c, this.clientIntegrationObjects);
2933
- this.processAndSendEventsToDeviceMode(l, t, e);
2934
- } else this.toBeProcessedByIntegrationArray.push([e, t]);
2935
- } catch (g) {
2936
- M(g, "processAndSendEventsToDeviceMode::");
2937
- }
2938
- var h = U(t);
2939
- Wr(h.message.integrations), !this.bufferDataPlaneEventsUntilReady || this.clientIntegrationObjects ? this.queueEventForDataPlane(e, h) : this.preProcessQueue.enqueue(e, h), o && typeof o == "function" && o(h);
2940
- } catch (g) {
2941
- M(g);
2942
- }
2943
- var f, m;
2944
- } }, { key: "utm", value: function(e) {
2945
- var t = {};
2946
- try {
2947
- var r = new URL(e), o = "utm_";
2948
- r.searchParams.forEach(function(s, u) {
2949
- if (u.startsWith(o)) {
2950
- var a = u.substring(4);
2951
- a === "campaign" && (a = "name"), t[a] = s;
2952
- }
2953
- });
2954
- } catch {
2955
- }
2956
- return t;
2957
- } }, { key: "addCampaignInfo", value: function(e) {
2958
- var t = e.message.context;
2959
- t && L(t) === "object" && (e.message.context.campaign = this.utm(window.location.href));
2960
- } }, { key: "processOptionsParam", value: function(e, t) {
2961
- var r = e.message, o = r.type, s = r.properties;
2962
- this.addCampaignInfo(e), e.message.context.page = this.getContextPageProperties(o === "page" ? s : void 0), function(u) {
2963
- var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2964
- L(a) === "object" && a !== null && Object.keys(a).forEach(function(c) {
2965
- si.includes(c) && (u[c] = a[c]);
2966
- });
2967
- }(e.message, t), e.message.context = function(u) {
2968
- var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = u.context;
2969
- return L(a) !== "object" || a === null || Object.keys(a).forEach(function(l) {
2970
- if (!si.includes(l) && !$r.includes(l)) if (l !== "context") c = It(c, i({}, l, a[l]));
2971
- else if (L(a[l]) === "object" && a[l] !== null) {
2972
- var h = {};
2973
- Object.keys(a[l]).forEach(function(f) {
2974
- $r.includes(f) || (h[f] = a[l][f]);
2975
- }), c = It(c, E({}, h));
2976
- } else D.error("[Analytics: processOptionsParam] context passed in options ".concat(l, " is not object."));
2977
- }), c;
2978
- }(e.message, t);
2979
- } }, { key: "getPageProperties", value: function(e, t) {
2980
- var r = Jr(), o = t && t.page || {};
2981
- for (var s in r) e[s] === void 0 && (e[s] = o[s] || r[s]);
2982
- return e;
2983
- } }, { key: "getContextPageProperties", value: function(e) {
2984
- var t = Jr(), r = {};
2985
- for (var o in t) r[o] = e && e[o] ? e[o] : t[o];
2986
- return r;
2987
- } }, { key: "reset", value: function(e) {
2988
- this.errorReporting.leaveBreadcrumb("reset API :: flag: ".concat(e)), this.loaded ? (e && (this.anonymousId = ""), this.userId = "", this.userTraits = {}, this.groupId = "", this.groupTraits = {}, this.uSession.reset(), this.storage.clear(e)) : this.toBeProcessedArray.push(["reset", e]);
2989
- } }, { key: "getAnonymousId", value: function(e) {
2990
- return this.anonymousId = this.storage.getAnonymousId(e), this.anonymousId || this.setAnonymousId(), this.anonymousId;
2991
- } }, { key: "getUserId", value: function() {
2992
- return this.userId;
2993
- } }, { key: "getSessionId", value: function() {
2994
- return this.uSession.getSessionId();
2995
- } }, { key: "getUserTraits", value: function() {
2996
- return this.userTraits;
2997
- } }, { key: "getGroupId", value: function() {
2998
- return this.groupId;
2999
- } }, { key: "getGroupTraits", value: function() {
3000
- return this.groupTraits;
3001
- } }, { key: "setAnonymousId", value: function(e, t) {
3002
- var r = t ? du(t) : null, o = r ? r.rs_amp_id : null;
3003
- this.anonymousId = e || o || Mi(), this.storage.setAnonymousId(this.anonymousId);
3004
- } }, { key: "isValidWriteKey", value: function(e) {
3005
- return e && typeof e == "string" && e.trim().length > 0;
3006
- } }, { key: "isValidServerUrl", value: function(e) {
3007
- return e && typeof e == "string" && e.trim().length > 0;
3008
- } }, { key: "isDatasetAvailable", value: function() {
3009
- var e = document.createElement("div");
3010
- return e.setAttribute("data-a-b", "c"), !!e.dataset && e.dataset.aB === "c";
3011
- } }, { key: "loadAfterPolyfill", value: function(e, t, r) {
3012
- var o = this;
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");
3014
- if (!this.storage || Object.keys(this.storage).length === 0) throw Error("Cannot proceed as no storage is available");
3015
- r && r.cookieConsentManager && (this.cookieConsentOptions = r.cookieConsentManager), this.writeKey = e, this.serverUrl = t, this.options = r;
3016
- var s = {};
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) {
3018
- var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
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) {
3020
- l(f);
3021
- });
3022
- }(function(l) {
3023
- o.uach = l;
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) {
3025
- var u = {};
3026
- Object.keys(this.methodToCallbackMapping).forEach(function(l) {
3027
- o.methodToCallbackMapping.hasOwnProperty(l) && r.clientSuppliedCallbacks[o.methodToCallbackMapping[l]] && (u[l] = r.clientSuppliedCallbacks[o.methodToCallbackMapping[l]]);
3028
- }), We(this.clientSuppliedCallbacks, u), this.registerCallbacks(!0);
3029
- }
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'));
3031
- else {
3032
- var a = r.getSourceConfig();
3033
- a instanceof Promise ? a.then(function(l) {
3034
- return o.processResponse(200, l);
3035
- }).catch(M) : this.processResponse(200, a);
3036
- }
3037
- else {
3038
- var c = function(l, h) {
3039
- var f = Nn, m = [];
3040
- return l && m.push("writeKey=".concat(l)), h && m.push("lockIntegrationsVersion=".concat(h)), m.length > 0 && (f = (f = Nn.concat(Nn.includes("?") ? "&" : "?")).concat(m.join("&"))), f;
3041
- }(e, this.lockIntegrationsVersion);
3042
- r && r.configUrl && (c = function(l, h) {
3043
- var f = l;
3044
- f.indexOf("sourceConfig") === -1 && (f = "".concat(St(f), "/sourceConfig/")), f = f.slice(-1) === "/" ? f : "".concat(f, "/");
3045
- var m = h.split("?")[1], g = f.split("?");
3046
- return g.length > 1 && g[1] !== m ? "".concat(g[0], "?").concat(m) : "".concat(f, "?").concat(m);
3047
- }(r.configUrl, c));
3048
- try {
3049
- (function(l, h, f, m) {
3050
- var g = m.bind(l), b = new XMLHttpRequest();
3051
- b.open("GET", h, !0), b.setRequestHeader("Authorization", "Basic ".concat(btoa("".concat(f, ":")))), b.onload = function() {
3052
- var R = b.status, d = b.responseText;
3053
- R === 200 ? g(200, d) : (M(new Error("".concat(rr, " ").concat(R, " for url: ").concat(h))), g(R));
3054
- }, b.send();
3055
- })(this, c, e, this.processResponse);
3056
- } catch (l) {
3057
- M(l);
3058
- }
3059
- }
3060
- } }, { key: "arePolyfillsRequired", value: function(e) {
3061
- return (!e || typeof e.polyfillIfRequired != "boolean" || e.polyfillIfRequired) && (!String.prototype.endsWith || !String.prototype.startsWith || !String.prototype.includes || !Array.prototype.find || !Array.prototype.includes || typeof window.URL != "function" || typeof Promise > "u" || !Object.entries || !Object.values || !String.prototype.replaceAll || !this.isDatasetAvailable() || typeof TextDecoder != "function" || typeof TextEncoder != "function");
3062
- } }, { key: "load", value: function(e, t, r) {
3063
- if (!this.loaded) {
3064
- var o = U(r);
3065
- if (this.arePolyfillsRequired(o) && Vr) {
3066
- var s = "polyfill";
3067
- fn(s, Vr, { skipDatasetAttributes: !0 });
3068
- var u = this, a = setInterval(function() {
3069
- !window.hasOwnProperty(s) && document.getElementById(s) === null || typeof Promise > "u" || (clearInterval(a), u.loadAfterPolyfill(e, t, o));
3070
- }, 100);
3071
- setTimeout(function() {
3072
- clearInterval(a);
3073
- }, cn);
3074
- } else this.loadAfterPolyfill(e, t, o);
3075
- }
3076
- } }, { key: "ready", value: function(e) {
3077
- this.loaded ? typeof e != "function" ? D.error("ready callback is not a function") : this.clientIntegrationsReady ? e() : this.readyCallbacks.push(e) : this.toBeProcessedArray.push(["ready", e]);
3078
- } }, { key: "initializeCallbacks", value: function() {
3079
- var e = this;
3080
- Object.keys(this.methodToCallbackMapping).forEach(function(t) {
3081
- e.methodToCallbackMapping.hasOwnProperty(t) && e.on(t, function() {
3082
- });
3083
- });
3084
- } }, { key: "registerCallbacks", value: function(e) {
3085
- var t = this;
3086
- e || Object.keys(this.methodToCallbackMapping).forEach(function(r) {
3087
- t.methodToCallbackMapping.hasOwnProperty(r) && window.rudderanalytics && typeof window.rudderanalytics[t.methodToCallbackMapping[r]] == "function" && (t.clientSuppliedCallbacks[r] = window.rudderanalytics[t.methodToCallbackMapping[r]]);
3088
- }), Object.keys(this.clientSuppliedCallbacks).forEach(function(r) {
3089
- t.clientSuppliedCallbacks.hasOwnProperty(r) && t.on(r, t.clientSuppliedCallbacks[r]);
3090
- });
3091
- } }, { key: "sendSampleRequest", value: function() {
3092
- fn("ad-block", "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js", { isNonNativeSDK: !0 });
3093
- } }, { key: "startSession", value: function(e) {
3094
- this.uSession.start(e);
3095
- } }, { key: "endSession", value: function() {
3096
- this.uSession.end();
3097
- } }, { key: "setAuthToken", value: function(e) {
3098
- typeof e == "string" ? (this.storage.setAuthToken(e), this.transformationHandler.setAuthToken(e)) : D.error("Provided input should be in string format");
3099
- } }]), n;
3100
- }(), P = new _u();
3101
- Ao(P), window.addEventListener("error", function(n) {
3102
- M(n, void 0, P);
3103
- }, !0), P.initializeCallbacks(), P.registerCallbacks(!1);
3104
- var Et, Ki = "load", Ke = window.rudderanalytics, Qi = Array.isArray(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);
3108
- break;
3109
- }
3110
- ut += 1;
3111
- }
3112
- (function(n) {
3113
- var e = "ajs_trait_", t = "ajs_prop_";
3114
- function r(s, u) {
3115
- var a = {};
3116
- return Object.keys(s).forEach(function(c) {
3117
- c.startsWith(u) && (a[c.substr(u.length)] = s[c]);
3118
- }), a;
3119
- }
3120
- var o = function(s) {
3121
- var u = {};
3122
- try {
3123
- new URL(s).searchParams.forEach(function(a, c) {
3124
- u[c] = a;
3125
- });
3126
- } catch {
3127
- }
3128
- return u;
3129
- }(n);
3130
- o.ajs_aid && P.toBeProcessedArray.push(["setAnonymousId", o.ajs_aid]), o.ajs_uid && P.toBeProcessedArray.push(["identify", o.ajs_uid, r(o, e)]), o.ajs_event && P.toBeProcessedArray.push(["track", o.ajs_event, r(o, t)]);
3131
- })(window.location.href), Qi && Ke.forEach(function(n) {
3132
- return P.toBeProcessedArray.push(n);
3133
- }), Et && Et.length > 0 && (Et.shift(), P[Ki].apply(P, Me(Et)));
3134
- P.ready.bind(P);
3135
- P.identify.bind(P);
3136
- P.page.bind(P);
3137
- var Su = P.track.bind(P);
3138
- P.alias.bind(P);
3139
- P.group.bind(P);
3140
- P.reset.bind(P);
3141
- var wu = P.load.bind(P);
3142
- P.initialized = !0;
3143
- P.getUserId.bind(P);
3144
- P.getSessionId.bind(P);
3145
- P.getUserTraits.bind(P);
3146
- P.getAnonymousId.bind(P);
3147
- P.setAnonymousId.bind(P);
3148
- P.getGroupId.bind(P);
3149
- P.getGroupTraits.bind(P);
3150
- P.startSession.bind(P);
3151
- P.endSession.bind(P);
3152
- P.setAuthToken.bind(P);
3153
- const Tu = {
3154
- STAGING: "2R6llJi7YSuOeJToPXGlQfizt18",
3155
- SANDBOX: "2R6mEpjiTJBErRIn724pt2MWyLA",
3156
- LOCAL: "2QHmFAx84bL4Up6CDHRw0XkKJKC",
3157
- LIVE: "2R6mT9xSJCcbvr6JkiEu7vbrUSW"
3158
- }, Ru = "https://revolugohxxwg.dataplane.rudderstack.com", Pu = window.RevolugoElements.config.apiEnvironment, Du = Tu[Pu];
3159
- try {
3160
- wu(Du, Ru);
3161
- } catch (n) {
3162
- console.error(n);
3163
- }
3164
- const zi = {
3165
- startDate: {
3166
- type: String
3167
- },
3168
- endDate: {
3169
- type: String
3170
- },
3171
- roomCount: {
3172
- type: Number
3173
- },
3174
- adultCount: {
3175
- type: Number
3176
- },
3177
- location: {
3178
- type: Object
3179
- }
3180
- }, xu = fi.extend({
3181
- name: "ContactForm",
3182
- components: {
3183
- BSearchLocationInput: Ji,
3184
- BPhoneInput: io
3185
- },
3186
- mixins: [Jn("components/RevolugoElements/ContactForm")],
3187
- props: zi,
3188
- data() {
3189
- return {
3190
- isFormValid: !1,
3191
- isSubmitting: !1,
3192
- isSuccess: !1,
3193
- errorCode: "",
3194
- menuStartDate: !1,
3195
- menuEndDate: !1,
3196
- formData: {
3197
- email: "",
3198
- phoneData: {
3199
- phoneNumber: "",
3200
- phoneCountry: "FR",
3201
- phonePrefix: "+33"
3202
- },
3203
- startDate: this.startDate,
3204
- endDate: this.endDate,
3205
- adultCount: this.adultCount,
3206
- roomCount: this.roomCount,
3207
- location: this.location,
3208
- specificRequest: ""
3209
- },
3210
- rules: {
3211
- email: [
3212
- (n) => Ye.required(n) || this.$t("ContactForm.errors.requiredEmail"),
3213
- (n) => Ye.email(n) || this.$t("ContactForm.errors.invalidEmail")
3214
- ],
3215
- adultCount: [
3216
- (n) => Ye.minCount(n, 1) || this.$t("ContactForm.errors.minAdultCount"),
3217
- (n) => Ye.maxCount(n, 400) || this.$t("ContactForm.errors.maxAdultCount")
3218
- ],
3219
- roomCount: [
3220
- (n) => Ye.minCount(n, 1) || this.$t("ContactForm.errors.minRoomCount"),
3221
- (n) => Ye.maxCount(n, 100) || this.$t("ContactForm.errors.maxRoomCount")
3222
- ]
3223
- }
3224
- };
3225
- },
3226
- methods: {
3227
- onSubmit() {
3228
- var e;
3229
- this.isSubmitting = !0;
3230
- let n = "";
3231
- (e = this.config) != null && e.eventMetadata && (n = this.config.eventMetadata.name, this.config.eventMetadata.slug && (n += ` ${this.config.eventMetadata.slug}`)), Su(
3232
- "accommodation-request",
3233
- {
3234
- data: {
3235
- ...this.formData,
3236
- event: n
3237
- }
3238
- },
3239
- () => {
3240
- this.isSuccess = !0, this.isSubmitting = !1, this.$emit("accommodationSuccess");
3241
- }
3242
- );
3243
- }
3244
- }
3245
- });
3246
- var Lu = function() {
3247
- var e = this, t = e._self._c;
3248
- return e._self._setupProxy, t("div", [t(ao, { model: { value: e.isFormValid, callback: function(r) {
3249
- e.isFormValid = r;
3250
- }, expression: "isFormValid" } }, [t(ft, { attrs: { dense: "", label: e.$t("ContactForm.email"), outlined: "", required: "", rules: e.rules.email }, scopedSlots: e._u([{ key: "message", fn: function({ message: r }) {
3251
- return [e._v(" " + e._s(e.$t(r)) + " ")];
3252
- } }]), model: { value: e.formData.email, callback: function(r) {
3253
- e.$set(e.formData, "email", r);
3254
- }, expression: "formData.email" } }), t("BPhoneInput", { staticClass: "mt-0", model: { value: e.formData.phoneData, callback: function(r) {
3255
- e.$set(e.formData, "phoneData", r);
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 }) {
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) {
3258
- e.$set(e.formData, "startDate", s);
3259
- }, expression: "formData.startDate" } }, "VTextField", o, !1), r))];
3260
- } }]), model: { value: e.menuStartDate, callback: function(r) {
3261
- e.menuStartDate = r;
3262
- }, expression: "menuStartDate" } }, [t(lr, { on: { input: function(r) {
3263
- e.menuStartDate = !1;
3264
- } }, model: { value: e.formData.startDate, callback: function(r) {
3265
- e.$set(e.formData, "startDate", r);
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 }) {
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) {
3268
- e.$set(e.formData, "endDate", s);
3269
- }, expression: "formData.endDate" } }, "VTextField", o, !1), r))];
3270
- } }]), model: { value: e.menuEndDate, callback: function(r) {
3271
- e.menuEndDate = r;
3272
- }, expression: "menuEndDate" } }, [t(lr, { on: { input: function(r) {
3273
- e.menuEndDate = !1;
3274
- } }, model: { value: e.formData.endDate, callback: function(r) {
3275
- e.$set(e.formData, "endDate", r);
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) {
3277
- e.$set(e.formData, "adultCount", r);
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) {
3279
- e.$set(e.formData, "roomCount", r);
3280
- }, expression: "formData.roomCount" } })], 1)], 1), t("BSearchLocationInput", { attrs: { outlined: "", "with-details": "" }, model: { value: e.formData.location, callback: function(r) {
3281
- e.$set(e.formData, "location", r);
3282
- }, expression: "formData.location" } }), t(oo, { attrs: { dense: "", label: e.$t("ContactForm.specificRequest"), outlined: "" }, model: { value: e.formData.specificRequest, callback: function(r) {
3283
- e.$set(e.formData, "specificRequest", r);
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) {
3285
- return e.onSubmit();
3286
- } } }, [e._v(" " + e._s(e.$t("ContactForm.submit")) + " ")])], 1)], 1)], 1);
3287
- }, Mu = [], Bu = /* @__PURE__ */ Zn(
3288
- xu,
3289
- Lu,
3290
- Mu,
3291
- !1,
3292
- null,
3293
- null
3294
- );
3295
- const Fu = Bu.exports, Nu = {
3296
- ...zi,
3297
- boilerplateSkeleton: {
3298
- type: Boolean
3299
- },
3300
- itemCount: {
3301
- type: Number,
3302
- default: 3
3303
- },
3304
- type: {
3305
- type: String
3306
- },
3307
- checkInDate: {
3308
- type: String
3309
- },
3310
- checkOutDate: {
3311
- type: String
3312
- }
3313
- }, Gu = fi.extend({
3314
- name: "HotelOfferListEmpty",
3315
- components: {
3316
- BErrorOverlay: so,
3317
- HotelOfferItemLayout: li,
3318
- ContactForm: Fu
3319
- },
3320
- mixins: [Jn("components/RevolugoElements/HotelOfferListEmpty"), hi],
3321
- props: Nu,
3322
- data() {
3323
- return {
3324
- typeData: this.type
3325
- };
3326
- },
3327
- computed: {
3328
- wording() {
3329
- let n = {
3330
- title: "",
3331
- description: ""
3332
- };
3333
- if (this.typeData)
3334
- switch (this.typeData) {
3335
- case "internalError": {
3336
- n = {
3337
- title: this.$t("HotelOfferListEmpty.internalError.title"),
3338
- description: this.$t(
3339
- "HotelOfferListEmpty.internalError.description"
3340
- )
3341
- };
3342
- break;
3343
- }
3344
- case "missingHotelOfferRequest": {
3345
- n = {
3346
- title: this.$t(
3347
- "HotelOfferListEmpty.missingHotelOfferRequest.title"
3348
- ),
3349
- description: this.$t(
3350
- "HotelOfferListEmpty.missingHotelOfferRequest.description"
3351
- )
3352
- };
3353
- break;
3354
- }
3355
- case "accommodationSuccess": {
3356
- n = {
3357
- title: this.$t("HotelOfferListEmpty.accommodationSuccess.title"),
3358
- description: this.$t(
3359
- "HotelOfferListEmpty.accommodationSuccess.description"
3360
- )
3361
- };
3362
- break;
3363
- }
3364
- case "noResultsFiltered": {
3365
- n = {
3366
- title: this.$t("HotelOfferListEmpty.noResults.title"),
3367
- description: this.$t(
3368
- "HotelOfferListEmpty.noResultsFiltered.description"
3369
- )
3370
- };
3371
- break;
3372
- }
3373
- default: {
3374
- n = {
3375
- title: this.$t("HotelOfferListEmpty.noResults.title"),
3376
- description: this.$t("HotelOfferListEmpty.noResults.description")
3377
- };
3378
- break;
3379
- }
3380
- }
3381
- return n;
3382
- }
3383
- },
3384
- watch: {
3385
- type: {
3386
- immediate: !1,
3387
- handler() {
3388
- this.typeData = this.type;
3389
- }
3390
- }
3391
- },
3392
- methods: {
3393
- onResetFilters() {
3394
- this.$emit("reset-filters");
3395
- }
3396
- }
3397
- });
3398
- var Uu = function() {
3399
- var e = this, t = e._self._c;
3400
- return e._self._setupProxy, t("div", { staticClass: "position-relative" }, [e._l(6, function(r) {
3401
- return [t("HotelOfferItemLayout", { key: r, class: {
3402
- "mt-0": r === 1,
3403
- "mb-0": r === e.itemCount,
3404
- "mb-2": e.$breakpointService.xs
3405
- }, attrs: { boilerplate: e.boilerplateSkeleton } }), e.$breakpointService.xs ? e._e() : t(Kn, { key: r + "-divider" })];
3406
- }), e.typeData ? t("BErrorOverlay", { scopedSlots: e._u([{ key: "title", fn: function() {
3407
- return [e._v(" " + e._s(e.wording.title) + " ")];
3408
- }, proxy: !0 }, { key: "description", fn: function() {
3409
- return [t("div", [t("p", [e._v(e._s(e.wording.description))]), e.typeData !== "noResultsFiltered" && e.typeData !== "accommodationSuccess" ? t("ContactForm", { attrs: { "adult-count": e.adultCount, "end-date": e.checkOutDate, location: e.location, "room-count": e.roomCount, "start-date": e.checkInDate }, on: { accommodationSuccess: function(r) {
3410
- e.typeData = "accommodationSuccess";
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)];
3412
- }, proxy: !0 }], null, !1, 1236007322) }) : e._e()], 2);
3413
- }, ju = [], Hu = /* @__PURE__ */ Zn(
3414
- Gu,
3415
- Uu,
3416
- ju,
3417
- !1,
3418
- null,
3419
- null
3420
- );
3421
- const qu = Hu.exports, Ku = po(
3422
- Yi,
3423
- co({
3424
- fallbackValue: {},
3425
- propsName: "features"
3426
- })
3427
- ).extend({
3428
- name: "HotelOfferList",
3429
- components: {
3430
- BHotelOffersFilterBar: Zi,
3431
- BHotelSearchBar: fo,
3432
- HotelOfferItem: eo,
3433
- HotelOfferItemLayout: li,
3434
- HotelOfferListEmpty: qu,
3435
- HotelRoomOfferList: lo,
3436
- TermsAndConditions: go
3437
- },
3438
- mixins: [
3439
- hi,
3440
- Jn("components/RevolugoElements/HotelOfferList"),
3441
- to,
3442
- ho(
3443
- ["bookingApiClient", "config.currency", "config.lang"],
3444
- "retrieveHotelOffers"
3445
- )
3446
- ],
3447
- store: $i,
3448
- props: vo,
3449
- computed: {
3450
- areFiltersActive: Ee("hotelOffers/areFiltersActive"),
3451
- hasErrorHotelOffers: Ee("hotelOffers/hasError"),
3452
- hotelOffersCurrency: Ee(
3453
- "hotelOffers/hotelOffersCurrency"
3454
- ),
3455
- isPollingHotelOffers: Ee("hotelOffers/isPolling"),
3456
- startingAfter: Ee("hotelOffers/startingAfter"),
3457
- filters: Ee("hotelOffers/filters"),
3458
- hotelOffers: Ee("hotelOffers/hotelOffers"),
3459
- hotelOfferRequest: Ee("hotelOfferRequest"),
3460
- displayFiltersMenu() {
3461
- return !this.isHotelOfferRequestMissing && !!this.parsedFeatures.FiltersBar;
3462
- },
3463
- isTopPicksSelected() {
3464
- var n;
3465
- return ((n = this.filters.sort_by) == null ? void 0 : n.value) === Vi.TopPicks;
3466
- },
3467
- showNoResultsMessage() {
3468
- return !!this.hotelOfferRequest.id && !this.isPollingHotelOffers && Array.isArray(this.hotelOffers) && this.hotelOffers.length === 0;
3469
- },
3470
- showErrorMessage() {
3471
- return this.hotelOfferRequest.hasError || this.hasErrorHotelOffers;
3472
- },
3473
- showSkeleton() {
3474
- var n;
3475
- return !this.hotelOfferRequest.id || this.hotelOfferRequest.isFetching || this.isPollingHotelOffers && (!this.hotelOffers || ((n = this.hotelOffers) == null ? void 0 : n.length) === 0);
3476
- }
3477
- },
3478
- watch: {
3479
- filters: {
3480
- deep: !0,
3481
- async handler(n, e) {
3482
- ro(n, e) || await this.retrieveHotelOffers();
3483
- }
3484
- },
3485
- "hotelOfferRequest.id": {
3486
- immediate: !0,
3487
- handler() {
3488
- this.$nextTick(async () => {
3489
- await this.retrieveHotelOffers();
3490
- });
3491
- }
3492
- },
3493
- limit: {
3494
- immediate: !0,
3495
- handler() {
3496
- this.$nextTick(async () => {
3497
- await this.retrieveHotelOffers();
3498
- });
3499
- }
3500
- }
3501
- },
3502
- methods: {
3503
- onHotelOfferItemMouseover(n) {
3504
- this.$emit("hotel-offer-item-mouseover", n);
3505
- },
3506
- onHotelOfferItemMouseleave() {
3507
- this.$emit("hotel-offer-item-mouseleave");
3508
- },
3509
- async onResetFilters() {
3510
- await lt("hotelOffers/resetFilters");
3511
- },
3512
- async retrieveHotelOffers() {
3513
- this.$refs["hotel-offer-list-container"].scrollTo({
3514
- top: 0,
3515
- behavior: "smooth"
3516
- }), await lt("hotelRoomOfferRequest/resetHotelRoomOfferRequests").then(() => lt("hotelRoomOffers/resetHotelRoomOffers")).then(
3517
- () => lt("hotelOffers/retrieveHotelOffers", {
3518
- hotelOfferRequestId: this.hotelOfferRequest.id,
3519
- limit: this.limit
3520
- })
3521
- );
3522
- },
3523
- async onSeeMoreClick() {
3524
- await lt("hotelOffers/retrieveHotelOffers", {
3525
- hotelOfferRequestId: this.hotelOfferRequest.id,
3526
- limit: this.limit,
3527
- startingAfter: this.startingAfter
3528
- });
3529
- }
3530
- }
3531
- });
3532
- var Qu = function() {
3533
- var e = this, t = e._self._c;
3534
- return e._self._setupProxy, t(uo, { ref: "hotel-offer-list-container", staticClass: "pa-0 white", staticStyle: { "min-height": "500px" }, style: {
3535
- height: e.parsedHeight,
3536
- maxHeight: e.maxHeight,
3537
- overflowY: "auto",
3538
- overflowX: "hidden"
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) {
3542
- var s;
3543
- return [t("HotelOfferItem", { key: r.id, staticClass: "pr-3", class: {
3544
- "mt-0": o === 0,
3545
- "mb-0": o === e.hotelOffers.length - 1
3546
- }, attrs: { features: e.parsedFeatures.HotelOfferItem, "hotel-offer": r, "single-offer": e.hotelRoomOffersLimit === 1 }, nativeOn: { mouseleave: function(u) {
3547
- return e.onHotelOfferItemMouseleave.apply(null, arguments);
3548
- }, mouseover: function(u) {
3549
- return e.onHotelOfferItemMouseover(r);
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" })];
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);
3552
- }, zu = [], Vu = /* @__PURE__ */ Zn(
3553
- Ku,
3554
- Qu,
3555
- zu,
3556
- !1,
3557
- null,
3558
- null
3559
- );
3560
- const gc = Vu.exports;
3561
- export {
3562
- gc as H,
3563
- yo as a,
3564
- vo as h
3565
- };
3566
- //# sourceMappingURL=revolugo.hotelofferlist.C-g6dHx1.min.js.map