index.esm.js 82 KB

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