Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
929
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.98 KB | None | 0 0
  1. ! function(t) {
  2. var e = {};
  3.  
  4. function r(n) {
  5. if (e[n]) return e[n].exports;
  6. var o = e[n] = {
  7. i: n,
  8. l: !1,
  9. exports: {}
  10. };
  11. return t[n].call(o.exports, o, o.exports, r), o.l = !0, o.exports
  12. }
  13. r.m = t, r.c = e, r.d = function(t, e, n) {
  14. r.o(t, e) || Object.defineProperty(t, e, {
  15. enumerable: !0,
  16. get: n
  17. })
  18. }, r.r = function(t) {
  19. "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
  20. value: "Module"
  21. }), Object.defineProperty(t, "__esModule", {
  22. value: !0
  23. })
  24. }, r.t = function(t, e) {
  25. if (1 & e && (t = r(t)), 8 & e) return t;
  26. if (4 & e && "object" == typeof t && t && t.__esModule) return t;
  27. var n = Object.create(null);
  28. if (r.r(n), Object.defineProperty(n, "default", {
  29. enumerable: !0,
  30. value: t
  31. }), 2 & e && "string" != typeof t)
  32. for (var o in t) r.d(n, o, function(e) {
  33. return t[e]
  34. }.bind(null, o));
  35. return n
  36. }, r.n = function(t) {
  37. var e = t && t.__esModule ? function() {
  38. return t.default
  39. } : function() {
  40. return t
  41. };
  42. return r.d(e, "a", e), e
  43. }, r.o = function(t, e) {
  44. return Object.prototype.hasOwnProperty.call(t, e)
  45. }, r.p = "./", r(r.s = 4)
  46. }([
  47. /*!***************************************************************************!*\
  48. !*** ./node_modules/epic-webpack-config/node_modules/promise/lib/core.js ***!
  49. \***************************************************************************/
  50. /*! no static exports found */
  51. /*! all exports used */
  52. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  53. function(t, e, r) {
  54. "use strict";
  55. var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
  56. return typeof t
  57. } : function(t) {
  58. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  59. },
  60. o = r( /*! asap/raw */ 7);
  61.  
  62. function i() {}
  63. var a = null,
  64. s = {};
  65.  
  66. function u(t) {
  67. if ("object" !== n(this)) throw new TypeError("Promises must be constructed via new");
  68. if ("function" != typeof t) throw new TypeError("Promise constructor's argument is not a function");
  69. this._h = 0, this._i = 0, this._j = null, this._k = null, t !== i && p(t, this)
  70. }
  71.  
  72. function f(t, e) {
  73. for (; 3 === t._i;) t = t._j;
  74. if (u._l && u._l(t), 0 === t._i) return 0 === t._h ? (t._h = 1, void(t._k = e)) : 1 === t._h ? (t._h = 2, void(t._k = [t._k, e])) : void t._k.push(e);
  75. ! function(t, e) {
  76. o(function() {
  77. var r = 1 === t._i ? e.onFulfilled : e.onRejected;
  78. if (null !== r) {
  79. var n = function(t, e) {
  80. try {
  81. return t(e)
  82. } catch (t) {
  83. return a = t, s
  84. }
  85. }(r, t._j);
  86. n === s ? l(e.promise, a) : c(e.promise, n)
  87. } else 1 === t._i ? c(e.promise, t._j) : l(e.promise, t._j)
  88. })
  89. }(t, e)
  90. }
  91.  
  92. function c(t, e) {
  93. if (e === t) return l(t, new TypeError("A promise cannot be resolved with itself."));
  94. if (e && ("object" === (void 0 === e ? "undefined" : n(e)) || "function" == typeof e)) {
  95. var r = function(t) {
  96. try {
  97. return t.then
  98. } catch (t) {
  99. return a = t, s
  100. }
  101. }(e);
  102. if (r === s) return l(t, a);
  103. if (r === t.then && e instanceof u) return t._i = 3, t._j = e, void d(t);
  104. if ("function" == typeof r) return void p(r.bind(e), t)
  105. }
  106. t._i = 1, t._j = e, d(t)
  107. }
  108.  
  109. function l(t, e) {
  110. t._i = 2, t._j = e, u._m && u._m(t, e), d(t)
  111. }
  112.  
  113. function d(t) {
  114. if (1 === t._h && (f(t, t._k), t._k = null), 2 === t._h) {
  115. for (var e = 0; e < t._k.length; e++) f(t, t._k[e]);
  116. t._k = null
  117. }
  118. }
  119.  
  120. function h(t, e, r) {
  121. this.onFulfilled = "function" == typeof t ? t : null, this.onRejected = "function" == typeof e ? e : null, this.promise = r
  122. }
  123.  
  124. function p(t, e) {
  125. var r = !1,
  126. n = function(t, e, r) {
  127. try {
  128. t(e, r)
  129. } catch (t) {
  130. return a = t, s
  131. }
  132. }(t, function(t) {
  133. r || (r = !0, c(e, t))
  134. }, function(t) {
  135. r || (r = !0, l(e, t))
  136. });
  137. r || n !== s || (r = !0, l(e, a))
  138. }
  139. t.exports = u, u._l = null, u._m = null, u._n = i, u.prototype.then = function(t, e) {
  140. if (this.constructor !== u) return function(t, e, r) {
  141. return new t.constructor(function(n, o) {
  142. var a = new u(i);
  143. a.then(n, o), f(t, new h(e, r, a))
  144. })
  145. }(this, t, e);
  146. var r = new u(i);
  147. return f(this, new h(t, e, r)), r
  148. }
  149. },
  150. /*!***********************************!*\
  151. !*** (webpack)/buildin/global.js ***!
  152. \***********************************/
  153. /*! no static exports found */
  154. /*! all exports used */
  155. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  156. function(t, e) {
  157. var r;
  158. r = function() {
  159. return this
  160. }();
  161. try {
  162. r = r || new Function("return this")()
  163. } catch (t) {
  164. "object" == typeof window && (r = window)
  165. }
  166. t.exports = r
  167. },
  168. /*!*************************************************!*\
  169. !*** ./app/scripts/client/classes/BaseEvent.js ***!
  170. \*************************************************/
  171. /*! no static exports found */
  172. /*! all exports used */
  173. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  174. function(t, e, r) {
  175. "use strict";
  176. Object.defineProperty(e, "__esModule", {
  177. value: !0
  178. }), e.default = void 0;
  179. var n, o = r( /*! window-or-global */ 3),
  180. i = (n = o) && n.__esModule ? n : {
  181. default: n
  182. };
  183. var a = "/track.png",
  184. s = function() {
  185. function t(e) {
  186. ! function(t, e) {
  187. if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
  188. }(this, t), this.BASE_URL = e, this.TRACKING_URL = this.BASE_URL + a
  189. }
  190. return t.prototype.track = function(t, e) {
  191. var r = void 0 === i.default.navigator.doNotTrack ? i.default.doNotTrack : i.default.navigator.doNotTrack,
  192. n = t || {};
  193. if (1 !== r && "1" !== r) {
  194. n.referringUrl = document.referrer ? document.referrer : "none", n.now = Date.now(), n.eventType = this.eventType;
  195. var o = new Image;
  196. o.src = this.buildUrl(n), e && (o.onload = e)
  197. }
  198. }, t.prototype.buildUrl = function(t) {
  199. var e = "?";
  200. for (var r in t) t.hasOwnProperty(r) && (e = "?" === e ? "" + e + r + "=" + encodeURIComponent(t[r]) : e + "&" + r + "=" + encodeURIComponent(t[r]));
  201. return this.TRACKING_URL + e
  202. }, t
  203. }();
  204. e.default = s
  205. },
  206. /*!****************************************************!*\
  207. !*** ./node_modules/window-or-global/lib/index.js ***!
  208. \****************************************************/
  209. /*! no static exports found */
  210. /*! all exports used */
  211. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  212. function(t, e, r) {
  213. "use strict";
  214. (function(e) {
  215. t.exports = "object" == typeof self && self.self === self && self || "object" == typeof e && e.global === e && e || this
  216. }).call(this, r( /*! ./../../webpack/buildin/global.js */ 1))
  217. },
  218. /*!**********************************************************************************************!*\
  219. !*** multi ./node_modules/epic-webpack-config/utils/polyfills.js ./app/scripts/client/index ***!
  220. \**********************************************************************************************/
  221. /*! no static exports found */
  222. /*! all exports used */
  223. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  224. function(t, e, r) {
  225. r( /*! /Tracking/node/node_modules/epic-webpack-config/utils/polyfills.js */ 5), t.exports = r( /*! ./app/scripts/client/index */ 11)
  226. },
  227. /*!*************************************************************!*\
  228. !*** ./node_modules/epic-webpack-config/utils/polyfills.js ***!
  229. \*************************************************************/
  230. /*! no static exports found */
  231. /*! all exports used */
  232. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  233. function(t, e, r) {
  234. "use strict";
  235. "undefined" == typeof Promise && (r( /*! promise/lib/rejection-tracking */ 6).enable(), window.Promise = r( /*! promise/lib/es6-extensions.js */ 8)), r( /*! whatwg-fetch */ 9), Object.assign = r( /*! object-assign */ 10)
  236. },
  237. /*!*****************************************************************************************!*\
  238. !*** ./node_modules/epic-webpack-config/node_modules/promise/lib/rejection-tracking.js ***!
  239. \*****************************************************************************************/
  240. /*! no static exports found */
  241. /*! all exports used */
  242. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  243. function(t, e, r) {
  244. "use strict";
  245. var n = r( /*! ./core */ 0),
  246. o = [ReferenceError, TypeError, RangeError],
  247. i = !1;
  248.  
  249. function a() {
  250. i = !1, n._l = null, n._m = null
  251. }
  252.  
  253. function s(t, e) {
  254. return e.some(function(e) {
  255. return t instanceof e
  256. })
  257. }
  258. e.disable = a, e.enable = function(t) {
  259. t = t || {}, i && a();
  260. i = !0;
  261. var e = 0,
  262. r = 0,
  263. u = {};
  264.  
  265. function f(e) {
  266. (t.allRejections || s(u[e].error, t.whitelist || o)) && (u[e].displayId = r++, t.onUnhandled ? (u[e].logged = !0, t.onUnhandled(u[e].displayId, u[e].error)) : (u[e].logged = !0, function(t, e) {
  267. console.warn("Possible Unhandled Promise Rejection (id: " + t + "):"), ((e && (e.stack || e)) + "").split("\n").forEach(function(t) {
  268. console.warn(" " + t)
  269. })
  270. }(u[e].displayId, u[e].error)))
  271. }
  272. n._l = function(e) {
  273. var r;
  274. 2 === e._i && u[e._o] && (u[e._o].logged ? (r = e._o, u[r].logged && (t.onHandled ? t.onHandled(u[r].displayId, u[r].error) : u[r].onUnhandled || (console.warn("Promise Rejection Handled (id: " + u[r].displayId + "):"), console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' + u[r].displayId + ".")))) : clearTimeout(u[e._o].timeout), delete u[e._o])
  275. }, n._m = function(t, r) {
  276. 0 === t._h && (t._o = e++, u[t._o] = {
  277. displayId: null,
  278. error: r,
  279. timeout: setTimeout(f.bind(null, t._o), s(r, o) ? 100 : 2e3),
  280. logged: !1
  281. })
  282. }
  283. }
  284. },
  285. /*!******************************************!*\
  286. !*** ./node_modules/asap/browser-raw.js ***!
  287. \******************************************/
  288. /*! no static exports found */
  289. /*! all exports used */
  290. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  291. function(t, e, r) {
  292. "use strict";
  293. (function(e) {
  294. function r(t) {
  295. o.length || (n(), !0), o[o.length] = t
  296. }
  297. t.exports = r;
  298. var n, o = [],
  299. i = 0,
  300. a = 1024;
  301.  
  302. function s() {
  303. for (; i < o.length;) {
  304. var t = i;
  305. if (i += 1, o[t].call(), i > a) {
  306. for (var e = 0, r = o.length - i; e < r; e++) o[e] = o[e + i];
  307. o.length -= i, i = 0
  308. }
  309. }
  310. o.length = 0, i = 0, !1
  311. }
  312. var u, f, c, l = void 0 !== e ? e : self,
  313. d = l.MutationObserver || l.WebKitMutationObserver;
  314.  
  315. function h(t) {
  316. return function() {
  317. var e = setTimeout(n, 0),
  318. r = setInterval(n, 50);
  319.  
  320. function n() {
  321. clearTimeout(e), clearInterval(r), t()
  322. }
  323. }
  324. }
  325. "function" == typeof d ? (u = 1, f = new d(s), c = document.createTextNode(""), f.observe(c, {
  326. characterData: !0
  327. }), n = function() {
  328. u = -u, c.data = u
  329. }) : n = h(s), r.requestFlush = n, r.makeRequestCallFromTimer = h
  330. }).call(this, r( /*! ./../webpack/buildin/global.js */ 1))
  331. },
  332. /*!*************************************************************************************!*\
  333. !*** ./node_modules/epic-webpack-config/node_modules/promise/lib/es6-extensions.js ***!
  334. \*************************************************************************************/
  335. /*! no static exports found */
  336. /*! all exports used */
  337. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  338. function(t, e, r) {
  339. "use strict";
  340. var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
  341. return typeof t
  342. } : function(t) {
  343. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
  344. },
  345. o = r( /*! ./core.js */ 0);
  346. t.exports = o;
  347. var i = l(!0),
  348. a = l(!1),
  349. s = l(null),
  350. u = l(void 0),
  351. f = l(0),
  352. c = l("");
  353.  
  354. function l(t) {
  355. var e = new o(o._n);
  356. return e._i = 1, e._j = t, e
  357. }
  358. o.resolve = function(t) {
  359. if (t instanceof o) return t;
  360. if (null === t) return s;
  361. if (void 0 === t) return u;
  362. if (!0 === t) return i;
  363. if (!1 === t) return a;
  364. if (0 === t) return f;
  365. if ("" === t) return c;
  366. if ("object" === (void 0 === t ? "undefined" : n(t)) || "function" == typeof t) try {
  367. var e = t.then;
  368. if ("function" == typeof e) return new o(e.bind(t))
  369. } catch (t) {
  370. return new o(function(e, r) {
  371. r(t)
  372. })
  373. }
  374. return l(t)
  375. }, o.all = function(t) {
  376. var e = Array.prototype.slice.call(t);
  377. return new o(function(t, r) {
  378. if (0 === e.length) return t([]);
  379. var i = e.length;
  380.  
  381. function a(s, u) {
  382. if (u && ("object" === (void 0 === u ? "undefined" : n(u)) || "function" == typeof u)) {
  383. if (u instanceof o && u.then === o.prototype.then) {
  384. for (; 3 === u._i;) u = u._j;
  385. return 1 === u._i ? a(s, u._j) : (2 === u._i && r(u._j), void u.then(function(t) {
  386. a(s, t)
  387. }, r))
  388. }
  389. var f = u.then;
  390. if ("function" == typeof f) return void new o(f.bind(u)).then(function(t) {
  391. a(s, t)
  392. }, r)
  393. }
  394. e[s] = u, 0 == --i && t(e)
  395. }
  396. for (var s = 0; s < e.length; s++) a(s, e[s])
  397. })
  398. }, o.reject = function(t) {
  399. return new o(function(e, r) {
  400. r(t)
  401. })
  402. }, o.race = function(t) {
  403. return new o(function(e, r) {
  404. t.forEach(function(t) {
  405. o.resolve(t).then(e, r)
  406. })
  407. })
  408. }, o.prototype.catch = function(t) {
  409. return this.then(null, t)
  410. }
  411. },
  412. /*!********************************************!*\
  413. !*** ./node_modules/whatwg-fetch/fetch.js ***!
  414. \********************************************/
  415. /*! no static exports found */
  416. /*! all exports used */
  417. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  418. function(t, e) {
  419. ! function(t) {
  420. "use strict";
  421. if (!t.fetch) {
  422. var e = {
  423. searchParams: "URLSearchParams" in t,
  424. iterable: "Symbol" in t && "iterator" in Symbol,
  425. blob: "FileReader" in t && "Blob" in t && function() {
  426. try {
  427. return new Blob, !0
  428. } catch (t) {
  429. return !1
  430. }
  431. }(),
  432. formData: "FormData" in t,
  433. arrayBuffer: "ArrayBuffer" in t
  434. };
  435. if (e.arrayBuffer) var r = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"],
  436. n = function(t) {
  437. return t && DataView.prototype.isPrototypeOf(t)
  438. },
  439. o = ArrayBuffer.isView || function(t) {
  440. return t && r.indexOf(Object.prototype.toString.call(t)) > -1
  441. };
  442. c.prototype.append = function(t, e) {
  443. t = s(t), e = u(e);
  444. var r = this.map[t];
  445. this.map[t] = r ? r + "," + e : e
  446. }, c.prototype.delete = function(t) {
  447. delete this.map[s(t)]
  448. }, c.prototype.get = function(t) {
  449. return t = s(t), this.has(t) ? this.map[t] : null
  450. }, c.prototype.has = function(t) {
  451. return this.map.hasOwnProperty(s(t))
  452. }, c.prototype.set = function(t, e) {
  453. this.map[s(t)] = u(e)
  454. }, c.prototype.forEach = function(t, e) {
  455. for (var r in this.map) this.map.hasOwnProperty(r) && t.call(e, this.map[r], r, this)
  456. }, c.prototype.keys = function() {
  457. var t = [];
  458. return this.forEach(function(e, r) {
  459. t.push(r)
  460. }), f(t)
  461. }, c.prototype.values = function() {
  462. var t = [];
  463. return this.forEach(function(e) {
  464. t.push(e)
  465. }), f(t)
  466. }, c.prototype.entries = function() {
  467. var t = [];
  468. return this.forEach(function(e, r) {
  469. t.push([r, e])
  470. }), f(t)
  471. }, e.iterable && (c.prototype[Symbol.iterator] = c.prototype.entries);
  472. var i = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
  473. b.prototype.clone = function() {
  474. return new b(this, {
  475. body: this._bodyInit
  476. })
  477. }, y.call(b.prototype), y.call(w.prototype), w.prototype.clone = function() {
  478. return new w(this._bodyInit, {
  479. status: this.status,
  480. statusText: this.statusText,
  481. headers: new c(this.headers),
  482. url: this.url
  483. })
  484. }, w.error = function() {
  485. var t = new w(null, {
  486. status: 0,
  487. statusText: ""
  488. });
  489. return t.type = "error", t
  490. };
  491. var a = [301, 302, 303, 307, 308];
  492. w.redirect = function(t, e) {
  493. if (-1 === a.indexOf(e)) throw new RangeError("Invalid status code");
  494. return new w(null, {
  495. status: e,
  496. headers: {
  497. location: t
  498. }
  499. })
  500. }, t.Headers = c, t.Request = b, t.Response = w, t.fetch = function(t, r) {
  501. return new Promise(function(n, o) {
  502. var i = new b(t, r),
  503. a = new XMLHttpRequest;
  504. a.onload = function() {
  505. var t, e, r = {
  506. status: a.status,
  507. statusText: a.statusText,
  508. headers: (t = a.getAllResponseHeaders() || "", e = new c, t.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEach(function(t) {
  509. var r = t.split(":"),
  510. n = r.shift().trim();
  511. if (n) {
  512. var o = r.join(":").trim();
  513. e.append(n, o)
  514. }
  515. }), e)
  516. };
  517. r.url = "responseURL" in a ? a.responseURL : r.headers.get("X-Request-URL");
  518. var o = "response" in a ? a.response : a.responseText;
  519. n(new w(o, r))
  520. }, a.onerror = function() {
  521. o(new TypeError("Network request failed"))
  522. }, a.ontimeout = function() {
  523. o(new TypeError("Network request failed"))
  524. }, a.open(i.method, i.url, !0), "include" === i.credentials ? a.withCredentials = !0 : "omit" === i.credentials && (a.withCredentials = !1), "responseType" in a && e.blob && (a.responseType = "blob"), i.headers.forEach(function(t, e) {
  525. a.setRequestHeader(e, t)
  526. }), a.send(void 0 === i._bodyInit ? null : i._bodyInit)
  527. })
  528. }, t.fetch.polyfill = !0
  529. }
  530.  
  531. function s(t) {
  532. if ("string" != typeof t && (t = String(t)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)) throw new TypeError("Invalid character in header field name");
  533. return t.toLowerCase()
  534. }
  535.  
  536. function u(t) {
  537. return "string" != typeof t && (t = String(t)), t
  538. }
  539.  
  540. function f(t) {
  541. var r = {
  542. next: function() {
  543. var e = t.shift();
  544. return {
  545. done: void 0 === e,
  546. value: e
  547. }
  548. }
  549. };
  550. return e.iterable && (r[Symbol.iterator] = function() {
  551. return r
  552. }), r
  553. }
  554.  
  555. function c(t) {
  556. this.map = {}, t instanceof c ? t.forEach(function(t, e) {
  557. this.append(e, t)
  558. }, this) : Array.isArray(t) ? t.forEach(function(t) {
  559. this.append(t[0], t[1])
  560. }, this) : t && Object.getOwnPropertyNames(t).forEach(function(e) {
  561. this.append(e, t[e])
  562. }, this)
  563. }
  564.  
  565. function l(t) {
  566. if (t.bodyUsed) return Promise.reject(new TypeError("Already read"));
  567. t.bodyUsed = !0
  568. }
  569.  
  570. function d(t) {
  571. return new Promise(function(e, r) {
  572. t.onload = function() {
  573. e(t.result)
  574. }, t.onerror = function() {
  575. r(t.error)
  576. }
  577. })
  578. }
  579.  
  580. function h(t) {
  581. var e = new FileReader,
  582. r = d(e);
  583. return e.readAsArrayBuffer(t), r
  584. }
  585.  
  586. function p(t) {
  587. if (t.slice) return t.slice(0);
  588. var e = new Uint8Array(t.byteLength);
  589. return e.set(new Uint8Array(t)), e.buffer
  590. }
  591.  
  592. function y() {
  593. return this.bodyUsed = !1, this._initBody = function(t) {
  594. if (this._bodyInit = t, t)
  595. if ("string" == typeof t) this._bodyText = t;
  596. else if (e.blob && Blob.prototype.isPrototypeOf(t)) this._bodyBlob = t;
  597. else if (e.formData && FormData.prototype.isPrototypeOf(t)) this._bodyFormData = t;
  598. else if (e.searchParams && URLSearchParams.prototype.isPrototypeOf(t)) this._bodyText = t.toString();
  599. else if (e.arrayBuffer && e.blob && n(t)) this._bodyArrayBuffer = p(t.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer]);
  600. else {
  601. if (!e.arrayBuffer || !ArrayBuffer.prototype.isPrototypeOf(t) && !o(t)) throw new Error("unsupported BodyInit type");
  602. this._bodyArrayBuffer = p(t)
  603. } else this._bodyText = "";
  604. this.headers.get("content-type") || ("string" == typeof t ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : e.searchParams && URLSearchParams.prototype.isPrototypeOf(t) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"))
  605. }, e.blob && (this.blob = function() {
  606. var t = l(this);
  607. if (t) return t;
  608. if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
  609. if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
  610. if (this._bodyFormData) throw new Error("could not read FormData body as blob");
  611. return Promise.resolve(new Blob([this._bodyText]))
  612. }, this.arrayBuffer = function() {
  613. return this._bodyArrayBuffer ? l(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(h)
  614. }), this.text = function() {
  615. var t, e, r, n = l(this);
  616. if (n) return n;
  617. if (this._bodyBlob) return t = this._bodyBlob, e = new FileReader, r = d(e), e.readAsText(t), r;
  618. if (this._bodyArrayBuffer) return Promise.resolve(function(t) {
  619. for (var e = new Uint8Array(t), r = new Array(e.length), n = 0; n < e.length; n++) r[n] = String.fromCharCode(e[n]);
  620. return r.join("")
  621. }(this._bodyArrayBuffer));
  622. if (this._bodyFormData) throw new Error("could not read FormData body as text");
  623. return Promise.resolve(this._bodyText)
  624. }, e.formData && (this.formData = function() {
  625. return this.text().then(v)
  626. }), this.json = function() {
  627. return this.text().then(JSON.parse)
  628. }, this
  629. }
  630.  
  631. function b(t, e) {
  632. var r, n, o = (e = e || {}).body;
  633. if (t instanceof b) {
  634. if (t.bodyUsed) throw new TypeError("Already read");
  635. this.url = t.url, this.credentials = t.credentials, e.headers || (this.headers = new c(t.headers)), this.method = t.method, this.mode = t.mode, o || null == t._bodyInit || (o = t._bodyInit, t.bodyUsed = !0)
  636. } else this.url = String(t);
  637. if (this.credentials = e.credentials || this.credentials || "omit", !e.headers && this.headers || (this.headers = new c(e.headers)), this.method = (r = e.method || this.method || "GET", n = r.toUpperCase(), i.indexOf(n) > -1 ? n : r), this.mode = e.mode || this.mode || null, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && o) throw new TypeError("Body not allowed for GET or HEAD requests");
  638. this._initBody(o)
  639. }
  640.  
  641. function v(t) {
  642. var e = new FormData;
  643. return t.trim().split("&").forEach(function(t) {
  644. if (t) {
  645. var r = t.split("="),
  646. n = r.shift().replace(/\+/g, " "),
  647. o = r.join("=").replace(/\+/g, " ");
  648. e.append(decodeURIComponent(n), decodeURIComponent(o))
  649. }
  650. }), e
  651. }
  652.  
  653. function w(t, e) {
  654. e || (e = {}), this.type = "default", this.status = void 0 === e.status ? 200 : e.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in e ? e.statusText : "OK", this.headers = new c(e.headers), this.url = e.url || "", this._initBody(t)
  655. }
  656. }("undefined" != typeof self ? self : this)
  657. },
  658. /*!*********************************************!*\
  659. !*** ./node_modules/object-assign/index.js ***!
  660. \*********************************************/
  661. /*! no static exports found */
  662. /*! all exports used */
  663. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  664. function(t, e, r) {
  665. "use strict";
  666. /*
  667. object-assign
  668. (c) Sindre Sorhus
  669. @license MIT
  670. */
  671. var n = Object.getOwnPropertySymbols,
  672. o = Object.prototype.hasOwnProperty,
  673. i = Object.prototype.propertyIsEnumerable;
  674. t.exports = function() {
  675. try {
  676. if (!Object.assign) return !1;
  677. var t = new String("abc");
  678. if (t[5] = "de", "5" === Object.getOwnPropertyNames(t)[0]) return !1;
  679. for (var e = {}, r = 0; r < 10; r++) e["_" + String.fromCharCode(r)] = r;
  680. if ("0123456789" !== Object.getOwnPropertyNames(e).map(function(t) {
  681. return e[t]
  682. }).join("")) return !1;
  683. var n = {};
  684. return "abcdefghijklmnopqrst".split("").forEach(function(t) {
  685. n[t] = t
  686. }), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, n)).join("")
  687. } catch (t) {
  688. return !1
  689. }
  690. }() ? Object.assign : function(t, e) {
  691. for (var r, a, s = function(t) {
  692. if (null == t) throw new TypeError("Object.assign cannot be called with null or undefined");
  693. return Object(t)
  694. }(t), u = 1; u < arguments.length; u++) {
  695. for (var f in r = Object(arguments[u])) o.call(r, f) && (s[f] = r[f]);
  696. if (n) {
  697. a = n(r);
  698. for (var c = 0; c < a.length; c++) i.call(r, a[c]) && (s[a[c]] = r[a[c]])
  699. }
  700. }
  701. return s
  702. }
  703. },
  704. /*!*************************************!*\
  705. !*** ./app/scripts/client/index.js ***!
  706. \*************************************/
  707. /*! no static exports found */
  708. /*! all exports used */
  709. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  710. function(t, e, r) {
  711. "use strict";
  712. var n, o = r( /*! ./bootstrap */ 12);
  713. (0, ((n = o) && n.__esModule ? n : {
  714. default: n
  715. }).default)()
  716. },
  717. /*!*****************************************!*\
  718. !*** ./app/scripts/client/bootstrap.js ***!
  719. \*****************************************/
  720. /*! no static exports found */
  721. /*! all exports used */
  722. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  723. function(t, e, r) {
  724. "use strict";
  725. Object.defineProperty(e, "__esModule", {
  726. value: !0
  727. });
  728. var n = a(r( /*! ./classes/TrackingPixel */ 13)),
  729. o = a(r( /*! ./utils/url */ 16)),
  730. i = a(r( /*! window-or-global */ 3));
  731.  
  732. function a(t) {
  733. return t && t.__esModule ? t : {
  734. default: t
  735. }
  736. }
  737. var s = function() {
  738. var t = i.default.__tracking_base || (0, o.default)();
  739. if (!t) throw new Error("Failed to find trackingUrl");
  740. i.default._epicTracking ? console.warn("Duplicate tracking pixel found in global") : (i.default._epicTracking = new n.default(t), i.default._epicTracking.trackEvent("PageView"))
  741. };
  742. e.default = function() {
  743. var t = document.readyState;
  744. "complete" === t || "loaded" === t || "interactive" === t ? s() : document.addEventListener("DOMContentLoaded", function() {
  745. s()
  746. })
  747. }
  748. },
  749. /*!*****************************************************!*\
  750. !*** ./app/scripts/client/classes/TrackingPixel.js ***!
  751. \*****************************************************/
  752. /*! no static exports found */
  753. /*! all exports used */
  754. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  755. function(t, e, r) {
  756. "use strict";
  757. Object.defineProperty(e, "__esModule", {
  758. value: !0
  759. }), e.default = void 0;
  760. var n = i(r( /*! ./PageViewEvent */ 14)),
  761. o = i(r( /*! ./InteractionEvent */ 15));
  762.  
  763. function i(t) {
  764. return t && t.__esModule ? t : {
  765. default: t
  766. }
  767. }
  768. var a = function() {
  769. function t(e) {
  770. ! function(t, e) {
  771. if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
  772. }(this, t), this.pageViewEvent = new n.default(e), this.interactionEvent = new o.default(e), this.registerHistoryEvent()
  773. }
  774. return t.prototype.trackEvent = function() {
  775. var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "PageView",
  776. e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  777. r = arguments[2];
  778. switch (t) {
  779. case "PageView":
  780. this.pageViewEvent.track(e, r);
  781. break;
  782. case "Interaction":
  783. this.interactionEvent.track(e, r);
  784. break;
  785. default:
  786. console.error("Event Type " + t + " is not supported")
  787. }
  788. }, t.prototype.registerHistoryEvent = function() {
  789. var t = this,
  790. e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : window.history || {};
  791. try {
  792. var r = e.pushState,
  793. n = e.replaceState;
  794. window.onpopstate = function() {
  795. t.trackEvent()
  796. }, "function" == typeof e.pushState ? e.pushState = function() {
  797. for (var n = arguments.length, o = Array(n), i = 0; i < n; i++) o[i] = arguments[i];
  798. return t.trackEvent(), r.apply(e, o)
  799. } : console.warn("Browser doesn't support history.pushState, fail to initiate history change handler"), "function" == typeof e.replaceState ? e.replaceState = function() {
  800. for (var r = arguments.length, o = Array(r), i = 0; i < r; i++) o[i] = arguments[i];
  801. return t.trackEvent(), n.apply(e, o)
  802. } : console.warn("Browser doesn't support history.replaceState, fail to initiate history change handler")
  803. } catch (t) {
  804. console.warn("Unable to initiate browser history handler", t)
  805. }
  806. }, t
  807. }();
  808. e.default = a
  809. },
  810. /*!*****************************************************!*\
  811. !*** ./app/scripts/client/classes/PageViewEvent.js ***!
  812. \*****************************************************/
  813. /*! no static exports found */
  814. /*! all exports used */
  815. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  816. function(t, e, r) {
  817. "use strict";
  818. Object.defineProperty(e, "__esModule", {
  819. value: !0
  820. }), e.default = void 0;
  821. var n, o = r( /*! ./BaseEvent */ 2);
  822.  
  823. function i(t, e) {
  824. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
  825. t.prototype = Object.create(e && e.prototype, {
  826. constructor: {
  827. value: t,
  828. enumerable: !1,
  829. writable: !0,
  830. configurable: !0
  831. }
  832. }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : function(t, e) {
  833. for (var r = Object.getOwnPropertyNames(e), n = 0; n < r.length; n++) {
  834. var o = r[n],
  835. i = Object.getOwnPropertyDescriptor(e, o);
  836. i && i.configurable && void 0 === t[o] && Object.defineProperty(t, o, i)
  837. }
  838. }(t, e))
  839. }
  840. var a = function(t) {
  841. function e(r) {
  842. ! function(t, e) {
  843. if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
  844. }(this, e);
  845. var n = function(t, e) {
  846. if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  847. return !e || "object" != typeof e && "function" != typeof e ? t : e
  848. }(this, t.call(this, r));
  849. return n.eventType = "pageView", n
  850. }
  851. return i(e, t), e
  852. }(((n = o) && n.__esModule ? n : {
  853. default: n
  854. }).default);
  855. e.default = a
  856. },
  857. /*!********************************************************!*\
  858. !*** ./app/scripts/client/classes/InteractionEvent.js ***!
  859. \********************************************************/
  860. /*! no static exports found */
  861. /*! all exports used */
  862. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  863. function(t, e, r) {
  864. "use strict";
  865. Object.defineProperty(e, "__esModule", {
  866. value: !0
  867. }), e.default = void 0;
  868. var n, o = r( /*! ./BaseEvent */ 2);
  869.  
  870. function i(t, e) {
  871. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
  872. t.prototype = Object.create(e && e.prototype, {
  873. constructor: {
  874. value: t,
  875. enumerable: !1,
  876. writable: !0,
  877. configurable: !0
  878. }
  879. }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : function(t, e) {
  880. for (var r = Object.getOwnPropertyNames(e), n = 0; n < r.length; n++) {
  881. var o = r[n],
  882. i = Object.getOwnPropertyDescriptor(e, o);
  883. i && i.configurable && void 0 === t[o] && Object.defineProperty(t, o, i)
  884. }
  885. }(t, e))
  886. }
  887. var a = function(t) {
  888. function e(r) {
  889. ! function(t, e) {
  890. if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
  891. }(this, e);
  892. var n = function(t, e) {
  893. if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  894. return !e || "object" != typeof e && "function" != typeof e ? t : e
  895. }(this, t.call(this, r));
  896. return n.eventType = "interaction", n
  897. }
  898. return i(e, t), e.prototype.track = function(e, r) {
  899. var n = e.eventCategory,
  900. o = e.eventAction,
  901. i = e.interactionType;
  902. n && o && i ? t.prototype.track.call(this, e, r) : console.error("eventCategory or eventAction or interactionType is not given, cannot fire a tracking event")
  903. }, e
  904. }(((n = o) && n.__esModule ? n : {
  905. default: n
  906. }).default);
  907. e.default = a
  908. },
  909. /*!*****************************************!*\
  910. !*** ./app/scripts/client/utils/url.js ***!
  911. \*****************************************/
  912. /*! no static exports found */
  913. /*! all exports used */
  914. /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
  915. function(t, e, r) {
  916. "use strict";
  917. Object.defineProperty(e, "__esModule", {
  918. value: !0
  919. });
  920. e.default = function() {
  921. var t = null;
  922. try {
  923. var e = document.scripts,
  924. r = /^(http|https)?(:\/\/)?tracking.(epicgames|unrealengine).*\/tracking\.js/,
  925. n = !0,
  926. o = !1,
  927. i = void 0;
  928. try {
  929. for (var a, s = e[Symbol.iterator](); !(n = (a = s.next()).done); n = !0) {
  930. var u = a.value.src || null;
  931. u && r.test(u) && (t = new URL(u).origin)
  932. }
  933. } catch (t) {
  934. o = !0, i = t
  935. } finally {
  936. try {
  937. !n && s.return && s.return()
  938. } finally {
  939. if (o) throw i
  940. }
  941. }
  942. } catch (t) {
  943. console.error("Failed to find baseUrl", t)
  944. }
  945. return t
  946. }
  947. }
  948. ]);
  949. //# sourceMappingURL=tracking.tracking-site.js.map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement