@firebase/webchannel-wrapper 0.9.0 → 0.10.0-20230425221647

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.
@@ -0,0 +1,1826 @@
1
+ /******************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */
15
+ /* global Reflect, Promise */
16
+
17
+ var extendStatics = function(d, b) {
18
+ extendStatics = Object.setPrototypeOf ||
19
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
21
+ return extendStatics(d, b);
22
+ };
23
+
24
+ function __extends(d, b) {
25
+ if (typeof b !== "function" && b !== null)
26
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
27
+ extendStatics(d, b);
28
+ function __() { this.constructor = d; }
29
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30
+ }
31
+
32
+ function __values(o) {
33
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
34
+ if (m) return m.call(o);
35
+ if (o && typeof o.length === "number") return {
36
+ next: function () {
37
+ if (o && i >= o.length) o = void 0;
38
+ return { value: o && o[i++], done: !o };
39
+ }
40
+ };
41
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
42
+ }
43
+
44
+ function __read(o, n) {
45
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
46
+ if (!m) return o;
47
+ var i = m.call(o), r, ar = [], e;
48
+ try {
49
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
50
+ }
51
+ catch (error) { e = { error: error }; }
52
+ finally {
53
+ try {
54
+ if (r && !r.done && (m = i["return"])) m.call(i);
55
+ }
56
+ finally { if (e) throw e.error; }
57
+ }
58
+ return ar;
59
+ }
60
+
61
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
62
+
63
+ var esm = {};
64
+
65
+ var k, goog = goog || {}, l = commonjsGlobal || self;
66
+ function aa() { }
67
+ function ba(a) { var b = typeof a; b = "object" != b ? b : a ? Array.isArray(a) ? "array" : b : "null"; return "array" == b || "object" == b && "number" == typeof a.length; }
68
+ function p(a) { var b = typeof a; return "object" == b && null != a || "function" == b; }
69
+ function ca(a) { return Object.prototype.hasOwnProperty.call(a, da) && a[da] || (a[da] = ++ea); }
70
+ var da = "closure_uid_" + (1E9 * Math.random() >>> 0), ea = 0;
71
+ function fa(a, b, c) { return a.call.apply(a.bind, arguments); }
72
+ function ha(a, b, c) { if (!a)
73
+ throw Error(); if (2 < arguments.length) {
74
+ var d = Array.prototype.slice.call(arguments, 2);
75
+ return function () { var e = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(e, d); return a.apply(b, e); };
76
+ } return function () { return a.apply(b, arguments); }; }
77
+ function q(a, b, c) { Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? q = fa : q = ha; return q.apply(null, arguments); }
78
+ function ja(a, b) { var c = Array.prototype.slice.call(arguments, 1); return function () { var d = c.slice(); d.push.apply(d, arguments); return a.apply(this, d); }; }
79
+ function r(a, b) { function c() { } c.prototype = b.prototype; a.$ = b.prototype; a.prototype = new c; a.prototype.constructor = a; a.ac = function (d, e, f) { for (var h = Array(arguments.length - 2), m = 2; m < arguments.length; m++)
80
+ h[m - 2] = arguments[m]; return b.prototype[e].apply(d, h); }; }
81
+ function v() { this.s = this.s; this.o = this.o; }
82
+ var ka = 0;
83
+ v.prototype.s = !1;
84
+ v.prototype.ra = function () { if (!this.s && (this.s = !0, this.N(), 0 != ka)) {
85
+ ca(this);
86
+ } };
87
+ v.prototype.N = function () { if (this.o)
88
+ for (; this.o.length;)
89
+ this.o.shift()(); };
90
+ var ma = Array.prototype.indexOf ? function (a, b) { return Array.prototype.indexOf.call(a, b, void 0); } : function (a, b) { if ("string" === typeof a)
91
+ return "string" !== typeof b || 1 != b.length ? -1 : a.indexOf(b, 0); for (var c = 0; c < a.length; c++)
92
+ if (c in a && a[c] === b)
93
+ return c; return -1; };
94
+ function na(a) { var b = a.length; if (0 < b) {
95
+ var c = Array(b);
96
+ for (var d = 0; d < b; d++)
97
+ c[d] = a[d];
98
+ return c;
99
+ } return []; }
100
+ function oa(a, b) { for (var c = 1; c < arguments.length; c++) {
101
+ var d = arguments[c];
102
+ if (ba(d)) {
103
+ var e = a.length || 0, f = d.length || 0;
104
+ a.length = e + f;
105
+ for (var h = 0; h < f; h++)
106
+ a[e + h] = d[h];
107
+ }
108
+ else
109
+ a.push(d);
110
+ } }
111
+ function w(a, b) { this.type = a; this.g = this.target = b; this.defaultPrevented = !1; }
112
+ w.prototype.h = function () { this.defaultPrevented = !0; };
113
+ var pa = function () { if (!l.addEventListener || !Object.defineProperty)
114
+ return !1; var a = !1, b = Object.defineProperty({}, "passive", { get: function () { a = !0; } }); try {
115
+ l.addEventListener("test", aa, b), l.removeEventListener("test", aa, b);
116
+ }
117
+ catch (c) { } return a; }();
118
+ function qa(a) { return /^[\s\xa0]*$/.test(a); }
119
+ var ra = String.prototype.trim ? function (a) { return a.trim(); } : function (a) { return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]; };
120
+ function sa(a, b) { return a < b ? -1 : a > b ? 1 : 0; }
121
+ function ta() { var a = l.navigator; return a && (a = a.userAgent) ? a : ""; }
122
+ function x(a) { return -1 != ta().indexOf(a); }
123
+ function ua(a) { ua[" "](a); return a; }
124
+ ua[" "] = aa;
125
+ function va(a, b, c) { return Object.prototype.hasOwnProperty.call(a, b) ? a[b] : a[b] = c(b); }
126
+ var wa = x("Opera"), y = x("Trident") || x("MSIE"), xa = x("Edge"), ya = xa || y, za = x("Gecko") && !(-1 != ta().toLowerCase().indexOf("webkit") && !x("Edge")) && !(x("Trident") || x("MSIE")) && !x("Edge"), Aa = -1 != ta().toLowerCase().indexOf("webkit") && !x("Edge");
127
+ function Ba() { var a = l.document; return a ? a.documentMode : void 0; }
128
+ var Ca;
129
+ a: {
130
+ var Da = "", Ea = function () { var a = ta(); if (za)
131
+ return /rv:([^\);]+)(\)|;)/.exec(a); if (xa)
132
+ return /Edge\/([\d\.]+)/.exec(a); if (y)
133
+ return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a); if (Aa)
134
+ return /WebKit\/(\S+)/.exec(a); if (wa)
135
+ return /(?:Version)[ \/]?(\S+)/.exec(a); }();
136
+ Ea && (Da = Ea ? Ea[1] : "");
137
+ if (y) {
138
+ var Fa = Ba();
139
+ if (null != Fa && Fa > parseFloat(Da)) {
140
+ Ca = String(Fa);
141
+ break a;
142
+ }
143
+ }
144
+ Ca = Da;
145
+ }
146
+ var Ga = {};
147
+ function Ha() { return va(Ga, 9, function () { var a = 0; var b = ra(String(Ca)).split("."), c = ra("9").split("."), d = Math.max(b.length, c.length); for (var h = 0; 0 == a && h < d; h++) {
148
+ var e = b[h] || "", f = c[h] || "";
149
+ do {
150
+ e = /(\d*)(\D*)(.*)/.exec(e) || ["", "", "", ""];
151
+ f = /(\d*)(\D*)(.*)/.exec(f) || ["", "", "", ""];
152
+ if (0 == e[0].length && 0 == f[0].length)
153
+ break;
154
+ a = sa(0 == e[1].length ? 0 : parseInt(e[1], 10), 0 == f[1].length ? 0 : parseInt(f[1], 10)) || sa(0 == e[2].length, 0 == f[2].length) || sa(e[2], f[2]);
155
+ e = e[3];
156
+ f = f[3];
157
+ } while (0 == a);
158
+ } return 0 <= a; }); }
159
+ var Ia;
160
+ if (l.document && y) {
161
+ var Ja = Ba();
162
+ Ia = Ja ? Ja : parseInt(Ca, 10) || void 0;
163
+ }
164
+ else
165
+ Ia = void 0;
166
+ var Ka = Ia;
167
+ function z(a, b) {
168
+ w.call(this, a ? a.type : "");
169
+ this.relatedTarget = this.g = this.target = null;
170
+ this.button = this.screenY = this.screenX = this.clientY = this.clientX = 0;
171
+ this.key = "";
172
+ this.metaKey = this.shiftKey = this.altKey = this.ctrlKey = !1;
173
+ this.state = null;
174
+ this.pointerId = 0;
175
+ this.pointerType = "";
176
+ this.i = null;
177
+ if (a) {
178
+ var c = this.type = a.type, d = a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : null;
179
+ this.target = a.target || a.srcElement;
180
+ this.g = b;
181
+ if (b = a.relatedTarget) {
182
+ if (za) {
183
+ a: {
184
+ try {
185
+ ua(b.nodeName);
186
+ var e = !0;
187
+ break a;
188
+ }
189
+ catch (f) { }
190
+ e =
191
+ !1;
192
+ }
193
+ e || (b = null);
194
+ }
195
+ }
196
+ else
197
+ "mouseover" == c ? b = a.fromElement : "mouseout" == c && (b = a.toElement);
198
+ this.relatedTarget = b;
199
+ d ? (this.clientX = void 0 !== d.clientX ? d.clientX : d.pageX, this.clientY = void 0 !== d.clientY ? d.clientY : d.pageY, this.screenX = d.screenX || 0, this.screenY = d.screenY || 0) : (this.clientX = void 0 !== a.clientX ? a.clientX : a.pageX, this.clientY = void 0 !== a.clientY ? a.clientY : a.pageY, this.screenX = a.screenX || 0, this.screenY = a.screenY || 0);
200
+ this.button = a.button;
201
+ this.key = a.key || "";
202
+ this.ctrlKey = a.ctrlKey;
203
+ this.altKey = a.altKey;
204
+ this.shiftKey =
205
+ a.shiftKey;
206
+ this.metaKey = a.metaKey;
207
+ this.pointerId = a.pointerId || 0;
208
+ this.pointerType = "string" === typeof a.pointerType ? a.pointerType : Na[a.pointerType] || "";
209
+ this.state = a.state;
210
+ this.i = a;
211
+ a.defaultPrevented && z.$.h.call(this);
212
+ }
213
+ }
214
+ r(z, w);
215
+ var Na = { 2: "touch", 3: "pen", 4: "mouse" };
216
+ z.prototype.h = function () { z.$.h.call(this); var a = this.i; a.preventDefault ? a.preventDefault() : a.returnValue = !1; };
217
+ var A = "closure_listenable_" + (1E6 * Math.random() | 0);
218
+ var Oa = 0;
219
+ function Pa(a, b, c, d, e) { this.listener = a; this.proxy = null; this.src = b; this.type = c; this.capture = !!d; this.la = e; this.key = ++Oa; this.fa = this.ia = !1; }
220
+ function Qa(a) { a.fa = !0; a.listener = null; a.proxy = null; a.src = null; a.la = null; }
221
+ function Ra(a, b, c) { for (var d in a)
222
+ b.call(c, a[d], d, a); }
223
+ function Sa(a) { var b = {}; for (var c in a)
224
+ b[c] = a[c]; return b; }
225
+ var Ta = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
226
+ function Ua(a, b) { var c, d; for (var e = 1; e < arguments.length; e++) {
227
+ d = arguments[e];
228
+ for (c in d)
229
+ a[c] = d[c];
230
+ for (var f = 0; f < Ta.length; f++)
231
+ c = Ta[f], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]);
232
+ } }
233
+ function Va(a) { this.src = a; this.g = {}; this.h = 0; }
234
+ Va.prototype.add = function (a, b, c, d, e) { var f = a.toString(); a = this.g[f]; a || (a = this.g[f] = [], this.h++); var h = Wa(a, b, d, e); -1 < h ? (b = a[h], c || (b.ia = !1)) : (b = new Pa(b, this.src, f, !!d, e), b.ia = c, a.push(b)); return b; };
235
+ function Xa(a, b) { var c = b.type; if (c in a.g) {
236
+ var d = a.g[c], e = ma(d, b), f;
237
+ (f = 0 <= e) && Array.prototype.splice.call(d, e, 1);
238
+ f && (Qa(b), 0 == a.g[c].length && (delete a.g[c], a.h--));
239
+ } }
240
+ function Wa(a, b, c, d) { for (var e = 0; e < a.length; ++e) {
241
+ var f = a[e];
242
+ if (!f.fa && f.listener == b && f.capture == !!c && f.la == d)
243
+ return e;
244
+ } return -1; }
245
+ var Ya = "closure_lm_" + (1E6 * Math.random() | 0), Za = {};
246
+ function ab(a, b, c, d, e) { if (d && d.once)
247
+ return bb(a, b, c, d, e); if (Array.isArray(b)) {
248
+ for (var f = 0; f < b.length; f++)
249
+ ab(a, b[f], c, d, e);
250
+ return null;
251
+ } c = cb(c); return a && a[A] ? a.O(b, c, p(d) ? !!d.capture : !!d, e) : db(a, b, c, !1, d, e); }
252
+ function db(a, b, c, d, e, f) { if (!b)
253
+ throw Error("Invalid event type"); var h = p(e) ? !!e.capture : !!e, m = eb(a); m || (a[Ya] = m = new Va(a)); c = m.add(b, c, d, h, f); if (c.proxy)
254
+ return c; d = fb(); c.proxy = d; d.src = a; d.listener = c; if (a.addEventListener)
255
+ pa || (e = h), void 0 === e && (e = !1), a.addEventListener(b.toString(), d, e);
256
+ else if (a.attachEvent)
257
+ a.attachEvent(gb(b.toString()), d);
258
+ else if (a.addListener && a.removeListener)
259
+ a.addListener(d);
260
+ else
261
+ throw Error("addEventListener and attachEvent are unavailable."); return c; }
262
+ function fb() { function a(c) { return b.call(a.src, a.listener, c); } var b = hb; return a; }
263
+ function bb(a, b, c, d, e) { if (Array.isArray(b)) {
264
+ for (var f = 0; f < b.length; f++)
265
+ bb(a, b[f], c, d, e);
266
+ return null;
267
+ } c = cb(c); return a && a[A] ? a.P(b, c, p(d) ? !!d.capture : !!d, e) : db(a, b, c, !0, d, e); }
268
+ function ib(a, b, c, d, e) { if (Array.isArray(b))
269
+ for (var f = 0; f < b.length; f++)
270
+ ib(a, b[f], c, d, e);
271
+ else
272
+ (d = p(d) ? !!d.capture : !!d, c = cb(c), a && a[A]) ? (a = a.i, b = String(b).toString(), b in a.g && (f = a.g[b], c = Wa(f, c, d, e), -1 < c && (Qa(f[c]), Array.prototype.splice.call(f, c, 1), 0 == f.length && (delete a.g[b], a.h--)))) : a && (a = eb(a)) && (b = a.g[b.toString()], a = -1, b && (a = Wa(b, c, d, e)), (c = -1 < a ? b[a] : null) && jb(c)); }
273
+ function jb(a) { if ("number" !== typeof a && a && !a.fa) {
274
+ var b = a.src;
275
+ if (b && b[A])
276
+ Xa(b.i, a);
277
+ else {
278
+ var c = a.type, d = a.proxy;
279
+ b.removeEventListener ? b.removeEventListener(c, d, a.capture) : b.detachEvent ? b.detachEvent(gb(c), d) : b.addListener && b.removeListener && b.removeListener(d);
280
+ (c = eb(b)) ? (Xa(c, a), 0 == c.h && (c.src = null, b[Ya] = null)) : Qa(a);
281
+ }
282
+ } }
283
+ function gb(a) { return a in Za ? Za[a] : Za[a] = "on" + a; }
284
+ function hb(a, b) { if (a.fa)
285
+ a = !0;
286
+ else {
287
+ b = new z(b, this);
288
+ var c = a.listener, d = a.la || a.src;
289
+ a.ia && jb(a);
290
+ a = c.call(d, b);
291
+ } return a; }
292
+ function eb(a) { a = a[Ya]; return a instanceof Va ? a : null; }
293
+ var kb = "__closure_events_fn_" + (1E9 * Math.random() >>> 0);
294
+ function cb(a) { if ("function" === typeof a)
295
+ return a; a[kb] || (a[kb] = function (b) { return a.handleEvent(b); }); return a[kb]; }
296
+ function B() { v.call(this); this.i = new Va(this); this.S = this; this.J = null; }
297
+ r(B, v);
298
+ B.prototype[A] = !0;
299
+ B.prototype.removeEventListener = function (a, b, c, d) { ib(this, a, b, c, d); };
300
+ function C(a, b) { var c, d = a.J; if (d)
301
+ for (c = []; d; d = d.J)
302
+ c.push(d); a = a.S; d = b.type || b; if ("string" === typeof b)
303
+ b = new w(b, a);
304
+ else if (b instanceof w)
305
+ b.target = b.target || a;
306
+ else {
307
+ var e = b;
308
+ b = new w(d, a);
309
+ Ua(b, e);
310
+ } e = !0; if (c)
311
+ for (var f = c.length - 1; 0 <= f; f--) {
312
+ var h = b.g = c[f];
313
+ e = lb(h, d, !0, b) && e;
314
+ } h = b.g = a; e = lb(h, d, !0, b) && e; e = lb(h, d, !1, b) && e; if (c)
315
+ for (f = 0; f < c.length; f++)
316
+ h = b.g = c[f], e = lb(h, d, !1, b) && e; }
317
+ B.prototype.N = function () { B.$.N.call(this); if (this.i) {
318
+ var a = this.i, c;
319
+ for (c in a.g) {
320
+ for (var d = a.g[c], e = 0; e < d.length; e++)
321
+ Qa(d[e]);
322
+ delete a.g[c];
323
+ a.h--;
324
+ }
325
+ } this.J = null; };
326
+ B.prototype.O = function (a, b, c, d) { return this.i.add(String(a), b, !1, c, d); };
327
+ B.prototype.P = function (a, b, c, d) { return this.i.add(String(a), b, !0, c, d); };
328
+ function lb(a, b, c, d) { b = a.i.g[String(b)]; if (!b)
329
+ return !0; b = b.concat(); for (var e = !0, f = 0; f < b.length; ++f) {
330
+ var h = b[f];
331
+ if (h && !h.fa && h.capture == c) {
332
+ var m = h.listener, t = h.la || h.src;
333
+ h.ia && Xa(a.i, h);
334
+ e = !1 !== m.call(t, d) && e;
335
+ }
336
+ } return e && !d.defaultPrevented; }
337
+ var mb = l.JSON.stringify;
338
+ function nb() { var a = ob; var b = null; a.g && (b = a.g, a.g = a.g.next, a.g || (a.h = null), b.next = null); return b; }
339
+ var pb = /** @class */ (function () {
340
+ function pb() {
341
+ this.h = this.g = null;
342
+ }
343
+ pb.prototype.add = function (a, b) { var c = qb.get(); c.set(a, b); this.h ? this.h.next = c : this.g = c; this.h = c; };
344
+ return pb;
345
+ }());
346
+ var qb = new /** @class */ (function () {
347
+ function class_1(a, b) {
348
+ this.i = a;
349
+ this.j = b;
350
+ this.h = 0;
351
+ this.g = null;
352
+ }
353
+ class_1.prototype.get = function () { var a; 0 < this.h ? (this.h--, a = this.g, this.g = a.next, a.next = null) : a = this.i(); return a; };
354
+ return class_1;
355
+ }())(function () { return new rb; }, function (a) { return a.reset(); });
356
+ var rb = /** @class */ (function () {
357
+ function rb() {
358
+ this.next = this.g = this.h = null;
359
+ }
360
+ rb.prototype.set = function (a, b) { this.h = a; this.g = b; this.next = null; };
361
+ rb.prototype.reset = function () { this.next = this.g = this.h = null; };
362
+ return rb;
363
+ }());
364
+ function sb(a) { l.setTimeout(function () { throw a; }, 0); }
365
+ function tb(a, b) { ub || vb(); wb || (ub(), wb = !0); ob.add(a, b); }
366
+ var ub;
367
+ function vb() { var a = l.Promise.resolve(void 0); ub = function () { a.then(xb); }; }
368
+ var wb = !1, ob = new pb;
369
+ function xb() { for (var a; a = nb();) {
370
+ try {
371
+ a.h.call(a.g);
372
+ }
373
+ catch (c) {
374
+ sb(c);
375
+ }
376
+ var b = qb;
377
+ b.j(a);
378
+ 100 > b.h && (b.h++, a.next = b.g, b.g = a);
379
+ } wb = !1; }
380
+ function yb(a, b) { B.call(this); this.h = a || 1; this.g = b || l; this.j = q(this.qb, this); this.l = Date.now(); }
381
+ r(yb, B);
382
+ k = yb.prototype;
383
+ k.ga = !1;
384
+ k.T = null;
385
+ k.qb = function () { if (this.ga) {
386
+ var a = Date.now() - this.l;
387
+ 0 < a && a < .8 * this.h ? this.T = this.g.setTimeout(this.j, this.h - a) : (this.T && (this.g.clearTimeout(this.T), this.T = null), C(this, "tick"), this.ga && (zb(this), this.start()));
388
+ } };
389
+ k.start = function () { this.ga = !0; this.T || (this.T = this.g.setTimeout(this.j, this.h), this.l = Date.now()); };
390
+ function zb(a) { a.ga = !1; a.T && (a.g.clearTimeout(a.T), a.T = null); }
391
+ k.N = function () { yb.$.N.call(this); zb(this); delete this.g; };
392
+ function Ab(a, b, c) { if ("function" === typeof a)
393
+ c && (a = q(a, c));
394
+ else if (a && "function" == typeof a.handleEvent)
395
+ a = q(a.handleEvent, a);
396
+ else
397
+ throw Error("Invalid listener argument"); return 2147483647 < Number(b) ? -1 : l.setTimeout(a, b || 0); }
398
+ function Bb(a) { a.g = Ab(function () { a.g = null; a.i && (a.i = !1, Bb(a)); }, a.j); var b = a.h; a.h = null; a.m.apply(null, b); }
399
+ var Cb = /** @class */ (function (_super) {
400
+ __extends(Cb, _super);
401
+ function Cb(a, b) {
402
+ var _this = _super.call(this) || this;
403
+ _this.m = a;
404
+ _this.j = b;
405
+ _this.h = null;
406
+ _this.i = !1;
407
+ _this.g = null;
408
+ return _this;
409
+ }
410
+ Cb.prototype.l = function (a) { this.h = arguments; this.g ? this.i = !0 : Bb(this); };
411
+ Cb.prototype.N = function () { _super.prototype.N.call(this); this.g && (l.clearTimeout(this.g), this.g = null, this.i = !1, this.h = null); };
412
+ return Cb;
413
+ }(v));
414
+ function Db(a) { v.call(this); this.h = a; this.g = {}; }
415
+ r(Db, v);
416
+ var Eb = [];
417
+ function Gb(a, b, c, d) { Array.isArray(c) || (c && (Eb[0] = c.toString()), c = Eb); for (var e = 0; e < c.length; e++) {
418
+ var f = ab(b, c[e], d || a.handleEvent, !1, a.h || a);
419
+ if (!f)
420
+ break;
421
+ a.g[f.key] = f;
422
+ } }
423
+ function Hb(a) { Ra(a.g, function (b, c) { this.g.hasOwnProperty(c) && jb(b); }, a); a.g = {}; }
424
+ Db.prototype.N = function () { Db.$.N.call(this); Hb(this); };
425
+ Db.prototype.handleEvent = function () { throw Error("EventHandler.handleEvent not implemented"); };
426
+ function Ib() { this.g = !0; }
427
+ Ib.prototype.Ea = function () { this.g = !1; };
428
+ function Jb(a, b, c, d, e, f) { a.info(function () { if (a.g)
429
+ if (f) {
430
+ var h = "";
431
+ for (var m = f.split("&"), t = 0; t < m.length; t++) {
432
+ var n = m[t].split("=");
433
+ if (1 < n.length) {
434
+ var u = n[0];
435
+ n = n[1];
436
+ var L = u.split("_");
437
+ h = 2 <= L.length && "type" == L[1] ? h + (u + "=" + n + "&") : h + (u + "=redacted&");
438
+ }
439
+ }
440
+ }
441
+ else
442
+ h = null;
443
+ else
444
+ h = f; return "XMLHTTP REQ (" + d + ") [attempt " + e + "]: " + b + "\n" + c + "\n" + h; }); }
445
+ function Kb(a, b, c, d, e, f, h) { a.info(function () { return "XMLHTTP RESP (" + d + ") [ attempt " + e + "]: " + b + "\n" + c + "\n" + f + " " + h; }); }
446
+ function D(a, b, c, d) { a.info(function () { return "XMLHTTP TEXT (" + b + "): " + Lb(a, c) + (d ? " " + d : ""); }); }
447
+ function Mb(a, b) { a.info(function () { return "TIMEOUT: " + b; }); }
448
+ Ib.prototype.info = function () { };
449
+ function Lb(a, b) { if (!a.g)
450
+ return b; if (!b)
451
+ return null; try {
452
+ var c = JSON.parse(b);
453
+ if (c)
454
+ for (a = 0; a < c.length; a++)
455
+ if (Array.isArray(c[a])) {
456
+ var d = c[a];
457
+ if (!(2 > d.length)) {
458
+ var e = d[1];
459
+ if (Array.isArray(e) && !(1 > e.length)) {
460
+ var f = e[0];
461
+ if ("noop" != f && "stop" != f && "close" != f)
462
+ for (var h = 1; h < e.length; h++)
463
+ e[h] = "";
464
+ }
465
+ }
466
+ }
467
+ return mb(c);
468
+ }
469
+ catch (m) {
470
+ return b;
471
+ } }
472
+ var E = {}, Nb = null;
473
+ function Ob() { return Nb = Nb || new B; }
474
+ E.Ta = "serverreachability";
475
+ function Pb(a) { w.call(this, E.Ta, a); }
476
+ r(Pb, w);
477
+ function Qb(a) { var b = Ob(); C(b, new Pb(b)); }
478
+ E.STAT_EVENT = "statevent";
479
+ function Rb(a, b) { w.call(this, E.STAT_EVENT, a); this.stat = b; }
480
+ r(Rb, w);
481
+ function F(a) { var b = Ob(); C(b, new Rb(b, a)); }
482
+ E.Ua = "timingevent";
483
+ function Sb(a, b) { w.call(this, E.Ua, a); this.size = b; }
484
+ r(Sb, w);
485
+ function Tb(a, b) { if ("function" !== typeof a)
486
+ throw Error("Fn must not be null and must be a function"); return l.setTimeout(function () { a(); }, b); }
487
+ var Ub = { NO_ERROR: 0, rb: 1, Eb: 2, Db: 3, yb: 4, Cb: 5, Fb: 6, Qa: 7, TIMEOUT: 8, Ib: 9 };
488
+ var Vb = { wb: "complete", Sb: "success", Ra: "error", Qa: "abort", Kb: "ready", Lb: "readystatechange", TIMEOUT: "timeout", Gb: "incrementaldata", Jb: "progress", zb: "downloadprogress", $b: "uploadprogress" };
489
+ function Wb() { }
490
+ Wb.prototype.h = null;
491
+ function Xb(a) { return a.h || (a.h = a.i()); }
492
+ function Yb() { }
493
+ var Zb = { OPEN: "a", vb: "b", Ra: "c", Hb: "d" };
494
+ function $b() { w.call(this, "d"); }
495
+ r($b, w);
496
+ function ac() { w.call(this, "c"); }
497
+ r(ac, w);
498
+ var bc;
499
+ function cc() { }
500
+ r(cc, Wb);
501
+ cc.prototype.g = function () { return new XMLHttpRequest; };
502
+ cc.prototype.i = function () { return {}; };
503
+ bc = new cc;
504
+ function dc(a, b, c, d) { this.l = a; this.j = b; this.m = c; this.W = d || 1; this.U = new Db(this); this.P = ec; a = ya ? 125 : void 0; this.V = new yb(a); this.I = null; this.i = !1; this.s = this.A = this.v = this.L = this.G = this.Y = this.B = null; this.F = []; this.g = null; this.C = 0; this.o = this.u = null; this.aa = -1; this.J = !1; this.O = 0; this.M = null; this.ca = this.K = this.ba = this.S = !1; this.h = new fc; }
505
+ function fc() { this.i = null; this.g = ""; this.h = !1; }
506
+ var ec = 45E3, gc = {}, hc = {};
507
+ k = dc.prototype;
508
+ k.setTimeout = function (a) { this.P = a; };
509
+ function ic(a, b, c) { a.L = 1; a.v = jc(G(b)); a.s = c; a.S = !0; kc(a, null); }
510
+ function kc(a, b) { a.G = Date.now(); lc(a); a.A = G(a.v); var c = a.A, d = a.W; Array.isArray(d) || (d = [String(d)]); mc(c.i, "t", d); a.C = 0; c = a.l.I; a.h = new fc; a.g = nc(a.l, c ? b : null, !a.s); 0 < a.O && (a.M = new Cb(q(a.Pa, a, a.g), a.O)); Gb(a.U, a.g, "readystatechange", a.nb); b = a.I ? Sa(a.I) : {}; a.s ? (a.u || (a.u = "POST"), b["Content-Type"] = "application/x-www-form-urlencoded", a.g.ha(a.A, a.u, a.s, b)) : (a.u = "GET", a.g.ha(a.A, a.u, null, b)); Qb(); Jb(a.j, a.u, a.A, a.m, a.W, a.s); }
511
+ k.nb = function (a) { a = a.target; var b = this.M; b && 3 == H(a) ? b.l() : this.Pa(a); };
512
+ k.Pa = function (a) {
513
+ try {
514
+ if (a == this.g)
515
+ a: {
516
+ var u = H(this.g);
517
+ var b = this.g.Ia();
518
+ var L = this.g.da();
519
+ if (!(3 > u) && (3 != u || ya || this.g && (this.h.h || this.g.ja() || oc(this.g)))) {
520
+ this.J || 4 != u || 7 == b || (8 == b || 0 >= L ? Qb(3) : Qb(2));
521
+ pc(this);
522
+ var c = this.g.da();
523
+ this.aa = c;
524
+ b: if (qc(this)) {
525
+ var d = oc(this.g);
526
+ a = "";
527
+ var e = d.length, f = 4 == H(this.g);
528
+ if (!this.h.i) {
529
+ if ("undefined" === typeof TextDecoder) {
530
+ I(this);
531
+ rc(this);
532
+ var h = "";
533
+ break b;
534
+ }
535
+ this.h.i = new l.TextDecoder;
536
+ }
537
+ for (b = 0; b < e; b++)
538
+ this.h.h = !0, a += this.h.i.decode(d[b], { stream: f && b == e - 1 });
539
+ d.splice(0, e);
540
+ this.h.g += a;
541
+ this.C = 0;
542
+ h = this.h.g;
543
+ }
544
+ else
545
+ h = this.g.ja();
546
+ this.i = 200 == c;
547
+ Kb(this.j, this.u, this.A, this.m, this.W, u, c);
548
+ if (this.i) {
549
+ if (this.ba && !this.K) {
550
+ b: {
551
+ if (this.g) {
552
+ var m, t = this.g;
553
+ if ((m = t.g ? t.g.getResponseHeader("X-HTTP-Initial-Response") : null) && !qa(m)) {
554
+ var n = m;
555
+ break b;
556
+ }
557
+ }
558
+ n = null;
559
+ }
560
+ if (c = n)
561
+ D(this.j, this.m, c, "Initial handshake response via X-HTTP-Initial-Response"), this.K = !0, sc(this, c);
562
+ else {
563
+ this.i = !1;
564
+ this.o = 3;
565
+ F(12);
566
+ I(this);
567
+ rc(this);
568
+ break a;
569
+ }
570
+ }
571
+ this.S ? (tc(this, u, h), ya && this.i && 3 == u && (Gb(this.U, this.V, "tick", this.mb),
572
+ this.V.start())) : (D(this.j, this.m, h, null), sc(this, h));
573
+ 4 == u && I(this);
574
+ this.i && !this.J && (4 == u ? uc(this.l, this) : (this.i = !1, lc(this)));
575
+ }
576
+ else
577
+ 400 == c && 0 < h.indexOf("Unknown SID") ? (this.o = 3, F(12)) : (this.o = 0, F(13)), I(this), rc(this);
578
+ }
579
+ }
580
+ }
581
+ catch (u) { }
582
+ finally { }
583
+ };
584
+ function qc(a) { return a.g ? "GET" == a.u && 2 != a.L && a.l.Ha : !1; }
585
+ function tc(a, b, c) {
586
+ var d = !0, e;
587
+ for (; !a.J && a.C < c.length;)
588
+ if (e = vc(a, c), e == hc) {
589
+ 4 == b && (a.o = 4, F(14), d = !1);
590
+ D(a.j, a.m, null, "[Incomplete Response]");
591
+ break;
592
+ }
593
+ else if (e == gc) {
594
+ a.o = 4;
595
+ F(15);
596
+ D(a.j, a.m, c, "[Invalid Chunk]");
597
+ d = !1;
598
+ break;
599
+ }
600
+ else
601
+ D(a.j, a.m, e, null), sc(a, e);
602
+ qc(a) && e != hc && e != gc && (a.h.g = "", a.C = 0);
603
+ 4 != b || 0 != c.length || a.h.h || (a.o = 1, F(16), d = !1);
604
+ a.i = a.i && d;
605
+ d ? 0 < c.length && !a.ca && (a.ca = !0, b = a.l, b.g == a && b.ca && !b.L && (b.j.info("Great, no buffering proxy detected. Bytes received: " + c.length), wc(b), b.L = !0, F(11))) : (D(a.j, a.m, c, "[Invalid Chunked Response]"), I(a), rc(a));
606
+ }
607
+ k.mb = function () { if (this.g) {
608
+ var a = H(this.g), b = this.g.ja();
609
+ this.C < b.length && (pc(this), tc(this, a, b), this.i && 4 != a && lc(this));
610
+ } };
611
+ function vc(a, b) { var c = a.C, d = b.indexOf("\n", c); if (-1 == d)
612
+ return hc; c = Number(b.substring(c, d)); if (isNaN(c))
613
+ return gc; d += 1; if (d + c > b.length)
614
+ return hc; b = b.substr(d, c); a.C = d + c; return b; }
615
+ k.cancel = function () { this.J = !0; I(this); };
616
+ function lc(a) { a.Y = Date.now() + a.P; xc(a, a.P); }
617
+ function xc(a, b) { if (null != a.B)
618
+ throw Error("WatchDog timer not null"); a.B = Tb(q(a.lb, a), b); }
619
+ function pc(a) { a.B && (l.clearTimeout(a.B), a.B = null); }
620
+ k.lb = function () { this.B = null; var a = Date.now(); 0 <= a - this.Y ? (Mb(this.j, this.A), 2 != this.L && (Qb(), F(17)), I(this), this.o = 2, rc(this)) : xc(this, this.Y - a); };
621
+ function rc(a) { 0 == a.l.H || a.J || uc(a.l, a); }
622
+ function I(a) { pc(a); var b = a.M; b && "function" == typeof b.ra && b.ra(); a.M = null; zb(a.V); Hb(a.U); a.g && (b = a.g, a.g = null, b.abort(), b.ra()); }
623
+ function sc(a, b) {
624
+ try {
625
+ var c = a.l;
626
+ if (0 != c.H && (c.g == a || yc(c.h, a)))
627
+ if (!a.K && yc(c.h, a) && 3 == c.H) {
628
+ try {
629
+ var d = c.Ja.g.parse(b);
630
+ }
631
+ catch (n) {
632
+ d = null;
633
+ }
634
+ if (Array.isArray(d) && 3 == d.length) {
635
+ var e = d;
636
+ if (0 == e[0])
637
+ a: {
638
+ if (!c.u) {
639
+ if (c.g)
640
+ if (c.g.G + 3E3 < a.G)
641
+ zc(c), Ac(c);
642
+ else
643
+ break a;
644
+ Bc(c);
645
+ F(18);
646
+ }
647
+ }
648
+ else
649
+ c.Fa = e[1], 0 < c.Fa - c.V && 37500 > e[2] && c.M && 0 == c.A && !c.v && (c.v = Tb(q(c.ib, c), 6E3));
650
+ if (1 >= Cc(c.h) && c.na) {
651
+ try {
652
+ c.na();
653
+ }
654
+ catch (n) { }
655
+ c.na = void 0;
656
+ }
657
+ }
658
+ else
659
+ J(c, 11);
660
+ }
661
+ else if ((a.K || c.g == a) && zc(c), !qa(b))
662
+ for (e = c.Ja.g.parse(b), b = 0; b < e.length; b++) {
663
+ var n = e[b];
664
+ c.V =
665
+ n[0];
666
+ n = n[1];
667
+ if (2 == c.H)
668
+ if ("c" == n[0]) {
669
+ c.J = n[1];
670
+ c.oa = n[2];
671
+ var u = n[3];
672
+ null != u && (c.qa = u, c.j.info("VER=" + c.qa));
673
+ var L = n[4];
674
+ null != L && (c.Ga = L, c.j.info("SVER=" + c.Ga));
675
+ var La = n[5];
676
+ null != La && "number" === typeof La && 0 < La && (d = 1.5 * La, c.K = d, c.j.info("backChannelRequestTimeoutMs_=" + d));
677
+ d = c;
678
+ var ia = a.g;
679
+ if (ia) {
680
+ var Ma = ia.g ? ia.g.getResponseHeader("X-Client-Wire-Protocol") : null;
681
+ if (Ma) {
682
+ var f = d.h;
683
+ f.g || -1 == Ma.indexOf("spdy") && -1 == Ma.indexOf("quic") && -1 == Ma.indexOf("h2") || (f.j = f.l, f.g = new Set, f.h && (Dc(f, f.h), f.h = null));
684
+ }
685
+ if (d.F) {
686
+ var Fb = ia.g ? ia.g.getResponseHeader("X-HTTP-Session-Id") : null;
687
+ Fb && (d.Da = Fb, K(d.G, d.F, Fb));
688
+ }
689
+ }
690
+ c.H = 3;
691
+ c.l && c.l.Ba();
692
+ c.ca && (c.S = Date.now() - a.G, c.j.info("Handshake RTT: " + c.S + "ms"));
693
+ d = c;
694
+ var h = a;
695
+ d.wa = Ec(d, d.I ? d.oa : null, d.Y);
696
+ if (h.K) {
697
+ Fc(d.h, h);
698
+ var m = h, t = d.K;
699
+ t && m.setTimeout(t);
700
+ m.B && (pc(m), lc(m));
701
+ d.g = h;
702
+ }
703
+ else
704
+ Gc(d);
705
+ 0 < c.i.length && Hc(c);
706
+ }
707
+ else
708
+ "stop" != n[0] && "close" != n[0] || J(c, 7);
709
+ else
710
+ 3 == c.H && ("stop" == n[0] || "close" == n[0] ? "stop" == n[0] ? J(c, 7) : Ic(c) : "noop" != n[0] && c.l && c.l.Aa(n), c.A = 0);
711
+ }
712
+ Qb(4);
713
+ }
714
+ catch (n) { }
715
+ }
716
+ function Jc(a) { if (a.Z && "function" == typeof a.Z)
717
+ return a.Z(); if ("undefined" !== typeof Map && a instanceof Map || "undefined" !== typeof Set && a instanceof Set)
718
+ return Array.from(a.values()); if ("string" === typeof a)
719
+ return a.split(""); if (ba(a)) {
720
+ for (var b = [], c = a.length, d = 0; d < c; d++)
721
+ b.push(a[d]);
722
+ return b;
723
+ } b = []; c = 0; for (d in a)
724
+ b[c++] = a[d]; return b; }
725
+ function Kc(a) { if (a.sa && "function" == typeof a.sa)
726
+ return a.sa(); if (!a.Z || "function" != typeof a.Z) {
727
+ if ("undefined" !== typeof Map && a instanceof Map)
728
+ return Array.from(a.keys());
729
+ if (!("undefined" !== typeof Set && a instanceof Set)) {
730
+ if (ba(a) || "string" === typeof a) {
731
+ var b = [];
732
+ a = a.length;
733
+ for (var c = 0; c < a; c++)
734
+ b.push(c);
735
+ return b;
736
+ }
737
+ b = [];
738
+ c = 0;
739
+ for (var d in a)
740
+ b[c++] = d;
741
+ return b;
742
+ }
743
+ } }
744
+ function Lc(a, b) { if (a.forEach && "function" == typeof a.forEach)
745
+ a.forEach(b, void 0);
746
+ else if (ba(a) || "string" === typeof a)
747
+ Array.prototype.forEach.call(a, b, void 0);
748
+ else
749
+ for (var c = Kc(a), d = Jc(a), e = d.length, f = 0; f < e; f++)
750
+ b.call(void 0, d[f], c && c[f], a); }
751
+ var Mc = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");
752
+ function Nc(a, b) { if (a) {
753
+ a = a.split("&");
754
+ for (var c = 0; c < a.length; c++) {
755
+ var d = a[c].indexOf("="), e = null;
756
+ if (0 <= d) {
757
+ var f = a[c].substring(0, d);
758
+ e = a[c].substring(d + 1);
759
+ }
760
+ else
761
+ f = a[c];
762
+ b(f, e ? decodeURIComponent(e.replace(/\+/g, " ")) : "");
763
+ }
764
+ } }
765
+ function M(a, b) { this.g = this.s = this.j = ""; this.m = null; this.o = this.l = ""; this.h = !1; if (a instanceof M) {
766
+ this.h = void 0 !== b ? b : a.h;
767
+ Oc(this, a.j);
768
+ this.s = a.s;
769
+ this.g = a.g;
770
+ Pc(this, a.m);
771
+ this.l = a.l;
772
+ b = a.i;
773
+ var c = new Qc;
774
+ c.i = b.i;
775
+ b.g && (c.g = new Map(b.g), c.h = b.h);
776
+ Rc(this, c);
777
+ this.o = a.o;
778
+ }
779
+ else
780
+ a && (c = String(a).match(Mc)) ? (this.h = !!b, Oc(this, c[1] || "", !0), this.s = Sc(c[2] || ""), this.g = Sc(c[3] || "", !0), Pc(this, c[4]), this.l = Sc(c[5] || "", !0), Rc(this, c[6] || "", !0), this.o = Sc(c[7] || "")) : (this.h = !!b, this.i = new Qc(null, this.h)); }
781
+ M.prototype.toString = function () { var a = [], b = this.j; b && a.push(Tc(b, Uc, !0), ":"); var c = this.g; if (c || "file" == b)
782
+ a.push("//"), (b = this.s) && a.push(Tc(b, Uc, !0), "@"), a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g, "%$1")), c = this.m, null != c && a.push(":", String(c)); if (c = this.l)
783
+ this.g && "/" != c.charAt(0) && a.push("/"), a.push(Tc(c, "/" == c.charAt(0) ? Vc : Wc, !0)); (c = this.i.toString()) && a.push("?", c); (c = this.o) && a.push("#", Tc(c, Xc)); return a.join(""); };
784
+ function G(a) { return new M(a); }
785
+ function Oc(a, b, c) { a.j = c ? Sc(b, !0) : b; a.j && (a.j = a.j.replace(/:$/, "")); }
786
+ function Pc(a, b) { if (b) {
787
+ b = Number(b);
788
+ if (isNaN(b) || 0 > b)
789
+ throw Error("Bad port number " + b);
790
+ a.m = b;
791
+ }
792
+ else
793
+ a.m = null; }
794
+ function Rc(a, b, c) { b instanceof Qc ? (a.i = b, Yc(a.i, a.h)) : (c || (b = Tc(b, Zc)), a.i = new Qc(b, a.h)); }
795
+ function K(a, b, c) { a.i.set(b, c); }
796
+ function jc(a) { K(a, "zx", Math.floor(2147483648 * Math.random()).toString(36) + Math.abs(Math.floor(2147483648 * Math.random()) ^ Date.now()).toString(36)); return a; }
797
+ function Sc(a, b) { return a ? b ? decodeURI(a.replace(/%25/g, "%2525")) : decodeURIComponent(a) : ""; }
798
+ function Tc(a, b, c) { return "string" === typeof a ? (a = encodeURI(a).replace(b, $c), c && (a = a.replace(/%25([0-9a-fA-F]{2})/g, "%$1")), a) : null; }
799
+ function $c(a) { a = a.charCodeAt(0); return "%" + (a >> 4 & 15).toString(16) + (a & 15).toString(16); }
800
+ var Uc = /[#\/\?@]/g, Wc = /[#\?:]/g, Vc = /[#\?]/g, Zc = /[#\?@]/g, Xc = /#/g;
801
+ function Qc(a, b) { this.h = this.g = null; this.i = a || null; this.j = !!b; }
802
+ function N(a) { a.g || (a.g = new Map, a.h = 0, a.i && Nc(a.i, function (b, c) { a.add(decodeURIComponent(b.replace(/\+/g, " ")), c); })); }
803
+ k = Qc.prototype;
804
+ k.add = function (a, b) { N(this); this.i = null; a = O(this, a); var c = this.g.get(a); c || this.g.set(a, c = []); c.push(b); this.h += 1; return this; };
805
+ function ad(a, b) { N(a); b = O(a, b); a.g.has(b) && (a.i = null, a.h -= a.g.get(b).length, a.g.delete(b)); }
806
+ function bd(a, b) { N(a); b = O(a, b); return a.g.has(b); }
807
+ k.forEach = function (a, b) { N(this); this.g.forEach(function (c, d) { c.forEach(function (e) { a.call(b, e, d, this); }, this); }, this); };
808
+ k.sa = function () { N(this); var a = Array.from(this.g.values()), b = Array.from(this.g.keys()), c = []; for (var d = 0; d < b.length; d++) {
809
+ var e = a[d];
810
+ for (var f = 0; f < e.length; f++)
811
+ c.push(b[d]);
812
+ } return c; };
813
+ k.Z = function (a) { N(this); var b = []; if ("string" === typeof a)
814
+ bd(this, a) && (b = b.concat(this.g.get(O(this, a))));
815
+ else {
816
+ a = Array.from(this.g.values());
817
+ for (var c = 0; c < a.length; c++)
818
+ b = b.concat(a[c]);
819
+ } return b; };
820
+ k.set = function (a, b) { N(this); this.i = null; a = O(this, a); bd(this, a) && (this.h -= this.g.get(a).length); this.g.set(a, [b]); this.h += 1; return this; };
821
+ k.get = function (a, b) { if (!a)
822
+ return b; a = this.Z(a); return 0 < a.length ? String(a[0]) : b; };
823
+ function mc(a, b, c) { ad(a, b); 0 < c.length && (a.i = null, a.g.set(O(a, b), na(c)), a.h += c.length); }
824
+ k.toString = function () { if (this.i)
825
+ return this.i; if (!this.g)
826
+ return ""; var a = [], b = Array.from(this.g.keys()); for (var c = 0; c < b.length; c++) {
827
+ var d = b[c];
828
+ var f = encodeURIComponent(String(d)), h = this.Z(d);
829
+ for (d = 0; d < h.length; d++) {
830
+ var e = f;
831
+ "" !== h[d] && (e += "=" + encodeURIComponent(String(h[d])));
832
+ a.push(e);
833
+ }
834
+ } return this.i = a.join("&"); };
835
+ function O(a, b) { b = String(b); a.j && (b = b.toLowerCase()); return b; }
836
+ function Yc(a, b) { b && !a.j && (N(a), a.i = null, a.g.forEach(function (c, d) { var e = d.toLowerCase(); d != e && (ad(this, d), mc(this, e, c)); }, a)); a.j = b; }
837
+ var cd = /** @class */ (function () {
838
+ function cd(a, b) {
839
+ this.h = a;
840
+ this.g = b;
841
+ }
842
+ return cd;
843
+ }());
844
+ function dd(a) { this.l = a || ed; l.PerformanceNavigationTiming ? (a = l.performance.getEntriesByType("navigation"), a = 0 < a.length && ("hq" == a[0].nextHopProtocol || "h2" == a[0].nextHopProtocol)) : a = !!(l.g && l.g.Ka && l.g.Ka() && l.g.Ka().ec); this.j = a ? this.l : 1; this.g = null; 1 < this.j && (this.g = new Set); this.h = null; this.i = []; }
845
+ var ed = 10;
846
+ function fd(a) { return a.h ? !0 : a.g ? a.g.size >= a.j : !1; }
847
+ function Cc(a) { return a.h ? 1 : a.g ? a.g.size : 0; }
848
+ function yc(a, b) { return a.h ? a.h == b : a.g ? a.g.has(b) : !1; }
849
+ function Dc(a, b) { a.g ? a.g.add(b) : a.h = b; }
850
+ function Fc(a, b) { a.h && a.h == b ? a.h = null : a.g && a.g.has(b) && a.g.delete(b); }
851
+ dd.prototype.cancel = function () {
852
+ var e_1, _a;
853
+ this.i = gd(this);
854
+ if (this.h)
855
+ this.h.cancel(), this.h = null;
856
+ else if (this.g && 0 !== this.g.size) {
857
+ try {
858
+ for (var _b = __values(this.g.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
859
+ var a = _c.value;
860
+ a.cancel();
861
+ }
862
+ }
863
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
864
+ finally {
865
+ try {
866
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
867
+ }
868
+ finally { if (e_1) throw e_1.error; }
869
+ }
870
+ this.g.clear();
871
+ }
872
+ };
873
+ function gd(a) {
874
+ var e_2, _a;
875
+ if (null != a.h)
876
+ return a.i.concat(a.h.F);
877
+ if (null != a.g && 0 !== a.g.size) {
878
+ var b = a.i;
879
+ try {
880
+ for (var _b = __values(a.g.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
881
+ var c = _c.value;
882
+ b = b.concat(c.F);
883
+ }
884
+ }
885
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
886
+ finally {
887
+ try {
888
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
889
+ }
890
+ finally { if (e_2) throw e_2.error; }
891
+ }
892
+ return b;
893
+ }
894
+ return na(a.i);
895
+ }
896
+ function hd() { }
897
+ hd.prototype.stringify = function (a) { return l.JSON.stringify(a, void 0); };
898
+ hd.prototype.parse = function (a) { return l.JSON.parse(a, void 0); };
899
+ function id() { this.g = new hd; }
900
+ function jd(a, b, c) { var d = c || ""; try {
901
+ Lc(a, function (e, f) { var h = e; p(e) && (h = mb(e)); b.push(d + f + "=" + encodeURIComponent(h)); });
902
+ }
903
+ catch (e) {
904
+ throw b.push(d + "type=" + encodeURIComponent("_badmap")), e;
905
+ } }
906
+ function kd(a, b) { var c = new Ib; if (l.Image) {
907
+ var d_1 = new Image;
908
+ d_1.onload = ja(ld, c, d_1, "TestLoadImage: loaded", !0, b);
909
+ d_1.onerror = ja(ld, c, d_1, "TestLoadImage: error", !1, b);
910
+ d_1.onabort = ja(ld, c, d_1, "TestLoadImage: abort", !1, b);
911
+ d_1.ontimeout = ja(ld, c, d_1, "TestLoadImage: timeout", !1, b);
912
+ l.setTimeout(function () { if (d_1.ontimeout)
913
+ d_1.ontimeout(); }, 1E4);
914
+ d_1.src = a;
915
+ }
916
+ else
917
+ b(!1); }
918
+ function ld(a, b, c, d, e) { try {
919
+ b.onload = null, b.onerror = null, b.onabort = null, b.ontimeout = null, e(d);
920
+ }
921
+ catch (f) { } }
922
+ function md(a) { this.l = a.fc || null; this.j = a.ob || !1; }
923
+ r(md, Wb);
924
+ md.prototype.g = function () { return new nd(this.l, this.j); };
925
+ md.prototype.i = function (a) { return function () { return a; }; }({});
926
+ function nd(a, b) { B.call(this); this.F = a; this.u = b; this.m = void 0; this.readyState = od; this.status = 0; this.responseType = this.responseText = this.response = this.statusText = ""; this.onreadystatechange = null; this.v = new Headers; this.h = null; this.C = "GET"; this.B = ""; this.g = !1; this.A = this.j = this.l = null; }
927
+ r(nd, B);
928
+ var od = 0;
929
+ k = nd.prototype;
930
+ k.open = function (a, b) { if (this.readyState != od)
931
+ throw this.abort(), Error("Error reopening a connection"); this.C = a; this.B = b; this.readyState = 1; pd(this); };
932
+ k.send = function (a) { if (1 != this.readyState)
933
+ throw this.abort(), Error("need to call open() first. "); this.g = !0; var b = { headers: this.v, method: this.C, credentials: this.m, cache: void 0 }; a && (b.body = a); (this.F || l).fetch(new Request(this.B, b)).then(this.$a.bind(this), this.ka.bind(this)); };
934
+ k.abort = function () { this.response = this.responseText = ""; this.v = new Headers; this.status = 0; this.j && this.j.cancel("Request was aborted.").catch(function () { }); 1 <= this.readyState && this.g && 4 != this.readyState && (this.g = !1, qd(this)); this.readyState = od; };
935
+ k.$a = function (a) {
936
+ if (this.g && (this.l = a, this.h || (this.status = this.l.status, this.statusText = this.l.statusText, this.h = a.headers, this.readyState = 2, pd(this)), this.g && (this.readyState = 3, pd(this), this.g)))
937
+ if ("arraybuffer" === this.responseType)
938
+ a.arrayBuffer().then(this.Ya.bind(this), this.ka.bind(this));
939
+ else if ("undefined" !== typeof l.ReadableStream && "body" in a) {
940
+ this.j = a.body.getReader();
941
+ if (this.u) {
942
+ if (this.responseType)
943
+ throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
944
+ this.response =
945
+ [];
946
+ }
947
+ else
948
+ this.response = this.responseText = "", this.A = new TextDecoder;
949
+ rd(this);
950
+ }
951
+ else
952
+ a.text().then(this.Za.bind(this), this.ka.bind(this));
953
+ };
954
+ function rd(a) { a.j.read().then(a.Xa.bind(a)).catch(a.ka.bind(a)); }
955
+ k.Xa = function (a) { if (this.g) {
956
+ if (this.u && a.value)
957
+ this.response.push(a.value);
958
+ else if (!this.u) {
959
+ var b = a.value ? a.value : new Uint8Array(0);
960
+ if (b = this.A.decode(b, { stream: !a.done }))
961
+ this.response = this.responseText += b;
962
+ }
963
+ a.done ? qd(this) : pd(this);
964
+ 3 == this.readyState && rd(this);
965
+ } };
966
+ k.Za = function (a) { this.g && (this.response = this.responseText = a, qd(this)); };
967
+ k.Ya = function (a) { this.g && (this.response = a, qd(this)); };
968
+ k.ka = function () { this.g && qd(this); };
969
+ function qd(a) { a.readyState = 4; a.l = null; a.j = null; a.A = null; pd(a); }
970
+ k.setRequestHeader = function (a, b) { this.v.append(a, b); };
971
+ k.getResponseHeader = function (a) { return this.h ? this.h.get(a.toLowerCase()) || "" : ""; };
972
+ k.getAllResponseHeaders = function () { if (!this.h)
973
+ return ""; var a = [], b = this.h.entries(); for (var c = b.next(); !c.done;)
974
+ c = c.value, a.push(c[0] + ": " + c[1]), c = b.next(); return a.join("\r\n"); };
975
+ function pd(a) { a.onreadystatechange && a.onreadystatechange.call(a); }
976
+ Object.defineProperty(nd.prototype, "withCredentials", { get: function () { return "include" === this.m; }, set: function (a) { this.m = a ? "include" : "same-origin"; } });
977
+ var sd = l.JSON.parse;
978
+ function P(a) { B.call(this); this.headers = new Map; this.u = a || null; this.h = !1; this.C = this.g = null; this.I = ""; this.m = 0; this.j = ""; this.l = this.G = this.v = this.F = !1; this.B = 0; this.A = null; this.K = td; this.L = this.M = !1; }
979
+ r(P, B);
980
+ var td = "", ud = /^https?$/i, vd = ["POST", "PUT"];
981
+ k = P.prototype;
982
+ k.Oa = function (a) { this.M = a; };
983
+ k.ha = function (a, b, c, d) {
984
+ var e_3, _a, e_4, _b;
985
+ if (this.g)
986
+ throw Error("[goog.net.XhrIo] Object is active with another request=" + this.I + "; newUri=" + a);
987
+ b = b ? b.toUpperCase() : "GET";
988
+ this.I = a;
989
+ this.j = "";
990
+ this.m = 0;
991
+ this.F = !1;
992
+ this.h = !0;
993
+ this.g = this.u ? this.u.g() : bc.g();
994
+ this.C = this.u ? Xb(this.u) : Xb(bc);
995
+ this.g.onreadystatechange = q(this.La, this);
996
+ try {
997
+ this.G = !0, this.g.open(b, String(a), !0), this.G = !1;
998
+ }
999
+ catch (f) {
1000
+ wd(this, f);
1001
+ return;
1002
+ }
1003
+ a = c || "";
1004
+ c = new Map(this.headers);
1005
+ if (d)
1006
+ if (Object.getPrototypeOf(d) === Object.prototype)
1007
+ for (var e in d)
1008
+ c.set(e, d[e]);
1009
+ else if ("function" ===
1010
+ typeof d.keys && "function" === typeof d.get)
1011
+ try {
1012
+ for (var _c = __values(d.keys()), _d = _c.next(); !_d.done; _d = _c.next()) {
1013
+ var f = _d.value;
1014
+ c.set(f, d.get(f));
1015
+ }
1016
+ }
1017
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
1018
+ finally {
1019
+ try {
1020
+ if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
1021
+ }
1022
+ finally { if (e_3) throw e_3.error; }
1023
+ }
1024
+ else
1025
+ throw Error("Unknown input type for opt_headers: " + String(d));
1026
+ d = Array.from(c.keys()).find(function (f) { return "content-type" == f.toLowerCase(); });
1027
+ e = l.FormData && a instanceof l.FormData;
1028
+ !(0 <= ma(vd, b)) || d || e || c.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
1029
+ try {
1030
+ for (var c_1 = __values(c), c_1_1 = c_1.next(); !c_1_1.done; c_1_1 = c_1.next()) {
1031
+ var _e = __read(c_1_1.value, 2), f = _e[0], h = _e[1];
1032
+ this.g.setRequestHeader(f, h);
1033
+ }
1034
+ }
1035
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
1036
+ finally {
1037
+ try {
1038
+ if (c_1_1 && !c_1_1.done && (_b = c_1.return)) _b.call(c_1);
1039
+ }
1040
+ finally { if (e_4) throw e_4.error; }
1041
+ }
1042
+ this.K && (this.g.responseType = this.K);
1043
+ "withCredentials" in this.g && this.g.withCredentials !== this.M && (this.g.withCredentials =
1044
+ this.M);
1045
+ try {
1046
+ xd(this), 0 < this.B && ((this.L = yd(this.g)) ? (this.g.timeout = this.B, this.g.ontimeout = q(this.ua, this)) : this.A = Ab(this.ua, this.B, this)), this.v = !0, this.g.send(a), this.v = !1;
1047
+ }
1048
+ catch (f) {
1049
+ wd(this, f);
1050
+ }
1051
+ };
1052
+ function yd(a) { return y && Ha() && "number" === typeof a.timeout && void 0 !== a.ontimeout; }
1053
+ k.ua = function () { "undefined" != typeof goog && this.g && (this.j = "Timed out after " + this.B + "ms, aborting", this.m = 8, C(this, "timeout"), this.abort(8)); };
1054
+ function wd(a, b) { a.h = !1; a.g && (a.l = !0, a.g.abort(), a.l = !1); a.j = b; a.m = 5; zd(a); Ad(a); }
1055
+ function zd(a) { a.F || (a.F = !0, C(a, "complete"), C(a, "error")); }
1056
+ k.abort = function (a) { this.g && this.h && (this.h = !1, this.l = !0, this.g.abort(), this.l = !1, this.m = a || 7, C(this, "complete"), C(this, "abort"), Ad(this)); };
1057
+ k.N = function () { this.g && (this.h && (this.h = !1, this.l = !0, this.g.abort(), this.l = !1), Ad(this, !0)); P.$.N.call(this); };
1058
+ k.La = function () { this.s || (this.G || this.v || this.l ? Bd(this) : this.kb()); };
1059
+ k.kb = function () { Bd(this); };
1060
+ function Bd(a) {
1061
+ if (a.h && "undefined" != typeof goog && (!a.C[1] || 4 != H(a) || 2 != a.da()))
1062
+ if (a.v && 4 == H(a))
1063
+ Ab(a.La, 0, a);
1064
+ else if (C(a, "readystatechange"), 4 == H(a)) {
1065
+ a.h = !1;
1066
+ try {
1067
+ var m = a.da();
1068
+ a: switch (m) {
1069
+ case 200:
1070
+ case 201:
1071
+ case 202:
1072
+ case 204:
1073
+ case 206:
1074
+ case 304:
1075
+ case 1223:
1076
+ var b = !0;
1077
+ break a;
1078
+ default: b = !1;
1079
+ }
1080
+ var c;
1081
+ if (!(c = b)) {
1082
+ var d;
1083
+ if (d = 0 === m) {
1084
+ var e = String(a.I).match(Mc)[1] || null;
1085
+ if (!e && l.self && l.self.location) {
1086
+ var f = l.self.location.protocol;
1087
+ e = f.substr(0, f.length - 1);
1088
+ }
1089
+ d = !ud.test(e ? e.toLowerCase() : "");
1090
+ }
1091
+ c = d;
1092
+ }
1093
+ if (c)
1094
+ C(a, "complete"), C(a, "success");
1095
+ else {
1096
+ a.m = 6;
1097
+ try {
1098
+ var h = 2 < H(a) ? a.g.statusText : "";
1099
+ }
1100
+ catch (t) {
1101
+ h = "";
1102
+ }
1103
+ a.j = h + " [" + a.da() + "]";
1104
+ zd(a);
1105
+ }
1106
+ }
1107
+ finally {
1108
+ Ad(a);
1109
+ }
1110
+ }
1111
+ }
1112
+ function Ad(a, b) { if (a.g) {
1113
+ xd(a);
1114
+ var c = a.g, d = a.C[0] ? aa : null;
1115
+ a.g = null;
1116
+ a.C = null;
1117
+ b || C(a, "ready");
1118
+ try {
1119
+ c.onreadystatechange = d;
1120
+ }
1121
+ catch (e) { }
1122
+ } }
1123
+ function xd(a) { a.g && a.L && (a.g.ontimeout = null); a.A && (l.clearTimeout(a.A), a.A = null); }
1124
+ function H(a) { return a.g ? a.g.readyState : 0; }
1125
+ k.da = function () { try {
1126
+ return 2 < H(this) ? this.g.status : -1;
1127
+ }
1128
+ catch (a) {
1129
+ return -1;
1130
+ } };
1131
+ k.ja = function () { try {
1132
+ return this.g ? this.g.responseText : "";
1133
+ }
1134
+ catch (a) {
1135
+ return "";
1136
+ } };
1137
+ k.Wa = function (a) { if (this.g) {
1138
+ var b = this.g.responseText;
1139
+ a && 0 == b.indexOf(a) && (b = b.substring(a.length));
1140
+ return sd(b);
1141
+ } };
1142
+ function oc(a) { try {
1143
+ if (!a.g)
1144
+ return null;
1145
+ if ("response" in a.g)
1146
+ return a.g.response;
1147
+ switch (a.K) {
1148
+ case td:
1149
+ case "text": return a.g.responseText;
1150
+ case "arraybuffer": if ("mozResponseArrayBuffer" in a.g)
1151
+ return a.g.mozResponseArrayBuffer;
1152
+ }
1153
+ return null;
1154
+ }
1155
+ catch (b) {
1156
+ return null;
1157
+ } }
1158
+ k.Ia = function () { return this.m; };
1159
+ k.Sa = function () { return "string" === typeof this.j ? this.j : String(this.j); };
1160
+ function Cd(a) { var b = ""; Ra(a, function (c, d) { b += d; b += ":"; b += c; b += "\r\n"; }); return b; }
1161
+ function Dd(a, b, c) { a: {
1162
+ for (d in c) {
1163
+ var d = !1;
1164
+ break a;
1165
+ }
1166
+ d = !0;
1167
+ } d || (c = Cd(c), "string" === typeof a ? (null != c && encodeURIComponent(String(c))) : K(a, b, c)); }
1168
+ function Ed(a, b, c) { return c && c.internalChannelParams ? c.internalChannelParams[a] || b : b; }
1169
+ function Fd(a) {
1170
+ this.Ga = 0;
1171
+ this.i = [];
1172
+ this.j = new Ib;
1173
+ this.oa = this.wa = this.G = this.Y = this.g = this.Da = this.F = this.ma = this.o = this.U = this.s = null;
1174
+ this.fb = this.W = 0;
1175
+ this.cb = Ed("failFast", !1, a);
1176
+ this.M = this.v = this.u = this.m = this.l = null;
1177
+ this.aa = !0;
1178
+ this.ta = this.Fa = this.V = -1;
1179
+ this.ba = this.A = this.C = 0;
1180
+ this.ab = Ed("baseRetryDelayMs", 5E3, a);
1181
+ this.hb = Ed("retryDelaySeedMs", 1E4, a);
1182
+ this.eb = Ed("forwardChannelMaxRetries", 2, a);
1183
+ this.xa = Ed("forwardChannelRequestTimeoutMs", 2E4, a);
1184
+ this.va = a && a.xmlHttpFactory || void 0;
1185
+ this.Ha = a && a.dc ||
1186
+ !1;
1187
+ this.K = void 0;
1188
+ this.I = a && a.supportsCrossDomainXhr || !1;
1189
+ this.J = "";
1190
+ this.h = new dd(a && a.concurrentRequestLimit);
1191
+ this.Ja = new id;
1192
+ this.P = a && a.fastHandshake || !1;
1193
+ this.O = a && a.encodeInitMessageHeaders || !1;
1194
+ this.P && this.O && (this.O = !1);
1195
+ this.bb = a && a.bc || !1;
1196
+ a && a.Ea && this.j.Ea();
1197
+ a && a.forceLongPolling && (this.aa = !1);
1198
+ this.ca = !this.P && this.aa && a && a.detectBufferingProxy || !1;
1199
+ this.na = void 0;
1200
+ this.S = 0;
1201
+ this.L = !1;
1202
+ this.pa = this.B = null;
1203
+ }
1204
+ k = Fd.prototype;
1205
+ k.qa = 8;
1206
+ k.H = 1;
1207
+ function Ic(a) { Gd(a); if (3 == a.H) {
1208
+ var b = a.W++, c = G(a.G);
1209
+ K(c, "SID", a.J);
1210
+ K(c, "RID", b);
1211
+ K(c, "TYPE", "terminate");
1212
+ Hd(a, c);
1213
+ b = new dc(a, a.j, b, void 0);
1214
+ b.L = 2;
1215
+ b.v = jc(G(c));
1216
+ c = !1;
1217
+ l.navigator && l.navigator.sendBeacon && (c = l.navigator.sendBeacon(b.v.toString(), ""));
1218
+ !c && l.Image && ((new Image).src = b.v, c = !0);
1219
+ c || (b.g = nc(b.l, null), b.g.ha(b.v));
1220
+ b.G = Date.now();
1221
+ lc(b);
1222
+ } Id(a); }
1223
+ function Ac(a) { a.g && (wc(a), a.g.cancel(), a.g = null); }
1224
+ function Gd(a) { Ac(a); a.u && (l.clearTimeout(a.u), a.u = null); zc(a); a.h.cancel(); a.m && ("number" === typeof a.m && l.clearTimeout(a.m), a.m = null); }
1225
+ function Hc(a) { fd(a.h) || a.m || (a.m = !0, tb(a.Na, a), a.C = 0); }
1226
+ function Jd(a, b) { if (Cc(a.h) >= a.h.j - (a.m ? 1 : 0))
1227
+ return !1; if (a.m)
1228
+ return a.i = b.F.concat(a.i), !0; if (1 == a.H || 2 == a.H || a.C >= (a.cb ? 0 : a.eb))
1229
+ return !1; a.m = Tb(q(a.Na, a, b), Kd(a, a.C)); a.C++; return !0; }
1230
+ k.Na = function (a) {
1231
+ if (this.m)
1232
+ if (this.m = null, 1 == this.H) {
1233
+ if (!a) {
1234
+ this.W = Math.floor(1E5 * Math.random());
1235
+ a = this.W++;
1236
+ var e = new dc(this, this.j, a, void 0);
1237
+ var f = this.s;
1238
+ this.U && (f ? (f = Sa(f), Ua(f, this.U)) : f = this.U);
1239
+ null !== this.o || this.O || (e.I = f, f = null);
1240
+ if (this.P)
1241
+ a: {
1242
+ var b = 0;
1243
+ for (var c = 0; c < this.i.length; c++) {
1244
+ b: {
1245
+ var d = this.i[c];
1246
+ if ("__data__" in d.g && (d = d.g.__data__, "string" === typeof d)) {
1247
+ d = d.length;
1248
+ break b;
1249
+ }
1250
+ d = void 0;
1251
+ }
1252
+ if (void 0 === d)
1253
+ break;
1254
+ b += d;
1255
+ if (4096 < b) {
1256
+ b = c;
1257
+ break a;
1258
+ }
1259
+ if (4096 === b || c === this.i.length - 1) {
1260
+ b = c + 1;
1261
+ break a;
1262
+ }
1263
+ }
1264
+ b = 1E3;
1265
+ }
1266
+ else
1267
+ b =
1268
+ 1E3;
1269
+ b = Ld(this, e, b);
1270
+ c = G(this.G);
1271
+ K(c, "RID", a);
1272
+ K(c, "CVER", 22);
1273
+ this.F && K(c, "X-HTTP-Session-Id", this.F);
1274
+ Hd(this, c);
1275
+ f && (this.O ? b = "headers=" + encodeURIComponent(String(Cd(f))) + "&" + b : this.o && Dd(c, this.o, f));
1276
+ Dc(this.h, e);
1277
+ this.bb && K(c, "TYPE", "init");
1278
+ this.P ? (K(c, "$req", b), K(c, "SID", "null"), e.ba = !0, ic(e, c, null)) : ic(e, c, b);
1279
+ this.H = 2;
1280
+ }
1281
+ }
1282
+ else
1283
+ 3 == this.H && (a ? Md(this, a) : 0 == this.i.length || fd(this.h) || Md(this));
1284
+ };
1285
+ function Md(a, b) { var c; b ? c = b.m : c = a.W++; var d = G(a.G); K(d, "SID", a.J); K(d, "RID", c); K(d, "AID", a.V); Hd(a, d); a.o && a.s && Dd(d, a.o, a.s); c = new dc(a, a.j, c, a.C + 1); null === a.o && (c.I = a.s); b && (a.i = b.F.concat(a.i)); b = Ld(a, c, 1E3); c.setTimeout(Math.round(.5 * a.xa) + Math.round(.5 * a.xa * Math.random())); Dc(a.h, c); ic(c, d, b); }
1286
+ function Hd(a, b) { a.ma && Ra(a.ma, function (c, d) { K(b, d, c); }); a.l && Lc({}, function (c, d) { K(b, d, c); }); }
1287
+ function Ld(a, b, c) { c = Math.min(a.i.length, c); var d = a.l ? q(a.l.Va, a.l, a) : null; a: {
1288
+ var e = a.i;
1289
+ var f = -1;
1290
+ for (;;) {
1291
+ var h = ["count=" + c];
1292
+ -1 == f ? 0 < c ? (f = e[0].h, h.push("ofs=" + f)) : f = 0 : h.push("ofs=" + f);
1293
+ var m = !0;
1294
+ for (var t = 0; t < c; t++) {
1295
+ var n = e[t].h;
1296
+ var u = e[t].g;
1297
+ n -= f;
1298
+ if (0 > n)
1299
+ f = Math.max(0, e[t].h - 100), m = !1;
1300
+ else
1301
+ try {
1302
+ jd(u, h, "req" + n + "_");
1303
+ }
1304
+ catch (L) {
1305
+ d && d(u);
1306
+ }
1307
+ }
1308
+ if (m) {
1309
+ d = h.join("&");
1310
+ break a;
1311
+ }
1312
+ }
1313
+ } a = a.i.splice(0, c); b.F = a; return d; }
1314
+ function Gc(a) { a.g || a.u || (a.ba = 1, tb(a.Ma, a), a.A = 0); }
1315
+ function Bc(a) { if (a.g || a.u || 3 <= a.A)
1316
+ return !1; a.ba++; a.u = Tb(q(a.Ma, a), Kd(a, a.A)); a.A++; return !0; }
1317
+ k.Ma = function () { this.u = null; Nd(this); if (this.ca && !(this.L || null == this.g || 0 >= this.S)) {
1318
+ var a = 2 * this.S;
1319
+ this.j.info("BP detection timer enabled: " + a);
1320
+ this.B = Tb(q(this.jb, this), a);
1321
+ } };
1322
+ k.jb = function () { this.B && (this.B = null, this.j.info("BP detection timeout reached."), this.j.info("Buffering proxy detected and switch to long-polling!"), this.M = !1, this.L = !0, F(10), Ac(this), Nd(this)); };
1323
+ function wc(a) { null != a.B && (l.clearTimeout(a.B), a.B = null); }
1324
+ function Nd(a) { a.g = new dc(a, a.j, "rpc", a.ba); null === a.o && (a.g.I = a.s); a.g.O = 0; var b = G(a.wa); K(b, "RID", "rpc"); K(b, "SID", a.J); K(b, "CI", a.M ? "0" : "1"); K(b, "AID", a.V); K(b, "TYPE", "xmlhttp"); Hd(a, b); a.o && a.s && Dd(b, a.o, a.s); a.K && a.g.setTimeout(a.K); var c = a.g; a = a.oa; c.L = 1; c.v = jc(G(b)); c.s = null; c.S = !0; kc(c, a); }
1325
+ k.ib = function () { null != this.v && (this.v = null, Ac(this), Bc(this), F(19)); };
1326
+ function zc(a) { null != a.v && (l.clearTimeout(a.v), a.v = null); }
1327
+ function uc(a, b) { var c = null; if (a.g == b) {
1328
+ zc(a);
1329
+ wc(a);
1330
+ a.g = null;
1331
+ var d = 2;
1332
+ }
1333
+ else if (yc(a.h, b))
1334
+ c = b.F, Fc(a.h, b), d = 1;
1335
+ else
1336
+ return; if (0 != a.H)
1337
+ if (a.ta = b.aa, b.i)
1338
+ if (1 == d) {
1339
+ c = b.s ? b.s.length : 0;
1340
+ b = Date.now() - b.G;
1341
+ var e = a.C;
1342
+ d = Ob();
1343
+ C(d, new Sb(d, c));
1344
+ Hc(a);
1345
+ }
1346
+ else
1347
+ Gc(a);
1348
+ else if (e = b.o, 3 == e || 0 == e && 0 < a.ta || !(1 == d && Jd(a, b) || 2 == d && Bc(a)))
1349
+ switch (c && 0 < c.length && (b = a.h, b.i = b.i.concat(c)), e) {
1350
+ case 1:
1351
+ J(a, 5);
1352
+ break;
1353
+ case 4:
1354
+ J(a, 10);
1355
+ break;
1356
+ case 3:
1357
+ J(a, 6);
1358
+ break;
1359
+ default: J(a, 2);
1360
+ } }
1361
+ function Kd(a, b) { var c = a.ab + Math.floor(Math.random() * a.hb); a.l || (c *= 2); return c * b; }
1362
+ function J(a, b) { a.j.info("Error code " + b); if (2 == b) {
1363
+ var c = null;
1364
+ a.l && (c = null);
1365
+ var d = q(a.pb, a);
1366
+ c || (c = new M("//www.google.com/images/cleardot.gif"), l.location && "http" == l.location.protocol || Oc(c, "https"), jc(c));
1367
+ kd(c.toString(), d);
1368
+ }
1369
+ else
1370
+ F(2); a.H = 0; a.l && a.l.za(b); Id(a); Gd(a); }
1371
+ k.pb = function (a) { a ? (this.j.info("Successfully pinged google.com"), F(2)) : (this.j.info("Failed to ping google.com"), F(1)); };
1372
+ function Id(a) { a.H = 0; a.pa = []; if (a.l) {
1373
+ var b = gd(a.h);
1374
+ if (0 != b.length || 0 != a.i.length)
1375
+ oa(a.pa, b), oa(a.pa, a.i), a.h.i.length = 0, na(a.i), a.i.length = 0;
1376
+ a.l.ya();
1377
+ } }
1378
+ function Ec(a, b, c) { var d = c instanceof M ? G(c) : new M(c, void 0); if ("" != d.g)
1379
+ b && (d.g = b + "." + d.g), Pc(d, d.m);
1380
+ else {
1381
+ var e = l.location;
1382
+ d = e.protocol;
1383
+ b = b ? b + "." + e.hostname : e.hostname;
1384
+ e = +e.port;
1385
+ var f = new M(null, void 0);
1386
+ d && Oc(f, d);
1387
+ b && (f.g = b);
1388
+ e && Pc(f, e);
1389
+ c && (f.l = c);
1390
+ d = f;
1391
+ } c = a.F; b = a.Da; c && b && K(d, c, b); K(d, "VER", a.qa); Hd(a, d); return d; }
1392
+ function nc(a, b, c) { if (b && !a.I)
1393
+ throw Error("Can't create secondary domain capable XhrIo object."); b = c && a.Ha && !a.va ? new P(new md({ ob: !0 })) : new P(a.va); b.Oa(a.I); return b; }
1394
+ function Od() { }
1395
+ k = Od.prototype;
1396
+ k.Ba = function () { };
1397
+ k.Aa = function () { };
1398
+ k.za = function () { };
1399
+ k.ya = function () { };
1400
+ k.Va = function () { };
1401
+ function Pd() { if (y && !(10 <= Number(Ka)))
1402
+ throw Error("Environmental error: no available transport."); }
1403
+ Pd.prototype.g = function (a, b) { return new Q(a, b); };
1404
+ function Q(a, b) {
1405
+ B.call(this);
1406
+ this.g = new Fd(b);
1407
+ this.l = a;
1408
+ this.h = b && b.messageUrlParams || null;
1409
+ a = b && b.messageHeaders || null;
1410
+ b && b.clientProtocolHeaderRequired && (a ? a["X-Client-Protocol"] = "webchannel" : a = { "X-Client-Protocol": "webchannel" });
1411
+ this.g.s = a;
1412
+ a = b && b.initMessageHeaders || null;
1413
+ b && b.messageContentType && (a ? a["X-WebChannel-Content-Type"] = b.messageContentType : a = { "X-WebChannel-Content-Type": b.messageContentType });
1414
+ b && b.Ca && (a ? a["X-WebChannel-Client-Profile"] = b.Ca : a = { "X-WebChannel-Client-Profile": b.Ca });
1415
+ this.g.U =
1416
+ a;
1417
+ (a = b && b.cc) && !qa(a) && (this.g.o = a);
1418
+ this.A = b && b.supportsCrossDomainXhr || !1;
1419
+ this.v = b && b.sendRawJson || !1;
1420
+ (b = b && b.httpSessionIdParam) && !qa(b) && (this.g.F = b, a = this.h, null !== a && b in a && (a = this.h, b in a && delete a[b]));
1421
+ this.j = new R(this);
1422
+ }
1423
+ r(Q, B);
1424
+ Q.prototype.m = function () { this.g.l = this.j; this.A && (this.g.I = !0); var a = this.g, b = this.l, c = this.h || void 0; F(0); a.Y = b; a.ma = c || {}; a.M = a.aa; a.G = Ec(a, null, a.Y); Hc(a); };
1425
+ Q.prototype.close = function () { Ic(this.g); };
1426
+ Q.prototype.u = function (a) { var b = this.g; if ("string" === typeof a) {
1427
+ var c = {};
1428
+ c.__data__ = a;
1429
+ a = c;
1430
+ }
1431
+ else
1432
+ this.v && (c = {}, c.__data__ = mb(a), a = c); b.i.push(new cd(b.fb++, a)); 3 == b.H && Hc(b); };
1433
+ Q.prototype.N = function () { this.g.l = null; delete this.j; Ic(this.g); delete this.g; Q.$.N.call(this); };
1434
+ function Qd(a) { $b.call(this); var b = a.__sm__; if (b) {
1435
+ a: {
1436
+ for (var c in b) {
1437
+ a = c;
1438
+ break a;
1439
+ }
1440
+ a = void 0;
1441
+ }
1442
+ if (this.i = a)
1443
+ a = this.i, b = null !== b && a in b ? b[a] : void 0;
1444
+ this.data = b;
1445
+ }
1446
+ else
1447
+ this.data = a; }
1448
+ r(Qd, $b);
1449
+ function Rd() { ac.call(this); this.status = 1; }
1450
+ r(Rd, ac);
1451
+ function R(a) { this.g = a; }
1452
+ r(R, Od);
1453
+ R.prototype.Ba = function () { C(this.g, "a"); };
1454
+ R.prototype.Aa = function (a) { C(this.g, new Qd(a)); };
1455
+ R.prototype.za = function (a) { C(this.g, new Rd()); };
1456
+ R.prototype.ya = function () { C(this.g, "b"); };
1457
+ function Sd() { this.blockSize = -1; }
1458
+ function S() { this.blockSize = -1; this.blockSize = 64; this.g = Array(4); this.m = Array(this.blockSize); this.i = this.h = 0; this.reset(); }
1459
+ r(S, Sd);
1460
+ S.prototype.reset = function () { this.g[0] = 1732584193; this.g[1] = 4023233417; this.g[2] = 2562383102; this.g[3] = 271733878; this.i = this.h = 0; };
1461
+ function Td(a, b, c) {
1462
+ c || (c = 0);
1463
+ var d = Array(16);
1464
+ if ("string" === typeof b)
1465
+ for (var e = 0; 16 > e; ++e)
1466
+ d[e] = b.charCodeAt(c++) | b.charCodeAt(c++) << 8 | b.charCodeAt(c++) << 16 | b.charCodeAt(c++) << 24;
1467
+ else
1468
+ for (e = 0; 16 > e; ++e)
1469
+ d[e] = b[c++] | b[c++] << 8 | b[c++] << 16 | b[c++] << 24;
1470
+ b = a.g[0];
1471
+ c = a.g[1];
1472
+ e = a.g[2];
1473
+ var f = a.g[3];
1474
+ var h = b + (f ^ c & (e ^ f)) + d[0] + 3614090360 & 4294967295;
1475
+ b = c + (h << 7 & 4294967295 | h >>> 25);
1476
+ h = f + (e ^ b & (c ^ e)) + d[1] + 3905402710 & 4294967295;
1477
+ f = b + (h << 12 & 4294967295 | h >>> 20);
1478
+ h = e + (c ^ f & (b ^ c)) + d[2] + 606105819 & 4294967295;
1479
+ e = f + (h << 17 & 4294967295 | h >>> 15);
1480
+ h = c + (b ^ e & (f ^ b)) + d[3] + 3250441966 & 4294967295;
1481
+ c = e + (h << 22 & 4294967295 | h >>> 10);
1482
+ h = b + (f ^ c & (e ^ f)) + d[4] + 4118548399 & 4294967295;
1483
+ b = c + (h << 7 & 4294967295 | h >>> 25);
1484
+ h = f + (e ^ b & (c ^ e)) + d[5] + 1200080426 & 4294967295;
1485
+ f = b + (h << 12 & 4294967295 | h >>> 20);
1486
+ h = e + (c ^ f & (b ^ c)) + d[6] + 2821735955 & 4294967295;
1487
+ e = f + (h << 17 & 4294967295 | h >>> 15);
1488
+ h = c + (b ^ e & (f ^ b)) + d[7] + 4249261313 & 4294967295;
1489
+ c = e + (h << 22 & 4294967295 | h >>> 10);
1490
+ h = b + (f ^ c & (e ^ f)) + d[8] + 1770035416 & 4294967295;
1491
+ b = c + (h << 7 & 4294967295 | h >>> 25);
1492
+ h = f + (e ^ b & (c ^ e)) + d[9] + 2336552879 & 4294967295;
1493
+ f = b + (h << 12 & 4294967295 |
1494
+ h >>> 20);
1495
+ h = e + (c ^ f & (b ^ c)) + d[10] + 4294925233 & 4294967295;
1496
+ e = f + (h << 17 & 4294967295 | h >>> 15);
1497
+ h = c + (b ^ e & (f ^ b)) + d[11] + 2304563134 & 4294967295;
1498
+ c = e + (h << 22 & 4294967295 | h >>> 10);
1499
+ h = b + (f ^ c & (e ^ f)) + d[12] + 1804603682 & 4294967295;
1500
+ b = c + (h << 7 & 4294967295 | h >>> 25);
1501
+ h = f + (e ^ b & (c ^ e)) + d[13] + 4254626195 & 4294967295;
1502
+ f = b + (h << 12 & 4294967295 | h >>> 20);
1503
+ h = e + (c ^ f & (b ^ c)) + d[14] + 2792965006 & 4294967295;
1504
+ e = f + (h << 17 & 4294967295 | h >>> 15);
1505
+ h = c + (b ^ e & (f ^ b)) + d[15] + 1236535329 & 4294967295;
1506
+ c = e + (h << 22 & 4294967295 | h >>> 10);
1507
+ h = b + (e ^ f & (c ^ e)) + d[1] + 4129170786 & 4294967295;
1508
+ b = c + (h <<
1509
+ 5 & 4294967295 | h >>> 27);
1510
+ h = f + (c ^ e & (b ^ c)) + d[6] + 3225465664 & 4294967295;
1511
+ f = b + (h << 9 & 4294967295 | h >>> 23);
1512
+ h = e + (b ^ c & (f ^ b)) + d[11] + 643717713 & 4294967295;
1513
+ e = f + (h << 14 & 4294967295 | h >>> 18);
1514
+ h = c + (f ^ b & (e ^ f)) + d[0] + 3921069994 & 4294967295;
1515
+ c = e + (h << 20 & 4294967295 | h >>> 12);
1516
+ h = b + (e ^ f & (c ^ e)) + d[5] + 3593408605 & 4294967295;
1517
+ b = c + (h << 5 & 4294967295 | h >>> 27);
1518
+ h = f + (c ^ e & (b ^ c)) + d[10] + 38016083 & 4294967295;
1519
+ f = b + (h << 9 & 4294967295 | h >>> 23);
1520
+ h = e + (b ^ c & (f ^ b)) + d[15] + 3634488961 & 4294967295;
1521
+ e = f + (h << 14 & 4294967295 | h >>> 18);
1522
+ h = c + (f ^ b & (e ^ f)) + d[4] + 3889429448 & 4294967295;
1523
+ c =
1524
+ e + (h << 20 & 4294967295 | h >>> 12);
1525
+ h = b + (e ^ f & (c ^ e)) + d[9] + 568446438 & 4294967295;
1526
+ b = c + (h << 5 & 4294967295 | h >>> 27);
1527
+ h = f + (c ^ e & (b ^ c)) + d[14] + 3275163606 & 4294967295;
1528
+ f = b + (h << 9 & 4294967295 | h >>> 23);
1529
+ h = e + (b ^ c & (f ^ b)) + d[3] + 4107603335 & 4294967295;
1530
+ e = f + (h << 14 & 4294967295 | h >>> 18);
1531
+ h = c + (f ^ b & (e ^ f)) + d[8] + 1163531501 & 4294967295;
1532
+ c = e + (h << 20 & 4294967295 | h >>> 12);
1533
+ h = b + (e ^ f & (c ^ e)) + d[13] + 2850285829 & 4294967295;
1534
+ b = c + (h << 5 & 4294967295 | h >>> 27);
1535
+ h = f + (c ^ e & (b ^ c)) + d[2] + 4243563512 & 4294967295;
1536
+ f = b + (h << 9 & 4294967295 | h >>> 23);
1537
+ h = e + (b ^ c & (f ^ b)) + d[7] + 1735328473 & 4294967295;
1538
+ e = f + (h << 14 & 4294967295 | h >>> 18);
1539
+ h = c + (f ^ b & (e ^ f)) + d[12] + 2368359562 & 4294967295;
1540
+ c = e + (h << 20 & 4294967295 | h >>> 12);
1541
+ h = b + (c ^ e ^ f) + d[5] + 4294588738 & 4294967295;
1542
+ b = c + (h << 4 & 4294967295 | h >>> 28);
1543
+ h = f + (b ^ c ^ e) + d[8] + 2272392833 & 4294967295;
1544
+ f = b + (h << 11 & 4294967295 | h >>> 21);
1545
+ h = e + (f ^ b ^ c) + d[11] + 1839030562 & 4294967295;
1546
+ e = f + (h << 16 & 4294967295 | h >>> 16);
1547
+ h = c + (e ^ f ^ b) + d[14] + 4259657740 & 4294967295;
1548
+ c = e + (h << 23 & 4294967295 | h >>> 9);
1549
+ h = b + (c ^ e ^ f) + d[1] + 2763975236 & 4294967295;
1550
+ b = c + (h << 4 & 4294967295 | h >>> 28);
1551
+ h = f + (b ^ c ^ e) + d[4] + 1272893353 & 4294967295;
1552
+ f = b + (h << 11 & 4294967295 |
1553
+ h >>> 21);
1554
+ h = e + (f ^ b ^ c) + d[7] + 4139469664 & 4294967295;
1555
+ e = f + (h << 16 & 4294967295 | h >>> 16);
1556
+ h = c + (e ^ f ^ b) + d[10] + 3200236656 & 4294967295;
1557
+ c = e + (h << 23 & 4294967295 | h >>> 9);
1558
+ h = b + (c ^ e ^ f) + d[13] + 681279174 & 4294967295;
1559
+ b = c + (h << 4 & 4294967295 | h >>> 28);
1560
+ h = f + (b ^ c ^ e) + d[0] + 3936430074 & 4294967295;
1561
+ f = b + (h << 11 & 4294967295 | h >>> 21);
1562
+ h = e + (f ^ b ^ c) + d[3] + 3572445317 & 4294967295;
1563
+ e = f + (h << 16 & 4294967295 | h >>> 16);
1564
+ h = c + (e ^ f ^ b) + d[6] + 76029189 & 4294967295;
1565
+ c = e + (h << 23 & 4294967295 | h >>> 9);
1566
+ h = b + (c ^ e ^ f) + d[9] + 3654602809 & 4294967295;
1567
+ b = c + (h << 4 & 4294967295 | h >>> 28);
1568
+ h = f + (b ^ c ^ e) + d[12] +
1569
+ 3873151461 & 4294967295;
1570
+ f = b + (h << 11 & 4294967295 | h >>> 21);
1571
+ h = e + (f ^ b ^ c) + d[15] + 530742520 & 4294967295;
1572
+ e = f + (h << 16 & 4294967295 | h >>> 16);
1573
+ h = c + (e ^ f ^ b) + d[2] + 3299628645 & 4294967295;
1574
+ c = e + (h << 23 & 4294967295 | h >>> 9);
1575
+ h = b + (e ^ (c | ~f)) + d[0] + 4096336452 & 4294967295;
1576
+ b = c + (h << 6 & 4294967295 | h >>> 26);
1577
+ h = f + (c ^ (b | ~e)) + d[7] + 1126891415 & 4294967295;
1578
+ f = b + (h << 10 & 4294967295 | h >>> 22);
1579
+ h = e + (b ^ (f | ~c)) + d[14] + 2878612391 & 4294967295;
1580
+ e = f + (h << 15 & 4294967295 | h >>> 17);
1581
+ h = c + (f ^ (e | ~b)) + d[5] + 4237533241 & 4294967295;
1582
+ c = e + (h << 21 & 4294967295 | h >>> 11);
1583
+ h = b + (e ^ (c | ~f)) + d[12] + 1700485571 &
1584
+ 4294967295;
1585
+ b = c + (h << 6 & 4294967295 | h >>> 26);
1586
+ h = f + (c ^ (b | ~e)) + d[3] + 2399980690 & 4294967295;
1587
+ f = b + (h << 10 & 4294967295 | h >>> 22);
1588
+ h = e + (b ^ (f | ~c)) + d[10] + 4293915773 & 4294967295;
1589
+ e = f + (h << 15 & 4294967295 | h >>> 17);
1590
+ h = c + (f ^ (e | ~b)) + d[1] + 2240044497 & 4294967295;
1591
+ c = e + (h << 21 & 4294967295 | h >>> 11);
1592
+ h = b + (e ^ (c | ~f)) + d[8] + 1873313359 & 4294967295;
1593
+ b = c + (h << 6 & 4294967295 | h >>> 26);
1594
+ h = f + (c ^ (b | ~e)) + d[15] + 4264355552 & 4294967295;
1595
+ f = b + (h << 10 & 4294967295 | h >>> 22);
1596
+ h = e + (b ^ (f | ~c)) + d[6] + 2734768916 & 4294967295;
1597
+ e = f + (h << 15 & 4294967295 | h >>> 17);
1598
+ h = c + (f ^ (e | ~b)) + d[13] + 1309151649 &
1599
+ 4294967295;
1600
+ c = e + (h << 21 & 4294967295 | h >>> 11);
1601
+ h = b + (e ^ (c | ~f)) + d[4] + 4149444226 & 4294967295;
1602
+ b = c + (h << 6 & 4294967295 | h >>> 26);
1603
+ h = f + (c ^ (b | ~e)) + d[11] + 3174756917 & 4294967295;
1604
+ f = b + (h << 10 & 4294967295 | h >>> 22);
1605
+ h = e + (b ^ (f | ~c)) + d[2] + 718787259 & 4294967295;
1606
+ e = f + (h << 15 & 4294967295 | h >>> 17);
1607
+ h = c + (f ^ (e | ~b)) + d[9] + 3951481745 & 4294967295;
1608
+ a.g[0] = a.g[0] + b & 4294967295;
1609
+ a.g[1] = a.g[1] + (e + (h << 21 & 4294967295 | h >>> 11)) & 4294967295;
1610
+ a.g[2] = a.g[2] + e & 4294967295;
1611
+ a.g[3] = a.g[3] + f & 4294967295;
1612
+ }
1613
+ S.prototype.j = function (a, b) { void 0 === b && (b = a.length); for (var c = b - this.blockSize, d = this.m, e = this.h, f = 0; f < b;) {
1614
+ if (0 == e)
1615
+ for (; f <= c;)
1616
+ Td(this, a, f), f += this.blockSize;
1617
+ if ("string" === typeof a)
1618
+ for (; f < b;) {
1619
+ if (d[e++] = a.charCodeAt(f++), e == this.blockSize) {
1620
+ Td(this, d);
1621
+ e = 0;
1622
+ break;
1623
+ }
1624
+ }
1625
+ else
1626
+ for (; f < b;)
1627
+ if (d[e++] = a[f++], e == this.blockSize) {
1628
+ Td(this, d);
1629
+ e = 0;
1630
+ break;
1631
+ }
1632
+ } this.h = e; this.i += b; };
1633
+ S.prototype.l = function () { var a = Array((56 > this.h ? this.blockSize : 2 * this.blockSize) - this.h); a[0] = 128; for (var b = 1; b < a.length - 8; ++b)
1634
+ a[b] = 0; var c = 8 * this.i; for (b = a.length - 8; b < a.length; ++b)
1635
+ a[b] = c & 255, c /= 256; this.j(a); a = Array(16); for (b = c = 0; 4 > b; ++b)
1636
+ for (var d = 0; 32 > d; d += 8)
1637
+ a[c++] = this.g[b] >>> d & 255; return a; };
1638
+ function T(a, b) { this.h = b; for (var c = [], d = !0, e = a.length - 1; 0 <= e; e--) {
1639
+ var f = a[e] | 0;
1640
+ d && f == b || (c[e] = f, d = !1);
1641
+ } this.g = c; }
1642
+ var Ud = {};
1643
+ function Vd(a) { return -128 <= a && 128 > a ? va(Ud, a, function (b) { return new T([b | 0], 0 > b ? -1 : 0); }) : new T([a | 0], 0 > a ? -1 : 0); }
1644
+ function U(a) { if (isNaN(a) || !isFinite(a))
1645
+ return V; if (0 > a)
1646
+ return W(U(-a)); for (var b = [], c = 1, d = 0; a >= c; d++)
1647
+ b[d] = a / c | 0, c *= Wd; return new T(b, 0); }
1648
+ function Xd(a, b) { if (0 == a.length)
1649
+ throw Error("number format error: empty string"); b = b || 10; if (2 > b || 36 < b)
1650
+ throw Error("radix out of range: " + b); if ("-" == a.charAt(0))
1651
+ return W(Xd(a.substring(1), b)); if (0 <= a.indexOf("-"))
1652
+ throw Error('number format error: interior "-" character'); for (var c = U(Math.pow(b, 8)), d = V, e = 0; e < a.length; e += 8) {
1653
+ var f = Math.min(8, a.length - e), h = parseInt(a.substring(e, e + f), b);
1654
+ 8 > f ? (f = U(Math.pow(b, f)), d = d.R(f).add(U(h))) : (d = d.R(c), d = d.add(U(h)));
1655
+ } return d; }
1656
+ var Wd = 4294967296, V = Vd(0), Yd = Vd(1), Zd = Vd(16777216);
1657
+ k = T.prototype;
1658
+ k.ea = function () { if (X(this))
1659
+ return -W(this).ea(); for (var a = 0, b = 1, c = 0; c < this.g.length; c++) {
1660
+ var d = this.D(c);
1661
+ a += (0 <= d ? d : Wd + d) * b;
1662
+ b *= Wd;
1663
+ } return a; };
1664
+ k.toString = function (a) { a = a || 10; if (2 > a || 36 < a)
1665
+ throw Error("radix out of range: " + a); if (Y(this))
1666
+ return "0"; if (X(this))
1667
+ return "-" + W(this).toString(a); for (var b = U(Math.pow(a, 6)), c = this, d = "";;) {
1668
+ var e = $d(c, b).g;
1669
+ c = ae(c, e.R(b));
1670
+ var f = ((0 < c.g.length ? c.g[0] : c.h) >>> 0).toString(a);
1671
+ c = e;
1672
+ if (Y(c))
1673
+ return f + d;
1674
+ for (; 6 > f.length;)
1675
+ f = "0" + f;
1676
+ d = f + d;
1677
+ } };
1678
+ k.D = function (a) { return 0 > a ? 0 : a < this.g.length ? this.g[a] : this.h; };
1679
+ function Y(a) { if (0 != a.h)
1680
+ return !1; for (var b = 0; b < a.g.length; b++)
1681
+ if (0 != a.g[b])
1682
+ return !1; return !0; }
1683
+ function X(a) { return -1 == a.h; }
1684
+ k.X = function (a) { a = ae(this, a); return X(a) ? -1 : Y(a) ? 0 : 1; };
1685
+ function W(a) { for (var b = a.g.length, c = [], d = 0; d < b; d++)
1686
+ c[d] = ~a.g[d]; return (new T(c, ~a.h)).add(Yd); }
1687
+ k.abs = function () { return X(this) ? W(this) : this; };
1688
+ k.add = function (a) { for (var b = Math.max(this.g.length, a.g.length), c = [], d = 0, e = 0; e <= b; e++) {
1689
+ var f = d + (this.D(e) & 65535) + (a.D(e) & 65535), h = (f >>> 16) + (this.D(e) >>> 16) + (a.D(e) >>> 16);
1690
+ d = h >>> 16;
1691
+ f &= 65535;
1692
+ h &= 65535;
1693
+ c[e] = h << 16 | f;
1694
+ } return new T(c, c[c.length - 1] & -2147483648 ? -1 : 0); };
1695
+ function ae(a, b) { return a.add(W(b)); }
1696
+ k.R = function (a) {
1697
+ if (Y(this) || Y(a))
1698
+ return V;
1699
+ if (X(this))
1700
+ return X(a) ? W(this).R(W(a)) : W(W(this).R(a));
1701
+ if (X(a))
1702
+ return W(this.R(W(a)));
1703
+ if (0 > this.X(Zd) && 0 > a.X(Zd))
1704
+ return U(this.ea() * a.ea());
1705
+ for (var b = this.g.length + a.g.length, c = [], d = 0; d < 2 * b; d++)
1706
+ c[d] = 0;
1707
+ for (d = 0; d < this.g.length; d++)
1708
+ for (var e = 0; e < a.g.length; e++) {
1709
+ var f = this.D(d) >>> 16, h = this.D(d) & 65535, m = a.D(e) >>> 16, t = a.D(e) & 65535;
1710
+ c[2 * d + 2 * e] += h * t;
1711
+ be(c, 2 * d + 2 * e);
1712
+ c[2 * d + 2 * e + 1] += f * t;
1713
+ be(c, 2 * d + 2 * e + 1);
1714
+ c[2 * d + 2 * e + 1] += h * m;
1715
+ be(c, 2 * d + 2 * e + 1);
1716
+ c[2 * d + 2 * e + 2] += f * m;
1717
+ be(c, 2 * d + 2 * e + 2);
1718
+ }
1719
+ for (d =
1720
+ 0; d < b; d++)
1721
+ c[d] = c[2 * d + 1] << 16 | c[2 * d];
1722
+ for (d = b; d < 2 * b; d++)
1723
+ c[d] = 0;
1724
+ return new T(c, 0);
1725
+ };
1726
+ function be(a, b) { for (; (a[b] & 65535) != a[b];)
1727
+ a[b + 1] += a[b] >>> 16, a[b] &= 65535, b++; }
1728
+ function ce(a, b) { this.g = a; this.h = b; }
1729
+ function $d(a, b) {
1730
+ if (Y(b))
1731
+ throw Error("division by zero");
1732
+ if (Y(a))
1733
+ return new ce(V, V);
1734
+ if (X(a))
1735
+ return b = $d(W(a), b), new ce(W(b.g), W(b.h));
1736
+ if (X(b))
1737
+ return b = $d(a, W(b)), new ce(W(b.g), b.h);
1738
+ if (30 < a.g.length) {
1739
+ if (X(a) || X(b))
1740
+ throw Error("slowDivide_ only works with positive integers.");
1741
+ for (var c = Yd, d = b; 0 >= d.X(a);)
1742
+ c = de(c), d = de(d);
1743
+ var e = Z(c, 1), f = Z(d, 1);
1744
+ d = Z(d, 2);
1745
+ for (c = Z(c, 2); !Y(d);) {
1746
+ var h = f.add(d);
1747
+ 0 >= h.X(a) && (e = e.add(c), f = h);
1748
+ d = Z(d, 1);
1749
+ c = Z(c, 1);
1750
+ }
1751
+ b = ae(a, e.R(b));
1752
+ return new ce(e, b);
1753
+ }
1754
+ for (e = V; 0 <= a.X(b);) {
1755
+ c = Math.max(1, Math.floor(a.ea() /
1756
+ b.ea()));
1757
+ d = Math.ceil(Math.log(c) / Math.LN2);
1758
+ d = 48 >= d ? 1 : Math.pow(2, d - 48);
1759
+ f = U(c);
1760
+ for (h = f.R(b); X(h) || 0 < h.X(a);)
1761
+ c -= d, f = U(c), h = f.R(b);
1762
+ Y(f) && (f = Yd);
1763
+ e = e.add(f);
1764
+ a = ae(a, h);
1765
+ }
1766
+ return new ce(e, a);
1767
+ }
1768
+ k.gb = function (a) { return $d(this, a).h; };
1769
+ k.and = function (a) { for (var b = Math.max(this.g.length, a.g.length), c = [], d = 0; d < b; d++)
1770
+ c[d] = this.D(d) & a.D(d); return new T(c, this.h & a.h); };
1771
+ k.or = function (a) { for (var b = Math.max(this.g.length, a.g.length), c = [], d = 0; d < b; d++)
1772
+ c[d] = this.D(d) | a.D(d); return new T(c, this.h | a.h); };
1773
+ k.xor = function (a) { for (var b = Math.max(this.g.length, a.g.length), c = [], d = 0; d < b; d++)
1774
+ c[d] = this.D(d) ^ a.D(d); return new T(c, this.h ^ a.h); };
1775
+ function de(a) { for (var b = a.g.length + 1, c = [], d = 0; d < b; d++)
1776
+ c[d] = a.D(d) << 1 | a.D(d - 1) >>> 31; return new T(c, a.h); }
1777
+ function Z(a, b) { var c = b >> 5; b %= 32; for (var d = a.g.length - c, e = [], f = 0; f < d; f++)
1778
+ e[f] = 0 < b ? a.D(f + c) >>> b | a.D(f + c + 1) << 32 - b : a.D(f + c); return new T(e, a.h); }
1779
+ Pd.prototype.createWebChannel = Pd.prototype.g;
1780
+ Q.prototype.send = Q.prototype.u;
1781
+ Q.prototype.open = Q.prototype.m;
1782
+ Q.prototype.close = Q.prototype.close;
1783
+ Ub.NO_ERROR = 0;
1784
+ Ub.TIMEOUT = 8;
1785
+ Ub.HTTP_ERROR = 6;
1786
+ Vb.COMPLETE = "complete";
1787
+ Yb.EventType = Zb;
1788
+ Zb.OPEN = "a";
1789
+ Zb.CLOSE = "b";
1790
+ Zb.ERROR = "c";
1791
+ Zb.MESSAGE = "d";
1792
+ B.prototype.listen = B.prototype.O;
1793
+ P.prototype.listenOnce = P.prototype.P;
1794
+ P.prototype.getLastError = P.prototype.Sa;
1795
+ P.prototype.getLastErrorCode = P.prototype.Ia;
1796
+ P.prototype.getStatus = P.prototype.da;
1797
+ P.prototype.getResponseJson = P.prototype.Wa;
1798
+ P.prototype.getResponseText = P.prototype.ja;
1799
+ P.prototype.send = P.prototype.ha;
1800
+ P.prototype.setWithCredentials = P.prototype.Oa;
1801
+ S.prototype.digest = S.prototype.l;
1802
+ S.prototype.reset = S.prototype.reset;
1803
+ S.prototype.update = S.prototype.j;
1804
+ T.prototype.add = T.prototype.add;
1805
+ T.prototype.multiply = T.prototype.R;
1806
+ T.prototype.modulo = T.prototype.gb;
1807
+ T.prototype.compare = T.prototype.X;
1808
+ T.prototype.toNumber = T.prototype.ea;
1809
+ T.prototype.toString = T.prototype.toString;
1810
+ T.prototype.getBits = T.prototype.D;
1811
+ T.fromNumber = U;
1812
+ T.fromString = Xd;
1813
+ var createWebChannelTransport = esm.createWebChannelTransport = function () { return new Pd; };
1814
+ var getStatEventTarget = esm.getStatEventTarget = function () { return Ob(); };
1815
+ var ErrorCode = esm.ErrorCode = Ub;
1816
+ var EventType = esm.EventType = Vb;
1817
+ var Event = esm.Event = E;
1818
+ var Stat = esm.Stat = { xb: 0, Ab: 1, Bb: 2, Ub: 3, Zb: 4, Wb: 5, Xb: 6, Vb: 7, Tb: 8, Yb: 9, PROXY: 10, NOPROXY: 11, Rb: 12, Nb: 13, Ob: 14, Mb: 15, Pb: 16, Qb: 17, tb: 18, sb: 19, ub: 20 };
1819
+ var FetchXmlHttpFactory = esm.FetchXmlHttpFactory = md;
1820
+ var WebChannel = esm.WebChannel = Yb;
1821
+ var XhrIo = esm.XhrIo = P;
1822
+ var Md5 = esm.Md5 = S;
1823
+ var Integer = esm.Integer = T;
1824
+
1825
+ export { ErrorCode, Event, EventType, FetchXmlHttpFactory, Integer, Md5, Stat, WebChannel, XhrIo, createWebChannelTransport, esm as default, getStatEventTarget };
1826
+ //# sourceMappingURL=index.esm.js.map