!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(Wl){"use strict";try{(function(){Wl=Wl&&Object.prototype.hasOwnProperty.call(Wl,"default")?Wl.default:Wl,function(){var t,o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};var u=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,t];for(var e=0;e>>0),r=0;function s(t,e,n){return t.call.apply(t.bind,arguments)}function g(e,n,t){if(!e)throw Error();if(2/g,Z=/"/g,Q=/'/g,tt=/\x00/g,et=/[\x00&<>"']/;function nt(t,e){return-1!=t.indexOf(e)}function it(t,e){return t"}else o=void 0===t?"undefined":null===t?"null":typeof t;C("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function dt(t,e){this.a=t===mt&&e||"",this.b=vt}function pt(t){return t instanceof dt&&t.constructor===dt&&t.b===vt?t.a:(C("expected object of type Const, got '"+t+"'"),"type_error:Const")}dt.prototype.ra=!0,dt.prototype.qa=function(){return this.a},dt.prototype.toString=function(){return"Const{"+this.a+"}"};var vt={},mt={},gt=new dt(mt,"");function bt(t,e){this.a=t===At&&e||"",this.b=Et}function yt(t){return t instanceof bt&&t.constructor===bt&&t.b===Et?t.a:(C("expected object of type TrustedResourceUrl, got '"+t+"' of type "+n(t)),"type_error:TrustedResourceUrl")}function wt(t,n){var i=pt(t);if(!Tt.test(i))throw Error("Invalid TrustedResourceUrl format: "+i);return t=i.replace(It,function(t,e){if(!Object.prototype.hasOwnProperty.call(n,e))throw Error('Found marker, "'+e+'", in format string, "'+i+'", but no valid label mapping found in args: '+JSON.stringify(n));return(t=n[e])instanceof dt?pt(t):encodeURIComponent(String(t))}),new bt(At,t)}bt.prototype.ra=!0,bt.prototype.qa=function(){return this.a.toString()},bt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var It=/%{(\w+)}/g,Tt=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Et={},At={};function kt(t,e){this.a=t===Rt&&e||"",this.b=Ot}function St(t){return t instanceof kt&&t.constructor===kt&&t.b===Ot?t.a:(C("expected object of type SafeUrl, got '"+t+"' of type "+n(t)),"type_error:SafeUrl")}kt.prototype.ra=!0,kt.prototype.qa=function(){return this.a.toString()},kt.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Nt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function _t(t){return t instanceof kt?t:(t="object"==typeof t&&t.ra?t.qa():String(t),Nt.test(t)||(t="about:invalid#zClosurez"),new kt(Rt,t))}var Ot={},Rt={};function Ct(){this.a="",this.b=Pt}function Dt(t){return t instanceof Ct&&t.constructor===Ct&&t.b===Pt?t.a:(C("expected object of type SafeHtml, got '"+t+"' of type "+n(t)),"type_error:SafeHtml")}Ct.prototype.ra=!0,Ct.prototype.qa=function(){return this.a.toString()},Ct.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Pt={};function Lt(t){var e=new Ct;return e.a=t,e}Lt("");var Mt=Lt("");function xt(t,e){for(var n=t.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1")&&(t=t.replace($,">")),-1!=t.indexOf('"')&&(t=t.replace(Z,""")),-1!=t.indexOf("'")&&(t=t.replace(Q,"'")),-1!=t.indexOf("\0")&&(t=t.replace(tt,"�"))),t}function Ut(t){return Ut[" "](t),t}Lt("
"),Ut[" "]=a;var Vt,Ft,qt=at("Opera"),Ht=at("Trident")||at("MSIE"),Kt=at("Edge"),Gt=Kt||Ht,Bt=at("Gecko")&&!(nt(X.toLowerCase(),"webkit")&&!at("Edge"))&&!(at("Trident")||at("MSIE"))&&!at("Edge"),Wt=nt(X.toLowerCase(),"webkit")&&!at("Edge");function Xt(){var t=l.document;return t?t.documentMode:void 0}t:{var Jt="",Yt=(Ft=X,Bt?/rv:([^\);]+)(\)|;)/.exec(Ft):Kt?/Edge\/([\d\.]+)/.exec(Ft):Ht?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Ft):Wt?/WebKit\/(\S+)/.exec(Ft):qt?/(?:Version)[ \/]?(\S+)/.exec(Ft):void 0);if(Yt&&(Jt=Yt?Yt[1]:""),Ht){var zt=Xt();if(null!=zt&&zt>parseFloat(Jt)){Vt=String(zt);break t}}Vt=Jt}var $t,Zt={};function Qt(s){return t=s,e=function(){for(var t=0,e=J(String(Vt)).split("."),n=J(String(s)).split("."),i=Math.max(e.length,n.length),r=0;0==t&&r"),a=a.join("")),a=se(o,a),s&&("string"==typeof s?a.className=s:Array.isArray(s)?a.className=s.join(" "):ne(a,s)),2>>0);function fn(e){return v(e)?e:(e[ln]||(e[ln]=function(t){return e.handleEvent(t)}),e[ln])}function dn(){Me.call(this),this.u=new Ye(this),(this.Yb=this).eb=null}function pn(t,e,n,i,r){t.u.add(String(e),n,!1,i,r)}function vn(t,e,n,i,r){t.u.add(String(e),n,!0,i,r)}function mn(t,e,n,i){if(!(e=t.u.a[String(e)]))return!0;e=e.concat();for(var r=!0,o=0;o>4&15).toString(16)+(15&t).toString(16)}kn.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Ln(e,xn,!0),":");var n=this.b;return!n&&"file"!=e||(t.push("//"),(e=this.i)&&t.push(Ln(e,xn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&t.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(Ln(n,"/"==n.charAt(0)?Un:jn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.g)&&t.push("#",Ln(n,Fn)),t.join("")},kn.prototype.resolve=function(t){var e=new kn(this),n=!!t.f;n?Sn(e,t.f):n=!!t.i,n?e.i=t.i:n=!!t.b,n?e.b=t.b:n=null!=t.l;var i,r=t.c;if(n)Nn(e,t.l);else if(n=!!t.c){if("/"!=r.charAt(0)&&(this.b&&!this.c?r="/"+r:-1!=(i=e.c.lastIndexOf("/"))&&(r=e.c.substr(0,i+1)+r)),".."==(i=r)||"."==i)r="";else if(nt(i,"./")||nt(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a2*t.c&&Tn(t)))}function Bn(t,e){return Hn(t),e=Jn(t,e),En(t.a.b,e)}function Wn(t,e,n){Gn(t,e),0'),i=a.document)&&(i.write(Dt(t)),i.close())):(a=i.open(St(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(t){}return a}var ai=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,si=/^[^@]+@[^@]+$/;function ui(){var e=null;return new pe(function(t){"complete"==l.document.readyState?t():(e=function(){t()},nn(window,"load",e))}).o(function(t){throw rn(window,"load",e),t})}function ci(t){return t=t||yi(),!("file:"!==Ai()&&"ionic:"!==Ai()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function hi(){var t=l.window;try{return t&&t!=t.top}catch(t){return}}function li(){return void 0!==l.WorkerGlobalScope&&"function"==typeof l.importScripts}function fi(){return Wl.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":Wl.INTERNAL.hasOwnProperty("node")?"Node":li()?"Worker":"Browser"}function di(){var t=fi();return"ReactNative"===t||"Node"===t}var pi="Firefox",vi="Chrome";function mi(t){var e=t.toLowerCase();return nt(e,"opera/")||nt(e,"opr/")||nt(e,"opios/")?"Opera":nt(e,"iemobile")?"IEMobile":nt(e,"msie")||nt(e,"trident/")?"IE":nt(e,"edge/")?"Edge":nt(e,"firefox/")?pi:nt(e,"silk/")?"Silk":nt(e,"blackberry")?"Blackberry":nt(e,"webos")?"Webos":!nt(e,"safari/")||nt(e,"chrome/")||nt(e,"crios/")||nt(e,"android")?!nt(e,"chrome/")&&!nt(e,"crios/")||nt(e,"edge/")?nt(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":vi:"Safari"}var gi={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function bi(t,e){e=e||[];var n,i=[],r={};for(n in gi)r[gi[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 Pr(t){var e=Mr(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function Lr(t){try{return new Pr(t)}catch(t){return null}}function Mr(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=xt("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",I.call(this,e,n)}function jo(t,e,n){I.call(this,t,n),(t=e||{}).Gb&&Fi(this,"email",t.Gb),t.da&&Fi(this,"phoneNumber",t.da),t.credential&&Fi(this,"credential",t.credential),t.Wb&&Fi(this,"tenantId",t.Wb)}function Uo(t){if(t.code){var e=t.code||"";0==e.indexOf(A)&&(e=e.substring(A.length));var n={credential:Oo(t),Wb:t.tenantId};if(t.email)n.Gb=t.email;else if(t.phoneNumber)n.da=t.phoneNumber;else if(!n.credential)return new I(e,t.message||void 0);return new jo(e,n,t.message)}return null}function Vo(){}function Fo(t){return t.c||(t.c=t.b())}function qo(){}function Ho(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):(C("Root logger has no level set."),null)}(this).value)for(v(e)&&(e=e()),t=new Wo(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var Qo,ta={},ea=null;function na(t){var e,n,i;return ea||(ea=new Xo(""),(ta[""]=ea).c=$o),(e=ta[t])||(e=new Xo(t),i=t.lastIndexOf("."),n=t.substr(i+1),(i=na(t.substr(0,i))).b||(i.b={}),(i.b[n]=e).a=i,ta[t]=e),e}function ia(t,e){t&&t.log(Zo,e,void 0)}function ra(t){this.f=t}function oa(t){dn.call(this),this.s=t,this.readyState=aa,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=na("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}e(ra,Vo),ra.prototype.a=function(){return new oa(this.f)},ra.prototype.b=(Qo={},function(){return Qo}),e(oa,dn);var aa=0;function sa(t){t.c.read().then(t.nc.bind(t)).catch(t.Sa.bind(t))}function ua(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,ca(t)}function ca(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ha(t){dn.call(this),this.headers=new In,this.D=t||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=la,this.w=this.R=!1}(t=oa.prototype).open=function(t,e){if(this.readyState!=aa)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,ca(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.m,credentials:void 0,cache:void 0};t&&(e.body=t),this.s.fetch(new Request(this.g,e)).then(this.sc.bind(this),this.Sa.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,ua(this,!1)),this.readyState=aa},t.sc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,ca(this)),this.a&&(this.readyState=3,ca(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):void 0!==l.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,sa(this)):t.text().then(this.rc.bind(this),this.Sa.bind(this)))))},t.nc=function(t){var e;this.a&&((e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done}))&&(this.response=this.responseText+=e),t.done?ua(this,!0):ca(this),3==this.readyState&&sa(this))},t.rc=function(t){this.a&&(this.response=this.responseText=t,ua(this,!0))},t.qc=function(t){this.a&&(this.response=t,ua(this,!0))},t.Sa=function(t){var e=this.h;e&&e.log(zo,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&ua(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(zo,"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(zo,"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(ha,dn);var la="";ha.prototype.b=na("goog.net.XhrIo");var fa=/^https?$/i,da=["POST","PUT"];function pa(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.P=n,e.N=!1,e.c=!0,e.a=e.D?e.D.a():Lo.a(),e.B=e.D?Fo(e.D):Fo(Lo),e.a.onreadystatechange=b(e.Sb,e);try{ia(e.b,Ea(e,"Opening Xhr")),e.O=!0,e.a.open(n,String(t),!0),e.O=!1}catch(t){return ia(e.b,Ea(e,"Error opening Xhr: "+t.message)),void ma(e,t)}t=i||"";var o,a=new In(e.headers);r&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(p(t)||"string"==typeof t)U(t,e,void 0);else for(var n=wn(t),i=yn(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|Yu[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 oc(t,e,n){void 0===n&&(n=e.length);var i=0,r=t.c;if("string"==typeof e)for(;i>r&255;return F(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}function fc(t,e){for(var n=0;nt.f&&(t.a=t.f),e)}function eh(t){this.c=t,this.b=this.a=null}function nh(t){return t.b&&1e3*t.b.c||0}function ih(t,e){var n=e.refreshToken;t.b=Lr(e[Ka]||""),t.a=n}function rh(e,t){return i=e.c,r=t,new pe(function(e,n){"refresh_token"==r.grant_type&&r.refresh_token||"authorization_code"==r.grant_type&&r.code?za(i,i.u+"?key="+encodeURIComponent(i.c),function(t){t?t.error?n(Js(t)):t.access_token&&t.refresh_token?e(t):n(new I("internal-error")):n(new I("network-request-failed"))},"POST",Kn(r).toString(),i.g,i.m.get()):n(new I("internal-error"))}).then(function(t){return e.b=Lr(t.access_token),e.a=t.refresh_token,{accessToken:e.b.toString(),refreshToken:e.a}}).o(function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t});var i,r}function oh(t,e){this.a=t||null,this.b=e||null,qi(this,{lastSignInTime:Li(e||null),creationTime:Li(t||null)})}function ah(t,e,n,i,r,o){qi(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:e})}function sh(t,e,n){var i;this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null,t=Wl.SDK_VERSION?bi(Wl.SDK_VERSION):null,this.a=new qa(this.l,N(E),t),this.b=new eh(this.a),ph(this,e[Ka]),ih(this.b,e),Fi(this,"refreshToken",this.b.a),gh(this,n||{}),dn.call(this),this.P=!1,this.s&&Ti()&&(this.i=Cc(this.s,this.l,this.m)),this.R=[],this.h=null,this.B=(i=this,new Qc(function(){return i.I(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var t=nh(i.b)-w()-3e5;return 0nh(this)-3e4?this.a?rh(this,{grant_type:"refresh_token",refresh_token:this.a}):Ie(null):Ie({accessToken:this.b.toString(),refreshToken:this.a})},oh.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},e(sh,dn),sh.prototype.va=function(t){this.oa=t,Ja(this.a,t)},sh.prototype.ja=function(){return this.oa},sh.prototype.Ea=function(){return W(this.W)},sh.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Fi(sh.prototype,"providerId","firebase"),(t=sh.prototype).reload=function(){var t=this;return Ph(this,yh(this).then(function(){return kh(t).then(function(){return vh(t)}).then(bh)}))},t.mc=function(t){return this.I(t).then(function(t){return new qc(t)})},t.I=function(t){var e=this;return Ph(this,yh(this).then(function(){return e.b.getToken(t)}).then(function(t){if(!t)throw new I("internal-error");return t.accessToken!=e.xa&&(ph(e,t.accessToken),e.dispatchEvent(new zc("tokenChanged"))),Eh(e,"refreshToken",t.refreshToken),t.accessToken}))},t.Ic=function(t){if(!(t=t.users)||!t.length)throw new I("internal-error");gh(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,tenantId:t.tenantId});for(var e,n=(e=(e=t).providerUserInfo)&&e.length?F(e,function(t){return new ah(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[],i=0;i=Ol.length)throw new I("internal-error","Argument validator received an unsupported number of arguments.");n=Ol[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}i=null}}if(i)throw new I("argument-error",t+" failed: "+i)}(t=yl.prototype).Ga=function(){var e=this;return this.f?this.f:this.f=kl(this,Ie().then(function(){if(Ei()&&!li())return ui();throw new I("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return e.m.g(e.w())}).then(function(t){return e.g=t,Ws(e.s,Os,{})}).then(function(t){e.a[Tl]=t.recaptchaSiteKey}).o(function(t){throw e.f=null,t}))},t.render=function(){Sl(this);var n=this;return kl(this,this.Ga().then(function(){var t,e;return null===n.c&&(e=n.u,n.i||(t=ee(e),e=ae("DIV"),t.appendChild(e)),n.c=n.g.render(e,n.a)),n.c}))},t.verify=function(){Sl(this);var r=this;return kl(this,this.render().then(function(e){return new pe(function(n){var i,t=r.g.getResponse(e);t?n(t):(i=function(t){var e;t&&(e=i,G(r.l,function(t){return t==e}),n(t))},r.l.push(i),r.i&&r.g.execute(r.c))})}))},t.reset=function(){Sl(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Sl(this),this.D=!0,this.m.c();for(var t,e=0;e