1/*! @license Firebase v3.7.5 2 Build: 3.7.5-rc.1 3 Terms: https://firebase.google.com/terms/ */ 4var firebase = null; (function() { var aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},l=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");},n=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},ba=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&& 5self,"object"==typeof global&&global];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");},ca=ba(this),p=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};/* 6 7 Copyright The Closure Library Authors. 8 SPDX-License-Identifier: Apache-2.0 9*/ 10var q=this||self,r=function(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)}},u=function(a,b){function c(){}c.prototype=b.prototype;a.ha=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,h){for(var k=Array(arguments.length-2),f=2;f<arguments.length;f++)k[f-2]=arguments[f];return b.prototype[e].apply(d,k)}};var v=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};function w(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,w);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}u(w,Error);w.prototype.name="CustomError";function x(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");w.call(this,c+a[d])}u(x,w);x.prototype.name="AssertionError";function z(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var h=d}else a&&(e+=": "+a,h=b);throw new x(""+e,h||[]);} 11var A=function(a,b,c){a||z("",null,b,Array.prototype.slice.call(arguments,2))},da=function(a,b,c){a==null&&z("Expected to exist: %s.",[a],b,Array.prototype.slice.call(arguments,2));return a},B=function(a,b,c){if(typeof a!=="function"){var d=typeof a;d=d!="object"?d:a?Array.isArray(a)?"array":d:"null";z("Expected function but got %s: %s.",[d,a],b,Array.prototype.slice.call(arguments,2))}};var C=function(a,b){this.aa=100;this.W=a;this.ba=b;this.G=0;this.F=null};C.prototype.get=function(){if(this.G>0){this.G--;var a=this.F;this.F=a.next;a.next=null}else a=this.W();return a};C.prototype.put=function(a){this.ba(a);this.G<this.aa&&(this.G++,a.next=this.F,this.F=a)};function ea(a){q.setTimeout(function(){throw a;},0)};var D=function(){this.H=this.o=null};D.prototype.add=function(a,b){var c=fa.get();c.set(a,b);this.H?this.H.next=c:(A(!this.o),this.o=c);this.H=c};D.prototype.remove=function(){var a=null;this.o&&(a=this.o,this.o=this.o.next,this.o||(this.H=null),a.next=null);return a};var fa=new C(function(){return new E},function(a){return a.reset()}),E=function(){this.next=this.scope=this.fn=null};E.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null}; 12E.prototype.reset=function(){this.next=this.scope=this.fn=null};var F=q.console&&q.console.createTask?q.console.createTask.bind(q.console):void 0,G=F?Symbol("consoleTask"):void 0; 13function H(a,b){function c(){var f=p.apply(0,arguments),g=this;return k.run(function(){return a.call.apply(a,[g].concat(f instanceof Array?f:n(l(f))))})}b=b===void 0?"anonymous":b;if(G&&a[G])return a;var d=a,e,h=(e=ha)==null?void 0:e();a=function(){var f=p.apply(0,arguments),g,m=(g=ha)==null?void 0:g();if(h!==m)throw Error(b+" was scheduled in '"+h+"' but called in '"+m+"'.\nMake sure your test awaits all async calls.\n\nTIP: To help investigate, debug the test in Chrome and look at the async portion\nof the call stack to see what originally scheduled the callback. Then, make the\ntest wait for the relevant asynchronous work to finish.");return d.call.apply(d, 14[this].concat(f instanceof Array?f:n(l(f))))};if(!F)return a;var k=F(a.name||b);c[da(G)]=k;return c}var ha;var I,J=!1,ia=new D,K=function(a,b){a=H(a,"goog.async.run");I||ja();J||(I(),J=!0);ia.add(a,b)},ja=function(){var a=Promise.resolve(void 0);I=function(){a.then(ka)}};function ka(){for(var a;a=ia.remove();){try{a.fn.call(a.scope)}catch(b){ea(b)}fa.put(a)}J=!1};var L=function(){};var O=function(a,b){this.g=0;this.U=void 0;this.u=this.i=this.m=null;this.D=this.I=!1;if(a!=L)try{var c=this;a.call(b,function(d){M(c,2,d)}
14,function(d){if(!(d instanceof N))try{if(d instanceof Error)throw d;throw Error("Promise rejected.");}catch(e){}M(c,3,d)})}catch(d){M(this,3,d)}},la=function(){this.next=this.context=this.v=this.l=this.child=null;this.A=!1};la.prototype.reset=function(){this.context=this.v=this.l=this.child=null;this.A=!1}; 15var ma=new C(function(){return new la},function(a){a.reset()}),na=function(a,b,c){var d=ma.get();d.l=a;d.v=b;d.context=c;return d},pa=function(a,b,c){oa(a,b,c,null)||K(r(b,a))};O.prototype.then=function(a,b,c){a!=null&&B(a,"opt_onFulfilled should be a function.");b!=null&&B(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return qa(this,v(typeof a==="function"?a:null),v(typeof b==="function"?b:null),c)};O.prototype.$goog_Thenable=!0; 16var sa=function(a,b,c,d){b!=null&&B(b,"opt_onFulfilled should be a function.");c!=null&&B(c,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");ra(a,na(b||L,c||null,d))};O.prototype.finally=function(a){var b=this;a=v(a);return new O(function(c,d){sa(b,function(e){a();c(e)},function(e){a();d(e)})})};O.prototype.V=function(a,b){return qa(this,null,v(a),b)};O.prototype.catch=O.prototype.V; 17O.prototype.cancel=function(a){if(this.g==0){var b=new N(a);K(function(){ta(this,b)},this)}}; 18var ta=function(a,b){if(a.g==0)if(a.m){var c=a.m;if(c.i){for(var d=0,e=null,h=null,k=c.i;k&&(k.A||(d++,k.child==a&&(e=k),!(e&&d>1)));k=k.next)e||(h=k);e&&(c.g==0&&d==1?ta(c,b):(h?(d=h,A(c.i),A(d!=null),d.next==c.u&&(c.u=d),d.next=d.next.next):ua(c),va(c,e,3,b)))}a.m=null}else M(a,3,b)},ra=function(a,b){a.i||a.g!=2&&a.g!=3||wa(a);A(b.l!=null);a.u?a.u.next=b:a.i=b;a.u=b},qa=function(a,b,c,d){b&&(b=H(b,"goog.Promise.then"));c&&(c=H(c,"goog.Promise.then"));var e=na(null,null,null);e.child=new O(function(h, 19k){e.l=b?function(f){try{var g=b.call(d,f);h(g)}catch(m){k(m)}}:h;e.v=c?function(f){try{var g=c.call(d,f);g===void 0&&f instanceof N?k(f):h(g)}catch(m){k(m)}}:k});e.child.m=a;ra(a,e);return e.child};O.prototype.ea=function(a){A(this.g==1);this.g=0;M(this,2,a)};O.prototype.fa=function(a){A(this.g==1);this.g=0;M(this,3,a)}; 20var M=function(a,b,c){a.g==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,oa(c,a.ea,a.fa,a)||(a.U=c,a.g=b,a.m=null,wa(a),b!=3||c instanceof N||xa(a,c)))},oa=function(a,b,c,d){if(a instanceof O)return sa(a,b,c,d),!0;if(a)try{var e=!!a.$goog_Thenable}catch(k){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;e=typeof a;if(e=="object"&&a!=null||e=="function")try{var h=a.then;if(typeof h==="function")return ya(a,h,b,c,d),!0}catch(k){return c.call(d,k),!0}return!1},ya=function(a, 21b,c,d,e){var h=!1,k=function(g){h||(h=!0,c.call(e,g))},f=function(g){h||(h=!0,d.call(e,g))};try{b.call(a,k,f)}catch(g){f(g)}},wa=function(a){a.I||(a.I=!0,K(a.X,a))},ua=function(a){var b=null;a.i&&(b=a.i,a.i=b.next,b.next=null);a.i||(a.u=null);b!=null&&A(b.l!=null);return b};O.prototype.X=function(){for(var a;a=ua(this);)va(this,a,this.g,this.U);this.I=!1}; 22var va=function(a,b,c,d){if(c==3&&b.v&&!b.A)for(;a&&a.D;a=a.m)a.D=!1;if(b.child)b.child.m=null,za(b,c,d);else try{b.A?b.l.call(b.context):za(b,c,d)}catch(e){Aa.call(null,e)}ma.put(b)},za=function(a,b,c){b==2?a.l.call(a.context,c):a.v&&a.v.call(a.context,c)},xa=function(a,b){a.D=!0;K(function(){a.D&&Aa.call(null,b)})},Aa=ea,N=function(a){w.call(this,a)};u(N,w);N.prototype.name="cancel";O.all=function(a){return new O(function(b,c){var d=a.length,e=[];if(d)for(var h=function(m,t){d--;e[m]=t;d==0&&b(e)},k=function(m){c(m)},f,g=0;g<a.length;g++)f=a[g],pa(f,r(h,g),k);else b(e)})};O.resolve=function(a){if(a instanceof O)return a;var b=new O(L);M(b,2,a);return b};O.reject=function(a){return new O(function(b,c){c(a)})};O.prototype["catch"]=O.prototype.V;var P=O;typeof Promise!=="undefined"&&(P=Promise);function Q(a,b){if(!(b instanceof Object))return b;switch(b.constructor){case Date:return new Date(b.getTime());case Object:a===void 0&&(a={});break;case Array:a=[];break;default:return b}for(var c in b)b.hasOwnProperty(c)&&(a[c]=Q(a[c],b[c]));return a};
22var Ba=Error.captureStackTrace,S=function(a,b){this.code=a;this.message=b;if(Ba)Ba(this,R.prototype.create);else{var c=Error.apply(this,arguments);this.name="FirebaseError";Object.defineProperty(this,"stack",{get:function(){return c.stack}})}};S.prototype.constructor=S;S.prototype.name="FirebaseError";var R=function(a,b,c){this.service=a;this.da=b;this.errors=c;this.pattern=/\{\$([^}]+)}/g}; 23R.prototype.create=function(a,b){b===void 0&&(b={});var c=this.errors[a];a=this.service+"/"+a;c=c===void 0?"Error":c.replace(this.pattern,function(e,h){e=b[h];return e!==void 0?e.toString():"<"+h+"?>"});c=this.da+": "+c+" ("+a+").";c=new S(a,c);for(var d in b)b.hasOwnProperty(d)&&d.slice(-1)!=="_"&&(c[d]=b[d]);return c};var Ca=P;function Da(a,b){a=new T(a,b);return a.subscribe.bind(a)}var T=function(a,b){var c=this;this.h=[];this.T=0;this.task=Ca.resolve();this.B=!1;this.K=b;this.task.then(function(){a(c)}).catch(function(d){c.error(d)})};T.prototype.next=function(a){U(this,function(b){b.next(a)})};T.prototype.error=function(a){U(this,function(b){b.error(a)});this.close(a)};T.prototype.complete=function(){U(this,function(a){a.complete()});this.close()}; 24T.prototype.subscribe=function(a,b,c){var d=this;if(a===void 0&&b===void 0&&c===void 0)throw Error("Missing Observer.");var e=Ea(a)?a:{next:a,error:b,complete:c};e.next===void 0&&(e.next=V);e.error===void 0&&(e.error=V);e.complete===void 0&&(e.complete=V);a=this.ga.bind(this,this.h.length);this.B&&this.task.then(function(){try{d.P?e.error(d.P):e.complete()}catch(h){}});this.h.push(e);return a}; 25T.prototype.ga=function(a){this.h!==void 0&&this.h[a]!==void 0&&(delete this.h[a],--this.T,this.T===0&&this.K!==void 0&&this.K(this))};var U=function(a,b){if(!a.B)for(var c=0;c<a.h.length;c++)Fa(a,c,b)},Fa=function(a,b,c){a.task.then(function(){if(a.h!==void 0&&a.h[b]!==void 0)try{c(a.h[b])}catch(d){typeof console!=="undefined"&&console.error&&console.error(d)}})};T.prototype.close=function(a){var b=this;this.B||(this.B=!0,a!==void 0&&(this.P=a),this.task.then(function(){b.h=void 0;b.K=void 0}))}; 26function Ea(a){if(typeof a!=="object"||a===null)return!1;for(var b=l(["next","error","complete"]),c=b.next();!c.done;c=b.next())if(c=c.value,c in a&&typeof a[c]==="function")return!0;return!1}function V(){};var W=P,X=function(a,b,c){var d=this;this.R=c;this.S=!1;this.j={};this.J=b;this.M=Q(void 0,a);a="serviceAccount"in this.M;("credential"in this.M||a)&&typeof console!=="undefined"&&console.log("The '"+(a?"serviceAccount":"credential")+"' property specified in the first argument to initializeApp() is deprecated and will be removed in the next major version. You should instead use the 'firebase-admin' package. See https://firebase.google.com/docs/admin/setup for details on how to get started.");Object.keys(c.INTERNAL.factories).forEach(function(e){var h= 27c.INTERNAL.useAsService(d,e);h!==null&&(h=d.Z.bind(d,h),d[e]=h)})};X.prototype.delete=function(){var a=this;return(new W(function(b){Y(a);b()})).then(function(){a.R.INTERNAL.removeApp(a.J);var b=[];Object.keys(a.j).forEach(function(c){Object.keys(a.j[c]).forEach(function(d){b.push(a.j[c][d])})});return W.all(b.filter(function(c){return"INTERNAL"in c}).map(function(c){return c.INTERNAL.delete()}))}).then(function(){a.S=!0;a.j={}})}; 28X.prototype.Z=function(a,b){Y(this);typeof this.j[a]==="undefined"&&(this.j[a]={});var c=b||"[DEFAULT]";return typeof this.j[a][c]==="undefined"?(b=this.R.INTERNAL.factories[a](this,this.Y.bind(this),b),this.j[a][c]=b):this.j[a][c]};X.prototype.Y=function(a){Q(this,a)};var Y=function(a){a.S&&Z("app-deleted",{name:a.J})};ca.Object.defineProperties(X.prototype,{name:{configurable:!0,enumerable:!0,get:function(){Y(this);return this.J}},options:{configurable:!0,enumerable:!0,get:function(){Y(this);return this.M}}}); 29X.prototype.name&&X.prototype.options||X.prototype.delete||console.log("dc"); 30function Ga(){function a(f){f=f||"[DEFAULT]";var g=d[f];g===void 0&&Z("no-app",{name:f});return g}function b(f,g){Object.keys(e).forEach(function(m){m=c(f,m);if(m!==null&&h[m])h[m](g,f)})}function c(f,g){if(g==="serverAuth")return null;var m=g;f=f.options;g==="auth"&&(f.serviceAccount||f.credential)&&(m="serverAuth","serverAuth"in e||Z("sa-not-supported"));return m}var d={},e={},h={},k={__esModule:!0,initializeApp:function(f,g){g===void 0?g="[DEFAULT]":(typeof g!=="string"||g==="")&&Z("bad-app-name", 31{name:g+""});d[g]!==void 0&&Z("duplicate-app",{name:g});f=new X(f,g,k);d[g]=f;b(f,"create");f.INTERNAL!=void 0&&f.INTERNAL.getToken!=void 0||Q(f,{INTERNAL:{getUid:function(){return null},getToken:function(){return W.resolve(null)},addAuthTokenListener:function(){},removeAuthTokenListener:function(){}}});return f},app:a,apps:null,Promise:W,SDK_VERSION:"0.0.0",INTERNAL:{registerService:function(f,g,m,t,Ha){e[f]&&Z("duplicate-service",{name:f});e[f]=Ha?g:function(y,Ia){return g(y,Ia,"[DEFAULT]")};t&& 32(h[f]=t);t=function(y){y===void 0&&(y=a());typeof y[f]!=="function"&&Z("invalid-app-argument",{name:f});return y[f]()};m!==void 0&&Q(t,m);return k[f]=t},createFirebaseNamespace:Ga,extendNamespace:function(f){Q(k,f)},createSubscribe:Da,ErrorFactory:R,removeApp:function(f){b(d[f],"delete");delete d[f]},factories:e,useAsService:c,Promise:O,deepExtend:Q}};k["default"]=k;Object.defineProperty(k,"apps",{get:function(){return Object.keys(d).map(function(f){return d[f]})}});a.App=X;return k} 33function Z(a,b){throw Ja.create(a,b);} 34var Ja=new R("app","Firebase",{"no-app":"No Firebase App '{$name}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$name}","duplicate-app":"Firebase App named '{$name}' already exists","app-deleted":"Firebase App named '{$name}' already deleted","duplicate-service":"Firebase service named '{$name}
34' already registered","sa-not-supported":"Initializing the Firebase SDK with a service account is only allowed in a Node.js environment. On client devices, you should instead initialize the SDK with an api key and auth domain","invalid-app-argument":"firebase.{$name}() takes either no argument or a Firebase App instance."});typeof firebase!=="undefined"&&(firebase=Ga()); }).call(this); 35firebase.SDK_VERSION = "3.7.5"; 36(function(){var k,aa=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},ba=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ca=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];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"); 37},da=ca(this),n=function(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&ba(c,a,{configurable:!0,writable:!0,value:b})}},ea;if(typeof Object.setPrototypeOf=="function")ea=Object.setPrototypeOf;else{var fa;a:{var ha={a:!0},ia={};try{ia.__proto__=ha;fa=ia.a;break a}catch(a){}fa=!1}ea=fa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null} 38var ja=ea,q=function(a,b){a.prototype=aa(b.prototype);a.prototype.constructor=a;if(ja)ja(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Md=b.prototype},ka=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},la=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:ka(a)}; 39throw Error(String(a)+" is not an iterable or ArrayLike");},ma=function(a){if(!(a instanceof Array)){a=la(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a},oa=function(a){return na(a,a)},na=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},pa=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};n("globalThis",function(a){return a||da}); 40n("Symbol",function(a){if(a)return a;var b=function(f,g){this.Zj=f;ba(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.Zj};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e}); 41n("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return qa(ka(this))}});return a});var qa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}; 42n("Promise",function(a){function b(){this.tc=null}function c(g){return g instanceof e?g:new e(function(h){h(g)})}if(a)return a;b.prototype.Rh=function(g){if(this.tc==null){this.tc=[];var h=this;this.Sh(function(){h.Bk()})}this.tc.push(g)};var d=da.setTimeout;b.prototype.Sh=function(g){d(g,0)};b.prototype.Bk=function(){for(;this.tc&&this.tc.length;){var g=this.tc;this.tc=[];for(var h=0;h<g.length;++h){var l=g[h];g[h]=null;try{l()}catch(m){this.ik(m)}}}this.tc=null};b.prototype.ik=function(g){this.Sh(function(){throw g; 43})};var e=function(g){this.Ea=0;this.Wa=void 0;this.Ad=[];this.Li=!1;var h=this.rg();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}};e.prototype.rg=function(){function g(m){return function(p){l||(l=!0,m.call(h,p))}}var h=this,l=!1;return{resolve:g(this.Rl),reject:g(this.rh)}};e.prototype.Rl=function(g){if(g===this)this.rh(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof e)this.km(g);else{a:switch(typeof g){case "object":var h=g!=null;break a;case "function":h=!0;break a; 44default:h=!1}h?this.Ql(g):this.ni(g)}};e.prototype.Ql=function(g){var h=void 0;try{h=g.then}catch(l){this.rh(l);return}typeof h=="function"?this.lm(h,g):this.ni(g)};e.prototype.rh=function(g){this.Hj(2,g)};e.prototype.ni=function(g){this.Hj(1,g)};e.prototype.Hj=function(g,h){if(this.Ea!=0)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.Ea);this.Ea=g;this.Wa=h;
vendor: 4,585 bytes, lines 44-55
44this.Ea===2&&this.fm();this.Dk()};e.prototype.fm=function(){var g=this;d(function(){if(g.xl()){var h=da.console; 45typeof h!=="undefined"&&h.error(g.Wa)}},1)};e.prototype.xl=function(){if(this.Li)return!1;var g=da.CustomEvent,h=da.Event,l=da.dispatchEvent;if(typeof l==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof h==="function"?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.Wa;return l(g)};e.prototype.Dk=function(){if(this.Ad!=null){for(var g= 460;g<this.Ad.length;++g)f.Rh(this.Ad[g]);this.Ad=null}};var f=new b;e.prototype.km=function(g){var h=this.rg();g.Qe(h.resolve,h.reject)};e.prototype.lm=function(g,h){var l=this.rg();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};e.prototype.then=function(g,h){function l(A,S){return typeof A=="function"?function(Ba){try{m(A(Ba))}catch(Bc){p(Bc)}}:S}var m,p,x=new e(function(A,S){m=A;p=S});this.Qe(l(g,m),l(h,p));return x};e.prototype.catch=function(g){return this.then(void 0,g)};e.prototype.Qe= 47function(g,h){function l(){switch(m.Ea){case 1:g(m.Wa);break;case 2:h(m.Wa);break;default:throw Error("Unexpected state: "+m.Ea);}}var m=this;this.Ad==null?f.Rh(l):this.Ad.push(l);this.Li=!0};e.resolve=c;e.reject=function(g){return new e(function(h,l){l(g)})};e.race=function(g){return new e(function(h,l){for(var m=la(g),p=m.next();!p.done;p=m.next())c(p.value).Qe(h,l)})};e.all=function(g){var h=la(g),l=h.next();return l.done?c([]):new e(function(m,p){function x(Ba){return function(Bc){A[Ba]=Bc;S--; 48S==0&&m(A)}}var A=[],S=0;do A.push(void 0),S++,c(l.value).Qe(x(A.length-1),p),l=h.next();while(!l.done)})};return e});var ra=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};n("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")});var sa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}; 49n("Array.prototype.keys",function(a){return a?a:function(){return sa(this,function(b){return b})}}); 50n("WeakMap",function(a){function b(){}function c(l){var m=typeof l;return m==="object"&&l!==null||m==="function"}function d(l){if(!ra(l,f)){var m=new b;ba(l,f,{value:m})}}function e(l){var m=Object[l];m&&(Object[l]=function(p){if(p instanceof b)return p;Object.isExtensible(p)&&d(p);return m(p)})}if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),p=new a([[l,2],[m,3]]);if(p.get(l)!=2||p.get(m)!=3)return!1;p.delete(l);p.set(m,4);return!p.has(l)&&p.get(m)==4}catch(x){return!1}}())return a; 51var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var g=0,h=function(l){this.Ra=(g+=Math.random()+1).toString();if(l){l=la(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}};h.prototype.set=function(l,m){if(!c(l))throw Error("Invalid WeakMap key");d(l);if(!ra(l,f))throw Error("WeakMap key fail: "+l);l[f][this.Ra]=m;return this};h.prototype.get=function(l){return c(l)&&ra(l,f)?l[f][this.Ra]:void 0};h.prototype.has=function(l){return c(l)&&ra(l,f)&&ra(l[f], 52this.Ra)};h.prototype.delete=function(l){return c(l)&&ra(l,f)&&ra(l[f],this.Ra)?delete l[f][this.Ra]:!1};return h}); 53n("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var h=Object.seal({x:4}),l=new a(la([[h,"s"]]));if(l.get(h)!="s"||l.size!=1||l.get({x:4})||l.set({x:4},"t")!=l||l.size!=2)return!1;var m=l.entries(),p=m.next();if(p.done||p.value[0]!=h||p.value[1]!="s")return!1;p=m.next();return p.done||p.value[0].x!=4||p.value[1]!="t"||!m.next().done?!1:!0}catch(x){return!1}}())return a;var b=new WeakMap,c=function(h){this[0]={};this[1]= 54f();this.size=0;if(h){h=la(h);for(var l;!(l=h.next()).done;)l=l.value,this.set(l[0],l[1])}};c.prototype.set=function(h,l){h=h===0?0:h;var m=d(this,h);m.list||(m.list=this[0][m.id]=[]);m.entry?m.entry.value=l:(m.entry={next:this[1],hc:this[1].hc,head:this[1],key:h,value:l},m.list.push(m.entry),this[1].hc.next=m.entry,this[1].hc=m.entry,this.size++);return this};c.prototype.delete=function(h){h=d(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this[0][h.id],h.entry.hc.next= 55h.entry.next,h.entry.next.hc=h.entry.hc,h.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].hc=f();this.size=0};c.prototype.has=function(h){return!!d(this,h).entry};
vendor: 3,698 bytes, lines 55-64
55c.prototype.get=function(h){return(h=d(this,h).entry)&&h.value};c.prototype.entries=function(){return e(this,function(h){return[h.key,h.value]})};c.prototype.keys=function(){return e(this,function(h){return h.key})};c.prototype.values=function(){return e(this,function(h){return h.value})};c.prototype.forEach= 56function(h,l){for(var m=this.entries(),p;!(p=m.next()).done;)p=p.value,h.call(l,p[1],p[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(h,l){var m=l&&typeof l;m=="object"||m=="function"?b.has(l)?m=b.get(l):(m=""+ ++g,b.set(l,m)):m="p_"+l;var p=h[0][m];if(p&&ra(h[0],m))for(h=0;h<p.length;h++){var x=p[h];if(l!==l&&x.key!==x.key||l===x.key)return{id:m,list:p,index:h,entry:x}}return{id:m,list:p,index:-1,entry:void 0}},e=function(h,l){var m=h[1];return qa(function(){if(m){for(;m.head!= 57h[1];)m=m.hc;for(;m.next!=m.head;)return m=m.next,{done:!1,value:l(m)};m=null}return{done:!0,value:void 0}})},f=function(){var h={};return h.hc=h.next=h.head=h},g=0;return c}); 58n("Set",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(la([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;var b=function(c){this.kb=new Map;if(c){c= 59la(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.kb.size};b.prototype.add=function(c){c=c===0?0:c;this.kb.set(c,c);this.size=this.kb.size;return this};b.prototype.delete=function(c){c=this.kb.delete(c);this.size=this.kb.size;return c};b.prototype.clear=function(){this.kb.clear();this.size=0};b.prototype.has=function(c){return this.kb.has(c)};b.prototype.entries=function(){return this.kb.entries()};b.prototype.values=function(){return this.kb.values()};b.prototype.keys=b.prototype.values; 60b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.kb.forEach(function(f){return c.call(d,f,f,e)})};return b});var ta=function(a,b,c){if(a==null)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}; 61n("Array.prototype.entries",function(a){return a?a:function(){return sa(this,function(b,c){return[b,c]})}});n("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ra(b,d)&&c.push([d,b[d]]);return c}});n("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=ta(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}}); 62n("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=ta(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});n("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); 63n("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f<e;f++){var g=d[f];if(b.call(c,g,f,d)){b=g;break a}}b=void 0}return b}}); 64n("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(h){return h};var e=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){b=f.call(b);for(var g=0;!(f=b.next()).done;
64)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});n("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ra(b,d)&&c.push(b[d]);return c}}); 65n("Array.prototype.values",function(a){return a?a:function(){return sa(this,function(b,c){return c})}});n("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});n("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}}); 66n("String.prototype.includes",function(a){return a?a:function(b,c){return ta(this,b,"includes").indexOf(b,c||0)!==-1}});/* 67 68 Copyright The Closure Library Authors. 69 SPDX-License-Identifier: Apache-2.0 70*/ 71var ua=ua||{},r=this||self,t=function(a,b){a=a.split(".");for(var c=r,d;a.length&&(d=a.shift());)a.length||b===void 0?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b},va=function(a,b){a:{var c=["CLOSURE_FLAGS"];for(var d=r,e=0;e<c.length;e++)if(d=d[c[e]],d==null){c=null;break a}c=d}a=c&&c[a];return a!=null?a:b},wa=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"},xa=function(a){var b=wa(a);return b=="array"||b=="object"&&typeof a.length=="number"},u=function(a){var b= 72typeof a;return b=="object"&&a!=null||b=="function"},ya=function(a,b,c){return a.call.apply(a.bind,arguments)},za=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},v=function(a,b,c){v=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ya:za;return v.apply(null, 73arguments)},Aa=function(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)}},w=function(a,b){function c(){}c.prototype=b.prototype;a.Md=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Td=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};var Ca;var Da=function(a){this.i=a||{}};Da.prototype.value=function(){return this.i};Da.prototype.getIframe=function(){return this.i.iframe};var Ea=function(a,b){a.i.role=b;return a},Fa=function(a,b){a.i.data=b;return a};Da.prototype.kc=function(a){this.i.setRpcReady=a;return this};var Ga=function(a){return a.i.setRpcReady};Da.prototype.Xc=function(a){this.i.rpctoken=a;return this};var Ha=function(a){return a.i.rpctoken},Ia=function(a){a.i.selfConnect=!0;return a};var Ja=function(a){this.i=a};Ja.prototype.value=function(){return this.i};Ja.prototype.Fj=function(a){this.i.style=a};Ja.prototype.getStyle=function(){return this.i.style};var Ka=function(a,b){a.i.onload=b};function La(a){this.i=a||{}}La.prototype.value=function(){return this.i};var Na=function(a){var b=new Ma;b.i.role=a;return b},Oa=function(a,b){a.i.handler=b;return a},Pa=function(a,b){a.i.filter=b;return a};La.prototype.Be=function(a){this.i.apis=a;return this};var Qa=function(a){this.i=a||{}};k=Qa.prototype;k.value=function(){return this.i};k.setUrl=function(a){this.i.url=a;return this};k.getUrl=function(){return this.i.url};k.Fj=function(a){this.i.style=a};k.getStyle=function(){return this.i.style};k.getId=function(){return this.i.id};k.Xc=function(a){this.i.rpctoken=a;return this};var Ra=function(a,b){a.i.messageHandlers=b;return a},Sa=function(a,b){a.i.messageHandlersFilter=b;return a};Qa.prototype.Be=function(a){this.i.apis=a;return this}; 74var Ta=function(a,b){a.i.onClose=b};Qa.prototype.getContext=function(){return this.i.context};var Ua=function(a){a.i.attributes=a.i.attributes||{};return new Ja(a.i.attributes)},Va=function(a,b){a.i.controllerData=b},Wa=function(a){return(a=a.i.timeout)?a:null};/* 75 76 Copyright Google LLC 77 SPDX-License-Identifier: Apache-2.0 78*/ 79var Xa={};function Ya(){if(Xa!==Xa)throw Error("Bad secret");};var Za=oa([""]),$a=na(["\x00"],["\\0"]),ab=na(["\n"],["\\n"]),bb=na(["\x00"],["\\u0000"]),cb=oa([""]),db=na(["\x00"],["\\0"]),eb=na(["\n"],["\\n"]),fb=na(["\x00"],["\\u0000"]);function gb(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function hb(a){return a.toString().indexOf("`")===-1}var ib=hb(function(a){return a(Za)})||hb(function(a){return a($a)})||hb(function(a){return a(ab)})||hb(function(a){return a(bb)}),jb=gb(cb)&&gb(db)&&gb(eb)&&gb(fb);var kb=globalThis.trustedTypes,lb;function mb(){var a=null;if(!kb)return a;try{var b=function(c){return c};a=kb.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a}function nb(){lb===void 0&&(lb=mb());return lb};var ob=function(a){Ya();this.nj=a};ob.prototype.toString=function(){return this.nj+""};function pb(a){var b=nb();a=b?b.createHTML(a):a;return new ob(a)}function qb(a){if(a instanceof ob)return a.nj;throw Error("Unexpected type when unwrapping SafeHtml");};var rb=function(a){Ya();this.oj=a};rb.prototype.toString=function(){return this.oj+""};
79function sb(a){var b=nb();a=b?b.createScriptURL(a):a;return new rb(a)}function tb(a){if(a instanceof rb)return a.oj;throw Error("Unexpected type when unwrapping TrustedResourceUrl");};var ub=function(a){Ya();this.qj=a};ub.prototype.toString=function(){return this.qj};new ub("about:blank");var vb=new ub("about:invalid#zClosurez");function wb(a){if(a instanceof ub)return a.qj;throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");};var xb=function(a){this.ql=a};function yb(a){return new xb(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}var zb=[yb("data"),yb("http"),yb("https"),yb("mailto"),yb("ftp"),new xb(function(a){return/^[^:]*([/?#]|$)/.test(a)})];function Ab(a){var b=b===void 0?zb:b;a:if(b=b===void 0?zb:b,a instanceof ub)b=a;else{for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof xb&&d.ql(a)){b=new ub(a);break a}}b=void 0}b===void 0&&Bb(a.toString());return b||vb}var Cb=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i; 80function Db(a){if(a instanceof ub)a=wb(a);else{var b=!Cb.test(a);b&&Bb(a);a=b?void 0:a}return a}var Eb=[],Bb=function(){};Fb(function(a){console.warn("A URL with content '"+a+"' was sanitized away.")});function Fb(a){Eb.indexOf(a)===-1&&Eb.push(a);Bb=function(b){Eb.forEach(function(c){c(b)})}};function Gb(a){var b=pa.apply(1,arguments),c=b.length;if(!Array.isArray(a)||!Array.isArray(a.raw)||a.length!==a.raw.length||!ib&&a===a.raw||!(ib&&!jb||gb(a))||c+1!==a.length)throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################"); 81if(b.length===0)return sb(a[0]);c=a[0].toLowerCase();if(/^data:/.test(c))throw Error("Data URLs cannot have expressions in the template literal input.");if(/^https:\/\//.test(c)||/^\/\//.test(c)){var d=c.indexOf("//")+2;var e=c.indexOf("/",d);if(e<=d)throw Error("Can't interpolate data in a url's origin, Please make sure to fully specify the origin, terminated with '/'.");d=c.substring(d,e);if(!/^[0-9a-z.:-]+$/i.test(d))throw Error("The origin contains unsupported characters.");if(!/^[^:]*(:[0-9]+)?$/i.test(d))throw Error("Invalid port number."); 82if(!/(^|\.)[a-z][^.]*$/i.test(d))throw Error("The top-level domain must start with a letter.");d=!0}else d=!1;if(!d)if(/^\//.test(c))if(c==="/"||c.length>1&&c[1]!=="/"&&c[1]!=="\\")d=!0;else throw Error("The path start in the url is invalid.");else d=!1;if(!(d=d||RegExp("^[^:\\s\\\\/]+/").test(c)))if(/^about:blank/.test(c)){if(c!=="about:blank"&&!/^about:blank#/.test(c))throw Error("The about url is invalid.");d=!0}else d=!1;if(!d)throw Error("Trying to interpolate expressions in an unsupported url format."); 83c=a[0];for(d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return sb(c)};function Hb(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Hb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}w(Hb,Error);Hb.prototype.name="CustomError";var Ib;function Jb(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");Hb.call(this,c+a[d])}w(Jb,Hb);Jb.prototype.name="AssertionError";function Kb(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new Jb(""+e,f||[]);} 84var y=function(a,b,c){a||Kb("",null,b,Array.prototype.slice.call(arguments,2));return a},Lb=function(a,b,c){a==null&&Kb("Expected to exist: %s.",[a],b,Array.prototype.slice.call(arguments,2));return a},Mb=function(a,b){throw new Jb("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1
84));},Nb=function(a,b,c){typeof a!=="number"&&Kb("Expected number but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2));return a},Ob=function(a,b,c){typeof a!=="function"&&Kb("Expected function but got %s: %s.", 85[wa(a),a],b,Array.prototype.slice.call(arguments,2))};var Pb=Array.prototype.indexOf?function(a,b){y(a.length!=null);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},z=Array.prototype.forEach?function(a,b){y(a.length!=null);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}; 86function Qb(a,b){for(var c=typeof a==="string"?a.split(""):a,d=a.length-1;d>=0;--d)d in c&&b.call(void 0,c[d],d,a)} 87var Rb=Array.prototype.filter?function(a,b){y(a.length!=null);return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=typeof a==="string"?a.split(""):a,g=0;g<c;g++)if(g in f){var h=f[g];b.call(void 0,h,g,a)&&(d[e++]=h)}return d},Sb=Array.prototype.map?function(a,b){y(a.length!=null);return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e=typeof a==="string"?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d}, 88Tb=Array.prototype.some?function(a,b){y(a.length!=null);return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1};function Ub(a,b){return Pb(a,b)>=0}function Vb(a,b){b=Pb(a,b);var c;(c=b>=0)&&Wb(a,b);return c}function Wb(a,b){y(a.length!=null);return Array.prototype.splice.call(a,b,1).length==1}function Xb(a,b){var c=0;Qb(a,function(d,e){b.call(void 0,d,e,a)&&Wb(a,e)&&c++})} 89function Yb(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Zb(a,b){for(var c=0,d=a.length,e;c<d;){var f=c+(d-c>>>1);var g=b.call(void 0,a[f],f,a);g>0?c=f+1:(d=f,e=!g)}return e?c:-c-1};function $b(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function ac(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function bc(a){for(var b in a)return!1;return!0}function cc(a){var b={},c;for(c in a)b[c]=a[c];return b}var dc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); 90function ec(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<dc.length;f++)c=dc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var fc=/&/g,hc=/</g,ic=/>/g,jc=/"/g,kc=/'/g,lc=/\x00/g,mc=/[\x00&<>"']/;function B(a,b){return a.indexOf(b)!=-1};function nc(a,b,c,d){b=Db(b);return b!==void 0?a.open(b,c,d):null};function oc(a,b){a.src=tb(b);var c;b=a.ownerDocument;b=b===void 0?document:b;var d;b=(d=(c=b).querySelector)==null?void 0:d.call(c,"script[nonce]");(c=b==null?"":b.nonce||b.getAttribute("nonce")||"")&&a.setAttribute("nonce",c)};var pc=function(a,b){this.name=a;this.value=b};pc.prototype.toString=function(){return this.name}; 91var qc=new pc("OFF",Infinity),rc=new pc("SEVERE",1E3),sc=new pc("WARNING",900),tc=new pc("CONFIG",700),uc=new pc("FINE",500),vc,wc=function(a){this.level=null;this.Zk=[];this.parent=(a===void 0?null:a)||null;this.children=[]},xc=function(a){if(a.level)return a.level;if(a.parent)return xc(a.parent);Mb("Root logger has no level set.");return qc},yc=function(a,b){for(;a;)a.Zk.forEach(function(c){c(b)}),a=a.parent},zc=function(){this.entries={};var a=new wc;a.level=tc;this.entries[""]=a},Ac,Cc=function(a, 92b){var c=a.entries[b];if(c)return c;c=Cc(a,b.slice(0,Math.max(b.lastIndexOf("."),0)));var d=new wc(c);a.entries[b]=d;c.children.push(d);return d},Dc=function(){Ac||(Ac=new zc);return Ac},Ec=function(a,b,c,d){a&&a&&b&&b.value>=(a?xc(Cc(Dc(),null)):qc).value&&(b=b||qc,a=Cc(Dc(),null),typeof c==="function"&&(c=c()),vc||(vc=null),b=vc.Nm(b,c,null),b.Rm(d),yc(a,b))},Fc=function(a,b){a&&Ec(a,uc,b)};
92function Gc(a){if(typeof a!=="string"||a.trim()==="")throw Error("Calls to uncheckedconversion functions must go through security review. A justification must be provided to capture what security assumptions are being made. See go/unchecked-conversions");};var Hc=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&c.length>1;)d+=c.shift()+e.shift();return d+c.join("%s")};var Ic=va(610401301,!1),Jc=va(1331761403,!0);function Kc(){var a=r.navigator;return a&&(a=a.userAgent)?a:""}var Lc,Mc=r.navigator;Lc=Mc?Mc.userAgentData||null:null;function Nc(a){if(!Ic||!Lc)return!1;for(var b=0;b<Lc.brands.length;b++){var c=Lc.brands[b].brand;if(c&&B(c,a))return!0}return!1}function C(a){return B(Kc(),a)};function Oc(){return Ic?!!Lc&&Lc.brands.length>0:!1};function Pc(){return C("iPhone")&&!C("iPod")&&!C("iPad")};var Qc=Oc()?!1:C("Opera"),Rc=Oc()?!1:C("Trident")||C("MSIE"),Sc=C("Edge"),Tc=C("Gecko")&&!(B(Kc().toLowerCase(),"webkit")&&!C("Edge"))&&!(C("Trident")||C("MSIE"))&&!C("Edge"),Uc=B(Kc().toLowerCase(),"webkit")&&!C("Edge"),Vc=Uc&&C("Mobile"),Wc=function(){var a=r.document;return a?a.documentMode:void 0},Xc; 93a:{var Yc="",Zc=function(){var a=Kc();if(Tc)return/rv:([^\);]+)(\)|;)/.exec(a);if(Sc)return/Edge\/([\d\.]+)/.exec(a);if(Rc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Uc)return/WebKit\/(\S+)/.exec(a);if(Qc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Zc&&(Yc=Zc?Zc[1]:"");if(Rc){var $c=Wc();if($c!=null&&$c>parseFloat(Yc)){Xc=String($c);break a}}Xc=Yc}var ad=Xc,bd;if(r.document&&Rc){var cd=Wc();bd=cd?cd:parseInt(ad,10)||void 0}else bd=void 0;var dd=bd;var ed=function(a){var b=document;return typeof a==="string"?b.getElementById(a):a},gd=function(a,b){$b(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:fd.hasOwnProperty(d)?a.setAttribute(fd[d],c):d.lastIndexOf("aria-",0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,c):a[d]=c})},fd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan", 94type:"type",usemap:"useMap",valign:"vAlign",width:"width"},hd=function(a,b,c){function d(h){h&&b.appendChild(typeof h==="string"?a.createTextNode(h):h)}for(var e=1;e<c.length;e++){var f=c[e];if(!xa(f)||u(f)&&f.nodeType>0)d(f);else{a:{if(f&&typeof f.length=="number"){if(u(f)){var g=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){g=typeof f.item=="function";break a}}g=!1}z(g?Yb(f):f,d)}}},id=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase()); 95return a.createElement(b)},jd=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},kd=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},ld=function(a){y(a,"Node cannot be null or undefined.");return a.nodeType==9?a:a.ownerDocument||a.document},md=function(a){this.Ve=a||r.document||document};k=md.prototype;k.getElementsByTagName=function(a,b){return(b||this.Ve).getElementsByTagName(String(a))};k.createElement=function(a){return id(this.Ve,a)};k.createTextNode=function(a){return this.Ve.createTextNode(String(a))}; 96k.getWindow=function(){return this.Ve.defaultView};k.appendChild=function(a,b){y(a!=null&&b!=null,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)};k.append=function(a,b){hd(ld(a),a,arguments)};k.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; 97k.removeNode=kd;k.isElement=function(a){return u(a)&&a.nodeType==1};k.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};/* 98 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/ 99var D=window,nd=document,od=/\[native code\]/,pd=function(a,b,c){return a[b]=a[b]||c},qd=function(a){return!!a&&typeof a==="object"&&od.test(a.push)},rd=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1},td=function(a,b,c){if(a)if(qd(a)){if(a){E(qd(a),"arrayForEach was called with a non array value");for(var d=0;d<a.length;d++)b.call(c,a[d],d)}}else for(d in E(typeof a==="object","objectForEach was called with a non object value"),c=c||a,a)sd(a,d)&&a[d]!==void 0&&b.call(c, 100a[d],d)},ud=/&/g,vd=/</g,wd=/>/g,xd=/"/g,yd=/'/g,zd=function(a){return String(a).replace(ud,"&").replace(vd,"<").replace(wd,">").replace(xd,""").replace(yd,"'")},Ad=function(){var a;if((a=Object.create)&&od.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},sd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Bd=function(a,b){a=a||{};for(var c in a)sd(a,c)&&(b[c]=a[c])},E=function(a,b){if(!a)throw Error(b||"");},Cd=pd(D,"gapi",{});var Dd=function(a,b,c){var d=new RegExp("([#].*&|[#])"+b+"=([^&#]*)","g");b=new RegExp("([?#].*&|[?#])"+b+"=([^&#]*)","g");if(a=a&&(d.exec(a)||b.exec(a)))try{c=decodeURIComponent(a[2])}catch(e){}return c},Ed=new RegExp(/^/.source+/([a-zA-Z][-+.a-zA-Z0-9]*:)?/.source+/(\/\/[^\/?#]*)?/.source+/([^?#]*)?/.source+/(\?([^#]*))?/.source+/(#((#|[^#])*))?/.source+/$/.source),Fd=/[\ud800-\udbff][\udc00-\udfff]|[^!-~]/g,Gd=new RegExp(/(%([^0-9a-fA-F%]|[0-9a-fA-F]([^0-9a-fA-F%])?)?)*/.source+/%($|[^0-9a-fA-F]|[0-9a-fA-F]($|[^0-9a-fA-F]))/.source, 101"g"),Hd=/%([a-f]|[0-9a-fA-F][a-f])/g,Id=/^(https?|ftp|file|chrome-extension):$/i,Jd=function(a){a=String(a);a=a.replace(Fd,function(e){try{return encodeURIComponent(e)}catch(f){return encodeURIComponent(e.replace(/^[^%]+$/g,"\ufffd"))}}).replace(Gd,function(e){return e.replace(/%/g,"%25")}).replace(Hd,function(e){return e.toUpperCase()});a=a.match(Ed)||[];var b=Ad(),c=function(e){return e.replace(/\\/g,"%5C").replace(/\^/g,"%5E").replace(/`/g,"%60").replace(/\{/g,"%7B").replace(/\|/g,"%7C").replace(/\}/g, 102"%7D")},d=!!(a[1]||"").match(Id);b.Td=c((a[1]||"")+(a[2]||"")+(a[3]||(a[2]&&d?"/":"")));d=function(e){return c(e.replace(/\?/g,"%3F").replace(/#/g,"%23"))};b.query=a[5]?[d(a[5])]:[];b.Vb=a[7]?[d(a[7])]:[];return b},Kd=function(a){return a.Td+(a.query.length>0?"?"+a.query.join("&"):"")+(a.Vb.length>0?"#"+a.Vb.join("&"):"")},Ld=function(a,b){var c=[];if(a)for(var d in a)if(sd(a,d)&&a[d]!=null){var e=b?b(a[d]):a[d];c.push(encodeURIComponent(d)+"="+encodeURIComponent(e))}return c},Md=new RegExp(/\/?\??#?/.source+ 103"("+/[\/?#]/i.source+"|"+/[\uD800-\uDBFF]/i.source+"|"+/%[c-f][0-9a-f](%[89ab][0-9a-f]){0,2}(%[89ab]?)?/i.source+"|"+/%[0-9a-f]?/i.source+")$","i"),Nd=function(a,b){var c=Jd(b);b=c.Td;c.query.length&&(b+="?"+c.query.join(""));c.Vb.length&&(b+="#"+c.Vb.join(""));var d="";b.length>2E3&&(d=b,b=b.substr(0,2E3),b=b.replace(Md,""),d=d.substr(b.length));var e=a.createElement("div");a=a.createElement("a");c=Jd(b);b=c.Td;c.query.length&&(b+="?"+c.query.join(""));c.Vb.length&&(b+="#"+c.Vb.join(""));b=b===null? 104"null":b===void 0?"undefined":b;if(typeof b!=="string")throw Error("Expected a string");b=new ub(b);b=Db(b);b!==void 0&&(a.href=b);e.appendChild(a);a=e.innerHTML;Gc("Assignment to self.");a=pb(a);if(e.nodeType===1&&(b=e.tagName,/^(script|style)$/i.test(b)))throw d=b.toLowerCase()==="script"?"Use setScriptTextContent with a SafeScript.":"Use setStyleTextContent with a SafeStyleSheet.",Error(d);e.innerHTML=qb(a);b=String(e.firstChild.href);e.parentNode&&e.parentNode.removeChild(e);c=Jd(b+d);d=c.Td; 105c.query.length&&(d+="?"+c.query.join(""));c.Vb.length&&(d+="#"+c.Vb.join(""));return d},Od=/^https?:\/\/[^\/%\\?#\s]+\/[^\s]*$/i;var Qd=function(a,b,c){Pd(a,b,c,"add","at")},Pd=function(a,b,c,d,e){if(a[d+"EventListener"])a[d+"EventListener"](b,c,!1);else if(a[e+"tachEvent"])a[e+"tachEvent"]("on"+b,c)},Rd=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)};var Sd=function(a){var b=window.___jsl=window.___jsl||{};b.cfg=b.cfg||{};b=b.cfg;if(!a)return b;a=a.split("/");for(var c=0,d=a.length;b&&typeof b==="object"&&c<d;++c)b=b[a[c]];return c===a.length&&b!==void 0?b:void 0};var Td=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,Ud=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/b\/(\d{10,21})\//,Vd=function(){var a=Sd("googleapis.config/sessionIndex");"string"===typeof a&&a.length>254&&(a=null);a==null&&(a=window.__X_GOOG_AUTHUSER);"string"===typeof a&&a.length>254&&(a=null);if(a==null){var b=window.google;b&&(a=b.authuser)}"string"===typeof a&&a.length>254&&(a=null);a==null&&(b=window.location.href,a=Dd(b,"authuser")|| 106null,a==null&&(a=(a=b.match(Td))?a[1]:null));if(a==null)return null;a=String(a);a.length>254&&(a=null);return a},Wd=function(){var a=Sd("googleapis.config/sessionDelegate");"string"===typeof a&&a.length>21&&(a=null);a==null&&(a=(a=window.location.href.match(Ud))?a[1]:null);if(a==null)return null;a=String(a);a.length>21&&(a=null);return a};var Xd={};Xd=pd(D,"___jsl",Ad());pd(Xd,"I",0);pd(Xd,"hel",10);var Yd,Zd,$d=void 0,ae=function(a){try{return r.JSON.parse.call(r.JSON,a)}catch(b){return!1}},be=function(a){return Object.prototype.toString.call(a)},ce=be(0),de=be(new Date(0)),ee=be(!0),fe=be(""),ge=be({}),he=be([]),ie=function(a,b){if(b)for(var c=0,d=b.length;c<d;++c)if(a===b[c])throw new TypeError("Converting circular structure to JSON");d=typeof a;if(d!=="undefined"){c=Array.prototype.slice.call(b||[],0);c[c.length]=a;b=[];var e=be(a);if(a!=null&&typeof a.toJSON==="function"&&(Object.prototype.hasOwnProperty.call(a, 107"toJSON")||(e!==he||a.constructor!==Array&&a.constructor!==Object)&&(e!==ge||a.constructor!==Array&&a.constructor!==Object)&&e!==fe&&e!==ce&&e!==ee&&e!==de))return ie(a.toJSON.call(a),c);if(a==null)b[b.length]="null";else if(e===ce)a=Number(a),isNaN(a)||isNaN(a-a)?a="null":a===-0&&1/a<0&&(a="-0"),b[b.length]=String(a);else if(e===ee)b[b.length]=String(!!Number(a));else{if(e===de)return ie(a.toISOString.call(a),c);if(e===he&&be(a.length)===ce){b[b.length]="[";var f=0;for(d=Number(a.length)>>0;f<d;++f)f&& 108(b[b.length]=","),b[b.length]=ie(a[f],c)||"null";b[b.length]="]"}else if(e==fe&&be(a.length)===ce){b[b.length]='"';f=0;for(c=Number(a.length)>>0;f<c;++f)d=String.prototype.charAt.call(a,f),e=String.prototype.charCodeAt.call(a,f),b[b.length]=d==="\b"?"\\b":d==="\f"?"\\f":d==="\n"?"\\n":d==="\r"?"\\r":d==="\t"?"\\t":d==="\\"||d==='"'?"\\"+d:e<=31?"\\u"+(e+65536).toString(16).substr(1):e>=32&&e<=65535?d:"\ufffd";b[b.length]='"'}else if(d==="object"){b[b.length]="{";d=0;for(f in a)Object.prototype.hasOwnProperty.call(a, 109f)&&(e=ie(a[f],c),e!==void 0&&(d++&&(b[b.length]=","),b[b.length]=ie(f),b[b.length]=":",b[b.length]=e));b[b.length]="}"}else return}return b.join("")}},ke=/[\0-\x07\x0b\x0e-\x1f]/,le=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*[\0-\x1f]/,me=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\[^\\\/"bfnrtu]/,ne=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\u([
1090-9a-fA-F]{0,3}[^0-9a-fA-F])/,oe=/"([^\0-\x1f\\"]|\\[\\\/"bfnrt]|\\u[0-9a-fA-F]{4})*"/g,pe=/-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][-+]?[0-9]+)?/g,qe=/[ \t\n\r]+/g, 110re=/[^"]:/,se=/""/g,te=/true|false|null/g,ue=/00/,ve=/[\{]([^0\}]|0[^:])/,we=/(^|\[)[,:]|[,:](\]|\}|[,:]|$)/,xe=/[^\[,:][\[\{]/,ye=/^(\{|\}|\[|\]|,|:|0)+/,ze=/\u2028/g,Ae=/\u2029/g,Be=function(a){a=String(a);if(ke.test(a)||le.test(a)||me.test(a)||ne.test(a))return!1;var b=a.replace(oe,'""');b=b.replace(pe,"0");b=b.replace(qe,"");if(re.test(b))return!1;b=b.replace(se,"0");b=b.replace(te,"0");if(ue.test(b)||ve.test(b)||we.test(b)||xe.test(b)||!b||(b=b.replace(ye,"")))return!1;a=a.replace(ze,"\\u2028").replace(Ae, 111"\\u2029");b=void 0;try{b=$d?[ae(a)]:eval("(function (var_args) {\n return Array.prototype.slice.call(arguments, 0);\n})(\n"+a+"\n)")}catch(c){return!1}return b&&b.length===1?b[0]:!1},Ce=function(){var a=((r.document||{}).scripts||[]).length;if((Yd===void 0||$d===void 0||Zd!==a)&&Zd!==-1){Yd=$d=!1;Zd=-1;try{try{$d=!!r.JSON&&r.JSON.stringify.call(r.JSON,{a:[3,!0,new Date(0)],c:function(){}})==='{"a":[3,true,"1970-01-01T00:00:00.000Z"]}'&&ae("true")===!0&&ae('[{"a":3}]')[0].a===3}catch(b){}Yd=$d&& 112!ae("[00]")&&!ae('"\u0007"')&&!ae('"\\0"')&&!ae('"\\v"')}finally{Zd=a}}},De=function(a){if(Zd===-1)return!1;Ce();return(Yd?ae:Be)(a)},Ee=function(a){if(Zd!==-1)return Ce(),$d?r.JSON.stringify.call(r.JSON,a):ie(a)},Fe=!Date.prototype.toISOString||typeof Date.prototype.toISOString!=="function"||(new Date(0)).toISOString()!=="1970-01-01T00:00:00.000Z",Ge=function(){var a=Date.prototype.getUTCFullYear.call(this);return[a<0?"-"+String(1E6-a).substr(1):a<=9999?String(1E4+a).substr(1):"+"+String(1E6+a).substr(1), 113"-",String(101+Date.prototype.getUTCMonth.call(this)).substr(1),"-",String(100+Date.prototype.getUTCDate.call(this)).substr(1),"T",String(100+Date.prototype.getUTCHours.call(this)).substr(1),":",String(100+Date.prototype.getUTCMinutes.call(this)).substr(1),":",String(100+Date.prototype.getUTCSeconds.call(this)).substr(1),".",String(1E3+Date.prototype.getUTCMilliseconds.call(this)).substr(1),"Z"].join("")};Date.prototype.toISOString=Fe?Ge:Date.prototype.toISOString;var He=function(){if(!r.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};r.addEventListener("test",c,b);r.removeEventListener("test",c,b)}catch(d){}return a}();function Ie(){this.blockSize=-1};var Je=function(){this.blockSize=-1;this.blockSize=64;this.Aa=[];this.kg=[];this.ak=[];this.Af=[];this.Af[0]=128;for(var a=1;a<this.blockSize;++a)this.Af[a]=0;this.mc=this.wd=0;this.reset()};q(Je,Ie);Je.prototype.reset=function(){this.Aa[0]=1732584193;this.Aa[1]=4023233417;this.Aa[2]=2562383102;this.Aa[3]=271733878;this.Aa[4]=3285377520;this.mc=this.wd=0}; 114var Ke=function(a,b,c){c||(c=0);var d=a.ak;if(typeof b==="string")for(var e=0;e<16;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;e<16;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(b=16;b<80;b++)c=d[b-3]^d[b-8]^d[b-14]^d[b-16],d[b]=(c<<1|c>>>31)&4294967295;b=a.Aa[0];c=a.Aa[1];e=a.Aa[2];for(var f=a.Aa[3],g=a.Aa[4],h,l,m=0;m<80;m++)m<40?m<20?(h=f^c&(e^f),l=1518500249):(h=c^e^f,l=1859775393):m<60?(h=c&e|f&(c|e),l=2400959708):(h=c^ 115e^f,l=3395469782),h=(b<<5|b>>>27)+h+g+l+d[m]&4294967295,g=f,f=e,e=(c<<30|c>>>2)&4294967295,c=b,b=h;a.Aa[0]=a.Aa[0]+b&4294967295;a.Aa[1]=a.Aa[1]+c&4294967295;a.Aa[2]=a.Aa[2]+e&4294967295;a.Aa[3]=a.Aa[3]+f&4294967295;a.Aa[4]=a.Aa[4]+g&4294967295}; 116Je.prototype.update=function(a,b){if(a!=null){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.kg,f=this.wd;d<b;){if(f==0)for(;d<=c;)Ke(this,a,d),d+=this.blockSize;if(typeof a==="string")for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){Ke(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){Ke(this,e);f=0;break}}this.wd=f;this.mc+=b}}; 117Je.prototype.digest=function(){var a=[],b=this.mc*8;this.wd<56?this.update(this.Af,56-this.wd):this.update(this.Af,this.blockSize-(this.wd-56));for(var c=this.blockSize-1;c>=56;c--)this.kg[c]=b&255,b/=256;Ke(this,this.kg);for(c=b=0;c<5;c++)for(var d=24;d>=0;d-=8)a[b]=this.Aa[c]>>d&255,++b;return a};var Le=function(){this.Eh=new Je};k=Le.prototype;k.reset=function(){this.Eh.reset()};k.updateByteArray=function(a){this.Eh.update(a)};k.digestByteArray=function(){return this.Eh.digest()};k.updateString=function(a){a=unescape(encodeURIComponent(a));for(var b=[],c=a.length,d=0;d<c;
117++d)b.push(a.charCodeAt(d));this.updateByteArray(b)}; 118k.digestString=function(){for(var a=this.digestByteArray(),b="",c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b};var Me=D.crypto,Ne=!1,Oe=0,Pe=0,Qe=1,Re=0,Se="",Te=function(a){a=a||D.event;var b=a.screenX+a.clientX<<16;b+=a.screenY+a.clientY;b*=(new Date).getTime()%1E6;Qe=Qe*b%Re;Oe>0&&++Pe==Oe&&Pd(D,"mousemove",Te,"remove","de")},Ue=function(a){var b=new Le;b.updateString(a);return b.digestString()};Ne=!!Me&&typeof Me.getRandomValues=="function"; 119Ne||(Re=(screen.width*screen.width+screen.height)*1E6,Se=Ue(nd.cookie+"|"+nd.location+"|"+(new Date).getTime()+"|"+Math.random()),Oe=Sd("random/maxObserveMousemove")||0,Oe!=0&&Qd(D,"mousemove",Te));var Ve=function(){var a=Xd.onl;if(!a){a=Ad();Xd.onl=a;var b=Ad();a.e=function(c){var d=b[c];d&&(delete b[c],d())};a.a=function(c,d){b[c]=d};a.r=function(c){delete b[c]}}return a},We=function(a,b){b=b.onload;return typeof b==="function"?(Ve().a(a,b),b):null},Xe=function(a){E(/^\w+$/.test(a),"Unsupported id - "+a);return'onload="window.___jsl.onl.e("'+a+'")"'},Ye=function(a){Ve().r(a)};var Ze={allowtransparency:"true",frameborder:"0",hspace:"0",marginheight:"0",marginwidth:"0",scrolling:"no",style:"",tabindex:"0",vspace:"0",width:"100%"},$e={allowtransparency:!0,onload:!0},af=0,bf=function(a,b){var c=0;do var d=b.id||["I",af++,"_",(new Date).getTime()].join("");while(a.getElementById(d)&&++c<5);E(c<5,"Error creating iframe id");return d},cf=function(a,b){return a?b+"/"+a:""},df=function(a,b,c,d){var e={},f={};a.documentMode&&a.documentMode<9&&(e.hostiemode=a.documentMode);Bd(d.queryParams|| 120{},e);
120Bd(d.fragmentParams||{},f);var g=d.pfname;var h=Ad();Sd("iframes/dropLegacyIdParam")||(h.id=c);h._gfid=c;h.parent=a.location.protocol+"//"+a.location.host;c=Dd(a.location.href,"parent");g=g||"";!g&&c&&(g=Dd(a.location.href,"_gfid","")||Dd(a.location.href,"id",""),g=cf(g,Dd(a.location.href,"pfname","")));g||(c=De(Dd(a.location.href,"jcp","")))&&typeof c=="object"&&(g=cf(c.id,c.pfname));h.pfname=g;d.connectWithJsonParam&&(g={},g.jcp=Ee(h),h=g);g=Dd(b,"rpctoken")||e.rpctoken||f.rpctoken;if(!g){if(!(g= 121d.rpctoken)){g=String;c=Math;var l=c.round;if(Ne){var m=new D.Uint32Array(1);Me.getRandomValues(m);m=Number("0."+m[0])}else m=Qe,m+=parseInt(Se.substr(0,20),16),Se=Ue(Se),m/=Re+1.2089258196146292E24;g=g(l.call(c,m*1E8))}h.rpctoken=g}d.rpctoken=g;Bd(h,d.connectWithQueryParams?e:f);h=a.location.href;a=Ad();(g=Dd(h,"_bsh",Xd.bsh))&&(a._bsh=g);(h=Xd.dpo?Xd.h:Dd(h,"jsh",Xd.h))&&(a.jsh=h);d.hintInFragment?Bd(a,f):Bd(a,e);d=d.paramsSerializer;b=Jd(b);b.query.push.apply(b.query,Ld(e,d));b.Vb.push.apply(b.Vb, 122Ld(f,d));return Kd(b)},ef=function(a){E(!a||Od.test(a),"Illegal url for new iframe - "+a)},ff=function(a,b,c,d,e){ef(c.src);var f,g=We(d,c),h=g?Xe(d):"";try{document.all&&(f=a.createElement('<iframe frameborder="'+zd(String(c.frameborder))+'" scrolling="'+zd(String(c.scrolling))+'" '+h+' name="'+zd(String(c.name))+'"/>'))}catch(m){}finally{f||(f=(a?new md(ld(a)):Ib||(Ib=new md)).createElement("IFRAME"),g&&(f.onload=function(){f.onload=null;g.call(this)},Ye(d)))}f.setAttribute("ng-non-bindable",""); 123for(var l in c)a=c[l],l==="style"&&typeof a==="object"?Bd(a,f.style):$e[l]||f.setAttribute(l,String(a));(l=e&&e.beforeNode||null)||e&&e.dontclear||Rd(b);b.insertBefore(f,l);f=l?l.previousSibling:b.lastChild;c.allowtransparency&&(f.allowTransparency=!0);return f};var gf=/^:[\w]+$/,hf=/:([a-zA-Z_]+):/g,jf=function(a,b){a=Vd()||"0";var c=Wd();var d=Vd()||a;var e=Wd(),f="";d&&(f+="u/"+encodeURIComponent(String(d))+"/");e&&(f+="b/"+encodeURIComponent(String(e))+"/");d=f||null;(f=(e=Sd("isLoggedIn")===!1)?"_/im/":"")&&(d="");var g=Sd("iframes/:socialhost:"),h=Sd("iframes/:im_socialhost:");Ca={socialhost:g,ctx_socialhost:e?h:g,session_index:a,session_delegate:c,session_prefix:d,im_prefix:f};return Ca[b]||""},kf=function(a){var b=a;gf.test(a)&&(b=Sd("iframes/"+b.substring(1)+ 124"/url"),E(!!b,"Unknown iframe url config for - "+a));return Nd(nd,b.replace(hf,jf))},lf=function(a,b,c){c=c||{};var d=c.attributes||{};E(!(c.allowPost||c.forcePost)||!d.onload,"onload is not supported by post iframe (allowPost or forcePost)");a=kf(a);d=b.ownerDocument||nd;var e=bf(d,c);a=df(d,a,e,c);var f=c,g=Ad();Bd(Ze,g);Bd(f.attributes,g);g.name=g.id=e;g.src=a;c.eurl=a;c=(f=c)||{};var h=!!c.allowPost;if(c.forcePost||h&&a.length>2E3){c=Jd(a);g.src="";f.dropDataPostorigin||(g["data-postorigin"]= 125a);a=ff(d,b,g,e);if(navigator.userAgent.indexOf("WebKit")!=-1){var l=a.contentWindow.document;l.open();g=l.createElement("div");h={};var m=e+"_inner";h.name=m;h.src="";h.style="display:none";ff(d,g,h,m,f)}g=(f=c.query[0])?f.split("&"):[];f=[];for(h=0;h<g.length;h++)m=g[h].split("=",2),f.push([decodeURIComponent(m[0]),decodeURIComponent(m[1])]);c.query=[];g=Kd(c);E(Od.test(g),"Invalid URL: "+g);c=d.createElement("form");c.method="POST";c.target=e;c.style.display="none";e=Db(g);e!==void 0&&(c.action= 126e);for(e=0;e<f.length;e++)g=d.createElement("input"),g.type="hidden",g.name=f[e][0],g.value=f[e][1],c.appendChild(g);b.appendChild(c);c.submit();c.parentNode.removeChild(c);l&&l.close();b=a}else b=ff(d,b,g,e,f);return b};window.osapi=window.osapi||{};window.___jsl=window.___jsl||{}; 127(window.___jsl.cd=window.___jsl.cd||[]).push({gwidget:{parsetags:"explicit"},appsapi:{plus_one_service:"/plus/v1"},csi:{rate:.01},poshare:{hangoutContactPickerServer:"https://plus.google.com"},gappsutil:{required_scopes:["https://www.googleapis.com/auth/plus.me","https://www.googleapis.com/auth/plus.people.recommended"],display_on_page_ready:!1},appsutil:{required_scopes:["https://www.googleapis.com/auth/plus.me","https://www.googleapis.com/auth/plus.people.recommended"],display_on_page_ready:!1}, 128"oauth-flow":{authUrl:"https://accounts.google.com/o/oauth2/auth",proxyUrl:"https://accounts.google.com/o/oauth2/postmessageRelay",redirectUri:"postmessage"},iframes:{sharebox:{params:{json:"&"},url:":socialhost:/:session_prefix:_/sharebox/dialog"},plus:{url:":socialhost:/:session_prefix:_/widget/render/badge?usegapi=1"},":socialhost:":"https://apis.google.com",":im_socialhost:":"https://plus.googleapis.com",domains_suggest:{url:"https://domains.google.com/suggest/flow"},card:{params:{s:"#",userid:"&"}, 129url:":socialhost:/:session_prefix:_/hovercard/internalcard"},":signuphost:":"https://plus.google.com",":gplus_url:":"https://plus.google.com",plusone:{url:":socialhost:/:session_prefix:_/+1/fastbutton?usegapi=1"},plus_share:{url:":socialhost:/:session_prefix:_/+1/sharebutton?plusShare=true&usegapi=1"},plus_circle:{url:":socialhost:/:session_prefix:_/widget/plus/circle?usegapi=1"},plus_followers:{url:":socialhost:/_/im/_/widget/render/plus/followers?usegapi=1"},configurator:{url:":socialhost:/:session_prefix:_/plusbuttonconfigurator?usegapi=1"}, 130appcirclepicker:{url:":socialhost:/:session_prefix:_/widget/render/appcirclepicker"},page:{url:":socialhost:/:session_prefix:_/widget/render/page?usegapi=1"},person:{url:":socialhost:/:session_prefix:_/widget/render/person?usegapi=1"},community:{url:":ctx_socialhost:/:session_prefix::im_prefix:_/widget/render/community?usegapi=1"},follow:{url:":socialhost:/:session_prefix:_/widget/render/follow?usegapi=1"},commentcount:{url:":socialhost:/:session_prefix:_/widget/render/commentcount?usegapi=1"},comments:{url:":socialhost:/:session_prefix:_/widget/render/comments?usegapi=1"}, 131youtube:{url:":socialhost:/:session_prefix:_/widget/render/youtube?usegapi=1"},reportabuse:{url:":socialhost:/:session_prefix:_/widget/render/reportabuse?usegapi=1"}
131,additnow:{url:":socialhost:/additnow/additnow.html"},appfinder:{url:"https://workspace.google.com/:session_prefix:marketplace/appfinder?usegapi=1"},":source:":"1p"},poclient:{update_session:"google.updateSessionCallback"},"googleapis.config":{rpc:"/rpc",root:"https://content.googleapis.com","root-1p":"https://clients6.google.com",useGapiForXd3:!0, 132xd3:"/static/proxy.html",auth:{useInterimAuth:!1}},report:{apis:["iframes\\..*","gadgets\\..*","gapi\\.appcirclepicker\\..*","gapi\\.client\\..*"],rate:1E-4},client:{perApiBatch:!0}});var mf=function(a){var b=window.___jsl=window.___jsl||{};b[a]=b[a]||[];return b[a]},nf=function(a){var b=window.___jsl=window.___jsl||{};b.cfg=!a&&b.cfg||{};return b.cfg},of=function(a){return typeof a==="object"&&/\[native code\]/.test(a.push)},pf=function(a,b,c){if(b&&typeof b==="object")for(var d in b)!Object.prototype.hasOwnProperty.call(b,d)||c&&d==="___goc"&&typeof b[d]==="undefined"||(a[d]&&b[d]&&typeof a[d]==="object"&&typeof b[d]==="object"&&!of(a[d])&&!of(b[d])?pf(a[d],b[d]):b[d]&&typeof b[d]=== 133"object"?(a[d]=of(b[d])?[]:{},pf(a[d],b[d])):a[d]=b[d])},sf=function(a,b){if(a&&!/^\s+$/.test(a)){for(;a.charCodeAt(a.length-1)==0;)a=a.substring(0,a.length-1);var c=""+a,d=mf("dm");d.push(20);try{var e=window.JSON.parse(a)}catch(g){}if(typeof e==="object")return d.push(21),e;try{e=window.JSON.parse("{"+a+"}")}catch(g){}if(typeof e==="object")return d.push(22),e;a=a.replace(RegExp("([^\"',{}\\s]+?)\\s*:\\s*(.*?)[,}\\s]","g"),function(g,h,l){l=l.startsWith('"')?"%DOUBLE_QUOTE%"+l.substring(1):l;l= 134l.endsWith('"')?l.slice(0,-1)+"%DOUBLE_QUOTE%":l;return"%DOUBLE_QUOTE%"+h+"%DOUBLE_QUOTE%:"+l});a=a.replace(/\\'/g,"%SINGLE_QUOTE%");a=a.replace(/"/g,'\\"');a=a.replace(/'/g,'"');a=a.replace(/%SINGLE_QUOTE%/g,"'");a=a.replace(/%DOUBLE_QUOTE%/g,'"');try{e=window.JSON.parse(a)}catch(g){}if(typeof e==="object")return d.push(23),e;try{e=window.JSON.parse("{"+a+"}")}catch(g){}if(typeof e==="object")return d.push(24),e;a=document.getElementsByTagName("script")||[];var f;a.length>0&&(f=a[0].nonce||a[0].getAttribute("nonce")); 135if(f&&f===b||!f&&qf())if(e=rf(c),d.push(25),typeof e==="object")return e;return{}}},qf=function(){var a=window.location.hostname;return a?/(^|\.)(2mdn|ampproject|android|appspot|blogger|blogspot|chrome|chromium|doubleclick|gcpnode|ggpht|gmail|google|google-analytics|googleadservices|googleapis|googleapis-cn|googleoptimize|googlers|googlesource|googlesyndication|googletagmanager|googletagservices|googleusercontent|googlevideo|gstatic|tiltbrush|waze|withgoogle|youtube|ytimg)(\.com?|\.net|\.org)?(\.[a-z][a-z]|\.cat)?$/.test(a): 136!1},rf=function(a){try{var b=(new Function("return ("+a+"\n)"))()}catch(c){}if(typeof b==="object")return b;try{b=(new Function("return ({"+a+"\n})"))()}catch(c){}return b},tf=function(a,b){var c={___goc:void 0};a.length&&a[a.length-1]&&Object.hasOwnProperty.call(a[a.length-1],"___goc")&&typeof a[a.length-1].___goc==="undefined"&&(c=a.pop());pf(c,b);a.push(c)},uf=function(a){nf(!0);var b=window.___gcfg,c=mf("cu"),d=window.___gu;b&&b!==d&&(tf(c,b),window.___gu=b);b=mf("cu");var e=document.getElementsByTagName("script")|| 137[];d=[];var f=[];f.push.apply(f,mf("us"));for(var g=0;g<e.length;++g)for(var h=e[g],l=0;l<f.length;++l)h.src&&h.src.indexOf(f[l])==0&&d.push(h);d.length==0&&e.length>0&&e[e.length-1].src&&d.push(e[e.length-1]);for(e=0;e<d.length;++e)d[e].getAttribute("gapi_processed")||(d[e].setAttribute("gapi_processed",!0),(f=d[e])?(g=f.no
137deType,f=g==3||g==4?f.nodeValue:f.textContent||""):f=void 0,g=d[e].nonce||d[e].getAttribute("nonce"),(f=sf(f,g))&&b.push(f));a&&tf(c,a);d=mf("cd");a=0;for(b=d.length;a<b;++a)pf(nf(), 138d[a],!0);d=mf("ci");a=0;for(b=d.length;a<b;++a)pf(nf(),d[a],!0);a=0;for(b=c.length;a<b;++a)pf(nf(),c[a],!0)};var vf=function(){var a=window.__GOOGLEAPIS;a&&(a.googleapis&&!a["googleapis.config"]&&(a["googleapis.config"]=a.googleapis),pd(Xd,"ci",[]).push(a),window.__GOOGLEAPIS=void 0)};vf&&vf();uf();t("gapi.config.get",function(a,b){var c=nf();if(!a)return c;a=a.split("/");for(var d=0,e=a.length;c&&typeof c==="object"&&d<e;++d)c=c[a[d]];return d===a.length&&c!==void 0?c:b});t("gapi.config.update",function(a,b){var c;if(typeof a==="string"){var d=c={};a=a.split("/");for(var e=0,f=a.length;e<f-1;++e){var g={};d=d[a[e]]=g}d[a[e]]=b}else c=a;uf(c)});var wf=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");c!=-1&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if(c!=="http"&&c!=="https"&&c!=="chrome-extension"&& 139c!=="moz-extension"&&c!=="file"&&c!=="android-app"&&c!=="chrome-search"&&c!=="chrome-untrusted"&&c!=="chrome"&&c!=="app"&&c!=="devtools")throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(d!=-1){var e=b.substring(d+1);b=b.substring(0,d);if(c==="http"&&e!=="80"||c==="https"&&e!=="443")a=":"+e}return c+"://"+b+a};var zf=function(a){this.nb=a;this.Context=xf(a);this.Iframe=yf(a)};k=zf.prototype;k.CROSS_ORIGIN_IFRAMES_FILTER=function(a){return this.nb().CROSS_ORIGIN_IFRAMES_FILTER(a)};k.SAME_ORIGIN_IFRAMES_FILTER=function(a){return this.nb().SAME_ORIGIN_IFRAMES_FILTER(a)};k.create=function(a,b,c){return this.nb().create(a,b,c)};k.getBeforeOpenStyle=function(a){return this.nb().getBeforeOpenStyle(a)};k.getContext=function(){return this.nb().getContext()};k.getStyle=function(a){return this.nb().getStyle(a)}; 140k.makeWhiteListIframesFilter=function(a){return this.nb().makeWhiteListIframesFilter(a)};k.registerBeforeOpenStyle=function(a,b){return this.nb().registerBeforeOpenStyle(a,b)};k.registerIframesApi=function(a,b,c){return this.nb().registerIframesApi(a,b,c)};k.registerIframesApiHandler=function(a,b,c){return this.nb().registerIframesApiHandler(a,b,c)};k.registerStyle=function(a,b){return this.nb().registerStyle(a,b)}; 141function xf(a){var b=function(c){return new (a().Context)(c)};b.prototype.addOnConnectHandler=function(c,d,e,f){return a().Context.prototype.addOnConnectHandler.apply(this,[c,d,e,f])};b.prototype.addOnOpenerHandler=function(c,d,e){return a().Context.prototype.addOnOpenerHandler.apply(this,[c,d,e])};b.prototype.closeSelf=function(c,d,e){return a().Context.prototype.closeSelf.apply(this,[c,d,e])};b.prototype.connectIframes=function(c,d){a().Context.prototype.connectIframes.apply(this,[c,d])};b.prototype.getFrameName= 142function(){return a().Context.prototype.getFrameName.apply(this)};b.prototype.getGlobalParam=function(c){a().Context.prototype.getGlobalParam.apply(this,[c])};b.prototype.getParentIframe=function(){return a().Context.prototype.getParentIframe.apply(this)};b.prototype.getWindow=function(){return a().Context.prototype.getWindow.apply(this)};b.prototype.isDisposed=function(){return a().Context.prototype.isDisposed.apply(this)};b.prototype.open=function(c,d){return a().Context.prototype.open.apply(this, 143[c,d])};b.prototype.openChild=function(c){return a().Context.prototype.openChild.apply(this,[c])};b.prototype.ready=function(c,d,e,f){a().Context.prototype.ready.apply(this,[c,d,e,f])};b.prototype.removeOnConnectHandler=function(c){a().Context.prototype.removeOnConnectHandler.apply(this,[c])};b.prototype.restyleSelf=function(c,d,e){return a().Context.prototype.restyleSelf.apply(this,[c,d,e])};b.prototype.setCloseSelfFilter=function(c){a().Context.prototype.setCloseSelfFilter.apply(this,[c])};b.prototype.setGlobalParam= 144function(c,d){a().Context.prototype.setGlobalParam.apply(this,[c,d])};b.prototype.setRestyleSelfFilter=function(c){a().Context.prototype.setRestyleSelfFilter.apply(this,[c])};return b} 145function yf(a){var b=function(c,d,e,f){return new (a().Iframe)(c,d,e,f)};b.prototype.applyIframesApi=function(c){a().Iframe.prototype.applyIframesApi(c)};b.prototype.close=function(c,d){return a().Iframe.prototype.close.apply(this,[c,d])};b.prototype.getContext=function(){return a().Iframe.prototype.getContext.apply(this,[])};b.prototype.getFrameName=function(){return a().Iframe.prototype.getFrameName.apply(this,[])};b.prototype.getId=function(){return a().Iframe.prototype.getId.apply(this,[])};b.prototype.getIframeEl= 146function(){return a().Iframe.prototype.getIframeEl.apply(this,[])};b.prototype.getOrigin=function(){return a().Iframe.prototype.getOrigin.apply(this,[])};b.prototype.getParam=function(c){a().Iframe.prototype.getParam.apply(this,[c])};b.prototype.getSiteEl=function(){return a().Iframe.prototype.getSiteEl.apply(this,[])};b.prototype.getWindow=function(){return a().Iframe.prototype.getWindow.apply(this,[])};b.prototype.isDisposed=function(){return a().Iframe.prototype.isDisposed.apply(this,[])};b.prototype.ping= 147function(c,d){return a().Iframe.prototype.ping.apply(this,[c,d])};b.prototype.register=function(c,d,e){a().Iframe.prototype.register.apply(this,[c,d,e])};b.prototype.registerWasClosed=function(c,d){a().Iframe.prototype.registerWasClosed.apply(this,[c,d])};b.prototype.registerWasRestyled=function(c,d){a().Iframe.prototype.registerWasRestyled.apply(this,[c,d])};b.prototype.restyle=function(c,d){return a().Iframe.prototype.restyle.apply(this,[c,d])};b.prototype.send=function(c,d,e,f){return a().Iframe.prototype.send.apply(this, 148[c,d,e,f])};b.prototype.setParam=function(c,d){a().Iframe.prototype.setParam.apply(this,[c,d])};b.prototype.setSiteEl=function(c){a().Iframe.prototype.setSiteEl.apply(this,[c])};b.prototype.unregister=function(c,d){a().Iframe.prototype.unregister.apply(this,[c,d])};return b};function Af(a,b){b=b===void 0?new Set:b;if(b.has(a))return"(Recursive reference)";switch(typeof a){case "object":if(a){var c=Object.getPrototypeOf(a);switch(c){case Map.prototype:case Set.prototype:case Array.prototype:b.add(a);var d="["+Array.from(a,function(e){return Af(e,b)}).join(", ")+"]";b.delete(a);c!==Array.prototype&&(d=Bf(c.constructor)+"("+d+")");return d;case Object.prototype:return b.add(a),c="{"+Object.entries(a).map(function(e){var f=la(e);e=f.next().value;f=f.next().value;return e+ 149": "+Af(f,b)}).join(", ")+"}",b.delete(a),c;default:return d="Object",c&&c.constructor&&(d=Bf(c.constructor)),typeof a.toString==="function"&&a.toString!==Object.prototype.toString?d+"("+String(a)+")":"(object "+d+")"}}break;case "function":return"function "+Bf(a);case "number":if(!Number.isFinite(a))return String(a);break;case "bigint":return a.toString(10)+"n";case "symbol":return a.toString()}return JSON.stringify(a)} 150function Bf(a){var b=a.displayName;return b&&typeof b==="string"||(b=a.name)&&typeof b==="string"?b:(a=/function\s+([^\(]+)/m.exec(String(a)))?a[1]:"(Anonymous)"};function Cf(a){var b=Df,c=Ef,d=[];Ff(b,a,d)||Gf.apply(null,[void 0,c,"Guard "+b.zi().trim()+" failed:"].concat(ma(d.reverse())))}function Ff(a,b,c){var d=a(b,c);d||Hf(c,function(){var e="";e.length>0&&(e+=": ");return e+"Expected "+a.zi().trim()+", got "+Af(b)});return d}function Hf(a,b){a==null||a.push((typeof b==="function"?b():b).trim())}var Ef=void 0;function If(a){return typeof a==="function"?a():a}
151function Gf(){throw Error(pa.apply(0,arguments).map(If).filter(Boolean).join("\n").trim().replace(/:$/,""));}var Df=function(a,b){a.Pm=!0;a.zi=typeof b==="function"?b:function(){return b};return a}(function(a){return a!==null&&a!==void 0},"exists");var Jf=function(){this.Fb=[];this.hi=this.kk=this.fk=!1};Jf.prototype.nb=function(a){this.hi=!0;return this.Fb.length?Kf(this,this.Fb[0],a):void 0};var Kf=function(a,b,c){c=c===void 0?function(d){return new d}:c;if(!b.Ue)return b.instance;c=c(b.Ue);a.kk&&(delete b.Ue,b.instance=c);return c},Lf=function(){Jf.apply(this,arguments)};q(Lf,Jf); 152var Nf=function(a){var b=Mf.fi;y(b.fk||!b.hi,"Cannot register new delegates after instantiation.");var c=a.priority,d=~Zb(b.Fb,function(f){return f.priority<c?-1:1}),e=d>0?b.Fb[d-1]:null;e&&e.priority<=c&&y(!1,"two delegates registered with same priority (%s): %s and %s",c,e.Ue||e.instance,a.Ue||a.instance);b.Fb.splice(d,0,a)};var Mf=new function(){var a=this;this.fi=new Lf;this.instance=new zf(function(){var b=a.fi.nb();Cf(b);return b()})};Nf({instance:function(){var a=window.gapi;Cf(a);a=a.iframes;Cf(a);return a},priority:1});var Of={height:!0,width:!0},Pf=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,Qf=function(a){typeof a==="number"&&(a=String(a)+"px");return a};var Rf=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var Sf=function(a,b){this.tl=100;this.tk=a;this.Pl=b;this.yf=0;this.ef=null};Sf.prototype.get=function(){if(this.yf>0){this.yf--;var a=this.ef;this.ef=a.next;a.next=null}else a=this.tk();return a};Sf.prototype.put=function(a){this.Pl(a);this.yf<this.tl&&(this.yf++,a.next=this.ef,this.ef=a)};function Tf(a){r.setTimeout(function(){throw a;},0)};var Uf=function(){this.Wf=this.hd=null};Uf.prototype.add=function(a,b){var c=Vf.get();c.set(a,b);this.Wf?this.Wf.next=c:(y(!this.hd),this.hd=c);this.Wf=c};Uf.prototype.remove=function(){var a=null;this.hd&&(a=this.hd,this.hd=this.hd.next,this.hd||(this.Wf=null),a.next=null);return a};var Vf=new Sf(function(){return new Wf},function(a){return a.reset()}),Wf=function(){this.next=this.scope=this.Zd=null};Wf.prototype.set=function(a,b){this.Zd=a;this.scope=b;this.next=null}; 153Wf.prototype.reset=function(){this.next=this.scope=this.Zd=null};var Xf=r.console&&r.console.createTask?r.console.createTask.bind(r.console):void 0,Yf=Xf?Symbol("consoleTask"):void 0; 154function Zf(a,b){function c(){var h=pa.apply(0,arguments),l=this;return g.run(function(){return a.call.apply(a,[l].concat(ma(h)))})}b=b===void 0?"anonymous":b;if(Yf&&a[Yf])return a;var d=a,e,f=(e=$f)==null?void 0:e();a=function(){var h=pa.apply(0,arguments),l,m=(l=$f)==null?void 0:l();if(f!==m)throw Error(b+" was scheduled in '"+f+"' but called in '"+m+"'.\nMake sure your test awaits all async calls.\n\nTIP: To help investigate, debug the test in Chrome and look at the async portion\nof the call stack to see what originally scheduled the callback. Then, make the\ntest wait for the relevant asynchronous work to finish.");return d.call.apply(d, 155[this].concat(ma(h)))};if(!Xf)return a;var g=Xf(a.name||b);c[Lb(Yf)]=g;return c}var $f;var ag,bg=!1,cg=new Uf,eg=function(a,b){a=Zf(a,"goog.async.run");ag||dg();bg||(ag(),bg=!0);cg.add(a,b)},dg=function(){var a=Promise.resolve(void 0);ag=function(){a.then(fg)}};function fg(){for(var a;a=cg.remove();){try{a.Zd.call(a.scope)}catch(b){Tf(b)}Vf.put(a)}bg=!1};var gg=function(){},hg=function(a){return typeof a==="function"};var ig=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var F=function(a,b){this.Ea=0;this.Wa=void 0;this.kd=this.ac=this.Ja=null;this.af=this.Ag=!1;if(a!=gg)try{var c=this;a.call(b,function(d){jg(c,2,d)},function(d){if(!(d instanceof kg))try{if(d instanceof Error)throw d;throw Error("Promise rejected.");}catch(e){}jg(c,3,d)})}catch(d){jg(this,3,d)}},lg=function(){this.next=this.context=this.zd=this.Tc=this.child=null;this.Sd=!1};lg.prototype.reset=function(){this.context=this.zd=this.Tc=this.child=null;this.Sd=!1}; 156var mg=new Sf(function(){return new lg},function(a){a.reset()}),ng=function(a,b,c){var d=mg.get();d.Tc=a;d.zd=b;d.context=c;return d}
156,G=function(a){if(a instanceof F)return a;var b=new F(gg);jg(b,2,a);return b},H=function(a){return new F(function(b,c){c(a)})},pg=function(a,b,c){og(a,b,c,null)||eg(Aa(b,a))},qg=function(a){return new F(function(b,c){var d=a.length,e=[];if(d)for(var f=function(m,p){d--;e[m]=p;d==0&&b(e)},g=function(m){c(m)},h,l=0;l<a.length;l++)h=a[l],pg(h,Aa(f,l),g);else b(e)})},rg= 157function(a){return new F(function(b){var c=a.length,d=[];if(c)for(var e=function(h,l,m){c--;d[h]=l?{oi:!0,value:m}:{oi:!1,reason:m};c==0&&b(d)},f,g=0;g<a.length;g++)f=a[g],pg(f,Aa(e,g,!0),Aa(e,g,!1));else b(d)})}; 158F.prototype.then=function(a,b,c){a!=null&&Ob(a,"opt_onFulfilled should be a function.");b!=null&&Ob(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return sg(this,Rf(typeof a==="function"?a:null),Rf(typeof b==="function"?b:null),c)};F.prototype.$goog_Thenable=!0; 159var ug=function(a,b,c,d){b!=null&&Ob(b,"opt_onFulfilled should be a function.");c!=null&&Ob(c,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");tg(a,ng(b||gg,c||null,d))};k=F.prototype;k.Ec=function(a,b){a=Rf(a);b=ng(a,a,b);b.Sd=!0;tg(this,b);return this};k.finally=function(a){var b=this;a=Rf(a);return new F(function(c,d){ug(b,function(e){a();c(e)},function(e){a();d(e)})})};k.l=function(a,b){return sg(this,null,Rf(a),b)};k.catch=F.prototype.l; 160k.cancel=function(a){if(this.Ea==0){var b=new kg(a);eg(function(){vg(this,b)},this)}}; 161var vg=function(a,b){if(a.Ea==0)if(a.Ja){var c=a.Ja;if(c.ac){for(var d=0,e=null,f=null,g=c.ac;g&&(g.Sd||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.Ea==0&&d==1?vg(c,b):(f?(d=f,y(c.ac),y(d!=null),d.next==c.kd&&
161(c.kd=d),d.next=d.next.next):wg(c),xg(c,e,3,b)))}a.Ja=null}else jg(a,3,b)},tg=function(a,b){a.ac||a.Ea!=2&&a.Ea!=3||yg(a);y(b.Tc!=null);a.kd?a.kd.next=b:a.ac=b;a.kd=b},sg=function(a,b,c,d){b&&(b=Zf(b,"goog.Promise.then"));c&&(c=Zf(c,"goog.Promise.then"));var e=ng(null,null,null); 162e.child=new F(function(f,g){e.Tc=b?function(h){try{var l=b.call(d,h);f(l)}catch(m){g(m)}}:f;e.zd=c?function(h){try{var l=c.call(d,h);l===void 0&&h instanceof kg?g(h):f(l)}catch(m){g(m)}}:g});e.child.Ja=a;tg(a,e);return e.child};F.prototype.sm=function(a){y(this.Ea==1);this.Ea=0;jg(this,2,a)};F.prototype.tm=function(a){y(this.Ea==1);this.Ea=0;jg(this,3,a)}; 163var jg=function(a,b,c){a.Ea==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Ea=1,og(c,a.sm,a.tm,a)||(a.Wa=c,a.Ea=b,a.Ja=null,yg(a),b!=3||c instanceof kg||zg(a,c)))},og=function(a,b,c,d){if(a instanceof F)return ug(a,b,c,d),!0;if(ig(a))return a.then(b,c,d),!0;if(u(a))try{var e=a.then;if(typeof e==="function")return Ag(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},Ag=function(a,b,c,d,e){var f=!1,g=function(l){f||(f=!0,c.call(e,l))},h=function(l){f||(f=!0,d.call(e,l))}; 164try{b.call(a,g,h)}catch(l){h(l)}},yg=function(a){a.Ag||(a.Ag=!0,eg(a.Ck,a))},wg=function(a){var b=null;a.ac&&(b=a.ac,a.ac=b.next,b.next=null);a.ac||(a.kd=null);b!=null&&y(b.Tc!=null);return b};F.prototype.Ck=function(){for(var a;a=wg(this);)xg(this,a,this.Ea,this.Wa);this.Ag=!1}; 165var xg=function(a,b,c,d){if(c==3&&b.zd&&!b.Sd)for(;a&&a.af;a=a.Ja)a.af=!1;if(b.child)b.child.Ja=null,Bg(b,c,d);else try{b.Sd?b.Tc.call(b.context):Bg(b,c,d)}catch(e){Cg.call(null,e)}mg.put(b)},Bg=function(a,b,c){b==2?a.Tc.call(a.context,c):a.zd&&a.zd.call(a.context,c)},zg=function(a,b){a.af=!0;eg(function(){a.af&&Cg.call(null,b)})},Cg=Tf,kg=function(a){Hb.call(this,a)};w(kg,Hb);kg.prototype.name="cancel";var Dg,Eg,Fg,Gg=/^[\w\.\-]*$/,Hg=function(a){return a.getOrigin()===a.getContext().getOrigin()},Ig=function(){return!0},Jg=function(a){for(var b=Ad(),c=0;c<a.length;c++)b[a[c]]=!0;return function(d){return!!b[d.Mb]}},Lg=function(a,b,c){return function(d){if(!b.isDisposed()){var e=this.origin,f=b.getOrigin();E(e===f,"Wrong origin "+e+" != "+f);e=this.callback;d=Kg(a,d,b);!c&&d.length>0&&qg(d).then(e)}}},Kg=function(a,b,c){a=Dg[a];if(!a)return[];for(var d=[],e=0;e<a.length;e++)d.push(G(a[e].call(c, 166b,c)));return d},Mg=function(a,b,c){E(a!="_default","Cannot update default api");Eg[a]={map:b,filter:c}},Ng=function(a,b,c){E(a!="_default","Cannot update default api");pd(Eg,a,{map:{},filter:Hg}).map[b]=c},Og=function(a,b){pd(Eg,"_default",{map:{},filter:Ig}).map[a]=b;td(Fg.mb,function(c){c.register(a,b,Ig)})},Pg=function(){return Fg},Qg=/^https?:\/\/[^\/%\\?#\s]+$/i,Rg={longdesc:!0,name:!0,src:!0,frameborder:!0,marginwidth:!0,marginheight:!0,scrolling:!0,align:!0,height:!0,width:!0,id:!0,"class":!0, 167title:!0,tabindex:!0,hspace:!0,vspace:!0,allowtransparency:!0};var Sg=function(){Da.apply(this,arguments)};q(Sg,Da);var Ma=function(){La.apply(this,arguments)};q(Ma,La);var Tg=function(){Qa.apply(this,arguments)};q(Tg,Qa);var I=function(a){Tg.call(this,a)};q(I,Tg);var Ug=function(a,b){a.i.frameName=b;return a};I.prototype.getFrameName=function(){return this.i.frameName};var Vg=function(a,b){a.i.rpcAddr=b;return a};I.prototype.tb=function(){return this.i.rpcAddr};var Wg=function(a,b){a.i.retAddr=b;return a};I.prototype.Jb=function(){return this.i.retAddr};var Xg=function(a,b){a.i.origin=b;return a};I.prototype.getOrigin=function(){return this.i.origin};I.prototype.kc=function(a){this.i.setRpcReady=a;return this}; 168var Yg=function(a,b){a.i.context=b},Zg=function(a,b){a.i._rpcReadyFn=b};I.prototype.getIframeEl=function(){return this.i.iframeEl};var $g=function(a,b,c){var d=a.tb(),e=b.Jb();Wg(Vg(c,a.Jb()+"/"+b.tb()),e+"/"+d);Xg(Ug(c,b.getFrameName()),b.getOrigin())};function ah(a){return new F(a)}var ch=function(a){this.resolve=this.reject=null;this.promise=ah(v(function(b,c){this.resolve=b;this.reject=c},this));a&&(this.promise=bh(this.promise,a))},bh=function(a,b){return a.then(function(c){try{b(c)}catch(d){}return c})};var dh=function(){this.Bb=window.console};dh.prototype.log=function(a){this.Bb&&this.Bb.log&&this.Bb.log(a)};dh.prototype.error=function(a){this.Bb&&(this.Bb.error?this.Bb.error(a):this.Bb.log&&this.Bb.log(a))};dh.prototype.warn=function(a){this.Bb&&(this.Bb.warn?this.Bb.warn(a):this.Bb.log&&this.Bb.log(a))};dh.prototype.debug=function(){};var eh=new dh;var mh=function(){this.He={vj:fh?"../"+fh:null,wk:gh,yi:hh,Qm:ih,getToken:jh,Sm:kh};this.Ab=D;this.mj=this.vk;this.Gk=/MSIE\s*[0-8](\D|$)/.test(window.navigator.userAgent);if(this.He.vj){this.Ab=this.He.yi(this.Ab,this.He.vj);var a=this.Ab.document,b=a.createElement("script");b.setAttribute("type","text/javascript");b.text="window.doPostMsg=function(w,s,o) {window.setTimeout(function(){w.postMessage(s,o);},0);};";a.body.appendChild(b);this.mj=this.Ab.doPostMsg}this.Fh={};this.Oh={};a=v(this.Qk,this); 169Qd(this.Ab,"message",a);pd(Xd,"RPMQ",[]).push(a);this.Ab!=this.Ab.parent&&lh(this,this.Ab.parent,this.Ri(this.Ab.name),"*")};mh.prototype.Ri=function(a){return'{"h":"'+escape(a)+'"}'};var nh=function(a){var b=null;a.indexOf('{"h":"')===0&&a.indexOf('"}')===a.length-2&&(b=unescape(a.substring(6,a.length-2)));return b}
169,oh=function(a){if(!/^\s*{/.test(a))return!1;a=De(a);return a!==null&&typeof a==="object"&&!!a.g}; 170mh.prototype.Qk=function(a){var b=String(a.data);eh.debug("gapix.rpc.receive("+ih+"): "+(!b||b.length<=512?b:b.substr(0,512)+"... ("+b.length+" bytes)"));var c=b.indexOf("!_")!==0;c||(b=b.substring(2));var d=oh(b);if(!c&&!d){if(!d&&(c=nh(b))){if(this.Fh[c])this.Fh[c]();else this.Oh[c]=1;return}var e=a.origin,f=this.He.wk;this.Gk?D.setTimeout(function(){f(b,e)},0):f(b,e)}};mh.prototype.setup=function(a,b){a===".."||this.Oh[a]?(b(),delete this.Oh[a]):this.Fh[a]=b}; 171var lh=function(a,b,c,d){var e=oh(c)?"":"!_";eh.debug("gapix.rpc.send("+ih+"): "+(!c||c.length<=512?c:c.substr(0,512)+"... ("+c.length+" bytes)"));a.mj(b,e+c,d)};mh.prototype.vk=function(a,b,c){a.postMessage(b,c)};mh.prototype.send=function(a,b,c){(a=this.He.yi(this.Ab,a))&&!a.closed&&lh(this,a,b,c)};var ph=0,qh=[],rh={},sh={},th=D.location.href,uh=Dd(th,"rpctoken"),vh=Dd(th,"parent")||nd.referrer,fh=Dd(th,"rly"),ih=fh||(D!==D.top||D.opener)&&D.name||"..",wh=null,xh={},yh=function(){},zh={send:yh,setup:yh,Ri:yh},hh=function(a,b){var c=a;b.charAt(0)=="/"&&(b=b.substring(1),c=D.top);if(b.length===0)return c;for(b=b.split("/");b.length;){a=b.shift();a.charAt(0)=="{"&&a.charAt(a.length-1)=="}"&&(a=a.substring(1,a.length-1));var d=a;if(d==="..")c=c==c.parent?c.opener:c.parent;else if(d!==".."&&c.frames[d]){var e= 172c;a=d;c=c.frames[d];if(!("postMessage"in c))if(c instanceof HTMLIFrameElement&&"contentWindow"in c)c=c.contentWindow!=null&&"postMessage"in c.contentWindow?c.contentWindow:null;else{d=null;e=la(e.document.getElementsByTagName("iframe"));for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.getAttribute("id")==a||f.getAttribute("name")==a)d=f;if(d&&"contentWindow"in d)c=d.contentWindow!=null?d.contentWindow:null;else throw Error(c+"is not a window for part "+a);}}else return null}return c},jh=function(a){return(a= 173rh[a])&&a.token},Ah=function(a){if(a.f in{})return!1;var b=a.t,c=rh[a.r];a=a.origin;return c&&(c.token===b||!c.token&&!b)&&(a===c.origin||c.origin==="*")},Bh=function(a){var b=a.id.split("/"),c=b[b.length-1],d=a.origin;return function(e){var f=e.origin;return e.f==c&&(d==f||d=="*")}},Eh=function(a,b,c){a=Ch(a);sh[a.name]={Zd:b,le:a.le,Fa:c||Ah};Dh()},Fh={},Gh=function(a,b){(a=Fh["_"+a])&&a[1](this)&&a[0].call(this,b)},Ih=function(a){var b=a.c;if(!b)return yh;var c=a.r,d=a.g?"legacy__":"";return function(){var e= 174[].slice.call(arguments,0);e.unshift(c,d+"__cb",null,b);Hh.apply(null,e)}},kh=function(a){wh=a},Kh=function(a){xh[a]||(xh[a]=D.setTimeout(function(){xh[a]=!1;Jh(a)},0))},Jh=function(a){var b=rh[a];if(b&&b.ready){var c=b.mh;for(b.mh=[];c.length;)zh.send(a,Ee(c.shift()),b.origin)}},Ch=function(a){return a.indexOf("legacy__")===0?{name:a.substring(8),le:!0}:{name:a,le:!1}},Dh=function(){for(var a=Sd("rpc/residenceSec")||60,b=(new Date).getTime()/1E3,c,d=0;c=qh[d];++d){var e=c.rpc;if(!e||a>0&&b-c.timestamp> 175a)qh.splice(d,1),--d;else{var f=e.s,g=sh[f]||sh["*"];if(g)if(qh.splice(d,1),--d,e.origin=c.origin,c=Ih(e),e.callback=c,g.Fa(e)){if(f!=="__cb"&&!!g.le!=!!e.g)break;e=g.Zd.apply(e,e.a);e!==void 0&&c(e)}else eh.debug("gapix.rpc.rejected("+ih+"): "+f)}}},Lh=function(a,b,c){qh.push({rpc:a,origin:b,timestamp:(new Date).getTime()/1E3});c||Dh()},gh=function(a,b){a=De(a);Lh(a,b,!1)},Mh=function(a){for(;a.length;)Lh(a.shift(),this.origin,!0);Dh()},Nh=function(a){var b=!1;a=a.split("|");var c=a[0];c.indexOf("/")>= 1760&&(b=!0);return{id:c,origin:a[1]||"*",Og:b}},Oh=function(a,b,c,d){var e=Nh(a);d&&(D.frames[e.id]=D.frames[e.id]||d);a=e.id;if(!rh.hasOwnProperty(a)){c=c||null;d=e.origin;if(a==="..")d=wf(vh),c=c||uh;else if(!e.Og){var f=nd.getElementById(a);f&&(f=f.src,d=wf(f),c=c||Dd(f,"rpctoken"))}e.origin==="*"&&d||(d=e.origin);rh[a]={token:c,mh:[],origin:d,Xl:b,tj:function(){var g=a;rh[g].ready=1;Jh(g)}};zh.setup(a,rh[a].tj)}return rh[a].tj},Hh=function(a,b,c,d){a=a||"..";Oh(a);a=a.split("|",1)[0];var e=b,f= 177a,g=[].slice.call(arguments,3),h=c,l=ih,m=uh,p=rh[f],x=l,A=Nh(f);if(p&&f!==".."){if(A.Og){if(!(m=rh[f].Xl)){m=wh?wh.substring(1).split("/"):[ih];x=m.length-1;for(f=D.parent;f!==D.top;){var S=f.parent;if(!x--){for(var Ba=null,Bc=S.frames.length,je=0;je<Bc;++je)S.frames[je]==f&&(Ba=je);m.unshift("{"+Ba+"}")}f=S}m="/"+m.join("/")}x=m}else x=l="..";m=p.token}
177h&&A?(p=Ah,A.Og&&(p=Bh(A)),Fh["_"+ ++ph]=[h,p],h=ph):h=null;g={s:e,f:l,r:x,t:m,c:h,a:g};e=Ch(e);g.s=e.name;g.g=e.le;rh[a].mh.push(g);Kh(a)}; 178if(typeof D.postMessage==="function"||typeof D.postMessage==="object")zh=new mh,Eh("__cb",Gh,function(){return!0}),Eh("_processBatch",Mh,function(){return!0}),Oh("..");var Ph=C("Safari")&&!((Oc()?Nc("Chromium"):(C("Chrome")||C("CriOS"))&&(Oc()||!C("Edge"))||C("Silk"))||(Oc()?0:C("Coast"))||(Oc()?0:C("Opera"))||(Oc()?0:C("Edge"))||(Oc()?Nc("Microsoft Edge"):C("Edg/"))||(Oc()?Nc("Opera"):C("OPR"))||C("Firefox")||C("FxiOS")||C("Silk")||C("Android"))&&!(Pc()||C("iPad")||C("iPod"));var Rh=function(a,b,c){a.setTimeout(function(){b.closed||c==5?Qh(b):(b.close(),c++,Rh(a,b,c))},1E3)},Qh=function(a){if(!a.closed&&a.document&&a.document.body)if(a=a.document.body,y(a!=null,"goog.dom.setTextContent expects a non-null value for node"),"textContent"in a)a.textContent="Please close this window.";else if(a.nodeType==3)a.data="Please close this window.";else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(y(a.lastChild));a.firstChild.data="Please close this window."}else{jd(a); 179var b=ld(a);a.appendChild(b.createTextNode("Please close this window."))}};var J=function(a,b,c,d){this.Gb=!1;this.Te=a;this.uh=b;this.td=c;this.Ua=d;this.wj=this.Ua.Jb();this.Mb=this.Ua.getOrigin();this.dl=this.Ua.getIframeEl();this.Kj=this.Ua.i.where;this.Fb=[];this.applyIframesApi("_default");a=this.Ua.i.apis||[];for(b=0;b<a.length;b++)this.applyIframesApi(a[b]);this.Te.mb[c]=this};k=J.prototype;k.isDisposed=function(){return this.Gb}; 180k.dispose=function(){if(!this.isDisposed()){for(var a=0;a<this.Fb.length;a++)this.unregister(this.Fb[a]);delete Fg.mb[this.getFrameName()];this.Gb=!0}};k.getContext=function(){return this.Te};k.getOptions=function(){return this.Ua};k.tb=function(){return this.uh};k.Jb=function(){return this.wj};k.getFrameName=function(){return this.td};k.getIframeEl=function(){return this.dl};k.getSiteEl=function(){return this.Kj};k.setSiteEl=function(a){this.Kj=a};k.kc=function(){(0,this.Ua.i._rpcReadyFn)()}; 181k.setParam=function(a,b){this.Ua.value()[a]=b};k.getParam=function(a){return this.Ua.value()[a]};k.wi=function(){return this.Ua.value()};k.getId=function(){return this.Ua.getId()};k.getOrigin=function(){return this.Mb};var Sh=function(a,b){var c=a.td;a=a.Te.getFrameName();return c+":"+a+":"+b};k=J.prototype; 182k.register=function(a,b,c){E(!this.isDisposed(),"Cannot register handler on disposed iframe "+a);E((c||Hg)(this),"Rejecting untrusted message "+a);c=Sh(this,a);pd(Dg,c,[]).push(b)==1&&(this.Fb.push(a),Eh(c,Lg(c,this,a==="_g_wasClosed")))};k.unregister=function(a,b){var c=Sh(this,a),d=Dg[c];d&&(b?(b=rd.call(d,b),b>=0&&d.splice(b,1)):d.splice(0,d.length),d.length==0&&(b=rd.call(this.Fb,a),b>=0&&this.Fb.splice(b,1),delete sh[Ch(c).name]))};k.Lk=function(){return this.Fb}; 183k.applyIframesApi=function(a){this.Zf=this.Zf||[];if(!(rd.call(this.Zf,a)>=0)){this.Zf.push(a);a=Eg[a]||{map:{}};for(var b in a.map)sd(a.map,b)&&this.register(b,a.map[b],a.filter)}};k.getWindow=function(){if(!Hg(this))return null;var a=this.Ua.i._popupWindow;if(a)return a;var b=this.uh.split("/");a=this.getContext().getWindow();for(var c=0;c<b.length&&a;c++){var d=b[c];a=".."===d?a==a.parent?a.opener:a.parent:a.frames[d]}return a}; 184var Th=function(a){var b={};if(a)for(var c in a)sd(a,c)&&sd(Of,c)&&Pf.test(a[c])&&(b[c]=a[c]);return b};k=J.prototype;k.close=function(a,b){return Uh(this,"_g_close",a,b)};k.restyle=function(a,b){return Uh(this,"_g_restyle",a,b)};k.Tl=function(a,b){return Uh(this,"_g_restyleDone",a,b)};k.lk=function(a){return this.getContext().closeSelf(a,void 0,this)};k.Vl=function(a){if(a&&typeof a==="object")return this.getContext().restyleSelf(a,void 0,this)}; 185k.Wl=function(a){var b=this.Ua.i.onRestyle;b&&b.call(this,a,this);a=a&&typeof a==="object"?Th(a):{};(b=this.getIframeEl())&&a&&typeof a==="object"&&(sd(a,"height")&&(a.height=Qf(a.height)),sd(a,"width")&&(a.width=Qf(a.width)),Bd(a,b.style))}; 186k.mk=function(a){var b=this.Ua.i.onClose;b&&b.call(this,a,this);if(b=this.getOptions().i._popupWindow){var c=this.getContext().getWindow().document.getElementById(this.getId());c&&c.parentNode&&c.parentNode.removeChild(c);c=this.getContext().getWindow();Vc&&Ph&&c?(c.focus(),Rh(c,b,0)):(b.close(),Qh(b))}b||(b=this.getIframeEl())&&b.parentNode&&b.parentNode.removeChild(b);if(b=this.Ua.i.controller)c={},c.frameName=this.getFrameName(),Uh(b,"_g_disposeControl",c);b=Sh(this,"_g_wasClosed");Kg(b,a,this)}; 187k.registerWasRestyled=function(a,b){this.register("_g_wasRestyled",a,b)};k.registerWasClosed=function(a,b){this.register("_g_wasClosed",a,b)};k.zm=function(){delete this.getContext().mb[this.getFrameName()];this.getContext().getWindow().setTimeout(v(function(){this.dispose()},this),0)}; 188k.send=function(a,b,c,d){E(!this.isDisposed(),"Cannot send message to disposed iframe - "+a);E((d||Hg)(this),"Wrong target for message "+a);c=new ch(c);a=this.Te.getFrameName()+":"+this.td+":"+a;Hh(this.uh,a,c.resolve,b);return c.promise};var Uh=function(a,b,c,d){return a.send(b,c,d,Ig)};k=J.prototype;k.Jl=function(a){return a};k.ping=function(a,b){return Uh(this,"_g_ping",b,a)}; 189k.rk=function(a){a=a&&typeof a==="object"?a:{};for(var b=a.rpcAddr,c=(this.tb()+"/"+b).split("/"),d=this.getContext().getWindow(),e;(e=c.shift())&&d;)d=e==".."?d.parent:d.frames[e];E(!!d,"Bad rpc address "+b);a._window=d;a._parentRpcAddr=this.tb();a._parentRetAddr=this.Jb();this.getContext();b=new K(a);this.Al&&this.Al(b,a.controllerData);this.qg=this.qg||[];this.qg.push(b,a.controllerData)}; 190k.xk=function(a){a=(a||{}).frameName;for(var b=this.qg||[],c=0;c<b.length;c++)if(b[c].getFrameName()===a){a=b.splice(c,1)[0];a.dispose();this.Bl&&this.Bl(a);return}E(!1,"Unknown contolled iframe to dispose - "+a)}; 191k.nk=function(a){var b=new I(a);a=new Sg(b.value());if(a.i.selfConnect)var c=this;else(E(Qg.test(b.getOrigin()),"Illegal origin for connected iframe - "+b.getOrigin()),c=this.getContext().mb[b.getFrameName()],c)?Ga(b)&&(c.kc(),Uh(c,"_g_rpcReady")):(b=Ug(Xg(Wg(Vg(new I,b.tb()),b.Jb()),b.getOrigin()),b.getFrameName()).kc(Ga(b)).Xc(Ha(b)),c=Vh(this.getContext(),b.value()));b=this.getContext();var d=a.i.role;a=a.i.data;Wh(b);d=d||"";pd(b.og,d,[]).push({jf:c,data:a});Xh(c,a,b.Vg[d])}; 192k.Ej=function(a,b){(new I(b)).i._relayedDepth||(b={},Ia(Ea(new Sg(b),"_opener")),Uh(a,"_g_connect",b))}; 193k.ij=function(a){var b=this,c=a.i.messageHandlers,d=a.i.messageHandlersFilter,e=a.i.onClose;Ta(Sa(Ra(a,null),null),null);return Uh(this,"_g_open",a.value()).then(function(f){var g=new I(f[0]),h=g.getFrameName();f=new I;var l=b.Jb(),m=g.Jb();
193Wg(Vg(f,b.tb()+"/"+g.tb()),m+"/"+l);Ug(f,h);Xg(f,g.getOrigin());f.Be(g.i.apis);f.Xc(Ha(a));Ra(f,c);Sa(f,d);Ta(f,e);(g=b.getContext().mb[h])||(g=Vh(b.getContext(),f.value()));return g})}; 194k.wh=function(a){var b=a.getUrl();E(!b||Od.test(b),"Illegal url for new iframe - "+b);var c=Ua(a).value();b={};for(var d in c)sd(c,d)&&sd(Rg,d)&&(b[d]=c[d]);sd(c,"style")&&(d=c.style,typeof d==="object"&&(b.style=Th(d)));a.value().attributes=b}; 195k.Gl=function(a){a=new I(a);this.wh(a);var b=a.i._relayedDepth||0;a.i._relayedDepth=b+1;a.i.openerIframe=this;var c=Ha(a);a.Xc(null);var d=this;return this.getContext().open(a.value()).then(function(e){var f=(new I(e.wi())).i.apis,g=new I;$g(e,d,g);b==0&&Ea(new Sg(g.value()),"_opener");g.kc(!0);g.Xc(c);Uh(e,"_g_connect",g.value());g=new I;Xg(Ug(Wg(Vg(g,e.tb()),e.wj),e.getFrameName()),e.getOrigin()).Be(f);return g.value()})}; 196k.Ul=function(a){this.getContext().addOnOpenerHandler(function(b){b.send("_g_wasRestyled",a,void 0,Ig)},null,Ig)};var Yh=Ad(),Zh=Ad(),$h=function(a,b){Yh[a]=b},ai=function(a){return Yh[a]},bi=function(a,b){Cd.load("gapi.iframes.style."+a,b)},ci=function(a,b){Zh[a]=b},di=function(a){return Zh[a]};var ei=function(){function a(h,l){h=window.getComputedStyle(h,"").getPropertyValue(l).match(/^([0-9]+)/);return parseInt(h[0],10)}for(var b=0,c=[document.body];c.length>0;){var d=c.shift(),e=d.childNodes;if(typeof d.style!=="undefined"){var f=d.style.overflowY;f||(f=(f=document.defaultView.getComputedStyle(d,null))?f.overflowY:null);if(f!="visible"&&f!="inherit"&&(f=d.style.height,f||(f=(f=document.defaultView.getComputedStyle(d,null))?f.height:""),f.length>0&&f!="auto"))continue}for(d=0;d<e.length;d++){f= 197e[d];if(typeof f.offsetTop!=="undefined"&&typeof f.offsetHeight!=="undefined"){var g=f.offsetTop+f.offsetHeight+a(f,"margin-bottom");b=Math.max(b,g)}c.push(f)}}return b+a(document.body,"border-bottom")+a(document.body,"margin-bottom")+a(document.body,"padding-bottom")},fi=function(){var a=0;self.innerHeight?a=self.innerHeight:document.documentElement&&document.documentElement.clientHeight?a=document.documentElement.clientHeight:document.body&&(a=document.body.clientHeight);var b=document.body,c=document.documentElement; 198if(document.compatMode==="CSS1Compat"&&c.scrollHeight)return c.scrollHeight!==a?c.scrollHeight:c.offsetHeight;if(navigator.userAgent.indexOf("AppleWebKit")>=0)return ei();if(b&&c){var d=c.scrollHeight,e=c.offsetHeight;c.clientHeight!==e&&(d=b.scrollHeight,e=b.offsetHeight);return d>a?d>e?d:e:d<e?d:e}};var K=function(a){a=a||{};this.Gb=!1;this.Ba=Ad();this.mb=Ad();this.Ab=a._window||D;this.lb=this.Ab.location.href;this.kj=(this.ah=gi(this.lb,"parent"))?gi(this.lb,"pfname"):"";this.Ra=this.ah?gi(this.lb,"_gfid")||gi(this.lb,"id"):"";this.td=cf(this.Ra,this.kj);this.Mb=wf(this.lb);if(this.Ra){var b=new I;Vg(b,a._parentRpcAddr||"..");Wg(b,a._parentRetAddr||this.Ra);Xg(b,wf(this.ah||this.lb));Ug(b,this.kj);this.Ja=Vh(this,b.value())}else this.Ja=null};k=K.prototype;k.isDisposed=function(){return this.Gb}; 199k.dispose=function(){if(!this.isDisposed()){for(var a=la(Object.values(this.mb)),b=a.next();!b.done;b=a.next())b.value.dispose();this.Gb=!0}};k.getFrameName=function(){return this.td};k.getOrigin=function(){return this.Mb};k.getWindow=function(){return this.Ab};k.setGlobalParam=function(a,b){this.Ba[a]=b};k.getGlobalParam=function(a){return this.Ba[a]}; 200var Vh=function(a,b){E(!a.isDisposed(),"Cannot attach iframe in disposed context");b=new I(b);b.tb()||Vg(b,b.getId());b.Jb()||Wg(b,"..");b.getOrigin()||Xg(b,wf(b.getUrl()));b.getFrameName()||Ug(b,cf(b.getId(),a.td));var c=b.getFrameName();if(a.mb[c])return a.mb[c];var d=b.tb(),e=d;b.getOrigin()&&(e=d+"|"+b.getOrigin());var f=b.Jb(),g=Ha(b);g||(g=(g=b.getIframeEl())&&(g.getAttribute("data-postorigin")||g.src)||b.getUrl(),g=Dd(g,"rpctoken"));Zg(b,Oh(e,f,g,b.i._popupWindow));e=((window.gadgets||{}).rpc|| 201{}).setAuthToken;g&&e&&e(d,g);var h=new J(a,d,c,b),l=b.i.messageHandlersFilter;td(b.i.messageHandlers,function(m,p){h.register(p,m,l)});Ga(b)&&h.kc();Uh(h,"_g_rpcReady");return h};K.prototype.wh=function(a){Ug(a,null);var b=a.getId();!b||Gg.test(b)&&!this.getWindow().document.getElementById(b)||(eh.log("Ignoring requested iframe ID - "+b),a.i.id=null)};var gi=function(a,b){var c=Dd(a,b);
201c||(c=De(Dd(a,"jcp",""))[b]);return c||""}; 202K.prototype.openChild=function(a){E(!this.isDisposed(),"Cannot open iframe in disposed context");var b=new I(a);hi(this,b);var c=b.getFrameName();if(c&&this.mb[c])return this.mb[c];this.wh(b);c=b.getUrl();E(c,"No url for new iframe");var d=b.i.queryParams||{};d.usegapi="1";b.i.queryParams=d;d=this.Bi&&this.Bi(c,b);d||(d=b.i.where,E(!!d,"No location for new iframe"),c=lf(c,d,a),b.i.iframeEl=c,d=c.getAttribute("id"));Vg(b,d).i.id=d;Xg(b,wf(b.i.eurl||""));this.Si&&this.Si(b,b.getIframeEl());c=Vh(this, 203a);c.Ej&&c.Ej(c,a);(a=b.i.onCreate)&&a(c);b.i.disableRelayOpen||c.applyIframesApi("_open");return c}; 204var ii=function(a,b,c){var d=b.i.canvasUrl;if(!d)return c;E(!b.i.allowPost&&!b.i.forcePost,"Post is not supported when using canvas url");var e=b.getUrl();E(e&&wf(e)===a.Mb&&wf(d)===a.Mb,"Wrong origin for canvas or hidden url "+d);b.setUrl(d);b.i.waitForOnload=!0;b.i.canvasUrl=null;return function(f){var g=f.getWindow(),h=g.location.hash;h=kf(e)+(/#/.test(e)?h.replace(/^#/,"&"):h);g.location.replace(h);c&&c(f)}},ji=function(a,b,c){var d=b.i.relayOpen;if(d){var e=a.getParentIframe();d instanceof J? 205(e=d,b.i.relayOpen=0):Number(d)>0&&(b.i.relayOpen=Number(d)-1);if(e){E(!!e.ij,"Relaying iframe open is disabled");if(d=b.getStyle())if(d=Zh[d])Yg(b,a),d(b.value()),Yg(b,null);b.i.openerIframe=null;c.resolve(e.ij(b));return!0}}return!1},ki=function(a,b,c){var d=b.getStyle();if(d)if(E(!!ai,"Defer style is disabled, when requesting style "+d),Yh[d])hi(a,b);else return bi(d,function(){E(!!Yh[d],"Fail to load style - "+d);c.resolve(a.open(b.value()))}),!0;return!1}; 206K.prototype.open=function(a,b){E(!this.isDisposed(),"Cannot open iframe in disposed context");var c=new I(a);b=ii(this,c,b);var d=new ch(b);(b=c.getUrl())&&c.setUrl(kf(b));if(ji(this,c,d)||ki(this,c,d)||ji(this,c,d))return d.promise;if(Wa(c)!=null){var e=setTimeout(function(){g.getIframeEl().src="about:blank";d.reject(Error("Exceeded time limit of: "+Wa(c)+" milliseconds"))},Wa(c)),f=d.resolve;d.resolve=function(h){clearTimeout(e);f(h)}}c.i.waitForOnload&&Ka(Ua(c),function(){d.resolve(g)});var g= 207this.openChild(a);c.i.waitForOnload||d.resolve(g);return d.promise};K.prototype.getParentIframe=function(){return this.Ja};var li=function(a,b){var c=a.getParentIframe(),d=!0;b.filter&&(d=b.filter.call(b.jf,b.params));return G(d).then(function(e){return e&&c?(b.jj&&b.jj.call(a,b.params),e=b.sender?b.sender(b.params):Uh(c,b.message,b.params),b.ym?e.then(function(){return!0}):!0):!1})};k=K.prototype; 208k.closeSelf=function(a,b,c){a=li(this,{sender:function(d){var e=Fg.getParentIframe();td(Fg.mb,function(f){f!==e&&Uh(f,"_g_wasClosed",d)});return Uh(e,"_g_closeMe",d)},message:"_g_closeMe",params:a,jf:c,filter:this.getGlobalParam("onCloseSelfFilter")});b=new ch(b);b.resolve(a);return b.promise};k.restyleSelf=function(a,b,c){a=a||{};b=new ch(b);b.resolve(li(this,{message:"_g_restyleMe",params:a,jf:c,filter:this.getGlobalParam("onRestyleSelfFilter"),ym:!0,jj:this.Qj}));return b.promise}; 209k.Qj=function(a){a.height==="auto"&&(a.height=fi())};k.setCloseSelfFilter=function(a){this.setGlobalParam("onCloseSelfFilter",a)};k.setRestyleSelfFilter=function(a){this.setGlobalParam("onRestyleSelfFilter",a)};var hi=function(a,b){var c=b.getStyle();if(c){b.Fj(null);var d=Yh[c];E(d,"No such style: "+c);Yg(b,a);d(b.value());Yg(b,null)}}; 210K.prototype.ready=function(a,b,c,d){var e=b||{},f=this.getParentIframe();this.addOnOpenerHandler(function(h){td(e,function(l,m){h.register(m,l,d)},this);h!==f&&h.send("_ready",g,void 0,d)},void 0,d);var g=a||{};g.height=g.height||"auto";this.Qj(g);f&&f.send("_ready",g,c,Ig)}; 211K.prototype.connectIframes=function(a,b){a=new Sg(a);var c=new Sg(b),d=Ga(a);b=a.getIframe();var e=c.getIframe();if(e){var f=Ha(a),g=new I;$g(b,e,g);Fa(Ea((new Sg(g.value())).Xc(f),a.i.role),a.i.data).kc(d);var h=new I;$g(e,b,h);Fa(Ea((new Sg(h.value())).Xc(f),c.i.role),c.i.data).kc(!0);Uh(b,"_g_connect",g.value(),function(){d||Uh(e,"_g_connect",h.value())});d&&Uh(e,"_g_connect",h.value())}else c={},Fa(Ea(Ia(new Sg(c)),a.i.role),a.i.data),Uh(b,"_g_connect",c)}; 212var Wh=function(a){a.og||(a.og=Ad(),a.Vg=Ad())};K.prototype.addOnConnectHandler=function(a,b,c,d){Wh(this);typeof a==="object"?(b=new Ma(a),c=b.i.role||""):(b=Pa(Oa(Na(a),b).Be(c),d),c=a);d=this.og[c]||[];a=!1;for(var e=0;e<d.length&&!a;e++)Xh(this.mb[d[e].jf.getFrameName()],d[e].data,[b]),a=b.i.runOnce;c=pd(this.Vg,c,[]);a||b.i.dontWait||c.push(b)}; 213K.prototype.removeOnConnectHandler=function(a,b){a=pd(this.Vg,a,[]);if(b)for(var c=!1,d=0;!c&&d<a.length;d++)a[d].i.handler===b&&(c=!0,a.splice(d,1));else a.splice(0,a.length)};var Xh=function(a,b,c){c=c||[];for(var d=0;d<c.length;d++){var e=c[d];if(e&&a){var f=e.i.filter||Hg;if(a&&f(a)){f=e.i.apis||[];for(var g=0;g<f.length;g++)a.applyIframesApi(f[g]);e.i.handler&&(0,e.i.handler)(a,b);e.i.runOnce&&(c.splice(d,1),--d)}}}}; 214K.prototype.addOnOpenerHandler=function(a,b,c){var d=this.addOnConnectHandler;a=Pa(Oa(Na("_opener"),a).Be(b),c);a.i.runOnce=!0;d.call(this,a.value())};K.prototype.Si=function(a,b){var c=a.i.controller;if(c){E(c.Mb===a.getOrigin(),"Wrong controller origin "+this.Mb+" !== "+a.getOrigin());var d=a.tb();Vg(a,c.tb());Wg(a,c.Jb());var e=new I;Va(Vg(e,d),a.i.controllerData);Qd(b,"load",function(){c.send("_g_control",e.value())})}}; 215var mi=function(a,b,c){a=a.getWindow();var d=a.document,e=c.i.reuseWindow;if(e){var f=c.getId();if(!f)throw Error("If you provide a reuseWindow, you must also provide an ID");}else f=bf(d,c);var g=f,h=c.i.rpcRelayUrl;if(h){h=Nd(nd,h.replace(hf,jf));
215g=c.i.fragmentParams||{};g.rly=f;c.i.fragmentParams=g;g=c.i.where||d.body;E(!!g,"Cannot open window in a page with no body");var l={};l.src=h;l.style="display:none;";l.id=f;l.name=f;ff(d,g,l,f);g=f+"_relay"}b=kf(b);var m=df(d,b,f,c.value());c.i.eurl=m; 216b=c.i.openAsWindow;typeof b!=="string"&&(b=void 0);c=window.navigator.userAgent||"";/Trident|MSIE/i.test(c)&&/#/.test(c)&&(m="javascript:window.location.replace("+D.JSON.stringify(m).replace(/#/g,"\\x23")+")");if(e){var p=e;setTimeout(function(){p.location.replace(m)})}else p=nc(a,m,g,b);return{id:f,Wj:p}};K.prototype.Bi=function(a,b){if(b.i.openAsWindow){a=mi(this,a,b);var c=a.id;E(!!a.Wj,"Open popup window failed");b.i._popupWindow=a.Wj}return c};Dg=Ad();Eg=Ad();Fg=new K;Og("_g_rpcReady",J.prototype.kc);Og("_g_discover",J.prototype.Lk);Og("_g_ping",J.prototype.Jl);Og("_g_close",J.prototype.lk);Og("_g_closeMe",J.prototype.mk);Og("_g_restyle",J.prototype.Vl);Og("_g_restyleMe",J.prototype.Wl);Og("_g_wasClosed",J.prototype.zm);Ng("control","_g_control",J.prototype.rk);Ng("control","_g_disposeControl",J.prototype.xk);var ni=Fg.getParentIframe();ni&&ni.register("_g_restyleDone",J.prototype.Ul,Ig);Og("_g_connect",J.prototype.nk);var oi={}; 217oi._g_open=J.prototype.Gl;Mg("_open",oi,Ig);var pi={Context:K,Iframe:J,SAME_ORIGIN_IFRAMES_FILTER:Hg,CROSS_ORIGIN_IFRAMES_FILTER:Ig,makeWhiteListIframesFilter:Jg,getContext:Pg,registerIframesApi:Mg,registerIframesApiHandler:Ng,registerStyle:$h,registerBeforeOpenStyle:ci,getStyle:ai,getBeforeOpenStyle:di,create:lf};Nf({instance:function(){return pi},priority:2});Ng("gapi.load","_g_gapi.load",function(a){return new F(function(b){Cd.load(a&&typeof a==="object"&&a.features||"",b)})});t("gapi.iframes.registerStyle",$h);t("gapi.iframes.registerBeforeOpenStyle",ci);t("gapi.iframes.getStyle",ai);t("gapi.iframes.getBeforeOpenStyle",di);t("gapi.iframes.registerIframesApi",Mg);t("gapi.iframes.registerIframesApiHandler",Ng);t("gapi.iframes.getContext",Pg);t("gapi.iframes.SAME_ORIGIN_IFRAMES_FILTER",Hg);t("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER",Ig);t("gapi.iframes.makeWhiteListIframesFilter",Jg);t("gapi.iframes.Context",K);t("gapi.iframes.Context.prototype.isDisposed",K.prototype.isDisposed); 218t("gapi.iframes.Context.prototype.getWindow",K.prototype.getWindow);t("gapi.iframes.Context.prototype.getFrameName",K.prototype.getFrameName);t("gapi.iframes.Context.prototype.getGlobalParam",K.prototype.getGlobalParam);t("gapi.iframes.Context.prototype.setGlobalParam",K.prototype.setGlobalParam);t("gapi.iframes.Context.prototype.open",K.prototype.open);t("gapi.iframes.Context.prototype.openChild",K.prototype.openChild);t("gapi.iframes.Context.prototype.getParentIframe",K.prototype.getParentIframe); 219t("gapi.iframes.Context.prototype.closeSelf",K.prototype.closeSelf);t("gapi.iframes.Context.prototype.restyleSelf",K.prototype.restyleSelf);t("gapi.iframes.Context.prototype.setCloseSelfFilter",K.prototype.setCloseSelfFilter);t("gapi.iframes.Context.prototype.setRestyleSelfFilter",K.prototype.setRestyleSelfFilter);t("gapi.iframes.Context.prototype.addOnConnectHandler",K.prototype.addOnConnectHandler);t("gapi.iframes.Context.prototype.removeOnConnectHandler",K.prototype.removeOnConnectHandler); 220t("gapi.iframes.Context.prototype.addOnOpenerHandler",K.prototype.addOnOpenerHandler);t("gapi.iframes.Context.prototype.connectIframes",K.prototype.connectIframes);t("gapi.iframes.Iframe",J);t("gapi.iframes.Iframe.prototype.isDisposed",J.prototype.isDisposed);t("gapi.iframes.Iframe.prototype.getContext",J.prototype.getContext);t("gapi.iframes.Iframe.prototype.getFrameName",J.prototype.getFrameName);t("gapi.iframes.Iframe.prototype.getId",J.prototype.getId); 221t("gapi.iframes.Iframe.prototype.register",J.prototype.register);t("gapi.iframes.Iframe.prototype.unregister",J.prototype.unregister);t("gapi.iframes.Iframe.prototype.send",J.prototype.send);t("gapi.iframes.Iframe.prototype.applyIframesApi",J.prototype.applyIframesApi);t("gapi.iframes.Iframe.prototype.getIframeEl",J.prototype.getIframeEl);t("gapi.iframes.Iframe.prototype.getSiteEl",J.prototype.getSiteEl);t("gapi.iframes.Iframe.prototype.setSiteEl",J.prototype.setSiteEl); 222t("gapi.iframes.Iframe.prototype.getWindow",J.prototype.getWindow);t("gapi.iframes.Iframe.prototype.getOrigin",J.prototype.getOrigin);t("gapi.iframes.Iframe.prototype.close",J.prototype.close);t("gapi.iframes.Iframe.prototype.restyle",J.prototype.restyle);t("gapi.iframes.Iframe.prototype.restyleDone",J.prototype.Tl);t("gapi.iframes.Iframe.prototype.registerWasRestyled",J.prototype.registerWasRestyled);t("gapi.iframes.Iframe.prototype.registerWasClosed",J.prototype.registerWasClosed); 223t("gapi.iframes.Iframe.prototype.getParam",J.prototype.getParam);t("gapi.iframes.Iframe.prototype.setParam",J.prototype.setParam);t("gapi.iframes.Iframe.prototype.ping",J.prototype.ping);t("gapi.iframes.Iframe.prototype.getOpenParams",J.prototype.wi);t("gapi.iframes.create",lf);function qi(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")};var ri=null;function si(a){var b=[];ti(a,function(c){b.push(c)});return b}function ti(a,b){function c(l){for(;d<a.length;){var m=a.charAt(d++),p=ri[m];if(p!=null)return p;if(!/^[\s\xa0]*$/.test(m))throw Error("Unknown base64 encoding at char: "+m);}return l}ui();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),h=c(64);if(h===64&&e===-1)break;b(e<<2|f>>4);g!=64&&(b(f<<4&240|g>>
2232),h!=64&&b(g<<6&192|h))}} 224function ui(){if(!ri){ri={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++)for(var d=a.concat(b[c].split("")),e=0;e<d.length;e++){var f=d[e],g=ri[f];g===void 0?ri[f]=e:y(g===e)}}};function vi(a,b){this.blockSize=-1;this.blockSize=64;this.Se=r.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.mc=this.vd=0;this.oa=[];this.yl=a;this.Ji=b;this.xm=r.Int32Array?new Int32Array(64):Array(64);wi===void 0&&(wi=r.Int32Array?new Int32Array(xi):xi);this.reset()}w(vi,Ie);for(var yi=[],zi=0;zi<63;zi++)yi[zi]=0;var Ai=[].concat(128,yi);vi.prototype.reset=function(){this.mc=this.vd=0;this.oa=r.Int32Array?new Int32Array(this.Ji):Yb(this.Ji)}; 225var Bi=function(a){var b=a.Se;y(b.length==a.blockSize);for(var c=a.xm,d=0,e=0;e<b.length;)c[d++]=b[e]<<24|b[e+1]<<16|b[e+2]<<8|b[e+3],e=d*4;for(b=16;b<64;b++)d=c[b-15]|0,e=c[b-2]|0,c[b]=((c[b-16]|0)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)|0)+((c[b-7]|0)+((e>>>17|e<<15
225)^(e>>>19|e<<13)^e>>>10)|0)|0;b=a.oa[0]|0;d=a.oa[1]|0;e=a.oa[2]|0;for(var f=a.oa[3]|0,g=a.oa[4]|0,h=a.oa[5]|0,l=a.oa[6]|0,m=a.oa[7]|0,p=0;p<64;p++){var x=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&d^b&e^d&e)|0,A=(m+((g>>>6|g<<26)^ 226(g>>>11|g<<21)^(g>>>25|g<<7))|0)+(((g&h^~g&l)+(wi[p]|0)|0)+(c[p]|0)|0)|0;m=l;l=h;h=g;g=f+A|0;f=e;e=d;d=b;b=A+x|0}a.oa[0]=a.oa[0]+b|0;a.oa[1]=a.oa[1]+d|0;a.oa[2]=a.oa[2]+e|0;a.oa[3]=a.oa[3]+f|0;a.oa[4]=a.oa[4]+g|0;a.oa[5]=a.oa[5]+h|0;a.oa[6]=a.oa[6]+l|0;a.oa[7]=a.oa[7]+m|0}; 227vi.prototype.update=function(a,b){b===void 0&&(b=a.length);var c=0,d=this.vd;if(typeof a==="string")for(;c<b;)this.Se[d++]=a.charCodeAt(c++),d==this.blockSize&&(Bi(this),d=0);else if(xa(a))for(;c<b;){var e=a[c++];if(!("number"==typeof e&&0<=e&&255>=e&&e==(e|0)))throw Error("message must be a byte array");this.Se[d++]=e;d==this.blockSize&&(Bi(this),d=0)}else throw Error("message must be string or array");this.vd=d;this.mc+=b}; 228vi.prototype.digest=function(){var a=[],b=this.mc*8;this.vd<56?this.update(Ai,56-this.vd):this.update(Ai,this.blockSize-(this.vd-56));for(var c=63;c>=56;c--)this.Se[c]=b&255,b/=256;Bi(this);for(c=b=0;c<this.yl;c++)for(var d=24;d>=0;d-=8)a[b++]=this.oa[c]>>d&255;return a}; 229var xi=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804, 2304094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],wi;function Ci(){vi.call(this,8,Di)}w(Ci,vi);var Di=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Ei(){this.Gb=this.Gb;this.zf=this.zf}Ei.prototype.Gb=!1;Ei.prototype.isDisposed=function(){return this.Gb};Ei.prototype.dispose=function(){this.Gb||(this.Gb=!0,this.Yd())};Ei.prototype[Symbol.dispose]=function(){this.dispose()};Ei.prototype.Yd=function(){if(this.zf)for(;this.zf.length;)this.zf.shift()()};var Fi=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.ve=!1};Fi.prototype.stopPropagation=function(){this.ve=!0};Fi.prototype.preventDefault=function(){this.defaultPrevented=!0};function Gi(a,b){Fi.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.ab=null;a&&this.init(a,b)}w(Gi,Fi); 231Gi.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=Uc||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY= 232Uc||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.timeStamp= 233a.timeStamp;this.ab=a;a.defaultPrevented&&Gi.Md.preventDefault.call(this)};Gi.prototype.stopPropagation=function(){Gi.Md.stopPropagation.call(this);this.ab.stopPropagation?this.ab.stopPropagation():this.ab.cancelBubble=!0};Gi.prototype.preventDefault=function(){Gi.Md.preventDefault.call(this);var a=this.ab;a.preventDefault?a.preventDefault():a.returnValue=!1};Gi.prototype.Ik=function(){return this.ab};var Hi="closure_listenable_"+(Math.random()*1E6|0);var Ii=0;function Ji(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=e;this.key=++Ii;this.ze=this.Pe=!1}var Ki=function(a){a.ze=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};function Li(a){this.src=a;this.Sa={};this.Ie=0}Li.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.Sa[f];a||(a=this.Sa[f]=[],this.Ie++);var g=Mi(a,b,d,e);g>-1?(b=a[g],c||(b.Pe=!1)):(b=new Ji(b,this.src,f,!!d,e),b.Pe=c,a.push(b));return b};Li.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.Sa))return!1;var e=this.Sa[a];b=Mi(e,b,c,d);return b>-1?(Ki(e[b]),Wb(e,b),e.length==0&&(delete this.Sa[a],this.Ie--),!0):!1}; 234var Ni=function(a,b){var c=b.type;c in a.Sa&&Vb(a.Sa[c],b)&&(Ki(b),a.Sa[c].length==0&&(delete a.Sa[c],a.Ie--))};Li.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.Sa)if(!a||c==a){for(var d=this.Sa[c],e=0;e<d.length;e++)++b,Ki(d[e]);delete this.Sa[c];this.Ie--}return b};Li.prototype.Eg=function(a,b,c,d){a=this.Sa[a.toString()];var e=-1;a&&(e=Mi(a,b,c,d));return e>-1?a[e]:null}; 235Li.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return ac(this.Sa,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};var Mi=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ze&&f.listener==b&&f.capture==!!c&&f.handler==d)return e}return-1};var Oi="closure_lm_"+(Math.random()*1E6|0),Pi={},Qi=0,Si=function(a,b,c,d,e){if(d&&d.once)Ri(a,b,c,d,e);else if(Array.isArray(b))for(var f=0;f<b.length;f++)Si(a,b[f],c,d,e);else c=Ti(c),a&&a[Hi]?a.listen(b,c,u(d)?!!d.capture:!!d,e):Ui(a,b,c,!1,d,e)},Ui=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=u(e)?!!e.capture:!!e,h=Vi(a);h||(a[Oi]=h=new Li(a));c=h.add(b,c,d,g,f);if(!c.proxy){d=Wi();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)He||(e=g),e===void 0&&(e=!1),a.addEventListener(b.toString(), 236d,e);else if(a.attachEvent)a.attachEvent(Xi(b.toString()),d);else if(a.addListener&&a.removeListener)y(b==="change","MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Qi++}},Wi=function(){var a=Yi,b=function(c){return a.call(b.src,b.listener,c)};return b},Ri=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Ri(a,b[f],c,d,e);else c=Ti(c),a&&a[Hi]?Zi(a,b,c,u(d)?!!d.capture:!!d,e):Ui(a,b,c,!0,d,e)},$i=function(a, 237b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)$i(a,b[f],c,d,e);else d=u(d)?!!d.capture:!!d,c=Ti(c),a&&a[Hi]?a.Ib.remove(String(b),c,d,e):a&&(a=Vi(a))&&(b=a.Eg(b,c,d,e))&&aj(b)}
237,aj=function(a){if(typeof a!=="number"&&a&&!a.ze){var b=a.src;if(b&&b[Hi])Ni(b.Ib,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Xi(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Qi--;(c=Vi(b))?(Ni(c,a),c.Ie==0&&(c.src=null,b[Oi]=null)): 238Ki(a)}}},Xi=function(a){return a in Pi?Pi[a]:Pi[a]="on"+a},Yi=function(a,b){if(a.ze)a=!0;else{b=new Gi(b,this);var c=a.listener,d=a.handler||a.src;a.Pe&&aj(a);a=c.call(d,b)}return a},Vi=function(a){a=a[Oi];return a instanceof Li?a:null},bj="__closure_events_fn_"+(Math.random()*1E9>>>0),Ti=function(a){y(a,"Listener can not be null.");if(typeof a==="function")return a;y(a.handleEvent,"An object listener must have handleEvent method.");a[bj]||(a[bj]=function(b){return a.handleEvent(b)});return a[bj]};function cj(){Ei.call(this);this.Ib=new Li(this);this.dk=this;this.Zg=null}w(cj,Ei);cj.prototype[Hi]=!0;k=cj.prototype;k.addEventListener=function(a,b,c,d){Si(this,a,b,c,d)};k.removeEventListener=function(a,b,c,d){$i(this,a,b,c,d)}; 239k.dispatchEvent=function(a){dj(this);var b=this.Zg;if(b){var c=[];for(var d=1;b;b=b.Zg)c.push(b),y(++d<1E3,"infinite loop")}b=this.dk;d=a.type||a;if(typeof a==="string")a=new Fi(a,b);else if(a instanceof Fi)a.target=a.target||b;else{var e=a;a=new Fi(d,b);ec(a,e)}e=!0;var f;if(c)for(f=c.length-1;!a.ve&&f>=0;f--){var g=a.currentTarget=c[f];e=ej(g,d,!0,a)&&e}a.ve||(g=a.currentTarget=b,e=ej(g,d,!0,a)&&e,a.ve||(e=ej(g,d,!1,a)&&e));if(c)for(f=0;!a.ve&&f<c.length;f++)g=a.currentTarget=c[f],e=ej(g,d,!1,a)&& 240e;return e};k.Yd=function(){cj.Md.Yd.call(this);this.Ib&&this.Ib.removeAll(void 0);this.Zg=null};k.listen=function(a,b,c,d){dj(this);return this.Ib.add(String(a),b,!1,c,d)};var Zi=function(a,b,c,d,e){a.Ib.add(String(b),c,!0,d,e)},ej=function(a,b,c,d){b=a.Ib.Sa[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.ze&&g.capture==c){var h=g.listener,l=g.handler||g.src;g.Pe&&Ni(a.Ib,g);e=h.call(l,d)!==!1&&e}}return e&&!d.defaultPrevented}; 241cj.prototype.Eg=function(a,b,c,d){return this.Ib.Eg(String(a),b,c,d)};cj.prototype.hasListener=function(a,b){return this.Ib.hasListener(a!==void 0?String(a):void 0,b)};var dj=function(a){y(a.Ib,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};function fj(){};var gj,hj=function(){};w(hj,fj);hj.prototype.Vd=function(){return new XMLHttpRequest};gj=new hj;function ij(){}w(ij,fj);ij.prototype.Vd=function(){var a=new XMLHttpRequest;if("withCredentials"in a)return a;if(typeof XDomainRequest!="undefined")return new jj;throw Error("Unsupported browser");}; 242var jj=function(){this.Ub=new XDomainRequest;this.readyState=0;this.onreadystatechange=null;this.responseURL=this.responseType=this.responseText=this.response="";this.status=-1;this.responseXML=null;this.statusText="";this.Ub.onload=v(this.Pk,this);this.Ub.onerror=v(this.Ai,this);this.Ub.onprogress=v(this.Rk,this);this.Ub.ontimeout=v(this.Vk,this)};k=jj.prototype;k.open=function(a,b,c){if(c!=null&&!c)throw Error("Only async requests are supported.");this.Ub.open(a,b)}; 243k.send=function(a){if(a)if(typeof a=="string")this.Ub.send(a);else throw Error("Only string data is supported");else this.Ub.send()};k.abort=function(){this.Ub.abort()};k.setRequestHeader=function(){};k.getResponseHeader=function(a){return a.toLowerCase()=="content-type"?this.Ub.contentType:""};k.Pk=function(){this.status=200;this.response=this.responseText=this.Ub.responseText;kj(this,4)};k.Ai=function(){this.status=500;this.response=this.responseText="";kj(this,4)};k.Vk=function(){this.Ai()}; 244k.Rk=function(){this.status=200;kj(this,1)};var kj=function(a,b){a.readyState=b;if(a.onreadystatechange)a.onreadystatechange()};jj.prototype.getAllResponseHeaders=function(){return"content-type: "+this.Ub.contentType};var lj=function(a){this.Le=a.Am||null;this.De=a.Tm||!1;this.jd=this.Jc=void 0};w(lj,fj);lj.prototype.Vd=function(){var a=new mj(this.Le,this.De);this.Jc&&a.zh(this.Jc);this.jd&&a.Dj(this.jd);return a};lj.prototype.zh=function(a){this.Jc=a};lj.prototype.Dj=function(a){this.jd=a}; 245var mj=function(a,b){cj.call(this);this.Le=a;this.De=b;this.jd=this.Jc=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.th=new Headers;this.Jd=null;this.Ui="GET";this.lb="";this.Wb=!1;this.Kh=this.Wd=this.Xe=null;this.Xf=new AbortController};w(mj,cj); 246mj.prototype.open=function(a,b,c){y(!!c,"Only async requests are supported.");
246if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Ui=a;this.lb=b;this.readyState=1;nj(this)}; 247mj.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.Xf.signal.aborted)throw this.abort(),Error("Request was aborted.");this.Wb=!0;var b={headers:this.th,method:this.Ui,credentials:this.Jc,cache:this.jd,signal:this.Xf.signal};a&&(b.body=a);(this.Le||r).fetch(new Request(this.lb,b)).then(this.Uk.bind(this),this.df.bind(this))}; 248mj.prototype.abort=function(){var a=this;this.response=this.responseText="";this.th=new Headers;this.status=0;this.Xf.abort("Request was aborted.");this.Wd&&this.Wd.cancel("Request was aborted.").catch(function(b){var c=a.Ga;c&&Ec(c,sc,"Fetch reader cancellation error.",b)});this.readyState>=1&&this.Wb&&this.readyState!=4&&(this.Wb=!1,oj(this));this.readyState=0}; 249mj.prototype.Uk=function(a){if(this.Wb&&(this.Xe=a,this.Jd||(this.status=this.Xe.status,this.statusText=this.Xe.statusText,this.Jd=a.headers,this.readyState=2,nj(this)),this.Wb&&(this.readyState=3,nj(this),this.Wb)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.Sk.bind(this),this.df.bind(this));else if(typeof r.ReadableStream!=="undefined"&&"body"in a){this.Wd=a.body.getReader();if(this.De){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); 250this.response=[]}else this.response=this.responseText="",this.Kh=new TextDecoder;pj(this)}else a.text().then(this.Tk.bind(this),this.df.bind(this))};var pj=function(a){a.Wd.read().then(a.Nk.bind(a)).catch(a.df.bind(a))};mj.prototype.Nk=function(a){if(this.Wb){if(this.De&&a.value)this.response.push(a.value);else if(!this.De){var b=a.value?a.value:new Uint8Array(0);if(b=this.Kh.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?oj(this):nj(this);this.readyState==3&&pj(this)}}; 251mj.prototype.Tk=function(a){this.Wb&&(this.response=this.responseText=a,oj(this))};mj.prototype.Sk=function(a){this.Wb&&(this.response=a,oj(this))};mj.prototype.df=function(a){var b=this.Ga;b&&Ec(b,sc,"Failed to fetch url "+this.lb,a instanceof Error?a:Error(a));this.Wb&&oj(this)};var oj=function(a){a.readyState=4;a.Xe=null;a.Wd=null;a.Kh=null;nj(a)};k=mj.prototype;k.setRequestHeader=function(a,b){this.th.append(a,b)}; 252k.getResponseHeader=function(a){return this.Jd?this.Jd.get(a.toLowerCase())||"":((a=this.Ga)&&Ec(a,sc,"Attempting to get response header but no headers have been received for url: "+this.lb),"")};k.getAllResponseHeaders=function(){if(!this.Jd){var a=this.Ga;a&&Ec(a,sc,"Attempting to get all response headers but no headers have been received for url: "+this.lb);return""}a=[];for(var b=this.Jd.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")}; 253k.zh=function(a){this.Jc=a};k.Dj=function(a){this.jd=a};var nj=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};Object.defineProperty(mj.prototype,"withCredentials",{get:function(){return this.Jc==="include"},set:function(a){this.zh(a?"include":"same-origin")}});/* 254 255 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved. 256 Copyright The Closure Library Authors. 257 SPDX-License-Identifier: MIT 258*/ 259function qj(a,b){this.Of=[];this.Xi=a;this.ei=b||null;this.fe=this.rd=!1;this.Wa=void 0;this.Gh=this.Th=this.ig=!1;this.Uf=0;this.Ja=null;this.jg=0}qj.prototype.cancel=function(a){if(this.rd)this.Wa instanceof qj&&this.Wa.cancel();else{if(this.Ja){var b=this.Ja;delete this.Ja;a?b.cancel(a):(b.jg--,b.jg<=0&&b.cancel())}this.Xi?this.Xi.call(this.ei,this):this.Gh=!0;this.rd||rj(this,new sj(this))}};qj.prototype.Zh=function(a,b){this.ig=!1;tj(this,a,b)}; 260var tj=function(a,b,c){a.rd=!0;a.Wa=c;a.fe=!b;uj(a)},wj=function(a){if(a.rd){if(!a.Gh)throw new vj(a);a.Gh=!1}};qj.prototype.callback=function(a){wj(this);xj(a);tj(this,!0,a)};var rj=function(a,b){wj(a);xj(b);tj(a,!1,b)},xj=function(a){y(!(a instanceof qj),"An execution sequence may not be initiated with a blocking Deferred.")};qj.prototype.addCallback=function(a,b){return yj(this,a,null,b)};var zj=function(a,b){yj(a,null,b)}; 261qj.prototype.finally=function(a){var b=this;return Aj(new Promise(function(c,d){yj(b,function(e){a();c(e)},function(e){a();d(e)})}))};var yj=function(a,b,c,d){y(!a.Th,"Blocking Deferreds can not be re-used");var e=a.rd;e||(b===c?b=c=Rf(b):(b=Rf(b),c=Rf(c)));a.Of.push([b,c,d]);e&&uj(a);return a};qj.prototype.then=function(a,b,c){var d,e,f=new F(function(g,h){e=g;d=h});yj(this,e,function(g){g instanceof sj?f.cancel():d(g);return Bj},this);return f.then(a,b,c)};
261qj.prototype.$goog_Thenable=!0; 262var Cj=function(a){return Tb(a.Of,function(b){return typeof b[1]==="function"})},Bj={},uj=function(a){if(a.Uf&&a.rd&&Cj(a)){var b=a.Uf,c=Dj[b];c&&(r.clearTimeout(c.Ra),delete Dj[b]);a.Uf=0}a.Ja&&(a.Ja.jg--,delete a.Ja);b=a.Wa;for(var d=c=!1;a.Of.length&&!a.ig;){var e=a.Of.shift(),f=e[0],g=e[1];e=e[2];if(f=a.fe?g:f)try{var h=f.call(e||a.ei,b);h===Bj&&(h=void 0);h!==void 0&&(a.fe=a.fe&&(h==b||h instanceof Error),a.Wa=b=h);if(ig(b)||typeof r.Promise==="function"&&b instanceof r.Promise)d=!0,a.ig=!0}catch(l){b= 263l,a.fe=!0,Cj(a)||(c=!0)}}a.Wa=b;d&&(h=v(a.Zh,a,!0),d=v(a.Zh,a,!1),b instanceof qj?(yj(b,h,d),b.Th=!0):b.then(h,d));c&&(b=new Ej(b),Dj[b.Ra]=b,a.Uf=b.Ra)},Aj=function(a){var b=new qj;a.then(function(c){b.callback(c)},function(c){rj(b,c)});return b},vj=function(){Hb.call(this)};w(vj,Hb);vj.prototype.message="Deferred has already fired";vj.prototype.name="AlreadyCalledError";var sj=function(){Hb.call(this)};w(sj,Hb);sj.prototype.message="Deferred was canceled";sj.prototype.name="CanceledError"; 264var Ej=function(a){this.Ra=r.setTimeout(v(this.rm,this),0);this.Db=a};Ej.prototype.rm=function(){y(Dj[this.Ra],"Cannot throw an error that is not scheduled.");delete Dj[this.Ra];throw this.Db;};var Dj={};var Jj=function(a){var b={},c=b.document||document,d=tb(a).toString(),e=(new md(c)).createElement("SCRIPT"),f={yj:e,Sf:void 0},g=new qj(Fj,f),h=null,l=b.timeout!=null?b.timeout:5E3;l>0&&(h=window.setTimeout(function(){Gj(e,!0);rj(g,new Hj(1,"Timeout reached for loading script "+d))},l),f.Sf=h);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Gj(e,b.Om||!1,h),g.callback(null))};e.onerror=function(){Gj(e,!0,h);rj(g,new Hj(0,"Error while loading script "+ 265d))};f=b.attributes||{};ec(f,{type:"text/javascript",charset:"UTF-8"});gd(e,f);oc(e,a);Ij(c).appendChild(e);return g},Ij=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&b.length!==0?b[0]:a.documentElement},Fj=function(){if(this&&this.yj){var a=this.yj;a&&a.tagName=="SCRIPT"&&Gj(a,!0,this.Sf)}},Gj=function(a,b,c){c!=null&&r.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){kd(a)},0)},Hj=function(a, 266b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);Hb.call(this,c);this.code=a};w(Hj,Hb);var Kj=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Lj(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(d>=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var Mj=function(a){cj.call(this);this.headers=new Map;this.Yj=a||null;this.qc=!1;this.v=null;this.ke=this.Pi=this.tf="";this.Pc=this.Kg=this.mf=this.yg=!1;this.Ge=0;this.Yc=null;this.Jf="";this.Ll=this.Xj=!1;this.fg=this.Lh=null};w(Mj,cj);var Nj=/^https?$/i,Oj=["POST","PUT"];k=Mj.prototype;k.setTrustToken=function(a){this.Lh=a};k.setAttributionReporting=function(a){this.fg=a}; 267k.send=function(a,b,c,d){if(this.v)throw Error("[goog.net.XhrIo] Object is active with another request="+this.tf+"; newUri="+a);b=b?b.toUpperCase():"GET";this.tf=a;this.ke="";this.Pi=b;this.yg=!1;this.qc=!0;this.v=this.Yj?this.Yj.Vd():gj.Vd();this.v.onreadystatechange=Rf(v(this.hj,this));this.Ll&&"onprogress"in this.v&&(this.v.onprogress=Rf(v(function(g){this.fj(g,!0)},this)),this.v.upload&&(this.v.upload.onprogress=Rf(v(this.fj,this))));try{Fc(this.Ga,Pj(this,"Opening Xhr")),this.Kg=!0,this.v.open(b, 268String(a),!0),this.Kg=!1}catch(g){Fc(this.Ga,Pj(this,"Error opening Xhr: "+g.message));this.Db(5,g);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=la(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(g){return"content-type"==g.toLowerCase()}); 269e=r.FormData&&a instanceof r.FormData;!Ub(Oj,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=la(c);for(d=b.next();!d.done;d=b.next())c=la(d.value),d=c.next().value,c=c.next().value,this.v.setRequestHeader(d,c);this.Jf&&(this.v.responseType=this.Jf);"withCredentials"in this.v&&this.v.withCredentials!==this.Xj&&(this.v.withCredentials=this.Xj);if("setTrustToken"in this.v&&this.Lh)try{this.v.setTrustToken(this.Lh)}catch(g){Fc(this.Ga,Pj(this,"Error SetTrustToken: "+ 270g.message))}if("setAttributionReporting"in this.v&&this.fg)try{this.v.setAttributionReporting(this.fg)}catch(g){Fc(this.Ga,Pj(this,"Error SetAttributionReporting: "+g.message))}try{this.Yc&&(clearTimeout(this.Yc),this.Yc=null),this.Ge>0&&(Fc(this.Ga,Pj(this,"Will abort after "+this.Ge+"ms if incomplete")),this.Yc=setTimeout(this.Sf.bind(this),this.Ge)),Fc(this.Ga,Pj(this,"Sending request")),this.mf=!0,this.v.send(a),this.mf=!1}catch(g){Fc(this.Ga,Pj(this,"Send error: "+g.message)),this.Db(5,g)}}; 271k.Sf=function(){typeof ua!="undefined"&&this.v&&(this.ke="Timed out after "+this.Ge+"ms, aborting",Fc(this.Ga,Pj(this,this.ke)),this.dispatchEvent("timeout"),this.abort(8))};k.Db=function(a,b){this.qc=!1;this.v&&(this.Pc=!0,this.v.abort(),this.Pc=!1);this.ke=b;Qj(this);Rj(this)};var Qj=function(a){a.yg||(a.yg=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; 272Mj.prototype.abort=function(){this.v&&this.qc&&(Fc(this.Ga,Pj(this,"Aborting")),this.qc=!1,this.Pc=!0,this.v.abort(),this.Pc=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Rj(this))};Mj.prototype.Yd=function(){this.v&&(this.qc&&(this.qc=!1,this.Pc=!0,this.v.abort(),this.Pc=!1),Rj(this,!0));Mj.Md.Yd.call(this)};Mj.prototype.hj=function(){this.isDisposed()||(this.Kg||this.mf||this.Pc?Sj(this):this.El())};Mj.prototype.El=function(){Sj(this)};
273var Sj=function(a){if(a.qc&&typeof ua!="undefined")if(a.mf&&Tj(a)==4)setTimeout(a.hj.bind(a),0);else if(a.dispatchEvent("readystatechange"),Tj(a)==4){Fc(a.Ga,Pj(a,"Request complete"));a.qc=!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 e;if(e=b===0){var f=String(a.tf).match(Kj)[1]||null;!f&&r.self&&r.self.location&&(f=r.self.location.protocol.slice(0,-1));e=!Nj.test(f?f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"), 274a.dispatchEvent("success");else{try{var g=Tj(a)>2?a.v.statusText:""}catch(h){Fc(a.Ga,"Can not get status: "+h.message),g=""}a.ke=g+" ["+a.getStatus()+"]";Qj(a)}}finally{Rj(a)}}};Mj.prototype.fj=function(a,b){y(a.type==="progress","goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Uj(a,"progress"));this.dispatchEvent(Uj(a,b?"downloadprogress":"uploadprogress"))}; 275var Uj=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Rj=function(a,b){if(a.v){a.Yc&&(clearTimeout(a.Yc),a.Yc=null);var c=a.v;a.v=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){(a=a.Ga)&&Ec(a,rc,"Problem encountered resetting onreadystatechange: "+d.message)}}};Mj.prototype.isActive=function(){return!!this.v};var Tj=function(a){return a.v?a.v.readyState:0}; 276Mj.prototype.getStatus=function(){try{return Tj(this)>2?this.v.status:-1}catch(a){return-1}}; 277Mj.prototype.getResponse=function(){try{if(!this.v)return null;if("response"in this.v)return this.v.response;switch(this.Jf){case "":case "text":return this.v.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.v)return this.v.mozResponseArrayBuffer}var a=this.Ga;a&&Ec(a,rc,"Response type "+this.Jf+" is not supported on this browser");return null}catch(b){return Fc(this.Ga,"Can not get response: "+b.message),null}}; 278Mj.prototype.getResponseHeader=function(a){if(this.v&&Tj(this)==4)return a=this.v.getResponseHeader(a),a===null?void 0:a};Mj.prototype.getAllResponseHeaders=function(){return this.v&&Tj(this)>=2?this.v.getAllResponseHeaders()||"":""};var Pj=function(a,b){return b+" ["+a.Pi+" "+a.tf+" "+a.getStatus()+"]"};var Vj=function(a,b){if(typeof a!=="function")if(a&&typeof a.handleEvent=="function")a=v(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:r.setTimeout(a,b||0)},Wj=function(a){var b=null;return(new F(function(c,d){b=Vj(function(){c(void 0)},a);b==-1&&d(Error("Failed to schedule timer."))})).l(function(c){r.clearTimeout(b);throw c;})};var Xj=function(a){if(a.Oc&&typeof a.Oc=="function")return a.Oc();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(xa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}b=[];c=0;for(d in a)b[c++]=a[d];return b},Yj=function(a){if(a.Dg&&typeof a.Dg=="function")return a.Dg();if(!a.Oc||typeof a.Oc!="function"){if(typeof Map!=="undefined"&&a instanceof Map)return Array.from(a.keys()); 279if(!(typeof Set!=="undefined"&&a instanceof Set)){if(xa(a)||typeof a==="string"){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}b=[];c=0;for(var d in a)b[c++]=d;return b}}},Zj=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(xa(a)||typeof a==="string")Array.prototype.forEach.call(a,b,c);else for(var d=Yj(a),e=Xj(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};function ak(a){this.Ia=this.Zc=this.Xa="";this.Xb=null;this.Mc=this.Cf="";this.Eb=this.ol=!1;if(a instanceof ak){this.Eb=a.Eb;bk(this,a.Xa);var b=a.Zc;ck(this);this.Zc=b;dk(this,a.Ia);ek(this,a.Xb);this.setPath(a.getPath());fk(this,a.wb.clone());a=a.Mc;ck(this);this.Mc=a}else a&&(b=String(a).match(Kj))?(this.Eb=!1,bk(this,b[1]||"",!0),a=b[2]||"",ck(this),this.Zc=gk(a),dk(this,b[3]||"",!0),ek(this,b[4]),this.setPath(b[5]||"",!0),fk(this,b[6]||"",!0),a=b[7]||"",ck(this),this.Mc=gk(a)):(this.Eb=!1,this.wb= 280new hk(null,this.Eb))}ak.prototype.toString=function(){var a=[],b=this.Xa;b&&a.push(ik(b,jk,!0),":");var c=this.Ia;if(c||b=="file")a.push("//"),(b=this.Zc)&&a.push(ik(b,jk,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Xb,c!=null&&a.push(":",String(c));if(c=this.getPath())this.Ia&&c.charAt(0)!="/"&&a.push("/"),a.push(ik(c,c.charAt(0)=="/"?kk:lk,!0));(c=this.wb.toString())&&a.push("?",c);(c=this.Mc)&&a.push("#",ik(c,mk));return a.join("")}; 281ak.prototype.resolve=function(a){var b=this.clone(),c=!!a.Xa;c?bk(b,a.Xa):c=!!a.Zc;if(c){var d=a.Zc;ck(b);b.Zc=d}else c=!!a.Ia;c?dk(b,a.Ia):c=a.Xb!=null;d=a.getPath();if(c)ek(b,a.Xb);else if(c=!!a.Cf){if(d.charAt(0)!="/")if(this.Ia&&!this.Cf)d="/"+d;else{var e=b.getPath().lastIndexOf("/");e!=-1&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(B(e,"./")||B(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=[],g=0;g<e.length;){var h=e[g++];h=="."?d&&g==e.length&&f.push(""): 282h==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.wb.toString()!=="";c?fk(b,a.wb.clone()):c=!!a.Mc;c&&(a=a.Mc,ck(b),b.Mc=a);return b};ak.prototype.clone=function(){return new ak(this)}; 283var bk=function(a,b,c){ck(a);a.Xa=c?gk(b,!0):b;a.Xa&&(a.Xa=a.Xa.replace(/:$/,""))},dk=function(a,b,c){ck(a);a.Ia=c?gk(b,!0):b},ek=function(a,b){ck(a);if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.Xb=b}else a.Xb=null};ak.prototype.getPath=function(){return this.Cf};ak.prototype.setPath=function(a,b){ck(this);this.Cf=b?gk(a,!0):a;return this};var fk=function(a,b,c){ck(a);b instanceof hk?(a.wb=b,a.wb.Bh(a.Eb)):(c||(b=ik(b,nk)),a.wb=new hk(b,a.Eb))};ak.prototype.getQuery=function(){return this.wb.toString()}; 284var L=function(a,b,c){ck(a);a.wb.set(b,c)},ok=function(a,b){return a.wb.get(b)};ak.prototype.removeParameter=function(a){ck(this);this.wb.remove(a);return this};
284var ck=function(a){if(a.ol)throw Error("Tried to modify a read-only Uri");};ak.prototype.Bh=function(a){this.Eb=a;this.wb&&this.wb.Bh(a)}; 285var M=function(a){return a instanceof ak?a.clone():new ak(a)},pk=function(a,b,c,d){var e=new ak(null);a&&bk(e,a);b&&dk(e,b);c&&ek(e,c);d&&e.setPath(d);return e},gk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},ik=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,qk),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},qk=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},jk=/[#\/\?@]/g,lk=/[#\?:]/g,kk= 286/[#\?]/g,nk=/[#\?@]/g,mk=/#/g,hk=function(a,b){this.Pa=this.va=null;this.ob=a||null;this.Eb=!!b},rk=function(a){a.va||(a.va=new Map,a.Pa=0,a.ob&&Lj(a.ob,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))},sk=function(a){var b=Yj(a);if(typeof b=="undefined")throw Error("Keys are undefined");var c=new hk(null);a=Xj(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?c.setValues(e,f):c.add(e,f)}return c}; 287hk.prototype.add=function(a,b){rk(this);this.ob=null;a=this.rb(a);var c=this.va.get(a);c||this.va.set(a,c=[]);c.push(b);this.Pa=Nb(this.Pa)+1;return this};hk.prototype.remove=function(a){rk(this);a=this.rb(a);return this.va.has(a)?(this.ob=null,this.Pa=Nb(this.Pa)-this.va.get(a).length,this.va.delete(a)):!1};hk.prototype.clear=function(){this.va=this.ob=null;this.Pa=0};hk.prototype.isEmpty=function(){rk(this);return this.Pa==0};var tk=function(a,b){rk(a);b=a.rb(b);return a.va.has(b)};k=hk.prototype; 288k.forEach=function(a,b){rk(this);this.va.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};k.Dg=function(){rk(this);for(var a=Array.from(this.va.values()),b=Array.from(this.va.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};k.Oc=function(a){rk(this);var b=[];if(typeof a==="string")tk(this,a)&&(b=b.concat(this.va.get(this.rb(a))));else{a=Array.from(this.va.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b}; 289k.set=function(a,b){rk(this);this.ob=null;a=this.rb(a);tk(this,a)&&(this.Pa=Nb(this.Pa)-this.va.get(a).length);this.va.set(a,[b]);this.Pa=Nb(this.Pa)+1;return this};k.get=function(a,b){if(!a)return b;a=this.Oc(a);return a.length>0?String(a[0]):b};k.setValues=function(a,b){this.remove(a);b.length>0&&(this.ob=null,this.va.set(this.rb(a),Yb(b)),this.Pa=Nb(this.Pa)+b.length)}; 290k.toString=function(){if(this.ob)return this.ob;if(!this.va)return"";for(var a=[],b=Array.from(this.va.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.Oc(d);for(var f=0;f<d.length;f++){var g=e;d[f]!==""&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.ob=a.join("&")};k.clone=function(){var a=new hk;a.ob=this.ob;this.va&&(a.va=new Map(this.va),a.Pa=this.Pa);return a};k.rb=function(a){a=String(a);this.Eb&&(a=a.toLowerCase());return a}; 291k.Bh=function(a){a&&!this.Eb&&(rk(this),this.ob=null,this.va.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,b))},this));this.Eb=a};k.extend=function(a){for(var b=0;b<arguments.length;b++)Zj(arguments[b],function(c,d){this.add(d,c)},this)};var uk=function(a){var b=Error();b.name="SecurityError";a="Failed to read a named property '"+a+"' from 'Window': ";if("location"in window)try{a+='Blocked a frame with origin "'+window.location.href+'" from accessing a cross-origin frame.'}catch(c){a+="An attempt was made to break through the security policy of the user agent."}b.message=a;throw b;},vk=function(){return{get opener(){return null},set opener(a){},get closed(){return!0},get location(){uk("location")},get document(){uk("document")},postMessage:function(){}, 292close:function(){},focus:function(){}}};var wk={Dm:{Ye:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Lf:"https://staging-securetoken.sandbox.googleapis.com/v1/token",hf:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},Jm:{Ye:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Lf:"https://securetoken.googleapis.com/v1/token",hf:"https://identitytoolkit.googleapis.com/v2/",id:"p"},Km:{Ye:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/", 293Lf:"https://staging-securetoken.sandbox.googleapis.com/v1/token",hf:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},Lm:{Ye:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Lf:"https://test-securetoken.sandbox.googleapis.com/v1/token",hf:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}}; 294function xk(a){for(var b in wk)if(wk[b].id===a)return a=wk[b],{firebaseEndpoint:a.Ye,secureTokenEndpoint:a.Lf,identityPlatformEndpoint:a.hf};return null}var yk;yk=xk("__EID__")?"__EID__":void 0;var angular,Ak=function(){var a=zk();return Rc&&!!dd&&dd==11||/Edge\/\d+/.test(a)},Bk=function(){return r.window&&r.window.location.href||self&&self.location&&self.location.href||""},Ck=function(a,b){b=b||r.window;var c="about:blank";a&&(c=wb(Ab(a)));b.location.href=c},Dk=function(a,b){var c=[],d;for(d in a)d in b?typeof a[d]!=typeof b[d]?c.push(d):typeof a[d]=="object"&&a[d]!=null&&b[d]!=null?Dk(a[d],b[d]).length>0&&c.push(d):a[d]!==b[d]&&c.push(d):c.push(d);for(var e in b)e in a||c.push(e);return c}, 295Fk=function(){var a=zk();a=Ek(a)!="Chrome"?null:(a=a.match(/\sChrome\/(\d+)/i))&&a.length==2?parseInt(a[1],10):null;return a&&a<30?!1:!Rc||!dd||dd>9},Gk=function(a){a=(a||zk()).toLowerCase();return a.match(/android/)||a.match(/webos/)||a.match(/iphone|ipad|ipod/)||a.match(/blackberry/)||a.match(/windows phone/)||a.match(/iemobile/)?!0:!1},Hk=function(a){a=a||r.window;try{a.close()}catch(b){}},Ik=function(a,b,c){var d=Math.floor(Math.random()*1E9).toString();b=b||500;c=c||600;var e=(window.screen.availHeight-
296c)/2,f=(window.screen.availWidth-b)/2;b={width:b,height:c,top:e>0?e:0,left:f>0?f:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1};c=zk().toLowerCase();d&&(b.target=d,B(c,"crios/")&&(b.target="_blank"));Ek(zk())=="Firefox"&&(a=a||"http://localhost",b.scrollbars=!0);f=a||"";(d=b)||(d={});a=window;b=f instanceof ub?f:Ab(typeof f.href!="undefined"?f.href:String(f));e=self.crossOriginIsolated!==void 0;c="strict-origin-when-cross-origin";window.Request&&(c=(new Request("/")).referrerPolicy);var g=d.noreferrer; 297if(e&&g&&c==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");c=g&&!e;f=d.target||f.target;g=[];var h=[],l=!1;for(p in d){var m=d[p];switch(p){case "width":case "height":case "top":case "left":g.push(p+"="+m);break;case "target":break;case "noopener":case "noreferrer":m?h.push(p):(l=!0,h.push(p+"=false"));break;case "attributionsrc":g.push(p+(m?"="+m:""));break;default:g.push(p+"="+(m?1:0))}}var p=f!==void 0&&!["_blank", 298"_self","_top","_parent",""].includes(f);p=(C("Firefox")||C("FxiOS"))&&p;Jc&&e&&g.length===0&&h.length>0&&!p&&!l?(h.length===2&&(h=["noreferrer"]),nc(a,b,f,h[0]),p=vk()):(p=g.join(","),(Pc()||C("iPad")||C("iPod"))&&a.navigator&&a.navigator.standalone&&f&&f!="_self"?(p=id(document,"A"),b=Db(b),b!==void 0&&(p.href=b),p.target=f,c&&(p.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&p.setAttribute("attributionsrc",d),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,a,1),p.dispatchEvent(d), 299p=vk()):c?(p=nc(a,"",f,p),a=wb(b),p&&(p.opener=null,a===""&&(a="javascript:''"),mc.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(fc,"&")),a.indexOf("<")!=-1&&(a=a.replace(hc,"<")),a.indexOf(">")!=-1&&(a=a.replace(ic,">")),a.indexOf('"')!=-1&&(a=a.replace(jc,""")),a.indexOf("'")!=-1&&(a=a.replace(kc,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(lc,"�"))),a='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+a+'">',Gc("b/12014412, meta tag with sanitized URL"), 300a=pb(a),(d=p.document)&&d.write&&(d.write(qb(a)),d.close()))):((p=nc(a,b,f,p))&&d.noopener&&(p.opener=null),p&&d.noreferrer&&(p.opener=null)));if(p)try{p.focus()}catch(x){}return p},Jk=function(a){return new F(function(b){var c=function(){Wj(2E3).then(function(){if(!a||a.closed)b();else return c()})};return c()})},Lk=function(a,b){var c=M(b);b=c.Xa;c=c.Ia;for(var d=0;d<a.length;d++){var e=a[d];e.indexOf("chrome-extension://")==0?e=M(e).Ia==c&&b=="chrome-extension":b!="http"&&b!="https"?e=!1:Kk.test(e)? 301e=c==e:(e=e.split(".").join("\\."),e=(new RegExp("^(.+\\."+e+"|"+e+")$","i")).test(c));if(e)return!0}return!1},Kk=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Mk=/^[^@]+@[^@]+$/,Nk=function(){var a=null;return(new F(function(b){r.document.readyState=="complete"?b():(a=function(){b()},Ri(window,"load",a))})).l(function(b){$i(window,"load",a);throw b;})},Pk=function(){return Ok()?Nk().then(function(){return new F(function(a,b){var c=r.document,d=setTimeout(function(){b(Error("Cordova framework is not ready."))}, 3021E3);c.addEventListener("deviceready",function(){clearTimeout(d);a()},!1)})}):H(Error("Cordova must run in an Android or iOS file scheme."))},Ok=function(){var a=zk();return!(Qk()!=="file:"&&Qk()!=="ionic:"||!a.toLowerCase().match(/iphone|ipad|ipod|android/))},Rk=function(){var a=r.window;try{return!(!a||a==a.top)}catch(b){return!1}},Sk=function(){return typeof r.WorkerGlobalScope!=="undefined"&&typeof r.importScripts==="function"},Tk=function(){return firebase.INTERNAL.hasOwnProperty("reactNative")? 303"ReactNative":firebase.INTERNAL.hasOwnProperty("node")?"Node":Sk()?"Worker":"Browser"},Uk=function(){var a=Tk();return a==="ReactNative"||a==="Node"},Vk=function(){for(var a=50,b=[];a>0;)b.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(Math.random()*62))),a--;return b.join("")},Ek=function(a){var b=a.toLowerCase();if(B(b,"opera/")||B(b,"opr/")||B(b,"opios/"))return"Opera";if(B(b,"iemobile"))return"IEMobile";if(B(b,"msie")||B(b,"trident/"))return"IE";if(B(b, 304"edge/"))return"Edge";if(B(b,"firefox/"))return"Firefox";if(B(b,"silk/"))return"Silk";if(B(b,"blackberry"))return"Blackberry";if(B(b,"webos"))return"Webos";if(!B(b,"safari/")||B(b,"chrome/")||B(b,"crios/")||B(b,"android"))if(!B(b,"chrome/")&&!B(b,"crios/")||B(b,"edge/")){if(B(b,"android"))return"Android";if((a=a.match(RegExp("([a-zA-Z\\d\\.]+)/[a-zA-Z\\d\\.]*$")))&&a.length==2)return a[1]}else return"Chrome";else return"Safari";return"Other"},Wk={DEFAULT:"FirebaseCore-web",Fm:"FirebaseUI-web",Im:"gcip-iap"}, 305Xk=function(a,b,c){c=c||[];var d=[],e={},f;for(f in Wk)e[Wk[f]]=!0;for(f=0;f<c.length;f++)typeof e[c[f]]!=="undefined"&&(delete e[c[f]],d.push(c[f]));d.sort();c=d;c.length||(c=["FirebaseCore-web"]);d=Tk();return(d==="Browser"?Ek(zk()):d==="Worker"?Ek(zk())+"-"+d:d)+"/"+a+"/"+b+"/"+c.join(",")},zk=function(){return r.navigator&&r.navigator.userAgent||""},N=function(a,b){a=a.split(".");b=b||r;var c;for(c=0;c<a.length&&typeof b=="object"&&b!=null;c++)b=b[a[c]];c!=a.length&&(b=void 0);return b},Zk=function(){try{var a= 306r.localStorage,b=Yk();if(a)return a.setItem(b,"1"),a.removeItem(b),Ak()?!!r.indexedDB:!0}catch(c){return Sk()&&!!r.indexedDB}return!1},al=function(){return($k()||Qk()==="chrome-extension:"||Ok())&&!Uk()&&Zk()&&
306!Sk()},$k=function(){return Qk()==="http:"||Qk()==="https:"},Qk=function(){return r.location&&r.location.protocol||null},bl=function(a){a=a||zk();return Gk(a)||Ek(a)=="Firefox"?!1:!0},cl=function(a){return typeof a==="undefined"?null:JSON.stringify(a)},dl=function(a){var b={},c;for(c in a)a.hasOwnProperty(c)&& 307a[c]!==null&&a[c]!==void 0&&(b[c]=a[c]);return b},el=function(a){if(a!==null)return JSON.parse(a)},Yk=function(a){return a?a:""+Math.floor(Math.random()*1E9).toString()},fl=function(a){a=a||zk();return Ek(a)=="Safari"||a.toLowerCase().match(/iphone|ipad|ipod/)?!1:!0},gl=function(){var a=r.___jsl;if(a&&a.H)for(var b in a.H)if(a.H[b].r=a.H[b].r||[],a.H[b].L=a.H[b].L||[],a.H[b].r=a.H[b].L.concat(),a.CP)for(var c=0;c<a.CP.length;c++)a.CP[c]=null},hl=function(a,b){if(a>b)throw Error("Short delay should be less than long delay!"); 308this.Ij=a;this.wl=b;a=zk();b=Tk();this.nl=Gk(a)||b==="ReactNative"};hl.prototype.get=function(){var a=r.navigator;return(a&&typeof a.onLine==="boolean"&&($k()||Qk()==="chrome-extension:"||typeof a.connection!=="undefined")?a.onLine:1)?this.nl?this.wl:this.Ij:Math.min(5E3,this.Ij)}; 309var il=function(){var a=r.document;return a&&typeof a.visibilityState!=="undefined"?a.visibilityState=="visible":!0},jl=function(){var a=r.document,b=null;return il()||!a?G():(new F(function(c){b=function(){il()&&(a.removeEventListener("visibilitychange",b,!1),c())};a.addEventListener("visibilitychange",b,!1)})).l(function(c){a.removeEventListener("visibilitychange",b,!1);throw c;})},kl=function(a){typeof console!=="undefined"&&typeof console.warn==="function"&&console.warn(a)},ll=function(a){try{var b= 310new Date(parseInt(a,10));if(!isNaN(b.getTime())&&!/[^0-9]/.test(a))return b.toUTCString()}catch(c){}return null},ml=function(){return!(!N("fireauth.oauthhelper",r)&&!N("fireauth.iframe",r))},nl=function(){var a=r.navigator;return a&&a.serviceWorker&&a.serviceWorker.controller||null},ol=function(){var a=r.navigator;return a&&a.serviceWorker?G().then(function(){return a.serviceWorker.ready}).then(function(b){return b.active||null}).l(function(){return null}):G(null)};var pl={};function ql(a){pl[a]||(pl[a]=!0,kl(a))};var rl;try{var sl={};Object.defineProperty(sl,"abcd",{configurable:!0,enumerable:!0,value:1});Object.defineProperty(sl,"abcd",{configurable:!0,enumerable:!0,value:2});rl=sl.abcd==2}catch(a){rl=!1} 311var O=function(a,b,c){rl?Object.defineProperty(a,b,{configurable:!0,enumerable:!0,value:c}):a[b]=c},tl=function(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&O(a,c,b[c])},ul=function(a){var b={};tl(b,a);return b},vl=function(a,b){if(!b||!b.length)return!0;if(!a)return!1;for(var c=0;c<b.length;c++){var d=a[b[c]];if(d===void 0||d===null||d==="")return!1}return!0},wl=function(a){var b=a;if(typeof a=="object"&&a!=null){b="length"in a?[]:{};for(var c in a)O(b,c,wl(a[c]))}return b};var xl="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),yl=["client_id","response_type","scope","redirect_uri","state"],zl={Em:{je:"locale",Dd:700,Cd:600,providerId:"facebook.com",Gf:yl},Gm:{je:null,Dd:500,Cd:750,providerId:"github.com",Gf:yl},Hm:{je:"hl",Dd:515,Cd:680,providerId:"google.com",Gf:yl},Mm:{je:"lang",Dd:485,Cd:705,providerId:"twitter.com",Gf:xl},Cm:{je:"locale",Dd:640,Cd:600,providerId:"apple.com",Gf:[]}}; 312function Al(a){for(var b in zl)if(zl[b].providerId==a)return zl[b];return null};var P=function(a,b,c){this.code="auth/"+a;this.message=b||Bl[a]||"";this.Aj=c||null};w(P,Error);P.prototype.U=function(){var a={code:this.code,message:this.message};this.Aj&&(a.serverResponse=this.Aj);return a};P.prototype.toJSON=function(){return this.U()}; 313var Cl=function(a){var b=a&&a.code;return b?new P(b.substring(5),a.message,a.serverResponse):null},Bl={"api-key-service-blocked":"The request is denied because it violates [API key HTTP restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).","admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.", 314"app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","bad-request":"The requested action is invali
314d.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.", 315"cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.", 316"email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.", 317"invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.", 318"invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.", 319"invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.", 320"invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.", 321"wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
321d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.", 322"invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.", 323"multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.", 324"missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.", 325"missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.", 326"no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.', 327"password-does-not-meet-requirements":"The provided password does not meet the configured requirements.","popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.", 328"redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.", 329"too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.", 330"unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.", 331"web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."};var Dl=function(a,b,c,d,e,f,g){this.Mh=a;this.La=b||null;this.Od=c||null;this.Ae=d||null;this.hh=f||null;this.na=g||null;this.Db=e||null;if(this.Od||this.Db){if(this.Od&&this.Db)throw new P("invalid-auth-event");
331if(this.Od&&!this.Ae)throw new P("invalid-auth-event");}else throw new P("invalid-auth-event");};k=Dl.prototype;k.getType=function(){return this.Mh};k.getUid=function(){var a=[];a.push(this.Mh);this.La&&a.push(this.La);this.Ae&&a.push(this.Ae);this.na&&a.push(this.na);return a.join("-")}; 332k.de=function(){return this.Ae};k.getError=function(){return this.Db};k.U=function(){return{type:this.Mh,eventId:this.La,urlResponse:this.Od,sessionId:this.Ae,postBody:this.hh,tenantId:this.na,error:this.Db&&this.Db.U()}};var El=function(a){a=a||{};return a.type?new Dl(a.type,a.eventId,a.urlResponse,a.sessionId,a.error&&Cl(a.error),a.postBody,a.tenantId):null};var Fl=function(a,b){if(!b||!a||!a.mfaEnrollmentId)throw new P("internal-error","Internal assert: invalid MultiFactorInfo object");O(this,"uid",a.mfaEnrollmentId);O(this,"displayName",a.displayName||null);O(this,"enrollmentTime",a.enrolledAt?(new Date(a.enrolledAt)).toUTCString():null);O(this,"factorId",b)};Fl.prototype.U=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}}; 333var Il=function(a){try{if(a.phoneInfo)return new Gl(a);if(a.totpInfo)return new Hl(a)}catch(b){}return null},Gl=function(a){var b=a.phoneInfo;if(!b)throw new P("internal-error","Internal assert: invalid Phone MultiFactorInfo object");Fl.call(this,a,"phone");O(this,"phoneNumber",b)};q(Gl,Fl);Gl.prototype.U=function(){var a=Fl.prototype.U.call(this);a.phoneNumber=this.phoneNumber;return a}; 334var Hl=function(a){var b=a.totpInfo;if(!b)throw new P("internal-error","Internal assert: invalid TOTP MultiFactorInfo object");Fl.call(this,a,"totp");O(this,"totpInfo",b)};q(Hl,Fl);Hl.prototype.U=function(){var a=Fl.prototype.U.call(this);a.totpInfo=this.totpInfo;return a};var Jl=function(a){var b={},c=a.email,d=a.newEmail,e=a.requestType;a=Il(a.mfaInfo);if(!e||e!="EMAIL_SIGNIN"&&e!="VERIFY_AND_CHANGE_EMAIL"&&!c||e=="VERIFY_AND_CHANGE_EMAIL"&&!d||e=="REVERT_SECOND_FACTOR_ADDITION"&&!a)throw Error("Invalid checkActionCode response!");e=="VERIFY_AND_CHANGE_EMAIL"?(b.fromEmail=c||null,b.previousEmail=c||null,b.email=d):(b.fromEmail=d||null,b.previousEmail=d||null,b.email=c||null);b.multiFactorInfo=a||null;O(this,"operation",e);O(this,"data",wl(b))};var Ll=function(a){a=M(a);var b=ok(a,"apiKey")||null,c=ok(a,"oobCode")||null,d=ok(a,"mode")||null;d=d?Kl[d]||null:null;if(!b||!c||!d)throw new P("argument-error","apiKey, oobCodeand mode are required in a valid action code URL.");tl(this,{apiKey:b,operation:d,code:c,continueUrl:ok(a,"continueUrl")||null,languageCode:ok(a,"languageCode")||null,tenantId:ok(a,"tenantId")||null})},Ml=function(a){try{return new Ll(a)}catch(b){return null}},Kl={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET", 335revertSecondFactorAddition:"REVERT_SECOND_FACTOR_ADDITION",signIn:"EMAIL_SIGNIN",verifyAndChangeEmail:"VERIFY_AND_CHANGE_EMAIL",verifyEmail:"VERIFY_EMAIL"};var Nl=function(a){var b=M(a),c=ok(b,"link"),d=ok(M(c),"link");b=ok(b,"deep_link_id");return ok(M(b),"link")||b||d||c||a};var Ol=function(a){var b="unauthorized-domain",c=void 0,d=M(a);a=d.Ia;d=d.Xa;d=="chrome-extension"?c=Hc("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. If you are the app developer, add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",a):d=="http"||d=="https"?c=Hc("This domain (%s) is not authorized to run this operation. If you are the app developer, add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.", 336a):b="operation-not-supported-in-this-environment";P.call(this,b,c)};q(Ol,P);var Ql=function(a){var b=Pl(a);if(!(b&&b.sub&&b.iss&&b.aud&&b.exp))throw Error("Invalid JWT");this.rl=a;this.Bg=b.exp;this.ul=b.sub;a=Date.now()/1E3;this.al=b.iat||(a>this.Bg?this.Bg:a);this.Kc=b.email||null;this.kh=b.provider_id||b.firebase&&b.firebase.sign_in_provider||null;this.na=b.firebase&&b.firebase.tenant||null;this.hk=!!b.is_anonymous||this.kh=="anonymous"};Ql.prototype.getEmail=function(){return this.Kc};Ql.prototype.isAnonymous=function(){return this.hk};Ql.prototype.toString=function(){return this.rl}; 337var Rl=function(a){try{return new Ql(a)}catch(b){return null}}
337,Pl=function(a){if(!a)return null;a=a.split(".");if(a.length!=3)return null;a=a[1];for(var b=(4-a.length%4)%4,c=0;c<b;c++)a+=".";try{var d=si(a);a=[];for(c=b=0;b<d.length;){var e=d[b++];if(e<128)a[c++]=String.fromCharCode(e);else if(e>191&&e<224){var f=d[b++];a[c++]=String.fromCharCode((e&31)<<6|f&63)}else if(e>239&&e<365){var g=d[b++],h=d[b++],l=d[b++],m=((e&7)<<18|(g&63)<<12|(h&63)<<6|l&63)-65536;a[c++]=String.fromCharCode(55296+(m>> 33810));a[c++]=String.fromCharCode(56320+(m&1023))}else{var p=d[b++],x=d[b++];a[c++]=String.fromCharCode((e&15)<<12|(p&63)<<6|x&63)}}return JSON.parse(a.join(""))}catch(A){}return null};var Sl=function(a){var b=Pl(a);if(!(b&&b.exp&&b.auth_time&&b.iat))throw new P("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");tl(this,{token:a,expirationTime:ll(b.exp*1E3),authTime:ll(b.auth_time*1E3),issuedAtTime:ll(b.iat*1E3),signInProvider:b.firebase&&b.firebase.sign_in_provider?b.firebase.sign_in_provider:null,signInSecondFactor:b.firebase&&b.firebase.sign_in_second_factor?b.firebase.sign_in_second_factor:null, 339claims:b})};var Tl=function(a,b){if(!a&&!b)throw new P("internal-error","Internal assert: no raw session string available");if(a&&b)throw new P("internal-error","Internal assert: unable to determine the session type");this.ff=a||null;this.Vi=b||null;this.type=this.ff?"enroll":"signin"};Tl.prototype.be=function(){return this.ff?G(this.ff):G(this.Vi)};Tl.prototype.U=function(){return this.type=="enroll"?{multiFactorSession:{idToken:this.ff}}:{multiFactorSession:{pendingCredential:this.Vi}}};var Ul=function(){};Ul.prototype.Nc=function(){};Ul.prototype.yd=function(){};Ul.prototype.me=function(){};Ul.prototype.U=function(){}; 340var Vl=function(a,b){return a.then(function(c){if(c.idToken){var d=Rl(c.idToken);if(!d||b!=d.ul)throw new P("user-mismatch");return c}throw new P("user-mismatch");}).l(function(c){throw c&&c.code&&c.code=="auth/user-not-found"?new P("user-mismatch"):c;})},Wl=function(a,b){if(b)this.bc=b;else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",a)};k=Wl.prototype;k.Nc=function(a){return Xl(a,this.Rc())}; 341k.yd=function(a,b){var c=this.Rc();c.idToken=b;return Yl(a,c)};k.me=function(a,b){var c=this.Rc();return Vl(Zl(a,c),b)};k.Rc=function(){return{pendingToken:this.bc,requestUri:"http://localhost"}};
341k.U=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.bc}}; 342var $l=function(a){if(a&&a.providerId&&a.signInMethod&&a.providerId.indexOf("saml.")==0&&a.pendingToken)try{return new Wl(a.providerId,a.pendingToken)}catch(b){}return null},am=function(a,b,c){this.bc=null;if(b.idToken||b.accessToken)b.idToken&&O(this,"idToken",b.idToken),b.accessToken&&O(this,"accessToken",b.accessToken),b.nonce&&!b.pendingToken&&O(this,"nonce",b.nonce),b.pendingToken&&(this.bc=b.pendingToken);else if(b.oauthToken&&b.oauthTokenSecret)O(this,"accessToken",b.oauthToken),O(this,"secret", 343b.oauthTokenSecret);else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",c)};k=am.prototype;k.Nc=function(a){return Xl(a,this.Rc())};k.yd=function(a,b){var c=this.Rc();c.idToken=b;return Yl(a,c)};k.me=function(a,b){var c=this.Rc();return Vl(Zl(a,c),b)}; 344k.Rc=function(){var a={};this.idToken&&(a.id_token=this.idToken);this.accessToken&&(a.access_token=this.accessToken);this.secret&&(a.oauth_token_secret=this.secret);a.providerId=this.providerId;this.nonce&&!this.bc&&(a.nonce=this.nonce);a={postBody:sk(a).toString(),requestUri:"http://localhost"};this.bc&&(delete a.postBody,a.pendingToken=this.bc);return a};
345k.U=function(){var a={providerId:this.providerId,signInMethod:this.signInMethod};this.idToken&&(a.oauthIdToken=this.idToken);this.accessToken&&(a.oauthAccessToken=this.accessToken);this.secret&&(a.oauthTokenSecret=this.secret);this.nonce&&(a.nonce=this.nonce);this.bc&&(a.pendingToken=this.bc);return a}; 346var bm=function(a){if(a&&a.providerId&&a.signInMethod){var b={idToken:a.oauthIdToken,accessToken:a.oauthTokenSecret?null:a.oauthAccessToken,oauthTokenSecret:a.oauthTokenSecret,oauthToken:a.oauthTokenSecret&&a.oauthAccessToken,nonce:a.nonce,pendingToken:a.pendingToken};try{return new am(a.providerId,b,a.signInMethod)}catch(c){}}return null},cm=function(a,b){this.Ol=b||[];tl(this,{providerId:a,isOAuthProvider:!0});this.ci={};this.Qg=(Al(a)||{}).je||null;this.vg=null}; 347cm.prototype.setCustomParameters=function(a){this.ci=cc(a);return this};var dm=function(a){if(typeof a!=="string"||a.indexOf("saml.")!=0)throw new P("argument-error",'SAML provider IDs must be prefixed with "saml."');cm.call(this,a,[])};w(dm,cm);var em=function(a){cm.call(this,a,yl);this.xh=[]};w(em,cm);em.prototype.addScope=function(a){Ub(this.xh,a)||this.xh.push(a);return this};em.prototype.xi=function(){return Yb(this.xh)}; 348em.prototype.credential=function(a,b){a=u(a)?{idToken:a.idToken||null,accessToken:a.accessToken||null,nonce:a.rawNonce||null}:{idToken:a||null,accessToken:b||null};if(!a.idToken&&!a.accessToken)throw new P("argument-error","credential failed: must provide the ID token and/or the access token.");return new am(this.providerId,a,this.providerId)};var fm=function(){em.call(this,"facebook.com")};w(fm,em);O(fm,"PROVIDER_ID","facebook.com");O(fm,"FACEBOOK_SIGN_IN_METHOD","facebook.com"); 349var gm=function(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;u(a)&&(b=a.accessToken);return(new fm).credential({accessToken:b})},hm=function(){em.call(this,"github.com")};w(hm,em);O(hm,"PROVIDER_ID","github.com");O(hm,"GITHUB_SIGN_IN_METHOD","github.com"); 350var im=function(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;u(a)&&(b=a.accessToken);return(new hm).credential({accessToken:b})},jm=function(){em.call(this,"google.com");this.addScope("profile")};w(jm,em);O(jm,"PROVIDER_ID","google.com");O(jm,"GOOGLE_SIGN_IN_METHOD","google.com"); 351var km=function(a,b){var c=a;u(a)&&(c=a.idToken,b=a.accessToken);return(new jm).credential({idToken:c,accessToken:b})},lm=function(){cm.call(this,"twitter.com",xl)};w(lm,cm);O(lm,"PROVIDER_ID","twitter.com");O(lm,"TWITTER_SIGN_IN_METHOD","twitter.com"); 352var mm=function(a,b){var c=a;u(c)||(c={oauthToken:a,oauthTokenSecret:b});if(!c.oauthToken||!c.oauthTokenSecret)throw new P("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new am("twitter.com",c,"twitter.com")},om=function(a,b,c){this.Kc=a;this.ne=b;O(this,"providerId","password");O(this,"signInMethod",c===nm.EMAIL_LINK_SIGN_IN_METHOD?nm.EMAIL_LINK_SIGN_IN_METHOD:nm.EMAIL_PASSWORD_SIGN_IN_METHOD)}; 353om.prototype.Nc=function(a){return this.signInMethod==nm.EMAIL_LINK_SIGN_IN_METHOD?Q(a,pm,{email:this.Kc,oobCode:this.ne}):Q(a,qm,{email:this.Kc,password:this.ne})};om.prototype.yd=function(a,b){return this.signInMethod==nm.EMAIL_LINK_SIGN_IN_METHOD?Q(a,rm,{idToken:b,email:this.Kc,oobCode:this.ne}):Q(a,sm,{idToken:b,email:this.Kc,password:this.ne})};om.prototype.me=function(a,b){return Vl(this.Nc(a),b)};om.prototype.U=function(){return{email:this.Kc,password:this.ne,signInMethod:this.signInMethod}}; 354var tm=function(a){return a&&a.email&&a.password?new om(a.email,a.password,a.signInMethod):null},nm=function(){tl(this,{providerId:"password",isOAuthProvider:!1})},vm=function(a,b){b=um(b);if(!b)throw new P("argument-error","Invalid email link!");return new om(a,b.code,nm.EMAIL_LINK_SIGN_IN_METHOD)},um=function(a){a=Nl(a);return(a=Ml(a))&&a.operation==="EMAIL_SIGNIN"?a:null};tl(nm,{PROVIDER_ID:"password"});tl(nm,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"});tl(nm,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"});
355var wm=function(a){if(!(a.verificationId&&a.Vf||a.Fe&&a.phoneNumber))throw new P("internal-error");this.Ba=a;O(this,"providerId","phone");this.providerId="phone";O(this,"signInMethod","phone")};wm.prototype.Nc=function(a){return a.verifyPhoneNumber(xm(this))};wm.prototype.yd=function(a,b){var c=xm(this);c.idToken=b;return Q(a,ym,c)};wm.prototype.me=function(a,b){var c=xm(this);c.operation="REAUTH";a=Q(a,zm,c);return Vl(a,b)}; 356wm.prototype.U=function(){var a={providerId:"phone"};this.Ba.verificationId&&(a.verificationId=this.Ba.verificationId);this.Ba.Vf&&(a.verificationCode=this.Ba.Vf);this.Ba.Fe&&(a.temporaryProof=this.Ba.Fe);this.Ba.phoneNumber&&(a.phoneNumber=this.Ba.phoneNumber);return a}; 357var Am=function(a){if(a&&a.providerId==="phone"&&(a.verificationId&&a.verificationCode||a.temporaryProof&&a.phoneNumber)){var b={};z(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(c){a[c]&&(b[c]=a[c])});return new wm(b)}return null},xm=function(a){return a.Ba.Fe&&a.Ba.phoneNumber?{temporaryProof:a.Ba.Fe,phoneNumber:a.Ba.phoneNumber}:{sessionInfo:a.Ba.verificationId,code:a.Ba.Vf}},Bm=function(a){try{this.Oe=a||firebase.auth()}catch(b){throw new P("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp()."); 358}tl(this,{providerId:"phone",isOAuthProvider:!1})}; 359Bm.prototype.verifyPhoneNumber=function(a,b){var c=this.Oe.o;return G(b.verify()).then(function(d){if(typeof d!=="string")throw new P("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(b.type){case "recaptcha":var e=u(a)?a.session:null,f=u(a)?a.phoneNumber:a;return(e&&e.type=="enroll"?e.be().then(function(g){return Cm(c,{idToken:g,phoneEnrollmentInfo:{phoneNumber:f,recaptchaToken:d}})}):e&& 360e.type=="signin"?e.be().then(function(g){return Dm(c,{mfaPendingCredential:g,mfaEnrollmentId:a.multiFactorHint&&a.multiFactorHint.uid||a.multiFactorUid,phoneSignInInfo:{recaptchaToken:d}})}):Em(c,{phoneNumber:f,recaptchaToken:d})).then(function(g){typeof b.reset==="function"&&b.reset();return g},function(g){typeof b.reset==="function"&&b.reset();throw g;});default:throw new P("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.');}})}; 361var Fm=function(a,b){if(!a)throw new P("missing-verification-id");if(!b)throw new P("missing-verification-code");return new wm({verificationId:a,Vf:b})};tl(Bm,{PROVIDER_ID:"phone"});tl(Bm,{PHONE_SIGN_IN_METHOD:"phone"}); 362var Gm=function(a){if(a.temporaryProof&&a.phoneNumber)return new wm({Fe:a.temporaryProof,phoneNumber:a.phoneNumber});var b=a&&a.providerId;if(!b||b==="password")return null;var c=a&&a.oauthAccessToken,d=a&&a.oauthTokenSecret,e=a&&a.nonce,f=a&&a.oauthIdToken,g=a&&a.pendingToken;try{switch(b){case "google.com":return km(f,c);case "facebook.com":return gm(c);case "github.com":return im(c);case "twitter.com":return mm(c,d);default:return c||d||f||g?g?b.indexOf("saml.")==0?new Wl(b,g):new am(b,{pendingToken:g, 363idToken:a.oauthIdToken,accessToken:a.oauthAccessToken},b):(new em(b)).credential({idToken:f,accessToken:c,rawNonce:e}):null}}catch(h){return null}},Hm=function(a){if(!a.isOAuthProvider)throw new P("invalid-oauth-provider");};var Im=function(a,b,c){P.call(this,a,c);a=b||{};a.email&&O(this,"email",a.email);a.phoneNumber&&O(this,"phoneNumber",a.phoneNumber);a.credential&&O(this,"credential",a.credential);a.tenantId&&O(this,"tenantId",a.tenantId)};q(Im,P);Im.prototype.U=function(){var a={code:this.code,message:this.message};this.email&&(a.email=this.email);this.phoneNumber&&(a.phoneNumber=this.phoneNumber);this.tenantId&&(a.tenantId=this.tenantId);var b=this.credential&&this.credential.U();b&&ec(a,b);return a}; 364Im.prototype.toJSON=function(){return this.U()};var Jm=function(a){if(a.code){var b=a.code||"";b.indexOf("auth/")==0&&(b=b.substring(5));var c={credential:Gm(a),tenantId:a.tenantId};if(a.email)c.email=a.email;else if(a.phoneNumber)c.phoneNumber=a.phoneNumber;else if(!c.credential)return new P(b,a.message||void 0);return new Im(b,c,a.message)}return null};var Km=oa(["https://apis.google.com/js/client.js?onload=",""]),Lm=function(a){this.Bm=a};q(Lm,fj);Lm.prototype.Vd=function(){return new this.Bm}; 365var Qm=function(a,b,c){this.ka=a;b=b||{};this.zj=b.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token";this.hm=b.secureTokenTimeout||Mm;this.Mf=cc(b.secureTokenHeaders||Nm);this.mi=b.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/";this.Gi=b.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/";this.Fk=b.firebaseTimeout||Om;this.qd=cc(b.firebaseHeaders||Pm);c&&(this.qd["X-Client-Version"]=c,this.Mf["X-Client-Version"]=c);a=Tk()=="Node"; 366a=r.XMLHttpRequest||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.XMLHttpRequest;if(!a&&!Sk())throw new P("internal-error","The XMLHttpRequest compatibility library was not found.");this.Kf=void 0;Sk()?this.Kf=new lj({Am:self}):Uk()?this.Kf=new Lm(a):this.Kf=new ij;this.na=null},Rm,Sm=function(a,b){b?a.qd["X-Firebase-Locale"]=b:delete a.qd["X-Firebase-Locale"]},Um=function(a,b){b&&(a.zj=Tm("https://securetoken.googleapis.com/v1/token",b),a.mi=Tm("https://www.googleapis.com/identitytoolkit/v3/relyingparty/", 367b),a.Gi=Tm("https://identitytoolkit.googleapis.com/v2/",b))},Tm=function(a,b){a=M(a);b=M(b.url);a.setPath(a.Ia+a.getPath());bk(a,b.Xa);dk(a,b.Ia);ek(a,b.Xb);return a.toString()},Vm=function(a,b){b?(a.qd["X-Client-Version"]=b,a.Mf["X-Client-Version"]=b):(delete a.qd["X-Client-Version"],delete a.Mf["X-Client-Version"])},Xm=function(a,b,c,d,e,f,g){Fk()||Sk()?a=v(a.jm,a):(Rm||(Rm=new F(function(h,l){Wm(h,l)})),a=v(a.im,a));a(b,c,d,e,f,g)}; 368Qm.prototype.jm=function(a,b,c,d,e,f){if(Sk()&&(typeof r.fetch==="undefined"||typeof r.Headers==="undefined"||typeof r.Request==="undefined"))throw new P("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to supp
368ort HTTP requests from a Worker environment.");var g=new Mj(this.Kf);if(f){g.Ge=Math.max(0,f);var h=setTimeout(function(){g.dispatchEvent("timeout")},f)}g.listen("complete",function(){h&&clearTimeout(h);var l=null; 369try{var m=JSON,p=m.parse;try{var x=this.v?this.v.responseText:""}catch(A){Fc(this.Ga,"Can not get responseText: "+A.message),x=""}l=p.call(m,x)||null}catch(A){l=null}b&&b(l)});Zi(g,"ready",function(){h&&clearTimeout(h);this.dispose()});Zi(g,"timeout",function(){h&&clearTimeout(h);this.dispose();b&&b(null)});g.send(a,c,d,e)}; 370var Wm=function(a,b){if(((window.gapi||{}).client||{}).request)a();else{r[Ym]=function(){((window.gapi||{}).client||{}).request?a():b(Error("CORS_UNSUPPORTED"))};var c=Gb(Km,Ym);zj(Jj(c),function(){b(Error("CORS_UNSUPPORTED"))})}}; 371Qm.prototype.im=function(a,b,c,d,e){var f=this;Rm.then(function(){window.gapi.client.setApiKey(f.ka);var g=window.gapi.auth.getToken();window.gapi.auth.setToken(null);window.gapi.client.request({path:a,method:c,body:d,headers:e,authType:"none",callback:function(h){window.gapi.auth.setToken(g);b&&b(h)}})}).l(function(g){b&&b({error:{message:g&&g.message||"CORS_UNSUPPORTED"}})})}; 372var $m=function(a,b){return new F(function(c,d){b.grant_type=="refresh_token"&&b.refresh_token||b.grant_type=="authorization_code"&&b.code?Xm(a,a.zj+"?key="+encodeURIComponent(a.ka),function(e){e?e.error?d(Zm(e)):e.access_token&&e.refresh_token?c(e):d(new P("internal-error")):d(new P("network-request-failed"))},"POST",sk(b).toString(),a.Mf,a.hm.get()):d(new P("internal-error"))})},an=function(a,b,c,d,e,f,g){var h=M(b+c);L(h,"key",a.ka);g&&L(h,"cb",Date.now().toString());var l=d=="GET";if(l)for(var m in e)e.hasOwnProperty(m)&& 373L(h,m,e[m]);return new F(function(p,x){Xm(a,h.toString(),function(A){A?A.error?x(Zm(A,f||{})):p(A):x(new P("network-request-failed"))},d,l?void 0:JSON.stringify(dl(e)),a.qd,a.Fk.get())})},bn=function(a){a=a.email;if(typeof a!=="string"||!Mk.test(a))throw new P("invalid-email");},cn=function(a){"email"in a&&bn(a)},en=function(a,b){return Q(a,dn,{identifier:b,continueUri:$k()?Bk():"http://localhost"}).then(function(c){return c.signinMethods||[]})},gn=function(a){return Q(a,fn,{}).then(function(b){return b.authorizedDomains|| 374[]})},hn=function(a){if(!a.idToken){if(a.mfaPendingCredential)throw new P("multi-factor-auth-required",null,cc(a));throw new P("internal-error");}},jn=function(a){if(a.phoneNumber||a.temporaryProof){if(!a.phoneNumber||!a.temporaryProof)throw new P("internal-error");}else{if(!a.sessionInfo)throw new P("missing-verification-id");if(!a.code)throw new P("missing-verification-code");}};k=Qm.prototype;k.signInAnonymously=function(){return Q(this,kn,{})}; 375k.updateEmail=function(a,b){return Q(this,ln,{idToken:a,email:b})};k.updatePassword=function(a,b){return Q(this,sm,{idToken:a,password:b})};k.updateProfile=function(a,b){var c={idToken:a},d=[];$b(mn,function(e,f){var g=b[f];g===null?d.push(e):f in b&&(c[f]=g)});d.length&&(c.deleteAttribute=d);return Q(this,ln,c)};k.sendPasswordResetEmail=function(a,b){a={requestType:"PASSWORD_RESET",email:a};ec(a,b);return Q(this,nn,a)}; 376k.sendSignInLinkToEmail=function(a,b){a={requestType:"EMAIL_SIGNIN",email:a};ec(a,b);return Q(this,on,a)};k.sendEmailVerification=function(a,b){a={requestType:"VERIFY_EMAIL",idToken:a};ec(a,b);return Q(this,pn,a)};k.verifyBeforeUpdateEmail=function(a,b,c){a={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:a,newEmail:b};ec(a,c);return Q(this,qn,a)};var Em=function(a,b){return Q(a,rn,b)};Qm.prototype.verifyPhoneNumber=function(a){return Q(this,sn,a)}; 377var Cm=function(a,b){return Q(a,tn,b).then(function(c){return c.phoneSessionInfo.sessionInfo})},un=function(a){if(!a.phoneVerificationInfo)throw new P("internal-error");if(!a.phoneVerificationInfo.sessionInfo)throw new P("missing-verification-id");if(!a.phoneVerificationInfo.code)throw new P("missing-verification-code");},Dm=function(a,b){return Q(a,vn,b).then(function(c){return c.phoneResponseInfo.sessionInfo})},xn=function(a,b,c){return Q(a,wn,{idToken:b,deleteProvider:c})},yn=function(a){if(!a.requestUri|| 378!a.sessionId&&!a.postBody&&!a.pendingToken)throw new P("internal-error");},zn=function(a,b){b.oauthIdToken&&b.providerId&&b.providerId.indexOf("oidc.")==0&&!b.pendingToken&&
378(a.sessionId?b.nonce=a.sessionId:a.postBody&&(a=new hk(a.postBody),tk(a,"nonce")&&(b.nonce=a.get("nonce"))));return b},Bn=function(a){var b=null;a.needConfirmation?(a.code="account-exists-with-different-credential",b=Jm(a)):a.errorMessage=="FEDERATED_USER_ID_ALREADY_LINKED"?(a.code="credential-already-in-use",b=Jm(a)):a.errorMessage== 379"EMAIL_EXISTS"?(a.code="email-already-in-use",b=Jm(a)):a.errorMessage&&(b=An(a.errorMessage));if(b)throw b;hn(a)},Xl=function(a,b){b.returnIdpCredential=!0;return Q(a,Cn,b)},Yl=function(a,b){b.returnIdpCredential=!0;return Q(a,Dn,b)},Zl=function(a,b){b.returnIdpCredential=!0;b.autoCreate=!1;return Q(a,En,b)},Fn=function(a){if(!a.oobCode)throw new P("invalid-action-code");};Qm.prototype.confirmPasswordReset=function(a,b){return Q(this,Gn,{oobCode:a,newPassword:b})}; 380Qm.prototype.checkActionCode=function(a){return Q(this,Hn,{oobCode:a})};Qm.prototype.applyActionCode=function(a){return Q(this,In,{oobCode:a})}; 381var Q=function(a,b,c){if(!vl(c,b.Oa))return H(new P("internal-error"));var d=!!b.Je,e=b.httpMethod||"POST",f;return G(c).then(b.ua).then(function(){b.Qb&&(c.returnSecureToken=!0);b.wa&&a.na&&typeof c.tenantId==="undefined"&&(c.tenantId=a.na);return d?an(a,a.Gi,b.endpoint,e,c,b.bi,b.lg||!1):an(a,a.mi,b.endpoint,e,c,b.bi,b.lg||!1)}).then(function(g){f=g;return b.Hf?b.Hf(c,f):f}).then(b.Da).then(function(){if(!b.jc)return f;if(!(b.jc in f))throw new P("internal-error");return f[b.jc]})},An=function(a){return Zm({error:{errors:[{message:a}], 382code:400,reason:a}})},Zm=function(a,b){var c=(a.error&&a.error.errors&&a.error.errors[0]||{}).reason||"";var d={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(c=d[c]?new P(d[c]):null)return c;c=a.error&&(a.error.reason||a.error.message)||"";d={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password", 383USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
383NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found", 384RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests", 385WEAK_PASSWORD:"weak-password",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",INVALID_TENANT_ID:"invalid-tenant-id",MISSING_APP_CREDENTIAL:"missing-app-credential", 386MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id", 387INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use", 388SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email",API_KEY_SERVICE_BLOCKED:"api-key-service-blocked"};b=b||{};ec(d,b);b=(b=c.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&b.length>1?b[1]:void 0;for(var e in d)if(c.indexOf(e)===0)return new P(d[e],b);!b&&a&&(b=cl(a));return new P("internal-error",b)},Mm=new hl(3E4,6E4),Nm={"Content-Type":"application/x-www-form-urlencoded"},Om=new hl(3E4,6E4),Pm={"Content-Type":"application/json"}, 389Ym="__fcb"+Math.floor(Math.random()*1E6).toString(),mn={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"},In={endpoint:"setAccountInfo",ua:Fn,jc:"email",wa:!0},Hn={endpoint:"resetPassword",ua:Fn,Da:function(a){var b=a.requestType;if(!b||!a.email&&b!="EMAIL_SIGNIN"&&b!="VERIFY_AND_CHANGE_EMAIL")throw new P("internal-error");},wa:!0},Jn={endpoint:"signupNewUser",ua:function(a){bn(a);if(!a.password)throw new P("weak-password");},Da:hn,Qb:!0,wa:!0},dn={endpoint:"createAuthUri",wa:!0},Kn={endpoint:"deleteAccount", 390Oa:["idToken"]},wn={endpoint:"setAccountInfo",Oa:["idToken","deleteProvider"],ua:function(a){if(!Array.isArray(a.deleteProvider))throw new P("internal-error");}},pm={endpoint:"emailLinkSignin",Oa:["email","oobCode"],ua:bn,Da:hn,Qb:!0,wa:!0},rm={endpoint:"emailLinkSignin",Oa:["idToken","email","oobCode"],ua:bn,Da:hn,Qb:!0},Ln={endpoint:"accounts/mfaEnrollment:finalize",Oa:["idToken","phoneVerificationInfo"],ua:un,Da:hn,wa:!0,Je:!0},Mn={endpoint:"accounts/mfaSignIn:finalize",Oa:["mfaPendingCredential", 391"phoneVerificationInfo"],ua:un,Da:hn,wa:!0,Je:!0},Nn={endpoint:"getAccountInfo"},on={endpoint:"getOobConfirmationCode",Oa:["requestType"],ua:function(a){if(a.requestType!="EMAIL_SIGNIN")throw new P("internal-error");bn(a)},jc:"email",wa:!0},pn={endpoint:"getOobConfirmationCode",Oa:["idToken","requestType"],ua:function(a){if
391(a.requestType!="VERIFY_EMAIL")throw new P("internal-error");},jc:"email",wa:!0},qn={endpoint:"getOobConfirmationCode",Oa:["idToken","newEmail","requestType"],ua:function(a){if(a.requestType!= 392"VERIFY_AND_CHANGE_EMAIL")throw new P("internal-error");},jc:"email",wa:!0},nn={endpoint:"getOobConfirmationCode",Oa:["requestType"],ua:function(a){if(a.requestType!="PASSWORD_RESET")throw new P("internal-error");bn(a)},jc:"email",wa:!0},fn={lg:!0,endpoint:"getProjectConfig",httpMethod:"GET"},On={lg:!0,endpoint:"getRecaptchaParam",httpMethod:"GET",Da:function(a){if(!a.recaptchaSiteKey)throw new P("internal-error");}},Gn={endpoint:"resetPassword",ua:Fn,jc:"email",wa:!0},rn={endpoint:"sendVerificationCode", 393Oa:["phoneNumber","recaptchaToken"],jc:"sessionInfo",wa:!0},ln={endpoint:"setAccountInfo",Oa:["idToken"],ua:cn,Qb:!0},sm={endpoint:"setAccountInfo",Oa:["idToken"],ua:function(a){cn(a);if(!a.password)throw new P("weak-password");},Da:hn,Qb:!0},kn={endpoint:"signupNewUser",Da:hn,Qb:!0,wa:!0},tn={endpoint:"accounts/mfaEnrollment:start",Oa:["idToken","phoneEnrollmentInfo"],ua:function(a){if(!a.phoneEnrollmentInfo)throw new P("internal-error");if(!a.phoneEnrollmentInfo.phoneNumber)throw new P("missing-phone-number"); 394if(!a.phoneEnrollmentInfo.recaptchaToken)throw new P("missing-app-credential");},Da:function(a){if(!a.phoneSessionInfo||!a.phoneSessionInfo.sessionInfo)throw new P("internal-error");},wa:!0,Je:!0},vn={endpoint:"accounts/mfaSignIn:start",Oa:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],ua:function(a){if(!a.phoneSignInInfo||!a.phoneSignInInfo.recaptchaToken)throw new P("missing-app-credential");},Da:function(a){if(!a.phoneResponseInfo||!a.phoneResponseInfo.sessionInfo)throw new P("internal-error"); 395},wa:!0,Je:!0},Cn={endpoint:"verifyAssertion",ua:yn,Hf:zn,Da:Bn,Qb:!0,wa:!0},En={endpoint:"verifyAssertion",ua:yn,Hf:zn,Da:function(a){if(a.errorMessage&&a.errorMessage=="USER_NOT_FOUND")throw new P("user-not-found");if(a.errorMessage)throw An(a.errorMessage);hn(a)},Qb:!0,wa:!0},Dn={endpoint:"verifyAssertion",ua:function(a){yn(a);if(!a.idToken)throw new P("internal-error");},Hf:zn,Da:Bn,Qb:!0},Pn={endpoint:"verifyCustomToken",ua:function(a){if(!a.token)throw new P("invalid-custom-token");},Da:hn, 396Qb:!0,wa:!0},qm={endpoint:"verifyPassword",ua:function(a){bn(a);if(!a.password)throw new P("wrong-password");},Da:hn,Qb:!0,wa:!0},sn={endpoint:"verifyPhoneNumber",ua:jn,Da:hn,wa:!0},ym={endpoint:"verifyPhoneNumber",ua:function(a){if(!a.idToken)throw new P("internal-error");jn(a)},Da:function(a){if(a.temporaryProof)throw a.code="credential-already-in-use",Jm(a);hn(a)}},zm={bi:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",ua:jn,Da:hn,wa:!0},Qn={endpoint:"accounts/mfaEnrollment:withdraw", 397Oa:["idToken","mfaEnrollmentId"],Da:function(a){if(!!a.idToken^!!a.refreshToken)throw new P("internal-error");},wa:!0,Je:!0};var Rn=oa(["https://apis.google.com/js/api.js?onload=",""]),Tn=function(a){this.lb=a;this.lf=null;this.Wg=Sn(this)};Tn.prototype.onReady=function(){return this.Wg}; 398var Sn=function(a){return Un().then(function(){return new F(function(b,c){N("gapi.iframes.getContext")().open({where:document.body,url:a.lb,messageHandlersFilter:N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(d){a.lf=d;a.lf.restyle({setHideOnLeave:!1});var e=setTimeout(function(){c(Error("Network Error"))},Vn.get()),f=function(){clearTimeout(e);b()};d.ping(f).then(f,function(){c(Error("Network Error"))})})})})}; 399Tn.prototype.sendMessage=function(a){var b=this;return this.Wg.then(function(){return new F(function(c){b.lf.send(a.type,a,c,N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})};Tn.prototype.oh=function(a,b){var c=this;this.Wg.then(function(){c.lf.register(a,b,N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}; 400var Un=function(){return Wn?Wn:Wn=(new F(function(a,b){var c=function(){gl();N("gapi.load")("gapi.iframes",{callback:a,ontimeout:function(){gl();b(Error("Network Error"))},timeout:Xn.get()})};if(N("gapi.iframes.Iframe"))a();else if(N("gapi.load"))c();else{var d="__iframefcb"+Math.floor(Math.random()*1E6).toString();r[d]=function(){N("gapi.load")?c():b(Error("Network Error"))};d=Gb(Rn,d);G(Jj(d)).l(function(){b(Error("Network Error"))})}})).l(function(a){Wn=null;throw a;})},Xn=new hl(3E4,6E4),Vn=new hl(5E3, 40115E3),Wn=null;var Yn=function(a,b,c,d){this.Ca=a;this.ka=b;this.ma=c;this.N=d;this.ad=null;this.N?(a=M(this.N.url),a=pk(a.Xa,a.Ia,a.Xb,"/emulator/auth/iframe")):a=pk("https",this.Ca,null,"/__/auth/iframe");this.nc=a;L(this.nc,"apiKey",this.ka);L(this.nc,"appName",this.ma);this.Ka=null;this.Qa=[]};Yn.prototype.Dh=function(a){this.ad=a;return this};Yn.prototype.Ah=function(a){this.Ka=a;return this}; 402Yn.prototype.toString=function(){this.ad?L(this.nc,"v",this.ad):this.nc.removeParameter("v");this.Ka?L(this.nc,"eid",this.Ka):this.nc.removeParameter("eid");this.Qa.length?L(this.nc,"fw",this.Qa.join(",")):this.nc.removeParameter("fw");return this.nc.toString()};var Zn=function(a,b,c,d,e,f){this.Ca=a;this.ka=b;this.ma=c;this.jk=d;this.N=f;this.ad=this.La=this.nh=null;this.Fd=e;this.na=this.Ka=null};Zn.prototype.Ch=function(a){this.na=a;return this};Zn.prototype.Dh=function(a){this.ad=a;return this}; 403Zn.prototype.Ah=function(a){this.Ka=a;return this}; 404Zn.prototype.toString=function(){if(this.N){var a=M(this.N.url);a=pk(a.Xa,a.Ia,a.Xb,"/emulator/auth/handler")}else a=pk("https",this.Ca,null,"/__/auth/handler");L(a,"apiKey",this.ka);L(a,"appName",this.ma);L(a,"authType",this.jk);if(this.Fd.isOAuthProvider){var b=this.Fd;try{var c=firebase.app(this.ma).auth().Kb}catch(h){c=null}b.vg=c;L(a,"providerId",this.Fd.providerId);c=this.Fd;b=dl(c.ci);for(var d in b)b[d]=b[d].toString();d=c.Ol;b=cc(b);for(var e=0;e<d.length;e++){var f=d[e];f in b&&delete b[f]}c.Qg&& 405c.vg&&!b[c.Qg]&&(b[c.Qg]=c.vg);bc(b)||L(a,"customParameters",cl(b))}typeof this.Fd.xi==="function"&&(c=this.Fd.xi(),c.length&&L(a,"scopes",c.join(",")));this.nh?L(a,"redirectUrl",this.nh):a.removeParameter("redirectUrl");this.La?L(a,"eventId",this.La):a.removeParameter("eventId");this.ad?L(a,"v",this.ad):a.removeParameter("v");if(this.Me)for(var g in this.Me)this.Me.hasOwnProperty(g)&&!ok(a,g)&&L(a,g,this.Me[g]);this.na?L(a,"tid",this.na):a.removeParameter("tid");this.Ka?L(a,"eid",this.Ka):a.removeParameter("eid"); 406g=$n(this.ma);g.length&&L(a,"fw",g.join(","));return a.toString()};var $n=function(a){try{return ao(firebase.app(a).auth())}catch(b){return[]}},bo=function(a,b,c,d,e,f){this.Ca=a;this.ka=b;this.ma=c;this.N=f;this.Ic=d||null;this.Ka=e||null;this.o=this.Jg=this.ri=null;this.Zb=[];this.nf=this.Lb=null},co=function(a){var b=b||Bk();return gn(a).then(function(c){if(!Lk(c,b))throw new Ol(Bk());})};k=bo.prototype; 407k.initialize=function(){if(this.nf)return this.nf;var a=this;return this.nf=Nk().then(function(){if(!a.Jg){var b=a.Ca,c=a.ka,d=a.ma,e=a.Ic,f=a.Ka,g=$n(a.ma);b=(new Yn(b,c,d,a.N)).Dh(e).Ah(f);b.Qa=Yb(g||[]);a.Jg=b.toString()}a.kf=new Tn(a.Jg);a.qh()})};k.Ce=function(a,b,c){var d=new P("popup-closed-by-user"),e=new P("web-storage-unsupported"),f=this,g=!1;return this.Qc().then(function(){eo(f).then(function(h){h||(a&&Hk(a),b(e),g=!0)})}).l(function(){}).then(function(){if(!g)return Jk(a)}).then(function(){if(!g)return Wj(c).then(function(){b(d)})})}; 408k.Jj=function(){var a=zk();return!bl(a)&&!fl(a)};k.Ci=function(){return!1}; 409k.te=function(a,b,c,d,e,f,g,h){if(!a)return H(new P("popup-blocked"));if(g&&!bl())return this.Qc().l(function(m){Hk(a);e(m)}),d(),G();this.Lb||(this.Lb=co(fo(this)));var l=this;return this.Lb.then(function(){var m=l.Qc().l(function(p){Hk(a);e(p);throw p;});d();return m}).then(function(){Hm(c);if(!g){var m=go(l.Ca,l.ka,l.ma,b,c,null,f,l.Ic,void 0,l.Ka,h,l.N);Ck(m,a)}}).l(function(m){m.code=="auth/network-request-failed"&&(l.Lb=null);throw m;})}; 410var fo=function(a){a.o||(a.ri=a.Ic?Xk("JsCore",a.Ic,$n(a.ma)):null,a.o=new Qm(a.ka,xk(a.Ka),a.ri),a.N&&Um(a.o,a.N));return a.o};bo.prototype.ue=function(a,b,c,d){this.Lb||(this.Lb=co(fo(this)));var e=this;return this.Lb.then(function(){Hm(b);var f=go(e.Ca,e.ka,e.ma,a,b,Bk(),c,e.Ic,void 0,e.Ka,d,e.N);Ck(f)}).l(function(f){f.code=="auth/network-request-failed"&&(e.Lb=null);throw f;})}; 411bo.prototype.Qc=function(){var a=this;return this.initialize().then(function(){return a.kf.onReady()}).l(function(){a.Lb=null;throw new P("network-request-failed");})};bo.prototype.Oj=function(){return!0};var go=function(a,b,c,d,e,f,g,h,l,m,p,x){a=new Zn(a,b,c,d,e,x);a.nh=f;a.La=g;f=a.Dh(h);f.Me=cc(l||null);return f.Ah(m).Ch(p).toString()}; 412bo.prototype.qh=function(){if(!this.kf)throw Error("IfcHandler must be initialized!");var a=this;this.kf.oh("authEvent",function(b){var c={};if(b&&b.authEvent){var d=!1;b=El(b.authEvent);for(c=0;c<a.Zb.length;c++)d=a.Zb[c](b)||d;c={};c.status=d?"ACK":"ERROR";return G(c)}c.status="ERROR";return G(c)})}; 413var eo=function(a){var b={type:"webStorageSupport"};return a.initialize().then(function(){return a.kf.sendMessage(b)}).then(function(c){if(c&&c.length&&typeof c[0].webStorageSupport!=="undefined")return c[0].webStorageSupport;throw Error();})};bo.prototype.Gc=function(a){this.Zb.push(a)};bo.prototype.Id=function(a){Xb(this.Zb,function(b){return b==a})};function ho(){}ho.prototype.render=function(){};ho.prototype.reset=function(){};ho.prototype.getResponse=function(){};ho.prototype.execute=function(){};var io=oa(["https://www.google.com/recaptcha/api.js?trustedtypes=true&onload=","&render=explicit&hl=",""]),jo=function(){this.md=r.grecaptcha?Infinity:0;this.Ei=null;this.ng="__rcb"+Math.floor(Math.random()*1E6).toString()}; 414jo.prototype.Qi=function(a){var b=this;return new F(function(c,d){var e=setTimeout(function(){d(new P("network-request-failed"))},ko.get());
414if(!r.grecaptcha||a!==b.Ei&&!b.md){r[b.ng]=function(){if(r.grecaptcha){b.Ei=a;var g=r.grecaptcha.render;r.grecaptcha.render=function(h,l){h=g(h,l);b.md++;return h};clearTimeout(e);c(r.grecaptcha)}else clearTimeout(e),d(new P("internal-error"));delete r[b.ng]};var f=Gb(io,b.ng,a||"");G(Jj(f)).l(function(){clearTimeout(e);d(new P("internal-error","Unable to load external reCAPTCHA dependencies!"))})}else clearTimeout(e), 415c(r.grecaptcha)})};jo.prototype.Wh=function(){this.md--};var ko=new hl(3E4,6E4),lo=null;var mo=function(){this.kb={};this.md=1E12};mo.prototype.render=function(a,b){this.kb[this.md.toString()]=new no(a,b);return this.md++};mo.prototype.reset=function(a){var b=oo(this,a);a=po(a);b&&a&&(b.delete(),delete this.kb[a])};mo.prototype.getResponse=function(a){return(a=oo(this,a))?a.getResponse():null};mo.prototype.execute=function(a){(a=oo(this,a))&&a.execute()}; 416var oo=function(a,b){return(b=po(b))?a.kb[b]||null:null},po=function(a){return(a=typeof a==="undefined"?1E12:a)?a.toString():null},qo=null,no=function(a,b){this.Cb=!1;this.Ba=b;this.Nd=this.If=null;this.Mi=this.Ba.size!=="invisible";this.ii=ed(a);var c=this;this.Yi=function(){c.execute()};this.Mi?this.execute():Si(this.ii,"click",this.Yi)};no.prototype.getResponse=function(){ro(this);return this.If}; 417no.prototype.execute=function(){ro(this);var a=this;this.Nd||(this.Nd=setTimeout(function(){a.If=Vk();var b=a.Ba.callback,c=a.Ba["expired-callback"];if(b)try{b(a.If)}catch(d){}a.Nd=setTimeout(function(){a.Nd=null;a.If=null;if(c)try{c()}catch(d){}a.Mi&&a.execute()},6E4)},500))};no.prototype.delete=function(){ro(this);this.Cb=!0;clearTimeout(this.Nd);this.Nd=null;$i(this.ii,"click",this.Yi)};var ro=function(a){if(a.Cb)throw Error("reCAPTCHA mock was already deleted!");};var so=function(){};so.prototype.Qi=function(){qo||(qo=new mo);return G(qo)};so.prototype.Wh=function(){};var to=null;var uo=function(a,b,c,d,e,f,g){O(this,"type","recaptcha");this.Rd=this.Ud=null;this.nd=!1;this.Yh=b;this.ee=null;g?(to||(to=new so),g=to):(lo||(lo=new jo),g=lo);this.uj=g;this.xc=c||{theme:"light",type:"image"};this.Ma=[];if(this.xc.sitekey)throw new P("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");this.qf=this.xc.size==="invisible";if(!r.document)throw new P("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support."); 418if(!ed(b)||!this.qf&&ed(b).hasChildNodes())throw new P("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new Qm(a,f||null,e||null);this.Kk=d||function(){return null};var h=this;this.Tf=[];var l=this.xc.callback;this.xc.callback=function(p){h.Xd(p);if(typeof l==="function")l(p);else if(typeof l==="string"){var x=N(l,r);typeof x==="function"&&x(p)}};var m=this.xc["expired-callback"];this.xc["expired-callback"]=function(){h.Xd(null);if(typeof m=== 419"function")m();else if(typeof m==="string"){var p=N(m,r);typeof p==="function"&&p()}}};uo.prototype.Xd=function(a){for(var b=0;b<this.Tf.length;b++)try{this.Tf[b](a)}catch(c){}};var vo=function(a,b){Xb(a.Tf,function(c){return c==b})};k=uo.prototype;k.u=function(a){var b=this;this.Ma.push(a);a.Ec(function(){Vb(b.Ma,a)});return a}; 420k.ie=function(){var a=this;return this.Ud?this.Ud:this.Ud=this.u(G().then(function(){if($k()&&!Sk())return Nk();throw new P("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.");}).then(function(){return a.uj.Qi(a.Kk())}).then(function(b){a.ee=b;return Q(a.o,On,{})}).then(function(b){a.xc.sitekey=b.recaptchaSiteKey}).l(function(b){a.Ud=null;throw b;}))}; 421k.render=function(){wo(this);var a=this;return this.u(this.ie().then(function(){if(a.Rd===null){var b=a.Yh;if(!a.qf){var c=ed(b);b=id(document,"DIV");c.appendChild(b)}a.Rd=a.ee.render(b,a.xc)}return a.Rd}))};k.verify=function(){wo(this);var a=this;return this.u(this.render().then(function(b){return new F(function(c){var d=a.ee.getResponse(b);if(d)c(d);else{var e=function(f){f&&(vo(a,e),c(f))};a.Tf.push(e);a.qf&&a.ee.execute(a.Rd)}})}))};k.reset=function(){wo(this);this.Rd!==null&&this.ee.reset(this.Rd)};
422var wo=function(a){if(a.nd)throw new P("internal-error","RecaptchaVerifier instance has been destroyed.");};uo.prototype.clear=function(){wo(this);this.nd=!0;this.uj.Wh();for(var a=0;a<this.Ma.length;a++)this.Ma[a].cancel("RecaptchaVerifier instance has been destroyed.");this.qf||jd(ed(this.Yh))}; 423var xo=function(a,b,c){var d=!1;try{this.V=c||firebase.app()}catch(g){throw new P("argument-error","No firebase.app.App instance is currently initialized.");}if(this.V.options&&this.V.options.apiKey)c=this.V.options.apiKey;else throw new P("invalid-api-key");var e=this,f=null;try{f=ao(this.V.auth())}catch(g){}try{d=this.V.auth().settings.appVerificationDisabledForTesting}catch(g){}f=firebase.SDK_VERSION?Xk("JsCore",firebase.SDK_VERSION,f):null;uo.call(this,c,a,b,function(){try{var g=e.V.auth().Kb}catch(h){g= 424null}return g},f,xk(yk),d)};w(xo,uo);var yo=function(a){this.Le=a};yo.prototype.postMessage=function(a,b){this.Le.postMessage(a,b)};var zo=function(a){this.Kl=a;this.Xh=!1;this.vf=[]}; 425zo.prototype.send=function(a,b,c){b=b===void 0?null:b;c=c===void 0?!1:c;var d=this,e;b=b||{};var f,g,h,l=null;if(this.Xh)return H(Error("connection_unavailable"));var m=c?800:50,p=typeof MessageChannel!=="undefined"?new MessageChannel:null;return(new F(function(x,A){p?(e=""+Math.floor(Math.random()*1E20).toString(),p.port1.start(),g=setTimeout(function(){A(Error("unsupported_event"))},m),f=function(S){S.data.eventId===e&&(S.data.status==="ack"?(clearTimeout(g),h=setTimeout(function(){A(Error("timeout"))}, 4263E3)):S.data.status==="done"?(clearTimeout(h),typeof S.data.response!=="undefined"?x(S.data.response):A(Error("unknown_error"))):(clearTimeout(g),clearTimeout(h),A(Error("invalid_response"))))},l={messageChannel:p,onMessage:f},d.vf.push(l),p.port1.addEventListener("message",f),d.Kl.postMessage({eventType:a,eventId:e,data:b},[p.port2])):A(Error("connection_unavailable"))})).then(function(x){Ao(d,l);return x}).l(function(x){Ao(d,l);throw x;})}; 427var Ao=function(a,b){if(b){var c=b.messageChannel,d=b.onMessage;c&&(c.port1.removeEventListener("message",d),c.port1.close());Xb(a.vf,function(e){return e==b})}};zo.prototype.close=function(){for(;this.vf.length>0;)Ao(this,this.vf[0]);this.Xh=!0};var Bo=function(a){this.zg=a;this.Hb={};this.Ti=v(this.Ok,this)},Do=function(a){z(Co,function(c){c.zg==a&&(b=c)});if(!b){var b=new Bo(a);Co.push(b)}return b}; 428Bo.prototype.Ok=function(a){var b=a.data.eventType,c=a.data.eventId,d=this.Hb[b];if(d&&d.length>0){a.ports[0].postMessage({status:"ack",eventId:c,eventType:b,response:null});var e=[];z(d,function(f){e.push(G().then(function(){return f(a.origin,a.data.data)}))});rg(e).then(function(f){var g=[];z(f,function(h){g.push({fulfilled:h.oi,value:h.value,reason:h.reason?h.reason.message:void 0})});z(g,function(h){for(var l in h)typeof h[l]==="undefined"&&delete h[l]});a.ports[0].postMessage({status:"done", 429eventId:c,eventType:b,response:g})})}};Bo.prototype.subscribe=function(a,b){bc(this.Hb)&&this.zg.addEventListener("message",this.Ti);typeof this.Hb[a]==="undefined"&&(this.Hb[a]=[]);this.Hb[a].push(b)};Bo.prototype.unsubscribe=function(a,b){typeof this.Hb[a]!=="undefined"&&b?(Xb(this.Hb[a],function(c){return c==b}),this.Hb[a].length==0&&delete this.Hb[a]):b||delete this.Hb[a];bc(this.Hb)&&this.zg.removeEventListener("message",this.Ti)};var Co=[];var Eo=function(a){this.yb=a||firebase.INTERNAL.reactNative&&firebase.INTERNAL.reactNative.AsyncStorage;if(!this.yb)throw new P("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"};k=Eo.prototype;k.get=function(a){return G(this.yb.getItem(a)).then(function(b){return b&&el(b)})};k.set=function(a,b){return G(this.yb.setItem(a,cl(b)))};k.remove=function(a){return G(this.yb.removeItem(a))};k.rc=function(){};k.Dc=function(){};function Fo(){this.storage={};this.type="inMemory"}k=Fo.prototype;k.get=function(a){return G(this.storage[a])};k.set=function(a,b){this.storage[a]=b;return G()};k.remove=function(a){delete this.storage[a];return G()};k.rc=function(){};k.Dc=function(){};var Io=function(){if(!Go()){if(Tk()=="Node")throw new P("internal-error","The LocalStorage compatibility library was not found.");throw new P("web-storage-unsupported");}this.yb=Ho()||firebase.INTERNAL.node.localStorage;this.type="localStorage"},Ho=function(){try{var a=r.localStorage,b=Yk();a&&(a.setItem(b,"1"),a.removeItem(b));return a}catch(c){return null}},Go=function(){var a=Tk()=="Node";a=Ho()||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.localStorage;if(!a)return!1;try{return a.setItem("__sak", 430"1"),a.removeItem("__sak"),!0}catch(b){return!1}};k=Io.prototype;k.get=function(a){var b=this;return G().then(function(){var c=b.yb.getItem(a);return el(c)})};k.set=function(a,b){var c=this;return G().then(function(){var d=cl(b);d===null?c.remove(a):c.yb.setItem(a,d)})};k.remove=function(a){var b=this;return G().then(function(){b.yb.removeItem(a)})};k.rc=function(a){r.window&&Si(r.window,"storage",a)};k.Dc=function(a){r.window&&$i(r.window,"storage",a)};var Jo=function(){this.yb={};this.type="nullStorage"};k=Jo.prototype;k.get=function(){return G(null)};k.set=function(){return G()};k.remove=function(){return G()};k.rc=function(){};k.Dc=function(){};var Mo=function(){if(!Ko()){if(Tk()=="Node")throw new P("internal-error","The SessionStorage compatibility library was not found.");throw new P("web-storage-unsupported");}this.yb=Lo()||firebase.INTERNAL.node.sessionStorage;this.type="sessionStorage"},Lo=function(){try{var a=r.sessionStorage,b=Yk();a&&(a.setItem(b,"1"),a.removeItem(b));return a}catch(c){return null}},Ko=function(){var a=Tk()=="Node";a=Lo()||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.sessionStorage;if(!a)return!1;try{return a.setItem("__sak", 431"1"),a.removeItem("__sak"),!0}catch(b){return!1}};k=Mo.prototype;k.get=function(a){var b=this;return G().then(function(){var c=b.yb.getItem(a);return el(c)})};k.set=function(a,b){var c=this;return G().then(function(){var d=cl(b);d===null?c.remove(a):c.yb.setItem(a,d)})};k.remove=function(a){var b=this;return G().then(function(){b.yb.removeItem(a)})};k.rc=function(){};k.Dc=function(){};var Po=function(){if(!No())throw new P("web-storage-unsupported");this.di="firebaseLocalStorageDb";this.xf="firebaseLocalStorage";this.ug="fbase_key";this.Uj="value";this.wm=1;this.Ta={};this.Yb=[];this.oe=0;this.Ii=r.indexedDB;this.type="indexedDB";this.Nf=this.yc=this.Ef=this.eh=null;this.Bj=!1;this.Yf=null;var a=this;Sk()&&self?(this.yc=Do(Sk()?self:null),this.yc.subscribe("keyChanged",function(b,c){return Oo(a).then(function(d){d.length>0&&z(a.Yb,function(e){e(d)});return{keyProcessed:Ub(d,c.key)}})}), 432this.yc.subscribe("ping",function(){return G(["keyChanged"])})):ol().then(function(b){if(a.Yf=b)a.Nf=new zo(new yo(b)),a.Nf.send("ping",null,!0).then(function(c){c[0].fulfilled&&Ub(c[0].value,"keyChanged")&&(a.Bj=!0)}).l(function(){})})},Qo,Ro=function(a){return new F(function(b,c){var d=a.Ii.deleteDatabase(a.di);d.onsuccess=function(){b()};d.onerror=function(e){c(Error(e.target.error))}})},So=function(a){return new F(function(b,c){var d=a.Ii.open(a.di,a.wm);d.onerror=function(e){try{e.preventDefault()}catch(f){}c(Error(e.target.error))}; 433d.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore(a.xf,{keyPath:a.ug})}catch(f){c(f)}};d.onsuccess=function(e){e=e.target.result;e.objectStoreNames.contains(a.xf)?b(e):Ro(a).then(function(){return So(a)}).then(function(f){b(f)}).l(function(f){c(f)})}})},To=function(a){a.Lg||(a.Lg=So(a));return a.Lg},Uo=function(a,b){var c=0,d=function(e,f){To(a).then(b).then(e).l(function(g){if(++c>3)f(g);else return To(a).then(function(h){h.close();a.Lg=void 0;return d(e,f)}).l(function(h){f(h)})})}; 434return new F(d)},No=function(){try{return!!r.indexedDB}catch(a){return!1}},Vo=function(a,b){return b.objectStore(a.xf)},Wo=function(a,b,c){return b.transaction([a.xf],c?"readwrite":"readonly")},Xo=function(a){return new F(function(b,c){a.onsuccess=function(d){d&&d.target?b(d.target.result):b()};a.onerror=function(d){c(d.target.error)}})}; 435Po.prototype.set=function(a,b){var c=this,d=!1;return Uo(this,function(e){e=Vo(c,Wo(c,e,!0));return Xo(e.get(a))}).then(function(e){return Uo(c,function(f){f=Vo(c,Wo(c,f,!0));if(e)return e.value=b,Xo(f.put(e));c.oe++;d=!0;var g={};g[c.ug]=a;g[c.Uj]=b;return Xo(f.add(g))})}).then(function(){c.Ta[a]=b;return Yo(c,a)}).Ec(function(){d&&c.oe--})};var Yo=function(a,b){return a.Nf&&a.Yf&&nl()===a.Yf?a.Nf.send("keyChanged",{key:b},a.Bj).then(function(){}).l(function(){}):G()}; 436Po.prototype.get=function(a){var b=this;return Uo(this,function(c){return Xo(Vo(b,Wo(b,c,!1)).get(a))}).then(function(c){return c&&c.value})};Po.prototype.remove=function(a){var b=!1,c=this;return Uo(this,function(d){b=!0;c.oe++;return Xo(Vo(c,Wo(c,d,!0))["delete"](a))}).then(function(){delete c.Ta[a];return Yo(c,a)}).Ec(function(){b&&c.oe--})}; 437var Oo=function(a){return To(a).then(function(b){var c=Vo(a,Wo(a,b,!1));return c.getAll?Xo(c.getAll()):new F(function(d,e){var f=[],g=c.openCursor();g.onsuccess=function(h){(h=h.target.result)?(f.push(h.value),h["continue"]()):d(f)};g.onerror=function(h){e(h.target.error)}})}).then(function(b){var c={},d=[];if(a.oe==0){for(d=0;d<b.length;d++)c[b[d][a.ug]]=b[d][a.Uj];
437d=Dk(a.Ta,c);a.Ta=c}return d})};Po.prototype.rc=function(a){this.Yb.length==0&&this.Hh();this.Yb.push(a)}; 438Po.prototype.Dc=function(a){Xb(this.Yb,function(b){return b==a});this.Yb.length==0&&this.Qf()};Po.prototype.Hh=function(){var a=this;this.Qf();var b=function(){a.Ef=setTimeout(function(){a.eh=Oo(a).then(function(c){c.length>0&&z(a.Yb,function(d){d(c)})}).then(function(){b()}).l(function(c){c.message!="STOP_EVENT"&&b()})},800)};b()};Po.prototype.Qf=function(){this.eh&&this.eh.cancel("STOP_EVENT");this.Ef&&(clearTimeout(this.Ef),this.Ef=null)};function Zo(a){var b=this,c=null;this.Yb=[];this.type="indexedDB";this.ji=a;this.Nh=G().then(function(){if(No()){var d=Yk(),e="__sak"+d;Qo||(Qo=new Po);c=Qo;return c.set(e,d).then(function(){return c.get(e)}).then(function(f){if(f!==d)throw Error("indexedDB not supported!");return c.remove(e)}).then(function(){return c}).l(function(){return b.ji})}return b.ji}).then(function(d){b.type=d.type;d.rc(function(e){z(b.Yb,function(f){f(e)})});return d})}k=Zo.prototype;k.get=function(a){return this.Nh.then(function(b){return b.get(a)})}; 439k.set=function(a,b){return this.Nh.then(function(c){return c.set(a,b)})};k.remove=function(a){return this.Nh.then(function(b){return b.remove(a)})};k.rc=function(a){this.Yb.push(a)};k.Dc=function(a){Xb(this.Yb,function(b){return b==a})};var dp=function(){this.xg={Browser:$o,Node:ap,ReactNative:bp,Worker:cp}[Tk()]},ep,$o={ya:Io,Rf:Mo},ap={ya:Io,Rf:Mo},bp={ya:Eo,Rf:Jo},cp={ya:Io,Rf:Jo};var fp=function(){this.dg=!1;Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.dg},set:function(a){this.dg=a},enumerable:!1})};var gp=function(a){this.Ng(a)}; 440gp.prototype.Ng=function(a){var b=a.url;if(typeof b==="undefined")throw new P("missing-continue-uri");if(typeof b!=="string"||typeof b==="string"&&!b.length)throw new P("invalid-continue-uri");this.qk=b;this.Qh=this.ag=null;this.Ki=!1;var c=a.android;if(c&&typeof c==="object"){b=c.packageName;var d=c.installApp;c=c.minimumVersion;if(typeof b==="string"&&b.length){this.ag=b;if(typeof d!=="undefined"&&typeof d!=="boolean")throw new P("argument-error","installApp property must be a boolean when specified.");this.Ki= 441!!d;if(typeof c!=="undefined"&&(typeof c!=="string"||typeof c==="str
441ing"&&!c.length))throw new P("argument-error","minimumVersion property must be a non empty string when specified.");this.Qh=c||null}else{if(typeof b!=="undefined")throw new P("argument-error","packageName property must be a non empty string when specified.");if(typeof d!=="undefined"||typeof c!=="undefined")throw new P("missing-android-pkg-name");}}else if(typeof c!=="undefined")throw new P("argument-error","android property must be a non null object when specified."); 442this.Fi=null;if((b=a.iOS)&&typeof b==="object")if(b=b.bundleId,typeof b==="string"&&b.length)this.Fi=b;else{if(typeof b!=="undefined")throw new P("argument-error","bundleId property must be a non empty string when specified.");}else if(typeof b!=="undefined")throw new P("argument-error","iOS property must be a non null object when specified.");b=a.handleCodeInApp;if(typeof b!=="undefined"&&typeof b!=="boolean")throw new P("argument-error","handleCodeInApp property must be a boolean when specified."); 443this.Vh=!!b;a=a.dynamicLinkDomain;if(typeof a!=="undefined"&&(typeof a!=="string"||typeof a==="string"&&!a.length))throw new P("argument-error","dynamicLinkDomain property must be a non empty string when specified.");this.yk=a||null};var hp=function(a){var b={};b.continueUrl=a.qk;b.canHandleCodeInApp=a.Vh;if(b.androidPackageName=a.ag)b.androidMinimumVersion=a.Qh,b.androidInstallApp=a.Ki;b.iOSBundleId=a.Fi;b.dynamicLinkDomain=a.yk;for(var c in b)b[c]===null&&delete b[c];return b};var ip=function(a,b){this.uk=b;O(this,"verificationId",a)};ip.prototype.confirm=function(a){a=Fm(this.verificationId,a);return this.uk(a)};var jp=function(a,b,c,d){return(new Bm(a)).verifyPhoneNumber(b,c).then(function(e){return new ip(e,d)})};var kp=function(a,b,c){this.Hl=a;this.Yl=b;this.Mk=c;this.uf=3E4;this.Ph=96E4;this.Zl=!1;this.Bd=null;this.Sc=this.uf;if(this.Ph<this.uf)throw Error("Proactive refresh lower bound greater than upper bound!");};kp.prototype.start=function(){this.Sc=this.uf;lp(this,!0)}; 444var mp=function(a,b){if(b)return a.Sc=a.uf,a.Mk();b=a.Sc;a.Sc*=2;a.Sc>a.Ph&&(a.Sc=a.Ph);return b},lp=function(a,b){a.stop();a.Bd=Wj(mp(a,b)).then(function(){return a.Zl?G():jl()}).then(function(){return a.Hl()}).then(function(){lp(a,!0)}).l(function(c){a.Yl(c)&&lp(a,!1)})};kp.prototype.stop=function(){this.Bd&&(this.Bd.cancel(),this.Bd=null)};var tp=function(a){var b={};b["facebook.com"]=np;b["google.com"]=op;b["github.com"]=pp;b["twitter.com"]=qp;var c=a&&a.providerId;try{if(c)return b[c]?new b[c](a):new rp(a);if(typeof a.idToken!=="undefined")return new sp(a)}catch(d){}return null},sp=function(a){var b=a.providerId;if(!b&&a.idToken){var c=Rl(a.idToken);c&&c.kh&&(b=c.kh)}if(!b)throw Error("Invalid additional user info!");if(b=="anonymous"||b=="custom")b=null;c=!1;typeof a.isNewUser!=="undefined"?c=!!a.isNewUser:a.kind==="identitytoolkit#SignupNewUserResponse"&& 445(c=!0);O(this,"providerId",b);O(this,"isNewUser",c)},rp=function(a){sp.call(this,a);a=el(a.rawUserInfo||"{}");O(this,"profile",wl(a||{}))};q(rp,sp);var np=function(a){rp.call(this,a);if(this.providerId!="facebook.com")throw Error("Invalid provider ID!");};q(np,rp);var pp=function(a){rp.call(this,a);if(this.providerId!="github.com")throw Error("Invalid provider ID!");O(this,"username",this.profile&&this.profile.login||null)};q(pp,rp); 446var op=function(a){rp.call(this,a);if(this.providerId!="google.com")throw Error("Invalid provider ID!");};q(op,rp);var qp=function(a){rp.call(this,a);if(this.providerId!="twitter.com")throw Error("Invalid provider ID!");O(this,"username",a.screenName||null)};q(qp,rp);var up={LOCAL:"local",NONE:"none",SESSION:"session"};function vp(a){var b=new P("invalid-persistence-type"),c=new P("unsupported-persistence-type");a:{for(d in up)if(up[d]==a){var d=!0;break a}d=!1}if(!d||typeof a!=="string")throw b;switch(Tk()){case "ReactNative":if(a==="session")throw c;break;case "Node":if(a!=="none")throw c;break;case "Worker":if(a==="session"||!No()&&a!=="none")throw c;break;default:if(!Zk()&&a!=="none")throw c;}} 447var wp=function(){var a=!fl(zk())&&Rk()?!0:!1,b=bl(),c=Zk();this.Wi="firebase";this.yh=":";this.am=a;this.xj=b;this.Vj=c;this.hb={};ep||(ep=new dp);a=ep;try{this.lj=!Ak()&&ml()||!r.indexedDB?new a.xg.ya:new Zo(Sk()?new Fo:new a.xg.ya)}catch(d){this.lj=new Fo,this.xj=!0}try{this.Nj=new a.xg.Rf}catch(d){this.Nj=new Fo}this.fl=new Fo;this.Jh=v(this.Lj,this);this.Ta={}},xp,yp=function(){xp||(xp=new wp);return xp},zp=function(a,b){switch(b){case "session":return a.Nj;case "none":return a.fl;default:return a.lj}}; 448wp.prototype.rb=function(a,b){return this.Wi+this.yh+a.name+(b?this.yh+b:"")};var Ap=function(a,b,c){var d=a.rb(b,c),e=zp(a,b.ya);return a.get(b,c).then(function(f){var g=null;try{g=el(r.localStorage.getItem(d))}catch(h){}if(g&&!f)return r.localStorage.removeItem(d),a.set(b,g,c);g&&f&&e.type!="localStorage"&&r.localStorage.removeItem(d)})};k=wp.prototype;k.get=function(a,b){return zp(this,a.ya).get(this.rb(a,b))}; 449k.remove=function(a,b){b=this.rb(a,b);a.ya=="local"&&(this.Ta[b]=null);return zp(this,a.ya).remove(b)};k.set=function(a,b,c){var d=this.rb(a,c),e=this,f=zp(this,a.ya);return f.set(d,b).then(function(){return f.get(d)}).then(function(g){a.ya=="local"&&(e.Ta[d]=g)})};k.addListener=function(a,b,c){a=this.rb(a,b);this.Vj&&(this.Ta[a]=r.localStorage.getItem(a));bc(this.hb)&&this.Hh();this.hb[a]||(this.hb[a]=[]);this.hb[a].push(c)}; 450k.removeListener=function(a,b,c){a=this.rb(a,b);this.hb[a]&&(Xb(this.hb[a],function(d){return d==c}),this.hb[a].length==0&&delete this.hb[a]);bc(this.hb)&&this.Qf()};k.Hh=function(){zp(this,"local").rc(this.Jh);this.xj||(Ak()||!ml())&&r.indexedDB||!this.Vj||Bp(this)}; 451var Bp=function(a){Cp(a);a.Sg=setInterval(function(){for(var b in a.hb){var c=r.localStorage.getItem(b),d=a.Ta[b];c!=d&&(a.Ta[b]=c,c=new Gi({type:"storage",key:b,target:window,oldValue:d,newValue:c,dh:!0}),a.Lj(c))}},1E3)},Cp=function(a){a.Sg&&(clearInterval(a.Sg),a.Sg=null)};wp.prototype.Qf=function(){zp(this,"local").Dc(this.Jh);Cp(this)};
452wp.prototype.Lj=function(a){if(a&&a.Ik){var b=a.ab.key;if(b==null)for(var c in this.hb){var d=this.Ta[c];typeof d==="undefined"&&(d=null);var e=r.localStorage.getItem(c);e!==d&&(this.Ta[c]=e,this.mg(c))}else if(b.indexOf(this.Wi+this.yh)==0&&this.hb[b]){typeof a.ab.dh!=="undefined"?zp(this,"local").Dc(this.Jh):Cp(this);if(this.am)if(c=r.localStorage.getItem(b),d=a.ab.newValue,d!==c)d!==null?r.localStorage.setItem(b,d):r.localStorage.removeItem(b);else if(this.Ta[b]===d&&typeof a.ab.dh==="undefined")return; 453var f=this;c=function(){if(typeof a.ab.dh!=="undefined"||f.Ta[b]!==r.localStorage.getItem(b))f.Ta[b]=r.localStorage.getItem(b),f.mg(b)};Rc&&dd&&dd==10&&r.localStorage.getItem(b)!==a.ab.newValue&&a.ab.newValue!==a.ab.oldValue?setTimeout(c,10):c()}}else z(a,v(this.mg,this))};wp.prototype.mg=function(a){this.hb[a]&&z(this.hb[a],function(b){b()})};var Dp=function(a){this.W=a;this.O=yp()},Fp=function(a){return a.O.get(Ep,a.W).then(function(b){return El(b)})},Gp=function(a){return a.O.remove(Ep,a.W)};Dp.prototype.Gc=function(a){this.O.addListener(Ep,this.W,a)};Dp.prototype.Id=function(a){this.O.removeListener(Ep,this.W,a)};var Ip=function(a){return a.O.get(Hp,a.W).then(function(b){return El(b)})},Ep={name:"authEvent",ya:"local"},Hp={name:"redirectEvent",ya:"session"};var Jp=function(){this.O=yp()};Jp.prototype.de=function(){return this.O.get(Kp,void 0)};var Kp={name:"sessionId",ya:"session"};var Lp=function(){this.Tg=null;this.Re=[]};Lp.prototype.subscribe=function(a){var b=this;this.Re.push(a);this.Tg||(this.Tg=function(c){for(var d=0;d<b.Re.length;d++)b.Re[d](c)},a=N("universalLinks.subscribe",r),typeof a==="function"&&a(null,this.Tg))};Lp.prototype.unsubscribe=function(a){Xb(this.Re,function(b){return b==a})};var Mp=null;var Np=function(a,b,c,d,e,f){this.Ca=a;this.ka=b;this.ma=c;this.N=f;this.Ic=d||null;this.Ka=e||null;this.Mj=b+":"+c;this.dm=new Jp;this.ui=new Dp(this.Mj);this.Mg=null;this.Zb=[];this.ll=500;this.Ml=2E3;this.he=this.Df=null},Op=function(a){return new P("invalid-cordova-configuration",a)}; 454Np.prototype.Qc=function(){return this.ie?this.ie:this.ie=Pk().then(function(){if(typeof N("universalLinks.subscribe",r)!=="function")throw Op("cordova-universal-links-plugin-fix is not installed");if(typeof N("BuildInfo.packageName",r)==="undefined")throw Op("cordova-plugin-buildinfo is not installed");if(typeof N("cordova.plugins.browsertab.openUrl",r)!=="function")throw Op("cordova-plugin-browsertab is not installed");if(typeof N("cordova.InAppBrowser.open",r)!=="function")throw Op("cordova-plugin-inappbrowser is not installed"); 455},function(){throw new P("cordova-not-ready");})};var Pp=function(){for(var a=20,b=[];a>0;)b.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(Math.random()*62))),a--;return b.join("")},Qp=function(a){var b=new Ci;b.update(a);return qi(b.digest())};k=Np.prototype;k.Ce=function(a,b){b(new P("operation-not-supported-in-this-environment"));return G()};k.te=function(){return H(new P("operation-not-supported-in-this-environment"))};k.Oj=function(){return!1};k.Jj=function(){return!0}; 456k.Ci=function(){return!0}; 457k.ue=function(a,b,c,d){if(this.Df)return H(new P("redirect-operation-pending"));var e=this,f=r.document,g=null,h=null,l=null,m=null;return this.Df=G().then(function(){Hm(b);return Rp(e)}).then(function(){return Sp(e,a,b,c,d)}).then(function(){return(new F(function(p,x){h=function(){var A=N("cordova.plugins.browsertab.close",r);p();typeof A==="function"&&A();e.he&&typeof e.he.close==="function"&&(e.he.close(),e.he=null);return!1};e.Gc(h);l=function(){g||(g=Wj(e.Ml).then(function(){x(new P("redirect-cancelled-by-user"))}))};m= 458function(){il()&&l()};f.addEventListener("resume",l,!1);zk().toLowerCase().match(/android/)||f.addEventListener("visibilitychange",m,!1)})).l(function(p){return Tp(e).then(function(){throw p;})})}).Ec(function(){l&&f.removeEventListener("resume",l,!1);m&&f.removeEventListener("visibilitychange",m,!1);g&&g.cancel();h&&e.Id(h);e.Df=null})}; 459var Sp=function(a,b,c,d,e){var f=Pp(),g=new Dl(b,d,null,f,new P("no-auth-event"),null,e),h=N("BuildInfo.packageName",r);
459if(typeof h!=="string")throw new P("invalid-cordova-configuration");var l=N("BuildInfo.displayName",r),m={};if(zk().toLowerCase().match(/iphone|ipad|ipod/))m.ibi=h;else if(zk().toLowerCase().match(/android/))m.apn=h;else return H(new P("operation-not-supported-in-this-environment"));l&&(m.appDisplayName=l);f=Qp(f);m.sessionId=f;var p=go(a.Ca,a.ka,a.ma,b,c,null,d,a.Ic,m,a.Ka,e,a.N); 460return a.Qc().then(function(){var x=a.Mj;return a.dm.O.set(Ep,g.U(),x)}).then(function(){var x=N("cordova.plugins.browsertab.isAvailable",r);if(typeof x!=="function")throw new P("invalid-cordova-configuration");var A=null;x(function(S){if(S){A=N("cordova.plugins.browsertab.openUrl",r);if(typeof A!=="function")throw new P("invalid-cordova-configuration");A(p)}else{A=N("cordova.InAppBrowser.open",r);if(typeof A!=="function")throw new P("invalid-cordova-configuration");S=A;var Ba=zk();Ba=!(!Ba.match(/(iPad|iPhone|iPod).*OS 7_\d/i)&& 461!Ba.match(/(iPad|iPhone|iPod).*OS 8_\d/i));a.he=S(p,Ba?"_blank":"_system","location=yes")}})})};Np.prototype.Xd=function(a){for(var b=0;b<this.Zb.length;b++)try{this.Zb[b](a)}catch(c){}}; 462var Rp=function(a){a.Mg||(a.Mg=a.Qc().then(function(){return new F(function(b){var c=function(d){b(d);a.Id(c);return!1};a.Gc(c);Up(a)})}));return a.Mg},Tp=function(a){var b=null;return Fp(a.ui).then(function(c){b=c;return Gp(a.ui)}).then(function(){return b})},Up=function(a){var b=new Dl("unknown",null,null,null,new P("no-auth-event")),c=!1,d=Wj(a.ll).then(function(){return Tp(a).then(function(){c||a.Xd(b)})}),e=function(g){c=!0;d&&d.cancel();Tp(a).then(function(h){var l=b;if(h&&g&&g.url){var m=null; 463l=Nl(g.url);l.indexOf("/__/auth/callback")!=-1&&(m=M(l),m=el(ok(m,"firebaseError")||null),m=(m=typeof m==="object"?Cl(m):null)?new Dl(h.getType(),h.La,null,null,m,null,h.na):new Dl(h.getType(),h.La,l,h.de(),null,null,h.na));l=m||b}a.Xd(l)})},f=r.handleOpenURL;r.handleOpenURL=function(g){g.toLowerCase().indexOf(N("BuildInfo.packageName",r).toLowerCase()+"://")==0&&e({url:g});if(typeof f==="function")try{f(g)}catch(h){console.error(h)}};Mp||(Mp=new Lp);Mp.subscribe(e)}; 464Np.prototype.Gc=function(a){this.Zb.push(a);Rp(this).l(function(b){b.code==="auth/invalid-cordova-configuration"&&(b=new Dl("unknown",null,null,null,new P("no-auth-event")),a(b))})};Np.prototype.Id=function(a){Xb(this.Zb,function(b){return b==a})};var Vp=function(a){this.W=a;this.O=yp()},Xp=function(a){return a.O.set(Wp,"pending",a.W)},Yp=function(a){return a.O.remove(Wp,a.W)},Zp=function(a){return a.O.get(Wp,a.W).then(function(b){return b=="pending"})},Wp={name:"pendingRedirect",ya:"session"};var dq=function(a,b,c,d){this.Ff={};this.Rg=0;this.Ca=a;this.ka=b;this.ma=c;this.N=d;this.Ee=[];this.xd=!1;this.hg=v(this.Gg,this);this.zc=new $p(this);this.fh=new aq(this);this.qe=new Vp(bq(this.ka,this.ma));this.Fc={};this.Fc.unknown=this.zc;this.Fc.signInViaRedirect=this.zc;this.Fc.linkViaRedirect=this.zc;this.Fc.reauthViaRedirect=this.zc;this.Fc.signInViaPopup=this.fh;this.Fc.linkViaPopup=this.fh;this.Fc.reauthViaPopup=this.fh;this.ub=cq(this.Ca,this.ka,this.ma,yk,this.N)},cq=function(a,b,c,d, 465e){var f=firebase.SDK_VERSION||null;return Ok()?new Np(a,b,c,f,d,e):new bo(a,b,c,f,d,e)};dq.prototype.reset=function(){this.xd=!1;this.ub.Id(this.hg);this.ub=cq(this.Ca,this.ka,this.ma,null,this.N);this.Ff={}};dq.prototype.ld=function(){this.zc.ld()};dq.prototype.initialize=function(){var a=this;this.xd||(this.xd=!0,this.ub.Gc(this.hg));var b=this.ub;return this.ub.Qc().l(function(c){a.ub==b&&a.reset();throw c;})}; 466var gq=function(a){a.ub.Jj()&&a.initialize().l(function(b){var c=new Dl("unknown",null,null,null,new P("operation-not-supported-in-this-environment"));eq(b)&&a.Gg(c)});a.ub.Ci()||fq(a.zc)};k=dq.prototype;k.subscribe=function(a){Ub(this.Ee,a)||this.Ee.push(a);if(!this.xd){var b=this;Zp(this.qe).then(function(c){c?Yp(b.qe).then(function(){b.initialize().l(function(d){var e=new Dl("unknown",null,null,null,new P("operation-not-supported-in-this-environment"));eq(d)&&b.Gg(e)})}):gq(b)}).l(function(){gq(b)})}}; 467k.unsubscribe=function(a){Xb(this.Ee,function(b){return b==a})};
467k.Gg=function(a){if(!a)throw new P("invalid-auth-event");Date.now()-this.Rg>=6E5&&(this.Ff={},this.Rg=0);if(a&&a.getUid()&&this.Ff.hasOwnProperty(a.getUid()))return!1;for(var b=!1,c=0;c<this.Ee.length;c++){var d=this.Ee[c];if(d.Uh(a.getType(),a.La)){if(b=this.Fc[a.getType()])b.rj(a,d),a&&(a.de()||a.La)&&(this.Ff[a.getUid()]=!0,this.Rg=Date.now());b=!0;break}}fq(this.zc);return b};k.getRedirectResult=function(){return this.zc.getRedirectResult()}; 468k.te=function(a,b,c,d,e,f){var g=this;return this.ub.te(a,b,c,function(){g.xd||(g.xd=!0,g.ub.Gc(g.hg))},function(){g.reset()},d,e,f)};var eq=function(a){return a&&a.code=="auth/cordova-not-ready"?!0:!1};dq.prototype.ue=function(a,b,c,d){var e=this,f;return Xp(this.qe).then(function(){return e.ub.ue(a,b,c,d).l(function(g){if(eq(g))throw new P("operation-not-supported-in-this-environment");f=g;return Yp(e.qe).then(function(){throw f;})}).then(function(){return e.ub.Oj()?new F(function(){}):Yp(e.qe).then(function(){return e.getRedirectResult()}).then(function(){}).l(function(){})})})}; 469dq.prototype.Ce=function(a,b,c,d){return this.ub.Ce(c,function(e){a.Wc(b,null,e,d)},hq.get())};var bq=function(a,b,c){a=a+":"+b;c&&(a=a+":"+c.url);return a},jq=function(a,b,c,d){var e=bq(b,c,d);iq[e]||(iq[e]=new dq(a,b,c,d));return iq[e]},hq=new hl(2E3,1E4),kq=new hl(3E4,6E4),iq={},$p=function(a){this.O=a;this.Hd=null;this.xe=[];this.we=[];this.Gd=null;this.Pj=this.ye=!1};$p.prototype.reset=function(){this.Hd=null;this.Gd&&(this.Gd.cancel(),this.Gd=null)}; 470$p.prototype.rj=function(a,b){if(a){this.reset();this.ye=!0;var c=a.getType(),d=a.La,e=a.getError()&&a.getError().code=="auth/web-storage-unsupported",f=a.getError()&&a.getError().code=="auth/operation-not-supported-in-this-environment";this.Pj=!(!e&&!f);c!="unknown"||e||f?a.Db?this.ih(a,b):b.ae(c,d)?this.jh(a,b):H(new P("invalid-auth-event")):(lq(this,!1,null,null),G())}else H(new P("invalid-auth-event"))};var fq=function(a){a.ye||(a.ye=!0,lq(a,!1,null,null))}; 471$p.prototype.ld=function(){this.ye&&!this.Pj&&lq(this,!1,null,null)};$p.prototype.ih=function(a){lq(this,!0,null,a.getError());G()};$p.prototype.jh=function(a,b){var c=this,d=a.La,e=a.getType();b=b.ae(e,d);d=a.Od;e=a.de();var f=a.hh,g=a.na,h=!!a.getType().match(/Redirect$/);b(d,e,g,f).then(function(l){lq(c,h,l,null)}).l(function(l){lq(c,h,null,l)})}; 472var mq=function(a,b){a.Hd=function(){return H(b)};if(a.we.length)for(var c=0;c<a.we.length;c++)a.we[c](b)},nq=function(a,b){a.Hd=function(){return G(b)};if(a.xe.length)for(var c=0;c<a.xe.length;c++)a.xe[c](b)},lq=function(a,b,c,d){b?d?mq(a,d):nq(a,c):nq(a,{user:null});a.xe=[];a.we=[]};$p.prototype.getRedirectResult=function(){var a=this;return new F(function(b,c){a.Hd?a.Hd().then(b,c):(a.xe.push(b),a.we.push(c),oq(a))})}; 473var oq=function(a){var b=new P("timeout");a.Gd&&a.Gd.cancel();a.Gd=Wj(kq.get()).then(function(){a.Hd||(a.ye=!0,lq(a,!0,null,b))})},aq=function(a){this.O=a};aq.prototype.rj=function(a,b){if(a){var c=a.getType(),d=a.La;a.Db?this.ih(a,b):b.ae(c,d)?this.jh(a,b):H(new P("invalid-auth-event"))}else H(new P("invalid-auth-event"))};aq.prototype.ih=function(a,b){var c=a.La,d=a.getType();b.Wc(d,null,a.getError(),c);G()}; 474aq.prototype.jh=function(a,b){var c=a.La,d=a.getType(),e=b.ae(d,c),f=a.Od,g=a.de();e(f,g,a.na,a.hh).then(function(h){b.Wc(d,h,null,c)}).l(function(h){b.Wc(d,null,h,c)})};var pq=function(a,b,c){var d=b&&b.mfaPendingCredential;if(!d)throw new P("argument-error","Internal assert: Invalid MultiFactorResolver");this.Oe=a;this.zk=cc(b);this.Dl=c;this.Cj=new Tl(null,d);this.Di=[];var e=this;z(b.mfaInfo||[],function(f){(f=Il(f))&&e.Di.push(f)});O(this,"auth",this.Oe);O(this,"session",this.Cj);O(this,"hints",this.Di)}; 475pq.prototype.resolveSignIn=function(a){var b=this;return a.process(this.Oe.o,this.Cj).then(function(c){var d=cc(b.zk);delete d.mfaInfo;delete d.mfaPendingCredential;ec(d,c);return b.Dl(d)})};var qq=function(a,b,c,d){P.call(this,"multi-factor-auth-required",d,b);this.Sl=new pq(a,b,c);O(this,"resolver",this.Sl)};q(qq,P);var rq=function(a,b,c){if(a&&u(a.serverResponse)&&a.code==="auth/multi-factor-auth-required")try{return new qq(b,a.serverResponse,c,a.message)}catch(d){}return null};var sq=function(){};sq.prototype.process=function(a,b,c){return b.type=="enroll"?tq(this,a,b,c):uq(this,a,b)};var tq=function(a,b,c,d){return c.be().then(function(e){e={idToken:e};
475typeof d!=="undefined"&&(e.displayName=d);ec(e,{phoneVerificationInfo:xm(a.Ug)});return Q(b,Ln,e)})},uq=function(a,b,c){return c.be().then(function(d){d={mfaPendingCredential:d};ec(d,{phoneVerificationInfo:xm(a.Ug)});return Q(b,Mn,d)})},vq=function(a){O(this,"factorId",a.providerId);this.Ug=a};w(vq,sq); 476var wq=function(a){vq.call(this,a);if(this.Ug.providerId!=Bm.PROVIDER_ID)throw new P("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential");};w(wq,vq);var xq=function(a,b){Fi.call(this,a);for(var c in b)this[c]=b[c]};q(xq,Fi);var zq=function(a,b){this.oc=a;this.We=[];this.um=v(this.Yk,this);Si(this.oc,"userReloaded",this.um);var c=[];b&&b.multiFactor&&b.multiFactor.enrolledFactors&&z(b.multiFactor.enrolledFactors,function(d){var e=null,f={};if(d){d.uid&&(f.mfaEnrollmentId=d.uid);d.displayName&&(f.displayName=d.displayName);d.enrollmentTime&&(f.enrolledAt=(new Date(d.enrollmentTime)).toISOString());if(d.phoneNumber){f.phoneInfo=d.phoneNumber;try{e=new Gl(f)}catch(g){}}else if(d.totpInfo){f.totpInfo=d.totpInfo;try{e=new Hl(f)}catch(g){}}else e= 477null;d=e}else d=null;d&&c.push(d)});yq(this,c)},Aq=function(a){var b=[];z(a.mfaInfo||[],function(c){(c=Il(c))&&b.push(c)});return b};zq.prototype.Yk=function(a){yq(this,Aq(a.vm))};var yq=function(a,b){a.We=b;O(a,"enrolledFactors",b)};k=zq.prototype;k.copy=function(a){yq(this,a.We)};k.getSession=function(){return this.oc.getIdToken().then(function(a){return new Tl(a,null)})}; 478k.enroll=function(a,b){var c=this,d=this.oc.o;return this.getSession().then(function(e){return a.process(d,e,b)}).then(function(e){Bq(c.oc,e);return c.oc.reload()})};k.unenroll=function(a){var b=this,c=typeof a==="string"?a:a.uid,d=this.oc.o;return this.oc.getIdToken().then(function(e){return Q(d,Qn,{idToken:e,mfaEnrollmentId:c})}).then(function(e){var f=Rb(b.We,function(g){return g.uid!=c});yq(b,f);Bq(b.oc,e);return b.oc.reload().l(function(g){if(g.code!="auth/user-token-expired")throw g;})})}; 479k.U=function(){return{multiFactor:{enrolledFactors:Sb(this.We,function(a){return a.U()})}}};var Cq=function(a){this.o=a;this.Ya=this.Va=null;this.od=Date.now()};Cq.prototype.U=function(){return{apiKey:this.o.ka,refreshToken:this.Va,accessToken:this.Ya&&this.Ya.toString(),expirationTime:this.od}};var Dq=function(a,b){typeof b==="undefined"&&(a.Ya?(b=a.Ya,b=b.Bg-b.al):b=0);a.od=Date.now()+b*1E3},Eq=function(a,b){a.Ya=Rl(b.idToken||"");a.Va=b.refreshToken;b=b.expiresIn;Dq(a,typeof b!=="undefined"?Number(b):void 0)};Cq.prototype.copy=function(a){this.Ya=a.Ya;this.Va=a.Va;this.od=a.od}; 480var Fq=function(a,b){return $m(a.o,b).then(function(c){a.Ya=Rl(c.access_token);a.Va=c.refresh_token;Dq(a,c.expires_in);return{accessToken:a.Ya.toString(),refreshToken:a.Va}}).l(function(c){c.code=="auth/user-token-expired"&&(a.Va=null);throw c;})};Cq.prototype.getToken=function(a){a=!!a;return this.Ya&&!this.Va?H(new P("user-token-expired")):a||!this.Ya||Date.now()>this.od-3E4?this.Va?Fq(this,{grant_type:"refresh_token",refresh_token:this.Va}):G(null):G({accessToken:this.Ya.toString(),refreshToken:this.Va})};var Gq=function(a,b){this.ai=a||null;this.Oi=b||null;tl(this,{lastSignInTime:ll(b||null),creationTime:ll(a||null)})};Gq.prototype.clone=function(){return new Gq(this.ai,this.Oi)};Gq.prototype.U=function(){return{lastLoginAt:this.Oi,createdAt:this.ai}}; 481var Hq=function(a,b,c,d,e,f){tl(this,{uid:a,displayName:d||null,photoURL:e||null,email:c||null,phoneNumber:f||null,providerId:b})},R=function(a,b,c){cj.call(this);this.Ma=[];this.ka=a.apiKey;this.ma=a.appName;this.Ca=a.authDomain||null;var d=firebase.SDK_VERSION?Xk("JsCore",firebase.SDK_VERSION):null;this.o=new Qm(this.ka,xk(yk),d);(this.N=a.emulatorConfig||null)&&Um(this.o,this.N);this.Rb=new Cq(this.o);Iq(this,b.idToken);Eq(this.Rb,b);O(this,"refreshToken",this.Rb.Va);Jq(this,c||{});this.re=!1; 482this.Ca&&al()&&(this.ha=jq(this.Ca,this.ka,this.ma,this.N));this.Pf=[];this.Sb=null;this.Ed=Kq(this);this.Qd=v(this.Ig,this);var e=this;this.Kb=null;this.cj=function(f){e.Kd(f.languageCode)};this.Pg=null;this.Zi=function(f){Lq(e,f.emulatorConfig)};this.wg=null;this.Qa=[];this.aj=function(f){Mq(e,f.Hk)};this.Cg=null;this.wf=new zq(this,c);O(this,"multiFactor",this.wf)};q(R,cj);R.prototype.Kd=function(a){this.Kb=a;Sm(this.o,a)}; 483var Lq=function(a,b){a.N=b;Um(a.o,b);a.ha&&(b=a.ha,a.ha=jq(a.Ca,a.ka,a.ma,a.N),a.re&&(b.unsubscribe(a),a.ha.subscribe(a)))},Nq=function(a,b){a.Pg&&$i(a.Pg,"languageCodeChanged",a.cj);(a.Pg=b)&&Si(b,"languageCodeChanged",a.cj)},Oq=function(a,b){a.wg&&$i(a.wg,"emulatorConfigChanged",a.Zi);(a.wg=b)&&Si(b,"emulatorConfigChanged",a.Zi)},Mq=function(a,b){a.Qa=b;
483Vm(a.o,firebase.SDK_VERSION?Xk("JsCore",firebase.SDK_VERSION,a.Qa):null)},ao=function(a){return Yb(a.Qa)},Pq=function(a,b){a.Cg&&$i(a.Cg,"frameworkChanged", 484a.aj);(a.Cg=b)&&Si(b,"frameworkChanged",a.aj)};R.prototype.Ig=function(){this.Ed.Bd&&(this.Ed.stop(),this.Ed.start())}; 485var Qq=function(a){try{return firebase.app(a.ma).auth()}catch(b){throw new P("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+a.ma+"'!");}},Kq=function(a){return new kp(function(){return a.getIdToken(!0)},function(b){return b&&b.code=="auth/network-request-failed"?!0:!1},function(){var b=a.Rb.od-Date.now()-3E5;return b>0?b:0})},Rq=function(a){a.nd||a.Ed.Bd||(a.Ed.start(),$i(a,"tokenChanged",a.Qd),Si(a,"tokenChanged",a.Qd))},Sq=function(a){$i(a,"tokenChanged",a.Qd); 486a.Ed.stop()},Iq=function(a,b){a.Ni=b;O(a,"_lat",b)},Tq=function(a,b){Xb(a.Pf,function(c){return c==b})},Uq=function(a){for(var b=[],c=0;c<a.Pf.length;c++)b.push(a.Pf[c](a));return rg(b).then(function(){return a})},Vq=function(a){a.ha&&!a.re&&(a.re=!0,a.ha.subscribe(a))},Jq=function(a,b){tl(a,{uid:b.uid,displayName:b.displayName||null,photoURL:b.photoURL||null,email:b.email||null,emailVerified:b.emailVerified||!1,phoneNumber:b.phoneNumber||null,isAnonymous:b.isAnonymous||!1,tenantId:b.tenantId||null, 487metadata:new Gq(b.createdAt,b.lastLoginAt),providerData:[]});a.o.na=a.tenantId},Wq=function(){},Xq=function(a){return G().then(function(){if(a.nd)throw new P("app-deleted");})},Yq=function(a){return Sb(a.providerData,function(b){return b.providerId})},$q=function(a,b){b&&(Zq(a,b.providerId),a.providerData.push(b))},Zq=function(a,b){Xb(a.providerData,function(c){return c.providerId==b})},ar=function(a,b,c){(b!="uid"||c)&&a.hasOwnProperty(b)&&O(a,b,c)}; 488R.prototype.copy=function(a){var b=this;b!=a&&(tl(this,{uid:a.uid,displayName:a.displayName,photoURL:a.photoURL,email:a.email,emailVerified:a.emailVerified,phoneNumber:a.phoneNumber,isAnonymous:a.isAnonymous,tenantId:a.tenantId,providerData:[]}),a.metadata?O(this,"metadata",a.metadata.clone()):O(this,"metadata",new Gq),z(a.providerData,function(c){$q(b,c)}),this.Rb.copy(a.Rb),O(this,"refreshToken",this.Rb.Va),this.wf.copy(a.wf))};R.prototype.reload=function(){var a=this;return this.u(Xq(this).then(function(){return br(a).then(function(){return Uq(a)}).then(Wq)}))}; 489var br=function(a){return a.getIdToken().then(function(b){var c=a.isAnonymous;return Q(a.o,Nn,{idToken:b}).then(v(a.Il,a)).then(function(){c||ar(a,"isAnonymous",!1);return b})})};R.prototype.getIdTokenResult=function(a){return this.getIdToken(a).then(function(b){return new Sl(b)})}; 490R.prototype.getIdToken=function(a){var b=this;return this.u(Xq(this).then(function(){return b.Rb.getToken(a)}).then(function(c){if(!c)throw new P("internal-error");c.accessToken!=b.Ni&&(Iq(b,c.accessToken),b.wc());ar(b,"refreshToken",c.refreshToken);return c.accessToken}))};var Bq=function(a,b){b.idToken&&a.Ni!=b.idToken&&(Eq(a.Rb,b),a.wc(),Iq(a,b.idToken),ar(a,"refreshToken",a.Rb.Va))};R.prototype.wc=function(){this.dispatchEvent(new xq("tokenChanged"))}; 491R.prototype.Il=function(a){a=a.users;if(!a||!a.length)throw new P("internal-error");a=a[0];Jq(this,{uid:a.localId,displayName:a.displayName,photoURL:a.photoUrl,email:a.email,emailVerified:!!a.emailVerified,phoneNumber:a.phoneNumber,lastLoginAt:a.lastLoginAt,createdAt:a.createdAt,tenantId:a.tenantId});for(var b=cr(a),c=0;c<b.length;c++)$q(this,b[c]);ar(this,"isAnonymous",!(this.email&&a.passwordHash)&&!(this.providerData&&this.providerData.length));this.dispatchEvent(new xq("userReloaded",{vm:a}))}; 492var cr=function(a){return(a=a.providerUserInfo)&&a.length?Sb(a,function(b){return new Hq(b.rawId,b.providerId,b.email,b.displayName,b.photoUrl,b.phoneNumber)}):[]};R.prototype.reauthenticateAndRetrieveDataWithCredential=function(a){ql("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead.");return this.reauthenticateWithCredential(a)}; 493R.prototype.reauthenticateWithCredential=function(a){var b=this,c=null;return this.u(a.me(this.o,this.uid).then(function(d){Bq(b,d);c=dr(b,d,"reauthenticate");b.Sb=null;return b.reload()}).then(function(){return c}),!0)};var er=function(a,b){return br(a).then(function(){if(Ub(Yq(a),b))return Uq(a).then(function(){throw new P("provider-already-linked");})})}; 494R.prototype.linkAndRetrieveDataWithCredential=function(a){ql("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead.");return this.linkWithCredential(a)};R.prototype.linkWithCredential=function(a){var b=this,c=null;return this.u(er(this,a.providerId).then(function(){return b.getIdToken()}).then(function(d){return a.yd(b.o,d)}).then(function(d){c=dr(b,d,"link");return fr(b,d)}).then(function(){return c}))}; 495R.prototype.linkWithPhoneNumber=function(a,b){var c=this;return this.u(er(this,"phone").then(function(){return jp(Qq(c),a,b,v(c.linkWithCredential,c))}))};R.prototype.reauthenticateWithPhoneNumber=function(a,b){var c=this;return this.u(G().then(function(){return jp(Qq(c),a,b,v(c.reauthenticateWithCredential,c))}),!0)};var dr=function(a,b,c){var d=Gm(b);b=tp(b);return ul({user:a,credential:d,additionalUserInfo:b,operationType:c})},fr=function(a,b){Bq(a,b);return a.reload().then(function(){return a})}; 496k=R.prototype;k.updateEmail=function(a){var b=this;return this.u(this.getIdToken().then(function(c){return b.o.updateEmail(c,a)}).then(function(c){Bq(b,c);return b.reload()}))};k.updatePhoneNumber=function(a){var b=this;return this.u(this.getIdToken().then(function(c){return a.yd(b.o,c)}).then(function(c){Bq(b,c);return b.reload()}))};k.updatePassword=function(a){var b=this;return this.u(this.getIdToken().then(function(c){return b.o.updatePassword(c,a)}).then(function(c){Bq(b,c);return b.reload()}))};
497k.updateProfile=function(a){if(a.displayName===void 0&&a.photoURL===void 0)return Xq(this);var b=this;return this.u(this.getIdToken().then(function(c){return b.o.updateProfile(c,{displayName:a.displayName,photoUrl:a.photoURL})}).then(function(c){Bq(b,c);ar(b,"displayName",c.displayName||null);ar(b,"photoURL",c.photoUrl||null);z(b.providerData,function(d){d.providerId==="password"&&(O(d,"displayName",b.displayName),O(d,"photoURL",b.photoURL))});return Uq(b)}).then(Wq))}; 498k.unlink=function(a){var b=this;return this.u(br(this).then(function(c){return Ub(Yq(b),a)?xn(b.o,c,[a]).then(function(d){var e={};z(d.providerUserInfo||[],function(f){e[f.providerId]=!0});z(Yq(b),function(f){e[f]||Zq(b,f)});e[Bm.PROVIDER_ID]||O(b,"phoneNumber",null);return Uq(b)}):Uq(b).then(function(){throw new P("no-such-provider");})}))};k.delete=function(){var a=this;return this.u(this.getIdToken().then(function(b){return Q(a.o,Kn,{idToken:b})}).then(function(){a.dispatchEvent(new xq("userDeleted"))})).then(function(){a.destroy()})}; 499k.Uh=function(a,b){return a=="linkViaPopup"&&(this.Ob||null)==b&&this.Nb||a=="reauthViaPopup"&&(this.Ob||null)==b&&this.Nb||a=="linkViaRedirect"&&(this.Ac||null)==b||a=="reauthViaRedirect"&&(this.Ac||null)==b?!0:!1};k.Wc=function(a,b,c,d){a!="linkViaPopup"&&a!="reauthViaPopup"||d!=(this.Ob||null)||(c&&this.Uc?this.Uc(c):b&&!c&&this.Nb&&this.Nb(b),this.Na&&(this.Na.cancel(),this.Na=null),delete this.Nb,delete this.Uc)}; 500k.ae=function(a,b){return a=="linkViaPopup"&&b==(this.Ob||null)?v(this.ki,this):a=="reauthViaPopup"&&b==(this.Ob||null)?v(this.li,this):a=="linkViaRedirect"&&(this.Ac||null)==b?v(this.ki,this):a=="reauthViaRedirect"&&(this.Ac||null)==b?v(this.li,this):null};k.Ze=function(){return Yk(this.uid+":::")};k.linkWithPopup=function(a){var b=this;return gr(this,"linkViaPopup",a,function(){return er(b,a.providerId).then(function(){return Uq(b)})},!1)}; 501k.reauthenticateWithPopup=function(a){return gr(this,"reauthViaPopup",a,function(){return G()},!0)}; 502var gr=function(a,b,c,d,e){if(!al())return H(new P("operation-not-supported-in-this-environment"));if(a.Sb&&!e)return H(a.Sb);var f=Al(c.providerId),g=a.Ze(),h=null;(!bl()||Rk())&&a.Ca&&c.isOAuthProvider&&(h=go(a.Ca,a.ka,a.ma,b,c,null,g,firebase.SDK_VERSION||null,null,null,a.tenantId,a.N));var l=Ik(h,f&&f.Dd,f&&f.Cd);d=d().then(function(){hr(a);if(!e)return a.getIdToken().then(function(){})}).then(function(){return a.ha.te(l,b,c,g,!!h,a.tenantId)}).then(function(){return new F(function(m,p){a.Wc(b, 503null,new P("cancelled-popup-request"),a.Ob||null);a.Nb=m;a.Uc=p;a.Ob=g;a.Na=a.ha.Ce(a,b,l,g)})}).then(function(m){l&&Hk(l);return m?ul(m):null}).l(function(m){l&&Hk(l);throw m;});return a.u(d,e)};R.prototype.linkWithRedirect=function(a){var b=this;return ir(this,"linkViaRedirect",a,function(){return er(b,a.providerId)},!1)};R.prototype.reauthenticateWithRedirect=function(a){return ir(this,"reauthViaRedirect",a,function(){return G()},!0)}; 504var ir=function(a,b,c,d,e){if(!al())return H(new P("operation-not-supported-in-this-environment"));if(a.Sb&&!e)return H(a.Sb);var f=null,g=a.Ze();d=d().then(function(){hr(a);if(!e)return a.getIdToken().then(function(){})}).then(function(){a.Ac=g;return Uq(a)}).then(function(h){a.Bc&&(h=a.Bc,h=h.O.set(jr,a.U(),h.W));return h}).then(function(){return a.ha.ue(b,c,g,a.tenantId)}).l(function(h){f=h;if(a.Bc)return kr(a.Bc);throw f;}).then(function(){if(f)throw f;});return a.u(d,e)},hr=function(a){if(!a.ha|| 505!a.re){if(a.ha&&!a.re)throw new P("internal-error");throw new P("auth-domain-config-required");}};k=R.prototype;
505k.ki=function(a,b,c,d){var e=this;this.Na&&(this.Na.cancel(),this.Na=null);var f=null;c=this.getIdToken().then(function(g){return Yl(e.o,{requestUri:a,postBody:d,sessionId:b,idToken:g})}).then(function(g){f=dr(e,g,"link");return fr(e,g)}).then(function(){return f});return this.u(c)}; 506k.li=function(a,b,c,d){var e=this;this.Na&&(this.Na.cancel(),this.Na=null);var f=null,g=G().then(function(){return Vl(Zl(e.o,{requestUri:a,sessionId:b,postBody:d,tenantId:c}),e.uid)}).then(function(h){f=dr(e,h,"reauthenticate");Bq(e,h);e.Sb=null;return e.reload()}).then(function(){return f});return this.u(g,!0)}; 507k.sendEmailVerification=function(a){var b=this,c=null;return this.u(this.getIdToken().then(function(d){c=d;return typeof a==="undefined"||bc(a)?{}:hp(new gp(a))}).then(function(d){return b.o.sendEmailVerification(c,d)}).then(function(d){if(b.email!=d)return b.reload()}).then(function(){}))}; 508k.verifyBeforeUpdateEmail=function(a,b){var c=this,d=null;return this.u(this.getIdToken().then(function(e){d=e;return typeof b==="undefined"||bc(b)?{}:hp(new gp(b))}).then(function(e){return c.o.verifyBeforeUpdateEmail(d,a,e)}).then(function(e){if(c.email!=e)return c.reload()}).then(function(){}))};k.destroy=function(){for(var a=0;a<this.Ma.length;a++)this.Ma[a].cancel("app-deleted");Nq(this,null);Oq(this,null);Pq(this,null);this.Ma=[];this.nd=!0;Sq(this);O(this,"refreshToken",null);this.ha&&this.ha.unsubscribe(this)}; 509k.u=function(a,b){var c=this,d=lr(this,a,b);this.Ma.push(d);d.Ec(function(){Vb(c.Ma,d)});return d.l(function(e){var f=null;e&&e.code==="auth/multi-factor-auth-required"&&(f=rq(e.U(),Qq(c),v(c.Hg,c)));throw f||e;})};k.Hg=function(a){var b=null,c=this;a=Vl(G(a),c.uid).then(function(d){b=dr(c,d,"reauthenticate");Bq(c,d);c.Sb=null;return c.reload()}).then(function(){return b});return this.u(a,!0)}; 510var lr=function(a,b,c){return a.Sb&&!c?(b.cancel(),H(a.Sb)):b.l(function(d){!d||d.code!="auth/user-disabled"&&d.code!="auth/user-token-expired"||(a.Sb||a.dispatchEvent(new xq("userInvalidated")),a.Sb=d);throw d;})};R.prototype.toJSON=function(){return this.U()}; 511R.prototype.U=function(){var a={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.ka,appName:this.ma,authDomain:this.Ca,stsTokenManager:this.Rb.U(),redirectEventId:this.Ac||null};this.metadata&&ec(a,this.metadata.U());z(this.providerData,function(b){var c=a.providerData,d=c.push,e={},f;for(f in b)b.hasOwnProperty(f)&&(e[f]=b[f]); 512d.call(c,e)});ec(a,this.wf.U());return a}; 513var mr=function(a){if(!a.apiKey)return null;var b={apiKey:a.apiKey,authDomain:a.authDomain,appName:a.appName,emulatorConfig:a.emulatorConfig},c={};if(a.stsTokenManager&&a.stsTokenManager.accessToken){c.idToken=a.stsTokenManager.accessToken;c.refreshToken=a.stsTokenManager.refreshToken||null;var d=a.stsTokenManager.expirationTime;d&&(c.expiresIn=(d-Date.now())/1E3)}else return null;var e=new R(b,c,a);a.providerData&&z(a.providerData,function(f){f&&$q(e,ul(f))});a.redirectEventId&&(e.Ac=a.redirectEventId); 514return e},nr=function(a,b,c,d){var e=new R(a,b);c&&(e.Bc=c);d&&Mq(e,d);return e.reload().then(function(){return e})},or=function(a,b,c,d){b=b||{apiKey:a.ka,authDomain:a.Ca,appName:a.ma};var e=a.Rb,f={};f.idToken=e.Ya&&e.Ya.toString();f.refreshToken=e.Va;b=new R(b,f);c&&(b.Bc=c);d&&Mq(b,d);b.copy(a);return b};O(R.prototype,"providerId","firebase");var pr=function(a){this.W=a;this.O=yp()},kr=function(a){return a.O.remove(jr,a.W)},qr=function(a,b){return a.O.get(jr,a.W).then(function(c){c&&b&&(c.authDomain=b);return mr(c||{})})},jr={name:"redirectUser",ya:"session"};var sr=function(a){this.W=a;this.O=yp();this.Za=null;this.Xg=this.Ng();this.O.addListener(rr("local"),this.W,v(this.nm,this))};sr.prototype.nm=function(){var a=this,b=rr("local");tr(this,function(){return G().then(function(){return a.Za&&a.Za.ya!="local"?a.O.get(b,a.W):null}).then(function(c){if(c)return ur(a,"local").then(function(){a.Za=b})})})};var ur=function(a,b){var c=[],d;for(d in up)up[d]!==b&&c.push(a.O.remove(rr(up[d]),a.W));c.push(a.O.remove(vr,a.W));return qg(c)}; 515sr.prototype.Ng=function(){var a=this,b=rr("local"),c=rr("session"),d=rr("none");return Ap(this.O,b,this.W).then(function(){return a.O.get(c,a.W)}).then(function(e){return e?c:a.O.get(d,a.W).then(function(f){return f?d:a.O.get(b,a.W).then(function(g){return g?b:a.O.get(vr,a.W).then(function(h){return h?rr(h):b})})})}).then(function(e){a.Za=e;return ur(a,e.ya)}).l(function(){a.Za||(a.Za=b)})};var rr=function(a){return{name:"authUser",ya:a}}; 516sr.prototype.setPersistence=function(a){var b=null,c=this;vp(a);return tr(this,function(){return a!=c.Za.ya?c.O.get(c.Za,c.W).then(function(d){b=d;return ur(c,a)}).then(function(){c.Za=rr(a);if(b)return c.O.set(c.Za,b,c.W)}):G()})}; 517var wr=function(a){return tr(a,function(){return a.O.set(vr,a.Za.ya,a.W)})},xr=function(a,b){return tr(a,function(){return a.O.set(a.Za,b.U(),a.W)})},yr=function(a){return tr(a,function(){return a.O.remove(a.Za,a.W)})},zr=function(a,b,c){return tr(a,function(){return a.O.get(a.Za,a.W).then(function(d){d&&b&&(d.authDomain=b);d&&c&&(d.emulatorConfig=c);return mr(d||{})})})},tr=function(a,b){a.Xg=a.Xg.then(b,b);return a.Xg},vr={name:"persistence",ya:"session"};var T=function(a){cj.call(this);this.Cb=!1;this.Gj=new fp;O(this,"settings",this.Gj);O(this,"app",a);if(this.V().options&&this.V().options.apiKey)a=firebase.SDK_VERSION?Xk("JsCore",f
517irebase.SDK_VERSION):null,this.o=new Qm(this.V().options&&this.V().options.apiKey,xk(yk),a);else throw new P("invalid-api-key");this.Ma=[];this.Hc=[];this.Pd=[];this.Cl=firebase.INTERNAL.createSubscribe(v(this.jl,this));this.Ke=void 0;this.Fl=firebase.INTERNAL.createSubscribe(v(this.kl,this));Ar(this,null);a=this.V().options.apiKey; 518var b=this.V().name;this.Tb=new sr(a+":"+b);a=this.V().options.apiKey;b=this.V().name;this.Vc=new pr(a+":"+b);this.Ne=this.u(Br(this));this.Pb=this.u(Cr(this));this.rf=!1;this.Fg=v(this.om,this);this.Tj=v(this.uc,this);this.Qd=v(this.Ig,this);this.Rj=v(this.Wk,this);this.Sj=v(this.Xk,this);this.ha=null;Dr(this);this.INTERNAL={};this.INTERNAL["delete"]=v(this.delete,this);this.INTERNAL.logFramework=v(this.vl,this);this.Lc=0;Er(this);this.Qa=[];this.N=null};q(T,cj); 519T.prototype.setPersistence=function(a){a=this.Tb.setPersistence(a);return this.u(a)};T.prototype.Kd=function(a){this.Kb===a||this.Cb||(this.Kb=a,Sm(this.o,this.Kb),this.dispatchEvent(new Fr(this.Kb)))};T.prototype.useDeviceLanguage=function(){var a=r.navigator;this.Kd(a?a.languages&&a.languages[0]||a.language||a.userLanguage||null:null)}; 520T.prototype.useEmulator=function(a,b){if(!this.N){if(this.ha)throw new P("argument-error","useEmulator() must be called immediately following firebase.auth() initialization.");b=b?!!b.disableWarnings:!1;Gr(b);this.N={url:a,disableWarnings:b};this.Gj.dg=!0;Um(this.o,this.N);this.dispatchEvent(new Hr(this.N))}}; 521var Gr=function(a){typeof console!=="undefined"&&typeof console.info==="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.");r.document&&!a&&Nk().then(function(){var b=r.document.createElement("p");b.innerText="Running in emulator mode. Do not use with production credentials.";b.style.position="fixed";b.style.width="100%";b.style.backgroundColor="#ffffff";b.style.border=".1em solid #000000";b.style.color= 522"#b50000";b.style.bottom="0px";b.style.left="0px";b.style.margin="0px";b.style.zIndex=1E4;b.style.textAlign="center";b.classList.add("firebase-emulator-warning");r.document.body.appendChild(b)})};T.prototype.vl=function(a){this.Qa.push(a);Vm(this.o,firebase.SDK_VERSION?Xk("JsCore",firebase.SDK_VERSION,this.Qa):null);this.dispatchEvent(new Ir(this.Qa))};T.prototype.Ch=function(a){this.na===a||this.Cb||(this.na=a,this.o.na=this.na)}; 523var Er=function(a){Object.defineProperty(a,"lc",{get:function(){return this.Kb},set:function(b){this.Kd(b)},enumerable:!1});a.Kb=null;Object.defineProperty(a,"ti",{get:function(){return this.na},set:function(b){this.Ch(b)},enumerable:!1});a.na=null;Object.defineProperty(a,"emulatorConfig",{get:function(){if(this.N){var b=M(this.N.url);b=ul({protocol:b.Xa,host:b.Ia,port:b.Xb,options:ul({disableWarnings:this.N.disableWarnings})})}else b=null;return b},enumerable:!1})}; 524T.prototype.toJSON=function(){return{apiKey:this.V().options.apiKey,authDomain:this.V().options.authDomain,appName:this.V().name,currentUser:U(this)&&U(this).U()}}; 525var Jr=function(a){return a.Ak||H(new P("auth-domain-config-required"))},Dr=function(a){var b=a.V().options.authDomain,c=a.V().options.apiKey;b&&al()&&(a.Ak=a.Ne.then(function(){if(!a.Cb){a.ha=jq(b,c,a.V().name,a.N);a.ha.subscribe(a);U(a)&&Vq(U(a));if(a.Cc){Vq(a.Cc);var d=a.Cc;d.Kd(a.Kb);Nq(d,a);d=a.Cc;Mq(d,a.Qa);Pq(d,a);d=a.Cc;Lq(d,a.N);Oq(d,a);a.Cc=null}return a.ha}}))};k=T.prototype; 526k.Uh=function(a,b){switch(a){case "unknown":case "signInViaRedirect":return!0;case "signInViaPopup":return this.Ob==b&&!!this.Nb;default:return!1}};k.Wc=function(a,b,c,d){a=="signInViaPopup"&&this.Ob==d&&(c&&this.Uc?this.Uc(c):b&&!c&&this.Nb&&this.Nb(b),this.Na&&(this.Na.cancel(),this.Na=null),delete this.Nb,delete this.Uc)};k.ae=function(a,b){return a=="signInViaRedirect"||a=="signInViaPopup"&&this.Ob==b&&this.Nb?v(this.Ek,this):null}; 527k.Ek=function(a,b,c,d){var e=this,f={requestUri:a,postBody:d,sessionId:b,tenantId:c};this.Na&&(this.Na.cancel(),this.Na=null);return e.Ne.then(function(){return Kr(e,Xl(e.o,f))})};k.Ze=function(){return Yk()};
528k.signInWithPopup=function(a){if(!al())return H(new P("operation-not-supported-in-this-environment"));var b=this,c=Al(a.providerId),d=this.Ze(),e=null;(!bl()||Rk())&&this.V().options.authDomain&&a.isOAuthProvider&&(e=go(this.V().options.authDomain,this.V().options.apiKey,this.V().name,"signInViaPopup",a,null,d,firebase.SDK_VERSION||null,null,null,this.na,this.N));var f=Ik(e,c&&c.Dd,c&&c.Cd);c=Jr(this).then(function(g){return g.te(f,"signInViaPopup",a,d,!!e,b.na)}).then(function(){return new F(function(g, 529h){b.Wc("signInViaPopup",null,new P("cancelled-popup-request"),b.Ob);b.Nb=g;b.Uc=h;b.Ob=d;b.Na=b.ha.Ce(b,"signInViaPopup",f,d)})}).then(function(g){f&&Hk(f);return g?ul(g):null}).l(function(g){f&&Hk(f);throw g;});return this.u(c)};k.signInWithRedirect=function(a){if(!al())return H(new P("operation-not-supported-in-this-environment"));var b=this,c=Jr(this).then(function(){return wr(b.Tb)}).then(function(){return b.ha.ue("signInViaRedirect",a,void 0,b.na)});return this.u(c)}; 530var Lr=function(a){if(!al())return H(new P("operation-not-supported-in-this-environment"));var b=Jr(a).then(function(){return a.ha.getRedirectResult()}).then(function(c){return c?ul(c):null});return a.u(b)};T.prototype.getRedirectResult=function(){var a=this;return Lr(this).then(function(b){a.ha&&a.ha.ld();return b}).l(function(b){a.ha&&a.ha.ld();throw b;})}; 531T.prototype.updateCurrentUser=function(a){if(!a)return H(new P("null-user"));if(this.na!=a.tenantId)return H(new P("tenant-id-mismatch"));var b=this,c={};c.apiKey=this.V().options.apiKey;c.authDomain=this.V().options.authDomain;c.appName=this.V().name;var d=or(a,c,b.Vc,ao(b));return this.u(this.Pb.then(function(){if(b.V().options.apiKey!=a.ka)return d.reload()}).then(function(){if(U(b)&&a.uid==U(b).uid)return U(b).copy(a),b.uc(a);Ar(b,d);Vq(d);return b.uc(d)}).then(function(){b.wc()}))}; 532var Mr=function(a,b){var c={};c.apiKey=a.V().options.apiKey;c.authDomain=a.V().options.authDomain;c.appName=a.V().name;a.N&&(c.emulatorConfig=a.N);return a.Ne.then(function(){return nr(c,b,a.Vc,ao(a))}).then(function(d){if(U(a)&&d.uid==U(a).uid)return U(a).copy(d),a.uc(d);Ar(a,d);Vq(d);return a.uc(d)}).then(function(){a.wc()})},Ar=function(a,b){U(a)&&(Tq(U(a),a.Tj),$i(U(a),"tokenChanged",a.Qd),$i(U(a),"userDeleted",a.Rj),$i(U(a),"userInvalidated",a.Sj),Sq(U(a)));b&&(b.Pf.push(a.Tj),Si(b,"tokenChanged", 533a.Qd),Si(b,"userDeleted",a.Rj),Si(b,"userInvalidated",a.Sj),a.Lc>0&&Rq(b));O(a,"currentUser",b);b&&(b.Kd(a.Kb),Nq(b,a),Mq(b,a.Qa),Pq(b,a),Lq(b,a.N),Oq(b,a))};T.prototype.signOut=function(){var a=this,b=this.Pb.then(function(){a.ha&&a.ha.ld();if(!U(a))return G();Ar(a,null);return yr(a.Tb).then(function(){a.wc()})});return this.u(b)}; 534var Nr=function(a){var b=a.V().options.authDomain;b=qr(a.Vc,b).then(function(c){if(a.Cc=c)c.Bc=a.Vc;return kr(a.Vc)});return a.u(b)},Br=function(a){var b=a.V().options.authDomain,c=Nr(a).then(function(){return zr(a.Tb,b,a.N)}).then(function(d){return d?(d.Bc=a.Vc,a.Cc&&(a.Cc.Ac||null)==(d.Ac||null)?d:d.reload().then(function(){return xr(a.Tb,d).then(function(){return d})}).l(function(e){return e.code=="auth/network-request-failed"?d:yr(a.Tb)})):null}).then(function(d){Ar(a,d||null)});return a.u(c)}, 535Cr=function(a){return a.Ne.then(function(){return Lr(a)}).l(function(){}).then(function(){if(!a.Cb)return a.Fg()}).l(function(){}).then(function(){if(!a.Cb){a.rf=!0;var b=a.Tb;b.O.addListener(rr("local"),b.W,a.Fg)}})};k=T.prototype; 536k.om=function(){var a=this,b=this.V().options.authDomain;return zr(this.Tb,b).then(function(c){if(!a.Cb){var d;if(d=U(a)&&c){d=U(a).uid;var e=c.uid;d=d===void 0||d===null||d===""||e===void 0||e===null||e===""?!1:d==e}if(d)return U(a).copy(c),U(a).getIdToken();if(U(a)||c)Ar(a,c),c&&(Vq(c),c.Bc=a.Vc),a.ha&&a.ha.subscribe(a),a.wc()}})};k.uc=function(a){return xr(this.Tb,a)};k.Ig=function(){this.wc();this.uc(U(this))};k.Wk=function(){this.signOut()};k.Xk=function(){this.signOut()}; 537var Kr=function(a,b){var c=null,d=null;return a.u(b.then(function(e){c=Gm(e);d=tp(e);return Mr(a,e)},function(e){var f=null;e&&e.code==="auth/multi-factor-auth-required"&&(f=rq(e.U(),a,v(a.Hg,a)));throw f||e;}).then(function(){return ul({user:U(a),credential:c,additionalUserInfo:d,operationType:"signIn"})}))};k=T.prototype;k.Hg=function(a){var b=this;return this.Pb.then(function(){return Kr(b,G(a))})};k.jl=function(a){var b=this;this.addAuthTokenListener(function(){a.next(U(b))})}; 538k.kl=function(a){var b=this;Or(this,function(){a.next(U(b))})};k.onIdTokenChanged=function(a,b,c){var d=this;this.rf&&firebase.Promise.resolve().then(function(){typeof a==="function"?a(U(d)):typeof a.next==="function"&&a.next(U(d))});return this.Cl(a,b,c)};k.onAuthStateChanged=function(a,b,c){var d=this;this.rf&&firebase.Promise.resolve().then(function(){d.Ke=d.getUid();typeof a==="function"?a(U(d)):typeof a.next==="function"&&a.next(U(d))});return this.Fl(a,b,c)}; 539k.Jk=function(a){var b=this,c=this.Pb.then(function(){return U(b)?U(b).getIdToken(a).then(function(d){return{accessToken:d}}):null});return this.u(c)};k.signInWithCustomToken=function(a){var b=this;return this.Pb.then(function(){return Kr(b,Q(b.o,Pn,{token:a}))}).then(function(c){var d=c.user;ar(d,"isAnonymous",!1);b.uc(d);return c})};k.signInWithEmailAndPassword=function(a,b){var c=this;return this.Pb.then(function(){return Kr(c,Q(c.o,qm,{email:a,password:b}))})}; 540k.createUserWithEmailAndPassword=function(a,b){var c=this;return this.Pb.then(function(){return Kr(c,Q(c.o,Jn,{email:a,password:b}))})};k.signInWithCredential=function(a){var b=this;return this.Pb.then(function(){return Kr(b,a.Nc(b.o))})};k.signInAndRetrieveDataWithCredential=function(a){ql("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead.");return this.signInWithCredential(a)}; 541k.signInAnonymously=function(){var a=this;return this.Pb.then(function(){var b=U(a);
541if(b&&b.isAnonymous){var c=ul({providerId:null,isNewUser:!1});return ul({user:b,credential:null,additionalUserInfo:c,operationType:"signIn"})}return Kr(a,a.o.signInAnonymously()).then(function(d){var e=d.user;ar(e,"isAnonymous",!0);a.uc(e);return d})})};k.V=function(){return this.app};var U=function(a){return a.currentUser};T.prototype.getUid=function(){return U(this)&&U(this).uid||null}; 542var Pr=function(a){return U(a)&&U(a)._lat||null};k=T.prototype;k.wc=function(){if(this.rf){for(var a=0;a<this.Hc.length;a++)if(this.Hc[a])this.Hc[a](Pr(this));if(this.Ke!==this.getUid()&&this.Pd.length)for(this.Ke=this.getUid(),a=0;a<this.Pd.length;a++)if(this.Pd[a])this.Pd[a](Pr(this))}};k.ek=function(a){this.addAuthTokenListener(a);this.Lc++;this.Lc>0&&U(this)&&Rq(U(this))};k.Nl=function(a){var b=this;z(this.Hc,function(c){c==a&&b.Lc--});this.Lc<0&&(this.Lc=0);this.Lc==0&&U(this)&&Sq(U(this));this.removeAuthTokenListener(a)}; 543k.addAuthTokenListener=function(a){var b=this;this.Hc.push(a);this.u(this.Pb.then(function(){b.Cb||Ub(b.Hc,a)&&a(Pr(b))}))};k.removeAuthTokenListener=function(a){Xb(this.Hc,function(b){return b==a})};var Or=function(a,b){a.Pd.push(b);a.u(a.Pb.then(function(){!a.Cb&&Ub(a.Pd,b)&&a.Ke!==a.getUid()&&(a.Ke=a.getUid(),b(Pr(a)))}))};k=T.prototype; 544k.delete=function(){this.Cb=!0;for(var a=0;a<this.Ma.length;a++)this.Ma[a].cancel("app-deleted");this.Ma=[];this.Tb&&(a=this.Tb,a.O.removeListener(rr("local"),a.W,this.Fg));this.ha&&(this.ha.unsubscribe(this),this.ha.ld());return firebase.Promise.resolve()};k.u=function(a){var b=this;this.Ma.push(a);a.Ec(function(){Vb(b.Ma,a)});return a};k.fetchSignInMethodsForEmail=function(a){return this.u(en(this.o,a))};k.isSignInWithEmailLink=function(a){return!!um(a)}; 545k.sendSignInLinkToEmail=function(a,b){var c=this;return this.u(G().then(function(){var d=new gp(b);if(!d.Vh)throw new P("argument-error","handleCodeInApp must be true when sending sign in link to email");return hp(d)}).then(function(d){return c.o.sendSignInLinkToEmail(a,d)}).then(function(){}))};k.verifyPasswordResetCode=function(a){return this.checkActionCode(a).then(function(b){return b.data.email})};k.confirmPasswordReset=function(a,b){return this.u(this.o.confirmPasswordReset(a,b).then(function(){}))}; 546k.checkActionCode=function(a){return this.u(this.o.checkActionCode(a).then(function(b){return new Jl(b)}))};k.applyActionCode=function(a){return this.u(this.o.applyActionCode(a).then(function(){}))};k.sendPasswordResetEmail=function(a,b){var c=this;return this.u(G().then(function(){return typeof b==="undefined"||bc(b)?{}:hp(new gp(b))}).then(function(d){return c.o.sendPasswordResetEmail(a,d)}).then(function(){}))}; 547k.signInWithPhoneNumber=function(a,b){return this.u(jp(this,a,b,v(this.signInWithCredential,this)))};k.signInWithEmailLink=function(a,b){var c=this;return this.u(G().then(function(){b=b||Bk();var d=vm(a,b),e=um(b);if(!e)throw new P("argument-error","Invalid email link!");if(e.tenantId!==c.na)throw new P("tenant-id-mismatch");return c.signInWithCredential(d)}))};var Fr=function(a){Fi.call(this,"languageCodeChanged");this.languageCode=a};q(Fr,Fi); 548var Hr=function(a){Fi.call(this,"emulatorConfigChanged");this.emulatorConfig=a};q(Hr,Fi);var Ir=function(a){Fi.call(this,"frameworkChanged");this.Hk=a};q(Ir,Fi);var Rr=function(a,b,c,d){a:{c=Array.prototype.slice.call(c);var e=0;for(var f=!1,g=0;g<b.length;g++)if(b[g].optional)f=!0;else{if(f)throw new P("internal-error","Argument validator encountered a required argument after an optional argument.");e++}f=b.length;if(c.length<e||f<c.length)d="Expected "+(e==f?e==1?"1 argument":e+" arguments":e+"-"+f+" arguments")+" but got "+c.length+".";else{for(e=0;e<c.length;e++)if(f=b[e].optional&&c[e]===void 0,!b[e].Fa(c[e])&&!f){c=e;b=b[e];if(c<0||c>=Qr.length)throw new P("internal-error", 549"Argument validator received an unsupported number of arguments.");c=Qr[c];d=(d?"":c+" argument ")+(b.name?'"'+b.name+'" ':"")+"must be "+b.Ha+".";break a}d=null}}if(d)throw new P("argument-error",a+" failed: "+d);},Qr="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" "),V=function(a,b){return{name:a||"",Ha:"a valid string",optional:!!b,Fa:function(c){return typeof c==="str
549ing"}}},Sr=function(a,b){return{name:a||"",Ha:"a boolean",optional:!!b,Fa:function(c){return typeof c==="boolean"}}}, 550W=function(a,b){return{name:a||"",Ha:"a valid object",optional:!!b,Fa:u}},Tr=function(a,b){return{name:a||"",Ha:"a function",optional:!!b,Fa:hg}},Ur=function(a,b){return{name:a||"",Ha:"null",optional:!!b,Fa:function(c){return c===null}}},Vr=function(){return{name:"",Ha:"an HTML element",optional:!1,Fa:function(a){return!!(a&&a instanceof Element)}}},Wr=function(){return{name:"auth",Ha:"an instance of Firebase Auth",optional:!0,Fa:function(a){return!!(a&&a instanceof T)}}},Xr=function(){return{name:"app", 551Ha:"an instance of Firebase App",optional:!0,Fa:function(a){return!!(a&&a instanceof firebase.app.App)}}},Yr=function(a){return{name:a?a+"Credential":"credential",Ha:a?"a valid "+a+" credential":"a valid credential",optional:!1,Fa:function(b){if(!b)return!1;var c=!a||b.providerId===a;return!(!b.Nc||!c)}}},Zr=function(){return{name:"multiFactorAssertion",Ha:"a valid multiFactorAssertion",optional:!1,Fa:function(a){return a?!!a.process:!1}}},$r=function(){return{name:"authProvider",Ha:"a valid Auth provider", 552optional:!1,Fa:function(a){return!!(a&&a.providerId&&a.hasOwnProperty&&a.hasOwnProperty("isOAuthProvider"))}}},as=function(a,b){return u(a)&&typeof a.type==="string"&&a.type===b&&typeof a.be==="function"},bs=function(a){return u(a)&&typeof a.uid==="string"},cs=function(){return{name:"applicationVerifier",Ha:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,Fa:function(a){return!(!a||typeof a.type!=="string"||typeof a.verify!=="function")}}},X=function(a,b,c,d){return{name:c||"", 553Ha:a.Ha+" or "+b.Ha,optional:!!d,Fa:function(e){return a.Fa(e)||b.Fa(e)}}};var Y=function(a,b){for(var c in b){var d=b[c].name;a[d]=ds(d,a[c],b[c].j)}},es=function(a,b){for(var c in b){var d=b[c].name;d!==c&&Object.defineProperty(a,d,{get:Aa(function(e){return this[e]},c),set:Aa(function(e,f,g,h){Rr(e,[g],[h],!0);this[f]=h},d,c,b[c].eg),enumerable:!0})}},Z=function(a,b,c,d){a[b]=ds(b,c,d)},ds=function(a,b,c){if(!c)return b;var d=fs(a);a=function(){var g=Array.prototype.slice.call(arguments);Rr(d,c,g);return b.apply(this,g)};for(var e in b)a[e]=b[e];for(var f in b.prototype)a.prototype[f]= 554b.prototype[f];return a},fs=function(a){a=a.split(".");return a[a.length-1]};function gs(){}O(gs,"FACTOR_ID","phone");Y(T.prototype,{applyActionCode:{name:"applyActionCode",j:[V("code")]},checkActionCode:{name:"checkActionCode",j:[V("code")]},confirmPasswordReset:{name:"confirmPasswordReset",j:[V("code"),V("newPassword")]},createUserWithEmailAndPassword:{name:"createUserWithEmailAndPassword",j:[V("email"),V("password")]}
554,fetchSignInMethodsForEmail:{name:"fetchSignInMethodsForEmail",j:[V("email")]},getRedirectResult:{name:"getRedirectResult",j:[]},isSignInWithEmailLink:{name:"isSignInWithEmailLink",j:[V("emailLink")]}, 555onAuthStateChanged:{name:"onAuthStateChanged",j:[X(W(),Tr(),"nextOrObserver"),Tr("opt_error",!0),Tr("opt_completed",!0)]},onIdTokenChanged:{name:"onIdTokenChanged",j:[X(W(),Tr(),"nextOrObserver"),Tr("opt_error",!0),Tr("opt_completed",!0)]},sendPasswordResetEmail:{name:"sendPasswordResetEmail",j:[V("email"),X(W("opt_actionCodeSettings",!0),Ur(null,!0),"opt_actionCodeSettings",!0)]},sendSignInLinkToEmail:{name:"sendSignInLinkToEmail",j:[V("email"),W("actionCodeSettings")]},setPersistence:{name:"setPersistence", 556j:[V("persistence")]},signInAndRetrieveDataWithCredential:{name:"signInAndRetrieveDataWithCredential",j:[Yr()]},signInAnonymously:{name:"signInAnonymously",j:[]},signInWithCredential:{name:"signInWithCredential",j:[Yr()]},signInWithCustomToken:{name:"signInWithCustomToken",j:[V("token")]},signInWithEmailAndPassword:{name:"signInWithEmailAndPassword",j:[V("email"),V("password")]},signInWithEmailLink:{name:"signInWithEmailLink",j:[V("email"),V("emailLink",!0)]},signInWithPhoneNumber:{name:"signInWithPhoneNumber", 557j:[V("phoneNumber"),cs()]},signInWithPopup:{name:"signInWithPopup",j:[$r()]},signInWithRedirect:{name:"signInWithRedirect",j:[$r()]},updateCurrentUser:{name:"updateCurrentUser",j:[X(function(a){return{name:"user",Ha:"an instance of Firebase User",optional:!!a,Fa:function(b){return!!(b&&b instanceof R)}}}(),Ur(),"user")]},signOut:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[V(null,!0)]},useDeviceLanguage:{name:"useDeviceLanguage",j:[]},useEmulator:{name:"useEmulator",j:[V("url"),W("options",!0)]}, 558verifyPasswordResetCode:{name:"verifyPasswordResetCode",j:[V("code")]}});es(T.prototype,{lc:{name:"languageCode",eg:X(V(),Ur(),"languageCode")},ti:{name:"tenantId",eg:X(V(),Ur(),"tenantId")}});T.Persistence=up;T.Persistence.LOCAL="local";T.Persistence.SESSION="session";T.Persistence.NONE="none"; 559Y(R.prototype,{"delete":{name:"delete",j:[]},getIdTokenResult:{name:"getIdTokenResult",j:[Sr("opt_forceRefresh",!0)]},getIdToken:{name:"getIdToken",j:[Sr("opt_forceRefresh",!0)]},linkAndRetrieveDataWithCredential:{name:"linkAndRetrieveDataWithCredential",j:[Yr()]},linkWithCredential:{name:"linkWithCredential",j:[Yr()]},linkWithPhoneNumber:{name:"linkWithPhoneNumber",j:[V("phoneNumber"),cs()]},linkWithPopup:{name:"linkWithPopup",j:[$r()]},linkWithRedirect:{name:"linkWithRedirect",j:[$r()]},reauthenticateAndRetrieveDataWithCredential:{name:"reauthenticateAndRetrieveDataWithCredential", 560j:[Yr()]},reauthenticateWithCredential:{name:"reauthenticateWithCredential",j:[Yr()]},reauthenticateWithPhoneNumber:{name:"reauthenticateWithPhoneNumber",j:[V("phoneNumber"),cs()]},reauthenticateWithPopup:{name:"reauthenticateWithPopup",j:[$r()]},reauthenticateWithRedirect:{name:"reauthenticateWithRedirect",j:[$r()]},reload:{name:"reload",j:[]},sendEmailVerification:{name:"sendEmailVerification",j:[X(W("opt_actionCodeSettings",!0),Ur(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[V(null, 561!0)]},unlink:{name:"unlink",j:[V("provider")]},updateEmail:{name:"updateEmail",j:[V("email")]},updatePassword:{name:"updatePassword",j:[V("password")]},updatePhoneNumber:{name:"updatePhoneNumber",j:[Yr("phone")]},updateProfile:{name:"updateProfile",j:[W("profile")]}
561,verifyBeforeUpdateEmail:{name:"verifyBeforeUpdateEmail",j:[V("email"),X(W("opt_actionCodeSettings",!0),Ur(null,!0),"opt_actionCodeSettings",!0)]}});Y(mo.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}); 562Y(ho.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}});Y(F.prototype,{Ec:{name:"finally"},l:{name:"catch"},then:{name:"then"}});es(fp.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",eg:Sr("appVerificationDisabledForTesting")}});Y(ip.prototype,{confirm:{name:"confirm",j:[V("verificationCode")]}}); 563Z(Ul,"fromJSON",function(a){a=typeof a==="string"?JSON.parse(a):a;for(var b,c=[bm,tm,Am,$l],d=0;d<c.length;d++)if(b=c[d](a))return b;return null},[X(V(),W(),"json")]);Z(nm,"credential",function(a,b){return new om(a,b)},[V("email"),V("password")]);Y(om.prototype,{U:{name:"toJSON",j:[V(null,!0)]}});Y(fm.prototype,{addScope:{name:"addScope",j:[V("scope")]},setCustomParameters:{name:"setCustomParameters",j:[W("customOAuthParameters")]}});Z(fm,"credential",gm,[X(V(),W(),"token")]); 564Z(nm,"credentialWithLink",vm,[V("email"),V("emailLink")]);Y(hm.prototype,{addScope:{name:"addScope",j:[V("scope")]},setCustomParameters:{name:"setCustomParameters",j:[W("customOAuthParameters")]}});Z(hm,"credential",im,[X(V(),W(),"token")]);Y(jm.prototype,{addScope:{name:"addScope",j:[V("scope")]},setCustomParameters:{name:"setCustomParameters",j:[W("customOAuthParameters")]}});Z(jm,"credential",km,[X(V(),X(W(),Ur()),"idToken"),X(V(),Ur(),"accessToken",!0)]); 565Y(lm.prototype,{setCustomParameters:{name:"setCustomParameters",j:[W("customOAuthParameters")]}});Z(lm,"credential",mm,[X(V(),W(),"token"),V("secret",!0)]);Y(em.prototype,{addScope:{name:"addScope",j:[V("scope")]},credential:{name:"credential",j:[X(V(),X(W(),Ur()),"optionsOrIdToken"),X(V(),Ur(),"accessToken",!0)]},setCustomParameters:{name:"setCustomParameters",j:[W("customOAuthParameters")]}});
565Y(am.prototype,{U:{name:"toJSON",j:[V(null,!0)]}});Y(Wl.prototype,{U:{name:"toJSON",j:[V(null,!0)]}}); 566Z(Bm,"credential",Fm,[V("verificationId"),V("verificationCode")]); 567Y(Bm.prototype,{verifyPhoneNumber:{name:"verifyPhoneNumber",j:[X(V(),function(a,b){return{name:a||"phoneInfoOptions",Ha:"valid phone info options",optional:!!b,Fa:function(c){return c?c.session&&c.phoneNumber?as(c.session,"enroll")&&typeof c.phoneNumber==="string":c.session&&c.multiFactorHint?as(c.session,"signin")&&bs(c.multiFactorHint):c.session&&c.multiFactorUid?as(c.session,"signin")&&typeof c.multiFactorUid==="string":c.phoneNumber?typeof c.phoneNumber==="string":!1:!1}}}(),"phoneInfoOptions"), 568cs()]}});Y(wm.prototype,{U:{name:"toJSON",j:[V(null,!0)]}});Y(P.prototype,{toJSON:{name:"toJSON",j:[V(null,!0)]}});Y(Im.prototype,{toJSON:{name:"toJSON",j:[V(null,!0)]}});Y(Ol.prototype,{toJSON:{name:"toJSON",j:[V(null,!0)]}});Y(qq.prototype,{toJSON:{name:"toJSON",j:[V(null,!0)]}});Y(pq.prototype,{resolveSignIn:{name:"resolveSignIn",j:[Zr()]}}); 569Y(zq.prototype,{getSession:{name:"getSession",j:[]},enroll:{name:"enroll",j:[Zr(),V("displayName",!0)]},unenroll:{name:"unenroll",j:[X({name:"multiFactorInfo",Ha:"a valid multiFactorInfo",optional:!1,Fa:bs},V(),"multiFactorInfoIdentifier")]}});Y(xo.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}});Z(Ll,"parseLink",Ml,[V("link")]);Z(gs,"assertion",function(a){return new wq(a)},[Yr("phone")]); 570(function(){if(typeof firebase!=="undefined"&&firebase.INTERNAL&&firebase.INTERNAL.registerService){var a={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:T,AuthCredential:Ul,Error:P};Z(a,"EmailAuthProvider",nm,[]);Z(a,"FacebookAuthProvider",fm,[]);Z(a,"GithubAuthProvider",hm,[]);Z(a, 571"GoogleAuthProvider",jm,[]);Z(a,"TwitterAuthProvider",lm,[]);Z(a,"OAuthProvider",em,[V("providerId")]);Z(a,"SAMLAuthProvider",dm,[V("providerId")]);Z(a,"PhoneAuthProvider",Bm,[Wr()]);Z(a,"RecaptchaVerifier",xo,[X(V(),Vr(),"recaptchaContainer"),W("recaptchaParameters",!0),Xr()]);Z(a,"ActionCodeURL",Ll,[]);Z(a,"PhoneMultiFactorGenerator",gs,[]);firebase.INTERNAL.registerService("auth",function(b,c){b=new T(b);c({INTERNAL:{getUid:v(b.getUid,b),getToken:v(b.Jk,b),addAuthTokenListener:v(b.ek,b),removeAuthTokenListener:v(b.Nl, 572b)}});return b},a,function(b,c){if(b==="create")try{c.auth()}catch(d){}});firebase.INTERNAL.extendNamespace({User:R})}else throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");})();var hs=function(a){this.Yg=Fg.getParentIframe();this.Mb=this.Yg.getOrigin();this.Lb=a;this.Ih=!1};hs.prototype.ud=function(){return this.Mb};hs.prototype.start=function(){var a=this;return this.Lb(this.Mb).then(function(){a.Ih=!0}).l(function(b){throw b;})};hs.prototype.sendMessage=function(a){var b=this;if(this.Ih)return new F(function(c){b.Yg.send(a.type,a,c,Ig)});throw new P("missing-iframe-start");}; 573hs.prototype.oh=function(a,b){if(this.Ih)this.Yg.register(a,b,Ig);else throw new P("missing-iframe-start");};var is=function(a){this.Bf=new hs(a)};is.prototype.ud=function(){return this.Bf.ud()};is.prototype.start=function(){var a=this;return this.Bf.start().then(function(){a.qh()})};var js=function(a,b){return a.Bf.sendMessage({type:"authEvent",authEvent:b&&b.U()}).then(function(c){if(!c||!c.length||c[c.length-1].status!="ACK")throw new P("internal-error");})};is.prototype.qh=function(){this.Bf.oh("webStorageSupport",function(){return G({status:"ACK",webStorageSupport:!0})})};var ks=function(a,b,c){var d=(ok(M(Bk()),"fw")||"").split(","),e=this;this.ka=a;this.ma=b;this.Ka=c||null;this.Qa=d||[];this.Ld=new Dp(this.ka+":"+this.ma);this.zl=new Jp;this.o=new Qm(a,xk(this.Ka),Xk("Iframe","2.20.8",this.Qa));this.vc=new is(function(f){return gn(e.o).then(function(g){if(!Lk(g,f))throw e.destroy(),new Ol(f);})});this.yc=Do(r);this.Hi=!1;this.yc.subscribe("getParentOrigin",function(f){if(f===r.window.location.origin)return G(e.vc.ud());throw Error("Invalid origin"); 574});this.yc.subscribe("sendAuthEvent",function(f,g){var h=g.storageKey,l=null;try{l=El(g.authEvent)}catch(m){}if(f===r.window.location.origin&&h===e.ka+":"+e.ma&&l)return e.Hi?js(e.vc,l).then(function(){return!0}).l(function(){return!1}):e.zl.O.set(Ep,l.U(),h).then(function(){return!0}).l(function(){return!1});throw Error("Invalid origin or request");})};ks.prototype.ud=function(){return this.vc.ud()}; 575ks.prototype.start=function(){var a=this;return this.vc.start().then(function(){a.Hi=!0;a.ej=a.dj.bind(a);return ls(a).Ec(function(){a.Ld.Gc(a.ej);a.dj(!1)})})};ks.prototype.dj=function(a){var b=this,c=null;return Fp(this.Ld).then(function(d){if(c=d)return js(b.vc,d);if(a)return js(b.vc,new Dl("unknown",null,null,null,new P("no-auth-event")))}
575).then(function(){if(c)return Gp(b.Ld)}).l(function(){})}; 576var ls=function(a){var b=null;return Ip(a.Ld).then(function(c){if(b=c)return js(a.vc,c);c=Zk()?"no-auth-event":"web-storage-unsupported";return js(a.vc,new Dl("unknown",null,null,null,new P(c)))}).then(function(){if(b){var c=a.Ld;return c.O.remove(Hp,c.W)}}).l(function(){})};ks.prototype.destroy=function(){this.nd=!0;this.Ld.Id(this.ej);this.yc.unsubscribe("getParentOrigin");this.yc.unsubscribe("sendAuthEvent")}; 577var ms=null,ns=function(){var a=ok(M(Bk()),"apiKey"),b=ok(M(Bk()),"appName")||"";if(!a)throw new P("invalid-api-key");var c=ok(M(Bk()),"eid")||null;ms=new ks(a,b,c);ms.start().l(function(d){if(d&&d.code=="auth/unauthorized-domain")d=M(ms.ud()),d=d.Xa=="chrome-extension"?Hc("Info: The current chrome extension ID is not authorized for OAuth operations. This will prevent signInWithPopup and linkWithPopup from working. Add your chrome extension (chrome-extension://%s) to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.", 578d.Ia):Hc("Info: The current domain is not authorized for OAuth operations. This will prevent signInWithPopup, signInWithRedirect, linkWithPopup and linkWithRedirect from working. Add your domain (%s) to the OAuth redirect domains list in the Firebase console -> Authentication -> Settings -> Authorized domains tab.",d.Ia),kl(d);else if(d&&d.message)kl(d.message);else throw d;})};t("fireauth.iframe.AuthRelay.initialize",function(){r.document.readyState=="complete"?ns():Ri(window,"load",function(){ns()})});}).call(this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.