@revolugo/elements 5.23.3-rc.0 → 5.24.0-rc.0

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