@firebase/webchannel-wrapper 0.10.6-dataconnect-preview.323fdc1b8 → 0.10.6-passkey-preview.103ead202

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