_I0_1743789623891_https://wix-engage-visitors-prod-6.firebaseapp.com/__/auth/iframe?apiKey=AIzaSyCX14845N-JpUPhQz_gsBwycDKh0N2q_Zg&appName=0dfd7a4d-e6dd-4a27-af4e-f8af7680c460&v=9.23.0&eid=p&usegapi=1&jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.lb.es.qi88ciXpeHU.O%2Fd%3D1%2Frs%3DAHpOoo8VhI_gzcdsYUYKfVz9YawSw4TAkA%2Fm%3D__features__#id=I0_1743789623891&_gfid=I0_1743789623891&parent=https%3A%2F%2Fengage.wixapps.net&pfname=&rpctoken=20244224O
! "_WebResourceResponseO bplist00
X$versionY$archiverT$topX$objects _NSKeyedArchiver _WebResourceResponse('-.4567YZ[\]^_`abcdefghijklmnopqrstuz{U$null
!"#$%&___nsurlrequest_proto_prop_obj_6___nsurlrequest_proto_prop_obj_3R$2___nsurlrequest_proto_prop_obj_0R$3___nsurlrequest_proto_prop_obj_4V$class___nsurlrequest_proto_prop_obj_1R$4R$0___nsurlrequest_proto_prop_obj_5___nsurlrequest_proto_prop_obj_2R$1& ' ()$+,WNS.base[NS.relative _Dhttps://wix-engage-visitors-prod-6.firebaseapp.com/__/auth/iframe.js/012Z$classnameX$classesUNSURL13XNSObject#A*ߑ 89:IXWNS.keysZNS.objects;<=>?@ABCDEFGH
JKLMNOPQRSTUVW !"#$%\Content-Type[x-served-by\x-cache-hitsWAlt-Svc_Content-Encoding]Cache-ControlTDateWx-timer_Strict-Transport-Security^Content-LengthX__hhaa__]Accept-RangesTVaryWx-cache_text/javascript; charset=utf-8_cache-mia-kmia1760100-MIAQ4_>h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400Tgzip\max-age=1800_Fri, 04 Apr 2025 18:00:24 GMT_S1743789624.227032,VS0,VE0_,max-age=31556926; includeSubDomains; preloadU91636_`
YnBsaXN0MDDdAQIDBAUGBwgJCgsMDQ4QEhQWGBocHiAiJCZcQ29udGVudC1UeXBlV3gtY2FjaGVceC1jYWNoZS1oaXRzV0FsdC1TdmNfEBBDb250ZW50LUVuY29kaW5nXUNhY2hlLUNvbnRyb2xURGF0ZVd4LXRpbWVyXxAZU3RyaWN0LVRyYW5zcG9ydC1TZWN1cml0eV5Db250ZW50LUxlbmd0aF1BY2NlcHQtUmFuZ2VzVFZhcnlbeC1zZXJ2ZWQtYnmhD18QHnRleHQvamF2YXNjcmlwdDsgY2hhcnNldD11dGYtOKERU0hJVKETUTShFV8QPmgzPSI6NDQzIjttYT04NjQwMCxoMy0yOT0iOjQ0MyI7bWE9ODY0MDAsaDMtMjc9Ijo0NDMiO21hPTg2NDAwoRdUZ3ppcKEZXG1heC1hZ2U9MTgwMKEbXxAdRnJpLCAwNCBBcHIgMjAyNSAxODowMDoyNCBHTVShHV8QGlMxNzQzNzg5NjI0LjIyNzAzMixWUzAsVkUwoR9fECxtYXgtYWdlPTMxNTU2OTI2OyBpbmNsdWRlU3ViRG9tYWluczsgcHJlbG9hZKEhVTkxNjM2oSNVYnl0ZXOhJV8QJHgtZmgtcmVxdWVzdGVkLWhvc3QsIGFjY2VwdC1lbmNvZGluZ6EnXxAZY2FjaGUtbWlhLWttaWExNzYwMTAwLU1JQQAIACMAMAA4AEUATQBgAG4AcwB7AJcApgC0ALkAxQDHAOgA6gDuAPAA8gD0ATUBNwE8AT4BSwFNAW0BbwGMAY4BvQG/AcUBxwHNAc8B9gH4AAAAAAAAAgEAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAhQ=Ubytes_$x-fh-requested-host, accept-encodingSHIT/0vw_NSMutableDictionaryxy3_NSMutableDictionary\NSDictionary_text/javascript/0|}_NSHTTPURLResponse~3_NSHTTPURLResponse]NSURLResponse $ ) 2 7 I L b d >Egjm5:ENTW`ikmt|
.3;Wfo}
<Y#(>BXew| _Dhttps://wix-engage-visitors-prod-6.firebaseapp.com/__/auth/iframe.jsUutf-8O ei/*! @license Firebase v3.7.5
Build: 3.7.5-rc.1
Terms: https://firebase.google.com/terms/ */
var firebase = null; (function() { var aa=function(a){var b=0;return function(){return b
>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e});
var p=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");},q=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},da=function(){for(var a=Number(this),b=[],c=a;c
0){this.F--;var a=this.D;this.D=a.next;a.next=null}else a=this.W();return a};C.prototype.put=function(a){this.ba(a);this.F
1)));k=k.next)e||(g=k);e&&(c.g==0&&d==1?va(c,b):(g?(d=g,A(c.i),A(d!=null),d.next==c.s&&(c.s=d),d.next=d.next.next):wa(c),xa(c,e,3,b)))}a.m=null}else M(a,3,b)},ta=function(a,b){a.i||a.g!=2&&a.g!=3||ya(a);A(b.l!=null);a.s?a.s.next=b:a.i=b;a.s=b},sa=function(a,b,c,d){b&&(b=H(b,"goog.Promise.then"));c&&(c=H(c,"goog.Promise.then"));var e=pa(null,null,null);e.child=new O(function(g,
k){e.l=b?function(f){try{var h=b.call(d,f);g(h)}catch(m){k(m)}}:g;e.u=c?function(f){try{var h=c.call(d,f);h===void 0&&f instanceof N?k(f):g(h)}catch(m){k(m)}}:k});e.child.m=a;ta(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)};
var M=function(a,b,c){a.g==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,qa(c,a.ea,a.fa,a)||(a.T=c,a.g=b,a.m=null,ya(a),b!=3||c instanceof N||za(a,c)))},qa=function(a,b,c,d){if(a instanceof O)return ua(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 g=a.then;if(typeof g==="function")return Aa(a,g,b,c,d),!0}catch(k){return c.call(d,k),!0}return!1},Aa=function(a,
b,c,d,e){var g=!1,k=function(h){g||(g=!0,c.call(e,h))},f=function(h){g||(g=!0,d.call(e,h))};try{b.call(a,k,f)}catch(h){f(h)}},ya=function(a){a.H||(a.H=!0,K(a.X,a))},wa=function(a){var b=null;a.i&&(b=a.i,a.i=b.next,b.next=null);a.i||(a.s=null);b!=null&&A(b.l!=null);return b};O.prototype.X=function(){for(var a;a=wa(this);)xa(this,a,this.g,this.T);this.H=!1};
var xa=function(a,b,c,d){if(c==3&&b.u&&!b.v)for(;a&&a.Ba=a.m)a.B=!1;if(b.child)b.child.m=null,Ba(b,c,d);else try{b.v?b.l.call(b.context):Ba(b,c,d)}catch(e){Ca.call(null,e)}oa.put(b)},Ba=function(a,b,c){b==2?a.l.call(a.context,c):a.u&&a.u.call(a.context,c)},za=function(a,b){a.B=!0;K(function(){a.B&&Ca.call(null,b)})},Ca=ha,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 g=function(m,t){d--;e[m]=t;d==0&&b(e)},k=function(m){c(m)},f,h=0;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 Ea=P;function Fa(a,b){a=new T(a,b);return a.subscribe.bind(a)}var T=function(a,b){var c=this;this.h=[];this.S=0;this.task=Ea.resolve();this.A=!1;this.J=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()};
T.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=Ga(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.A&&this.task.then(function(){try{d.M?e.error(d.M):e.complete()}catch(g){}});this.h.push(e);return a};
T.prototype.ga=function(a){this.h!==void 0&&this.h[a]!==void 0&&(delete this.h[a],--this.S,this.S===0&&this.J!==void 0&&this.J(this))};var U=function(a,b){if(!a.A)for(var c=0;c
>>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});
n("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c
=f}});n("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=ra(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}});
var sa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};n("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")});var ta=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c
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?xa:ya;return v.apply(null,arguments)},za=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.Id=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Pd=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h
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.");
c=a[0];for(d=0;d
=0;--d)d in c&&b.call(void 0,c[d],d,a)}
var wb=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
=0}function Ab(a,b){b=ub(a,b);var c;(c=b>=0)&&Bb(a,b);return c}function Bb(a,b){y(a.length!=null);return Array.prototype.splice.call(a,b,1).length==1}function Cb(a,b){var c=0;vb(a,function(d,e){b.call(void 0,d,e,a)&&Bb(a,e)&&c++})}
function Db(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d
>>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 Fb(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Gb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Hb(a){for(var b in a)return!1;return!0}function Ib(a){var b={},c;for(c in a)b[c]=a[c];return b}var Jb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Kb(a,b){for(var c,d,e=1;e
/g,Ob=/"/g,Pb=/'/g,Qb=/\x00/g,Rb=/[\x00&<>"']/;function B(a,b){return a.indexOf(b)!=-1};function Sb(a,b,c,d){b=ib(b);return b!==void 0?a.open(b,c,d):null};function Tb(a,b){a.src=Za(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 Ub=function(a,b){this.name=a;this.value=b};Ub.prototype.toString=function(){return this.name};var Vb=new Ub("OFF",Infinity),Wb=new Ub("SEVERE",1E3),Xb=new Ub("WARNING",900),Yb=new Ub("CONFIG",700),Zb=new Ub("FINE",500),$b=function(){this.Ne=0;this.clear()},ac;$b.prototype.clear=function(){this.Qh=Array(this.Ne);this.Yh=-1;this.Ii=!1};var bc=function(a,b){this.reset(a||Vb,b,null,void 0,void 0)};bc.prototype.reset=function(){};
var cc=function(a){this.level=null;this.Wk=[];this.parent=(a===void 0?null:a)||null;this.children=[]},dc=function(a){if(a.level)return a.level;if(a.parent)return dc(a.parent);rb("Root logger has no level set.");return Vb},ec=function(a,b){for(;a;)a.Wk.forEach(function(c){c(b)}),a=a.parent},fc=function(){this.entries={};var a=new cc;a.level=Yb;this.entries[""]=a},gc,hc=function(a,b){var c=a.entries[b];if(c)return c;c=hc(a,b.slice(0,Math.max(b.lastIndexOf("."),0)));var d=new cc(c);a.entries[b]=d;c.children.push(d);
return d},ic=function(){gc||(gc=new fc);return gc},jc=function(a,b,c){if(a&&a&&b&&b.value>=(a?dc(hc(ic(),null)):Vb).value){b=b||Vb;a=hc(ic(),null);typeof c==="function"&&(c=c());ac||(ac=new $b);var d=ac;if(d.Ne>0){var e=(d.Yh+1)%d.Ne;d.Yh=e;d.Ii?(d=d.Qh[e],d.reset(b,c,null)):(d.Ii=e==d.Ne-1,d=d.Qh[e]=new bc(b,c))}else d=new bc(b,c);ec(a,d)}},kc=function(a,b){a&&jc(a,Zb,b)};function lc(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 mc=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 nc,oc;a:{for(var pc=["CLOSURE_FLAGS"],qc=r,rc=0;rc
0:!1}function yc(){return xc()?wc("Chromium"):(C("Chrome")||C("CriOS"))&&!(xc()?0:C("Edge"))||C("Silk")};function Ac(){return C("iPhone")&&!C("iPod")&&!C("iPad")};var Bc=xc()?!1:C("Opera"),Cc=xc()?!1:C("Trident")||C("MSIE"),Dc=C("Edge"),Ec=C("Gecko")&&!(B(tc().toLowerCase(),"webkit")&&!C("Edge"))&&!(C("Trident")||C("MSIE"))&&!C("Edge"),Fc=B(tc().toLowerCase(),"webkit")&&!C("Edge"),Gc=Fc&&C("Mobile"),Hc=function(){var a=r.document;return a?a.documentMode:void 0},Ic;
a:{var Jc="",Kc=function(){var a=tc();if(Ec)return/rv:([^\);]+)(\)|;)/.exec(a);if(Dc)return/Edge\/([\d\.]+)/.exec(a);if(Cc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Fc)return/WebKit\/(\S+)/.exec(a);if(Bc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Kc&&(Jc=Kc?Kc[1]:"");if(Cc){var Lc=Hc();if(Lc!=null&&Lc>parseFloat(Jc)){Ic=String(Lc);break a}}Ic=Jc}var Mc=Ic,Nc;if(r.document&&Cc){var Oc=Hc();Nc=Oc?Oc:parseInt(Mc,10)||void 0}else Nc=void 0;var Pc=Nc;var Qc=function(a){var b=document;return typeof a==="string"?b.getElementById(a):a},Sc=function(a,b){Fb(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Rc.hasOwnProperty(d)?a.setAttribute(Rc[d],c):d.lastIndexOf("aria-",0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,c):a[d]=c})},Rc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",
type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Tc=function(a,b,c){function d(h){h&&b.appendChild(typeof h==="string"?a.createTextNode(h):h)}for(var e=1;e
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?Db(f):f,d)}}},Uc=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());
return a.createElement(b)},Vc=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},Wc=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},Xc=function(a){y(a,"Node cannot be null or undefined.");return a.nodeType==9?a:a.ownerDocument||a.document},Yc=function(a){this.Se=a||r.document||document};k=Yc.prototype;k.getElementsByTagName=function(a,b){return(b||this.Se).getElementsByTagName(String(a))};k.createElement=function(a){return Uc(this.Se,a)};k.createTextNode=function(a){return this.Se.createTextNode(String(a))};
k.getWindow=function(){return this.Se.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){Tc(Xc(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};
k.removeNode=Wc;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};/*
gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var D=window,Zc=document,$c=/\[native code\]/,ad=function(a,b,c){return a[b]=a[b]||c},bd=function(a){return!!a&&typeof a==="object"&&$c.test(a.push)},cd=function(a){for(var b=0;b
/g,id=/"/g,jd=/'/g,kd=function(a){return String(a).replace(fd,"&").replace(gd,"<").replace(hd,">").replace(id,""").replace(jd,"'")},ld=function(){var a;if((a=Object.create)&&$c.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},dd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},md=function(a,b){a=a||{};for(var c in a)dd(a,c)&&(b[c]=a[c])},E=function(a,b){if(!a)throw Error(b||"");},nd=ad(D,"gapi",{});var od=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},pd=new RegExp(/^/.source+/([a-zA-Z][-+.a-zA-Z0-9]*:)?/.source+/(\/\/[^\/?#]*)?/.source+/([^?#]*)?/.source+/(\?([^#]*))?/.source+/(#((#|[^#])*))?/.source+/$/.source),qd=/[\ud800-\udbff][\udc00-\udfff]|[^!-~]/g,rd=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,
"g"),sd=/%([a-f]|[0-9a-fA-F][a-f])/g,td=/^(https?|ftp|file|chrome-extension):$/i,ud=function(a){a=String(a);a=a.replace(qd,function(e){try{return encodeURIComponent(e)}catch(f){return encodeURIComponent(e.replace(/^[^%]+$/g,"\ufffd"))}}).replace(rd,function(e){return e.replace(/%/g,"%25")}).replace(sd,function(e){return e.toUpperCase()});a=a.match(pd)||[];var b=ld(),c=function(e){return e.replace(/\\/g,"%5C").replace(/\^/g,"%5E").replace(/`/g,"%60").replace(/\{/g,"%7B").replace(/\|/g,"%7C").replace(/\}/g,
"%7D")},d=!!(a[1]||"").match(td);b.Pd=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.Rb=a[7]?[d(a[7])]:[];return b},vd=function(a){return a.Pd+(a.query.length>0?"?"+a.query.join("&"):"")+(a.Rb.length>0?"#"+a.Rb.join("&"):"")},wd=function(a,b){var c=[];if(a)for(var d in a)if(dd(a,d)&&a[d]!=null){var e=b?b(a[d]):a[d];c.push(encodeURIComponent(d)+"="+encodeURIComponent(e))}return c},xd=new RegExp(/\/?\??#?/.source+
"("+/[\/?#]/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"),yd=function(a,b){var c=ud(b);b=c.Pd;c.query.length&&(b+="?"+c.query.join(""));c.Rb.length&&(b+="#"+c.Rb.join(""));var d="";b.length>2E3&&(d=b,b=b.substr(0,2E3),b=b.replace(xd,""),d=d.substr(b.length));var e=a.createElement("div");a=a.createElement("a");c=ud(b);b=c.Pd;c.query.length&&(b+="?"+c.query.join(""));c.Rb.length&&(b+="#"+c.Rb.join(""));b=b===null?
"null":b===void 0?"undefined":b;if(typeof b!=="string")throw Error("Expected a string");b=new $a(b);b=ib(b);b!==void 0&&(a.href=b);e.appendChild(a);a=e.innerHTML;lc("Assignment to self.");a=Va(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=Wa(a);b=String(e.firstChild.href);e.parentNode&&e.parentNode.removeChild(e);c=ud(b+d);d=c.Pd;
c.query.length&&(d+="?"+c.query.join(""));c.Rb.length&&(d+="#"+c.Rb.join(""));return d},zd=/^https?:\/\/[^\/%\\?#\s]+\/[^\s]*$/i;var Ad;var Cd=function(a,b,c){Bd(a,b,c,"add","at")},Bd=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)},Dd=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)};var Ed=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,Fd=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/b\/(\d{10,21})\//,Gd=function(){var a=Ba("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=od(b,"authuser")||
null,a==null&&(a=(a=b.match(Ed))?a[1]:null));if(a==null)return null;a=String(a);a.length>254&&(a=null);return a},Hd=function(){var a=Ba("googleapis.config/sessionDelegate");"string"===typeof a&&a.length>21&&(a=null);a==null&&(a=(a=window.location.href.match(Fd))?a[1]:null);if(a==null)return null;a=String(a);a.length>21&&(a=null);return a};var Id={};Id=ad(D,"___jsl",ld());ad(Id,"I",0);ad(Id,"hel",10);var Jd,Kd,Ld=void 0,Md=function(a){try{return r.JSON.parse.call(r.JSON,a)}catch(b){return!1}},Nd=function(a){return Object.prototype.toString.call(a)},Od=Nd(0),Pd=Nd(new Date(0)),Qd=Nd(!0),Rd=Nd(""),Sd=Nd({}),Td=Nd([]),Ud=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=Nd(a);if(a!=null&&typeof a.toJSON==="function"&&(Object.prototype.hasOwnProperty.call(a,
"toJSON")||(e!==Td||a.constructor!==Array&&a.constructor!==Object)&&(e!==Sd||a.constructor!==Array&&a.constructor!==Object)&&e!==Rd&&e!==Od&&e!==Qd&&e!==Pd))return Ud(a.toJSON.call(a),c);if(a==null)b[b.length]="null";else if(e===Od)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===Qd)b[b.length]=String(!!Number(a));else{if(e===Pd)return Ud(a.toISOString.call(a),c);if(e===Td&&Nd(a.length)===Od){b[b.length]="[";var f=0;for(d=Number(a.length)>>0;f<d;++f)f&&
(b[b.length]=","),b[b.length]=Ud(a[f],c)||"null";b[b.length]="]"}else if(e==Rd&&Nd(a.length)===Od){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,
f)&&(e=Ud(a[f],c),e!==void 0&&(d++&&(b[b.length]=","),b[b.length]=Ud(f),b[b.length]=":",b[b.length]=e));b[b.length]="}"}else return}return b.join("")}},Vd=/[\0-\x07\x0b\x0e-\x1f]/,Wd=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*[\0-\x1f]/,Xd=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\[^\\\/"bfnrtu]/,Yd=/^([^"]*"([^\\"]|\\.)*")*[^"]*"([^"\\]|\\.)*\\u([0-9a-fA-F]{0,3}[^0-9a-fA-F])/,Zd=/"([^\0-\x1f\\"]|\\[\\\/"bfnrt]|\\u[0-9a-fA-F]{4})*"/g,$d=/-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][-+]?[0-9]+)?/g,ae=/[ \t\n\r]+/g,
be=/[^"]:/,ce=/""/g,de=/true|false|null/g,ee=/00/,fe=/[\{]([^0\}]|0[^:])/,ge=/(^|\[)[,:]|[,:](\]|\}|[,:]|$)/,he=/[^\[,:][\[\{]/,ie=/^(\{|\}|\[|\]|,|:|0)+/,je=/\u2028/g,le=/\u2029/g,me=function(a){a=String(a);if(Vd.test(a)||Wd.test(a)||Xd.test(a)||Yd.test(a))return!1;var b=a.replace(Zd,'""');b=b.replace($d,"0");b=b.replace(ae,"");if(be.test(b))return!1;b=b.replace(ce,"0");b=b.replace(de,"0");if(ee.test(b)||fe.test(b)||ge.test(b)||he.test(b)||!b||(b=b.replace(ie,"")))return!1;a=a.replace(je,"\\u2028").replace(le,
"\\u2029");b=void 0;try{b=Ld?[Md(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},ne=function(){var a=((r.document||{}).scripts||[]).length;if((Jd===void 0||Ld===void 0||Kd!==a)&&Kd!==-1){Jd=Ld=!1;Kd=-1;try{try{Ld=!!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"]}'&&Md("true")===!0&&Md('[{"a":3}]')[0].a===3}catch(b){}Jd=Ld&&
!Md("[00]")&&!Md('"\u0007"')&&!Md('"\\0"')&&!Md('"\\v"')}finally{Kd=a}}},oe=function(a){if(Kd===-1)return!1;ne();return(Jd?Md:me)(a)},pe=function(a){if(Kd!==-1)return ne(),Ld?r.JSON.stringify.call(r.JSON,a):Ud(a)},qe=!Date.prototype.toISOString||typeof Date.prototype.toISOString!=="function"||(new Date(0)).toISOString()!=="1970-01-01T00:00:00.000Z",re=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),
"-",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=qe?re:Date.prototype.toISOString;var se=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 te(){this.blockSize=-1};function ue(){this.blockSize=-1;this.blockSize=64;this.va=[];this.hg=[];this.Yj=[];this.yf=[];this.yf[0]=128;for(var a=1;a<this.blockSize;++a)this.yf[a]=0;this.bc=this.rd=0;this.reset()}w(ue,te);ue.prototype.reset=function(){this.va[0]=1732584193;this.va[1]=4023233417;this.va[2]=2562383102;this.va[3]=271733878;this.va[4]=3285377520;this.bc=this.rd=0};
var ve=function(a,b,c){c||(c=0);var d=a.Yj;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.va[0];c=a.va[1];e=a.va[2];for(var f=a.va[3],g=a.va[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^
e^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.va[0]=a.va[0]+b&4294967295;a.va[1]=a.va[1]+c&4294967295;a.va[2]=a.va[2]+e&4294967295;a.va[3]=a.va[3]+f&4294967295;a.va[4]=a.va[4]+g&4294967295};
ue.prototype.update=function(a,b){if(a!=null){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.hg,f=this.rd;d<b;){if(f==0)for(;d<=c;)ve(this,a,d),d+=this.blockSize;if(typeof a==="string")for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){ve(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){ve(this,e);f=0;break}}this.rd=f;this.bc+=b}};
ue.prototype.digest=function(){var a=[],b=this.bc*8;this.rd<56?this.update(this.yf,56-this.rd):this.update(this.yf,this.blockSize-(this.rd-56));for(var c=this.blockSize-1;c>=56;c--)this.hg[c]=b&255,b/=256;ve(this,this.hg);for(c=b=0;c<5;c++)for(var d=24;d>=0;d-=8)a[b]=this.va[c]>>d&255,++b;return a};var we=function(){this.Ah=new ue};k=we.prototype;k.reset=function(){this.Ah.reset()};k.updateByteArray=function(a){this.Ah.update(a)};k.digestByteArray=function(){return this.Ah.digest()};k.updateString=function(a){a=unescape(encodeURIComponent(a));for(var b=[],c=a.length,d=0;d<c;++d)b.push(a.charCodeAt(d));this.updateByteArray(b)};
k.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 xe=D.crypto,ye=!1,ze=0,Ae=0,Be=1,Ce=0,De="",Ee=function(a){a=a||D.event;var b=a.screenX+a.clientX<<16;b+=a.screenY+a.clientY;b*=(new Date).getTime()%1E6;Be=Be*b%Ce;ze>0&&++Ae==ze&&Bd(D,"mousemove",Ee,"remove","de")},Fe=function(a){var b=new we;b.updateString(a);return b.digestString()};ye=!!xe&&typeof xe.getRandomValues=="function";
ye||(Ce=(screen.width*screen.width+screen.height)*1E6,De=Fe(Zc.cookie+"|"+Zc.location+"|"+(new Date).getTime()+"|"+Math.random()),ze=Ba("random/maxObserveMousemove")||0,ze!=0&&Cd(D,"mousemove",Ee));var Ge=function(){var a=Id.onl;if(!a){a=ld();Id.onl=a;var b=ld();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},He=function(a,b){b=b.onload;return typeof b==="function"?(Ge().a(a,b),b):null},Ie=function(a){E(/^\w+$/.test(a),"Unsupported id - "+a);return'onload="window.___jsl.onl.e("'+a+'")"'},Je=function(a){Ge().r(a)};var Ke={allowtransparency:"true",frameborder:"0",hspace:"0",marginheight:"0",marginwidth:"0",scrolling:"no",style:"",tabindex:"0",vspace:"0",width:"100%"},Le={allowtransparency:!0,onload:!0},Me=0,Ne=function(a,b){var c=0;do var d=b.id||["I",Me++,"_",(new Date).getTime()].join("");while(a.getElementById(d)&&++c<5);E(c<5,"Error creating iframe id");return d},Oe=function(a,b){return a?b+"/"+a:""},Pe=function(a,b,c,d){var e={},f={};a.documentMode&&a.documentMode<9&&(e.hostiemode=a.documentMode);md(d.queryParams||
{},e);md(d.fragmentParams||{},f);var g=d.pfname;var h=ld();Ba("iframes/dropLegacyIdParam")||(h.id=c);h._gfid=c;h.parent=a.location.protocol+"//"+a.location.host;c=od(a.location.href,"parent");g=g||"";!g&&c&&(g=od(a.location.href,"_gfid","")||od(a.location.href,"id",""),g=Oe(g,od(a.location.href,"pfname","")));g||(c=oe(od(a.location.href,"jcp","")))&&typeof c=="object"&&(g=Oe(c.id,c.pfname));h.pfname=g;d.connectWithJsonParam&&(g={},g.jcp=pe(h),h=g);g=od(b,"rpctoken")||e.rpctoken||f.rpctoken;if(!g){if(!(g=
d.rpctoken)){g=String;c=Math;var l=c.round;if(ye){var m=new D.Uint32Array(1);xe.getRandomValues(m);m=Number("0."+m[0])}else m=Be,m+=parseInt(De.substr(0,20),16),De=Fe(De),m/=Ce+1.2089258196146292E24;g=g(l.call(c,m*1E8))}h.rpctoken=g}d.rpctoken=g;md(h,d.connectWithQueryParams?e:f);h=a.location.href;a=ld();(g=od(h,"_bsh",Id.bsh))&&(a._bsh=g);(h=Id.dpo?Id.h:od(h,"jsh",Id.h))&&(a.jsh=h);d.hintInFragment?md(a,f):md(a,e);d=d.paramsSerializer;b=ud(b);b.query.push.apply(b.query,wd(e,d));b.Rb.push.apply(b.Rb,
wd(f,d));return vd(b)},Qe=function(a){E(!a||zd.test(a),"Illegal url for new iframe - "+a)},Re=function(a,b,c,d,e){Qe(c.src);var f,g=He(d,c),h=g?Ie(d):"";try{document.all&&(f=a.createElement('<iframe frameborder="'+kd(String(c.frameborder))+'" scrolling="'+kd(String(c.scrolling))+'" '+h+' name="'+kd(String(c.name))+'"/>'))}catch(m){}finally{f||(f=(a?new Yc(Xc(a)):nb||(nb=new Yc)).createElement("IFRAME"),g&&(f.onload=function(){f.onload=null;g.call(this)},Je(d)))}f.setAttribute("ng-non-bindable","");
for(var l in c)a=c[l],l==="style"&&typeof a==="object"?md(a,f.style):Le[l]||f.setAttribute(l,String(a));(l=e&&e.beforeNode||null)||e&&e.dontclear||Dd(b);b.insertBefore(f,l);f=l?l.previousSibling:b.lastChild;c.allowtransparency&&(f.allowTransparency=!0);return f};var Se=/^:[\w]+$/,Te=/:([a-zA-Z_]+):/g,Ue=function(a,b){a=Gd()||"0";var c=Hd();var d=Gd()||a;var e=Hd(),f="";d&&(f+="u/"+encodeURIComponent(String(d))+"/");e&&(f+="b/"+encodeURIComponent(String(e))+"/");d=f||null;(f=(e=Ba("isLoggedIn")===!1)?"_/im/":"")&&(d="");var g=Ba("iframes/:socialhost:"),h=Ba("iframes/:im_socialhost:");Ad={socialhost:g,ctx_socialhost:e?h:g,session_index:a,session_delegate:c,session_prefix:d,im_prefix:f};return Ad[b]||""},Ve=function(a){var b=a;Se.test(a)&&(b=Ba("iframes/"+b.substring(1)+
"/url"),E(!!b,"Unknown iframe url config for - "+a));return yd(Zc,b.replace(Te,Ue))},We=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=Ve(a);d=b.ownerDocument||Zc;var e=Ne(d,c);a=Pe(d,a,e,c);var f=c,g=ld();md(Ke,g);md(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=ud(a);g.src="";f.dropDataPostorigin||(g["data-postorigin"]=
a);a=Re(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";Re(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=vd(c);E(zd.test(g),"Invalid URL: "+g);c=d.createElement("form");c.method="POST";c.target=e;c.style.display="none";e=ib(g);e!==void 0&&(c.action=
e);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=Re(d,b,g,e,f);return b};window.osapi=window.osapi||{};window.___jsl=window.___jsl||{};
(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},
"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:"&"},
url:":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"},
appcirclepicker:{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"},
youtube:{url:":socialhost:/:session_prefix:_/widget/render/youtube?usegapi=1"},reportabuse:{url:":socialhost:/:session_prefix:_/widget/render/reportabuse?usegapi=1"},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,
xd3:"/static/proxy.html",auth:{useInterimAuth:!1}},report:{apis:["iframes\\..*","gadgets\\..*","gapi\\.appcirclepicker\\..*","gapi\\.client\\..*"],rate:1E-4},client:{perApiBatch:!0}});var Xe=function(a){var b=window.___jsl=window.___jsl||{};b[a]=b[a]||[];return b[a]},Ye=function(a){var b=window.___jsl=window.___jsl||{};b.cfg=!a&&b.cfg||{};return b.cfg},Ze=function(a){return typeof a==="object"&&/\[native code\]/.test(a.push)},$e=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"&&!Ze(a[d])&&!Ze(b[d])?$e(a[d],b[d]):b[d]&&typeof b[d]===
"object"?(a[d]=Ze(b[d])?[]:{},$e(a[d],b[d])):a[d]=b[d])},cf=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=Xe("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=
l.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"));
if(f&&f===b||!f&&af())if(e=bf(c),d.push(25),typeof e==="object")return e;return{}}},af=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):
!1},bf=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},df=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());$e(c,b);a.push(c)},ef=function(a){Ye(!0);var b=window.___gcfg,c=Xe("cu"),d=window.___gu;b&&b!==d&&(df(c,b),window.___gu=b);b=Xe("cu");var e=document.getElementsByTagName("script")||
[];d=[];var f=[];f.push.apply(f,Xe("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.nodeType,f=g==3||g==4?f.nodeValue:f.textContent||""):f=void 0,g=d[e].nonce||d[e].getAttribute("nonce"),(f=cf(f,g))&&b.push(f));a&&df(c,a);d=Xe("cd");a=0;for(b=d.length;a<b;++a)$e(Ye(),
d[a],!0);d=Xe("ci");a=0;for(b=d.length;a<b;++a)$e(Ye(),d[a],!0);a=0;for(b=c.length;a<b;++a)$e(Ye(),c[a],!0)};var ff=function(){var a=window.__GOOGLEAPIS;a&&(a.googleapis&&!a["googleapis.config"]&&(a["googleapis.config"]=a.googleapis),ad(Id,"ci",[]).push(a),window.__GOOGLEAPIS=void 0)};ff&&ff();ef();t("gapi.config.get",function(a,b){var c=Ye();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;ef(c)});var gf=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"&&
c!=="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 kf=function(a){this.lb=a;this.Context=hf(a);this.Iframe=jf(a)};k=kf.prototype;k.CROSS_ORIGIN_IFRAMES_FILTER=function(a){return this.lb().CROSS_ORIGIN_IFRAMES_FILTER(a)};k.SAME_ORIGIN_IFRAMES_FILTER=function(a){return this.lb().SAME_ORIGIN_IFRAMES_FILTER(a)};k.create=function(a,b,c){return this.lb().create(a,b,c)};k.getBeforeOpenStyle=function(a){return this.lb().getBeforeOpenStyle(a)};k.getContext=function(){return this.lb().getContext()};k.getStyle=function(a){return this.lb().getStyle(a)};
k.makeWhiteListIframesFilter=function(a){return this.lb().makeWhiteListIframesFilter(a)};k.registerBeforeOpenStyle=function(a,b){return this.lb().registerBeforeOpenStyle(a,b)};k.registerIframesApi=function(a,b,c){return this.lb().registerIframesApi(a,b,c)};k.registerIframesApiHandler=function(a,b,c){return this.lb().registerIframesApiHandler(a,b,c)};k.registerStyle=function(a,b){return this.lb().registerStyle(a,b)};
function hf(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=
function(){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,
[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=
function(c,d){a().Context.prototype.setGlobalParam.apply(this,[c,d])};b.prototype.setRestyleSelfFilter=function(c){a().Context.prototype.setRestyleSelfFilter.apply(this,[c])};return b}
function jf(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=
function(){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=
function(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,
[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 lf(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 lf(e,b)}).join(", ")+"]";b.delete(a);c!==Array.prototype&&(d=mf(c.constructor)+"("+d+")");return d;case Object.prototype:return b.add(a),c="{"+Object.entries(a).map(function(e){var f=ma(e);e=f.next().value;f=f.next().value;return e+
": "+lf(f,b)}).join(", ")+"}",b.delete(a),c;default:return d="Object",c&&c.constructor&&(d=mf(c.constructor)),typeof a.toString==="function"&&a.toString!==Object.prototype.toString?d+"("+String(a)+")":"(object "+d+")"}}break;case "function":return"function "+mf(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)}
function mf(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 nf(a){var b=of,c=pf,d=[];qf(b,a,d)||rf.apply(null,[void 0,c,"Guard "+b.wi().trim()+" failed:"].concat(na(d.reverse())))}function qf(a,b,c){var d=a(b,c);d||sf(c,function(){var e="";e.length>0&&(e+=": ");return e+"Expected "+a.wi().trim()+", got "+lf(b)});return d}function sf(a,b){a==null||a.push((typeof b==="function"?b():b).trim())}var pf=void 0;function tf(a){return typeof a==="function"?a():a}
function rf(){throw Error(qa.apply(0,arguments).map(tf).filter(Boolean).join("\n").trim().replace(/:$/,""));}var of=function(a,b){a.Hm=!0;a.wi=typeof b==="function"?b:function(){return b};return a}(function(a){return a!==null&&a!==void 0},"exists");var uf=function(){this.Bb=[];this.ei=this.ik=this.dk=!1};uf.prototype.lb=function(a){this.ei=!0;return this.Bb.length?vf(this,this.Bb[0],a):void 0};var vf=function(a,b,c){c=c===void 0?function(d){return new d}:c;if(!b.Re)return b.instance;c=c(b.Re);a.ik&&(delete b.Re,b.instance=c);return c},wf=function(){uf.apply(this,arguments)};p(wf,uf);
var yf=function(a){var b=xf.di;y(b.dk||!b.ei,"Cannot register new delegates after instantiation.");var c=a.priority,d=~Eb(b.Bb,function(f){return f.priority<c?-1:1}),e=d>0?b.Bb[d-1]:null;e&&e.priority<=c&&y(!1,"two delegates registered with same priority (%s): %s and %s",c,e.Re||e.instance,a.Re||a.instance);b.Bb.splice(d,0,a)};var xf=new function(){var a=this;this.di=new wf;this.instance=new kf(function(){var b=a.di.lb();nf(b);return b()})};yf({instance:function(){var a=window.gapi;nf(a);a=a.iframes;nf(a);return a},priority:1});var zf={height:!0,width:!0},Af=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,Bf=function(a){typeof a==="number"&&(a=String(a)+"px");return a};var Cf=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var Df=function(a,b){this.nl=100;this.qk=a;this.Ll=b;this.wf=0;this.af=null};Df.prototype.get=function(){if(this.wf>0){this.wf--;var a=this.af;this.af=a.next;a.next=null}else a=this.qk();return a};Df.prototype.put=function(a){this.Ll(a);this.wf<this.nl&&(this.wf++,a.next=this.af,this.af=a)};function Ef(a){r.setTimeout(function(){throw a;},0)};var Ff=function(){this.Uf=this.Xc=null};Ff.prototype.add=function(a,b){var c=Gf.get();c.set(a,b);this.Uf?this.Uf.next=c:(y(!this.Xc),this.Xc=c);this.Uf=c};Ff.prototype.remove=function(){var a=null;this.Xc&&(a=this.Xc,this.Xc=this.Xc.next,this.Xc||(this.Uf=null),a.next=null);return a};var Gf=new Df(function(){return new Hf},function(a){return a.reset()}),Hf=function(){this.next=this.scope=this.Vd=null};Hf.prototype.set=function(a,b){this.Vd=a;this.scope=b;this.next=null};
Hf.prototype.reset=function(){this.next=this.scope=this.Vd=null};var If=r.console&&r.console.createTask?r.console.createTask.bind(r.console):void 0,Jf=If?Symbol("consoleTask"):void 0;
function Kf(a,b){function c(){var h=qa.apply(0,arguments),l=this;return g.run(function(){return a.call.apply(a,[l].concat(na(h)))})}b=b===void 0?"anonymous":b;if(Jf&&a[Jf])return a;var d=a,e,f=(e=Lf)==null?void 0:e();a=function(){var h=qa.apply(0,arguments),l,m=(l=Lf)==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,
[this].concat(na(h)))};if(!If)return a;var g=If(a.name||b);c[qb(Jf)]=g;return c}var Lf;var Mf,Nf=!1,Of=new Ff,Qf=function(a,b){a=Kf(a,"goog.async.run");Mf||Pf();Nf||(Mf(),Nf=!0);Of.add(a,b)},Pf=function(){var a=Promise.resolve(void 0);Mf=function(){a.then(Rf)}};function Rf(){for(var a;a=Of.remove();){try{a.Vd.call(a.scope)}catch(b){Ef(b)}Gf.put(a)}Nf=!1};var Sf=function(){},Tf=function(a){return typeof a==="function"};var Uf=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var F=function(a,b){this.Ba=0;this.Ua=void 0;this.Zc=this.Wb=this.Ha=null;this.Xe=this.xg=!1;if(a!=Sf)try{var c=this;a.call(b,function(d){Vf(c,2,d)},function(d){if(!(d instanceof Wf))try{if(d instanceof Error)throw d;throw Error("Promise rejected.");}catch(e){}Vf(c,3,d)})}catch(d){Vf(this,3,d)}},Xf=function(){this.next=this.context=this.vd=this.Pc=this.child=null;this.Od=!1};Xf.prototype.reset=function(){this.context=this.vd=this.Pc=this.child=null;this.Od=!1};
var Yf=new Df(function(){return new Xf},function(a){a.reset()}),Zf=function(a,b,c){var d=Yf.get();d.Pc=a;d.vd=b;d.context=c;return d},G=function(a){if(a instanceof F)return a;var b=new F(Sf);Vf(b,2,a);return b},H=function(a){return new F(function(b,c){c(a)})},ag=function(a,b,c){$f(a,b,c,null)||Qf(za(b,a))},bg=function(a){return new F(function(b,c){var d=a.length,e=[];if(d)for(var f=function(m,q){d--;e[m]=q;d==0&&b(e)},g=function(m){c(m)},h,l=0;l<a.length;l++)h=a[l],ag(h,za(f,l),g);else b(e)})},cg=
function(a){return new F(function(b){var c=a.length,d=[];if(c)for(var e=function(h,l,m){c--;d[h]=l?{mi:!0,value:m}:{mi:!1,reason:m};c==0&&b(d)},f,g=0;g<a.length;g++)f=a[g],ag(f,za(e,g,!0),za(e,g,!1));else b(d)})};
F.prototype.then=function(a,b,c){a!=null&&tb(a,"opt_onFulfilled should be a function.");b!=null&&tb(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return dg(this,Cf(typeof a==="function"?a:null),Cf(typeof b==="function"?b:null),c)};F.prototype.$goog_Thenable=!0;
var fg=function(a,b,c,d){b!=null&&tb(b,"opt_onFulfilled should be a function.");c!=null&&tb(c,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");eg(a,Zf(b||Sf,c||null,d))};k=F.prototype;k.Ac=function(a,b){a=Cf(a);b=Zf(a,a,b);b.Od=!0;eg(this,b);return this};k.finally=function(a){var b=this;a=Cf(a);return new Promise(function(c,d){fg(b,function(e){a();c(e)},function(e){a();d(e)})})};k.l=function(a,b){return dg(this,null,Cf(a),b)};k.catch=F.prototype.l;
k.cancel=function(a){if(this.Ba==0){var b=new Wf(a);Qf(function(){gg(this,b)},this)}};
var gg=function(a,b){if(a.Ba==0)if(a.Ha){var c=a.Ha;if(c.Wb){for(var d=0,e=null,f=null,g=c.Wb;g&&(g.Od||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.Ba==0&&d==1?gg(c,b):(f?(d=f,y(c.Wb),y(d!=null),d.next==c.Zc&&(c.Zc=d),d.next=d.next.next):hg(c),ig(c,e,3,b)))}a.Ha=null}else Vf(a,3,b)},eg=function(a,b){a.Wb||a.Ba!=2&&a.Ba!=3||jg(a);y(b.Pc!=null);a.Zc?a.Zc.next=b:a.Wb=b;a.Zc=b},dg=function(a,b,c,d){b&&(b=Kf(b,"goog.Promise.then"));c&&(c=Kf(c,"goog.Promise.then"));var e=Zf(null,null,null);
e.child=new F(function(f,g){e.Pc=b?function(h){try{var l=b.call(d,h);f(l)}catch(m){g(m)}}:f;e.vd=c?function(h){try{var l=c.call(d,h);l===void 0&&h instanceof Wf?g(h):f(l)}catch(m){g(m)}}:g});e.child.Ha=a;eg(a,e);return e.child};F.prototype.jm=function(a){y(this.Ba==1);this.Ba=0;Vf(this,2,a)};F.prototype.km=function(a){y(this.Ba==1);this.Ba=0;Vf(this,3,a)};
var Vf=function(a,b,c){a.Ba==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Ba=1,$f(c,a.jm,a.km,a)||(a.Ua=c,a.Ba=b,a.Ha=null,jg(a),b!=3||c instanceof Wf||kg(a,c)))},$f=function(a,b,c,d){if(a instanceof F)return fg(a,b,c,d),!0;if(Uf(a))return a.then(b,c,d),!0;if(u(a))try{var e=a.then;if(typeof e==="function")return lg(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},lg=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))};
try{b.call(a,g,h)}catch(l){h(l)}},jg=function(a){a.xg||(a.xg=!0,Qf(a.zk,a))},hg=function(a){var b=null;a.Wb&&(b=a.Wb,a.Wb=b.next,b.next=null);a.Wb||(a.Zc=null);b!=null&&y(b.Pc!=null);return b};F.prototype.zk=function(){for(var a;a=hg(this);)ig(this,a,this.Ba,this.Ua);this.xg=!1};
var ig=function(a,b,c,d){if(c==3&&b.vd&&!b.Od)for(;a&&a.Xe;a=a.Ha)a.Xe=!1;if(b.child)b.child.Ha=null,mg(b,c,d);else try{b.Od?b.Pc.call(b.context):mg(b,c,d)}catch(e){ng.call(null,e)}Yf.put(b)},mg=function(a,b,c){b==2?a.Pc.call(a.context,c):a.vd&&a.vd.call(a.context,c)},kg=function(a,b){a.Xe=!0;Qf(function(){a.Xe&&ng.call(null,b)})},ng=Ef,Wf=function(a){mb.call(this,a)};w(Wf,mb);Wf.prototype.name="cancel";var og,pg,qg,rg=/^[\w\.\-]*$/,sg=function(a){return a.getOrigin()===a.getContext().getOrigin()},tg=function(){return!0},ug=function(a){for(var b=ld(),c=0;c<a.length;c++)b[a[c]]=!0;return function(d){return!!b[d.Ib]}},wg=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=vg(a,d,b);!c&&d.length>0&&bg(d).then(e)}}},vg=function(a,b,c){a=og[a];if(!a)return[];for(var d=[],e=0;e<a.length;e++)d.push(G(a[e].call(c,
b,c)));return d},xg=function(a,b,c){E(a!="_default","Cannot update default api");pg[a]={map:b,filter:c}},yg=function(a,b,c){E(a!="_default","Cannot update default api");ad(pg,a,{map:{},filter:sg}).map[b]=c},zg=function(a,b){ad(pg,"_default",{map:{},filter:tg}).map[a]=b;ed(qg.kb,function(c){c.register(a,b,tg)})},Ag=function(){return qg},Bg=/^https?:\/\/[^\/%\\?#\s]+$/i,Cg={longdesc:!0,name:!0,src:!0,frameborder:!0,marginwidth:!0,marginheight:!0,scrolling:!0,align:!0,height:!0,width:!0,id:!0,"class":!0,
title:!0,tabindex:!0,hspace:!0,vspace:!0,allowtransparency:!0};var Dg=function(a){this.i=a||{}};Dg.prototype.value=function(){return this.i};Dg.prototype.getIframe=function(){return this.i.iframe};var Eg=function(a,b){a.i.role=b;return a},Fg=function(a,b){a.i.data=b;return a};Dg.prototype.ac=function(a){this.i.setRpcReady=a;return this};var Gg=function(a){return a.i.setRpcReady};Dg.prototype.Tc=function(a){this.i.rpctoken=a;return this};var Hg=function(a){return a.i.rpctoken},Ig=function(a){a.i.selfConnect=!0;return a};var Jg=function(a){this.i=a};Jg.prototype.value=function(){return this.i};Jg.prototype.Dj=function(a){this.i.style=a};Jg.prototype.getStyle=function(){return this.i.style};var Kg=function(a,b){a.i.onload=b};function Lg(a){this.i=a||{}}Lg.prototype.value=function(){return this.i};var Ng=function(a){var b=new Mg;b.i.role=a;return b},Og=function(a,b){a.i.handler=b;return a},Pg=function(a,b){a.i.filter=b;return a};Lg.prototype.xe=function(a){this.i.apis=a;return this};var Qg=function(a){this.i=a||{}};k=Qg.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.Dj=function(a){this.i.style=a};k.getStyle=function(){return this.i.style};k.getId=function(){return this.i.id};k.Tc=function(a){this.i.rpctoken=a;return this};var Rg=function(a,b){a.i.messageHandlers=b;return a},Sg=function(a,b){a.i.messageHandlersFilter=b;return a};Qg.prototype.xe=function(a){this.i.apis=a;return this};
var Tg=function(a,b){a.i.onClose=b};Qg.prototype.getContext=function(){return this.i.context};var Ug=function(a){a.i.attributes=a.i.attributes||{};return new Jg(a.i.attributes)},Vg=function(a,b){a.i.controllerData=b},Wg=function(a){return(a=a.i.timeout)?a:null};var Xg=function(){Dg.apply(this,arguments)};p(Xg,Dg);var Mg=function(){Lg.apply(this,arguments)};p(Mg,Lg);var Yg=function(){Qg.apply(this,arguments)};p(Yg,Qg);var I=function(a){Yg.call(this,a)};p(I,Yg);var Zg=function(a,b){a.i.frameName=b;return a};I.prototype.getFrameName=function(){return this.i.frameName};var $g=function(a,b){a.i.rpcAddr=b;return a};I.prototype.ob=function(){return this.i.rpcAddr};var ah=function(a,b){a.i.retAddr=b;return a};I.prototype.Fb=function(){return this.i.retAddr};var bh=function(a,b){a.i.origin=b;return a};I.prototype.getOrigin=function(){return this.i.origin};I.prototype.ac=function(a){this.i.setRpcReady=a;return this};
var ch=function(a,b){a.i.context=b},dh=function(a,b){a.i._rpcReadyFn=b};I.prototype.getIframeEl=function(){return this.i.iframeEl};var eh=function(a,b,c){var d=a.ob(),e=b.Fb();ah($g(c,a.Fb()+"/"+b.ob()),e+"/"+d);bh(Zg(c,b.getFrameName()),b.getOrigin())};var gh=function(a){this.resolve=this.reject=null;this.promise=new F(v(function(b,c){this.resolve=b;this.reject=c},this));a&&(this.promise=fh(this.promise,a))},fh=function(a,b){return a.then(function(c){try{b(c)}catch(d){}return c})};var hh=function(){this.vb=window.console};hh.prototype.log=function(a){this.vb&&this.vb.log&&this.vb.log(a)};hh.prototype.error=function(a){this.vb&&(this.vb.error?this.vb.error(a):this.vb.log&&this.vb.log(a))};hh.prototype.warn=function(a){this.vb&&(this.vb.warn?this.vb.warn(a):this.vb.log&&this.vb.log(a))};hh.prototype.debug=function(){};var ih=new hh;var qh=function(){this.De={tj:jh?"../"+jh:null,tk:kh,vi:lh,Im:mh,getToken:nh,Jm:oh};this.ub=D;this.kj=this.sk;this.Dk=/MSIE\s*[0-8](\D|$)/.test(window.navigator.userAgent);if(this.De.tj){this.ub=this.De.vi(this.ub,this.De.tj);var a=this.ub.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.kj=this.ub.doPostMsg}this.Bh={};this.Kh={};a=v(this.Nk,this);
Cd(this.ub,"message",a);ad(Id,"RPMQ",[]).push(a);this.ub!=this.ub.parent&&ph(this,this.ub.parent,this.Pi(this.ub.name),"*")};qh.prototype.Pi=function(a){return'{"h":"'+escape(a)+'"}'};var rh=function(a){var b=null;a.indexOf('{"h":"')===0&&a.indexOf('"}')===a.length-2&&(b=unescape(a.substring(6,a.length-2)));return b},sh=function(a){if(!/^\s*{/.test(a))return!1;a=oe(a);return a!==null&&typeof a==="object"&&!!a.g};
qh.prototype.Nk=function(a){var b=String(a.data);ih.debug("gapix.rpc.receive("+mh+"): "+(!b||b.length<=512?b:b.substr(0,512)+"... ("+b.length+" bytes)"));var c=b.indexOf("!_")!==0;c||(b=b.substring(2));var d=sh(b);if(!c&&!d){if(!d&&(c=rh(b))){if(this.Bh[c])this.Bh[c]();else this.Kh[c]=1;return}var e=a.origin,f=this.De.tk;this.Dk?D.setTimeout(function(){f(b,e)},0):f(b,e)}};qh.prototype.setup=function(a,b){a===".."||this.Kh[a]?(b(),delete this.Kh[a]):this.Bh[a]=b};
var ph=function(a,b,c,d){var e=sh(c)?"":"!_";ih.debug("gapix.rpc.send("+mh+"): "+(!c||c.length<=512?c:c.substr(0,512)+"... ("+c.length+" bytes)"));a.kj(b,e+c,d)};qh.prototype.sk=function(a,b,c){a.postMessage(b,c)};qh.prototype.send=function(a,b,c){(a=this.De.vi(this.ub,a))&&!a.closed&&ph(this,a,b,c)};var th=0,uh=[],vh={},wh={},xh=D.location.href,yh=od(xh,"rpctoken"),zh=od(xh,"parent")||Zc.referrer,jh=od(xh,"rly"),mh=jh||(D!==D.top||D.opener)&&D.name||"..",Ah=null,Bh={},Ch=function(){},Dh={send:Ch,setup:Ch,Pi:Ch},lh=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=
c;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=ma(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},nh=function(a){return(a=
vh[a])&&a.token},Eh=function(a){if(a.f in{})return!1;var b=a.t,c=vh[a.r];a=a.origin;return c&&(c.token===b||!c.token&&!b)&&(a===c.origin||c.origin==="*")},Fh=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=="*")}},Ih=function(a,b,c){a=Gh(a);wh[a.name]={Vd:b,he:a.he,Ca:c||Eh};Hh()},Jh={},Kh=function(a,b){(a=Jh["_"+a])&&a[1](this)&&a[0].call(this,b)},Mh=function(a){var b=a.c;if(!b)return Ch;var c=a.r,d=a.g?"legacy__":"";return function(){var e=
[].slice.call(arguments,0);e.unshift(c,d+"__cb",null,b);Lh.apply(null,e)}},oh=function(a){Ah=a},Oh=function(a){Bh[a]||(Bh[a]=D.setTimeout(function(){Bh[a]=!1;Nh(a)},0))},Nh=function(a){var b=vh[a];if(b&&b.ready){var c=b.ih;for(b.ih=[];c.length;)Dh.send(a,pe(c.shift()),b.origin)}},Gh=function(a){return a.indexOf("legacy__")===0?{name:a.substring(8),he:!0}:{name:a,he:!1}},Hh=function(){for(var a=Ba("rpc/residenceSec")||60,b=(new Date).getTime()/1E3,c,d=0;c=uh[d];++d){var e=c.rpc;if(!e||a>0&&b-c.timestamp>
a)uh.splice(d,1),--d;else{var f=e.s,g=wh[f]||wh["*"];if(g)if(uh.splice(d,1),--d,e.origin=c.origin,c=Mh(e),e.callback=c,g.Ca(e)){if(f!=="__cb"&&!!g.he!=!!e.g)break;e=g.Vd.apply(e,e.a);e!==void 0&&c(e)}else ih.debug("gapix.rpc.rejected("+mh+"): "+f)}}},Ph=function(a,b,c){uh.push({rpc:a,origin:b,timestamp:(new Date).getTime()/1E3});c||Hh()},kh=function(a,b){a=oe(a);Ph(a,b,!1)},Qh=function(a){for(;a.length;)Ph(a.shift(),this.origin,!0);Hh()},Rh=function(a){var b=!1;a=a.split("|");var c=a[0];c.indexOf("/")>=
0&&(b=!0);return{id:c,origin:a[1]||"*",Lg:b}},Sh=function(a,b,c,d){var e=Rh(a);d&&(D.frames[e.id]=D.frames[e.id]||d);a=e.id;if(!vh.hasOwnProperty(a)){c=c||null;d=e.origin;if(a==="..")d=gf(zh),c=c||yh;else if(!e.Lg){var f=Zc.getElementById(a);f&&(f=f.src,d=gf(f),c=c||od(f,"rpctoken"))}e.origin==="*"&&d||(d=e.origin);vh[a]={token:c,ih:[],origin:d,Tl:b,qj:function(){var g=a;vh[g].ready=1;Nh(g)}};Dh.setup(a,vh[a].qj)}return vh[a].qj},Lh=function(a,b,c,d){a=a||"..";Sh(a);a=a.split("|",1)[0];var e=b,f=
a,g=[].slice.call(arguments,3),h=c,l=mh,m=yh,q=vh[f],x=l,A=Rh(f);if(q&&f!==".."){if(A.Lg){if(!(m=vh[f].Tl)){m=Ah?Ah.substring(1).split("/"):[mh];x=m.length-1;for(f=D.parent;f!==D.top;){var R=f.parent;if(!x--){for(var Aa=null,zc=R.frames.length,ke=0;ke<zc;++ke)R.frames[ke]==f&&(Aa=ke);m.unshift("{"+Aa+"}")}f=R}m="/"+m.join("/")}x=m}else x=l="..";m=q.token}h&&A?(q=Eh,A.Lg&&(q=Fh(A)),Jh["_"+ ++th]=[h,q],h=th):h=null;g={s:e,f:l,r:x,t:m,c:h,a:g};e=Gh(e);g.s=e.name;g.g=e.he;vh[a].ih.push(g);Oh(a)};
if(typeof D.postMessage==="function"||typeof D.postMessage==="object")Dh=new qh,Ih("__cb",Kh,function(){return!0}),Ih("_processBatch",Qh,function(){return!0}),Sh("..");!C("Android")||yc();yc();var Th=C("Safari")&&!(yc()||(xc()?0:C("Coast"))||(xc()?0:C("Opera"))||(xc()?0:C("Edge"))||(xc()?wc("Microsoft Edge"):C("Edg/"))||(xc()?wc("Opera"):C("OPR"))||C("Firefox")||C("FxiOS")||C("Silk")||C("Android"))&&!(Ac()||C("iPad")||C("iPod"));var Vh=function(a,b,c){a.setTimeout(function(){b.closed||c==5?Uh(b):(b.close(),c++,Vh(a,b,c))},1E3)},Uh=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{Vc(a);
var b=Xc(a);a.appendChild(b.createTextNode("Please close this window."))}};var J=function(a,b,c,d){this.Cb=!1;this.Qe=a;this.oh=b;this.nd=c;this.Sa=d;this.uj=this.Sa.Fb();this.Ib=this.Sa.getOrigin();this.Yk=this.Sa.getIframeEl();this.Ij=this.Sa.i.where;this.Bb=[];this.applyIframesApi("_default");a=this.Sa.i.apis||[];for(b=0;b<a.length;b++)this.applyIframesApi(a[b]);this.Qe.kb[c]=this};k=J.prototype;k.isDisposed=function(){return this.Cb};
k.dispose=function(){if(!this.isDisposed()){for(var a=0;a<this.Bb.length;a++)this.unregister(this.Bb[a]);delete qg.kb[this.getFrameName()];this.Cb=!0}};k.getContext=function(){return this.Qe};k.getOptions=function(){return this.Sa};k.ob=function(){return this.oh};k.Fb=function(){return this.uj};k.getFrameName=function(){return this.nd};k.getIframeEl=function(){return this.Yk};k.getSiteEl=function(){return this.Ij};k.setSiteEl=function(a){this.Ij=a};k.ac=function(){(0,this.Sa.i._rpcReadyFn)()};
k.setParam=function(a,b){this.Sa.value()[a]=b};k.getParam=function(a){return this.Sa.value()[a]};k.ri=function(){return this.Sa.value()};k.getId=function(){return this.Sa.getId()};k.getOrigin=function(){return this.Ib};var Wh=function(a,b){var c=a.nd;a=a.Qe.getFrameName();return c+":"+a+":"+b};k=J.prototype;
k.register=function(a,b,c){E(!this.isDisposed(),"Cannot register handler on disposed iframe "+a);E((c||sg)(this),"Rejecting untrusted message "+a);c=Wh(this,a);ad(og,c,[]).push(b)==1&&(this.Bb.push(a),Ih(c,wg(c,this,a==="_g_wasClosed")))};k.unregister=function(a,b){var c=Wh(this,a),d=og[c];d&&(b?(b=cd.call(d,b),b>=0&&d.splice(b,1)):d.splice(0,d.length),d.length==0&&(b=cd.call(this.Bb,a),b>=0&&this.Bb.splice(b,1),delete wh[Gh(c).name]))};k.Ik=function(){return this.Bb};
k.applyIframesApi=function(a){this.Wf=this.Wf||[];if(!(cd.call(this.Wf,a)>=0)){this.Wf.push(a);a=pg[a]||{map:{}};for(var b in a.map)dd(a.map,b)&&this.register(b,a.map[b],a.filter)}};k.getWindow=function(){if(!sg(this))return null;var a=this.Sa.i._popupWindow;if(a)return a;var b=this.oh.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};
var Xh=function(a){var b={};if(a)for(var c in a)dd(a,c)&&dd(zf,c)&&Af.test(a[c])&&(b[c]=a[c]);return b};k=J.prototype;k.close=function(a,b){return Yh(this,"_g_close",a,b)};k.restyle=function(a,b){return Yh(this,"_g_restyle",a,b)};k.Pl=function(a,b){return Yh(this,"_g_restyleDone",a,b)};k.jk=function(a){return this.getContext().closeSelf(a,void 0,this)};k.Rl=function(a){if(a&&typeof a==="object")return this.getContext().restyleSelf(a,void 0,this)};
k.Sl=function(a){var b=this.Sa.i.onRestyle;b&&b.call(this,a,this);a=a&&typeof a==="object"?Xh(a):{};(b=this.getIframeEl())&&a&&typeof a==="object"&&(dd(a,"height")&&(a.height=Bf(a.height)),dd(a,"width")&&(a.width=Bf(a.width)),md(a,b.style))};
k.kk=function(a){var b=this.Sa.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();Gc&&Th&&c?(c.focus(),Vh(c,b,0)):(b.close(),Uh(b))}b||(b=this.getIframeEl())&&b.parentNode&&b.parentNode.removeChild(b);if(b=this.Sa.i.controller)c={},c.frameName=this.getFrameName(),Yh(b,"_g_disposeControl",c);b=Wh(this,"_g_wasClosed");vg(b,a,this)};
k.registerWasRestyled=function(a,b){this.register("_g_wasRestyled",a,b)};k.registerWasClosed=function(a,b){this.register("_g_wasClosed",a,b)};k.sm=function(){delete this.getContext().kb[this.getFrameName()];this.getContext().getWindow().setTimeout(v(function(){this.dispose()},this),0)};
k.send=function(a,b,c,d){E(!this.isDisposed(),"Cannot send message to disposed iframe - "+a);E((d||sg)(this),"Wrong target for message "+a);c=new gh(c);a=this.Qe.getFrameName()+":"+this.nd+":"+a;Lh(this.oh,a,c.resolve,b);return c.promise};var Yh=function(a,b,c,d){return a.send(b,c,d,tg)};k=J.prototype;k.Fl=function(a){return a};k.ping=function(a,b){return Yh(this,"_g_ping",b,a)};
k.nk=function(a){a=a&&typeof a==="object"?a:{};for(var b=a.rpcAddr,c=(this.ob()+"/"+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.ob();a._parentRetAddr=this.Fb();this.getContext();b=new K(a);this.wl&&this.wl(b,a.controllerData);this.mg=this.mg||[];this.mg.push(b,a.controllerData)};
k.uk=function(a){a=(a||{}).frameName;for(var b=this.mg||[],c=0;c<b.length;c++)if(b[c].getFrameName()===a){a=b.splice(c,1)[0];a.dispose();this.xl&&this.xl(a);return}E(!1,"Unknown contolled iframe to dispose - "+a)};
k.lk=function(a){var b=new I(a);a=new Xg(b.value());if(a.i.selfConnect)var c=this;else(E(Bg.test(b.getOrigin()),"Illegal origin for connected iframe - "+b.getOrigin()),c=this.getContext().kb[b.getFrameName()],c)?Gg(b)&&(c.ac(),Yh(c,"_g_rpcReady")):(b=Zg(bh(ah($g(new I,b.ob()),b.Fb()),b.getOrigin()),b.getFrameName()).ac(Gg(b)).Tc(Hg(b)),c=Zh(this.getContext(),b.value()));b=this.getContext();var d=a.i.role;a=a.i.data;$h(b);d=d||"";ad(b.lg,d,[]).push({ff:c,data:a});ai(c,a,b.Sg[d])};
k.Cj=function(a,b){(new I(b)).i._relayedDepth||(b={},Ig(Eg(new Xg(b),"_opener")),Yh(a,"_g_connect",b))};
k.fj=function(a){var b=this,c=a.i.messageHandlers,d=a.i.messageHandlersFilter,e=a.i.onClose;Tg(Sg(Rg(a,null),null),null);return Yh(this,"_g_open",a.value()).then(function(f){var g=new I(f[0]),h=g.getFrameName();f=new I;var l=b.Fb(),m=g.Fb();ah($g(f,b.ob()+"/"+g.ob()),m+"/"+l);Zg(f,h);bh(f,g.getOrigin());f.xe(g.i.apis);f.Tc(Hg(a));Rg(f,c);Sg(f,d);Tg(f,e);(g=b.getContext().kb[h])||(g=Zh(b.getContext(),f.value()));return g})};
k.qh=function(a){var b=a.getUrl();E(!b||zd.test(b),"Illegal url for new iframe - "+b);var c=Ug(a).value();b={};for(var d in c)dd(c,d)&&dd(Cg,d)&&(b[d]=c[d]);dd(c,"style")&&(d=c.style,typeof d==="object"&&(b.style=Xh(d)));a.value().attributes=b};
k.Cl=function(a){a=new I(a);this.qh(a);var b=a.i._relayedDepth||0;a.i._relayedDepth=b+1;a.i.openerIframe=this;var c=Hg(a);a.Tc(null);var d=this;return this.getContext().open(a.value()).then(function(e){var f=(new I(e.ri())).i.apis,g=new I;eh(e,d,g);b==0&&Eg(new Xg(g.value()),"_opener");g.ac(!0);g.Tc(c);Yh(e,"_g_connect",g.value());g=new I;bh(Zg(ah($g(g,e.ob()),e.uj),e.getFrameName()),e.getOrigin()).xe(f);return g.value()})};
k.Ql=function(a){this.getContext().addOnOpenerHandler(function(b){b.send("_g_wasRestyled",a,void 0,tg)},null,tg)};var bi=ld(),ci=ld(),di=function(a,b){bi[a]=b},ei=function(a){return bi[a]},fi=function(a,b){nd.load("gapi.iframes.style."+a,b)},gi=function(a,b){ci[a]=b},hi=function(a){return ci[a]};var ii=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=
e[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")},ji=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;
if(document.compatMode==="CSS1Compat"&&c.scrollHeight)return c.scrollHeight!==a?c.scrollHeight:c.offsetHeight;if(navigator.userAgent.indexOf("AppleWebKit")>=0)return ii();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.Cb=!1;this.wa=ld();this.kb=ld();this.ub=a._window||D;this.hb=this.ub.location.href;this.ij=(this.Xg=ki(this.hb,"parent"))?ki(this.hb,"pfname"):"";this.Pa=this.Xg?ki(this.hb,"_gfid")||ki(this.hb,"id"):"";this.nd=Oe(this.Pa,this.ij);this.Ib=gf(this.hb);if(this.Pa){var b=new I;$g(b,a._parentRpcAddr||"..");ah(b,a._parentRetAddr||this.Pa);bh(b,gf(this.Xg||this.hb));Zg(b,this.ij);this.Ha=Zh(this,b.value())}else this.Ha=null};k=K.prototype;k.isDisposed=function(){return this.Cb};
k.dispose=function(){if(!this.isDisposed()){for(var a=ma(Object.values(this.kb)),b=a.next();!b.done;b=a.next())b.value.dispose();this.Cb=!0}};k.getFrameName=function(){return this.nd};k.getOrigin=function(){return this.Ib};k.getWindow=function(){return this.ub};k.setGlobalParam=function(a,b){this.wa[a]=b};k.getGlobalParam=function(a){return this.wa[a]};
var Zh=function(a,b){E(!a.isDisposed(),"Cannot attach iframe in disposed context");b=new I(b);b.ob()||$g(b,b.getId());b.Fb()||ah(b,"..");b.getOrigin()||bh(b,gf(b.getUrl()));b.getFrameName()||Zg(b,Oe(b.getId(),a.nd));var c=b.getFrameName();if(a.kb[c])return a.kb[c];var d=b.ob(),e=d;b.getOrigin()&&(e=d+"|"+b.getOrigin());var f=b.Fb(),g=Hg(b);g||(g=(g=b.getIframeEl())&&(g.getAttribute("data-postorigin")||g.src)||b.getUrl(),g=od(g,"rpctoken"));dh(b,Sh(e,f,g,b.i._popupWindow));e=((window.gadgets||{}).rpc||
{}).setAuthToken;g&&e&&e(d,g);var h=new J(a,d,c,b),l=b.i.messageHandlersFilter;ed(b.i.messageHandlers,function(m,q){h.register(q,m,l)});Gg(b)&&h.ac();Yh(h,"_g_rpcReady");return h};K.prototype.qh=function(a){Zg(a,null);var b=a.getId();!b||rg.test(b)&&!this.getWindow().document.getElementById(b)||(ih.log("Ignoring requested iframe ID - "+b),a.i.id=null)};var ki=function(a,b){var c=od(a,b);c||(c=oe(od(a,"jcp",""))[b]);return c||""};
K.prototype.openChild=function(a){E(!this.isDisposed(),"Cannot open iframe in disposed context");var b=new I(a);li(this,b);var c=b.getFrameName();if(c&&this.kb[c])return this.kb[c];this.qh(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.yi&&this.yi(c,b);d||(d=b.i.where,E(!!d,"No location for new iframe"),c=We(c,d,a),b.i.iframeEl=c,d=c.getAttribute("id"));$g(b,d).i.id=d;bh(b,gf(b.i.eurl||""));this.Qi&&this.Qi(b,b.getIframeEl());c=Zh(this,
a);c.Cj&&c.Cj(c,a);(a=b.i.onCreate)&&a(c);b.i.disableRelayOpen||c.applyIframesApi("_open");return c};
var mi=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&&gf(e)===a.Ib&&gf(d)===a.Ib,"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=Ve(e)+(/#/.test(e)?h.replace(/^#/,"&"):h);g.location.replace(h);c&&c(f)}},ni=function(a,b,c){var d=b.i.relayOpen;if(d){var e=a.getParentIframe();d instanceof J?
(e=d,b.i.relayOpen=0):Number(d)>0&&(b.i.relayOpen=Number(d)-1);if(e){E(!!e.fj,"Relaying iframe open is disabled");if(d=b.getStyle())if(d=ci[d])ch(b,a),d(b.value()),ch(b,null);b.i.openerIframe=null;c.resolve(e.fj(b));return!0}}return!1},oi=function(a,b,c){var d=b.getStyle();if(d)if(E(!!ei,"Defer style is disabled, when requesting style "+d),bi[d])li(a,b);else return fi(d,function(){E(!!bi[d],"Fail to load style - "+d);c.resolve(a.open(b.value()))}),!0;return!1};
K.prototype.open=function(a,b){E(!this.isDisposed(),"Cannot open iframe in disposed context");var c=new I(a);b=mi(this,c,b);var d=new gh(b);(b=c.getUrl())&&c.setUrl(Ve(b));if(ni(this,c,d)||oi(this,c,d)||ni(this,c,d))return d.promise;if(Wg(c)!=null){var e=setTimeout(function(){g.getIframeEl().src="about:blank";d.reject({timeout:"Exceeded time limit of :"+Wg(c)+"milliseconds"})},Wg(c)),f=d.resolve;d.resolve=function(h){clearTimeout(e);f(h)}}c.i.waitForOnload&&Kg(Ug(c),function(){d.resolve(g)});var g=
this.openChild(a);c.i.waitForOnload||d.resolve(g);return d.promise};K.prototype.getParentIframe=function(){return this.Ha};var pi=function(a,b){var c=a.getParentIframe(),d=!0;b.filter&&(d=b.filter.call(b.ff,b.params));return G(d).then(function(e){return e&&c?(b.hj&&b.hj.call(a,b.params),e=b.sender?b.sender(b.params):Yh(c,b.message,b.params),b.rm?e.then(function(){return!0}):!0):!1})};k=K.prototype;
k.closeSelf=function(a,b,c){a=pi(this,{sender:function(d){var e=qg.getParentIframe();ed(qg.kb,function(f){f!==e&&Yh(f,"_g_wasClosed",d)});return Yh(e,"_g_closeMe",d)},message:"_g_closeMe",params:a,ff:c,filter:this.getGlobalParam("onCloseSelfFilter")});b=new gh(b);b.resolve(a);return b.promise};k.restyleSelf=function(a,b,c){a=a||{};b=new gh(b);b.resolve(pi(this,{message:"_g_restyleMe",params:a,ff:c,filter:this.getGlobalParam("onRestyleSelfFilter"),rm:!0,hj:this.Oj}));return b.promise};
k.Oj=function(a){a.height==="auto"&&(a.height=ji())};k.setCloseSelfFilter=function(a){this.setGlobalParam("onCloseSelfFilter",a)};k.setRestyleSelfFilter=function(a){this.setGlobalParam("onRestyleSelfFilter",a)};var li=function(a,b){var c=b.getStyle();if(c){b.Dj(null);var d=bi[c];E(d,"No such style: "+c);ch(b,a);d(b.value());ch(b,null)}};
K.prototype.ready=function(a,b,c,d){var e=b||{},f=this.getParentIframe();this.addOnOpenerHandler(function(h){ed(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.Oj(g);f&&f.send("_ready",g,c,tg)};
K.prototype.connectIframes=function(a,b){a=new Xg(a);var c=new Xg(b),d=Gg(a);b=a.getIframe();var e=c.getIframe();if(e){var f=Hg(a),g=new I;eh(b,e,g);Fg(Eg((new Xg(g.value())).Tc(f),a.i.role),a.i.data).ac(d);var h=new I;eh(e,b,h);Fg(Eg((new Xg(h.value())).Tc(f),c.i.role),c.i.data).ac(!0);Yh(b,"_g_connect",g.value(),function(){d||Yh(e,"_g_connect",h.value())});d&&Yh(e,"_g_connect",h.value())}else c={},Fg(Eg(Ig(new Xg(c)),a.i.role),a.i.data),Yh(b,"_g_connect",c)};
var $h=function(a){a.lg||(a.lg=ld(),a.Sg=ld())};K.prototype.addOnConnectHandler=function(a,b,c,d){$h(this);typeof a==="object"?(b=new Mg(a),c=b.i.role||""):(b=Pg(Og(Ng(a),b).xe(c),d),c=a);d=this.lg[c]||[];a=!1;for(var e=0;e<d.length&&!a;e++)ai(this.kb[d[e].ff.getFrameName()],d[e].data,[b]),a=b.i.runOnce;c=ad(this.Sg,c,[]);a||b.i.dontWait||c.push(b)};
K.prototype.removeOnConnectHandler=function(a,b){a=ad(this.Sg,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 ai=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||sg;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)}}}};
K.prototype.addOnOpenerHandler=function(a,b,c){var d=this.addOnConnectHandler;a=Pg(Og(Ng("_opener"),a).xe(b),c);a.i.runOnce=!0;d.call(this,a.value())};K.prototype.Qi=function(a,b){var c=a.i.controller;if(c){E(c.Ib===a.getOrigin(),"Wrong controller origin "+this.Ib+" !== "+a.getOrigin());var d=a.ob();$g(a,c.ob());ah(a,c.Fb());var e=new I;Vg($g(e,d),a.i.controllerData);Cd(b,"load",function(){c.send("_g_control",e.value())})}};
var qi=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=Ne(d,c);var g=f,h=c.i.rpcRelayUrl;if(h){h=yd(Zc,h.replace(Te,Ue));g=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;Re(d,g,l,f);g=f+"_relay"}b=Ve(b);var m=Pe(d,b,f,c.value());c.i.eurl=m;
b=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 q=e;setTimeout(function(){q.location.replace(m)})}else q=Sb(a,m,g,b);return{id:f,Uj:q}};K.prototype.yi=function(a,b){if(b.i.openAsWindow){a=qi(this,a,b);var c=a.id;E(!!a.Uj,"Open popup window failed");b.i._popupWindow=a.Uj}return c};og=ld();pg=ld();qg=new K;zg("_g_rpcReady",J.prototype.ac);zg("_g_discover",J.prototype.Ik);zg("_g_ping",J.prototype.Fl);zg("_g_close",J.prototype.jk);zg("_g_closeMe",J.prototype.kk);zg("_g_restyle",J.prototype.Rl);zg("_g_restyleMe",J.prototype.Sl);zg("_g_wasClosed",J.prototype.sm);yg("control","_g_control",J.prototype.nk);yg("control","_g_disposeControl",J.prototype.uk);var ri=qg.getParentIframe();ri&&ri.register("_g_restyleDone",J.prototype.Ql,tg);zg("_g_connect",J.prototype.lk);var si={};
si._g_open=J.prototype.Cl;xg("_open",si,tg);var ti={Context:K,Iframe:J,SAME_ORIGIN_IFRAMES_FILTER:sg,CROSS_ORIGIN_IFRAMES_FILTER:tg,makeWhiteListIframesFilter:ug,getContext:Ag,registerIframesApi:xg,registerIframesApiHandler:yg,registerStyle:di,registerBeforeOpenStyle:gi,getStyle:ei,getBeforeOpenStyle:hi,create:We};yf({instance:function(){return ti},priority:2});yg("gapi.load","_g_gapi.load",function(a){return new F(function(b){nd.load(a&&typeof a==="object"&&a.features||"",b)})});t("gapi.iframes.registerStyle",di);t("gapi.iframes.registerBeforeOpenStyle",gi);t("gapi.iframes.getStyle",ei);t("gapi.iframes.getBeforeOpenStyle",hi);t("gapi.iframes.registerIframesApi",xg);t("gapi.iframes.registerIframesApiHandler",yg);t("gapi.iframes.getContext",Ag);t("gapi.iframes.SAME_ORIGIN_IFRAMES_FILTER",sg);t("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER",tg);t("gapi.iframes.makeWhiteListIframesFilter",ug);t("gapi.iframes.Context",K);t("gapi.iframes.Context.prototype.isDisposed",K.prototype.isDisposed);
t("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);
t("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);
t("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);
t("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);
t("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.Pl);t("gapi.iframes.Iframe.prototype.registerWasRestyled",J.prototype.registerWasRestyled);t("gapi.iframes.Iframe.prototype.registerWasClosed",J.prototype.registerWasClosed);
t("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.ri);t("gapi.iframes.create",We);var ui=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")};var vi=null,xi=function(a){var b=[];wi(a,function(c){b.push(c)});return b},wi=function(a,b){function c(l){for(;d<a.length;){var m=a.charAt(d++),q=vi[m];if(q!=null)return q;if(!/^[\s\xa0]*$/.test(m))throw Error("Unknown base64 encoding at char: "+m);}return l}yi();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>>2),h!=64&&b(g<<6&192|h))}},yi=function(){if(!vi){vi={};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=vi[f];g===void 0?vi[f]=e:y(g===e)}}};function zi(a,b){this.blockSize=-1;this.blockSize=64;this.Pe=r.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.bc=this.qd=0;this.na=[];this.ul=a;this.Gi=b;this.om=r.Int32Array?new Int32Array(64):Array(64);Ai===void 0&&(Ai=r.Int32Array?new Int32Array(Bi):Bi);this.reset()}w(zi,te);for(var Ci=[],Di=0;Di<63;Di++)Ci[Di]=0;var Ei=[].concat(128,Ci);zi.prototype.reset=function(){this.bc=this.qd=0;this.na=r.Int32Array?new Int32Array(this.Gi):Db(this.Gi)};
var Fi=function(a){var b=a.Pe;y(b.length==a.blockSize);for(var c=a.om,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)^(e>>>19|e<<13)^e>>>10)|0)|0;b=a.na[0]|0;d=a.na[1]|0;e=a.na[2]|0;for(var f=a.na[3]|0,g=a.na[4]|0,h=a.na[5]|0,l=a.na[6]|0,m=a.na[7]|0,q=0;q<64;q++){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)^
(g>>>11|g<<21)^(g>>>25|g<<7))|0)+(((g&h^~g&l)+(Ai[q]|0)|0)+(c[q]|0)|0)|0;m=l;l=h;h=g;g=f+A|0;f=e;e=d;d=b;b=A+x|0}a.na[0]=a.na[0]+b|0;a.na[1]=a.na[1]+d|0;a.na[2]=a.na[2]+e|0;a.na[3]=a.na[3]+f|0;a.na[4]=a.na[4]+g|0;a.na[5]=a.na[5]+h|0;a.na[6]=a.na[6]+l|0;a.na[7]=a.na[7]+m|0};
zi.prototype.update=function(a,b){b===void 0&&(b=a.length);var c=0,d=this.qd;if(typeof a==="string")for(;c<b;)this.Pe[d++]=a.charCodeAt(c++),d==this.blockSize&&(Fi(this),d=0);else if(wa(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.Pe[d++]=e;d==this.blockSize&&(Fi(this),d=0)}else throw Error("message must be string or array");this.qd=d;this.bc+=b};
zi.prototype.digest=function(){var a=[],b=this.bc*8;this.qd<56?this.update(Ei,56-this.qd):this.update(Ei,this.blockSize-(this.qd-56));for(var c=63;c>=56;c--)this.Pe[c]=b&255,b/=256;Fi(this);for(c=b=0;c<this.ul;c++)for(var d=24;d>=0;d-=8)a[b++]=this.na[c]>>d&255;return a};
var Bi=[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,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Ai;function Gi(){zi.call(this,8,Hi)}w(Gi,zi);var Hi=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];var Ii=function(){this.Cb=this.Cb;this.xf=this.xf};Ii.prototype.Cb=!1;Ii.prototype.isDisposed=function(){return this.Cb};Ii.prototype.dispose=function(){this.Cb||(this.Cb=!0,this.Ud())};Ii.prototype[Symbol.dispose]=function(){this.dispose()};Ii.prototype.Ud=function(){if(this.xf)for(;this.xf.length;)this.xf.shift()()};var Ji=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.qe=!1};Ji.prototype.stopPropagation=function(){this.qe=!0};Ji.prototype.preventDefault=function(){this.defaultPrevented=!0};var Ki=function(a,b){Ji.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.Ya=null;a&&this.init(a,b)};w(Ki,Ji);
Ki.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=Fc||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=
Fc||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=
a.timeStamp;this.Ya=a;a.defaultPrevented&&Ki.Id.preventDefault.call(this)};Ki.prototype.stopPropagation=function(){Ki.Id.stopPropagation.call(this);this.Ya.stopPropagation?this.Ya.stopPropagation():this.Ya.cancelBubble=!0};Ki.prototype.preventDefault=function(){Ki.Id.preventDefault.call(this);var a=this.Ya;a.preventDefault?a.preventDefault():a.returnValue=!1};Ki.prototype.Fk=function(){return this.Ya};var Li="closure_listenable_"+(Math.random()*1E6|0);var Mi=0;var Ni=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ze=e;this.key=++Mi;this.ve=this.Le=!1},Oi=function(a){a.ve=!0;a.listener=null;a.proxy=null;a.src=null;a.Ze=null};function Pi(a){this.src=a;this.Qa={};this.Ee=0}Pi.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.Qa[f];a||(a=this.Qa[f]=[],this.Ee++);var g=Qi(a,b,d,e);g>-1?(b=a[g],c||(b.Le=!1)):(b=new Ni(b,this.src,f,!!d,e),b.Le=c,a.push(b));return b};Pi.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.Qa))return!1;var e=this.Qa[a];b=Qi(e,b,c,d);return b>-1?(Oi(e[b]),Bb(e,b),e.length==0&&(delete this.Qa[a],this.Ee--),!0):!1};
var Ri=function(a,b){var c=b.type;c in a.Qa&&Ab(a.Qa[c],b)&&(Oi(b),a.Qa[c].length==0&&(delete a.Qa[c],a.Ee--))};Pi.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.Qa)if(!a||c==a){for(var d=this.Qa[c],e=0;e<d.length;e++)++b,Oi(d[e]);delete this.Qa[c];this.Ee--}return b};Pi.prototype.Bg=function(a,b,c,d){a=this.Qa[a.toString()];var e=-1;a&&(e=Qi(a,b,c,d));return e>-1?a[e]:null};
Pi.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return Gb(this.Qa,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 Qi=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ve&&f.listener==b&&f.capture==!!c&&f.Ze==d)return e}return-1};var Si="closure_lm_"+(Math.random()*1E6|0),Ti={},Ui=0,Wi=function(a,b,c,d,e){if(d&&d.once)Vi(a,b,c,d,e);else if(Array.isArray(b))for(var f=0;f<b.length;f++)Wi(a,b[f],c,d,e);else c=Xi(c),a&&a[Li]?a.listen(b,c,u(d)?!!d.capture:!!d,e):Yi(a,b,c,!1,d,e)},Yi=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=u(e)?!!e.capture:!!e,h=Zi(a);h||(a[Si]=h=new Pi(a));c=h.add(b,c,d,g,f);if(!c.proxy){d=$i();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)se||(e=g),e===void 0&&(e=!1),a.addEventListener(b.toString(),
d,e);else if(a.attachEvent)a.attachEvent(aj(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.");Ui++}},$i=function(){var a=bj,b=function(c){return a.call(b.src,b.listener,c)};return b},Vi=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Vi(a,b[f],c,d,e);else c=Xi(c),a&&a[Li]?cj(a,b,c,u(d)?!!d.capture:!!d,e):Yi(a,b,c,!0,d,e)},dj=function(a,
b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)dj(a,b[f],c,d,e);else d=u(d)?!!d.capture:!!d,c=Xi(c),a&&a[Li]?a.Eb.remove(String(b),c,d,e):a&&(a=Zi(a))&&(b=a.Bg(b,c,d,e))&&ej(b)},ej=function(a){if(typeof a!=="number"&&a&&!a.ve){var b=a.src;if(b&&b[Li])Ri(b.Eb,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(aj(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Ui--;(c=Zi(b))?(Ri(c,a),c.Ee==0&&(c.src=null,b[Si]=null)):
Oi(a)}}},aj=function(a){return a in Ti?Ti[a]:Ti[a]="on"+a},bj=function(a,b){if(a.ve)a=!0;else{b=new Ki(b,this);var c=a.listener,d=a.Ze||a.src;a.Le&&ej(a);a=c.call(d,b)}return a},Zi=function(a){a=a[Si];return a instanceof Pi?a:null},fj="__closure_events_fn_"+(Math.random()*1E9>>>0),Xi=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[fj]||(a[fj]=function(b){return a.handleEvent(b)});return a[fj]};var gj=function(){Ii.call(this);this.Eb=new Pi(this);this.Zj=this;this.Wg=null};w(gj,Ii);gj.prototype[Li]=!0;k=gj.prototype;k.addEventListener=function(a,b,c,d){Wi(this,a,b,c,d)};k.removeEventListener=function(a,b,c,d){dj(this,a,b,c,d)};
k.dispatchEvent=function(a){hj(this);var b=this.Wg;if(b){var c=[];for(var d=1;b;b=b.Wg)c.push(b),y(++d<1E3,"infinite loop")}b=this.Zj;d=a.type||a;if(typeof a==="string")a=new Ji(a,b);else if(a instanceof Ji)a.target=a.target||b;else{var e=a;a=new Ji(d,b);Kb(a,e)}e=!0;var f;if(c)for(f=c.length-1;!a.qe&&f>=0;f--){var g=a.currentTarget=c[f];e=ij(g,d,!0,a)&&e}a.qe||(g=a.currentTarget=b,e=ij(g,d,!0,a)&&e,a.qe||(e=ij(g,d,!1,a)&&e));if(c)for(f=0;!a.qe&&f<c.length;f++)g=a.currentTarget=c[f],e=ij(g,d,!1,a)&&
e;return e};k.Ud=function(){gj.Id.Ud.call(this);this.Eb&&this.Eb.removeAll(void 0);this.Wg=null};k.listen=function(a,b,c,d){hj(this);return this.Eb.add(String(a),b,!1,c,d)};var cj=function(a,b,c,d,e){a.Eb.add(String(b),c,!0,d,e)},ij=function(a,b,c,d){b=a.Eb.Qa[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.ve&&g.capture==c){var h=g.listener,l=g.Ze||g.src;g.Le&&Ri(a.Eb,g);e=h.call(l,d)!==!1&&e}}return e&&!d.defaultPrevented};
gj.prototype.Bg=function(a,b,c,d){return this.Eb.Bg(String(a),b,c,d)};gj.prototype.hasListener=function(a,b){return this.Eb.hasListener(a!==void 0?String(a):void 0,b)};var hj=function(a){y(a.Eb,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};function jj(){};var kj,lj=function(){};w(lj,jj);lj.prototype.Rd=function(){return new XMLHttpRequest};kj=new lj;function mj(){}w(mj,jj);mj.prototype.Rd=function(){var a=new XMLHttpRequest;if("withCredentials"in a)return a;if(typeof XDomainRequest!="undefined")return new nj;throw Error("Unsupported browser");};
var nj=function(){this.Qb=new XDomainRequest;this.readyState=0;this.onreadystatechange=null;this.responseType=this.responseText=this.response="";this.status=-1;this.responseXML=null;this.statusText="";this.Qb.onload=v(this.Mk,this);this.Qb.onerror=v(this.xi,this);this.Qb.onprogress=v(this.Ok,this);this.Qb.ontimeout=v(this.Sk,this)};k=nj.prototype;k.open=function(a,b,c){if(c!=null&&!c)throw Error("Only async requests are supported.");this.Qb.open(a,b)};
k.send=function(a){if(a)if(typeof a=="string")this.Qb.send(a);else throw Error("Only string data is supported");else this.Qb.send()};k.abort=function(){this.Qb.abort()};k.setRequestHeader=function(){};k.getResponseHeader=function(a){return a.toLowerCase()=="content-type"?this.Qb.contentType:""};k.Mk=function(){this.status=200;this.response=this.responseText=this.Qb.responseText;oj(this,4)};k.xi=function(){this.status=500;this.response=this.responseText="";oj(this,4)};k.Sk=function(){this.xi()};
k.Ok=function(){this.status=200;oj(this,1)};var oj=function(a,b){a.readyState=b;if(a.onreadystatechange)a.onreadystatechange()};nj.prototype.getAllResponseHeaders=function(){return"content-type: "+this.Qb.contentType};var pj=function(a){this.He=a.tm||null;this.ze=a.Km||!1;this.Yc=this.Fc=void 0};w(pj,jj);pj.prototype.Rd=function(){var a=new qj(this.He,this.ze);this.Fc&&a.uh(this.Fc);this.Yc&&a.Bj(this.Yc);return a};pj.prototype.uh=function(a){this.Fc=a};pj.prototype.Bj=function(a){this.Yc=a};
var qj=function(a,b){gj.call(this);this.He=a;this.ze=b;this.Yc=this.Fc=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.nh=new Headers;this.Fd=null;this.Si="GET";this.hb="";this.Sb=!1;this.Gh=this.Sd=this.Ue=null};w(qj,gj);
qj.prototype.open=function(a,b,c){y(!!c,"Only async requests are supported.");if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Si=a;this.hb=b;this.readyState=1;rj(this)};qj.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.Sb=!0;var b={headers:this.nh,method:this.Si,credentials:this.Fc,cache:this.Yc};a&&(b.body=a);(this.He||r).fetch(new Request(this.hb,b)).then(this.Rk.bind(this),this.Ye.bind(this))};
qj.prototype.abort=function(){var a=this;this.response=this.responseText="";this.nh=new Headers;this.status=0;this.Sd&&this.Sd.cancel("Request was aborted.").catch(function(){var b=a.Ea;b&&jc(b,Xb,"Fetch reader cancellation error.")});this.readyState>=1&&this.Sb&&this.readyState!=4&&(this.Sb=!1,sj(this));this.readyState=0};
qj.prototype.Rk=function(a){if(this.Sb&&(this.Ue=a,this.Fd||(this.status=this.Ue.status,this.statusText=this.Ue.statusText,this.Fd=a.headers,this.readyState=2,rj(this)),this.Sb&&(this.readyState=3,rj(this),this.Sb)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.Pk.bind(this),this.Ye.bind(this));else if(typeof r.ReadableStream!=="undefined"&&"body"in a){this.Sd=a.body.getReader();if(this.ze){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
this.response=[]}else this.response=this.responseText="",this.Gh=new TextDecoder;tj(this)}else a.text().then(this.Qk.bind(this),this.Ye.bind(this))};var tj=function(a){a.Sd.read().then(a.Kk.bind(a)).catch(a.Ye.bind(a))};qj.prototype.Kk=function(a){if(this.Sb){if(this.ze&&a.value)this.response.push(a.value);else if(!this.ze){var b=a.value?a.value:new Uint8Array(0);if(b=this.Gh.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?sj(this):rj(this);this.readyState==3&&tj(this)}};
qj.prototype.Qk=function(a){this.Sb&&(this.response=this.responseText=a,sj(this))};qj.prototype.Pk=function(a){this.Sb&&(this.response=a,sj(this))};qj.prototype.Ye=function(){var a=this.Ea;a&&jc(a,Xb,"Failed to fetch url "+this.hb);this.Sb&&sj(this)};var sj=function(a){a.readyState=4;a.Ue=null;a.Sd=null;a.Gh=null;rj(a)};k=qj.prototype;k.setRequestHeader=function(a,b){this.nh.append(a,b)};
k.getResponseHeader=function(a){return this.Fd?this.Fd.get(a.toLowerCase())||"":((a=this.Ea)&&jc(a,Xb,"Attempting to get response header but no headers have been received for url: "+this.hb),"")};k.getAllResponseHeaders=function(){if(!this.Fd){var a=this.Ea;a&&jc(a,Xb,"Attempting to get all response headers but no headers have been received for url: "+this.hb);return""}a=[];for(var b=this.Fd.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
k.uh=function(a){this.Fc=a};k.Bj=function(a){this.Yc=a};var rj=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};Object.defineProperty(qj.prototype,"withCredentials",{get:function(){return this.Fc==="include"},set:function(a){this.uh(a?"include":"same-origin")}});/*
Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
Copyright The Closure Library Authors.
SPDX-License-Identifier: MIT
*/
var vj=function(a){var b=uj;this.Mf=[];this.Vi=b;this.ci=a||null;this.ae=this.md=!1;this.Ua=void 0;this.Ch=this.Ph=this.eg=!1;this.Sf=0;this.Ha=null;this.fg=0};vj.prototype.cancel=function(a){if(this.md)this.Ua instanceof vj&&this.Ua.cancel();else{if(this.Ha){var b=this.Ha;delete this.Ha;a?b.cancel(a):(b.fg--,b.fg<=0&&b.cancel())}this.Vi?this.Vi.call(this.ci,this):this.Ch=!0;this.md||wj(this,new xj(this))}};vj.prototype.Wh=function(a,b){this.eg=!1;yj(this,a,b)};
var yj=function(a,b,c){a.md=!0;a.Ua=c;a.ae=!b;zj(a)},Bj=function(a){if(a.md){if(!a.Ch)throw new Aj(a);a.Ch=!1}};vj.prototype.callback=function(a){Bj(this);Cj(a);yj(this,!0,a)};var wj=function(a,b){Bj(a);Cj(b);yj(a,!1,b)},Cj=function(a){y(!(a instanceof vj),"An execution sequence may not be initiated with a blocking Deferred.")};vj.prototype.addCallback=function(a,b){return Dj(this,a,null,b)};var Ej=function(a,b){Dj(a,null,b)};
vj.prototype.finally=function(a){var b=this;return new Promise(function(c,d){Dj(b,function(e){a();c(e)},function(e){a();d(e)})})};var Dj=function(a,b,c,d){y(!a.Ph,"Blocking Deferreds can not be re-used");var e=a.md;e||(b===c?b=c=Cf(b):(b=Cf(b),c=Cf(c)));a.Mf.push([b,c,d]);e&&zj(a);return a};vj.prototype.then=function(a,b,c){var d,e,f=new F(function(g,h){e=g;d=h});Dj(this,e,function(g){g instanceof xj?f.cancel():d(g);return Fj},this);return f.then(a,b,c)};vj.prototype.$goog_Thenable=!0;
var Gj=function(a){return yb(a.Mf,function(b){return typeof b[1]==="function"})},Fj={},zj=function(a){if(a.Sf&&a.md&&Gj(a)){var b=a.Sf,c=Hj[b];c&&(r.clearTimeout(c.Pa),delete Hj[b]);a.Sf=0}a.Ha&&(a.Ha.fg--,delete a.Ha);b=a.Ua;for(var d=c=!1;a.Mf.length&&!a.eg;){var e=a.Mf.shift(),f=e[0],g=e[1];e=e[2];if(f=a.ae?g:f)try{var h=f.call(e||a.ci,b);h===Fj&&(h=void 0);h!==void 0&&(a.ae=a.ae&&(h==b||h instanceof Error),a.Ua=b=h);if(Uf(b)||typeof r.Promise==="function"&&b instanceof r.Promise)d=!0,a.eg=!0}catch(l){b=
l,a.ae=!0,Gj(a)||(c=!0)}}a.Ua=b;d&&(h=v(a.Wh,a,!0),d=v(a.Wh,a,!1),b instanceof vj?(Dj(b,h,d),b.Ph=!0):b.then(h,d));c&&(b=new Ij(b),Hj[b.Pa]=b,a.Sf=b.Pa)},Aj=function(){mb.call(this)};w(Aj,mb);Aj.prototype.message="Deferred has already fired";Aj.prototype.name="AlreadyCalledError";var xj=function(){mb.call(this)};w(xj,mb);xj.prototype.message="Deferred was canceled";xj.prototype.name="CanceledError";var Ij=function(a){this.Pa=r.setTimeout(v(this.im,this),0);this.yb=a};
Ij.prototype.im=function(){y(Hj[this.Pa],"Cannot throw an error that is not scheduled.");delete Hj[this.Pa];throw this.yb;};var Hj={};var Mj=function(a){var b={},c=b.document||document,d=Za(a).toString(),e=(new Yc(c)).createElement("SCRIPT"),f={wj:e,Qf:void 0},g=new vj(f),h=null,l=b.timeout!=null?b.timeout:5E3;l>0&&(h=window.setTimeout(function(){Jj(e,!0);wj(g,new Kj(1,"Timeout reached for loading script "+d))},l),f.Qf=h);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Jj(e,b.Gm||!1,h),g.callback(null))};e.onerror=function(){Jj(e,!0,h);wj(g,new Kj(0,"Error while loading script "+
d))};f=b.attributes||{};Kb(f,{type:"text/javascript",charset:"UTF-8"});Sc(e,f);Tb(e,a);Lj(c).appendChild(e);return g},Lj=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&b.length!==0?b[0]:a.documentElement},uj=function(){if(this&&this.wj){var a=this.wj;a&&a.tagName=="SCRIPT"&&Jj(a,!0,this.Qf)}},Jj=function(a,b,c){c!=null&&r.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){Wc(a)},0)},Kj=function(a,
b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);mb.call(this,c);this.code=a};w(Kj,mb);var Nj=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Oj=function(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 Pj=function(a){gj.call(this);this.headers=new Map;this.Wj=a||null;this.kc=!1;this.v=null;this.fe=this.Ni=this.qf="";this.Lc=this.Hg=this.kf=this.vg=!1;this.Ce=0;this.Uc=null;this.Hf="";this.Hl=this.Vj=!1;this.ag=this.Hh=null};w(Pj,gj);var Qj=/^https?$/i,Rj=["POST","PUT"];k=Pj.prototype;k.setTrustToken=function(a){this.Hh=a};k.setAttributionReporting=function(a){this.ag=a};
k.send=function(a,b,c,d){if(this.v)throw Error("[goog.net.XhrIo] Object is active with another request="+this.qf+"; newUri="+a);b=b?b.toUpperCase():"GET";this.qf=a;this.fe="";this.Ni=b;this.vg=!1;this.kc=!0;this.v=this.Wj?this.Wj.Rd():kj.Rd();this.v.onreadystatechange=Cf(v(this.ej,this));this.Hl&&"onprogress"in this.v&&(this.v.onprogress=Cf(v(function(g){this.dj(g,!0)},this)),this.v.upload&&(this.v.upload.onprogress=Cf(v(this.dj,this))));try{kc(this.Ea,Sj(this,"Opening Xhr")),this.Hg=!0,this.v.open(b,
String(a),!0),this.Hg=!1}catch(g){kc(this.Ea,Sj(this,"Error opening Xhr: "+g.message));this.yb(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=ma(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()});
e=r.FormData&&a instanceof r.FormData;!zb(Rj,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=ma(c);for(d=b.next();!d.done;d=b.next())c=ma(d.value),d=c.next().value,c=c.next().value,this.v.setRequestHeader(d,c);this.Hf&&(this.v.responseType=this.Hf);"withCredentials"in this.v&&this.v.withCredentials!==this.Vj&&(this.v.withCredentials=this.Vj);if("setTrustToken"in this.v&&this.Hh)try{this.v.setTrustToken(this.Hh)}catch(g){kc(this.Ea,Sj(this,"Error SetTrustToken: "+
g.message))}if("setAttributionReporting"in this.v&&this.ag)try{this.v.setAttributionReporting(this.ag)}catch(g){kc(this.Ea,Sj(this,"Error SetAttributionReporting: "+g.message))}try{this.Uc&&(clearTimeout(this.Uc),this.Uc=null),this.Ce>0&&(kc(this.Ea,Sj(this,"Will abort after "+this.Ce+"ms if incomplete")),this.Uc=setTimeout(this.Qf.bind(this),this.Ce)),kc(this.Ea,Sj(this,"Sending request")),this.kf=!0,this.v.send(a),this.kf=!1}catch(g){kc(this.Ea,Sj(this,"Send error: "+g.message)),this.yb(5,g)}};
k.Qf=function(){typeof ua!="undefined"&&this.v&&(this.fe="Timed out after "+this.Ce+"ms, aborting",kc(this.Ea,Sj(this,this.fe)),this.dispatchEvent("timeout"),this.abort(8))};k.yb=function(a,b){this.kc=!1;this.v&&(this.Lc=!0,this.v.abort(),this.Lc=!1);this.fe=b;Tj(this);Uj(this)};var Tj=function(a){a.vg||(a.vg=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Pj.prototype.abort=function(){this.v&&this.kc&&(kc(this.Ea,Sj(this,"Aborting")),this.kc=!1,this.Lc=!0,this.v.abort(),this.Lc=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Uj(this))};Pj.prototype.Ud=function(){this.v&&(this.kc&&(this.kc=!1,this.Lc=!0,this.v.abort(),this.Lc=!1),Uj(this,!0));Pj.Id.Ud.call(this)};Pj.prototype.ej=function(){this.isDisposed()||(this.Hg||this.kf||this.Lc?Vj(this):this.Al())};Pj.prototype.Al=function(){Vj(this)};
var Vj=function(a){if(a.kc&&typeof ua!="undefined")if(a.kf&&Wj(a)==4)setTimeout(a.ej.bind(a),0);else if(a.dispatchEvent("readystatechange"),Wj(a)==4){kc(a.Ea,Sj(a,"Request complete"));a.kc=!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.qf).match(Nj)[1]||null;!f&&r.self&&r.self.location&&(f=r.self.location.protocol.slice(0,-1));e=!Qj.test(f?f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"),
a.dispatchEvent("success");else{try{var g=Wj(a)>2?a.v.statusText:""}catch(h){kc(a.Ea,"Can not get status: "+h.message),g=""}a.fe=g+" ["+a.getStatus()+"]";Tj(a)}}finally{Uj(a)}}};Pj.prototype.dj=function(a,b){y(a.type==="progress","goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Xj(a,"progress"));this.dispatchEvent(Xj(a,b?"downloadprogress":"uploadprogress"))};
var Xj=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Uj=function(a,b){if(a.v){a.Uc&&(clearTimeout(a.Uc),a.Uc=null);var c=a.v;a.v=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){(a=a.Ea)&&jc(a,Wb,"Problem encountered resetting onreadystatechange: "+d.message)}}};Pj.prototype.isActive=function(){return!!this.v};var Wj=function(a){return a.v?a.v.readyState:0};
Pj.prototype.getStatus=function(){try{return Wj(this)>2?this.v.status:-1}catch(a){return-1}};
Pj.prototype.getResponse=function(){try{if(!this.v)return null;if("response"in this.v)return this.v.response;switch(this.Hf){case "":case "text":return this.v.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.v)return this.v.mozResponseArrayBuffer}var a=this.Ea;a&&jc(a,Wb,"Response type "+this.Hf+" is not supported on this browser");return null}catch(b){return kc(this.Ea,"Can not get response: "+b.message),null}};
Pj.prototype.getResponseHeader=function(a){if(this.v&&Wj(this)==4)return a=this.v.getResponseHeader(a),a===null?void 0:a};Pj.prototype.getAllResponseHeaders=function(){return this.v&&Wj(this)>=2?this.v.getAllResponseHeaders()||"":""};var Sj=function(a,b){return b+" ["+a.Ni+" "+a.qf+" "+a.getStatus()+"]"};var Yj=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)},Zj=function(a){var b=null;return(new F(function(c,d){b=Yj(function(){c(void 0)},a);b==-1&&d(Error("Failed to schedule timer."))})).l(function(c){r.clearTimeout(b);throw c;})};var ak=function(a){if(a.Kc&&typeof a.Kc=="function")return a.Kc();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(wa(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},bk=function(a){if(a.Ag&&typeof a.Ag=="function")return a.Ag();if(!a.Kc||typeof a.Kc!="function"){if(typeof Map!=="undefined"&&a instanceof Map)return Array.from(a.keys());
if(!(typeof Set!=="undefined"&&a instanceof Set)){if(wa(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}}},ck=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(wa(a)||typeof a==="string")Array.prototype.forEach.call(a,b,c);else for(var d=bk(a),e=ak(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};var dk=function(a){this.Ga=this.Vc=this.Va="";this.Tb=null;this.Ic=this.Af="";this.Ab=this.jl=!1;if(a instanceof dk){this.Ab=a.Ab;ek(this,a.Va);var b=a.Vc;fk(this);this.Vc=b;gk(this,a.Ga);hk(this,a.Tb);this.setPath(a.getPath());ik(this,a.rb.clone());a=a.Ic;fk(this);this.Ic=a}else a&&(b=String(a).match(Nj))?(this.Ab=!1,ek(this,b[1]||"",!0),a=b[2]||"",fk(this),this.Vc=jk(a),gk(this,b[3]||"",!0),hk(this,b[4]),this.setPath(b[5]||"",!0),ik(this,b[6]||"",!0),a=b[7]||"",fk(this),this.Ic=jk(a)):(this.Ab=
!1,this.rb=new kk(null,this.Ab))};dk.prototype.toString=function(){var a=[],b=this.Va;b&&a.push(lk(b,mk,!0),":");var c=this.Ga;if(c||b=="file")a.push("//"),(b=this.Vc)&&a.push(lk(b,mk,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Tb,c!=null&&a.push(":",String(c));if(c=this.getPath())this.Ga&&c.charAt(0)!="/"&&a.push("/"),a.push(lk(c,c.charAt(0)=="/"?nk:ok,!0));(c=this.rb.toString())&&a.push("?",c);(c=this.Ic)&&a.push("#",lk(c,pk));return a.join("")};
dk.prototype.resolve=function(a){var b=this.clone(),c=!!a.Va;c?ek(b,a.Va):c=!!a.Vc;if(c){var d=a.Vc;fk(b);b.Vc=d}else c=!!a.Ga;c?gk(b,a.Ga):c=a.Tb!=null;d=a.getPath();if(c)hk(b,a.Tb);else if(c=!!a.Af){if(d.charAt(0)!="/")if(this.Ga&&!this.Af)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(""):
h==".."?((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.rb.toString()!=="";c?ik(b,a.rb.clone()):c=!!a.Ic;c&&(a=a.Ic,fk(b),b.Ic=a);return b};dk.prototype.clone=function(){return new dk(this)};
var ek=function(a,b,c){fk(a);a.Va=c?jk(b,!0):b;a.Va&&(a.Va=a.Va.replace(/:$/,""))},gk=function(a,b,c){fk(a);a.Ga=c?jk(b,!0):b},hk=function(a,b){fk(a);if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.Tb=b}else a.Tb=null};dk.prototype.getPath=function(){return this.Af};dk.prototype.setPath=function(a,b){fk(this);this.Af=b?jk(a,!0):a;return this};var ik=function(a,b,c){fk(a);b instanceof kk?(a.rb=b,a.rb.xh(a.Ab)):(c||(b=lk(b,qk)),a.rb=new kk(b,a.Ab))};dk.prototype.getQuery=function(){return this.rb.toString()};
var L=function(a,b,c){fk(a);a.rb.set(b,c)},rk=function(a,b){return a.rb.get(b)};dk.prototype.removeParameter=function(a){fk(this);this.rb.remove(a);return this};var fk=function(a){if(a.jl)throw Error("Tried to modify a read-only Uri");};dk.prototype.xh=function(a){this.Ab=a;this.rb&&this.rb.xh(a)};
var M=function(a){return a instanceof dk?a.clone():new dk(a)},sk=function(a,b,c,d){var e=new dk(null);a&&ek(e,a);b&&gk(e,b);c&&hk(e,c);d&&e.setPath(d);return e},jk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},lk=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,tk),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},tk=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},mk=/[#\/\?@]/g,ok=/[#\?:]/g,nk=
/[#\?]/g,qk=/[#\?@]/g,pk=/#/g,kk=function(a,b){this.Na=this.qa=null;this.mb=a||null;this.Ab=!!b},uk=function(a){a.qa||(a.qa=new Map,a.Na=0,a.mb&&Oj(a.mb,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))},vk=function(a){var b=bk(a);if(typeof b=="undefined")throw Error("Keys are undefined");var c=new kk(null);a=ak(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};
kk.prototype.add=function(a,b){uk(this);this.mb=null;a=this.nb(a);var c=this.qa.get(a);c||this.qa.set(a,c=[]);c.push(b);this.Na=sb(this.Na)+1;return this};kk.prototype.remove=function(a){uk(this);a=this.nb(a);return this.qa.has(a)?(this.mb=null,this.Na=sb(this.Na)-this.qa.get(a).length,this.qa.delete(a)):!1};kk.prototype.clear=function(){this.qa=this.mb=null;this.Na=0};kk.prototype.isEmpty=function(){uk(this);return this.Na==0};var wk=function(a,b){uk(a);b=a.nb(b);return a.qa.has(b)};k=kk.prototype;
k.forEach=function(a,b){uk(this);this.qa.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};k.Ag=function(){uk(this);for(var a=Array.from(this.qa.values()),b=Array.from(this.qa.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.Kc=function(a){uk(this);var b=[];if(typeof a==="string")wk(this,a)&&(b=b.concat(this.qa.get(this.nb(a))));else{a=Array.from(this.qa.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
k.set=function(a,b){uk(this);this.mb=null;a=this.nb(a);wk(this,a)&&(this.Na=sb(this.Na)-this.qa.get(a).length);this.qa.set(a,[b]);this.Na=sb(this.Na)+1;return this};k.get=function(a,b){if(!a)return b;a=this.Kc(a);return a.length>0?String(a[0]):b};k.setValues=function(a,b){this.remove(a);b.length>0&&(this.mb=null,this.qa.set(this.nb(a),Db(b)),this.Na=sb(this.Na)+b.length)};
k.toString=function(){if(this.mb)return this.mb;if(!this.qa)return"";for(var a=[],b=Array.from(this.qa.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.Kc(d);for(var f=0;f<d.length;f++){var g=e;d[f]!==""&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.mb=a.join("&")};k.clone=function(){var a=new kk;a.mb=this.mb;this.qa&&(a.qa=new Map(this.qa),a.Na=this.Na);return a};k.nb=function(a){a=String(a);this.Ab&&(a=a.toLowerCase());return a};
k.xh=function(a){a&&!this.Ab&&(uk(this),this.mb=null,this.qa.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,b))},this));this.Ab=a};k.extend=function(a){for(var b=0;b<arguments.length;b++)ck(arguments[b],function(c,d){this.add(d,c)},this)};var xk={wm:{Ve:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Jf:"https://staging-securetoken.sandbox.googleapis.com/v1/token",ef:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},Cm:{Ve:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Jf:"https://securetoken.googleapis.com/v1/token",ef:"https://identitytoolkit.googleapis.com/v2/",id:"p"},Dm:{Ve:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",
Jf:"https://staging-securetoken.sandbox.googleapis.com/v1/token",ef:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},Em:{Ve:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Jf:"https://test-securetoken.sandbox.googleapis.com/v1/token",ef:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};
function yk(a){for(var b in xk)if(xk[b].id===a)return a=xk[b],{firebaseEndpoint:a.Ve,secureTokenEndpoint:a.Jf,identityPlatformEndpoint:a.ef};return null}var zk;zk=yk("__EID__")?"__EID__":void 0;var angular,Bk=function(){var a=Ak();return Cc&&!!Pc&&Pc==11||/Edge\/\d+/.test(a)},Ck=function(){return r.window&&r.window.location.href||self&&self.location&&self.location.href||""},Dk=function(a,b){b=b||r.window;var c="about:blank";a&&(c=bb(fb(a)));b.location.href=c},Ek=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?Ek(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},
Gk=function(){var a=Ak();a=Fk(a)!="Chrome"?null:(a=a.match(/\sChrome\/(\d+)/i))&&a.length==2?parseInt(a[1],10):null;return a&&a<30?!1:!Cc||!Pc||Pc>9},Hk=function(a){a=(a||Ak()).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},Ik=function(a){a=a||r.window;try{a.close()}catch(b){}},Jk=function(a,b,c){var d=Math.floor(Math.random()*1E9).toString();b=b||500;c=c||600;var e=(window.screen.availHeight-
c)/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=Ak().toLowerCase();d&&(b.target=d,B(c,"crios/")&&(b.target="_blank"));Fk(Ak())=="Firefox"&&(a=a||"http://localhost",b.scrollbars=!0);e=a||"";(d=b)||(d={});a=window;b=e instanceof $a?e:fb(typeof e.href!="undefined"?e.href:String(e));f=self.crossOriginIsolated!==void 0;c="strict-origin-when-cross-origin";window.Request&&(c=(new Request("/")).referrerPolicy);var g=c===
"unsafe-url";c=d.noreferrer;if(f&&c){if(g)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");c=!1}e=d.target||e.target;f=[];for(h in d)switch(h){case "width":case "height":case "top":case "left":f.push(h+"="+d[h]);break;case "target":case "noopener":case "noreferrer":break;case "attributionsrc":f.push(h+(d[h]?"="+d[h]:""));break;default:f.push(h+"="+(d[h]?1:0))}var h=f.join(",");(Ac()||C("iPad")||C("iPod"))&&a.navigator&&a.navigator.standalone&&
e&&e!="_self"?(h=Uc(document,"A"),b=ib(b),b!==void 0&&(h.href=b),h.target=e,c&&(h.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&h.setAttribute("attributionsrc",d),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,a,1),h.dispatchEvent(d),h={}):c?(h=Sb(a,"",e,h),a=bb(b),h&&(h.opener=null,a===""&&(a="javascript:''"),Rb.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(Lb,"&")),a.indexOf("<")!=-1&&(a=a.replace(Mb,"<")),a.indexOf(">")!=-1&&(a=a.replace(Nb,">")),a.indexOf('"')!=
-1&&(a=a.replace(Ob,""")),a.indexOf("'")!=-1&&(a=a.replace(Pb,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(Qb,"�"))),a='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+a+'">',lc("b/12014412, meta tag with sanitized URL"),a=Va(a),(d=h.document)&&d.write&&(d.write(Wa(a)),d.close()))):((h=Sb(a,b,e,h))&&d.noopener&&(h.opener=null),h&&d.noreferrer&&(h.opener=null));if(h)try{h.focus()}catch(l){}return h},Kk=function(a){return new F(function(b){var c=function(){Zj(2E3).then(function(){if(!a||
a.closed)b();else return c()})};return c()})},Mk=function(a,b){var c=M(b);b=c.Va;c=c.Ga;for(var d=0;d<a.length;d++){var e=a[d];e.indexOf("chrome-extension://")==0?e=M(e).Ga==c&&b=="chrome-extension":b!="http"&&b!="https"?e=!1:Lk.test(e)?e=c==e:(e=e.split(".").join("\\."),e=(new RegExp("^(.+\\."+e+"|"+e+")$","i")).test(c));if(e)return!0}return!1},Lk=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Nk=/^[^@]+@[^@]+$/,Ok=function(){var a=null;return(new F(function(b){r.document.readyState=="complete"?b():(a=function(){b()},
Vi(window,"load",a))})).l(function(b){dj(window,"load",a);throw b;})},Qk=function(){return Pk()?Ok().then(function(){return new F(function(a,b){var c=r.document,d=setTimeout(function(){b(Error("Cordova framework is not ready."))},1E3);c.addEventListener("deviceready",function(){clearTimeout(d);a()},!1)})}):H(Error("Cordova must run in an Android or iOS file scheme."))},Pk=function(){var a=Ak();return!(Rk()!=="file:"&&Rk()!=="ionic:"||!a.toLowerCase().match(/iphone|ipad|ipod|android/))},Sk=function(){var a=
r.window;try{return!(!a||a==a.top)}catch(b){return!1}},Tk=function(){return typeof r.WorkerGlobalScope!=="undefined"&&typeof r.importScripts==="function"},Uk=function(){return firebase.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":firebase.INTERNAL.hasOwnProperty("node")?"Node":Tk()?"Worker":"Browser"},Vk=function(){var a=Uk();return a==="ReactNative"||a==="Node"},Wk=function(){for(var a=50,b=[];a>0;)b.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(Math.random()*
62))),a--;return b.join("")},Fk=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,"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"},Xk={DEFAULT:"FirebaseCore-web",ym:"FirebaseUI-web",Bm:"gcip-iap"},Yk=function(a,b,c){c=c||[];var d=[],e={},f;for(f in Xk)e[Xk[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=Uk();return(d==="Browser"?Fk(Ak()):d==="Worker"?Fk(Ak())+"-"+d:d)+"/"+a+"/"+b+"/"+c.join(",")},
Ak=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},$k=function(){try{var a=r.localStorage,b=Zk();if(a)return a.setItem(b,"1"),a.removeItem(b),Bk()?!!r.indexedDB:!0}catch(c){return Tk()&&!!r.indexedDB}return!1},bl=function(){return(al()||Rk()==="chrome-extension:"||Pk())&&!Vk()&&$k()&&!Tk()},al=function(){return Rk()==="http:"||Rk()==="https:"},Rk=function(){return r.location&&
r.location.protocol||null},cl=function(a){a=a||Ak();return Hk(a)||Fk(a)=="Firefox"?!1:!0},dl=function(a){return typeof a==="undefined"?null:JSON.stringify(a)},el=function(a){var b={},c;for(c in a)a.hasOwnProperty(c)&&a[c]!==null&&a[c]!==void 0&&(b[c]=a[c]);return b},fl=function(a){if(a!==null)return JSON.parse(a)},Zk=function(a){return a?a:""+Math.floor(Math.random()*1E9).toString()},gl=function(a){a=a||Ak();return Fk(a)=="Safari"||a.toLowerCase().match(/iphone|ipad|ipod/)?!1:!0},hl=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},il=function(a,b){if(a>b)throw Error("Short delay should be less than long delay!");this.Gj=a;this.rl=b;a=Ak();b=Uk();this.fl=Hk(a)||b==="ReactNative"};
il.prototype.get=function(){var a=r.navigator;return(a&&typeof a.onLine==="boolean"&&(al()||Rk()==="chrome-extension:"||typeof a.connection!=="undefined")?a.onLine:1)?this.fl?this.rl:this.Gj:Math.min(5E3,this.Gj)};
var jl=function(){var a=r.document;return a&&typeof a.visibilityState!=="undefined"?a.visibilityState=="visible":!0},kl=function(){var a=r.document,b=null;return jl()||!a?G():(new F(function(c){b=function(){jl()&&(a.removeEventListener("visibilitychange",b,!1),c())};a.addEventListener("visibilitychange",b,!1)})).l(function(c){a.removeEventListener("visibilitychange",b,!1);throw c;})},ll=function(a){typeof console!=="undefined"&&typeof console.warn==="function"&&console.warn(a)},ml=function(a){try{var b=
new Date(parseInt(a,10));if(!isNaN(b.getTime())&&!/[^0-9]/.test(a))return b.toUTCString()}catch(c){}return null},nl=function(){return!(!N("fireauth.oauthhelper",r)&&!N("fireauth.iframe",r))},ol=function(){var a=r.navigator;return a&&a.serviceWorker&&a.serviceWorker.controller||null},pl=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 ql={};function rl(a){ql[a]||(ql[a]=!0,ll(a))};var sl;try{var tl={};Object.defineProperty(tl,"abcd",{configurable:!0,enumerable:!0,value:1});Object.defineProperty(tl,"abcd",{configurable:!0,enumerable:!0,value:2});sl=tl.abcd==2}catch(a){sl=!1}
var O=function(a,b,c){sl?Object.defineProperty(a,b,{configurable:!0,enumerable:!0,value:c}):a[b]=c},ul=function(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&O(a,c,b[c])},vl=function(a){var b={};ul(b,a);return b},wl=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},xl=function(a){var b=a;if(typeof a=="object"&&a!=null){b="length"in a?[]:{};for(var c in a)O(b,c,xl(a[c]))}return b};var yl="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),zl=["client_id","response_type","scope","redirect_uri","state"],Al={xm:{ee:"locale",zd:700,yd:600,providerId:"facebook.com",Ef:zl},zm:{ee:null,zd:500,yd:750,providerId:"github.com",Ef:zl},Am:{ee:"hl",zd:515,yd:680,providerId:"google.com",Ef:zl},Fm:{ee:"lang",zd:485,yd:705,providerId:"twitter.com",Ef:yl},vm:{ee:"locale",zd:640,yd:600,providerId:"apple.com",Ef:[]}};
function Bl(a){for(var b in Al)if(Al[b].providerId==a)return Al[b];return null};var P=function(a,b,c){this.code="auth/"+a;this.message=b||Cl[a]||"";this.yj=c||null};w(P,Error);P.prototype.T=function(){var a={code:this.code,message:this.message};this.yj&&(a.serverResponse=this.yj);return a};P.prototype.toJSON=function(){return this.T()};
var Dl=function(a){var b=a&&a.code;return b?new P(b.substring(5),a.message,a.serverResponse):null},Cl={"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.",
"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 invalid.","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.",
"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.",
"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.",
"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.",
"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.",
"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.",
"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.",
"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.","invalid-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.",
"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.",
"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.",
"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.",
"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.",
"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.',
"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.",
"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.",
"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.",
"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.",
"web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."};var El=function(a,b,c,d,e,f,g){this.Ih=a;this.Ja=b||null;this.Kd=c||null;this.we=d||null;this.dh=f||null;this.ma=g||null;this.yb=e||null;if(this.Kd||this.yb){if(this.Kd&&this.yb)throw new P("invalid-auth-event");if(this.Kd&&!this.we)throw new P("invalid-auth-event");}else throw new P("invalid-auth-event");};k=El.prototype;k.getType=function(){return this.Ih};k.getUid=function(){var a=[];a.push(this.Ih);this.Ja&&a.push(this.Ja);this.we&&a.push(this.we);this.ma&&a.push(this.ma);return a.join("-")};
k.Yd=function(){return this.we};k.getError=function(){return this.yb};k.T=function(){return{type:this.Ih,eventId:this.Ja,urlResponse:this.Kd,sessionId:this.we,postBody:this.dh,tenantId:this.ma,error:this.yb&&this.yb.T()}};var Fl=function(a){a=a||{};return a.type?new El(a.type,a.eventId,a.urlResponse,a.sessionId,a.error&&Dl(a.error),a.postBody,a.tenantId):null};var Gl=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)};Gl.prototype.T=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};
var Jl=function(a){try{if(a.phoneInfo)return new Hl(a);if(a.totpInfo)return new Il(a)}catch(b){}return null},Hl=function(a){var b=a.phoneInfo;if(!b)throw new P("internal-error","Internal assert: invalid Phone MultiFactorInfo object");Gl.call(this,a,"phone");O(this,"phoneNumber",b)};p(Hl,Gl);Hl.prototype.T=function(){var a=Gl.prototype.T.call(this);a.phoneNumber=this.phoneNumber;return a};
var Il=function(a){var b=a.totpInfo;if(!b)throw new P("internal-error","Internal assert: invalid TOTP MultiFactorInfo object");Gl.call(this,a,"totp");O(this,"totpInfo",b)};p(Il,Gl);Il.prototype.T=function(){var a=Gl.prototype.T.call(this);a.totpInfo=this.totpInfo;return a};var Kl=function(a){var b={},c=a.email,d=a.newEmail,e=a.requestType;a=Jl(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",xl(b))};var Ml=function(a){a=M(a);var b=rk(a,"apiKey")||null,c=rk(a,"oobCode")||null,d=rk(a,"mode")||null;d=d?Ll[d]||null:null;if(!b||!c||!d)throw new P("argument-error","apiKey, oobCodeand mode are required in a valid action code URL.");ul(this,{apiKey:b,operation:d,code:c,continueUrl:rk(a,"continueUrl")||null,languageCode:rk(a,"languageCode")||null,tenantId:rk(a,"tenantId")||null})},Nl=function(a){try{return new Ml(a)}catch(b){return null}},Ll={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",
revertSecondFactorAddition:"REVERT_SECOND_FACTOR_ADDITION",signIn:"EMAIL_SIGNIN",verifyAndChangeEmail:"VERIFY_AND_CHANGE_EMAIL",verifyEmail:"VERIFY_EMAIL"};var Ol=function(a){var b=M(a),c=rk(b,"link"),d=rk(M(c),"link");b=rk(b,"deep_link_id");return rk(M(b),"link")||b||d||c||a};var Pl=function(a){var b="unauthorized-domain",c=void 0,d=M(a);a=d.Ga;d=d.Va;d=="chrome-extension"?c=mc("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=mc("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.",
a):b="operation-not-supported-in-this-environment";P.call(this,b,c)};p(Pl,P);var Rl=function(a){var b=Ql(a);if(!(b&&b.sub&&b.iss&&b.aud&&b.exp))throw Error("Invalid JWT");this.ll=a;this.yg=b.exp;this.ol=b.sub;a=Date.now()/1E3;this.Xk=b.iat||(a>this.yg?this.yg:a);this.Gc=b.email||null;this.hh=b.provider_id||b.firebase&&b.firebase.sign_in_provider||null;this.ma=b.firebase&&b.firebase.tenant||null;this.ek=!!b.is_anonymous||this.hh=="anonymous"};Rl.prototype.getEmail=function(){return this.Gc};Rl.prototype.isAnonymous=function(){return this.ek};Rl.prototype.toString=function(){return this.ll};
var Sl=function(a){try{return new Rl(a)}catch(b){return null}},Ql=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=xi(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>>
10));a[c++]=String.fromCharCode(56320+(m&1023))}else{var q=d[b++],x=d[b++];a[c++]=String.fromCharCode((e&15)<<12|(q&63)<<6|x&63)}}return JSON.parse(a.join(""))}catch(A){}return null};var Tl=function(a){var b=Ql(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.");ul(this,{token:a,expirationTime:ml(b.exp*1E3),authTime:ml(b.auth_time*1E3),issuedAtTime:ml(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,
claims:b})};var Ul=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.df=a||null;this.Ti=b||null;this.type=this.df?"enroll":"signin"};Ul.prototype.Xd=function(){return this.df?G(this.df):G(this.Ti)};Ul.prototype.T=function(){return this.type=="enroll"?{multiFactorSession:{idToken:this.df}}:{multiFactorSession:{pendingCredential:this.Ti}}};var Vl=function(){};Vl.prototype.Jc=function(){};Vl.prototype.ud=function(){};Vl.prototype.ie=function(){};Vl.prototype.T=function(){};
var Wl=function(a,b){return a.then(function(c){if(c.idToken){var d=Sl(c.idToken);if(!d||b!=d.ol)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;})},Xl=function(a,b){if(b)this.Xb=b;else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",a)};k=Xl.prototype;k.Jc=function(a){return Yl(a,this.Nc())};
k.ud=function(a,b){var c=this.Nc();c.idToken=b;return Zl(a,c)};k.ie=function(a,b){var c=this.Nc();return Wl($l(a,c),b)};k.Nc=function(){return{pendingToken:this.Xb,requestUri:"http://localhost"}};k.T=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.Xb}};
var am=function(a){if(a&&a.providerId&&a.signInMethod&&a.providerId.indexOf("saml.")==0&&a.pendingToken)try{return new Xl(a.providerId,a.pendingToken)}catch(b){}return null},bm=function(a,b,c){this.Xb=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.Xb=b.pendingToken);else if(b.oauthToken&&b.oauthTokenSecret)O(this,"accessToken",b.oauthToken),O(this,"secret",
b.oauthTokenSecret);else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",c)};k=bm.prototype;k.Jc=function(a){return Yl(a,this.Nc())};k.ud=function(a,b){var c=this.Nc();c.idToken=b;return Zl(a,c)};k.ie=function(a,b){var c=this.Nc();return Wl($l(a,c),b)};
k.Nc=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.Xb&&(a.nonce=this.nonce);a={postBody:vk(a).toString(),requestUri:"http://localhost"};this.Xb&&(delete a.postBody,a.pendingToken=this.Xb);return a};
k.T=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.Xb&&(a.pendingToken=this.Xb);return a};
var cm=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 bm(a.providerId,b,a.signInMethod)}catch(c){}}return null},dm=function(a,b){this.Kl=b||[];ul(this,{providerId:a,isOAuthProvider:!0});this.ai={};this.Ng=(Bl(a)||{}).ee||null;this.qg=null};
dm.prototype.setCustomParameters=function(a){this.ai=Ib(a);return this};var em=function(a){if(typeof a!=="string"||a.indexOf("saml.")!=0)throw new P("argument-error",'SAML provider IDs must be prefixed with "saml."');dm.call(this,a,[])};w(em,dm);var fm=function(a){dm.call(this,a,zl);this.rh=[]};w(fm,dm);fm.prototype.addScope=function(a){zb(this.rh,a)||this.rh.push(a);return this};fm.prototype.ui=function(){return Db(this.rh)};
fm.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 bm(this.providerId,a,this.providerId)};var gm=function(){fm.call(this,"facebook.com")};w(gm,fm);O(gm,"PROVIDER_ID","facebook.com");O(gm,"FACEBOOK_SIGN_IN_METHOD","facebook.com");
var hm=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 gm).credential({accessToken:b})},im=function(){fm.call(this,"github.com")};w(im,fm);O(im,"PROVIDER_ID","github.com");O(im,"GITHUB_SIGN_IN_METHOD","github.com");
var jm=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 im).credential({accessToken:b})},km=function(){fm.call(this,"google.com");this.addScope("profile")};w(km,fm);O(km,"PROVIDER_ID","google.com");O(km,"GOOGLE_SIGN_IN_METHOD","google.com");
var lm=function(a,b){var c=a;u(a)&&(c=a.idToken,b=a.accessToken);return(new km).credential({idToken:c,accessToken:b})},mm=function(){dm.call(this,"twitter.com",yl)};w(mm,dm);O(mm,"PROVIDER_ID","twitter.com");O(mm,"TWITTER_SIGN_IN_METHOD","twitter.com");
var nm=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 bm("twitter.com",c,"twitter.com")},pm=function(a,b,c){this.Gc=a;this.je=b;O(this,"providerId","password");O(this,"signInMethod",c===om.EMAIL_LINK_SIGN_IN_METHOD?om.EMAIL_LINK_SIGN_IN_METHOD:om.EMAIL_PASSWORD_SIGN_IN_METHOD)};
pm.prototype.Jc=function(a){return this.signInMethod==om.EMAIL_LINK_SIGN_IN_METHOD?Q(a,qm,{email:this.Gc,oobCode:this.je}):Q(a,rm,{email:this.Gc,password:this.je})};pm.prototype.ud=function(a,b){return this.signInMethod==om.EMAIL_LINK_SIGN_IN_METHOD?Q(a,sm,{idToken:b,email:this.Gc,oobCode:this.je}):Q(a,tm,{idToken:b,email:this.Gc,password:this.je})};pm.prototype.ie=function(a,b){return Wl(this.Jc(a),b)};pm.prototype.T=function(){return{email:this.Gc,password:this.je,signInMethod:this.signInMethod}};
var um=function(a){return a&&a.email&&a.password?new pm(a.email,a.password,a.signInMethod):null},om=function(){ul(this,{providerId:"password",isOAuthProvider:!1})},wm=function(a,b){b=vm(b);if(!b)throw new P("argument-error","Invalid email link!");return new pm(a,b.code,om.EMAIL_LINK_SIGN_IN_METHOD)},vm=function(a){a=Ol(a);return(a=Nl(a))&&a.operation==="EMAIL_SIGNIN"?a:null};ul(om,{PROVIDER_ID:"password"});ul(om,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"});ul(om,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"});
var xm=function(a){if(!(a.verificationId&&a.Tf||a.Be&&a.phoneNumber))throw new P("internal-error");this.wa=a;O(this,"providerId","phone");this.providerId="phone";O(this,"signInMethod","phone")};xm.prototype.Jc=function(a){return a.verifyPhoneNumber(ym(this))};xm.prototype.ud=function(a,b){var c=ym(this);c.idToken=b;return Q(a,zm,c)};xm.prototype.ie=function(a,b){var c=ym(this);c.operation="REAUTH";a=Q(a,Am,c);return Wl(a,b)};
xm.prototype.T=function(){var a={providerId:"phone"};this.wa.verificationId&&(a.verificationId=this.wa.verificationId);this.wa.Tf&&(a.verificationCode=this.wa.Tf);this.wa.Be&&(a.temporaryProof=this.wa.Be);this.wa.phoneNumber&&(a.phoneNumber=this.wa.phoneNumber);return a};
var Bm=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 xm(b)}return null},ym=function(a){return a.wa.Be&&a.wa.phoneNumber?{temporaryProof:a.wa.Be,phoneNumber:a.wa.phoneNumber}:{sessionInfo:a.wa.verificationId,code:a.wa.Tf}},Cm=function(a){try{this.Ke=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().");
}ul(this,{providerId:"phone",isOAuthProvider:!1})};
Cm.prototype.verifyPhoneNumber=function(a,b){var c=this.Ke.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.Xd().then(function(g){return Dm(c,{idToken:g,phoneEnrollmentInfo:{phoneNumber:f,recaptchaToken:d}})}):e&&
e.type=="signin"?e.Xd().then(function(g){return Em(c,{mfaPendingCredential:g,mfaEnrollmentId:a.multiFactorHint&&a.multiFactorHint.uid||a.multiFactorUid,phoneSignInInfo:{recaptchaToken:d}})}):Fm(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.');}})};
var Gm=function(a,b){if(!a)throw new P("missing-verification-id");if(!b)throw new P("missing-verification-code");return new xm({verificationId:a,Tf:b})};ul(Cm,{PROVIDER_ID:"phone"});ul(Cm,{PHONE_SIGN_IN_METHOD:"phone"});
var Hm=function(a){if(a.temporaryProof&&a.phoneNumber)return new xm({Be: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 lm(f,c);case "facebook.com":return hm(c);case "github.com":return jm(c);case "twitter.com":return nm(c,d);default:return c||d||f||g?g?b.indexOf("saml.")==0?new Xl(b,g):new bm(b,{pendingToken:g,
idToken:a.oauthIdToken,accessToken:a.oauthAccessToken},b):(new fm(b)).credential({idToken:f,accessToken:c,rawNonce:e}):null}}catch(h){return null}},Im=function(a){if(!a.isOAuthProvider)throw new P("invalid-oauth-provider");};var Jm=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)};p(Jm,P);Jm.prototype.T=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.T();b&&Kb(a,b);return a};
Jm.prototype.toJSON=function(){return this.T()};var Km=function(a){if(a.code){var b=a.code||"";b.indexOf("auth/")==0&&(b=b.substring(5));var c={credential:Hm(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 Jm(b,c,a.message)}return null};var Lm=pa(["https://apis.google.com/js/client.js?onload=",""]),Mm=function(a){this.um=a};p(Mm,jj);Mm.prototype.Rd=function(){return new this.um};
var Rm=function(a,b,c){this.ha=a;b=b||{};this.xj=b.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token";this.Zl=b.secureTokenTimeout||Nm;this.Kf=Ib(b.secureTokenHeaders||Om);this.ki=b.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/";this.Di=b.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/";this.Ck=b.firebaseTimeout||Pm;this.ld=Ib(b.firebaseHeaders||Qm);c&&(this.ld["X-Client-Version"]=c,this.Kf["X-Client-Version"]=c);a=Uk()=="Node";
a=r.XMLHttpRequest||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.XMLHttpRequest;if(!a&&!Tk())throw new P("internal-error","The XMLHttpRequest compatibility library was not found.");this.If=void 0;Tk()?this.If=new pj({tm:self}):Vk()?this.If=new Mm(a):this.If=new mj;this.ma=null},Sm,Tm=function(a,b){b?a.ld["X-Firebase-Locale"]=b:delete a.ld["X-Firebase-Locale"]},Vm=function(a,b){b&&(a.xj=Um("https://securetoken.googleapis.com/v1/token",b),a.ki=Um("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",
b),a.Di=Um("https://identitytoolkit.googleapis.com/v2/",b))},Um=function(a,b){a=M(a);b=M(b.url);a.setPath(a.Ga+a.getPath());ek(a,b.Va);gk(a,b.Ga);hk(a,b.Tb);return a.toString()},Wm=function(a,b){b?(a.ld["X-Client-Version"]=b,a.Kf["X-Client-Version"]=b):(delete a.ld["X-Client-Version"],delete a.Kf["X-Client-Version"])},Ym=function(a,b,c,d,e,f,g){Gk()||Tk()?a=v(a.bm,a):(Sm||(Sm=new F(function(h,l){Xm(h,l)})),a=v(a.am,a));a(b,c,d,e,f,g)};
Rm.prototype.bm=function(a,b,c,d,e,f){if(Tk()&&(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 support HTTP requests from a Worker environment.");var g=new Pj(this.If);if(f){g.Ce=Math.max(0,f);var h=setTimeout(function(){g.dispatchEvent("timeout")},f)}g.listen("complete",function(){h&&clearTimeout(h);var l=null;
try{var m=JSON,q=m.parse;try{var x=this.v?this.v.responseText:""}catch(A){kc(this.Ea,"Can not get responseText: "+A.message),x=""}l=q.call(m,x)||null}catch(A){l=null}b&&b(l)});cj(g,"ready",function(){h&&clearTimeout(h);this.dispose()});cj(g,"timeout",function(){h&&clearTimeout(h);this.dispose();b&&b(null)});g.send(a,c,d,e)};
var Xm=function(a,b){if(((window.gapi||{}).client||{}).request)a();else{r[Zm]=function(){((window.gapi||{}).client||{}).request?a():b(Error("CORS_UNSUPPORTED"))};var c=lb(Lm,Zm);Ej(Mj(c),function(){b(Error("CORS_UNSUPPORTED"))})}};
Rm.prototype.am=function(a,b,c,d,e){var f=this;Sm.then(function(){window.gapi.client.setApiKey(f.ha);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"}})})};
var an=function(a,b){return new F(function(c,d){b.grant_type=="refresh_token"&&b.refresh_token||b.grant_type=="authorization_code"&&b.code?Ym(a,a.xj+"?key="+encodeURIComponent(a.ha),function(e){e?e.error?d($m(e)):e.access_token&&e.refresh_token?c(e):d(new P("internal-error")):d(new P("network-request-failed"))},"POST",vk(b).toString(),a.Kf,a.Zl.get()):d(new P("internal-error"))})},bn=function(a,b,c,d,e,f,g){var h=M(b+c);L(h,"key",a.ha);g&&L(h,"cb",Date.now().toString());var l=d=="GET";if(l)for(var m in e)e.hasOwnProperty(m)&&
L(h,m,e[m]);return new F(function(q,x){Ym(a,h.toString(),function(A){A?A.error?x($m(A,f||{})):q(A):x(new P("network-request-failed"))},d,l?void 0:JSON.stringify(el(e)),a.ld,a.Ck.get())})},cn=function(a){a=a.email;if(typeof a!=="string"||!Nk.test(a))throw new P("invalid-email");},dn=function(a){"email"in a&&cn(a)},fn=function(a,b){return Q(a,en,{identifier:b,continueUri:al()?Ck():"http://localhost"}).then(function(c){return c.signinMethods||[]})},hn=function(a){return Q(a,gn,{}).then(function(b){return b.authorizedDomains||
[]})},jn=function(a){if(!a.idToken){if(a.mfaPendingCredential)throw new P("multi-factor-auth-required",null,Ib(a));throw new P("internal-error");}},kn=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=Rm.prototype;k.signInAnonymously=function(){return Q(this,ln,{})};
k.updateEmail=function(a,b){return Q(this,mn,{idToken:a,email:b})};k.updatePassword=function(a,b){return Q(this,tm,{idToken:a,password:b})};k.updateProfile=function(a,b){var c={idToken:a},d=[];Fb(nn,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,mn,c)};k.sendPasswordResetEmail=function(a,b){a={requestType:"PASSWORD_RESET",email:a};Kb(a,b);return Q(this,on,a)};
k.sendSignInLinkToEmail=function(a,b){a={requestType:"EMAIL_SIGNIN",email:a};Kb(a,b);return Q(this,pn,a)};k.sendEmailVerification=function(a,b){a={requestType:"VERIFY_EMAIL",idToken:a};Kb(a,b);return Q(this,qn,a)};k.verifyBeforeUpdateEmail=function(a,b,c){a={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:a,newEmail:b};Kb(a,c);return Q(this,rn,a)};var Fm=function(a,b){return Q(a,sn,b)};Rm.prototype.verifyPhoneNumber=function(a){return Q(this,tn,a)};
var Dm=function(a,b){return Q(a,un,b).then(function(c){return c.phoneSessionInfo.sessionInfo})},vn=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");},Em=function(a,b){return Q(a,wn,b).then(function(c){return c.phoneResponseInfo.sessionInfo})},yn=function(a,b,c){return Q(a,xn,{idToken:b,deleteProvider:c})},zn=function(a){if(!a.requestUri||
!a.sessionId&&!a.postBody&&!a.pendingToken)throw new P("internal-error");},An=function(a,b){b.oauthIdToken&&b.providerId&&b.providerId.indexOf("oidc.")==0&&!b.pendingToken&&(a.sessionId?b.nonce=a.sessionId:a.postBody&&(a=new kk(a.postBody),wk(a,"nonce")&&(b.nonce=a.get("nonce"))));return b},Cn=function(a){var b=null;a.needConfirmation?(a.code="account-exists-with-different-credential",b=Km(a)):a.errorMessage=="FEDERATED_USER_ID_ALREADY_LINKED"?(a.code="credential-already-in-use",b=Km(a)):a.errorMessage==
"EMAIL_EXISTS"?(a.code="email-already-in-use",b=Km(a)):a.errorMessage&&(b=Bn(a.errorMessage));if(b)throw b;jn(a)},Yl=function(a,b){b.returnIdpCredential=!0;return Q(a,Dn,b)},Zl=function(a,b){b.returnIdpCredential=!0;return Q(a,En,b)},$l=function(a,b){b.returnIdpCredential=!0;b.autoCreate=!1;return Q(a,Fn,b)},Gn=function(a){if(!a.oobCode)throw new P("invalid-action-code");};Rm.prototype.confirmPasswordReset=function(a,b){return Q(this,Hn,{oobCode:a,newPassword:b})};
Rm.prototype.checkActionCode=function(a){return Q(this,In,{oobCode:a})};Rm.prototype.applyActionCode=function(a){return Q(this,Jn,{oobCode:a})};
var Q=function(a,b,c){if(!wl(c,b.Ma))return H(new P("internal-error"));var d=!!b.Fe,e=b.httpMethod||"POST",f;return G(c).then(b.oa).then(function(){b.Mb&&(c.returnSecureToken=!0);b.ta&&a.ma&&typeof c.tenantId==="undefined"&&(c.tenantId=a.ma);return d?bn(a,a.Di,b.endpoint,e,c,b.Zh,b.ig||!1):bn(a,a.ki,b.endpoint,e,c,b.Zh,b.ig||!1)}).then(function(g){f=g;return b.Ff?b.Ff(c,f):f}).then(b.Aa).then(function(){if(!b.Zb)return f;if(!(b.Zb in f))throw new P("internal-error");return f[b.Zb]})},Bn=function(a){return $m({error:{errors:[{message:a}],
code:400,reason:a}})},$m=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",
USER_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_NONCE:"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",
RESET_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",
WEAK_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",
MISSING_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",
INVALID_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",
SECOND_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||{};Kb(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=dl(a));return new P("internal-error",b)},Nm=new il(3E4,6E4),Om={"Content-Type":"application/x-www-form-urlencoded"},Pm=new il(3E4,6E4),Qm={"Content-Type":"application/json"},
Zm="__fcb"+Math.floor(Math.random()*1E6).toString(),nn={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"},Jn={endpoint:"setAccountInfo",oa:Gn,Zb:"email",ta:!0},In={endpoint:"resetPassword",oa:Gn,Aa:function(a){var b=a.requestType;if(!b||!a.email&&b!="EMAIL_SIGNIN"&&b!="VERIFY_AND_CHANGE_EMAIL")throw new P("internal-error");},ta:!0},Kn={endpoint:"signupNewUser",oa:function(a){cn(a);if(!a.password)throw new P("weak-password");},Aa:jn,Mb:!0,ta:!0},en={endpoint:"createAuthUri",ta:!0},Ln={endpoint:"deleteAccount",
Ma:["idToken"]},xn={endpoint:"setAccountInfo",Ma:["idToken","deleteProvider"],oa:function(a){if(!Array.isArray(a.deleteProvider))throw new P("internal-error");}},qm={endpoint:"emailLinkSignin",Ma:["email","oobCode"],oa:cn,Aa:jn,Mb:!0,ta:!0},sm={endpoint:"emailLinkSignin",Ma:["idToken","email","oobCode"],oa:cn,Aa:jn,Mb:!0},Mn={endpoint:"accounts/mfaEnrollment:finalize",Ma:["idToken","phoneVerificationInfo"],oa:vn,Aa:jn,ta:!0,Fe:!0},Nn={endpoint:"accounts/mfaSignIn:finalize",Ma:["mfaPendingCredential",
"phoneVerificationInfo"],oa:vn,Aa:jn,ta:!0,Fe:!0},On={endpoint:"getAccountInfo"},pn={endpoint:"getOobConfirmationCode",Ma:["requestType"],oa:function(a){if(a.requestType!="EMAIL_SIGNIN")throw new P("internal-error");cn(a)},Zb:"email",ta:!0},qn={endpoint:"getOobConfirmationCode",Ma:["idToken","requestType"],oa:function(a){if(a.requestType!="VERIFY_EMAIL")throw new P("internal-error");},Zb:"email",ta:!0},rn={endpoint:"getOobConfirmationCode",Ma:["idToken","newEmail","requestType"],oa:function(a){if(a.requestType!=
"VERIFY_AND_CHANGE_EMAIL")throw new P("internal-error");},Zb:"email",ta:!0},on={endpoint:"getOobConfirmationCode",Ma:["requestType"],oa:function(a){if(a.requestType!="PASSWORD_RESET")throw new P("internal-error");cn(a)},Zb:"email",ta:!0},gn={ig:!0,endpoint:"getProjectConfig",httpMethod:"GET"},Pn={ig:!0,endpoint:"getRecaptchaParam",httpMethod:"GET",Aa:function(a){if(!a.recaptchaSiteKey)throw new P("internal-error");}},Hn={endpoint:"resetPassword",oa:Gn,Zb:"email",ta:!0},sn={endpoint:"sendVerificationCode",
Ma:["phoneNumber","recaptchaToken"],Zb:"sessionInfo",ta:!0},mn={endpoint:"setAccountInfo",Ma:["idToken"],oa:dn,Mb:!0},tm={endpoint:"setAccountInfo",Ma:["idToken"],oa:function(a){dn(a);if(!a.password)throw new P("weak-password");},Aa:jn,Mb:!0},ln={endpoint:"signupNewUser",Aa:jn,Mb:!0,ta:!0},un={endpoint:"accounts/mfaEnrollment:start",Ma:["idToken","phoneEnrollmentInfo"],oa:function(a){if(!a.phoneEnrollmentInfo)throw new P("internal-error");if(!a.phoneEnrollmentInfo.phoneNumber)throw new P("missing-phone-number");
if(!a.phoneEnrollmentInfo.recaptchaToken)throw new P("missing-app-credential");},Aa:function(a){if(!a.phoneSessionInfo||!a.phoneSessionInfo.sessionInfo)throw new P("internal-error");},ta:!0,Fe:!0},wn={endpoint:"accounts/mfaSignIn:start",Ma:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],oa:function(a){if(!a.phoneSignInInfo||!a.phoneSignInInfo.recaptchaToken)throw new P("missing-app-credential");},Aa:function(a){if(!a.phoneResponseInfo||!a.phoneResponseInfo.sessionInfo)throw new P("internal-error");
},ta:!0,Fe:!0},Dn={endpoint:"verifyAssertion",oa:zn,Ff:An,Aa:Cn,Mb:!0,ta:!0},Fn={endpoint:"verifyAssertion",oa:zn,Ff:An,Aa:function(a){if(a.errorMessage&&a.errorMessage=="USER_NOT_FOUND")throw new P("user-not-found");if(a.errorMessage)throw Bn(a.errorMessage);jn(a)},Mb:!0,ta:!0},En={endpoint:"verifyAssertion",oa:function(a){zn(a);if(!a.idToken)throw new P("internal-error");},Ff:An,Aa:Cn,Mb:!0},Qn={endpoint:"verifyCustomToken",oa:function(a){if(!a.token)throw new P("invalid-custom-token");},Aa:jn,
Mb:!0,ta:!0},rm={endpoint:"verifyPassword",oa:function(a){cn(a);if(!a.password)throw new P("wrong-password");},Aa:jn,Mb:!0,ta:!0},tn={endpoint:"verifyPhoneNumber",oa:kn,Aa:jn,ta:!0},zm={endpoint:"verifyPhoneNumber",oa:function(a){if(!a.idToken)throw new P("internal-error");kn(a)},Aa:function(a){if(a.temporaryProof)throw a.code="credential-already-in-use",Km(a);jn(a)}},Am={Zh:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",oa:kn,Aa:jn,ta:!0},Rn={endpoint:"accounts/mfaEnrollment:withdraw",
Ma:["idToken","mfaEnrollmentId"],Aa:function(a){if(!!a.idToken^!!a.refreshToken)throw new P("internal-error");},ta:!0,Fe:!0};var Sn=pa(["https://apis.google.com/js/api.js?onload=",""]),Un=function(a){this.hb=a;this.jf=null;this.Tg=Tn(this)};Un.prototype.onReady=function(){return this.Tg};
var Tn=function(a){return Vn().then(function(){return new F(function(b,c){N("gapi.iframes.getContext")().open({where:document.body,url:a.hb,messageHandlersFilter:N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(d){a.jf=d;a.jf.restyle({setHideOnLeave:!1});var e=setTimeout(function(){c(Error("Network Error"))},Wn.get()),f=function(){clearTimeout(e);b()};d.ping(f).then(f,function(){c(Error("Network Error"))})})})})};
Un.prototype.sendMessage=function(a){var b=this;return this.Tg.then(function(){return new F(function(c){b.jf.send(a.type,a,c,N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})};Un.prototype.kh=function(a,b){var c=this;this.Tg.then(function(){c.jf.register(a,b,N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})};
var Vn=function(){return Xn?Xn:Xn=(new F(function(a,b){var c=function(){hl();N("gapi.load")("gapi.iframes",{callback:a,ontimeout:function(){hl();b(Error("Network Error"))},timeout:Yn.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=lb(Sn,d);G(Mj(d)).l(function(){b(Error("Network Error"))})}})).l(function(a){Xn=null;throw a;})},Yn=new il(3E4,6E4),Wn=new il(5E3,
15E3),Xn=null;var Zn=function(a,b,c,d){this.ya=a;this.ha=b;this.ka=c;this.N=d;this.Wc=null;this.N?(a=M(this.N.url),a=sk(a.Va,a.Ga,a.Tb,"/emulator/auth/iframe")):a=sk("https",this.ya,null,"/__/auth/iframe");this.hc=a;L(this.hc,"apiKey",this.ha);L(this.hc,"appName",this.ka);this.Ia=null;this.Da=[]};Zn.prototype.zh=function(a){this.Wc=a;return this};Zn.prototype.wh=function(a){this.Ia=a;return this};
Zn.prototype.toString=function(){this.Wc?L(this.hc,"v",this.Wc):this.hc.removeParameter("v");this.Ia?L(this.hc,"eid",this.Ia):this.hc.removeParameter("eid");this.Da.length?L(this.hc,"fw",this.Da.join(",")):this.hc.removeParameter("fw");return this.hc.toString()};var $n=function(a,b,c,d,e,f){this.ya=a;this.ha=b;this.ka=c;this.hk=d;this.N=f;this.Wc=this.Ja=this.jh=null;this.Bd=e;this.ma=this.Ia=null};$n.prototype.yh=function(a){this.ma=a;return this};$n.prototype.zh=function(a){this.Wc=a;return this};
$n.prototype.wh=function(a){this.Ia=a;return this};
$n.prototype.toString=function(){if(this.N){var a=M(this.N.url);a=sk(a.Va,a.Ga,a.Tb,"/emulator/auth/handler")}else a=sk("https",this.ya,null,"/__/auth/handler");L(a,"apiKey",this.ha);L(a,"appName",this.ka);L(a,"authType",this.hk);if(this.Bd.isOAuthProvider){var b=this.Bd;try{var c=firebase.app(this.ka).auth().Gb}catch(h){c=null}b.qg=c;L(a,"providerId",this.Bd.providerId);c=this.Bd;b=el(c.ai);for(var d in b)b[d]=b[d].toString();d=c.Kl;b=Ib(b);for(var e=0;e<d.length;e++){var f=d[e];f in b&&delete b[f]}c.Ng&&
c.qg&&!b[c.Ng]&&(b[c.Ng]=c.qg);Hb(b)||L(a,"customParameters",dl(b))}typeof this.Bd.ui==="function"&&(c=this.Bd.ui(),c.length&&L(a,"scopes",c.join(",")));this.jh?L(a,"redirectUrl",this.jh):a.removeParameter("redirectUrl");this.Ja?L(a,"eventId",this.Ja):a.removeParameter("eventId");this.Wc?L(a,"v",this.Wc):a.removeParameter("v");if(this.Ie)for(var g in this.Ie)this.Ie.hasOwnProperty(g)&&!rk(a,g)&&L(a,g,this.Ie[g]);this.ma?L(a,"tid",this.ma):a.removeParameter("tid");this.Ia?L(a,"eid",this.Ia):a.removeParameter("eid");
g=ao(this.ka);g.length&&L(a,"fw",g.join(","));return a.toString()};var ao=function(a){try{return Db(firebase.app(a).auth().Da)}catch(b){return[]}},bo=function(a,b,c,d,e,f){this.ya=a;this.ha=b;this.ka=c;this.N=f;this.Ec=d||null;this.Ia=e||null;this.o=this.Gg=this.ni=null;this.Vb=[];this.lf=this.Hb=null},co=function(a){var b=b||Ck();return hn(a).then(function(c){if(!Mk(c,b))throw new Pl(Ck());})};k=bo.prototype;
k.initialize=function(){if(this.lf)return this.lf;var a=this;return this.lf=Ok().then(function(){if(!a.Gg){var b=a.ya,c=a.ha,d=a.ka,e=a.Ec,f=a.Ia,g=ao(a.ka);b=(new Zn(b,c,d,a.N)).zh(e).wh(f);b.Da=Db(g||[]);a.Gg=b.toString()}a.hf=new Un(a.Gg);a.lh()})};k.ye=function(a,b,c){var d=new P("popup-closed-by-user"),e=new P("web-storage-unsupported"),f=this,g=!1;return this.Mc().then(function(){eo(f).then(function(h){h||(a&&Ik(a),b(e),g=!0)})}).l(function(){}).then(function(){if(!g)return Kk(a)}).then(function(){if(!g)return Zj(c).then(function(){b(d)})})};
k.Hj=function(){var a=Ak();return!cl(a)&&!gl(a)};k.zi=function(){return!1};
k.ne=function(a,b,c,d,e,f,g,h){if(!a)return H(new P("popup-blocked"));if(g&&!cl())return this.Mc().l(function(m){Ik(a);e(m)}),d(),G();this.Hb||(this.Hb=co(fo(this)));var l=this;return this.Hb.then(function(){var m=l.Mc().l(function(q){Ik(a);e(q);throw q;});d();return m}).then(function(){Im(c);if(!g){var m=go(l.ya,l.ha,l.ka,b,c,null,f,l.Ec,void 0,l.Ia,h,l.N);Dk(m,a)}}).l(function(m){m.code=="auth/network-request-failed"&&(l.Hb=null);throw m;})};
var fo=function(a){a.o||(a.ni=a.Ec?Yk("JsCore",a.Ec,ao(a.ka)):null,a.o=new Rm(a.ha,yk(a.Ia),a.ni),a.N&&Vm(a.o,a.N));return a.o};bo.prototype.oe=function(a,b,c,d){this.Hb||(this.Hb=co(fo(this)));var e=this;return this.Hb.then(function(){Im(b);var f=go(e.ya,e.ha,e.ka,a,b,Ck(),c,e.Ec,void 0,e.Ia,d,e.N);Dk(f)}).l(function(f){f.code=="auth/network-request-failed"&&(e.Hb=null);throw f;})};
bo.prototype.Mc=function(){var a=this;return this.initialize().then(function(){return a.hf.onReady()}).l(function(){a.Hb=null;throw new P("network-request-failed");})};bo.prototype.Mj=function(){return!0};var go=function(a,b,c,d,e,f,g,h,l,m,q,x){a=new $n(a,b,c,d,e,x);a.jh=f;a.Ja=g;f=a.zh(h);f.Ie=Ib(l||null);return f.wh(m).yh(q).toString()};
bo.prototype.lh=function(){if(!this.hf)throw Error("IfcHandler must be initialized!");var a=this;this.hf.kh("authEvent",function(b){var c={};if(b&&b.authEvent){var d=!1;b=Fl(b.authEvent);for(c=0;c<a.Vb.length;c++)d=a.Vb[c](b)||d;c={};c.status=d?"ACK":"ERROR";return G(c)}c.status="ERROR";return G(c)})};
var eo=function(a){var b={type:"webStorageSupport"};return a.initialize().then(function(){return a.hf.sendMessage(b)}).then(function(c){if(c&&c.length&&typeof c[0].webStorageSupport!=="undefined")return c[0].webStorageSupport;throw Error();})};bo.prototype.Cc=function(a){this.Vb.push(a)};bo.prototype.Ed=function(a){Cb(this.Vb,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=pa(["https://www.google.com/recaptcha/api.js?trustedtypes=true&onload=","&render=explicit&hl=",""]),jo=function(){this.hd=r.grecaptcha?Infinity:0;this.Bi=null;this.kg="__rcb"+Math.floor(Math.random()*1E6).toString()};
jo.prototype.Oi=function(a){var b=this;return new F(function(c,d){var e=setTimeout(function(){d(new P("network-request-failed"))},ko.get());if(!r.grecaptcha||a!==b.Bi&&!b.hd){r[b.kg]=function(){if(r.grecaptcha){b.Bi=a;var g=r.grecaptcha.render;r.grecaptcha.render=function(h,l){h=g(h,l);b.hd++;return h};clearTimeout(e);c(r.grecaptcha)}else clearTimeout(e),d(new P("internal-error"));delete r[b.kg]};var f=lb(io,b.kg,a||"");G(Mj(f)).l(function(){clearTimeout(e);d(new P("internal-error","Unable to load external reCAPTCHA dependencies!"))})}else clearTimeout(e),
c(r.grecaptcha)})};jo.prototype.Th=function(){this.hd--};var ko=new il(3E4,6E4),lo=null;var mo=function(){this.ab={};this.hd=1E12};mo.prototype.render=function(a,b){this.ab[this.hd.toString()]=new no(a,b);return this.hd++};mo.prototype.reset=function(a){var b=oo(this,a);a=po(a);b&&a&&(b.delete(),delete this.ab[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()};
var oo=function(a,b){return(b=po(b))?a.ab[b]||null:null},po=function(a){return(a=typeof a==="undefined"?1E12:a)?a.toString():null},qo=null,no=function(a,b){this.wb=!1;this.wa=b;this.Jd=this.Gf=null;this.Ki=this.wa.size!=="invisible";this.fi=Qc(a);var c=this;this.Wi=function(){c.execute()};this.Ki?this.execute():Wi(this.fi,"click",this.Wi)};no.prototype.getResponse=function(){ro(this);return this.Gf};
no.prototype.execute=function(){ro(this);var a=this;this.Jd||(this.Jd=setTimeout(function(){a.Gf=Wk();var b=a.wa.callback,c=a.wa["expired-callback"];if(b)try{b(a.Gf)}catch(d){}a.Jd=setTimeout(function(){a.Jd=null;a.Gf=null;if(c)try{c()}catch(d){}a.Ki&&a.execute()},6E4)},500))};no.prototype.delete=function(){ro(this);this.wb=!0;clearTimeout(this.Jd);this.Jd=null;dj(this.fi,"click",this.Wi)};var ro=function(a){if(a.wb)throw Error("reCAPTCHA mock was already deleted!");};var so=function(){};so.prototype.Oi=function(){qo||(qo=new mo);return G(qo)};so.prototype.Th=function(){};var to=null;var uo=function(a,b,c,d,e,f,g){O(this,"type","recaptcha");this.Nd=this.Qd=null;this.jd=!1;this.Vh=b;this.Zd=null;g?(to||(to=new so),g=to):(lo||(lo=new jo),g=lo);this.rj=g;this.tc=c||{theme:"light",type:"image"};this.Ka=[];if(this.tc.sitekey)throw new P("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");this.mf=this.tc.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.");
if(!Qc(b)||!this.mf&&Qc(b).hasChildNodes())throw new P("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new Rm(a,f||null,e||null);this.Hk=d||function(){return null};var h=this;this.Rf=[];var l=this.tc.callback;this.tc.callback=function(q){h.Td(q);if(typeof l==="function")l(q);else if(typeof l==="string"){var x=N(l,r);typeof x==="function"&&x(q)}};var m=this.tc["expired-callback"];this.tc["expired-callback"]=function(){h.Td(null);if(typeof m===
"function")m();else if(typeof m==="string"){var q=N(m,r);typeof q==="function"&&q()}}};uo.prototype.Td=function(a){for(var b=0;b<this.Rf.length;b++)try{this.Rf[b](a)}catch(c){}};var vo=function(a,b){Cb(a.Rf,function(c){return c==b})};k=uo.prototype;k.u=function(a){var b=this;this.Ka.push(a);a.Ac(function(){Ab(b.Ka,a)});return a};
k.de=function(){var a=this;return this.Qd?this.Qd:this.Qd=this.u(G().then(function(){if(al()&&!Tk())return Ok();throw new P("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.");}).then(function(){return a.rj.Oi(a.Hk())}).then(function(b){a.Zd=b;return Q(a.o,Pn,{})}).then(function(b){a.tc.sitekey=b.recaptchaSiteKey}).l(function(b){a.Qd=null;throw b;}))};
k.render=function(){wo(this);var a=this;return this.u(this.de().then(function(){if(a.Nd===null){var b=a.Vh;if(!a.mf){var c=Qc(b);b=Uc(document,"DIV");c.appendChild(b)}a.Nd=a.Zd.render(b,a.tc)}return a.Nd}))};k.verify=function(){wo(this);var a=this;return this.u(this.render().then(function(b){return new F(function(c){var d=a.Zd.getResponse(b);if(d)c(d);else{var e=function(f){f&&(vo(a,e),c(f))};a.Rf.push(e);a.mf&&a.Zd.execute(a.Nd)}})}))};k.reset=function(){wo(this);this.Nd!==null&&this.Zd.reset(this.Nd)};
var wo=function(a){if(a.jd)throw new P("internal-error","RecaptchaVerifier instance has been destroyed.");};uo.prototype.clear=function(){wo(this);this.jd=!0;this.rj.Th();for(var a=0;a<this.Ka.length;a++)this.Ka[a].cancel("RecaptchaVerifier instance has been destroyed.");this.mf||Vc(Qc(this.Vh))};
var xo=function(a,b,c){var d=!1;try{this.U=c||firebase.app()}catch(g){throw new P("argument-error","No firebase.app.App instance is currently initialized.");}if(this.U.options&&this.U.options.apiKey)c=this.U.options.apiKey;else throw new P("invalid-api-key");var e=this,f=null;try{f=Db(this.U.auth().Da)}catch(g){}try{d=this.U.auth().settings.appVerificationDisabledForTesting}catch(g){}f=firebase.SDK_VERSION?Yk("JsCore",firebase.SDK_VERSION,f):null;uo.call(this,c,a,b,function(){try{var g=e.U.auth().Gb}catch(h){g=
null}return g},f,yk(zk),d)};w(xo,uo);var yo=function(a){this.He=a};yo.prototype.postMessage=function(a,b){this.He.postMessage(a,b)};var zo=function(a){this.Gl=a;this.Uh=!1;this.tf=[]};
zo.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.Uh)return H(Error("connection_unavailable"));var m=c?800:50,q=typeof MessageChannel!=="undefined"?new MessageChannel:null;return(new F(function(x,A){q?(e=""+Math.floor(Math.random()*1E20).toString(),q.port1.start(),g=setTimeout(function(){A(Error("unsupported_event"))},m),f=function(R){R.data.eventId===e&&(R.data.status==="ack"?(clearTimeout(g),h=setTimeout(function(){A(Error("timeout"))},
3E3)):R.data.status==="done"?(clearTimeout(h),typeof R.data.response!=="undefined"?x(R.data.response):A(Error("unknown_error"))):(clearTimeout(g),clearTimeout(h),A(Error("invalid_response"))))},l={messageChannel:q,onMessage:f},d.tf.push(l),q.port1.addEventListener("message",f),d.Gl.postMessage({eventType:a,eventId:e,data:b},[q.port2])):A(Error("connection_unavailable"))})).then(function(x){Ao(d,l);return x}).l(function(x){Ao(d,l);throw x;})};
var Ao=function(a,b){if(b){var c=b.messageChannel,d=b.onMessage;c&&(c.port1.removeEventListener("message",d),c.port1.close());Cb(a.tf,function(e){return e==b})}};zo.prototype.close=function(){for(;this.tf.length>0;)Ao(this,this.tf[0]);this.Uh=!0};var Bo=function(a){this.wg=a;this.Db={};this.Ri=v(this.Lk,this)},Do=function(a){z(Co,function(c){c.wg==a&&(b=c)});if(!b){var b=new Bo(a);Co.push(b)}return b};
Bo.prototype.Lk=function(a){var b=a.data.eventType,c=a.data.eventId,d=this.Db[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)}))});cg(e).then(function(f){var g=[];z(f,function(h){g.push({fulfilled:h.mi,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",
eventId:c,eventType:b,response:g})})}};Bo.prototype.subscribe=function(a,b){Hb(this.Db)&&this.wg.addEventListener("message",this.Ri);typeof this.Db[a]==="undefined"&&(this.Db[a]=[]);this.Db[a].push(b)};Bo.prototype.unsubscribe=function(a,b){typeof this.Db[a]!=="undefined"&&b?(Cb(this.Db[a],function(c){return c==b}),this.Db[a].length==0&&delete this.Db[a]):b||delete this.Db[a];Hb(this.Db)&&this.wg.removeEventListener("message",this.Ri)};var Co=[];var Eo=function(a){this.tb=a||firebase.INTERNAL.reactNative&&firebase.INTERNAL.reactNative.AsyncStorage;if(!this.tb)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.tb.getItem(a)).then(function(b){return b&&fl(b)})};k.set=function(a,b){return G(this.tb.setItem(a,dl(b)))};k.remove=function(a){return G(this.tb.removeItem(a))};k.mc=function(){};k.zc=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.mc=function(){};k.zc=function(){};var Io=function(){if(!Go()){if(Uk()=="Node")throw new P("internal-error","The LocalStorage compatibility library was not found.");throw new P("web-storage-unsupported");}this.tb=Ho()||firebase.INTERNAL.node.localStorage;this.type="localStorage"},Ho=function(){try{var a=r.localStorage,b=Zk();a&&(a.setItem(b,"1"),a.removeItem(b));return a}catch(c){return null}},Go=function(){var a=Uk()=="Node";a=Ho()||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.localStorage;if(!a)return!1;try{return a.setItem("__sak",
"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.tb.getItem(a);return fl(c)})};k.set=function(a,b){var c=this;return G().then(function(){var d=dl(b);d===null?c.remove(a):c.tb.setItem(a,d)})};k.remove=function(a){var b=this;return G().then(function(){b.tb.removeItem(a)})};k.mc=function(a){r.window&&Wi(r.window,"storage",a)};k.zc=function(a){r.window&&dj(r.window,"storage",a)};var Jo=function(){this.tb={};this.type="nullStorage"};k=Jo.prototype;k.get=function(){return G(null)};k.set=function(){return G()};k.remove=function(){return G()};k.mc=function(){};k.zc=function(){};var Mo=function(){if(!Ko()){if(Uk()=="Node")throw new P("internal-error","The SessionStorage compatibility library was not found.");throw new P("web-storage-unsupported");}this.tb=Lo()||firebase.INTERNAL.node.sessionStorage;this.type="sessionStorage"},Lo=function(){try{var a=r.sessionStorage,b=Zk();a&&(a.setItem(b,"1"),a.removeItem(b));return a}catch(c){return null}},Ko=function(){var a=Uk()=="Node";a=Lo()||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.sessionStorage;if(!a)return!1;try{return a.setItem("__sak",
"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.tb.getItem(a);return fl(c)})};k.set=function(a,b){var c=this;return G().then(function(){var d=dl(b);d===null?c.remove(a):c.tb.setItem(a,d)})};k.remove=function(a){var b=this;return G().then(function(){b.tb.removeItem(a)})};k.mc=function(){};k.zc=function(){};var Po=function(){if(!No())throw new P("web-storage-unsupported");this.bi="firebaseLocalStorageDb";this.vf="firebaseLocalStorage";this.og="fbase_key";this.Sj="value";this.nm=1;this.Ra={};this.Ub=[];this.ke=0;this.Fi=r.indexedDB;this.type="indexedDB";this.Lf=this.uc=this.Cf=this.Zg=null;this.zj=!1;this.Vf=null;var a=this;Tk()&&self?(this.uc=Do(Tk()?self:null),this.uc.subscribe("keyChanged",function(b,c){return Oo(a).then(function(d){d.length>0&&z(a.Ub,function(e){e(d)});return{keyProcessed:zb(d,c.key)}})}),
this.uc.subscribe("ping",function(){return G(["keyChanged"])})):pl().then(function(b){if(a.Vf=b)a.Lf=new zo(new yo(b)),a.Lf.send("ping",null,!0).then(function(c){c[0].fulfilled&&zb(c[0].value,"keyChanged")&&(a.zj=!0)}).l(function(){})})},Qo,Ro=function(a){return new F(function(b,c){var d=a.Fi.deleteDatabase(a.bi);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.Fi.open(a.bi,a.nm);d.onerror=function(e){try{e.preventDefault()}catch(f){}c(Error(e.target.error))};
d.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore(a.vf,{keyPath:a.og})}catch(f){c(f)}};d.onsuccess=function(e){e=e.target.result;e.objectStoreNames.contains(a.vf)?b(e):Ro(a).then(function(){return So(a)}).then(function(f){b(f)}).l(function(f){c(f)})}})},To=function(a){a.Ig||(a.Ig=So(a));return a.Ig},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.Ig=void 0;return d(e,f)}).l(function(h){f(h)})})};
return new F(d)},No=function(){try{return!!r.indexedDB}catch(a){return!1}},Vo=function(a,b){return b.objectStore(a.vf)},Wo=function(a,b,c){return b.transaction([a.vf],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)}})};
Po.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.ke++;d=!0;var g={};g[c.og]=a;g[c.Sj]=b;return Xo(f.add(g))})}).then(function(){c.Ra[a]=b;return Yo(c,a)}).Ac(function(){d&&c.ke--})};var Yo=function(a,b){return a.Lf&&a.Vf&&ol()===a.Vf?a.Lf.send("keyChanged",{key:b},a.zj).then(function(){}).l(function(){}):G()};
Po.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.ke++;return Xo(Vo(c,Wo(c,d,!0))["delete"](a))}).then(function(){delete c.Ra[a];return Yo(c,a)}).Ac(function(){b&&c.ke--})};
var 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.ke==0){for(d=0;d<b.length;d++)c[b[d][a.og]]=b[d][a.Sj];d=Ek(a.Ra,c);a.Ra=c}return d})};Po.prototype.mc=function(a){this.Ub.length==0&&this.Dh();this.Ub.push(a)};
Po.prototype.zc=function(a){Cb(this.Ub,function(b){return b==a});this.Ub.length==0&&this.Of()};Po.prototype.Dh=function(){var a=this;this.Of();var b=function(){a.Cf=setTimeout(function(){a.Zg=Oo(a).then(function(c){c.length>0&&z(a.Ub,function(d){d(c)})}).then(function(){b()}).l(function(c){c.message!="STOP_EVENT"&&b()})},800)};b()};Po.prototype.Of=function(){this.Zg&&this.Zg.cancel("STOP_EVENT");this.Cf&&(clearTimeout(this.Cf),this.Cf=null)};function Zo(a){var b=this,c=null;this.Ub=[];this.type="indexedDB";this.hi=a;this.Jh=G().then(function(){if(No()){var d=Zk(),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.hi})}return b.hi}).then(function(d){b.type=d.type;d.mc(function(e){z(b.Ub,function(f){f(e)})});return d})}k=Zo.prototype;k.get=function(a){return this.Jh.then(function(b){return b.get(a)})};
k.set=function(a,b){return this.Jh.then(function(c){return c.set(a,b)})};k.remove=function(a){return this.Jh.then(function(b){return b.remove(a)})};k.mc=function(a){this.Ub.push(a)};k.zc=function(a){Cb(this.Ub,function(b){return b==a})};var dp=function(){this.ug={Browser:$o,Node:ap,ReactNative:bp,Worker:cp}[Uk()]},ep,$o={ua:Io,Pf:Mo},ap={ua:Io,Pf:Mo},bp={ua:Eo,Pf:Jo},cp={ua:Io,Pf:Jo};var fp=function(){this.Yf=!1;Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Yf},set:function(a){this.Yf=a},enumerable:!1})};var gp=function(a){this.Kg(a)};
gp.prototype.Kg=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.mk=b;this.Mh=this.Xf=null;this.Hi=!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.Xf=b;if(typeof d!=="undefined"&&typeof d!=="boolean")throw new P("argument-error","installApp property must be a boolean when specified.");this.Hi=
!!d;if(typeof c!=="undefined"&&(typeof c!=="string"||typeof c==="string"&&!c.length))throw new P("argument-error","minimumVersion property must be a non empty string when specified.");this.Mh=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.");
this.Ci=null;if((b=a.iOS)&&typeof b==="object")if(b=b.bundleId,typeof b==="string"&&b.length)this.Ci=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.");
this.Sh=!!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.vk=a||null};var hp=function(a){var b={};b.continueUrl=a.mk;b.canHandleCodeInApp=a.Sh;if(b.androidPackageName=a.Xf)b.androidMinimumVersion=a.Mh,b.androidInstallApp=a.Hi;b.iOSBundleId=a.Ci;b.dynamicLinkDomain=a.vk;for(var c in b)b[c]===null&&delete b[c];return b};var ip=function(a,b){this.rk=b;O(this,"verificationId",a)};ip.prototype.confirm=function(a){a=Gm(this.verificationId,a);return this.rk(a)};var jp=function(a,b,c,d){return(new Cm(a)).verifyPhoneNumber(b,c).then(function(e){return new ip(e,d)})};var kp=function(a,b,c){this.Dl=a;this.Ul=b;this.Jk=c;this.rf=3E4;this.Lh=96E4;this.Vl=!1;this.xd=null;this.Oc=this.rf;if(this.Lh<this.rf)throw Error("Proactive refresh lower bound greater than upper bound!");};kp.prototype.start=function(){this.Oc=this.rf;lp(this,!0)};
var mp=function(a,b){if(b)return a.Oc=a.rf,a.Jk();b=a.Oc;a.Oc*=2;a.Oc>a.Lh&&(a.Oc=a.Lh);return b},lp=function(a,b){a.stop();a.xd=Zj(mp(a,b)).then(function(){return a.Vl?G():kl()}).then(function(){return a.Dl()}).then(function(){lp(a,!0)}).l(function(c){a.Ul(c)&&lp(a,!1)})};kp.prototype.stop=function(){this.xd&&(this.xd.cancel(),this.xd=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=Sl(a.idToken);c&&c.hh&&(b=c.hh)}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"&&
(c=!0);O(this,"providerId",b);O(this,"isNewUser",c)},rp=function(a){sp.call(this,a);a=fl(a.rawUserInfo||"{}");O(this,"profile",xl(a||{}))};p(rp,sp);var np=function(a){rp.call(this,a);if(this.providerId!="facebook.com")throw Error("Invalid provider ID!");};p(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)};p(pp,rp);
var op=function(a){rp.call(this,a);if(this.providerId!="google.com")throw Error("Invalid provider ID!");};p(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)};p(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(Uk()){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(!$k()&&a!=="none")throw c;}}
var wp=function(){var a=!gl(Ak())&&Sk()?!0:!1,b=cl(),c=$k();this.Ui="firebase";this.th=":";this.Wl=a;this.vj=b;this.Tj=c;this.Za={};ep||(ep=new dp);a=ep;try{this.jj=!Bk()&&nl()||!r.indexedDB?new a.ug.ua:new Zo(Tk()?new Fo:new a.ug.ua)}catch(d){this.jj=new Fo,this.vj=!0}try{this.Lj=new a.ug.Pf}catch(d){this.Lj=new Fo}this.Zk=new Fo;this.Fh=v(this.Jj,this);this.Ra={}},xp,yp=function(){xp||(xp=new wp);return xp},zp=function(a,b){switch(b){case "session":return a.Lj;case "none":return a.Zk;default:return a.jj}};
wp.prototype.nb=function(a,b){return this.Ui+this.th+a.name+(b?this.th+b:"")};var Ap=function(a,b,c){var d=a.nb(b,c),e=zp(a,b.ua);return a.get(b,c).then(function(f){var g=null;try{g=fl(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.ua).get(this.nb(a,b))};
k.remove=function(a,b){b=this.nb(a,b);a.ua=="local"&&(this.Ra[b]=null);return zp(this,a.ua).remove(b)};k.set=function(a,b,c){var d=this.nb(a,c),e=this,f=zp(this,a.ua);return f.set(d,b).then(function(){return f.get(d)}).then(function(g){a.ua=="local"&&(e.Ra[d]=g)})};k.addListener=function(a,b,c){a=this.nb(a,b);this.Tj&&(this.Ra[a]=r.localStorage.getItem(a));Hb(this.Za)&&this.Dh();this.Za[a]||(this.Za[a]=[]);this.Za[a].push(c)};
k.removeListener=function(a,b,c){a=this.nb(a,b);this.Za[a]&&(Cb(this.Za[a],function(d){return d==c}),this.Za[a].length==0&&delete this.Za[a]);Hb(this.Za)&&this.Of()};k.Dh=function(){zp(this,"local").mc(this.Fh);this.vj||(Bk()||!nl())&&r.indexedDB||!this.Tj||Bp(this)};
var Bp=function(a){Cp(a);a.Pg=setInterval(function(){for(var b in a.Za){var c=r.localStorage.getItem(b),d=a.Ra[b];c!=d&&(a.Ra[b]=c,c=new Ki({type:"storage",key:b,target:window,oldValue:d,newValue:c,Yg:!0}),a.Jj(c))}},1E3)},Cp=function(a){a.Pg&&(clearInterval(a.Pg),a.Pg=null)};wp.prototype.Of=function(){zp(this,"local").zc(this.Fh);Cp(this)};
wp.prototype.Jj=function(a){if(a&&a.Fk){var b=a.Ya.key;if(b==null)for(var c in this.Za){var d=this.Ra[c];typeof d==="undefined"&&(d=null);var e=r.localStorage.getItem(c);e!==d&&(this.Ra[c]=e,this.jg(c))}else if(b.indexOf(this.Ui+this.th)==0&&this.Za[b]){typeof a.Ya.Yg!=="undefined"?zp(this,"local").zc(this.Fh):Cp(this);if(this.Wl)if(c=r.localStorage.getItem(b),d=a.Ya.newValue,d!==c)d!==null?r.localStorage.setItem(b,d):r.localStorage.removeItem(b);else if(this.Ra[b]===d&&typeof a.Ya.Yg==="undefined")return;
var f=this;c=function(){if(typeof a.Ya.Yg!=="undefined"||f.Ra[b]!==r.localStorage.getItem(b))f.Ra[b]=r.localStorage.getItem(b),f.jg(b)};Cc&&Pc&&Pc==10&&r.localStorage.getItem(b)!==a.Ya.newValue&&a.Ya.newValue!==a.Ya.oldValue?setTimeout(c,10):c()}}else z(a,v(this.jg,this))};wp.prototype.jg=function(a){this.Za[a]&&z(this.Za[a],function(b){b()})};var Dp=function(a){this.V=a;this.O=yp()},Fp=function(a){return a.O.get(Ep,a.V).then(function(b){return Fl(b)})},Gp=function(a){return a.O.remove(Ep,a.V)};Dp.prototype.Cc=function(a){this.O.addListener(Ep,this.V,a)};Dp.prototype.Ed=function(a){this.O.removeListener(Ep,this.V,a)};var Ip=function(a){return a.O.get(Hp,a.V).then(function(b){return Fl(b)})},Ep={name:"authEvent",ua:"local"},Hp={name:"redirectEvent",ua:"session"};var Jp=function(){this.O=yp()};Jp.prototype.Yd=function(){return this.O.get(Kp,void 0)};var Kp={name:"sessionId",ua:"session"};var Lp=function(){this.Qg=null;this.Oe=[]};Lp.prototype.subscribe=function(a){var b=this;this.Oe.push(a);this.Qg||(this.Qg=function(c){for(var d=0;d<b.Oe.length;d++)b.Oe[d](c)},a=N("universalLinks.subscribe",r),typeof a==="function"&&a(null,this.Qg))};Lp.prototype.unsubscribe=function(a){Cb(this.Oe,function(b){return b==a})};var Mp=null;var Np=function(a,b,c,d,e,f){this.ya=a;this.ha=b;this.ka=c;this.N=f;this.Ec=d||null;this.Ia=e||null;this.Kj=b+":"+c;this.Xl=new Jp;this.oi=new Dp(this.Kj);this.Jg=null;this.Vb=[];this.dl=500;this.Il=2E3;this.be=this.Bf=null},Op=function(a){return new P("invalid-cordova-configuration",a)};
Np.prototype.Mc=function(){return this.de?this.de:this.de=Qk().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");
},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 Gi;b.update(a);return ui(b.digest())};k=Np.prototype;k.ye=function(a,b){b(new P("operation-not-supported-in-this-environment"));return G()};k.ne=function(){return H(new P("operation-not-supported-in-this-environment"))};k.Mj=function(){return!1};k.Hj=function(){return!0};
k.zi=function(){return!0};
k.oe=function(a,b,c,d){if(this.Bf)return H(new P("redirect-operation-pending"));var e=this,f=r.document,g=null,h=null,l=null,m=null;return this.Bf=G().then(function(){Im(b);return Rp(e)}).then(function(){return Sp(e,a,b,c,d)}).then(function(){return(new F(function(q,x){h=function(){var A=N("cordova.plugins.browsertab.close",r);q();typeof A==="function"&&A();e.be&&typeof e.be.close==="function"&&(e.be.close(),e.be=null);return!1};e.Cc(h);l=function(){g||(g=Zj(e.Il).then(function(){x(new P("redirect-cancelled-by-user"))}))};m=
function(){jl()&&l()};f.addEventListener("resume",l,!1);Ak().toLowerCase().match(/android/)||f.addEventListener("visibilitychange",m,!1)})).l(function(q){return Tp(e).then(function(){throw q;})})}).Ac(function(){l&&f.removeEventListener("resume",l,!1);m&&f.removeEventListener("visibilitychange",m,!1);g&&g.cancel();h&&e.Ed(h);e.Bf=null})};
var Sp=function(a,b,c,d,e){var f=Pp(),g=new El(b,d,null,f,new P("no-auth-event"),null,e),h=N("BuildInfo.packageName",r);if(typeof h!=="string")throw new P("invalid-cordova-configuration");var l=N("BuildInfo.displayName",r),m={};if(Ak().toLowerCase().match(/iphone|ipad|ipod/))m.ibi=h;else if(Ak().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 q=go(a.ya,a.ha,a.ka,b,c,null,d,a.Ec,m,a.Ia,e,a.N);
return a.Mc().then(function(){var x=a.Kj;return a.Xl.O.set(Ep,g.T(),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(R){if(R){A=N("cordova.plugins.browsertab.openUrl",r);if(typeof A!=="function")throw new P("invalid-cordova-configuration");A(q)}else{A=N("cordova.InAppBrowser.open",r);if(typeof A!=="function")throw new P("invalid-cordova-configuration");R=A;var Aa=Ak();Aa=!(!Aa.match(/(iPad|iPhone|iPod).*OS 7_\d/i)&&
!Aa.match(/(iPad|iPhone|iPod).*OS 8_\d/i));a.be=R(q,Aa?"_blank":"_system","location=yes")}})})};Np.prototype.Td=function(a){for(var b=0;b<this.Vb.length;b++)try{this.Vb[b](a)}catch(c){}};
var Rp=function(a){a.Jg||(a.Jg=a.Mc().then(function(){return new F(function(b){var c=function(d){b(d);a.Ed(c);return!1};a.Cc(c);Up(a)})}));return a.Jg},Tp=function(a){var b=null;return Fp(a.oi).then(function(c){b=c;return Gp(a.oi)}).then(function(){return b})},Up=function(a){var b=new El("unknown",null,null,null,new P("no-auth-event")),c=!1,d=Zj(a.dl).then(function(){return Tp(a).then(function(){c||a.Td(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;
l=Ol(g.url);l.indexOf("/__/auth/callback")!=-1&&(m=M(l),m=fl(rk(m,"firebaseError")||null),m=(m=typeof m==="object"?Dl(m):null)?new El(h.getType(),h.Ja,null,null,m,null,h.ma):new El(h.getType(),h.Ja,l,h.Yd(),null,null,h.ma));l=m||b}a.Td(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)};
Np.prototype.Cc=function(a){this.Vb.push(a);Rp(this).l(function(b){b.code==="auth/invalid-cordova-configuration"&&(b=new El("unknown",null,null,null,new P("no-auth-event")),a(b))})};Np.prototype.Ed=function(a){Cb(this.Vb,function(b){return b==a})};var Vp=function(a){this.V=a;this.O=yp()},Xp=function(a){return a.O.set(Wp,"pending",a.V)},Yp=function(a){return a.O.remove(Wp,a.V)},Zp=function(a){return a.O.get(Wp,a.V).then(function(b){return b=="pending"})},Wp={name:"pendingRedirect",ua:"session"};var dq=function(a,b,c,d){this.Df={};this.Og=0;this.ya=a;this.ha=b;this.ka=c;this.N=d;this.Ae=[];this.td=!1;this.dg=v(this.Dg,this);this.vc=new $p(this);this.ah=new aq(this);this.le=new Vp(bq(this.ha,this.ka));this.Bc={};this.Bc.unknown=this.vc;this.Bc.signInViaRedirect=this.vc;this.Bc.linkViaRedirect=this.vc;this.Bc.reauthViaRedirect=this.vc;this.Bc.signInViaPopup=this.ah;this.Bc.linkViaPopup=this.ah;this.Bc.reauthViaPopup=this.ah;this.qb=cq(this.ya,this.ha,this.ka,zk,this.N)},cq=function(a,b,c,d,
e){var f=firebase.SDK_VERSION||null;return Pk()?new Np(a,b,c,f,d,e):new bo(a,b,c,f,d,e)};dq.prototype.reset=function(){this.td=!1;this.qb.Ed(this.dg);this.qb=cq(this.ya,this.ha,this.ka,null,this.N);this.Df={}};dq.prototype.ad=function(){this.vc.ad()};dq.prototype.initialize=function(){var a=this;this.td||(this.td=!0,this.qb.Cc(this.dg));var b=this.qb;return this.qb.Mc().l(function(c){a.qb==b&&a.reset();throw c;})};
var gq=function(a){a.qb.Hj()&&a.initialize().l(function(b){var c=new El("unknown",null,null,null,new P("operation-not-supported-in-this-environment"));eq(b)&&a.Dg(c)});a.qb.zi()||fq(a.vc)};k=dq.prototype;k.subscribe=function(a){zb(this.Ae,a)||this.Ae.push(a);if(!this.td){var b=this;Zp(this.le).then(function(c){c?Yp(b.le).then(function(){b.initialize().l(function(d){var e=new El("unknown",null,null,null,new P("operation-not-supported-in-this-environment"));eq(d)&&b.Dg(e)})}):gq(b)}).l(function(){gq(b)})}};
k.unsubscribe=function(a){Cb(this.Ae,function(b){return b==a})};k.Dg=function(a){if(!a)throw new P("invalid-auth-event");Date.now()-this.Og>=6E5&&(this.Df={},this.Og=0);if(a&&a.getUid()&&this.Df.hasOwnProperty(a.getUid()))return!1;for(var b=!1,c=0;c<this.Ae.length;c++){var d=this.Ae[c];if(d.Rh(a.getType(),a.Ja)){if(b=this.Bc[a.getType()])b.oj(a,d),a&&(a.Yd()||a.Ja)&&(this.Df[a.getUid()]=!0,this.Og=Date.now());b=!0;break}}fq(this.vc);return b};k.getRedirectResult=function(){return this.vc.getRedirectResult()};
k.ne=function(a,b,c,d,e,f){var g=this;return this.qb.ne(a,b,c,function(){g.td||(g.td=!0,g.qb.Cc(g.dg))},function(){g.reset()},d,e,f)};var eq=function(a){return a&&a.code=="auth/cordova-not-ready"?!0:!1};dq.prototype.oe=function(a,b,c,d){var e=this,f;return Xp(this.le).then(function(){return e.qb.oe(a,b,c,d).l(function(g){if(eq(g))throw new P("operation-not-supported-in-this-environment");f=g;return Yp(e.le).then(function(){throw f;})}).then(function(){return e.qb.Mj()?new F(function(){}):Yp(e.le).then(function(){return e.getRedirectResult()}).then(function(){}).l(function(){})})})};
dq.prototype.ye=function(a,b,c,d){return this.qb.ye(c,function(e){a.Sc(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 il(2E3,1E4),kq=new il(3E4,6E4),iq={},$p=function(a){this.O=a;this.Dd=null;this.te=[];this.re=[];this.Cd=null;this.Nj=this.ue=!1};$p.prototype.reset=function(){this.Dd=null;this.Cd&&(this.Cd.cancel(),this.Cd=null)};
$p.prototype.oj=function(a,b){if(a){this.reset();this.ue=!0;var c=a.getType(),d=a.Ja,e=a.getError()&&a.getError().code=="auth/web-storage-unsupported",f=a.getError()&&a.getError().code=="auth/operation-not-supported-in-this-environment";this.Nj=!(!e&&!f);c!="unknown"||e||f?a.yb?this.eh(a,b):b.Wd(c,d)?this.fh(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.ue||(a.ue=!0,lq(a,!1,null,null))};
$p.prototype.ad=function(){this.ue&&!this.Nj&&lq(this,!1,null,null)};$p.prototype.eh=function(a){lq(this,!0,null,a.getError());G()};$p.prototype.fh=function(a,b){var c=this,d=a.Ja,e=a.getType();b=b.Wd(e,d);d=a.Kd;e=a.Yd();var f=a.dh,g=a.ma,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)})};
var mq=function(a,b){a.Dd=function(){return H(b)};if(a.re.length)for(var c=0;c<a.re.length;c++)a.re[c](b)},nq=function(a,b){a.Dd=function(){return G(b)};if(a.te.length)for(var c=0;c<a.te.length;c++)a.te[c](b)},lq=function(a,b,c,d){b?d?mq(a,d):nq(a,c):nq(a,{user:null});a.te=[];a.re=[]};$p.prototype.getRedirectResult=function(){var a=this;return new F(function(b,c){a.Dd?a.Dd().then(b,c):(a.te.push(b),a.re.push(c),oq(a))})};
var oq=function(a){var b=new P("timeout");a.Cd&&a.Cd.cancel();a.Cd=Zj(kq.get()).then(function(){a.Dd||(a.ue=!0,lq(a,!0,null,b))})},aq=function(a){this.O=a};aq.prototype.oj=function(a,b){if(a){var c=a.getType(),d=a.Ja;a.yb?this.eh(a,b):b.Wd(c,d)?this.fh(a,b):H(new P("invalid-auth-event"))}else H(new P("invalid-auth-event"))};aq.prototype.eh=function(a,b){var c=a.Ja,d=a.getType();b.Sc(d,null,a.getError(),c);G()};
aq.prototype.fh=function(a,b){var c=a.Ja,d=a.getType(),e=b.Wd(d,c),f=a.Kd,g=a.Yd();e(f,g,a.ma,a.dh).then(function(h){b.Sc(d,h,null,c)}).l(function(h){b.Sc(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.Ke=a;this.wk=Ib(b);this.zl=c;this.Aj=new Ul(null,d);this.Ai=[];var e=this;z(b.mfaInfo||[],function(f){(f=Jl(f))&&e.Ai.push(f)});O(this,"auth",this.Ke);O(this,"session",this.Aj);O(this,"hints",this.Ai)};
pq.prototype.resolveSignIn=function(a){var b=this;return a.process(this.Ke.o,this.Aj).then(function(c){var d=Ib(b.wk);delete d.mfaInfo;delete d.mfaPendingCredential;Kb(d,c);return b.zl(d)})};var qq=function(a,b,c,d){P.call(this,"multi-factor-auth-required",d,b);this.Ol=new pq(a,b,c);O(this,"resolver",this.Ol)};p(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.Xd().then(function(e){e={idToken:e};typeof d!=="undefined"&&(e.displayName=d);Kb(e,{phoneVerificationInfo:ym(a.Rg)});return Q(b,Mn,e)})},uq=function(a,b,c){return c.Xd().then(function(d){d={mfaPendingCredential:d};Kb(d,{phoneVerificationInfo:ym(a.Rg)});return Q(b,Nn,d)})},vq=function(a){O(this,"factorId",a.providerId);this.Rg=a};w(vq,sq);
var wq=function(a){vq.call(this,a);if(this.Rg.providerId!=Cm.PROVIDER_ID)throw new P("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential");};w(wq,vq);var xq=function(a,b){Ji.call(this,a);for(var c in b)this[c]=b[c]};p(xq,Ji);var zq=function(a,b){this.jc=a;this.Te=[];this.lm=v(this.Vk,this);Wi(this.jc,"userReloaded",this.lm);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 Hl(f)}catch(g){}}else if(d.totpInfo){f.totpInfo=d.totpInfo;try{e=new Il(f)}catch(g){}}else e=
null;d=e}else d=null;d&&c.push(d)});yq(this,c)},Aq=function(a){var b=[];z(a.mfaInfo||[],function(c){(c=Jl(c))&&b.push(c)});return b};zq.prototype.Vk=function(a){yq(this,Aq(a.mm))};var yq=function(a,b){a.Te=b;O(a,"enrolledFactors",b)};k=zq.prototype;k.copy=function(a){yq(this,a.Te)};k.getSession=function(){return this.jc.getIdToken().then(function(a){return new Ul(a,null)})};
k.enroll=function(a,b){var c=this,d=this.jc.o;return this.getSession().then(function(e){return a.process(d,e,b)}).then(function(e){Bq(c.jc,e);return c.jc.reload()})};k.unenroll=function(a){var b=this,c=typeof a==="string"?a:a.uid,d=this.jc.o;return this.jc.getIdToken().then(function(e){return Q(d,Rn,{idToken:e,mfaEnrollmentId:c})}).then(function(e){var f=wb(b.Te,function(g){return g.uid!=c});yq(b,f);Bq(b.jc,e);return b.jc.reload().l(function(g){if(g.code!="auth/user-token-expired")throw g;})})};
k.T=function(){return{multiFactor:{enrolledFactors:xb(this.Te,function(a){return a.T()})}}};var Cq=function(a){this.o=a;this.Wa=this.Ta=null;this.kd=Date.now()};Cq.prototype.T=function(){return{apiKey:this.o.ha,refreshToken:this.Ta,accessToken:this.Wa&&this.Wa.toString(),expirationTime:this.kd}};var Dq=function(a,b){typeof b==="undefined"&&(a.Wa?(b=a.Wa,b=b.yg-b.Xk):b=0);a.kd=Date.now()+b*1E3},Eq=function(a,b){a.Wa=Sl(b.idToken||"");a.Ta=b.refreshToken;b=b.expiresIn;Dq(a,typeof b!=="undefined"?Number(b):void 0)};Cq.prototype.copy=function(a){this.Wa=a.Wa;this.Ta=a.Ta;this.kd=a.kd};
var Fq=function(a,b){return an(a.o,b).then(function(c){a.Wa=Sl(c.access_token);a.Ta=c.refresh_token;Dq(a,c.expires_in);return{accessToken:a.Wa.toString(),refreshToken:a.Ta}}).l(function(c){c.code=="auth/user-token-expired"&&(a.Ta=null);throw c;})};Cq.prototype.getToken=function(a){a=!!a;return this.Wa&&!this.Ta?H(new P("user-token-expired")):a||!this.Wa||Date.now()>this.kd-3E4?this.Ta?Fq(this,{grant_type:"refresh_token",refresh_token:this.Ta}):G(null):G({accessToken:this.Wa.toString(),refreshToken:this.Ta})};var Gq=function(a,b){this.Xh=a||null;this.Mi=b||null;ul(this,{lastSignInTime:ml(b||null),creationTime:ml(a||null)})};Gq.prototype.clone=function(){return new Gq(this.Xh,this.Mi)};Gq.prototype.T=function(){return{lastLoginAt:this.Mi,createdAt:this.Xh}};
var Hq=function(a,b,c,d,e,f){ul(this,{uid:a,displayName:d||null,photoURL:e||null,email:c||null,phoneNumber:f||null,providerId:b})},S=function(a,b,c){gj.call(this);this.Ka=[];this.ha=a.apiKey;this.ka=a.appName;this.ya=a.authDomain||null;var d=firebase.SDK_VERSION?Yk("JsCore",firebase.SDK_VERSION):null;this.o=new Rm(this.ha,yk(zk),d);(this.N=a.emulatorConfig||null)&&Vm(this.o,this.N);this.Nb=new Cq(this.o);Iq(this,b.idToken);Eq(this.Nb,b);O(this,"refreshToken",this.Nb.Ta);Jq(this,c||{});this.me=!1;
this.ya&&bl()&&(this.W=jq(this.ya,this.ha,this.ka,this.N));this.Nf=[];this.Ob=null;this.Ad=Kq(this);this.Md=v(this.Fg,this);var e=this;this.Gb=null;this.Zi=function(f){e.Gd(f.languageCode)};this.Mg=null;this.Xi=function(f){Lq(e,f.emulatorConfig)};this.rg=null;this.Da=[];this.Yi=function(f){Mq(e,f.Ek)};this.zg=null;this.uf=new zq(this,c);O(this,"multiFactor",this.uf)};p(S,gj);S.prototype.Gd=function(a){this.Gb=a;Tm(this.o,a)};
var Lq=function(a,b){a.N=b;Vm(a.o,b);a.W&&(b=a.W,a.W=jq(a.ya,a.ha,a.ka,a.N),a.me&&(b.unsubscribe(a),a.W.subscribe(a)))},Nq=function(a,b){a.Mg&&dj(a.Mg,"languageCodeChanged",a.Zi);(a.Mg=b)&&Wi(b,"languageCodeChanged",a.Zi)},Oq=function(a,b){a.rg&&dj(a.rg,"emulatorConfigChanged",a.Xi);(a.rg=b)&&Wi(b,"emulatorConfigChanged",a.Xi)},Mq=function(a,b){a.Da=b;Wm(a.o,firebase.SDK_VERSION?Yk("JsCore",firebase.SDK_VERSION,a.Da):null)},Pq=function(a,b){a.zg&&dj(a.zg,"frameworkChanged",a.Yi);(a.zg=b)&&Wi(b,"frameworkChanged",
a.Yi)};S.prototype.Fg=function(){this.Ad.xd&&(this.Ad.stop(),this.Ad.start())};
var Qq=function(a){try{return firebase.app(a.ka).auth()}catch(b){throw new P("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+a.ka+"'!");}},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.Nb.kd-Date.now()-3E5;return b>0?b:0})},Rq=function(a){a.jd||a.Ad.xd||(a.Ad.start(),dj(a,"tokenChanged",a.Md),Wi(a,"tokenChanged",a.Md))},Sq=function(a){dj(a,"tokenChanged",a.Md);
a.Ad.stop()},Iq=function(a,b){a.Li=b;O(a,"_lat",b)},Tq=function(a,b){Cb(a.Nf,function(c){return c==b})},Uq=function(a){for(var b=[],c=0;c<a.Nf.length;c++)b.push(a.Nf[c](a));return cg(b).then(function(){return a})},Vq=function(a){a.W&&!a.me&&(a.me=!0,a.W.subscribe(a))},Jq=function(a,b){ul(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,
metadata:new Gq(b.createdAt,b.lastLoginAt),providerData:[]});a.o.ma=a.tenantId},Wq=function(){},Xq=function(a){return G().then(function(){if(a.jd)throw new P("app-deleted");})},Yq=function(a){return xb(a.providerData,function(b){return b.providerId})},$q=function(a,b){b&&(Zq(a,b.providerId),a.providerData.push(b))},Zq=function(a,b){Cb(a.providerData,function(c){return c.providerId==b})},ar=function(a,b,c){(b!="uid"||c)&&a.hasOwnProperty(b)&&O(a,b,c)};
S.prototype.copy=function(a){var b=this;b!=a&&(ul(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.Nb.copy(a.Nb),O(this,"refreshToken",this.Nb.Ta),this.uf.copy(a.uf))};S.prototype.reload=function(){var a=this;return this.u(Xq(this).then(function(){return br(a).then(function(){return Uq(a)}).then(Wq)}))};
var br=function(a){return a.getIdToken().then(function(b){var c=a.isAnonymous;return Q(a.o,On,{idToken:b}).then(v(a.El,a)).then(function(){c||ar(a,"isAnonymous",!1);return b})})};S.prototype.getIdTokenResult=function(a){return this.getIdToken(a).then(function(b){return new Tl(b)})};
S.prototype.getIdToken=function(a){var b=this;return this.u(Xq(this).then(function(){return b.Nb.getToken(a)}).then(function(c){if(!c)throw new P("internal-error");c.accessToken!=b.Li&&(Iq(b,c.accessToken),b.rc());ar(b,"refreshToken",c.refreshToken);return c.accessToken}))};var Bq=function(a,b){b.idToken&&a.Li!=b.idToken&&(Eq(a.Nb,b),a.rc(),Iq(a,b.idToken),ar(a,"refreshToken",a.Nb.Ta))};S.prototype.rc=function(){this.dispatchEvent(new xq("tokenChanged"))};
S.prototype.El=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",{mm:a}))};
var cr=function(a){return(a=a.providerUserInfo)&&a.length?xb(a,function(b){return new Hq(b.rawId,b.providerId,b.email,b.displayName,b.photoUrl,b.phoneNumber)}):[]};S.prototype.reauthenticateAndRetrieveDataWithCredential=function(a){rl("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead.");return this.reauthenticateWithCredential(a)};
S.prototype.reauthenticateWithCredential=function(a){var b=this,c=null;return this.u(a.ie(this.o,this.uid).then(function(d){Bq(b,d);c=dr(b,d,"reauthenticate");b.Ob=null;return b.reload()}).then(function(){return c}),!0)};var er=function(a,b){return br(a).then(function(){if(zb(Yq(a),b))return Uq(a).then(function(){throw new P("provider-already-linked");})})};
S.prototype.linkAndRetrieveDataWithCredential=function(a){rl("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead.");return this.linkWithCredential(a)};S.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.ud(b.o,d)}).then(function(d){c=dr(b,d,"link");return fr(b,d)}).then(function(){return c}))};
S.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))}))};S.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=Hm(b);b=tp(b);return vl({user:a,credential:d,additionalUserInfo:b,operationType:c})},fr=function(a,b){Bq(a,b);return a.reload().then(function(){return a})};
k=S.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.ud(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()}))};
k.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))};
k.unlink=function(a){var b=this;return this.u(br(this).then(function(c){return zb(Yq(b),a)?yn(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[Cm.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,Ln,{idToken:b})}).then(function(){a.dispatchEvent(new xq("userDeleted"))})).then(function(){a.destroy()})};
k.Rh=function(a,b){return a=="linkViaPopup"&&(this.Kb||null)==b&&this.Jb||a=="reauthViaPopup"&&(this.Kb||null)==b&&this.Jb||a=="linkViaRedirect"&&(this.wc||null)==b||a=="reauthViaRedirect"&&(this.wc||null)==b?!0:!1};k.Sc=function(a,b,c,d){a!="linkViaPopup"&&a!="reauthViaPopup"||d!=(this.Kb||null)||(c&&this.Qc?this.Qc(c):b&&!c&&this.Jb&&this.Jb(b),this.La&&(this.La.cancel(),this.La=null),delete this.Jb,delete this.Qc)};
k.Wd=function(a,b){return a=="linkViaPopup"&&b==(this.Kb||null)?v(this.ii,this):a=="reauthViaPopup"&&b==(this.Kb||null)?v(this.ji,this):a=="linkViaRedirect"&&(this.wc||null)==b?v(this.ii,this):a=="reauthViaRedirect"&&(this.wc||null)==b?v(this.ji,this):null};k.We=function(){return Zk(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)};
k.reauthenticateWithPopup=function(a){return gr(this,"reauthViaPopup",a,function(){return G()},!0)};
var gr=function(a,b,c,d,e){if(!bl())return H(new P("operation-not-supported-in-this-environment"));if(a.Ob&&!e)return H(a.Ob);var f=Bl(c.providerId),g=a.We(),h=null;(!cl()||Sk())&&a.ya&&c.isOAuthProvider&&(h=go(a.ya,a.ha,a.ka,b,c,null,g,firebase.SDK_VERSION||null,null,null,a.tenantId,a.N));var l=Jk(h,f&&f.zd,f&&f.yd);d=d().then(function(){hr(a);if(!e)return a.getIdToken().then(function(){})}).then(function(){return a.W.ne(l,b,c,g,!!h,a.tenantId)}).then(function(){return new F(function(m,q){a.Sc(b,
null,new P("cancelled-popup-request"),a.Kb||null);a.Jb=m;a.Qc=q;a.Kb=g;a.La=a.W.ye(a,b,l,g)})}).then(function(m){l&&Ik(l);return m?vl(m):null}).l(function(m){l&&Ik(l);throw m;});return a.u(d,e)};S.prototype.linkWithRedirect=function(a){var b=this;return ir(this,"linkViaRedirect",a,function(){return er(b,a.providerId)},!1)};S.prototype.reauthenticateWithRedirect=function(a){return ir(this,"reauthViaRedirect",a,function(){return G()},!0)};
var ir=function(a,b,c,d,e){if(!bl())return H(new P("operation-not-supported-in-this-environment"));if(a.Ob&&!e)return H(a.Ob);var f=null,g=a.We();d=d().then(function(){hr(a);if(!e)return a.getIdToken().then(function(){})}).then(function(){a.wc=g;return Uq(a)}).then(function(h){a.xc&&(h=a.xc,h=h.O.set(jr,a.T(),h.V));return h}).then(function(){return a.W.oe(b,c,g,a.tenantId)}).l(function(h){f=h;if(a.xc)return kr(a.xc);throw f;}).then(function(){if(f)throw f;});return a.u(d,e)},hr=function(a){if(!a.W||
!a.me){if(a.W&&!a.me)throw new P("internal-error");throw new P("auth-domain-config-required");}};k=S.prototype;k.ii=function(a,b,c,d){var e=this;this.La&&(this.La.cancel(),this.La=null);var f=null;c=this.getIdToken().then(function(g){return Zl(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)};
k.ji=function(a,b,c,d){var e=this;this.La&&(this.La.cancel(),this.La=null);var f=null,g=G().then(function(){return Wl($l(e.o,{requestUri:a,sessionId:b,postBody:d,tenantId:c}),e.uid)}).then(function(h){f=dr(e,h,"reauthenticate");Bq(e,h);e.Ob=null;return e.reload()}).then(function(){return f});return this.u(g,!0)};
k.sendEmailVerification=function(a){var b=this,c=null;return this.u(this.getIdToken().then(function(d){c=d;return typeof a==="undefined"||Hb(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(){}))};
k.verifyBeforeUpdateEmail=function(a,b){var c=this,d=null;return this.u(this.getIdToken().then(function(e){d=e;return typeof b==="undefined"||Hb(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.Ka.length;a++)this.Ka[a].cancel("app-deleted");Nq(this,null);Oq(this,null);Pq(this,null);this.Ka=[];this.jd=!0;Sq(this);O(this,"refreshToken",null);this.W&&this.W.unsubscribe(this)};
k.u=function(a,b){var c=this,d=lr(this,a,b);this.Ka.push(d);d.Ac(function(){Ab(c.Ka,d)});return d.l(function(e){var f=null;e&&e.code==="auth/multi-factor-auth-required"&&(f=rq(e.T(),Qq(c),v(c.Eg,c)));throw f||e;})};k.Eg=function(a){var b=null,c=this;a=Wl(G(a),c.uid).then(function(d){b=dr(c,d,"reauthenticate");Bq(c,d);c.Ob=null;return c.reload()}).then(function(){return b});return this.u(a,!0)};
var lr=function(a,b,c){return a.Ob&&!c?(b.cancel(),H(a.Ob)):b.l(function(d){!d||d.code!="auth/user-disabled"&&d.code!="auth/user-token-expired"||(a.Ob||a.dispatchEvent(new xq("userInvalidated")),a.Ob=d);throw d;})};S.prototype.toJSON=function(){return this.T()};
S.prototype.T=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.ha,appName:this.ka,authDomain:this.ya,stsTokenManager:this.Nb.T(),redirectEventId:this.wc||null};this.metadata&&Kb(a,this.metadata.T());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]);
d.call(c,e)});Kb(a,this.uf.T());return a};
var 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 S(b,c,a);a.providerData&&z(a.providerData,function(f){f&&$q(e,vl(f))});a.redirectEventId&&(e.wc=a.redirectEventId);
return e},nr=function(a,b,c,d){var e=new S(a,b);c&&(e.xc=c);d&&Mq(e,d);return e.reload().then(function(){return e})},or=function(a,b,c,d){b=b||{apiKey:a.ha,authDomain:a.ya,appName:a.ka};var e=a.Nb,f={};f.idToken=e.Wa&&e.Wa.toString();f.refreshToken=e.Ta;b=new S(b,f);c&&(b.xc=c);d&&Mq(b,d);b.copy(a);return b};O(S.prototype,"providerId","firebase");var pr=function(a){this.V=a;this.O=yp()},kr=function(a){return a.O.remove(jr,a.V)},qr=function(a,b){return a.O.get(jr,a.V).then(function(c){c&&b&&(c.authDomain=b);return mr(c||{})})},jr={name:"redirectUser",ua:"session"};var sr=function(a){this.V=a;this.O=yp();this.Xa=null;this.Ug=this.Kg();this.O.addListener(rr("local"),this.V,v(this.fm,this))};sr.prototype.fm=function(){var a=this,b=rr("local");tr(this,function(){return G().then(function(){return a.Xa&&a.Xa.ua!="local"?a.O.get(b,a.V):null}).then(function(c){if(c)return ur(a,"local").then(function(){a.Xa=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.V));c.push(a.O.remove(vr,a.V));return bg(c)};
sr.prototype.Kg=function(){var a=this,b=rr("local"),c=rr("session"),d=rr("none");return Ap(this.O,b,this.V).then(function(){return a.O.get(c,a.V)}).then(function(e){return e?c:a.O.get(d,a.V).then(function(f){return f?d:a.O.get(b,a.V).then(function(g){return g?b:a.O.get(vr,a.V).then(function(h){return h?rr(h):b})})})}).then(function(e){a.Xa=e;return ur(a,e.ua)}).l(function(){a.Xa||(a.Xa=b)})};var rr=function(a){return{name:"authUser",ua:a}};
sr.prototype.setPersistence=function(a){var b=null,c=this;vp(a);return tr(this,function(){return a!=c.Xa.ua?c.O.get(c.Xa,c.V).then(function(d){b=d;return ur(c,a)}).then(function(){c.Xa=rr(a);if(b)return c.O.set(c.Xa,b,c.V)}):G()})};
var wr=function(a){return tr(a,function(){return a.O.set(vr,a.Xa.ua,a.V)})},xr=function(a,b){return tr(a,function(){return a.O.set(a.Xa,b.T(),a.V)})},yr=function(a){return tr(a,function(){return a.O.remove(a.Xa,a.V)})},zr=function(a,b,c){return tr(a,function(){return a.O.get(a.Xa,a.V).then(function(d){d&&b&&(d.authDomain=b);d&&c&&(d.emulatorConfig=c);return mr(d||{})})})},tr=function(a,b){a.Ug=a.Ug.then(b,b);return a.Ug},vr={name:"persistence",ua:"session"};var T=function(a){gj.call(this);this.wb=!1;this.Ej=new fp;O(this,"settings",this.Ej);O(this,"app",a);if(this.U().options&&this.U().options.apiKey)a=firebase.SDK_VERSION?Yk("JsCore",firebase.SDK_VERSION):null,this.o=new Rm(this.U().options&&this.U().options.apiKey,yk(zk),a);else throw new P("invalid-api-key");this.Ka=[];this.Dc=[];this.Ld=[];this.yl=firebase.INTERNAL.createSubscribe(v(this.al,this));this.Ge=void 0;this.Bl=firebase.INTERNAL.createSubscribe(v(this.bl,this));Ar(this,null);a=this.U().options.apiKey;
var b=this.U().name;this.Pb=new sr(a+":"+b);a=this.U().options.apiKey;b=this.U().name;this.Rc=new pr(a+":"+b);this.Je=this.u(Br(this));this.Lb=this.u(Cr(this));this.nf=!1;this.Cg=v(this.hm,this);this.Rj=v(this.oc,this);this.Md=v(this.Fg,this);this.Pj=v(this.Tk,this);this.Qj=v(this.Uk,this);this.W=null;Dr(this);this.INTERNAL={};this.INTERNAL["delete"]=v(this.delete,this);this.INTERNAL.logFramework=v(this.ql,this);this.Hc=0;Er(this);this.Da=[];this.N=null};p(T,gj);
T.prototype.setPersistence=function(a){a=this.Pb.setPersistence(a);return this.u(a)};T.prototype.Gd=function(a){this.Gb===a||this.wb||(this.Gb=a,Tm(this.o,this.Gb),this.dispatchEvent(new Fr(this.Gb)))};T.prototype.useDeviceLanguage=function(){var a=r.navigator;this.Gd(a?a.languages&&a.languages[0]||a.language||a.userLanguage||null:null)};
T.prototype.useEmulator=function(a,b){if(!this.N){if(this.W)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.Ej.Yf=!0;Vm(this.o,this.N);this.dispatchEvent(new Hr(this.N))}};
var 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&&Ok().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=
"#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.ql=function(a){this.Da.push(a);Wm(this.o,firebase.SDK_VERSION?Yk("JsCore",firebase.SDK_VERSION,this.Da):null);this.dispatchEvent(new Ir(this.Da))};T.prototype.yh=function(a){this.ma===a||this.wb||(this.ma=a,this.o.ma=this.ma)};
var Er=function(a){Object.defineProperty(a,"lc",{get:function(){return this.Gb},set:function(b){this.Gd(b)},enumerable:!1});a.Gb=null;Object.defineProperty(a,"ti",{get:function(){return this.ma},set:function(b){this.yh(b)},enumerable:!1});a.ma=null;Object.defineProperty(a,"emulatorConfig",{get:function(){if(this.N){var b=M(this.N.url);b=vl({protocol:b.Va,host:b.Ga,port:b.Tb,options:vl({disableWarnings:this.N.disableWarnings})})}else b=null;return b},enumerable:!1})};
T.prototype.toJSON=function(){return{apiKey:this.U().options.apiKey,authDomain:this.U().options.authDomain,appName:this.U().name,currentUser:U(this)&&U(this).T()}};
var Jr=function(a){return a.xk||H(new P("auth-domain-config-required"))},Dr=function(a){var b=a.U().options.authDomain,c=a.U().options.apiKey;b&&bl()&&(a.xk=a.Je.then(function(){if(!a.wb){a.W=jq(b,c,a.U().name,a.N);a.W.subscribe(a);U(a)&&Vq(U(a));if(a.yc){Vq(a.yc);var d=a.yc;d.Gd(a.Gb);Nq(d,a);d=a.yc;Mq(d,a.Da);Pq(d,a);d=a.yc;Lq(d,a.N);Oq(d,a);a.yc=null}return a.W}}))};k=T.prototype;
k.Rh=function(a,b){switch(a){case "unknown":case "signInViaRedirect":return!0;case "signInViaPopup":return this.Kb==b&&!!this.Jb;default:return!1}};k.Sc=function(a,b,c,d){a=="signInViaPopup"&&this.Kb==d&&(c&&this.Qc?this.Qc(c):b&&!c&&this.Jb&&this.Jb(b),this.La&&(this.La.cancel(),this.La=null),delete this.Jb,delete this.Qc)};k.Wd=function(a,b){return a=="signInViaRedirect"||a=="signInViaPopup"&&this.Kb==b&&this.Jb?v(this.Bk,this):null};
k.Bk=function(a,b,c,d){var e=this,f={requestUri:a,postBody:d,sessionId:b,tenantId:c};this.La&&(this.La.cancel(),this.La=null);return e.Je.then(function(){return Kr(e,Yl(e.o,f))})};k.We=function(){return Zk()};
k.signInWithPopup=function(a){if(!bl())return H(new P("operation-not-supported-in-this-environment"));var b=this,c=Bl(a.providerId),d=this.We(),e=null;(!cl()||Sk())&&this.U().options.authDomain&&a.isOAuthProvider&&(e=go(this.U().options.authDomain,this.U().options.apiKey,this.U().name,"signInViaPopup",a,null,d,firebase.SDK_VERSION||null,null,null,this.ma,this.N));var f=Jk(e,c&&c.zd,c&&c.yd);c=Jr(this).then(function(g){return g.ne(f,"signInViaPopup",a,d,!!e,b.ma)}).then(function(){return new F(function(g,
h){b.Sc("signInViaPopup",null,new P("cancelled-popup-request"),b.Kb);b.Jb=g;b.Qc=h;b.Kb=d;b.La=b.W.ye(b,"signInViaPopup",f,d)})}).then(function(g){f&&Ik(f);return g?vl(g):null}).l(function(g){f&&Ik(f);throw g;});return this.u(c)};k.signInWithRedirect=function(a){if(!bl())return H(new P("operation-not-supported-in-this-environment"));var b=this,c=Jr(this).then(function(){return wr(b.Pb)}).then(function(){return b.W.oe("signInViaRedirect",a,void 0,b.ma)});return this.u(c)};
var Lr=function(a){if(!bl())return H(new P("operation-not-supported-in-this-environment"));var b=Jr(a).then(function(){return a.W.getRedirectResult()}).then(function(c){return c?vl(c):null});return a.u(b)};T.prototype.getRedirectResult=function(){var a=this;return Lr(this).then(function(b){a.W&&a.W.ad();return b}).l(function(b){a.W&&a.W.ad();throw b;})};
T.prototype.updateCurrentUser=function(a){if(!a)return H(new P("null-user"));if(this.ma!=a.tenantId)return H(new P("tenant-id-mismatch"));var b=this,c={};c.apiKey=this.U().options.apiKey;c.authDomain=this.U().options.authDomain;c.appName=this.U().name;var d=or(a,c,b.Rc,Db(b.Da));return this.u(this.Lb.then(function(){if(b.U().options.apiKey!=a.ha)return d.reload()}).then(function(){if(U(b)&&a.uid==U(b).uid)return U(b).copy(a),b.oc(a);Ar(b,d);Vq(d);return b.oc(d)}).then(function(){b.rc()}))};
var Mr=function(a,b){var c={};c.apiKey=a.U().options.apiKey;c.authDomain=a.U().options.authDomain;c.appName=a.U().name;a.N&&(c.emulatorConfig=a.N);return a.Je.then(function(){return nr(c,b,a.Rc,Db(a.Da))}).then(function(d){if(U(a)&&d.uid==U(a).uid)return U(a).copy(d),a.oc(d);Ar(a,d);Vq(d);return a.oc(d)}).then(function(){a.rc()})},Ar=function(a,b){U(a)&&(Tq(U(a),a.Rj),dj(U(a),"tokenChanged",a.Md),dj(U(a),"userDeleted",a.Pj),dj(U(a),"userInvalidated",a.Qj),Sq(U(a)));b&&(b.Nf.push(a.Rj),Wi(b,"tokenChanged",
a.Md),Wi(b,"userDeleted",a.Pj),Wi(b,"userInvalidated",a.Qj),a.Hc>0&&Rq(b));O(a,"currentUser",b);b&&(b.Gd(a.Gb),Nq(b,a),Mq(b,a.Da),Pq(b,a),Lq(b,a.N),Oq(b,a))};T.prototype.signOut=function(){var a=this,b=this.Lb.then(function(){a.W&&a.W.ad();if(!U(a))return G();Ar(a,null);return yr(a.Pb).then(function(){a.rc()})});return this.u(b)};
var Nr=function(a){var b=a.U().options.authDomain;b=qr(a.Rc,b).then(function(c){if(a.yc=c)c.xc=a.Rc;return kr(a.Rc)});return a.u(b)},Br=function(a){var b=a.U().options.authDomain,c=Nr(a).then(function(){return zr(a.Pb,b,a.N)}).then(function(d){return d?(d.xc=a.Rc,a.yc&&(a.yc.wc||null)==(d.wc||null)?d:d.reload().then(function(){return xr(a.Pb,d).then(function(){return d})}).l(function(e){return e.code=="auth/network-request-failed"?d:yr(a.Pb)})):null}).then(function(d){Ar(a,d||null)});return a.u(c)},
Cr=function(a){return a.Je.then(function(){return Lr(a)}).l(function(){}).then(function(){if(!a.wb)return a.Cg()}).l(function(){}).then(function(){if(!a.wb){a.nf=!0;var b=a.Pb;b.O.addListener(rr("local"),b.V,a.Cg)}})};k=T.prototype;
k.hm=function(){var a=this,b=this.U().options.authDomain;return zr(this.Pb,b).then(function(c){if(!a.wb){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.xc=a.Rc),a.W&&a.W.subscribe(a),a.rc()}})};k.oc=function(a){return xr(this.Pb,a)};k.Fg=function(){this.rc();this.oc(U(this))};k.Tk=function(){this.signOut()};k.Uk=function(){this.signOut()};
var Kr=function(a,b){var c=null,d=null;return a.u(b.then(function(e){c=Hm(e);d=tp(e);return Mr(a,e)},function(e){var f=null;e&&e.code==="auth/multi-factor-auth-required"&&(f=rq(e.T(),a,v(a.Eg,a)));throw f||e;}).then(function(){return vl({user:U(a),credential:c,additionalUserInfo:d,operationType:"signIn"})}))};k=T.prototype;k.Eg=function(a){var b=this;return this.Lb.then(function(){return Kr(b,G(a))})};k.al=function(a){var b=this;this.addAuthTokenListener(function(){a.next(U(b))})};
k.bl=function(a){var b=this;Or(this,function(){a.next(U(b))})};k.onIdTokenChanged=function(a,b,c){var d=this;this.nf&&firebase.Promise.resolve().then(function(){typeof a==="function"?a(U(d)):typeof a.next==="function"&&a.next(U(d))});return this.yl(a,b,c)};k.onAuthStateChanged=function(a,b,c){var d=this;this.nf&&firebase.Promise.resolve().then(function(){d.Ge=d.getUid();typeof a==="function"?a(U(d)):typeof a.next==="function"&&a.next(U(d))});return this.Bl(a,b,c)};
k.Gk=function(a){var b=this,c=this.Lb.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.Lb.then(function(){return Kr(b,Q(b.o,Qn,{token:a}))}).then(function(c){var d=c.user;ar(d,"isAnonymous",!1);b.oc(d);return c})};k.signInWithEmailAndPassword=function(a,b){var c=this;return this.Lb.then(function(){return Kr(c,Q(c.o,rm,{email:a,password:b}))})};
k.createUserWithEmailAndPassword=function(a,b){var c=this;return this.Lb.then(function(){return Kr(c,Q(c.o,Kn,{email:a,password:b}))})};k.signInWithCredential=function(a){var b=this;return this.Lb.then(function(){return Kr(b,a.Jc(b.o))})};k.signInAndRetrieveDataWithCredential=function(a){rl("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead.");return this.signInWithCredential(a)};
k.signInAnonymously=function(){var a=this;return this.Lb.then(function(){var b=U(a);if(b&&b.isAnonymous){var c=vl({providerId:null,isNewUser:!1});return vl({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.oc(e);return d})})};k.U=function(){return this.app};var U=function(a){return a.currentUser};T.prototype.getUid=function(){return U(this)&&U(this).uid||null};
var Pr=function(a){return U(a)&&U(a)._lat||null};k=T.prototype;k.rc=function(){if(this.nf){for(var a=0;a<this.Dc.length;a++)if(this.Dc[a])this.Dc[a](Pr(this));if(this.Ge!==this.getUid()&&this.Ld.length)for(this.Ge=this.getUid(),a=0;a<this.Ld.length;a++)if(this.Ld[a])this.Ld[a](Pr(this))}};k.ak=function(a){this.addAuthTokenListener(a);this.Hc++;this.Hc>0&&U(this)&&Rq(U(this))};k.Jl=function(a){var b=this;z(this.Dc,function(c){c==a&&b.Hc--});this.Hc<0&&(this.Hc=0);this.Hc==0&&U(this)&&Sq(U(this));this.removeAuthTokenListener(a)};
k.addAuthTokenListener=function(a){var b=this;this.Dc.push(a);this.u(this.Lb.then(function(){b.wb||zb(b.Dc,a)&&a(Pr(b))}))};k.removeAuthTokenListener=function(a){Cb(this.Dc,function(b){return b==a})};var Or=function(a,b){a.Ld.push(b);a.u(a.Lb.then(function(){!a.wb&&zb(a.Ld,b)&&a.Ge!==a.getUid()&&(a.Ge=a.getUid(),b(Pr(a)))}))};k=T.prototype;
k.delete=function(){this.wb=!0;for(var a=0;a<this.Ka.length;a++)this.Ka[a].cancel("app-deleted");this.Ka=[];this.Pb&&(a=this.Pb,a.O.removeListener(rr("local"),a.V,this.Cg));this.W&&(this.W.unsubscribe(this),this.W.ad());return firebase.Promise.resolve()};k.u=function(a){var b=this;this.Ka.push(a);a.Ac(function(){Ab(b.Ka,a)});return a};k.fetchSignInMethodsForEmail=function(a){return this.u(fn(this.o,a))};k.isSignInWithEmailLink=function(a){return!!vm(a)};
k.sendSignInLinkToEmail=function(a,b){var c=this;return this.u(G().then(function(){var d=new gp(b);if(!d.Sh)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(){}))};
k.checkActionCode=function(a){return this.u(this.o.checkActionCode(a).then(function(b){return new Kl(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"||Hb(b)?{}:hp(new gp(b))}).then(function(d){return c.o.sendPasswordResetEmail(a,d)}).then(function(){}))};
k.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||Ck();var d=wm(a,b),e=vm(b);if(!e)throw new P("argument-error","Invalid email link!");if(e.tenantId!==c.ma)throw new P("tenant-id-mismatch");return c.signInWithCredential(d)}))};var Fr=function(a){Ji.call(this,"languageCodeChanged");this.languageCode=a};p(Fr,Ji);
var Hr=function(a){Ji.call(this,"emulatorConfigChanged");this.emulatorConfig=a};p(Hr,Ji);var Ir=function(a){Ji.call(this,"frameworkChanged");this.Ek=a};p(Ir,Ji);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].Ca(c[e])&&!f){c=e;b=b[e];if(c<0||c>=Qr.length)throw new P("internal-error",
"Argument validator received an unsupported number of arguments.");c=Qr[c];d=(d?"":c+" argument ")+(b.name?'"'+b.name+'" ':"")+"must be "+b.Fa+".";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||"",Fa:"a valid string",optional:!!b,Ca:function(c){return typeof c==="string"}}},Sr=function(a,b){return{name:a||"",Fa:"a boolean",optional:!!b,Ca:function(c){return typeof c==="boolean"}}},
W=function(a,b){return{name:a||"",Fa:"a valid object",optional:!!b,Ca:u}},Tr=function(a,b){return{name:a||"",Fa:"a function",optional:!!b,Ca:Tf}},Ur=function(a,b){return{name:a||"",Fa:"null",optional:!!b,Ca:function(c){return c===null}}},Vr=function(){return{name:"",Fa:"an HTML element",optional:!1,Ca:function(a){return!!(a&&a instanceof Element)}}},Wr=function(){return{name:"auth",Fa:"an instance of Firebase Auth",optional:!0,Ca:function(a){return!!(a&&a instanceof T)}}},Xr=function(){return{name:"app",
Fa:"an instance of Firebase App",optional:!0,Ca:function(a){return!!(a&&a instanceof firebase.app.App)}}},Yr=function(a){return{name:a?a+"Credential":"credential",Fa:a?"a valid "+a+" credential":"a valid credential",optional:!1,Ca:function(b){if(!b)return!1;var c=!a||b.providerId===a;return!(!b.Jc||!c)}}},Zr=function(){return{name:"multiFactorAssertion",Fa:"a valid multiFactorAssertion",optional:!1,Ca:function(a){return a?!!a.process:!1}}},$r=function(){return{name:"authProvider",Fa:"a valid Auth provider",
optional:!1,Ca: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.Xd==="function"},bs=function(a){return u(a)&&typeof a.uid==="string"},cs=function(){return{name:"applicationVerifier",Fa:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,Ca:function(a){return!(!a||typeof a.type!=="string"||typeof a.verify!=="function")}}},X=function(a,b,c,d){return{name:c||"",
Fa:a.Fa+" or "+b.Fa,optional:!!d,Ca:function(e){return a.Ca(e)||b.Ca(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:za(function(e){return this[e]},c),set:za(function(e,f,g,h){Rr(e,[g],[h],!0);this[f]=h},d,c,b[c].Zf),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]=
b.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")]},fetchSignInMethodsForEmail:{name:"fetchSignInMethodsForEmail",j:[V("email")]},getRedirectResult:{name:"getRedirectResult",j:[]},isSignInWithEmailLink:{name:"isSignInWithEmailLink",j:[V("emailLink")]},
onAuthStateChanged:{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",
j:[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",
j:[V("phoneNumber"),cs()]},signInWithPopup:{name:"signInWithPopup",j:[$r()]},signInWithRedirect:{name:"signInWithRedirect",j:[$r()]},updateCurrentUser:{name:"updateCurrentUser",j:[X(function(a){return{name:"user",Fa:"an instance of Firebase User",optional:!!a,Ca:function(b){return!!(b&&b instanceof S)}}}(),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)]},
verifyPasswordResetCode:{name:"verifyPasswordResetCode",j:[V("code")]}});es(T.prototype,{lc:{name:"languageCode",Zf:X(V(),Ur(),"languageCode")},ti:{name:"tenantId",Zf:X(V(),Ur(),"tenantId")}});T.Persistence=up;T.Persistence.LOCAL="local";T.Persistence.SESSION="session";T.Persistence.NONE="none";
Y(S.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",
j:[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,
!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")]},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"}});
Y(ho.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}});Y(F.prototype,{Ac:{name:"finally"},l:{name:"catch"},then:{name:"then"}});es(fp.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",Zf:Sr("appVerificationDisabledForTesting")}});Y(ip.prototype,{confirm:{name:"confirm",j:[V("verificationCode")]}});
Z(Vl,"fromJSON",function(a){a=typeof a==="string"?JSON.parse(a):a;for(var b,c=[cm,um,Bm,am],d=0;d<c.length;d++)if(b=c[d](a))return b;return null},[X(V(),W(),"json")]);Z(om,"credential",function(a,b){return new pm(a,b)},[V("email"),V("password")]);Y(pm.prototype,{T:{name:"toJSON",j:[V(null,!0)]}});Y(gm.prototype,{addScope:{name:"addScope",j:[V("scope")]},setCustomParameters:{name:"setCustomParameters",j:[W("customOAuthParameters")]}});Z(gm,"credential",hm,[X(V(),W(),"token")]);
Z(om,"credentialWithLink",wm,[V("email"),V("emailLink")]);Y(im.prototype,{addScope:{name:"addScope",j:[V("scope")]},setCustomParameters:{name:"setCustomParameters",j:[W("customOAuthParameters")]}});Z(im,"credential",jm,[X(V(),W(),"token")]);Y(km.prototype,{addScope:{name:"addScope",j:[V("scope")]},setCustomParameters:{name:"setCustomParameters",j:[W("customOAuthParameters")]}});Z(km,"credential",lm,[X(V(),X(W(),Ur()),"idToken"),X(V(),Ur(),"accessToken",!0)]);
Y(mm.prototype,{setCustomParameters:{name:"setCustomParameters",j:[W("customOAuthParameters")]}});Z(mm,"credential",nm,[X(V(),W(),"token"),V("secret",!0)]);Y(fm.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")]}});Y(bm.prototype,{T:{name:"toJSON",j:[V(null,!0)]}});Y(Xl.prototype,{T:{name:"toJSON",j:[V(null,!0)]}});
Z(Cm,"credential",Gm,[V("verificationId"),V("verificationCode")]);
Y(Cm.prototype,{verifyPhoneNumber:{name:"verifyPhoneNumber",j:[X(V(),function(a,b){return{name:a||"phoneInfoOptions",Fa:"valid phone info options",optional:!!b,Ca: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"),
cs()]}});Y(xm.prototype,{T:{name:"toJSON",j:[V(null,!0)]}});Y(P.prototype,{toJSON:{name:"toJSON",j:[V(null,!0)]}});Y(Jm.prototype,{toJSON:{name:"toJSON",j:[V(null,!0)]}});Y(Pl.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()]}});
Y(zq.prototype,{getSession:{name:"getSession",j:[]},enroll:{name:"enroll",j:[Zr(),V("displayName",!0)]},unenroll:{name:"unenroll",j:[X({name:"multiFactorInfo",Fa:"a valid multiFactorInfo",optional:!1,Ca:bs},V(),"multiFactorInfoIdentifier")]}});Y(xo.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}});Z(Ml,"parseLink",Nl,[V("link")]);Z(gs,"assertion",function(a){return new wq(a)},[Yr("phone")]);
(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:Vl,Error:P};Z(a,"EmailAuthProvider",om,[]);Z(a,"FacebookAuthProvider",gm,[]);Z(a,"GithubAuthProvider",im,[]);Z(a,
"GoogleAuthProvider",km,[]);Z(a,"TwitterAuthProvider",mm,[]);Z(a,"OAuthProvider",fm,[V("providerId")]);Z(a,"SAMLAuthProvider",em,[V("providerId")]);Z(a,"PhoneAuthProvider",Cm,[Wr()]);Z(a,"RecaptchaVerifier",xo,[X(V(),Vr(),"recaptchaContainer"),W("recaptchaParameters",!0),Xr()]);Z(a,"ActionCodeURL",Ml,[]);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.Gk,b),addAuthTokenListener:v(b.ak,b),removeAuthTokenListener:v(b.Jl,
b)}});return b},a,function(b,c){if(b==="create")try{c.auth()}catch(d){}});firebase.INTERNAL.extendNamespace({User:S})}else throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");})();var hs=function(a){this.Vg=qg.getParentIframe();this.Ib=this.Vg.getOrigin();this.Hb=a;this.Eh=!1};hs.prototype.od=function(){return this.Ib};hs.prototype.start=function(){var a=this;return this.Hb(this.Ib).then(function(){a.Eh=!0}).l(function(b){throw b;})};hs.prototype.sendMessage=function(a){var b=this;if(this.Eh)return new F(function(c){b.Vg.send(a.type,a,c,tg)});throw new P("missing-iframe-start");};
hs.prototype.kh=function(a,b){if(this.Eh)this.Vg.register(a,b,tg);else throw new P("missing-iframe-start");};var is=function(a){this.zf=new hs(a)};is.prototype.od=function(){return this.zf.od()};is.prototype.start=function(){var a=this;return this.zf.start().then(function(){a.lh()})};var js=function(a,b){return a.zf.sendMessage({type:"authEvent",authEvent:b&&b.T()}).then(function(c){if(!c||!c.length||c[c.length-1].status!="ACK")throw new P("internal-error");})};is.prototype.lh=function(){this.zf.kh("webStorageSupport",function(){return G({status:"ACK",webStorageSupport:!0})})};var ks=function(a,b,c){var d=(rk(M(Ck()),"fw")||"").split(","),e=this;this.ha=a;this.ka=b;this.Ia=c||null;this.Da=d||[];this.Hd=new Dp(this.ha+":"+this.ka);this.vl=new Jp;this.o=new Rm(a,yk(this.Ia),Yk("Iframe","2.20.5",this.Da));this.qc=new is(function(f){return hn(e.o).then(function(g){if(!Mk(g,f))throw e.destroy(),new Pl(f);})});this.uc=Do(r);this.Ei=!1;this.uc.subscribe("getParentOrigin",function(f){if(f===r.window.location.origin)return G(e.qc.od());throw Error("Invalid origin");
});this.uc.subscribe("sendAuthEvent",function(f,g){var h=g.storageKey,l=null;try{l=Fl(g.authEvent)}catch(m){}if(f===r.window.location.origin&&h===e.ha+":"+e.ka&&l)return e.Ei?js(e.qc,l).then(function(){return!0}).l(function(){return!1}):e.vl.O.set(Ep,l.T(),h).then(function(){return!0}).l(function(){return!1});throw Error("Invalid origin or request");})};ks.prototype.od=function(){return this.qc.od()};
ks.prototype.start=function(){var a=this;return this.qc.start().then(function(){a.Ei=!0;a.cj=a.aj.bind(a);return ls(a).Ac(function(){a.Hd.Cc(a.cj);a.aj(!1)})})};ks.prototype.aj=function(a){var b=this,c=null;return Fp(this.Hd).then(function(d){if(c=d)return js(b.qc,d);if(a)return js(b.qc,new El("unknown",null,null,null,new P("no-auth-event")))}).then(function(){if(c)return Gp(b.Hd)}).l(function(){})};
var ls=function(a){var b=null;return Ip(a.Hd).then(function(c){if(b=c)return js(a.qc,c);c=$k()?"no-auth-event":"web-storage-unsupported";return js(a.qc,new El("unknown",null,null,null,new P(c)))}).then(function(){if(b){var c=a.Hd;return c.O.remove(Hp,c.V)}}).l(function(){})};ks.prototype.destroy=function(){this.jd=!0;this.Hd.Ed(this.cj);this.uc.unsubscribe("getParentOrigin");this.uc.unsubscribe("sendAuthEvent")};
var ms=null,ns=function(){var a=rk(M(Ck()),"apiKey"),b=rk(M(Ck()),"appName")||"";if(!a)throw new P("invalid-api-key");var c=rk(M(Ck()),"eid")||null;ms=new ks(a,b,c);ms.start().l(function(d){if(d&&d.code=="auth/unauthorized-domain")d=M(ms.od()),d=d.Va=="chrome-extension"?mc("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.",
d.Ga):mc("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.Ga),ll(d);else if(d&&d.message)ll(d.message);else throw d;})};t("fireauth.iframe.AuthRelay.initialize",function(){r.document.readyState=="complete"?ns():Vi(window,"load",function(){ns()})});}).call(this);
_text/javascript $ ( , 1 6 ; @ D I M R V Z ^ c h l p u z % &