/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var n; function aa(a) { var b = 0; return function() { return b < a.length ? { done: !1, value: a[b++] } : { done: !0 } } } var ba = "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) { a != Array.prototype && a != Object.prototype && (a[b] = c.value) }; function ca(a) { a = ["object" == typeof window && window, "object" == typeof self && self, "object" == typeof global && global, a]; for (var b = 0; b < a.length; ++b) { var c = a[b]; if (c && c.Math == Math) return c } throw Error("Cannot find global object"); } var r = ca(this); function t() { t = function() {}; r.Symbol || (r.Symbol = da) } function ea(a, b) { this.a = a; ba(this, "description", { configurable: !0, writable: !0, value: b }) } ea.prototype.toString = function() { return this.a }; var da = function() { function a(c) { if (this instanceof a) throw new TypeError("Symbol is not a constructor"); return new ea("jscomp_symbol_" + (c || "") + "_" + b++, c) } var b = 0; return a }(); function u() { t(); var a = r.Symbol.iterator; a || (a = r.Symbol.iterator = r.Symbol("Symbol.iterator")); "function" != typeof Array.prototype[a] && ba(Array.prototype, a, { configurable: !0, writable: !0, value: function() { return fa(aa(this)) } }); u = function() {} } function fa(a) { u(); a = { next: a }; a[r.Symbol.iterator] = function() { return this }; return a } function ha(a) { var b = "undefined" != typeof Symbol && Symbol.iterator && a[Symbol.iterator]; return b ? b.call(a) : { next: aa(a) } } var ia = "function" == typeof Object.create ? Object.create : function(a) { function b() {} b.prototype = a; return new b }, ja; if ("function" == typeof Object.setPrototypeOf) ja = Object.setPrototypeOf; else { var ka; a: { var la = { V: !0 }, ma = {}; try { ma.__proto__ = la; ka = ma.V; break a } catch (a) {} ka = !1 } ja = ka ? function(a, b) { a.__proto__ = b; if (a.__proto__ !== b) throw new TypeError(a + " is not extensible"); return a } : null } var na = ja; function oa(a, b) { a.prototype = ia(b.prototype); a.prototype.constructor = a; if (na) na(a, b); else for (var c in b) if ("prototype" != c) if (Object.defineProperties) { var d = Object.getOwnPropertyDescriptor(b, c); d && Object.defineProperty(a, c, d) } else a[c] = b[c]; a.O = b.prototype } function pa(a, b) { u(); a instanceof String && (a += ""); var c = 0, d = { next: function() { if (c < a.length) { var f = c++; return { value: b(f, a[f]), done: !1 } } d.next = function() { return { done: !0, value: void 0 } }; return d.next() } }; d[Symbol.iterator] = function() { return d }; return d } function v(a, b) { if (b) { var c = r; a = a.split("."); for (var d = 0; d < a.length - 1; d++) { var f = a[d]; f in c || (c[f] = {}); c = c[f] } a = a[a.length - 1]; d = c[a]; b = b(d); b != d && null != b && ba(c, a, { configurable: !0, writable: !0, value: b }) } } v("Array.prototype.keys", function(a) { return a ? a : function() { return pa(this, function(b) { return b }) } }); v("Array.prototype.find", function(a) { return a ? a : function(b, c) { a: { var d = this;d instanceof String && (d = String(d)); for (var f = d.length, g = 0; g < f; g++) { var e = d[g]; if (b.call(c, e, g, d)) { b = e; break a } } b = void 0 } return b } }); v("Object.is", function(a) { return a ? a : function(b, c) { return b === c ? 0 !== b || 1 / b === 1 / c : b !== b && c !== c } }); v("Array.prototype.includes", function(a) { return a ? a : function(b, c) { var d = this; d instanceof String && (d = String(d)); var f = d.length; c = c || 0; for (0 > c && (c = Math.max(c + f, 0)); c < f; c++) { var g = d[c]; if (g === b || Object.is(g, b)) return !0 } return !1 } }); v("Promise", function(a) { function b(e) { this.b = 0; this.c = void 0; this.a = []; var h = this.f(); try { e(h.resolve, h.reject) } catch (k) { h.reject(k) } } function c() { this.a = null } function d(e) { return e instanceof b ? e : new b(function(h) { h(e) }) } if (a) return a; c.prototype.b = function(e) { if (null == this.a) { this.a = []; var h = this; this.c(function() { h.g() }) } this.a.push(e) }; var f = r.setTimeout; c.prototype.c = function(e) { f(e, 0) }; c.prototype.g = function() { for (; this.a && this.a.length;) { var e = this.a; this.a = []; for (var h = 0; h < e.length; ++h) { var k = e[h]; e[h] = null; try { k() } catch (l) { this.f(l) } } } this.a = null }; c.prototype.f = function(e) { this.c(function() { throw e; }) }; b.prototype.f = function() { function e(l) { return function(m) { k || (k = !0, l.call(h, m)) } } var h = this, k = !1; return { resolve: e(this.s), reject: e(this.g) } }; b.prototype.s = function(e) { if (e === this) this.g(new TypeError("A Promise cannot resolve to itself")); else if (e instanceof b) this.v(e); else { a: switch (typeof e) { case "object": var h = null != e; break a; case "function": h = !0; break a; default: h = !1 } h ? this.m(e) : this.h(e) } }; b.prototype.m = function(e) { var h = void 0; try { h = e.then } catch (k) { this.g(k); return } "function" == typeof h ? this.w(h, e) : this.h(e) }; b.prototype.g = function(e) { this.i(2, e) }; b.prototype.h = function(e) { this.i(1, e) }; b.prototype.i = function(e, h) { if (0 != this.b) throw Error("Cannot settle(" + e + ", " + h + "): Promise already settled in state" + this.b); this.b = e; this.c = h; this.l() }; b.prototype.l = function() { if (null != this.a) { for (var e = 0; e < this.a.length; ++e) g.b(this.a[e]); this.a = null } }; var g = new c; b.prototype.v = function(e) { var h = this.f(); e.F(h.resolve, h.reject) }; b.prototype.w = function(e, h) { var k = this.f(); try { e.call(h, k.resolve, k.reject) } catch (l) { k.reject(l) } }; b.prototype.then = function(e, h) { function k(q, w) { return "function" == typeof q ? function(z) { try { l(q(z)) } catch (M) { m(M) } } : w } var l, m, p = new b(function(q, w) { l = q; m = w }); this.F(k(e, l), k(h, m)); return p }; b.prototype.catch = function(e) { return this.then(void 0, e) }; b.prototype.F = function(e, h) { function k() { switch (l.b) { case 1: e(l.c); break; case 2: h(l.c); break; default: throw Error("Unexpected state: " + l.b); } } var l = this; null == this.a ? g.b(k) : this.a.push(k) }; b.resolve = d; b.reject = function(e) { return new b(function(h, k) { k(e) }) }; b.race = function(e) { return new b(function(h, k) { for (var l = ha(e), m = l.next(); !m.done; m = l.next()) d(m.value).F(h, k) }) }; b.all = function(e) { var h = ha(e), k = h.next(); return k.done ? d([]) : new b(function(l, m) { function p(z) { return function(M) { q[z] = M; w--; 0 == w && l(q) } } var q = [], w = 0; do q.push(void 0), w++, d(k.value).F(p(q.length - 1), m), k = h.next(); while (!k.done) }) }; return b }); var qa = qa || {}, x = this || self; function y(a, b) { a = a.split("."); b = b || x; for (var c = 0; c < a.length; c++) if (b = b[a[c]], null == b) return null; return b } function ra() {} function sa(a) { var b = typeof a; return "object" == b && null != a || "function" == b } var ta = "closure_uid_" + (1E9 * Math.random() >>> 0), ua = 0; function va(a, b, c) { return a.call.apply(a.bind, arguments) } function wa(a, b, c) { if (!a) throw Error(); if (2 < arguments.length) { var d = Array.prototype.slice.call(arguments, 2); return function() { var f = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(f, d); return a.apply(b, f) } } return function() { return a.apply(b, arguments) } } function A(a, b, c) { Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? A = va : A = wa; return A.apply(null, arguments) } function B(a, b) { function c() {} c.prototype = b.prototype; a.O = b.prototype; a.prototype = new c; a.prototype.constructor = a }; function xa(a) { this.a = a || {} } xa.prototype.get = function(a) { return this.a[a] }; xa.prototype.G = function() { return Object.keys(this.a) }; function C(a, b, c, d) { this.f = a; this.c = b; this.b = c; this.a = d } C.prototype.getRequestMessage = function() { return this.f }; C.prototype.getMethodDescriptor = function() { return this.c }; C.prototype.getMetadata = function() { return this.b }; C.prototype.getCallOptions = function() { return this.a }; function D(a, b, c, d) { c = void 0 === c ? {} : c; this.c = a; this.a = c; this.b = b; this.f = void 0 === d ? null : d } D.prototype.getResponseMessage = function() { return this.c }; D.prototype.getMetadata = function() { return this.a }; D.prototype.getMethodDescriptor = function() { return this.b }; D.prototype.getStatus = function() { return this.f }; function ya(a, b, c, d, f, g) { this.name = a; this.a = f; this.b = g } function za(a, b, c) { c = void 0 === c ? {} : c; var d = void 0 === d ? new xa : d; return new C(b, a, c, d) } ya.prototype.getName = function() { return this.name }; ya.prototype.getName = ya.prototype.getName; function Aa(a) { switch (a) { case 200: return 0; case 400: return 3; case 401: return 16; case 403: return 7; case 404: return 5; case 409: return 10; case 412: return 9; case 429: return 8; case 499: return 1; case 500: return 2; case 501: return 12; case 503: return 14; case 504: return 4; default: return 2 } }; function E(a, b, c) { c = void 0 === c ? {} : c; b = Error.call(this, b); this.message = b.message; "stack" in b && (this.stack = b.stack); this.code = a; this.metadata = c } oa(E, Error); E.prototype.name = "RpcError"; function Ba(a) { this.a = a } Ba.prototype.on = function(a, b) { return "data" == a || "error" == a ? this : this.a.on(a, b) }; Ba.prototype.removeListener = function(a, b) { return this.a.removeListener(a, b) }; Ba.prototype.cancel = function() { this.a.cancel() }; function Ca(a) { switch (a) { case 0: return "No Error"; case 1: return "Access denied to content document"; case 2: return "File not found"; case 3: return "Firefox silently errored"; case 4: return "Application custom error"; case 5: return "An exception occurred"; case 6: return "Http response at 400 or 500 level"; case 7: return "Request was aborted"; case 8: return "Request timed out"; case 9: return "The resource is not available offline"; default: return "Unrecognized error code" } }; function F(a) { if (Error.captureStackTrace) Error.captureStackTrace(this, F); else { var b = Error().stack; b && (this.stack = b) } a && (this.message = String(a)) } B(F, Error); F.prototype.name = "CustomError"; function Da(a, b) { a = a.split("%s"); for (var c = "", d = a.length - 1, f = 0; f < d; f++) c += a[f] + (f < b.length ? b[f] : "%s"); F.call(this, c + a[d]) } B(Da, F); Da.prototype.name = "AssertionError"; function Ea(a, b) { throw new Da("Failure" + (a ? ": " + a : ""), Array.prototype.slice.call(arguments, 1)); }; function Fa() { this.l = null; this.i = []; this.m = 0; this.b = Ga; this.f = this.a = this.h = 0; this.c = null; this.g = 0 } function Ha(a, b) { function c(l) { l == Ia ? e.h = l : l == G ? e.h = l : Ja(e, h, k, "invalid frame byte"); e.b = Ka; e.a = 0; e.f = 0 } function d(l) { e.f++; e.a = (e.a << 8) + l; 4 == e.f && (e.b = La, e.g = 0, "undefined" !== typeof Uint8Array ? e.c = new Uint8Array(e.a) : e.c = Array(e .a), 0 == e.a && g()) } function f(l) { e.c[e.g++] = l; e.g == e.a && g() } function g() { var l = {}; l[e.h] = e.c; e.i.push(l); e.b = Ga } var e = a, h, k = 0; for (b instanceof Uint8Array || b instanceof Array ? h = b : h = new Uint8Array(b); k < h.length;) { switch (e.b) { case Ma: Ja(e, h, k, "stream already broken"); break; case Ga: c(h[k]); break; case Ka: d(h[k]); break; case La: f(h[k]); break; default: throw Error("unexpected parser state: " + e.b); } e.m++; k++ } a = e.i; e.i = []; return 0 < a.length ? a : null } var Ga = 0, Ka = 1, La = 2, Ma = 3, Ia = 0, G = 128; function Ja(a, b, c, d) { a.b = Ma; a.l = "The stream is broken @" + a.m + "/" + c + ". Error: " + d + ". With input:\n" + b; throw Error(a.l); }; var Na = Array.prototype.indexOf ? function(a, b) { return Array.prototype.indexOf.call(a, b, void 0) } : function(a, b) { if ("string" === typeof a) return "string" !== typeof b || 1 != b.length ? -1 : a.indexOf(b, 0); for (var c = 0; c < a.length; c++) if (c in a && a[c] === b) return c; return -1 }; var Oa = String.prototype.trim ? function(a) { return a.trim() } : function(a) { return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1] }; function H(a, b) { return -1 != a.indexOf(b) } function Pa(a, b) { return a < b ? -1 : a > b ? 1 : 0 }; var I; a: { var Qa = x.navigator; if (Qa) { var Ra = Qa.userAgent; if (Ra) { I = Ra; break a } } I = "" }; function Sa(a, b) { for (var c in a) b.call(void 0, a[c], c, a) } function Ta(a, b) { var c = {}, d; for (d in a) c[d] = b.call(void 0, a[d], d, a); return c } var Ua = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); function Va(a, b) { for (var c, d, f = 1; f < arguments.length; f++) { d = arguments[f]; for (c in d) a[c] = d[c]; for (var g = 0; g < Ua.length; g++) c = Ua[g], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]) } }; function Wa(a) { var b = 1; a = a.split(":"); for (var c = []; 0 < b && a.length;) c.push(a.shift()), b--; a.length && c.push(a.join(":")); return c }; function Xa(a) { Xa[" "](a); return a } Xa[" "] = ra; function Ya(a) { var b = Za; return Object.prototype.hasOwnProperty.call(b, 9) ? b[9] : b[9] = a(9) }; var $a = H(I, "Opera"), ab = H(I, "Trident") || H(I, "MSIE"), bb = H(I, "Edge"), cb = H(I, "Gecko") && !(H(I.toLowerCase(), "webkit") && !H(I, "Edge")) && !(H(I, "Trident") || H(I, "MSIE")) && !H( I, "Edge"), db = H(I.toLowerCase(), "webkit") && !H(I, "Edge"), eb; a: { var fb = "", gb = function() { var a = I; if (cb) return /rv:([^\);]+)(\)|;)/.exec(a); if (bb) return /Edge\/([\d\.]+)/.exec(a); if (ab) return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a); if (db) return /WebKit\/(\S+)/.exec(a); if ($a) return /(?:Version)[ \/]?(\S+)/.exec(a) }();gb && (fb = gb ? gb[1] : ""); if (ab) { var hb, ib = x.document; hb = ib ? ib.documentMode : void 0; if (null != hb && hb > parseFloat(fb)) { eb = String(hb); break a } } eb = fb } var Za = {}; function jb() { return Ya(function() { for (var a = 0, b = Oa(String(eb)).split("."), c = Oa("9").split("."), d = Math.max(b.length, c.length), f = 0; 0 == a && f < d; f++) { var g = b[f] || "", e = c[f] || ""; do { g = /(\d*)(\D*)(.*)/.exec(g) || ["", "", "", ""]; e = /(\d*)(\D*)(.*)/.exec(e) || ["", "", "", ""]; if (0 == g[0].length && 0 == e[0].length) break; a = Pa(0 == g[1].length ? 0 : parseInt(g[1], 10), 0 == e[1].length ? 0 : parseInt(e[1], 10)) || Pa(0 == g[2].length, 0 == e[2].length) || Pa(g[2], e[2]); g = g[3]; e = e[3] } while (0 == a) } return 0 <= a }) }; function kb() { 0 != lb && (Object.prototype.hasOwnProperty.call(this, ta) && this[ta] || (this[ta] = ++ua)); this.K = this.K } var lb = 0; kb.prototype.K = !1; var mb = Object.freeze || function(a) { return a }; function J(a, b) { this.type = a; this.a = this.target = b; this.defaultPrevented = !1 } J.prototype.b = function() { this.defaultPrevented = !0 }; var nb = function() { if (!x.addEventListener || !Object.defineProperty) return !1; var a = !1, b = Object.defineProperty({}, "passive", { get: function() { a = !0 } }); try { x.addEventListener("test", ra, b), x.removeEventListener("test", ra, b) } catch (c) {} return a }(); function K(a, b) { J.call(this, a ? a.type : ""); this.relatedTarget = this.a = this.target = null; this.button = this.screenY = this.screenX = this.clientY = this.clientX = 0; this.key = ""; this.metaKey = this.shiftKey = this.altKey = this.ctrlKey = !1; this.pointerId = 0; this.pointerType = ""; this.c = null; if (a) { var c = this.type = a.type, d = a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : null; this.target = a.target || a.srcElement; this.a = b; if (b = a.relatedTarget) { if (cb) { a: { try { Xa(b.nodeName); var f = !0; break a } catch (g) {} f = !1 } f || (b = null) } } else "mouseover" == c ? b = a.fromElement : "mouseout" == c && (b = a.toElement); this.relatedTarget = b; 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); this.button = a.button; this.key = a.key || ""; this.ctrlKey = a.ctrlKey; this.altKey = a.altKey; this.shiftKey = a.shiftKey; this.metaKey = a.metaKey; this.pointerId = a.pointerId || 0; this.pointerType = "string" === typeof a.pointerType ? a.pointerType : ob[a.pointerType] || ""; this.c = a; a.defaultPrevented && K.O.b.call(this) } } B(K, J); var ob = mb({ 2: "touch", 3: "pen", 4: "mouse" }); K.prototype.b = function() { K.O.b.call(this); var a = this.c; a.preventDefault ? a.preventDefault() : a.returnValue = !1 }; var L = "closure_listenable_" + (1E6 * Math.random() | 0); var pb = 0; function qb(a, b, c, d, f) { this.listener = a; this.proxy = null; this.src = b; this.type = c; this.capture = !!d; this.H = f; this.key = ++pb; this.A = this.D = !1 } function rb(a) { a.A = !0; a.listener = null; a.proxy = null; a.src = null; a.H = null }; function sb(a) { this.src = a; this.a = {}; this.b = 0 } sb.prototype.add = function(a, b, c, d, f) { var g = a.toString(); a = this.a[g]; a || (a = this.a[g] = [], this.b++); var e = tb(a, b, d, f); - 1 < e ? (b = a[e], c || (b.D = !1)) : (b = new qb(b, this.src, g, !!d, f), b.D = c, a .push(b)); return b }; sb.prototype.remove = function(a, b, c, d) { a = a.toString(); if (!(a in this.a)) return !1; var f = this.a[a]; b = tb(f, b, c, d); return -1 < b ? (rb(f[b]), Array.prototype.splice.call(f, b, 1), 0 == f.length && (delete this.a[a], this.b--), !0) : !1 }; function ub(a, b) { var c = b.type; if (c in a.a) { var d = a.a[c], f = Na(d, b), g; (g = 0 <= f) && Array.prototype.splice.call(d, f, 1); g && (rb(b), 0 == a.a[c].length && (delete a.a[c], a.b--)) } } function tb(a, b, c, d) { for (var f = 0; f < a.length; ++f) { var g = a[f]; if (!g.A && g.listener == b && g.capture == !!c && g.H == d) return f } return -1 }; var vb = "closure_lm_" + (1E6 * Math.random() | 0), wb = {}, xb = 0; function yb(a, b, c, d, f) { if (d && d.once) zb(a, b, c, d, f); else if (Array.isArray(b)) for (var g = 0; g < b.length; g++) yb(a, b[g], c, d, f); else c = Ab(c), a && a[L] ? a.f.add(String(b), c, !1, sa(d) ? !!d.capture : !!d, f) : Bb(a, b, c, !1, d, f) } function Bb(a, b, c, d, f, g) { if (!b) throw Error("Invalid event type"); var e = sa(f) ? !!f.capture : !!f, h = Cb(a); h || (a[vb] = h = new sb(a)); c = h.add(b, c, d, e, g); if (!c.proxy) { d = Db(); c.proxy = d; d.src = a; d.listener = c; if (a.addEventListener) nb || (f = e), void 0 === f && (f = !1), a.addEventListener(b.toString(), d, f); else if (a.attachEvent) a.attachEvent(Eb(b.toString()), d); else if (a.addListener && a.removeListener) a.addListener(d); else throw Error("addEventListener and attachEvent are unavailable."); xb++ } } function Db() { function a(c) { return b.call(a.src, a.listener, c) } var b = Fb; return a } function zb(a, b, c, d, f) { if (Array.isArray(b)) for (var g = 0; g < b.length; g++) zb(a, b[g], c, d, f); else c = Ab(c), a && a[L] ? a.f.add(String(b), c, !0, sa(d) ? !!d.capture : !!d, f) : Bb(a, b, c, !0, d, f) } function Gb(a, b, c, d, f) { if (Array.isArray(b)) for (var g = 0; g < b.length; g++) Gb(a, b[g], c, d, f); else(d = sa(d) ? !!d.capture : !!d, c = Ab(c), a && a[L]) ? a.f.remove(String(b), c, d, f) : a && (a = Cb(a)) && ( b = a.a[b.toString()], a = -1, b && (a = tb(b, c, d, f)), (c = -1 < a ? b[a] : null) && Hb(c)) } function Hb(a) { if ("number" !== typeof a && a && !a.A) { var b = a.src; if (b && b[L]) ub(b.f, a); else { var c = a.type, d = a.proxy; b.removeEventListener ? b.removeEventListener(c, d, a.capture) : b.detachEvent ? b.detachEvent(Eb(c), d) : b .addListener && b.removeListener && b.removeListener(d); xb--; (c = Cb(b)) ? (ub(c, a), 0 == c.b && (c.src = null, b[vb] = null)) : rb(a) } } } function Eb(a) { return a in wb ? wb[a] : wb[a] = "on" + a } function Fb(a, b) { if (a.A) a = !0; else { b = new K(b, this); var c = a.listener, d = a.H || a.src; a.D && Hb(a); a = c.call(d, b) } return a } function Cb(a) { a = a[vb]; return a instanceof sb ? a : null } var Ib = "__closure_events_fn_" + (1E9 * Math.random() >>> 0); function Ab(a) { if ("function" === typeof a) return a; a[Ib] || (a[Ib] = function(b) { return a.handleEvent(b) }); return a[Ib] }; function N() { kb.call(this); this.f = new sb(this); this.U = this } B(N, kb); N.prototype[L] = !0; N.prototype.addEventListener = function(a, b, c, d) { yb(this, a, b, c, d) }; N.prototype.removeEventListener = function(a, b, c, d) { Gb(this, a, b, c, d) }; function O(a, b) { a = a.U; var c = b.type || b; if ("string" === typeof b) b = new J(b, a); else if (b instanceof J) b.target = b.target || a; else { var d = b; b = new J(c, a); Va(b, d) } a = b.a = a; Jb(a, c, !0, b); Jb(a, c, !1, b) } function Jb(a, b, c, d) { if (b = a.f.a[String(b)]) { b = b.concat(); for (var f = !0, g = 0; g < b.length; ++g) { var e = b[g]; if (e && !e.A && e.capture == c) { var h = e.listener, k = e.H || e.src; e.D && ub(a.f, e); f = !1 !== h.call(k, d) && f } } } }; var Kb = x; function Lb(a, b, c) { if ("function" === typeof a) c && (a = A(a, c)); else if (a && "function" == typeof a.handleEvent) a = A(a.handleEvent, a); else throw Error("Invalid listener argument"); return 2147483647 < Number(b) ? -1 : Kb.setTimeout(a, b || 0) }; function Mb(a, b) { this.name = a; this.value = b } Mb.prototype.toString = function() { return this.name }; var Nb = new Mb("OFF", Infinity), Ob = new Mb("SEVERE", 1E3), Pb = new Mb("CONFIG", 700), Qb = new Mb("FINE", 500); function Rb() { this.clear() } var Sb; Rb.prototype.clear = function() {}; function Ub(a, b, c) { this.reset(a || Nb, b, c, void 0, void 0) } Ub.prototype.reset = function() {}; function Vb(a, b) { this.a = null; this.f = []; this.b = (void 0 === b ? null : b) || null; this.c = []; this.g = { getName: function() { return a } } } function Wb(a) { if (a.a) return a.a; if (a.b) return Wb(a.b); Ea("Root logger has no level set."); return Nb } function Xb(a, b) { for (; a;) a.f.forEach(function(c) { c(b) }), a = a.b } function Yb() { this.entries = {}; var a = new Vb(""); a.a = Pb; this.entries[""] = a } var Zb; function $b(a, b, c) { var d = a.entries[b]; if (d) return void 0 !== c && (d.a = c), d; d = $b(a, b.substr(0, b.lastIndexOf("."))); var f = new Vb(b, d); a.entries[b] = f; d.c.push(f); void 0 !== c && (f.a = c); return f } function ac() { Zb || (Zb = new Yb); return Zb } function bc(a, b, c) { var d; if (d = a) if (d = a && b) { d = b.value; var f = a ? Wb($b(ac(), a.getName())) : Nb; d = d >= f.value } d && (b = b || Nb, d = $b(ac(), a.getName()), "function" === typeof c && (c = c()), Sb || (Sb = new Rb), a = a .getName(), a = new Ub(b, c, a), Xb(d, a)) } function P(a, b) { a && bc(a, Qb, b) }; function cc() {} cc.prototype.a = null; function dc(a) { var b; (b = a.a) || (b = {}, ec(a) && (b[0] = !0, b[1] = !0), b = a.a = b); return b }; var fc; function gc() {} B(gc, cc); function hc(a) { // 解决兼容APP端跨域的问题,app端必须使用H5+中的plus.net.XMLHttpRequest【APP端不兼容标准HTML中的XMLHttpRequest】 // #ifdef APP-PLUS return (a = ec(a)) ? new ActiveXObject(a) : new plus.net.XMLHttpRequest // #endif // #ifdef H5 return (a = ec(a)) ? new ActiveXObject(a) : new XMLHttpRequest // #endif // return (a = ec(a)) ? new ActiveXObject(a) : new XMLHttpRequest } function ec(a) { if (!a.b && "undefined" == typeof XMLHttpRequest && "undefined" != typeof ActiveXObject) { for (var b = ["MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], c = 0; c < b .length; c++) { var d = b[c]; try { return new ActiveXObject(d), a.b = d } catch (f) {} } throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"); } return a.b } fc = new gc; t(); u(); function ic(a, b) { this.b = a[x.Symbol.iterator](); this.c = b; this.f = 0 } ic.prototype[Symbol.iterator] = function() { return this }; ic.prototype.next = function() { var a = this.b.next(); return { value: a.done ? void 0 : this.c.call(void 0, a.value, this.f++), done: a.done } }; function jc(a, b) { return new ic(a, b) } t(); u(); t(); u(); var kc = "StopIteration" in x ? x.StopIteration : { message: "StopIteration", stack: "" }; function Q() {} Q.prototype.next = function() { return Q.prototype.a.call(this) }; Q.prototype.a = function() { throw kc; }; Q.prototype.u = function() { return this }; function lc(a) { if (a instanceof R || a instanceof S || a instanceof T) return a; if ("function" == typeof a.next) return new R(function() { return mc(a) }); t(); u(); if ("function" == typeof a[Symbol.iterator]) return t(), u(), new R(function() { return a[Symbol.iterator]() }); if ("function" == typeof a.u) return new R(function() { return mc(a.u()) }); throw Error("Not an iterator or iterable."); } function mc(a) { if (!(a instanceof Q)) return a; var b = !1; return { next: function() { for (var c; !b;) try { c = a.a(); break } catch (d) { if (d !== kc) throw d; b = !0 } return { value: c, done: b } } } } t(); u(); function R(a) { this.b = a } R.prototype.u = function() { return new S(this.b()) }; R.prototype[Symbol.iterator] = function() { return new T(this.b()) }; R.prototype.c = function() { return new T(this.b()) }; t(); u(); function S(a) { this.b = a } oa(S, Q); S.prototype.a = function() { var a = this.b.next(); if (a.done) throw kc; return a.value }; S.prototype.next = function() { return S.prototype.a.call(this) }; S.prototype[Symbol.iterator] = function() { return new T(this.b) }; S.prototype.c = function() { return new T(this.b) }; function T(a) { R.call(this, function() { return a }); this.f = a } oa(T, R); T.prototype.next = function() { return this.f.next() }; function nc(a, b) { this.o = {}; this.j = []; this.B = this.size = 0; var c = arguments.length; if (1 < c) { if (c % 2) throw Error("Uneven number of arguments"); for (var d = 0; d < c; d += 2) this.set(arguments[d], arguments[d + 1]) } else a && this.addAll(a) } n = nc.prototype; n.G = function() { oc(this); return this.j.concat() }; n.has = function(a) { return U(this.o, a) }; n.clear = function() { this.o = {}; this.B = this.size = this.j.length = 0 }; n.remove = function(a) { return this.delete(a) }; n.delete = function(a) { return U(this.o, a) ? (delete this.o[a], --this.size, this.B++, this.j.length > 2 * this.size && oc(this), !0) : !1 }; function oc(a) { if (a.size != a.j.length) { for (var b = 0, c = 0; b < a.j.length;) { var d = a.j[b]; U(a.o, d) && (a.j[c++] = d); b++ } a.j.length = c } if (a.size != a.j.length) { var f = {}; for (c = b = 0; b < a.j.length;) d = a.j[b], U(f, d) || (a.j[c++] = d, f[d] = 1), b++; a.j.length = c } } n.get = function(a, b) { return U(this.o, a) ? this.o[a] : b }; n.set = function(a, b) { U(this.o, a) || (this.size += 1, this.j.push(a), this.B++); this.o[a] = b }; n.addAll = function(a) { if (a instanceof nc) for (var b = a.G(), c = 0; c < b.length; c++) this.set(b[c], a.get(b[c])); else for (b in a) this.set(b, a[b]) }; n.forEach = function(a, b) { for (var c = this.G(), d = 0; d < c.length; d++) { var f = c[d], g = this.get(f); a.call(b, g, f, this) } }; n.clone = function() { return new nc(this) }; n.keys = function() { return lc(this.u(!0)).c() }; n.values = function() { return lc(this.u(!1)).c() }; n.entries = function() { var a = this; return jc(this.keys(), function(b) { return [b, a.get(b)] }) }; n.u = function(a) { oc(this); var b = 0, c = this.B, d = this, f = new Q; f.a = function() { if (c != d.B) throw Error("The map has changed since the iterator was created"); if (b >= d.j.length) throw kc; var g = d.j[b++]; return a ? g : d.o[g] }; f.next = f.a.bind(f); return f }; function U(a, b) { return Object.prototype.hasOwnProperty.call(a, b) }; var pc = /^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/; function qc(a) { N.call(this); this.headers = new nc; this.C = a || null; this.c = !1; this.J = this.a = null; this.P = this.v = ""; this.g = 0; this.l = ""; this.i = this.N = this.s = this.L = !1; this.h = 0; this.w = null; this.m = rc; this.I = this.M = !1 } B(qc, N); var rc = ""; qc.prototype.b = $b(ac(), "goog.net.XhrIo", void 0).g; var sc = /^https?$/i, tc = ["POST", "PUT"]; function uc(a, b, c) { if (a.a) throw Error("[goog.net.XhrIo] Object is active with another request=" + a.v + "; newUri=" + b); a.v = b; a.l = ""; a.g = 0; a.P = "POST"; a.L = !1; a.c = !0; a.a = a.C ? hc(a.C) : hc(fc); a.J = a.C ? dc(a.C) : dc(fc); a.a.onreadystatechange = A(a.R, a); try { P(a.b, V(a, "Opening Xhr")), a.N = !0, a.a.open("POST", String(b), !0), a.N = !1 } catch (g) { P(a.b, V(a, "Error opening Xhr: " + g.message)); vc(a, g); return } b = c || ""; c = a.headers.clone(); var d = c.G().find(function(g) { return "content-type" == g.toLowerCase() }), f = x.FormData && b instanceof x.FormData; !(0 <= Na(tc, "POST")) || d || f || c.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); c.forEach(function(g, e) { this.a.setRequestHeader(e, g) }, a); a.m && (a.a.responseType = a.m); "withCredentials" in a.a && a.a.withCredentials !== a.M && (a.a.withCredentials = a.M); try { wc(a), 0 < a.h && (a.I = xc(a.a), P(a.b, V(a, "Will abort after " + a.h + "ms if incomplete, xhr2 " + a.I)), a .I ? (a.a.timeout = a.h, a.a.ontimeout = A(a.T, a)) : a.w = Lb(a.T, a.h, a)), P(a.b, V(a, "Sending request")), a.s = !0, a.a.send(b), a.s = !1 } catch (g) { P(a.b, V(a, "Send error: " + g.message)), vc(a, g) } } function xc(a) { return ab && jb() && "number" === typeof a.timeout && void 0 !== a.ontimeout } n = qc.prototype; n.T = function() { "undefined" != typeof qa && this.a && (this.l = "Timed out after " + this.h + "ms, aborting", this.g = 8, P(this .b, V(this, this.l)), O(this, "timeout"), this.abort(8)) }; function vc(a, b) { a.c = !1; a.a && (a.i = !0, a.a.abort(), a.i = !1); a.l = b; a.g = 5; yc(a); zc(a) } function yc(a) { a.L || (a.L = !0, O(a, "complete"), O(a, "error")) } n.abort = function(a) { this.a && this.c && (P(this.b, V(this, "Aborting")), this.c = !1, this.i = !0, this.a.abort(), this.i = !1, this .g = a || 7, O(this, "complete"), O(this, "abort"), zc(this)) }; n.R = function() { this.K || (this.N || this.s || this.i ? Ac(this) : this.W()) }; n.W = function() { Ac(this) }; function Ac(a) { if (a.c && "undefined" != typeof qa) if (a.J[1] && 4 == W(a) && 2 == a.getStatus()) P(a.b, V(a, "Local request error detected and ignored")); else if (a.s && 4 == W(a)) Lb(a.R, 0, a); else if (O(a, "readystatechange"), 4 == W(a)) { P(a.b, V(a, "Request complete")); a.c = !1; try { var b = a.getStatus(); a: switch (b) { case 200: case 201: case 202: case 204: case 206: case 304: case 1223: var c = !0; break a; default: c = !1 } var d; if (!(d = c)) { var f; if (f = 0 === b) { var g = String(a.v).match(pc)[1] || null; if (!g && x.self && x.self.location) { var e = x.self.location.protocol; g = e.substr(0, e.length - 1) } f = !sc.test(g ? g.toLowerCase() : "") } d = f } if (d) O(a, "complete"), O(a, "success"); else { a.g = 6; try { var h = 2 < W(a) ? a.a.statusText : "" } catch (k) { P(a.b, "Can not get status: " + k.message), h = "" } a.l = h + " [" + a.getStatus() + "]"; yc(a) } } finally { zc(a) } } } function zc(a) { if (a.a) { wc(a); var b = a.a, c = a.J[0] ? ra : null; a.a = null; a.J = null; O(a, "ready"); try { b.onreadystatechange = c } catch (d) { (a = a.b) && bc(a, Ob, "Problem encountered resetting onreadystatechange: " + d.message) } } } function wc(a) { a.a && a.I && (a.a.ontimeout = null); a.w && (Kb.clearTimeout(a.w), a.w = null) } function W(a) { return a.a ? a.a.readyState : 0 } n.getStatus = function() { try { return 2 < W(this) ? this.a.status : -1 } catch (a) { return -1 } }; function Bc(a) { try { if (!a.a) return null; if ("response" in a.a) return a.a.response; switch (a.m) { case rc: case "text": return a.a.responseText; case "arraybuffer": if ("mozResponseArrayBuffer" in a.a) return a.a.mozResponseArrayBuffer } var b = a.b; b && bc(b, Ob, "Response type " + a.m + " is not supported on this browser"); return null } catch (c) { return P(a.b, "Can not get response: " + c.message), null } } function Cc(a, b) { if (a.a && 4 == W(a)) return a = a.a.getResponseHeader(b), null === a ? void 0 : a } function Dc(a) { var b = {}; a = (a.a && 4 == W(a) ? a.a.getAllResponseHeaders() || "" : "").split("\r\n"); for (var c = 0; c < a.length; c++) if (!/^[\s\xa0]*$/.test(a[c])) { var d = Wa(a[c]), f = d[0]; d = d[1]; if ("string" === typeof d) { d = d.trim(); var g = b[f] || []; b[f] = g; g.push(d) } } return Ta(b, function(e) { return e.join(", ") }) } function V(a, b) { return b + " [" + a.P + " " + a.v + " " + a.getStatus() + "]" }; var Ec = {}, Fc = null; function Gc(a) { var b = a.length, c = 3 * b / 4; c % 3 ? c = Math.floor(c) : H("=.", a[b - 1]) && (c = H("=.", a[b - 2]) ? c - 2 : c - 1); var d = new Uint8Array(c), f = 0; Hc(a, function(g) { d[f++] = g }); return d.subarray(0, f) } function Hc(a, b) { function c(k) { for (; d < a.length;) { var l = a.charAt(d++), m = Fc[l]; if (null != m) return m; if (!/^[\s\xa0]*$/.test(l)) throw Error("Unknown base64 encoding at char: " + l); } return k } Ic(); for (var d = 0;;) { var f = c(-1), g = c(0), e = c(64), h = c(64); if (64 === h && -1 === f) break; b(f << 2 | g >> 4); 64 != e && (b(g << 4 & 240 | e >> 2), 64 != h && b(e << 6 & 192 | h)) } } function Ic() { if (!Fc) { Fc = {}; for (var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), b = ["+/=", "+/", "-_=", "-_.", "-_" ], c = 0; 5 > c; c++) { var d = a.concat(b[c].split("")); Ec[c] = d; for (var f = 0; f < d.length; f++) { var g = d[f]; void 0 === Fc[g] && (Fc[g] = f) } } } }; var Jc = ["content-type", "grpc-status", "grpc-message"]; function X(a) { // console.log('X run') this.a = a.Z; this.m = null; this.b = []; this.h = []; this.g = []; this.f = []; this.c = []; this.l = !1; this.i = 0; this.s = new Fa; var b = this; yb(this.a, "readystatechange", function() { // console.log('readystatechange') // console.log(a) var c = b.a; // console.log(c) if (c = c.a ? c.a.getResponseHeader("Content-Type") : null) { // console.log('X ok 1') // console.log('c: ' + c) c = c.toLowerCase(); if (0 == c.lastIndexOf("application/grpc-web-text", 0)) { c = b.a; // console.log('(c = b.a) c: ' + JSON.stringify(c.a)) try { var d = c.a ? c.a.responseText : "" } catch (k) { // console.log("Can not get responseText: " + k.message) P(c.b, "Can not get responseText: " + k.message), d = "" } c = d || ""; // console.log('(c = d || "") c: ' + c) // add by wzx if (c == '200 OK') c = "" d = c.length - c.length % 4; c = c.substr(b.i, d - b.i); if (0 == c.length) return; // console.log('X ok 3') b.i = d; c = Gc(c) } else if (0 == c.lastIndexOf("application/grpc", 0)) c = new Uint8Array(Bc(b.a)); else { // console.log('Unknown Content-type received.') Y(b, new E(2, "Unknown Content-type received.")); return } d = null; try { // console.log(b.s) // console.log(c) d = Ha(b.s, c) } catch (k) { console.log(k) Y(b, new E(2, "Error in parsing response body")) } if (d) for (c = 0; c < d.length; c++) { if (Ia in d[c]) { var f = d[c][Ia]; if (f) { var g = !1, e = void 0; try { e = b.m(f), g = !0 } catch (k) { Y(b, new E(13, "Error when deserializing response data; error: " + k + ( ", response: " + e))) } if (g) for (f = e, g = 0; g < b.b.length; g++) b.b[g](f) } } if (G in d[c] && 0 < d[c][G].length) { f = ""; for (g = 0; g < d[c][G].length; g++) f += String.fromCharCode(d[c][G][g]); f = f.trim().split("\r\n"); g = {}; for (e = 0; e < f.length; e++) { var h = f[e].indexOf(":"); g[f[e].substring(0, h).trim()] = f[e].substring(h + 1).trim() } f = g; g = 0; e = ""; "grpc-status" in f && (g = Number(f["grpc-status"]), delete f["grpc-status"]); "grpc-message" in f && (e = f["grpc-message"], delete f["grpc-message"]); Y(b, new E(g, e, f)) } } } }); yb(this.a, "complete", function() { var c = b.a.g, d = 2, f = "", g = {}, e = Dc(b.a); Object.keys(e).forEach(function(k) { Jc.includes(k) || (g[k] = e[k]) }); Kc(b, g); var h = -1; if (0 != c) { switch (c) { case 7: d = 10; break; case 8: d = 4; break; case 6: h = b.a.getStatus(); d = Aa(h); break; default: d = 14 } 10 == d && b.l || (f = Ca(c), -1 != h && (f += ", http status code: " + h), Y(b, new E(d, f))) } else h = !1, "grpc-status" in e && (d = Number(Cc(b.a, "grpc-status")), "grpc-message" in e && (f = Cc(b.a, "grpc-message")), 0 != d && (Y(b, new E(d, f || "", e)), h = !0)), h || Lc(b) }) } X.prototype.on = function(a, b) { "data" == a ? this.b.push(b) : "status" == a ? this.h.push(b) : "metadata" == a ? this.g.push(b) : "end" == a ? this.c.push(b) : "error" == a && this.f.push(b); return this }; function Mc(a, b) { b = a.indexOf(b); - 1 < b && a.splice(b, 1) } X.prototype.removeListener = function(a, b) { "data" == a ? Mc(this.b, b) : "status" == a ? Mc(this.h, b) : "metadata" == a ? Mc(this.g, b) : "end" == a ? Mc( this.c, b) : "error" == a && Mc(this.f, b); return this }; X.prototype.cancel = function() { this.l = !0; this.a.abort() }; function Y(a, b) { if (0 != b.code) for (var c = new E(b.code, decodeURIComponent(b.message || ""), b.metadata), d = 0; d < a.f.length; d++) a.f[d]( c); b = { code: b.code, details: decodeURIComponent(b.message || ""), metadata: b.metadata }; for (c = 0; c < a.h.length; c++) a.h[c](b) } function Kc(a, b) { for (var c = 0; c < a.g.length; c++) a.g[c](b) } function Lc(a) { for (var b = 0; b < a.c.length; b++) a.c[b]() } X.prototype.cancel = X.prototype.cancel; X.prototype.removeListener = X.prototype.removeListener; X.prototype.on = X.prototype.on; function Nc(a) { var b = ""; Sa(a, function(c, d) { b += d; b += ":"; b += c; b += "\r\n" }); return b }; function Z(a, b) { a = void 0 === a ? {} : a; this.a = a.format || y("format", a) || "text"; this.g = a.aa || y("suppressCorsPreflight", a) || !1; this.f = a.withCredentials || y("withCredentials", a) || !1; this.b = a.$ || y("streamInterceptors", a) || []; this.h = a.ba || y("unaryInterceptors", a) || []; this.c = b || null } Z.prototype.X = function(a, b, c, d, f) { var g = this, e = a.substr(0, a.length - d.name.length); a = Oc(function(h) { return Pc(g, h, e) }, this.b).call(this, za(d, b, c)); Qc(a, f, !1); return new Ba(a) }; Z.prototype.S = function(a, b, c, d) { var f = this, g = a.substr(0, a.length - d.name.length); return Oc(function(e) { return new Promise(function(h, k) { var l = Pc(f, e, g), m, p, q; Qc(l, function(w, z, M, Tb, Rc) { w ? k(w) : Rc ? q = z : M ? p = M : Tb ? m = Tb : (w = e .getMethodDescriptor(), z = m, z = void 0 === z ? {} : z, h(new D(q, w, z, void 0 === p ? null : p))) }, !0) }) }, this.h).call(this, za(d, b, c)).then(function(e) { return e.getResponseMessage() }) }; Z.prototype.unaryCall = function(a, b, c, d) { return this.S(a, b, c, d) }; Z.prototype.Y = function(a, b, c, d) { var f = this, g = a.substr(0, a.length - d.name.length); return Oc(function(e) { return Pc(f, e, g) }, this.b).call(this, za(d, b, c)) }; function Pc(a, b, c) { var d = b.getMethodDescriptor(), f = c + d.getName(); c = a.c ? a.c : new qc; c.M = a.f; var g = new X({ Z: c }); g.m = d.b; var e = b.getMetadata(); for (h in e) c.headers.set(h, e[h]); "text" == a.a ? (c.headers.set("Content-Type", "application/grpc-web-text"), c.headers.set("Accept", "application/grpc-web-text")) : c.headers.set("Content-Type", "application/grpc-web+proto"); c.headers.set("X-User-Agent", "grpc-web-javascript/0.1"); c.headers.set("X-Grpc-Web", "1"); if (c.headers.has("deadline")) { var h = Number(c.headers.get("deadline")); h = Math.ceil(h - (new Date).getTime()); c.headers.delete("deadline"); Infinity === h && (h = 0); 0 < h && (c.headers.set("grpc-timeout", h + "m"), c.h = Math.max(0, Math.max(1E3, Math.ceil(1.1 * h)))) } if (a.g) { e = c.headers; h = {}; for (var k = ha(e.keys()), l = k.next(); !l.done; l = k.next()) l = l.value, h[l] = e.get(l); c.headers.clear(); b: { for (m in h) { var m = !1; break b } m = !0 } if (!m) if (h = Nc(h), "string" === typeof f) { if (m = encodeURIComponent("$httpHeaders"), h = null != h ? "=" + encodeURIComponent(String(h)) : "", m += h) h = f.indexOf("#"), 0 > h && (h = f.length), e = f.indexOf("?"), 0 > e || e > h ? (e = h, k = "") : k = f.substring(e + 1, h), f = [f.substr(0, e), k, f.substr(h)], h = f[1], f[1] = m ? h ? h + "&" + m : m : h, f = f[0] + (f[1] ? "?" + f[1] : "") + f[2] } else f.a("$httpHeaders", h) } b = (0, d.a)(b.getRequestMessage()); d = b.length; m = [0, 0, 0, 0]; h = new Uint8Array(5 + d); for (e = 3; 0 <= e; e--) m[e] = d % 256, d >>>= 8; h.set(new Uint8Array(m), 1); h.set(b, 5); b = h; if ("text" == a.a) { a = b; var p; void 0 === p && (p = 0); Ic(); p = Ec[p]; b = Array(Math.floor(a.length / 3)); d = p[64] || ""; for (m = h = 0; h < a.length - 2; h += 3) { l = a[h]; var q = a[h + 1]; k = a[h + 2]; e = p[l >> 2]; l = p[(l & 3) << 4 | q >> 4]; q = p[(q & 15) << 2 | k >> 6]; k = p[k & 63]; b[m++] = e + l + q + k } e = 0; k = d; switch (a.length - h) { case 2: e = a[h + 1], k = p[(e & 15) << 2] || d; case 1: a = a[h], b[m] = p[a >> 2] + p[(a & 3) << 4 | e >> 4] + k + d } b = b.join("") } else "binary" == a.a && (c.m = "arraybuffer"); uc(c, f, b); return g } function Qc(a, b, c) { var d = !1, f = null, g = !1; a.on("data", function(e) { d = !0; f = e }); a.on("error", function(e) { 0 == e.code || g || (g = !0, b(e, null)) }); a.on("status", function(e) { 0 == e.code || g ? c && b(null, null, e) : (g = !0, b({ code: e.code, message: e.details, metadata: e.metadata }, null)) }); if (c) a.on("metadata", function(e) { b(null, null, null, e) }); a.on("end", function() { g || (d ? c ? b(null, f, null, null, !0) : b(null, f) : b({ code: 2, message: "Incomplete response" })); c && b(null, null) }) } function Oc(a, b) { var c = a; b.forEach(function(d) { var f = c; c = function(g) { return d.intercept(g, f) } }); return c } Z.prototype.serverStreaming = Z.prototype.Y; Z.prototype.unaryCall = Z.prototype.unaryCall; Z.prototype.thenableCall = Z.prototype.S; Z.prototype.rpcCall = Z.prototype.X; module.exports.CallOptions = xa; module.exports.MethodDescriptor = ya; module.exports.GrpcWebClientBase = Z; module.exports.RpcError = E; module.exports.StatusCode = { OK: 0, CANCELLED: 1, UNKNOWN: 2, INVALID_ARGUMENT: 3, DEADLINE_EXCEEDED: 4, NOT_FOUND: 5, ALREADY_EXISTS: 6, PERMISSION_DENIED: 7, UNAUTHENTICATED: 16, RESOURCE_EXHAUSTED: 8, FAILED_PRECONDITION: 9, ABORTED: 10, OUT_OF_RANGE: 11, UNIMPLEMENTED: 12, INTERNAL: 13, UNAVAILABLE: 14, DATA_LOSS: 15 }; module.exports.MethodType = { UNARY: "unary", SERVER_STREAMING: "server_streaming", BIDI_STREAMING: "bidi_streaming" }; Kb = "undefined" !== typeof globalThis && globalThis || self;