!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],e):e((t=t||self).firebase)}(this,function(Wh){"use strict";try{(function(){Wh=Wh&&Wh.hasOwnProperty("default")?Wh.default:Wh,function(){var t,o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},a="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function c(t){var e,n,i="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return i?i.call(t):{next:(e=t,n=0,function(){return n>>0),r=0;function y(t,e,n){return t.call.apply(t.bind,arguments)}function w(e,n,t){if(!e)throw Error();if(2/g,J=/"/g,z=/'/g,Y=/\x00/g,$=/[\x00&<>"']/;function Z(t,e){return-1!=t.indexOf(e)}function Q(t,e){return t")&&(t=t.replace(X,">")),-1!=t.indexOf('"')&&(t=t.replace(J,""")),-1!=t.indexOf("'")&&(t=t.replace(z,"'")),-1!=t.indexOf("\0")&&(t=t.replace(Y,"�"))),t}function ft(t){l.setTimeout(function(){throw t},0)}function dt(t,e){st||function(){if(l.Promise&&l.Promise.resolve){var t=l.Promise.resolve(void 0);st=function(){t.then(mt)}}else st=function(){var t=mt;!g(l.setImmediate)||l.Window&&l.Window.prototype&&!nt("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(at||(at=function(){var t=l.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!nt("Presto")&&(t=function(){var t=document.createElement("IFRAME");t.style.display="none",t.src="",document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.write(""),t.close();var n="callImmediate"+Math.random(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=I(function(t){"*"!=i&&t.origin!=i||t.data!=n||this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,i)}}}),void 0===t||nt("Trident")||nt("MSIE"))return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(t){var e=document.createElement("SCRIPT");e.onreadystatechange=function(){e.onreadystatechange=null,e.parentNode.removeChild(e),e=null,t(),t=null},document.documentElement.appendChild(e)}:function(t){l.setTimeout(t,0)};var e=new t,n={},i=n;return e.port1.onmessage=function(){if(void 0!==n.next){var t=(n=n.next).yb;n.yb=null,t()}},function(t){i.next={yb:t},i=i.next,e.port2.postMessage(0)}}()),at(t)):l.setImmediate(t)}}(),pt||(st(),pt=!0),vt.add(t,e)}var pt=!1,vt=new C;function mt(){for(var t;n=e=void 0,n=null,(e=vt).a&&(n=e.a,e.a=e.a.next,e.a||(e.b=null),n.next=null),t=n;){try{t.a.call(t.b)}catch(t){ft(t)}P(R,t)}var e,n;pt=!1}function gt(t,e){if(this.a=bt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=s)try{var n=this;t.call(e,function(t){Pt(n,yt,t)},function(t){if(!(t instanceof jt))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(t){}Pt(n,wt,t)})}catch(t){Pt(this,wt,t)}}var bt=0,yt=2,wt=3;function It(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}It.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Tt=new _(function(){return new It},function(t){t.reset()});function kt(t,e,n){var i=Tt.get();return i.g=t,i.b=e,i.f=n,i}function Et(t){if(t instanceof gt)return t;var e=new gt(s);return Pt(e,yt,t),e}function St(n){return new gt(function(t,e){e(n)})}function At(t,e,n){Ct(t,e,n,null)||dt(T(e,t))}function Nt(n){return new gt(function(i){var r=n.length,o=[];if(r)for(var t=function(t,e,n){r--,o[t]=e?{Eb:!0,value:n}:{Eb:!1,reason:n},0==r&&i(o)},e=0;eparseFloat($t)){qt=String(Qt);break t}}qt=$t}var te,ee={};function ne(s){return t=s,e=function(){for(var t=0,e=B(String(qt)).split("."),n=B(String(s)).split("."),i=Math.max(e.length,n.length),r=0;0==t&&r>>0);function Ce(e){return g(e)?e:(e[Pe]||(e[Pe]=function(t){return e.handleEvent(t)}),e[Pe])}function Re(){Ut.call(this),this.m=new ve(this),(this.Qb=this).Va=null}function De(t,e,n,i,r){t.m.add(String(e),n,!1,i,r)}function Le(t,e,n,i,r){t.m.add(String(e),n,!0,i,r)}function xe(t,e,n,i){if(!(e=t.m.a[String(e)]))return!0;e=e.concat();for(var r=!0,o=0;o>4&15).toString(16)+(15&t).toString(16)}Be.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Qe(e,en,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.i)&&t.push(Qe(e,en,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&t.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(Qe(n,"/"==n.charAt(0)?rn:nn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.g)&&t.push("#",Qe(n,an)),t.join("")},Be.prototype.resolve=function(t){var e=new Be(this),n=!!t.f;n?Ge(e,t.f):n=!!t.i,n?e.i=t.i:n=!!t.b,n?e.b=t.b:n=null!=t.m;var i=t.c;if(n)We(e,t.m);else if(n=!!t.c){if("/"!=i.charAt(0))if(this.b&&!this.c)i="/"+i;else{var r=e.c.lastIndexOf("/");-1!=r&&(i=e.c.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(Z(r,"./")||Z(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a2*t.c&&Fe(t)))}function ln(t,e){return un(t),e=pn(t,e),qe(t.a.b,e)}function fn(t,e,n){hn(t,e),0"),Ln(""),Ln("
");var jn={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"};function Un(t,e,n){var i=arguments,r=document,o=String(i[0]),a=i[1];if(!vn&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',lt(a.name),'"'),a.type){o.push(' type="',lt(a.type),'"');var s={};ct(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=r.createElement(o),a&&(h(a)?o.className=a:v(a)?o.className=a.join(" "):Mn(o,a)),2'),s.document.write((a=t)instanceof Rn&&a.constructor===Rn&&a.b===Dn?a.a:(O("expected object of type SafeHtml, got '"+a+"' of type "+p(a)),"type_error:SafeHtml")),s.document.close())):(s=i.open(Nn(e).toString(),n,s))&&t.noopener&&(s.opener=null),s)try{s.focus()}catch(t){}return s}var $n=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Zn=/^[^@]+@[^@]+$/;function Qn(){var e=null;return new gt(function(t){"complete"==l.document.readyState?t():(e=function(){t()},Te(window,"load",e))}).s(function(t){throw ke(window,"load",e),t})}function ti(t){return t=t||hi(),!("file:"!==vi()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function ei(){var t=l.window;try{return!(!t||t==t.top)}catch(t){return!1}}function ni(){return void 0!==l.WorkerGlobalScope&&"function"==typeof l.importScripts}function ii(){return Wh.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":Wh.INTERNAL.hasOwnProperty("node")?"Node":ni()?"Worker":"Browser"}function ri(){var t=ii();return"ReactNative"===t||"Node"===t}var oi="Firefox",ai="Chrome";function si(t){var e=t.toLowerCase();return Z(e,"opera/")||Z(e,"opr/")||Z(e,"opios/")?"Opera":Z(e,"iemobile")?"IEMobile":Z(e,"msie")||Z(e,"trident/")?"IE":Z(e,"edge/")?"Edge":Z(e,"firefox/")?oi:Z(e,"silk/")?"Silk":Z(e,"blackberry")?"Blackberry":Z(e,"webos")?"Webos":!Z(e,"safari/")||Z(e,"chrome/")||Z(e,"crios/")||Z(e,"android")?!Z(e,"chrome/")&&!Z(e,"crios/")||Z(e,"edge/")?Z(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":ai:"Safari"}var ui={Sc:"FirebaseCore-web",Uc:"FirebaseUI-web"};function ci(t,e){e=e||[];var n,i=[],r={};for(n in ui)r[ui[n]]=!0;for(n=0;n>4),64!=a&&(t(o<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}(t,function(t){e+=String.fromCharCode(t)}),e}function ur(t){this.c=t.sub,this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function cr(t){return(t=hr(t))&&t.sub&&t.iss&&t.aud&&t.exp?new ur(t):null}function hr(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;n Auth section -> Sign in method tab.",t):"http"==i||"https"==i?n=ht("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",Bi.call(this,e,n)}function fo(t,e,n){Bi.call(this,t,n),(t=e||{}).Ab&&Ci(this,"email",t.Ab),t.$&&Ci(this,"phoneNumber",t.$),t.credential&&Ci(this,"credential",t.credential)}function po(t){if(t.code){var e=t.code||"";0==e.indexOf(Wi)&&(e=e.substring(Wi.length));var n={credential:ro(t)};if(t.email)n.Ab=t.email;else if(t.phoneNumber)n.$=t.phoneNumber;else if(!n.credential)return new Bi(e,t.message||void 0);return new fo(e,n,t.message)}return null}function vo(){}function mo(t){return t.c||(t.c=t.b())}function go(){}function bo(t){if(t.f||"undefined"!=typeof XMLHttpRequest||"undefined"==typeof ActiveXObject)return t.f;for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n=function t(e){return e.c?e.c:e.a?t(e.a):(O("Root logger has no level set."),null)}(this).value)for(g(e)&&(e=e()),t=new To(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var _o,Po={},Co=null;function Ro(t){var e;if(Co||(Co=new ko(""),(Po[""]=Co).c=No),!(e=Po[t])){e=new ko(t);var n=t.lastIndexOf("."),i=t.substr(n+1);(n=Ro(t.substr(0,n))).b||(n.b={}),(n.b[i]=e).a=n,Po[t]=e}return e}function Do(t,e){t&&t.log(Oo,e,void 0)}function Lo(t){this.f=t}function xo(t){Re.call(this),this.u=t,this.readyState=Mo,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.o="GET",this.g="",this.a=!1,this.h=Ro("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}E(Lo,vo),Lo.prototype.a=function(){return new xo(this.f)},Lo.prototype.b=(_o={},function(){return _o}),E(xo,Re);var Mo=0;function jo(t){t.c.read().then(t.cc.bind(t)).catch(t.Ma.bind(t))}function Uo(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,Vo(t)}function Vo(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function Ko(t){Re.call(this),this.headers=new Ke,this.D=t||null,this.c=!1,this.A=this.a=null,this.h=this.N=this.l="",this.f=this.I=this.i=this.G=!1,this.g=0,this.u=null,this.o=Fo,this.v=this.O=!1}(t=xo.prototype).open=function(t,e){if(this.readyState!=Mo)throw this.abort(),Error("Error reopening a connection");this.o=t,this.g=e,this.readyState=1,Vo(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.i,method:this.o,credentials:void 0,cache:void 0};t&&(e.body=t),this.u.fetch(new Request(this.g,e)).then(this.hc.bind(this),this.Ma.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Uo(this,!1)),this.readyState=Mo},t.hc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,Vo(this)),this.a&&(this.readyState=3,Vo(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.fc.bind(this),this.Ma.bind(this)):void 0!==l.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,jo(this)):t.text().then(this.gc.bind(this),this.Ma.bind(this)))))},t.cc=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?Uo(this,!0):Vo(this),3==this.readyState&&jo(this)}},t.gc=function(t){this.a&&(this.response=this.responseText=t,Uo(this,!0))},t.fc=function(t){this.a&&(this.response=t,Uo(this,!0))},t.Ma=function(t){var e=this.h;e&&e.log(Ao,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&Uo(this,!0)},t.setRequestHeader=function(t,e){this.i.append(t,e)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(Ao,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(Ao,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},E(Ko,Re);var Fo="";Ko.prototype.b=Ro("goog.net.XhrIo");var qo=/^https?$/i,Ho=["POST","PUT"];function Bo(e,t,n,i,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.N=n,e.G=!1,e.c=!0,e.a=e.D?e.D.a():co.a(),e.A=e.D?mo(e.D):mo(co),e.a.onreadystatechange=I(e.Jb,e);try{Do(e.b,Qo(e,"Opening Xhr")),e.I=!0,e.a.open(n,String(t),!0),e.I=!1}catch(t){return Do(e.b,Qo(e,"Error opening Xhr: "+t.message)),void Wo(e,t)}t=i||"";var o,a=new Ke(e.headers);r&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(m(t)||h(t))x(t,e,void 0);else for(var n=Ve(t),i=Ue(t),r=i.length,o=0;o>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,a=(0|n[e-7])+((i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[e]=o+a|0}i=0|t.a[0],r=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],c=0|t.a[4],h=0|t.a[5],l=0|t.a[6];for(o=0|t.a[7],e=0;e<64;e++){var f=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&s^r&s)|0;a=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&h^~c&l)+(0|mu[e])|0)+(0|n[e])|0)|0,o=l,l=h,h=c,c=u+a|0,u=s,s=r,r=i,i=a+f|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+r|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+c|0,t.a[5]=t.a[5]+h|0,t.a[6]=t.a[6]+l|0,t.a[7]=t.a[7]+o|0}function Au(t,e,n){void 0===n&&(n=e.length);var i=0,r=t.c;if(h(e))for(;i>r&255;return M(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}function Du(t,e){for(var n=0;nt.f&&(t.a=t.f),e)}function ac(t){this.f=t,this.b=this.a=null,this.c=0}function sc(t,e){var n=e[ya],i=e.refreshToken;e=uc(e.expiresIn),t.b=n,t.c=e,t.a=i}function uc(t){return k()+1e3*parseInt(t,10)}function cc(e,t){return(i=e.f,r=t,new gt(function(e,n){"refresh_token"==r.grant_type&&r.refresh_token||"authorization_code"==r.grant_type&&r.code?Aa(i,i.i+"?key="+encodeURIComponent(i.b),function(t){t?t.error?n(ms(t)):t.access_token&&t.refresh_token?e(t):n(new Bi("internal-error")):n(new Bi("network-request-failed"))},"POST",cn(r).toString(),i.f,i.m.get()):n(new Bi("internal-error"))})).then(function(t){return e.b=t.access_token,e.c=uc(t.expires_in),e.a=t.refresh_token,{accessToken:e.b,expirationTime:e.c,refreshToken:e.a}}).s(function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t});var i,r}function hc(t,e){this.a=t||null,this.b=e||null,Ri(this,{lastSignInTime:Si(e||null),creationTime:Si(t||null)})}function lc(t,e,n,i,r,o){Ri(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:e})}function fc(t,e){for(var n in ue.call(this,t),e)this[n]=e[n]}function dc(t,e,n){var i;this.G=[],this.l=t.apiKey,this.o=t.appName,this.u=t.authDomain||null,t=Wh.SDK_VERSION?ci(Wh.SDK_VERSION):null,this.c=new ga(this.l,dr(lr),t),this.h=new ac(this.c),wc(this,e[ya]),sc(this.h,e),Ci(this,"refreshToken",this.h.a),kc(this,n||{}),Re.call(this),this.I=!1,this.u&&di()&&(this.a=Ju(this.u,this.l,this.o)),this.N=[],this.i=null,this.A=(i=this,new rc(function(){return i.F(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var t=i.h.c-k()-3e5;return 0this.c-3e4?this.a?cc(this,{grant_type:"refresh_token",refresh_token:this.a}):Et(null):Et({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},hc.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},E(fc,ue),E(dc,Re),dc.prototype.pa=function(t){this.ka=t,Ea(this.c,t)},dc.prototype.ea=function(){return this.ka},dc.prototype.ya=function(){return q(this.O)},dc.prototype.Ha=function(){this.A.b&&(this.A.stop(),this.A.start())},Ci(dc.prototype,"providerId","firebase"),(t=dc.prototype).reload=function(){var t=this;return Vc(this,Sc(this).then(function(){return Cc(t).then(function(){return Ic(t)}).then(Ec)}))},t.bc=function(t){return this.F(t).then(function(t){return new ic(t)})},t.F=function(t){var e=this;return Vc(this,Sc(this).then(function(){return e.h.getToken(t)}).then(function(t){if(!t)throw new Bi("internal-error");return t.accessToken!=e.ra&&(wc(e,t.accessToken),e.dispatchEvent(new fc("tokenChanged"))),_c(e,"refreshToken",t.refreshToken),t.accessToken}))},t.xc=function(t){if(!(t=t.users)||!t.length)throw new Bi("internal-error");kc(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt});for(var e=(i=(i=t).providerUserInfo)&&i.length?M(i,function(t){return new lc(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[],n=0;n=Dh.length)throw new Bi("internal-error","Argument validator received an unsupported number of arguments.");n=Dh[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}i=null}}if(i)throw new Bi("argument-error",t+" failed: "+i)}(t=kh.prototype).za=function(){var e=this;return this.f?this.f:this.f=_h(this,Et().then(function(){if(pi()&&!ni())return Qn();throw new Bi("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return e.o.g(e.v())}).then(function(t){return e.g=t,ps(e.u,ts,{})}).then(function(t){e.a[Ah]=t.recaptchaSiteKey}).s(function(t){throw e.f=null,t}))},t.render=function(){Ph(this);var n=this;return _h(this,this.za().then(function(){if(null===n.c){var t=n.l;if(!n.i){var e=xn(t);t=Un("DIV"),e.appendChild(t)}n.c=n.g.render(t,n.a)}return n.c}))},t.verify=function(){Ph(this);var r=this;return _h(this,this.render().then(function(e){return new gt(function(n){var t=r.g.getResponse(e);if(t)n(t);else{var i=function(t){var e;t&&(e=i,K(r.m,function(t){return t==e}),n(t))};r.m.push(i),r.i&&r.g.execute(r.c)}})}))},t.reset=function(){Ph(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Ph(this),this.D=!0,this.o.c();for(var t=0;t