text: (window.webpackJsonp=window.webpackJsonp||[]).push([[8],{PZDf:function(t,n,e){(function(t){(function(){var n,i=e("/psV").default,r="function"==typeof Object.defineProperties?Object.defineProperty:function(t,n,e){t!=Array.prototype&&t!=Object.prototype&&(t[n]=e.value)};var o=function(n){n=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof t&&t,n];for(var e=0;e<n.length;++e){var i=n[e];if(i&&i.Math==Math)return i}return globalThis}(this);function a(t){var n=0;return function(){return n<t.length?{done:!1,value:t[n++]}:{done:!0}}}function s(t){var n="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return n?n.call(t):{next:a(t)}}!function(t,n){if(n){var e=o;t=t.split(".");for(var i=0;i<t.length-1;i++){var a=t[i];a in e||(e[a]={}),e=e[a]}(n=n(i=e[t=t[t.length-1]]))!=i&&null!=n&&r(e,t,{configurable:!0,writable:!0,value:n})}}("Promise",(function(t){function n(t){this.b=0,this.c=void 0,this.a=[];var n=this.f();try{t(n.resolve,n.reject)}catch(e){n.reject(e)}}function e(){this.a=null}function i(t){return t instanceof n?t:new n((function(n){n(t)}))}if(t)return t;e.prototype.b=function(t){if(null==this.a){this.a=[];var n=this;this.c((function(){n.g()}))}this.a.push(t)};var r=o.setTimeout;e.prototype.c=function(t){r(t,0)},e.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var n=0;n<t.length;++n){var e=t[n];t[n]=null;try{e()}catch(i){this.f(i)}}}this.a=null},e.prototype.f=function(t){this.c((function(){throw t}))},n.prototype.f=function(){function t(t){return function(i){e||(e=!0,t.call(n,i))}}var n=this,e=!1;return{resolve:t(this.v),reject:t(this.g)}},n.prototype.v=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof n)this.o(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.m(t):this.h(t)}},n.prototype.m=function(t){var n=void 0;try{n=t.then}catch(e){return void this.g(e)}"function"==typeof n?this.u(n,t):this.h(t)},n.prototype.g=function(t){this.i(2,t)},n.prototype.h=function(t){this.i(1,t)},n.prototype.i=function(t,n){if(0!=this.b)throw Error("Cannot settle("+t+", "+n+"): Promise already settled in state"+this.b);this.b=t,this.c=n,this.l()},n.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)a.b(this.a[t]);this.a=null}};var a=new e;return n.prototype.o=function(t){var n=this.f();t.Pa(n.resolve,n.reject)},n.prototype.u=function(t,n){var e=this.f();try{t.call(n,e.resolve,e.reject)}catch(i){e.reject(i)}},n.prototype.then=function(t,e){function i(t,n){return"function"==typeof t?function(n){try{r(t(n))}catch(e){o(e)}}:n}var r,o,a=new n((function(t,n){r=t,o=n}));return this.Pa(i(t,r),i(e,o)),a},n.prototype.catch=function(t){return this.then(void 0,t)},n.prototype.Pa=function(t,n){function e(){switch(i.b){case 1:t(i.c);break;case 2:n(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?a.b(e):this.a.push(e)},n.resolve=i,n.reject=function(t){return new n((function(n,e){e(t)}))},n.race=function(t){return new n((function(n,e){for(var r=s(t),o=r.next();!o.done;o=r.next())i(o.value).Pa(n,e)}))},n.all=function(t){var e=s(t),r=e.next();return r.done?i([]):new n((function(t,n){function o(n){return function(e){a[n]=e,0==--s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,i(r.value).Pa(o(a.length-1),n),r=e.next()}while(!r.done)}))},n}));var u=u||{},c=this||self,h=/^[\w+/_-]+[=]{0,2}$/,l=null;function f(){}function d(t){var n=typeof t;if("object"==n){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return n;var e=Object.prototype.toString.call(t);if("[object Window]"==e)return"object";if("[object Array]"==e||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==e||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==n&&void 0===t.call)return"object";return n}function p(t){var n=d(t);return"array"==n||"object"==n&&"number"==typeof t.length}function v(t){return"function"==d(t)}function m(t){var n=typeof t;return"object"==n&&null!=t||"function"==n}function g(t){return Object.prototype.hasOwnProperty.call(t,b)&&t[b]||(t[b]=++y)}var b="closure_uid_"+(1e9*Math.random()>>>0),y=0;function w(t,n,e){return t.call.apply(t.bind,arguments)}function I(t,n,e){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(e,i),t.apply(n,e)}}return function(){return t.apply(n,arguments)}}function T(t,n,e){return(T=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w:I).apply(null,arguments)}function E(t,n){var e=Array.prototype.slice.call(arguments,1);return function(){var n=e.slice();return n.push.apply(n,arguments),t.apply(this,n)}}var A=Date.now||function(){return+new Date};function k(t,n){function e(){}e.prototype=n.prototype,t.$a=n.prototype,t.prototype=new e,t.prototype.constructor=t}function S(t,n,e){this.code=O+t,this.message=n||C[t]||"",this.a=e||null}function N(t){var n=t&&t.code;return n?new S(n.substring(O.length),t.message,t.serverResponse):null}k(S,Error),S.prototype.w=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},S.prototype.toJSON=function(){return this.w()};var _,O="auth/",C={"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.","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 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.',"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."},R={kd:{Sa:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},rd:{Sa:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://securetoken.googleapis.com/v1/token",Va:"https://identitytoolkit.googleapis.com/v2/",id:"p"},td:{Sa:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},ud:{Sa:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ya:"https://test-securetoken.sandbox.googleapis.com/v1/token",Va:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function P(t){for(var n in R)if(R[n].id===t)return{firebaseEndpoint:(t=R[n]).Sa,secureTokenEndpoint:t.Ya,identityPlatformEndpoint:t.Va};return null}function D(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(n){return!1}}function L(t){if(Error.captureStackTrace)Error.captureStackTrace(this,L);else{var n=Error().stack;n&&(this.stack=n)}t&&(this.message=String(t))}function x(t,n){for(var e="",i=(t=t.split("%s")).length-1,r=0;r<i;r++)e+=t[r]+(r<n.length?n[r]:"%s");L.call(this,e+t[i])}function M(t,n){throw new x("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function j(t,n){this.c=t,this.f=n,this.b=0,this.a=null}function U(t,n){t.f(n),100>t.b&&(t.b++,n.next=t.a,t.a=n)}function V(){this.b=this.a=null}_=P("__EID__")?"__EID__":void 0,k(L,Error),L.prototype.name="CustomError",k(x,L),x.prototype.name="AssertionError",j.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var F=new j((function(){return new q}),(function(t){t.reset()}));function K(){var t=wn,n=null;return t.a&&(n=t.a,t.a=t.a.next,t.a||(t.b=null),n.next=null),n}function q(){this.next=this.b=this.a=null}V.prototype.add=function(t,n){var e=F.get();e.set(t,n),this.b?this.b.next=e:this.a=e,this.b=e},q.prototype.set=function(t,n){this.a=t,this.b=n,this.next=null},q.prototype.reset=function(){this.next=this.b=this.a=null};var H=Array.prototype.indexOf?function(t,n){return Array.prototype.indexOf.call(t,n,void 0)}:function(t,n){if("string"==typeof t)return"string"!=typeof n||1!=n.length?-1:t.indexOf(n,0);for(var e=0;e<t.length;e++)if(e in t&&t[e]===n)return e;return-1},G=Array.prototype.forEach?function(t,n,e){Array.prototype.forEach.call(t,n,e)}:function(t,n,e){for(var i=t.length,r="string"==typeof t?t.split(""):t,o=0;o<i;o++)o in r&&n.call(e,r[o],o,t)};var B=Array.prototype.filter?function(t,n){return Array.prototype.filter.call(t,n,void 0)}:function(t,n){for(var e=t.length,i=[],r=0,o="string"==typeof t?t.split(""):t,a=0;a<e;a++)if(a in o){var s=o[a];n.call(void 0,s,a,t)&&(i[r++]=s)}return i},W=Array.prototype.map?function(t,n){return Array.prototype.map.call(t,n,void 0)}:function(t,n){for(var e=t.length,i=Array(e),r="string"==typeof t?t.split(""):t,o=0;o<e;o++)o in r&&(i[o]=n.call(void 0,r[o],o,t));return i},X=Array.prototype.some?function(t,n){return Array.prototype.some.call(t,n,void 0)}:function(t,n){for(var e=t.length,i="string"==typeof t?t.split(""):t,r=0;r<e;r++)if(r in i&&n.call(void 0,i[r],r,t))return!0;return!1};function J(t,n){return 0<=H(t,n)}function Y(t,n){var e;return(e=0<=(n=H(t,n)))&&Array.prototype.splice.call(t,n,1),e}function z(t,n){!function(t,n){for(var e="string"==typeof t?t.split(""):t,i=t.length-1;0<=i;--i)i in e&&n.call(void 0,e[i],i,t)}(t,(function(e,i){n.call(void 0,e,i,t)&&1==Array.prototype.splice.call(t,i,1).length&&0}))}function $(t){return Array.prototype.concat.apply([],arguments)}function Z(t){var n=t.length;if(0<n){for(var e=Array(n),i=0;i<n;i++)e[i]=t[i];return e}return[]}var Q,tt=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},nt=/&/g,et=/</g,it=/>/g,rt=/"/g,ot=/'/g,at=/\x00/g,st=/[\x00&<>"']/;function ut(t,n){return-1!=t.indexOf(n)}function ct(t,n){return t<n?-1:t>n?1:0}t:{var ht=c.navigator;if(ht){var lt=ht.userAgent;if(lt){Q=lt;break t}}Q=""}function ft(t){return ut(Q,t)}function dt(t,n){for(var e in t)n.call(void 0,t[e],e,t)}function pt(t){for(var n in t)return!1;return!0}function vt(t){var n,e={};for(n in t)e[n]=t[n];return e}var mt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function gt(t,n){for(var e,i,r=1;r<arguments.length;r++){for(e in i=arguments[r])t[e]=i[e];for(var o=0;o<mt.length;o++)e=mt[o],Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}}function bt(t,n){t:{try{var e=t&&t.ownerDocument,i=e&&(e.defaultView||e.parentWindow);if((i=i||c).Element&&i.Location){var r=i;break t}}catch(a){}r=null}if(r&&void 0!==r[n]&&(!t||!(t instanceof r[n])&&(t instanceof r.Location||t instanceof r.Element))){if(m(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(a){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;M("Argument is not a %s (or a non-Element, non-Location mock); got: %s",n,o)}}function yt(t,n){this.a=t===Tt&&n||"",this.b=It}function wt(t){return t instanceof yt&&t.constructor===yt&&t.b===It?t.a:(M("expected object of type Const, got '"+t+"'"),"type_error:Const")}yt.prototype.sa=!0,yt.prototype.ra=function(){return this.a},yt.prototype.toString=function(){return"Const{"+this.a+"}"};var It={},Tt={},Et=new yt(Tt,"");function At(t,n){this.a=t===Ct&&n||"",this.b=Ot}function kt(t){return t instanceof At&&t.constructor===At&&t.b===Ot?t.a:(M("expected object of type TrustedResourceUrl, got '"+t+"' of type "+d(t)),"type_error:TrustedResourceUrl")}function St(t,n){var e=wt(t);if(!_t.test(e))throw Error("Invalid TrustedResourceUrl format: "+e);return t=e.replace(Nt,(function(t,i){if(!Object.prototype.hasOwnProperty.call(n,i))throw Error('Found marker, "'+i+'", in format string, "'+e+'", but no valid label mapping found in args: '+JSON.stringify(n));return(t=n[i])instanceof yt?wt(t):encodeURIComponent(String(t))})),new At(Ct,t)}At.prototype.sa=!0,At.prototype.ra=function(){return this.a.toString()},At.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Nt=/%{(\w+)}/g,_t=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ot={},Ct={};function Rt(t,n){this.a=t===Mt&&n||"",this.b=xt}function Pt(t){return t instanceof Rt&&t.constructor===Rt&&t.b===xt?t.a:(M("expected object of type SafeUrl, got '"+t+"' of type "+d(t)),"type_error:SafeUrl")}Rt.prototype.sa=!0,Rt.prototype.ra=function(){return this.a.toString()},Rt.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Dt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Lt(t){return t instanceof Rt?t:(t="object"==typeof t&&t.sa?t.ra():String(t),Dt.test(t)||(t="about:invalid#zClosurez"),new Rt(Mt,t))}var xt={},Mt={};function jt(){this.a="",this.b=Vt}function Ut(t){return t instanceof jt&&t.constructor===jt&&t.b===Vt?t.a:(M("expected object of type SafeHtml, got '"+t+"' of type "+d(t)),"type_error:SafeHtml")}jt.prototype.sa=!0,jt.prototype.ra=function(){return this.a.toString()},jt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Vt={};function Ft(t){var n=new jt;return n.a=t,n}Ft("<!DOCTYPE html>");var Kt=Ft("");function qt(t,n){for(var e=t.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1<e.length;)i+=e.shift()+r.shift();return i+e.join("%s")}function Ht(t){return st.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(nt,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(et,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(it,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(rt,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(ot,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(at,"&#0;"))),t}function Gt(t){return Gt[" "](t),t}Ft("<br>"),Gt[" "]=f;var Bt,Wt,Xt=ft("Opera"),Jt=ft("Trident")||ft("MSIE"),Yt=ft("Edge"),zt=Yt||Jt,$t=ft("Gecko")&&!(ut(Q.toLowerCase(),"webkit")&&!ft("Edge"))&&!(ft("Trident")||ft("MSIE"))&&!ft("Edge"),Zt=ut(Q.toLowerCase(),"webkit")&&!ft("Edge");function Qt(){var t=c.document;return t?t.documentMode:void 0}t:{var tn="",nn=(Wt=Q,$t?/rv:([^\);]+)(\)|;)/.exec(Wt):Yt?/Edge\/([\d\.]+)/.exec(Wt):Jt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Wt):Zt?/WebKit\/(\S+)/.exec(Wt):Xt?/(?:Version)[ \/]?(\S+)/.exec(Wt):void 0);if(nn&&(tn=nn?nn[1]:""),Jt){var en=Qt();if(null!=en&&en>parseFloat(tn)){Bt=String(en);break t}}Bt=tn}var rn,on={};function an(t){return function(t,n){var e=on;return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[t]=n(t)}(t,(function(){for(var n=0,e=tt(String(Bt)).split("."),i=tt(String(t)).split("."),r=Math.max(e.length,i.length),o=0;0==n&&o<r;o++){var a=e[o]||"",s=i[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;n=ct(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||ct(0==a[2].length,0==s[2].length)||ct(a[2],s[2]),a=a[3],s=s[3]}while(0==n)}return 0<=n}))}rn=c.document&&Jt?Qt():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Wt){}var sn=!Jt||9<=Number(rn);function un(t){var n=document;return"string"==typeof t?n.getElementById(t):t}function cn(t,n){dt(n,(function(n,e){n&&"object"==typeof n&&n.sa&&(n=n.ra()),"style"==e?t.style.cssText=n:"class"==e?t.className=n:"for"==e?t.htmlFor=n:fn.hasOwnProperty(e)?t.setAttribute(fn[e],n):0==e.lastIndexOf("aria-",0)||0==e.lastIndexOf("data-",0)?t.setAttribute(e,n):t[e]=n}))}var hn,ln,fn={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 dn(t,n,e){function i(e){e&&n.appendChild("string"==typeof e?t.createTextNode(e):e)}for(var r=2;r<e.length;r++){var o=e[r];!p(o)||m(o)&&0<o.nodeType?i(o):G(vn(o)?Z(o):o,i)}}function pn(t,n){return n=String(n),"application/xhtml+xml"===t.contentType&&(n=n.toLowerCase()),t.createElement(n)}function vn(t){if(t&&"number"==typeof t.length){if(m(t))return"function"==typeof t.item||"string"==typeof t.item;if(v(t))return"function"==typeof t.item}return!1}function mn(t){c.setTimeout((function(){throw t}),0)}function gn(){var t=c.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!ft("Presto")&&(t=function(){var t=pn(document,"IFRAME");t.style.display="none",function(t){var n=new At(Ct,wt(Et));bt(t,"HTMLIFrameElement"),t.src=kt(n).toString()}(t),document.documentElement.appendChild(t);var n=t.contentWindow;(t=n.document).open(),t.write(Ut(Kt)),t.close();var e="callImmediate"+Math.random(),i="file:"==n.location.protocol?"*":n.location.protocol+"//"+n.location.host;t=T((function(t){"*"!=i&&t.origin!=i||t.data!=e||this.port1.onmessage()}),this),n.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){n.postMessage(e,i)}}}),void 0!==t&&!ft("Trident")&&!ft("MSIE")){var n=new t,e={},i=e;return n.port1.onmessage=function(){if(void 0!==e.next){var t=(e=e.next).Fb;e.Fb=null,t()}},function(t){i.next={Fb:t},i=i.next,n.port2.postMessage(0)}}return function(t){c.setTimeout(t,0)}}function bn(t,n){ln||function(){if(c.Promise&&c.Promise.resolve){var t=c.Promise.resolve(void 0);ln=function(){t.then(In)}}else ln=function(){var t=In;!v(c.setImmediate)||c.Window&&c.Window.prototype&&!ft("Edge")&&c.Window.prototype.setImmediate==c.setImmediate?(hn||(hn=gn()),hn(t)):c.setImmediate(t)}}(),yn||(ln(),yn=!0),wn.add(t,n)}var yn=!1,wn=new V;function In(){for(var t;t=K();){try{t.a.call(t.b)}catch(n){mn(n)}U(F,t)}yn=!1}function Tn(t,n){if(this.a=En,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=f)try{var e=this;t.call(n,(function(t){xn(e,An,t)}),(function(t){if(!(t instanceof qn))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(n){}xn(e,kn,t)}))}catch(i){xn(this,kn,i)}}var En=0,An=2,kn=3;function Sn(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Sn.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Nn=new j((function(){return new Sn}),(function(t){t.reset()}));function _n(t,n,e){var i=Nn.get();return i.g=t,i.b=n,i.f=e,i}function On(t){if(t instanceof Tn)return t;var n=new Tn(f);return xn(n,An,t),n}function Cn(t){return new Tn((function(n,e){e(t)}))}function Rn(t,n,e){Mn(t,n,e,null)||bn(E(n,t))}function Pn(t){return new Tn((function(n){var e=t.length,i=[];if(e)for(var r=function(t,r,o){e--,i[t]=r?{Ob:!0,value:o}:{Ob:!1,reason:o},0==e&&n(i)},o=0;o<t.length;o++)Rn(t[o],E(r,o,!0),E(r,o,!1));else n(i)}))}function Dn(t,n){t.b||t.a!=An&&t.a!=kn||jn(t),t.f?t.f.next=n:t.b=n,t.f=n}function Ln(t,n,e,i){var r=_n(null,null,null);return r.a=new Tn((function(t,o){r.g=n?function(e){try{var r=n.call(i,e);t(r)}catch(a){o(a)}}:t,r.b=e?function(n){try{var r=e.call(i,n);void 0===r&&n instanceof qn?o(n):t(r)}catch(a){o(a)}}:o})),r.a.c=t,Dn(t,r),r.a}function xn(t,n,e){t.a==En&&(t===e&&(n=kn,e=new TypeError("Promise cannot resolve to itself")),t.a=1,Mn(e,t.Zc,t.$c,t)||(t.i=e,t.a=n,t.c=null,jn(t),n!=kn||e instanceof qn||function(t,n){t.g=!0,bn((function(){t.g&&Kn.call(null,n)}))}(t,e)))}function Mn(t,n,e,i){if(t instanceof Tn)return Dn(t,_n(n||f,e||null,i)),!0;if(D(t))return t.then(n,e,i),!0;if(m(t))try{var r=t.then;if(v(r))return function(t,n,e,i,r){function o(t){a||(a=!0,i.call(r,t))}var a=!1;try{n.call(t,(function(t){a||(a=!0,e.call(r,t))}),o)}catch(s){o(s)}}(t,r,n,e,i),!0}catch(o){return e.call(i,o),!0}return!1}function jn(t){t.h||(t.h=!0,bn(t.fc,t))}function Un(t){var n=null;return t.b&&(n=t.b,t.b=n.next,n.next=null),t.b||(t.f=null),n}function Vn(t,n,e,i){if(e==kn&&n.b&&!n.c)for(;t&&t.g;t=t.c)t.g=!1;if(n.a)n.a.c=null,Fn(n,e,i);else try{n.c?n.g.call(n.f):Fn(n,e,i)}catch(r){Kn.call(null,r)}U(Nn,n)}function Fn(t,n,e){n==An?t.g.call(t.f,e):t.b&&t.b.call(t.f,e)}Tn.prototype.then=function(t,n,e){return Ln(this,v(t)?t:null,v(n)?n:null,e)},Tn.prototype.$goog_Thenable=!0,(n=Tn.prototype).na=function(t,n){return(t=_n(t,t,n)).c=!0,Dn(this,t),this},n.s=function(t,n){return Ln(this,null,t,n)},n.cancel=function(t){if(this.a==En){var n=new qn(t);bn((function(){!function t(n,e){if(n.a==En)if(n.c){var i=n.c;if(i.b){for(var r=0,o=null,a=null,s=i.b;s&&(s.c||(r++,s.a==n&&(o=s),!(o&&1<r)));s=s.next)o||(a=s);o&&(i.a==En&&1==r?t(i,e):(a?((r=a).next==i.f&&(i.f=r),r.next=r.next.next):Un(i),Vn(i,o,kn,e)))}n.c=null}else xn(n,kn,e)}(this,n)}),this)}},n.Zc=function(t){this.a=En,xn(this,An,t)},n.$c=function(t){this.a=En,xn(this,kn,t)},n.fc=function(){for(var t;t=Un(this);)Vn(this,t,this.a,this.i);this.h=!1};var Kn=mn;function qn(t){L.call(this,t)}function Hn(){0!=Gn&&(Bn[g(this)]=this),this.xa=this.xa,this.oa=this.oa}k(qn,L),qn.prototype.name="cancel";var Gn=0,Bn={};function Wn(t){if(!t.xa&&(t.xa=!0,t.Da(),0!=Gn)){var n=g(t);if(0!=Gn&&t.oa&&0<t.oa.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Bn[n]}}Hn.prototype.xa=!1,Hn.prototype.Da=function(){if(this.oa)for(;this.oa.length;)this.oa.shift()()};var Xn=Object.freeze||function(t){return t},Jn=!Jt||9<=Number(rn),Yn=Jt&&!an("9"),zn=function(){if(!c.addEventListener||!Object.defineProperty)return!1;var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}});try{c.addEventListener("test",f,n),c.removeEventListener("test",f,n)}catch(e){}return t}();function $n(t,n){this.type=t,this.b=this.target=n,this.defaultPrevented=!1}function Zn(t,n){if($n.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var e=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=n,n=t.relatedTarget){if($t){t:{try{Gt(n.nodeName);var r=!0;break t}catch(o){}r=!1}r||(n=null)}}else"mouseover"==e?n=t.fromElement:"mouseout"==e&&(n=t.toElement);this.relatedTarget=n,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:Qn[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}$n.prototype.preventDefault=function(){this.defaultPrevented=!0},k(Zn,$n);var Qn=Xn({2:"touch",3:"pen",4:"mouse"});Zn.prototype.preventDefault=function(){Zn.$a.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Yn)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(n){}},Zn.prototype.g=function(){return this.a};var te="closure_listenable_"+(1e6*Math.random()|0),ne=0;function ee(t,n,e,i,r){this.listener=t,this.proxy=null,this.src=n,this.type=e,this.capture=!!i,this.Ua=r,this.key=++ne,this.va=this.Oa=!1}function ie(t){t.va=!0,t.listener=null,t.proxy=null,t.src=null,t.Ua=null}function re(t){this.src=t,this.a={},this.b=0}function oe(t,n){var e=n.type;e in t.a&&Y(t.a[e],n)&&(ie(n),0==t.a[e].length&&(delete t.a[e],t.b--))}function ae(t,n,e,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.va&&o.listener==n&&o.capture==!!e&&o.Ua==i)return r}return-1}re.prototype.add=function(t,n,e,i,r){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=ae(t,n,i,r);return-1<a?(n=t[a],e||(n.Oa=!1)):((n=new ee(n,this.src,o,!!i,r)).Oa=e,t.push(n)),n};var se="closure_lm_"+(1e6*Math.random()|0),ue={};function ce(t,n,e,i,r){if(i&&i.once)le(t,n,e,i,r);else if(Array.isArray(n))for(var o=0;o<n.length;o++)ce(t,n[o],e,i,r);else e=we(e),t&&t[te]?Te(t,n,e,m(i)?!!i.capture:!!i,r):he(t,n,e,!1,i,r)}function he(t,n,e,i,r,o){if(!n)throw Error("Invalid event type");var a=m(r)?!!r.capture:!!r,s=be(t);if(s||(t[se]=s=new re(t)),!(e=s.add(n,e,i,a,o)).proxy){if(i=function(){var t=ge,n=Jn?function(e){return t.call(n.src,n.listener,e)}:function(e){if(!(e=t.call(n.src,n.listener,e)))return e};return n}(),e.proxy=i,i.src=t,i.listener=e,t.addEventListener)zn||(r=a),void 0===r&&(r=!1),t.addEventListener(n.toString(),i,r);else if(t.attachEvent)t.attachEvent(pe(n.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}0}}function le(t,n,e,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++)le(t,n[o],e,i,r);else e=we(e),t&&t[te]?Ee(t,n,e,m(i)?!!i.capture:!!i,r):he(t,n,e,!0,i,r)}function fe(t,n,e,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++)fe(t,n[o],e,i,r);else i=m(i)?!!i.capture:!!i,e=we(e),t&&t[te]?(t=t.v,(n=String(n).toString())in t.a&&(-1<(e=ae(o=t.a[n],e,i,r))&&(ie(o[e]),Array.prototype.splice.call(o,e,1),0==o.length&&(delete t.a[n],t.b--)))):t&&(t=be(t))&&(n=t.a[n.toString()],t=-1,n&&(t=ae(n,e,i,r)),(e=-1<t?n[t]:null)&&de(e))}function de(t){if("number"!=typeof t&&t&&!t.va){var n=t.src;if(n&&n[te])oe(n.v,t);else{var e=t.type,i=t.proxy;n.removeEventListener?n.removeEventListener(e,i,t.capture):n.detachEvent?n.detachEvent(pe(e),i):n.addListener&&n.removeListener&&n.removeListener(i),(e=be(n))?(oe(e,t),0==e.b&&(e.src=null,n[se]=null)):ie(t)}}}function pe(t){return t in ue?ue[t]:ue[t]="on"+t}function ve(t,n,e,i){var r=!0;if((t=be(t))&&(n=t.a[n.toString()]))for(n=n.concat(),t=0;t<n.length;t++){var o=n[t];o&&o.capture==e&&!o.va&&(o=me(o,i),r=r&&!1!==o)}return r}function me(t,n){var e=t.listener,i=t.Ua||t.src;return t.Oa&&de(t),e.call(i,n)}function ge(t,n){if(t.va)return!0;if(!Jn){if(!n)t:{n=["window","event"];for(var e=c,i=0;i<n.length;i++)if(null==(e=e[n[i]])){n=null;break t}n=e}if(n=new Zn(i=n,this),e=!0,!(0>i.keyCode||null!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(a){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=n.b;r;r=r.parentNode)i.push(r);for(t=t.type,r=i.length-1;0<=r;r--){n.b=i[r];var o=ve(i[r],t,!0,n);e=e&&o}for(r=0;r<i.length;r++)n.b=i[r],o=ve(i[r],t,!1,n),e=e&&o}return e}return me(t,new Zn(n,this))}function be(t){return(t=t[se])instanceof re?t:null}var ye="__closure_events_fn_"+(1e9*Math.random()>>>0);function we(t){return v(t)?t:(t[ye]||(t[ye]=function(n){return t.handleEvent(n)}),t[ye])}function Ie(){Hn.call(this),this.v=new re(this),this.$b=this,this.fb=null}function Te(t,n,e,i,r){t.v.add(String(n),e,!1,i,r)}function Ee(t,n,e,i,r){t.v.add(String(n),e,!0,i,r)}function Ae(t,n,e,i){if(!(n=t.v.a[String(n)]))return!0;n=n.concat();for(var r=!0,o=0;o<n.length;++o){var a=n[o];if(a&&!a.va&&a.capture==e){var s=a.listener,u=a.Ua||a.src;a.Oa&&oe(t.v,a),r=!1!==s.call(u,i)&&r}}return r&&!i.defaultPrevented}function ke(t,n,e){if(v(t))e&&(t=T(t,e));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=T(t.handleEvent,t)}return 2147483647<Number(n)?-1:c.setTimeout(t,n||0)}function Se(t){var n=null;return new Tn((function(e,i){-1==(n=ke((function(){e(void 0)}),t))&&i(Error("Failed to schedule timer."))})).s((function(t){throw c.clearTimeout(n),t}))}function Ne(t){if(t.V&&"function"==typeof t.V)return t.V();if("string"==typeof t)return t.split("");if(p(t)){for(var n=[],e=t.length,i=0;i<e;i++)n.push(t[i]);return n}for(i in n=[],e=0,t)n[e++]=t[i];return n}function _e(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.V||"function"!=typeof t.V){if(p(t)||"string"==typeof t){var n=[];t=t.length;for(var e=0;e<t;e++)n.push(e);return n}for(var i in n=[],e=0,t)n[e++]=i;return n}}function Oe(t,n){this.b={},this.a=[],this.c=0;var e=arguments.length;if(1<e){if(e%2)throw Error("Uneven number of arguments");for(var i=0;i<e;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof Oe)for(e=t.Y(),i=0;i<e.length;i++)this.set(e[i],t.get(e[i]));else for(i in t)this.set(i,t[i])}function Ce(t){if(t.c!=t.a.length){for(var n=0,e=0;n<t.a.length;){var i=t.a[n];Re(t.b,i)&&(t.a[e++]=i),n++}t.a.length=e}if(t.c!=t.a.length){var r={};for(e=n=0;n<t.a.length;)Re(r,i=t.a[n])||(t.a[e++]=i,r[i]=1),n++;t.a.length=e}}function Re(t,n){return Object.prototype.hasOwnProperty.call(t,n)}k(Ie,Hn),Ie.prototype[te]=!0,Ie.prototype.addEventListener=function(t,n,e,i){ce(this,t,n,e,i)},Ie.prototype.removeEventListener=function(t,n,e,i){fe(this,t,n,e,i)},Ie.prototype.dispatchEvent=function(t){var n,e=this.fb;if(e)for(n=[];e;e=e.fb)n.push(e);e=this.$b;var i=t.type||t;if("string"==typeof t)t=new $n(t,e);else if(t instanceof $n)t.target=t.target||e;else{var r=t;gt(t=new $n(i,e),r)}if(r=!0,n)for(var o=n.length-1;0<=o;o--){var a=t.b=n[o];r=Ae(a,i,!0,t)&&r}if(r=Ae(a=t.b=e,i,!0,t)&&r,r=Ae(a,i,!1,t)&&r,n)for(o=0;o<n.length;o++)r=Ae(a=t.b=n[o],i,!1,t)&&r;return r},Ie.prototype.Da=function(){if(Ie.$a.Da.call(this),this.v){var t,n=this.v;for(t in n.a){for(var e=n.a[t],i=0;i<e.length;i++)ie(e[i]);delete n.a[t],n.b--}}this.fb=null},(n=Oe.prototype).V=function(){Ce(this);for(var t=[],n=0;n<this.a.length;n++)t.push(this.b[this.a[n]]);return t},n.Y=function(){return Ce(this),this.a.concat()},n.clear=function(){this.b={},this.c=this.a.length=0},n.get=function(t,n){return Re(this.b,t)?this.b[t]:n},n.set=function(t,n){Re(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=n},n.forEach=function(t,n){for(var e=this.Y(),i=0;i<e.length;i++){var r=e[i],o=this.get(r);t.call(n,o,r,this)}};var Pe=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function De(t,n){var e;this.a=this.l=this.f="",this.g=null,this.h=this.c="",this.i=!1,t instanceof De?(this.i=void 0!==n?n:t.i,Le(this,t.f),this.l=t.l,this.a=t.a,xe(this,t.g),this.c=t.c,Me(this,ni(t.b)),this.h=t.h):t&&(e=String(t).match(Pe))?(this.i=!!n,Le(this,e[1]||"",!0),this.l=Ke(e[2]||""),this.a=Ke(e[3]||"",!0),xe(this,e[4]),this.c=Ke(e[5]||"",!0),Me(this,e[6]||"",!0),this.h=Ke(e[7]||"")):(this.i=!!n,this.b=new Ye(null,this.i))}function Le(t,n,e){t.f=e?Ke(n,!0):n,t.f&&(t.f=t.f.replace(/:$/,""))}function xe(t,n){if(n){if(n=Number(n),isNaN(n)||0>n)throw Error("Bad port number "+n);t.g=n}else t.g=null}function Me(t,n,e){n instanceof Ye?(t.b=n,function(t,n){n&&!t.f&&(ze(t),t.c=null,t.a.forEach((function(t,n){var e=n.toLowerCase();n!=e&&(Ze(this,n),ti(this,e,t))}),t)),t.f=n}(t.b,t.i)):(e||(n=qe(n,Xe)),t.b=new Ye(n,t.i))}function je(t,n,e){t.b.set(n,e)}function Ue(t,n){return t.b.get(n)}function Ve(t){return t instanceof De?new De(t):new De(t,void 0)}function Fe(t,n,e,i){var r=new De(null,void 0);return t&&Le(r,t),n&&(r.a=n),e&&xe(r,e),i&&(r.c=i),r}function Ke(t,n){return t?n?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function qe(t,n,e){return"string"==typeof t?(t=encodeURI(t).replace(n,He),e&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function He(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}De.prototype.toString=function(){var t=[],n=this.f;n&&t.push(qe(n,Ge,!0),":");var e=this.a;return(e||"file"==n)&&(t.push("//"),(n=this.l)&&t.push(qe(n,Ge,!0),"@"),t.push(encodeURIComponent(String(e)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(e=this.g)&&t.push(":",String(e))),(e=this.c)&&(this.a&&"/"!=e.charAt(0)&&t.push("/"),t.push(qe(e,"/"==e.charAt(0)?We:Be,!0))),(e=this.b.toString())&&t.push("?",e),(e=this.h)&&t.push("#",qe(e,Je)),t.join("")},De.prototype.resolve=function(t){var n=new De(this),e=!!t.f;e?Le(n,t.f):e=!!t.l,e?n.l=t.l:e=!!t.a,e?n.a=t.a:e=null!=t.g;var i=t.c;if(e)xe(n,t.g);else if(e=!!t.c){if("/"!=i.charAt(0))if(this.a&&!this.c)i="/"+i;else{var r=n.c.lastIndexOf("/");-1!=r&&(i=n.c.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(ut(r,"./")||ut(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}i=o.join("/")}else i=r}return e?n.c=i:e=""!==t.b.toString(),e?Me(n,ni(t.b)):e=!!t.h,e&&(n.h=t.h),n};var Ge=/[#\/\?@]/g,Be=/[#\?:]/g,We=/[#\?]/g,Xe=/[#\?@]/g,Je=/#/g;function Ye(t,n){this.b=this.a=null,this.c=t||null,this.f=!!n}function ze(t){t.a||(t.a=new Oe,t.b=0,t.c&&function(t,n){if(t){t=t.split("&");for(var e=0;e<t.length;e++){var i=t[e].indexOf("="),r=null;if(0<=i){var o=t[e].substring(0,i);r=t[e].substring(i+1)}else o=t[e];n(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.c,(function(n,e){t.add(decodeURIComponent(n.replace(/\+/g," ")),e)})))}function $e(t){var n=_e(t);if(void 0===n)throw Error("Keys are undefined");var e=new Ye(null,void 0);t=Ne(t);for(var i=0;i<n.length;i++){var r=n[i],o=t[i];Array.isArray(o)?ti(e,r,o):e.add(r,o)}return e}function Ze(t,n){ze(t),n=ei(t,n),Re(t.a.b,n)&&(t.c=null,t.b-=t.a.get(n).length,Re((t=t.a).b,n)&&(delete t.b[n],t.c--,t.a.length>2*t.c&&Ce(t)))}function Qe(t,n){return ze(t),n=ei(t,n),Re(t.a.b,n)}function ti(t,n,e){Ze(t,n),0<e.length&&(t.c=null,t.a.set(ei(t,n),Z(e)),t.b+=e.length)}function ni(t){var n=new Ye;return n.c=t.c,t.a&&(n.a=new Oe(t.a),n.b=t.b),n}function ei(t,n){return n=String(n),t.f&&(n=n.toLowerCase()),n}function ii(t){var n=[];return function t(n,e,i){if(null==e)i.push("null");else{if("object"==typeof e){if(Array.isArray(e)){var r=e;e=r.length,i.push("[");for(var o="",a=0;a<e;a++)i.push(o),t(n,r[a],i),o=",";return void i.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){for(r in i.push("{"),o="",e)Object.prototype.hasOwnProperty.call(e,r)&&("function"!=typeof(a=e[r])&&(i.push(o),si(r,i),i.push(":"),t(n,a,i),o=","));return void i.push("}")}e=e.valueOf()}switch(typeof e){case"string":si(e,i);break;case"number":i.push(isFinite(e)&&!isNaN(e)?String(e):"null");break;case"boolean":i.push(String(e));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}(new ri,t,n),n.join("")}function ri(){}(n=Ye.prototype).add=function(t,n){ze(this),this.c=null,t=ei(this,t);var e=this.a.get(t);return e||this.a.set(t,e=[]),e.push(n),this.b+=1,this},n.clear=function(){this.a=this.c=null,this.b=0},n.forEach=function(t,n){ze(this),this.a.forEach((function(e,i){G(e,(function(e){t.call(n,e,i,this)}),this)}),this)},n.Y=function(){ze(this);for(var t=this.a.V(),n=this.a.Y(),e=[],i=0;i<n.length;i++)for(var r=t[i],o=0;o<r.length;o++)e.push(n[i]);return e},n.V=function(t){ze(this);var n=[];if("string"==typeof t)Qe(this,t)&&(n=$(n,this.a.get(ei(this,t))));else{t=this.a.V();for(var e=0;e<t.length;e++)n=$(n,t[e])}return n},n.set=function(t,n){return ze(this),this.c=null,Qe(this,t=ei(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[n]),this.b+=1,this},n.get=function(t,n){return t&&0<(t=this.V(t)).length?String(t[0]):n},n.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],n=this.a.Y(),e=0;e<n.length;e++){var i=n[e],r=encodeURIComponent(String(i));i=this.V(i);for(var o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(String(i[o]))),t.push(a)}}return this.c=t.join("&")};var oi={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ai=/\uffff/.test("")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function si(t,n){n.push('"',t.replace(ai,(function(t){var n=oi[t];return n||(n="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),oi[t]=n),n})),'"')}function ui(){var t=Ni();return Jt&&!!rn&&11==rn||/Edge\/\d+/.test(t)}function ci(){return c.window&&c.window.location.href||self&&self.location&&self.location.href||""}function hi(t,n){n=n||c.window;var e="about:blank";t&&(e=Pt(Lt(t))),n.location.href=e}function li(t){return!!((t=(t||Ni()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function fi(t){t=t||c.window;try{t.close()}catch(n){}}function di(t,n,e){var i=Math.floor(1e9*Math.random()).toString();n=n||500,e=e||600;var r=(window.screen.availHeight-e)/2,o=(window.screen.availWidth-n)/2;for(a in n={width:n,height:e,top:0<r?r:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},e=Ni().toLowerCase(),i&&(n.target=i,ut(e,"crios/")&&(n.target="_blank")),Ai(Ni())==Ti&&(t=t||"http://localhost",n.scrollbars=!0),e=t||"",(t=n)||(t={}),i=window,n=e instanceof Rt?e:Lt(void 0!==e.href?e.href:String(e)),e=t.target||e.target,r=[],t)switch(a){case"width":case"height":case"top":case"left":r.push(a+"="+t[a]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(a+"="+(t[a]?1:0))}var a=r.join(",");if((ft("iPhone")&&!ft("iPod")&&!ft("iPad")||ft("iPad")||ft("iPod"))&&i.navigator&&i.navigator.standalone&&e&&"_self"!=e?(bt(a=pn(document,"A"),"HTMLAnchorElement"),n instanceof Rt||n instanceof Rt||(n="object"==typeof n&&n.sa?n.ra():String(n),Dt.test(n)||(n="about:invalid#zClosurez"),n=new Rt(Mt,n)),a.href=Pt(n),a.setAttribute("target",e),t.noreferrer&&a.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=i.open("",e,a),t=Pt(n),a&&(zt&&ut(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,t=Ft('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ht(t)+'">'),i=a.document)&&(i.write(Ut(t)),i.close())):(a=i.open(Pt(n),e,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var pi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,vi=/^[^@]+@[^@]+$/;function mi(){var t=null;return new Tn((function(n){"complete"==c.document.readyState?n():(t=function(){n()},le(window,"load",t))})).s((function(n){throw fe(window,"load",t),n}))}function gi(t){return t=t||Ni(),!("file:"!==Pi()&&"ionic:"!==Pi()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function bi(){var t=c.window;try{return!(!t||t==t.top)}catch(n){return!1}}function yi(){return void 0!==c.WorkerGlobalScope&&"function"==typeof c.importScripts}function wi(){return i.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":i.INTERNAL.hasOwnProperty("node")?"Node":yi()?"Worker":"Browser"}function Ii(){var t=wi();return"ReactNative"===t||"Node"===t}var Ti="Firefox",Ei="Chrome";function Ai(t){var n=t.toLowerCase();return ut(n,"opera/")||ut(n,"opr/")||ut(n,"opios/")?"Opera":ut(n,"iemobile")?"IEMobile":ut(n,"msie")||ut(n,"trident/")?"IE":ut(n,"edge/")?"Edge":ut(n,"firefox/")?Ti:ut(n,"silk/")?"Silk":ut(n,"blackberry")?"Blackberry":ut(n,"webos")?"Webos":!ut(n,"safari/")||ut(n,"chrome/")||ut(n,"crios/")||ut(n,"android")?!ut(n,"chrome/")&&!ut(n,"crios/")||ut(n,"edge/")?ut(n,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":Ei:"Safari"}var ki={ld:"FirebaseCore-web",nd:"FirebaseUI-web"};function Si(t,n){n=n||[];var e,i=[],r={};for(e in ki)r[ki[e]]=!0;for(e=0;e<n.length;e++)void 0!==r[n[e]]&&(delete r[n[e]],i.push(n[e]));return i.sort(),(n=i).length||(n=["FirebaseCore-web"]),"Browser"===(i=wi())?i=Ai(r=Ni()):"Worker"===i&&(i=Ai(r=Ni())+"-"+i),i+"/JsCore/"+t+"/"+n.join(",")}function Ni(){return c.navigator&&c.navigator.userAgent||""}function _i(t,n){t=t.split("."),n=n||c;for(var e=0;e<t.length&&"object"==typeof n&&null!=n;e++)n=n[t[e]];return e!=t.length&&(n=void 0),n}function Oi(){try{var t=c.localStorage,n=ji();if(t)return t.setItem(n,"1"),t.removeItem(n),!ui()||!!c.indexedDB}catch(e){return yi()&&!!c.indexedDB}return!1}function Ci(){return(Ri()||"chrome-extension:"===Pi()||gi())&&!Ii()&&Oi()&&!yi()}function Ri(){return"http:"===Pi()||"https:"===Pi()}function Pi(){return c.location&&c.location.protocol||null}function Di(t){return!li(t=t||Ni())&&Ai(t)!=Ti}function Li(t){return void 0===t?null:ii(t)}function xi(t){var n,e={};for(n in t)t.hasOwnProperty(n)&&null!==t[n]&&void 0!==t[n]&&(e[n]=t[n]);return e}function Mi(t){if(null!==t)return JSON.parse(t)}function ji(t){return t||Math.floor(1e9*Math.random()).toString()}function Ui(t){return"Safari"!=Ai(t=t||Ni())&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function Vi(){var t=c.___jsl;if(t&&t.H)for(var n in t.H)if(t.H[n].r=t.H[n].r||[],t.H[n].L=t.H[n].L||[],t.H[n].r=t.H[n].L.concat(),t.CP)for(var e=0;e<t.CP.length;e++)t.CP[e]=null}function Fi(t,n){if(t>n)throw Error("Short delay should be less than long delay!");this.a=t,this.c=n,t=Ni(),n=wi(),this.b=li(t)||"ReactNative"===n}function Ki(){var t=c.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function qi(t){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t)}function Hi(t){try{var n=new Date(parseInt(t,10));if(!isNaN(n.getTime())&&!/[^0-9]/.test(t))return n.toUTCString()}catch(e){}return null}function Gi(){return!(!_i("fireauth.oauthhelper",c)&&!_i("fireauth.iframe",c))}Fi.prototype.get=function(){var t=c.navigator;return!t||"boolean"!=typeof t.onLine||!Ri()&&"chrome-extension:"!==Pi()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Bi,Wi={};function Xi(t){Wi[t]||(Wi[t]=!0,qi(t))}try{var Ji={};Object.defineProperty(Ji,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Ji,"abcd",{configurable:!0,enumerable:!0,value:2}),Bi=2==Ji.abcd}catch(Wt){Bi=!1}function Yi(t,n,e){Bi?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:e}):t[n]=e}function zi(t,n){if(n)for(var e in n)n.hasOwnProperty(e)&&Yi(t,e,n[e])}function $i(t){var n={};return zi(n,t),n}function Zi(t){var n=t;if("object"==typeof t&&null!=t)for(var e in n="length"in t?[]:{},t)Yi(n,e,Zi(t[e]));return n}function Qi(t){var n=t&&(t[rr]?"phone":null);if(!(n&&t&&t[ir]))throw new S("internal-error","Internal assert: invalid MultiFactorInfo object");Yi(this,"uid",t[ir]),Yi(this,"displayName",t[nr]||null);var e=null;t[er]&&(e=new Date(t[er]).toUTCString()),Yi(this,"enrollmentTime",e),Yi(this,"factorId",n)}function tr(t){try{var n=new or(t)}catch(e){n=null}return n}Qi.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var nr="displayName",er="enrolledAt",ir="mfaEnrollmentId",rr="phoneInfo";function or(t){Qi.call(this,t),Yi(this,"phoneNumber",t[rr])}function ar(t){var n={},e=t[hr],i=t[fr],r=t[dr];if(t=tr(t[lr]),!r||r!=ur&&r!=cr&&!e||r==cr&&!i||r==sr&&!t)throw Error("Invalid checkActionCode response!");r==cr?(n[vr]=e||null,n[gr]=e||null,n[pr]=i):(n[vr]=i||null,n[gr]=i||null,n[pr]=e||null),n[mr]=t||null,Yi(this,yr,r),Yi(this,br,Zi(n))}k(or,Qi),or.prototype.w=function(){var t=or.$a.w.call(this);return t.phoneNumber=this.phoneNumber,t};var sr="REVERT_SECOND_FACTOR_ADDITION",ur="EMAIL_SIGNIN",cr="VERIFY_AND_CHANGE_EMAIL",hr="email",lr="mfaInfo",fr="newEmail",dr="requestType",pr="email",vr="fromEmail",mr="multiFactorInfo",gr="previousEmail",br="data",yr="operation";function wr(t){var n=Ue(t=Ve(t),Ir)||null,e=Ue(t,Tr)||null,i=Ue(t,kr)||null;if(i=i&&Nr[i]||null,!n||!e||!i)throw new S("argument-error",Ir+", "+Tr+"and "+kr+" are required in a valid action code URL.");zi(this,{apiKey:n,operation:i,code:e,continueUrl:Ue(t,Er)||null,languageCode:Ue(t,Ar)||null,tenantId:Ue(t,Sr)||null})}var Ir="apiKey",Tr="oobCode",Er="continueUrl",Ar="languageCode",kr="mode",Sr="tenantId",Nr={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:sr,signIn:ur,verifyAndChangeEmail:cr,verifyEmail:"VERIFY_EMAIL"};function _r(t){try{return new wr(t)}catch(n){return null}}function Or(t){var n=t[Lr];if(void 0===n)throw new S("missing-continue-uri");if("string"!=typeof n||"string"==typeof n&&!n.length)throw new S("invalid-continue-uri");this.h=n,this.b=this.a=null,this.g=!1;var e=t[Cr];if(e&&"object"==typeof e){n=e[jr];var i=e[xr];if(e=e[Mr],"string"==typeof n&&n.length){if(this.a=n,void 0!==i&&"boolean"!=typeof i)throw new S("argument-error",xr+" property must be a boolean when specified.");if(this.g=!!i,void 0!==e&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new S("argument-error",Mr+" property must be a non empty string when specified.");this.b=e||null}else{if(void 0!==n)throw new S("argument-error",jr+" property must be a non empty string when specified.");if(void 0!==i||void 0!==e)throw new S("missing-android-pkg-name")}}else if(void 0!==e)throw new S("argument-error",Cr+" property must be a non null object when specified.");if(this.f=null,(n=t[Dr])&&"object"==typeof n){if("string"==typeof(n=n[Ur])&&n.length)this.f=n;else if(void 0!==n)throw new S("argument-error",Ur+" property must be a non empty string when specified.")}else if(void 0!==n)throw new S("argument-error",Dr+" property must be a non null object when specified.");if(void 0!==(n=t[Pr])&&"boolean"!=typeof n)throw new S("argument-error",Pr+" property must be a boolean when specified.");if(this.c=!!n,void 0!==(t=t[Rr])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new S("argument-error",Rr+" property must be a non empty string when specified.");this.i=t||null}var Cr="android",Rr="dynamicLinkDomain",Pr="handleCodeInApp",Dr="iOS",Lr="url",xr="installApp",Mr="minimumVersion",jr="packageName",Ur="bundleId";function Vr(t){var n={};for(var e in n.continueUrl=t.h,n.canHandleCodeInApp=t.c,(n.androidPackageName=t.a)&&(n.androidMinimumVersion=t.b,n.androidInstallApp=t.g),n.iOSBundleId=t.f,n.dynamicLinkDomain=t.i,n)null===n[e]&&delete n[e];return n}var Fr=null;function Kr(t){var n="";return function(t,n){function e(n){for(;i<t.length;){var e=t.charAt(i++),r=Fr[e];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(e))throw Error("Unknown base64 encoding at char: "+e)}return n}!function(){if(!Fr){Fr={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),n=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++)for(var i=t.concat(n[e].split("")),r=0;r<i.length;r++){var o=i[r];void 0===Fr[o]&&(Fr[o]=r)}}}();for(var i=0;;){var r=e(-1),o=e(0),a=e(64),s=e(64);if(64===s&&-1===r)break;n(r<<2|o>>4),64!=a&&(n(o<<4&240|a>>2),64!=s&&n(a<<6&192|s))}}(t,(function(t){n+=String.fromCharCode(t)})),n}function qr(t){var n=Gr(t);if(!(n&&n.sub&&n.iss&&n.aud&&n.exp))throw Error("Invalid JWT");this.g=t,this.c=n.exp,this.h=n.sub,A(),this.a=n.provider_id||n.firebase&&n.firebase.sign_in_provider||null,this.f=n.firebase&&n.firebase.tenant||null,this.b=!!n.is_anonymous||"anonymous"==this.a}function Hr(t){try{return new qr(t)}catch(n){return null}}function Gr(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var n=(4-(t=t[1]).length%4)%4,e=0;e<n;e++)t+=".";try{return JSON.parse(Kr(t))}catch(i){}return null}qr.prototype.S=function(){return this.f},qr.prototype.i=function(){return this.b},qr.prototype.toString=function(){return this.g};var Br="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Wr=["client_id","response_type","scope","redirect_uri","state"],Xr={md:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Wa:Wr},od:{Ja:null,ua:500,ta:750,fa:"github.com",Wa:Wr},pd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Wa:Wr},vd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Wa:Br},jd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Wa:[]}};function Jr(t){for(var n in Xr)if(Xr[n].fa==t)return Xr[n];return null}function Yr(t){var n={};n["facebook.com"]=to,n["google.com"]=eo,n["github.com"]=no,n["twitter.com"]=io;var e=t&&t[$r];try{if(e)return n[e]?new n[e](t):new Qr(t);if(void 0!==t[zr])return new Zr(t)}catch(i){}return null}var zr="idToken",$r="providerId";function Zr(t){var n=t[$r];if(!n&&t[zr]){var e=Hr(t[zr]);e&&e.a&&(n=e.a)}if(!n)throw Error("Invalid additional user info!");"anonymous"!=n&&"custom"!=n||(n=null),e=!1,void 0!==t.isNewUser?e=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(e=!0),Yi(this,"providerId",n),Yi(this,"isNewUser",e)}function Qr(t){Zr.call(this,t),Yi(this,"profile",Zi((t=Mi(t.rawUserInfo||"{}"))||{}))}function to(t){if(Qr.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function no(t){if(Qr.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Yi(this,"username",this.profile&&this.profile.login||null)}function eo(t){if(Qr.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function io(t){if(Qr.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Yi(this,"username",t.screenName||null)}function ro(t){var n=Ve(t),e=Ue(n,"link"),i=Ue(Ve(e),"link");return n=Ue(n,"deep_link_id"),Ue(Ve(n),"link")||n||i||e||t}function oo(t,n){if(!t&&!n)throw new S("internal-error","Internal assert: no raw session string available");if(t&&n)throw new S("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=n||null,this.type=this.a?ao:so}k(Qr,Zr),k(to,Qr),k(no,Qr),k(eo,Qr),k(io,Qr);var ao="enroll",so="signin";function uo(){}function co(t,n){return t.then((function(t){if(t[$a]){var e=Hr(t[$a]);if(!e||n!=e.h)throw new S("user-mismatch");return t}throw new S("user-mismatch")})).s((function(t){throw t&&t.code&&t.code==O+"user-not-found"?new S("user-mismatch"):t}))}function ho(t,n){if(!n)throw new S("internal-error","failed to construct a credential");this.a=n,Yi(this,"providerId",t),Yi(this,"signInMethod",t)}function lo(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function fo(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new ho(t.providerId,t.pendingToken)}catch(n){}return null}function po(t,n,e){if(this.a=null,n.idToken||n.accessToken)n.idToken&&Yi(this,"idToken",n.idToken),n.accessToken&&Yi(this,"accessToken",n.accessToken),n.nonce&&!n.pendingToken&&Yi(this,"nonce",n.nonce),n.pendingToken&&(this.a=n.pendingToken);else{if(!n.oauthToken||!n.oauthTokenSecret)throw new S("internal-error","failed to construct a credential");Yi(this,"accessToken",n.oauthToken),Yi(this,"secret",n.oauthTokenSecret)}Yi(this,"providerId",t),Yi(this,"signInMethod",e)}function vo(t){var n={};return t.idToken&&(n.id_token=t.idToken),t.accessToken&&(n.access_token=t.accessToken),t.secret&&(n.oauth_token_secret=t.secret),n.providerId=t.providerId,t.nonce&&!t.a&&(n.nonce=t.nonce),n={postBody:$e(n).toString(),requestUri:"http://localhost"},t.a&&(delete n.postBody,n.pendingToken=t.a),n}function mo(t){if(t&&t.providerId&&t.signInMethod){var n={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new po(t.providerId,n,t.signInMethod)}catch(e){}}return null}function go(t,n){this.Pc=n||[],zi(this,{providerId:t,isOAuthProvider:!0}),this.Hb={},this.ob=(Jr(t)||{}).Ja||null,this.nb=null}function bo(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new S("argument-error",'SAML provider IDs must be prefixed with "saml."');go.call(this,t,[])}function yo(t){go.call(this,t,Wr),this.a=[]}function wo(){yo.call(this,"facebook.com")}function Io(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var n=t;return m(t)&&(n=t.accessToken),(new wo).credential({accessToken:n})}function To(){yo.call(this,"github.com")}function Eo(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var n=t;return m(t)&&(n=t.accessToken),(new To).credential({accessToken:n})}function Ao(){yo.call(this,"google.com"),this.Ca("profile")}function ko(t,n){var e=t;return m(t)&&(e=t.idToken,n=t.accessToken),(new Ao).credential({idToken:e,accessToken:n})}function So(){go.call(this,"twitter.com",Br)}function No(t,n){var e=t;if(m(e)||(e={oauthToken:t,oauthTokenSecret:n}),!e.oauthToken||!e.oauthTokenSecret)throw new S("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new po("twitter.com",e,"twitter.com")}function _o(t,n,e){this.a=t,this.f=n,Yi(this,"providerId","password"),Yi(this,"signInMethod",e===Co.EMAIL_LINK_SIGN_IN_METHOD?Co.EMAIL_LINK_SIGN_IN_METHOD:Co.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Oo(t){return t&&t.email&&t.password?new _o(t.email,t.password,t.signInMethod):null}function Co(){zi(this,{providerId:"password",isOAuthProvider:!1})}function Ro(t,n){if(!(n=Po(n)))throw new S("argument-error","Invalid email link!");return new _o(t,n.code,Co.EMAIL_LINK_SIGN_IN_METHOD)}function Po(t){return(t=_r(t=ro(t)))&&t.operation===ur?t:null}function Do(t){if(!(t.cb&&t.bb||t.La&&t.ea))throw new S("internal-error");this.a=t,Yi(this,"providerId","phone"),this.fa="phone",Yi(this,"signInMethod","phone")}function Lo(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var n={};return G(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(e){t[e]&&(n[e]=t[e])})),new Do(n)}return null}function xo(t){return t.a.La&&t.a.ea?{temporaryProof:t.a.La,phoneNumber:t.a.ea}:{sessionInfo:t.a.cb,code:t.a.bb}}function Mo(t){try{this.a=t||i.auth()}catch(n){throw new S("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().")}zi(this,{providerId:"phone",isOAuthProvider:!1})}function jo(t,n){if(!t)throw new S("missing-verification-id");if(!n)throw new S("missing-verification-code");return new Do({cb:t,bb:n})}function Uo(t){if(t.temporaryProof&&t.phoneNumber)return new Do({La:t.temporaryProof,ea:t.phoneNumber});var n=t&&t.providerId;if(!n||"password"===n)return null;var e=t&&t.oauthAccessToken,i=t&&t.oauthTokenSecret,r=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(n){case"google.com":return ko(o,e);case"facebook.com":return Io(e);case"github.com":return Eo(e);case"twitter.com":return No(e,i);default:return e||i||o||a?a?0==n.indexOf("saml.")?new ho(n,a):new po(n,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},n):new yo(n).credential({idToken:o,accessToken:e,rawNonce:r}):null}}catch(s){return null}}function Vo(t){if(!t.isOAuthProvider)throw new S("invalid-oauth-provider")}function Fo(t,n,e,i,r,o,a){if(this.c=t,this.b=n||null,this.g=e||null,this.f=i||null,this.i=o||null,this.h=a||null,this.a=r||null,!this.g&&!this.a)throw new S("invalid-auth-event");if(this.g&&this.a)throw new S("invalid-auth-event");if(this.g&&!this.f)throw new S("invalid-auth-event")}function Ko(t){return(t=t||{}).type?new Fo(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&N(t.error),t.postBody,t.tenantId):null}function qo(){this.b=null,this.a=[]}oo.prototype.Ha=function(){return this.a?On(this.a):On(this.b)},oo.prototype.w=function(){return this.type==ao?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},uo.prototype.ja=function(){},uo.prototype.b=function(){},uo.prototype.c=function(){},uo.prototype.w=function(){},ho.prototype.ja=function(t){return ys(t,lo(this))},ho.prototype.b=function(t,n){var e=lo(this);return e.idToken=n,ws(t,e)},ho.prototype.c=function(t,n){return co(Is(t,lo(this)),n)},ho.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},po.prototype.ja=function(t){return ys(t,vo(this))},po.prototype.b=function(t,n){var e=vo(this);return e.idToken=n,ws(t,e)},po.prototype.c=function(t,n){return co(Is(t,vo(this)),n)},po.prototype.w=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},go.prototype.Ka=function(t){return this.Hb=vt(t),this},k(bo,go),k(yo,go),yo.prototype.Ca=function(t){return J(this.a,t)||this.a.push(t),this},yo.prototype.Pb=function(){return Z(this.a)},yo.prototype.credential=function(t,n){var e;if(!(e=m(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:n||null}).idToken&&!e.accessToken)throw new S("argument-error","credential failed: must provide the ID token and/or the access token.");return new po(this.providerId,e,this.providerId)},k(wo,yo),Yi(wo,"PROVIDER_ID","facebook.com"),Yi(wo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),k(To,yo),Yi(To,"PROVIDER_ID","github.com"),Yi(To,"GITHUB_SIGN_IN_METHOD","github.com"),k(Ao,yo),Yi(Ao,"PROVIDER_ID","google.com"),Yi(Ao,"GOOGLE_SIGN_IN_METHOD","google.com"),k(So,go),Yi(So,"PROVIDER_ID","twitter.com"),Yi(So,"TWITTER_SIGN_IN_METHOD","twitter.com"),_o.prototype.ja=function(t){return this.signInMethod==Co.EMAIL_LINK_SIGN_IN_METHOD?eu(t,Os,{email:this.a,oobCode:this.f}):eu(t,$s,{email:this.a,password:this.f})},_o.prototype.b=function(t,n){return this.signInMethod==Co.EMAIL_LINK_SIGN_IN_METHOD?eu(t,Cs,{idToken:n,email:this.a,oobCode:this.f}):eu(t,Hs,{idToken:n,email:this.a,password:this.f})},_o.prototype.c=function(t,n){return co(this.ja(t),n)},_o.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},zi(Co,{PROVIDER_ID:"password"}),zi(Co,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),zi(Co,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Do.prototype.ja=function(t){return t.eb(xo(this))},Do.prototype.b=function(t,n){var e=xo(this);return e.idToken=n,eu(t,Qs,e)},Do.prototype.c=function(t,n){var e=xo(this);return e.operation="REAUTH",co(t=eu(t,tu,e),n)},Do.prototype.w=function(){var t={providerId:"phone"};return this.a.cb&&(t.verificationId=this.a.cb),this.a.bb&&(t.verificationCode=this.a.bb),this.a.La&&(t.temporaryProof=this.a.La),this.a.ea&&(t.phoneNumber=this.a.ea),t},Mo.prototype.eb=function(t,n){var e=this.a.a;return On(n.verify()).then((function(i){if("string"!=typeof i)throw new S("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(n.type){case"recaptcha":var r=m(t)?t.session:null,o=m(t)?t.phoneNumber:t;return(r&&r.type==ao?r.Ha().then((function(t){return function(t,n){return eu(t,Bs,n).then((function(t){return t.phoneSessionInfo.sessionInfo}))}(e,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:i}})})):r&&r.type==so?r.Ha().then((function(n){return function(t,n){return eu(t,Ws,n).then((function(t){return t.phoneResponseInfo.sessionInfo}))}(e,{mfaPendingCredential:n,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}})})):function(t,n){return eu(t,Ks,n)}(e,{phoneNumber:o,recaptchaToken:i})).then((function(t){return"function"==typeof n.reset&&n.reset(),t}),(function(t){throw"function"==typeof n.reset&&n.reset(),t}));default:throw new S("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},zi(Mo,{PROVIDER_ID:"phone"}),zi(Mo,{PHONE_SIGN_IN_METHOD:"phone"}),Fo.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},Fo.prototype.S=function(){return this.h},Fo.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var Ho,Go=null;function Bo(t){var n="unauthorized-domain",e=void 0,i=Ve(t);t=i.a,"chrome-extension"==(i=i.f)?e=qt("This chrome extension ID (chrome-extension://%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):"http"==i||"https"==i?e=qt("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):n="operation-not-supported-in-this-environment",S.call(this,n,e)}function Wo(t,n,e){S.call(this,t,e),(t=n||{}).Ib&&Yi(this,"email",t.Ib),t.ea&&Yi(this,"phoneNumber",t.ea),t.credential&&Yi(this,"credential",t.credential),t.Yb&&Yi(this,"tenantId",t.Yb)}function Xo(t){if(t.code){var n=t.code||"";0==n.indexOf(O)&&(n=n.substring(O.length));var e={credential:Uo(t),Yb:t.tenantId};if(t.email)e.Ib=t.email;else if(t.phoneNumber)e.ea=t.phoneNumber;else if(!e.credential)return new S(n,t.message||void 0);return new Wo(n,e,t.message)}return null}function Jo(){}function Yo(t){return t.c||(t.c=t.b())}function zo(){}function $o(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var n=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],e=0;e<n.length;e++){var i=n[e];try{return new ActiveXObject(i),t.f=i}catch(r){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function Zo(){}function Qo(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=T(this.pc,this),this.a.onerror=T(this.Rb,this),this.a.onprogress=T(this.qc,this),this.a.ontimeout=T(this.uc,this)}function ta(t,n){t.readyState=n,t.onreadystatechange&&t.onreadystatechange()}function na(t,n,e){this.reset(t,n,e,void 0,void 0)}k(Bo,S),k(Wo,S),Wo.prototype.w=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var n=this.credential&&this.credential.w();return n&&gt(t,n),t},Wo.prototype.toJSON=function(){return this.w()},Jo.prototype.c=null,k(zo,Jo),zo.prototype.a=function(){var t=$o(this);return t?new ActiveXObject(t):new XMLHttpRequest},zo.prototype.b=function(){var t={};return $o(this)&&(t[0]=!0,t[1]=!0),t},Ho=new zo,k(Zo,Jo),Zo.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Qo;throw Error("Unsupported browser")},Zo.prototype.b=function(){return{}},(n=Qo.prototype).open=function(t,n,e){if(null!=e&&!e)throw Error("Only async requests are supported.");this.a.open(t,n)},n.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},n.abort=function(){this.a.abort()},n.setRequestHeader=function(){},n.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},n.pc=function(){this.status=200,this.response=this.responseText=this.a.responseText,ta(this,4)},n.Rb=function(){this.status=500,this.response=this.responseText="",ta(this,4)},n.uc=function(){this.Rb()},n.qc=function(){this.status=200,ta(this,1)},n.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},na.prototype.a=null;function ea(t){this.f=t,this.b=this.c=this.a=null}function ia(t,n){this.name=t,this.value=n}na.prototype.reset=function(t,n,e,i,r){"number"==typeof r||0,i||A(),delete this.a},ia.prototype.toString=function(){return this.name};var ra=new ia("SEVERE",1e3),oa=new ia("WARNING",900),aa=new ia("CONFIG",700),sa=new ia("FINE",500);ea.prototype.log=function(t,n,e){if(t.value>=function t(n){return n.c?n.c:n.a?t(n.a):(M("Root logger has no level set."),null)}(this).value)for(v(n)&&(n=n()),t=new na(t,String(n),this.f),e&&(t.a=e),e=this;e;)e=e.a};var ua={},ca=null;function ha(t){var n;if(ca||(ca=new ea(""),ua[""]=ca,ca.c=aa),!(n=ua[t])){n=new ea(t);var e=t.lastIndexOf("."),i=t.substr(e+1);(e=ha(t.substr(0,e))).b||(e.b={}),e.b[i]=n,n.a=e,ua[t]=n}return n}function la(t,n){t&&t.log(sa,n,void 0)}function fa(t){this.f=t}function da(t){Ie.call(this),this.o=t,this.readyState=pa,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=ha("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}k(fa,Jo),fa.prototype.a=function(){return new da(this.f)},fa.prototype.b=function(t){return function(){return t}}({}),k(da,Ie);var pa=0;function va(t){t.c.read().then(t.oc.bind(t)).catch(t.Ta.bind(t))}function ma(t,n){n&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,ga(t)}function ga(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ba(t){Ie.call(this),this.headers=new Oe,this.O=t||null,this.c=!1,this.A=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.G=!1,this.g=0,this.o=null,this.m=ya,this.u=this.R=!1}(n=da.prototype).open=function(t,n){if(this.readyState!=pa)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=n,this.readyState=1,ga(this)},n.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var n={headers:this.i,method:this.m,credentials:void 0,cache:void 0};t&&(n.body=t),this.o.fetch(new Request(this.g,n)).then(this.tc.bind(this),this.Ta.bind(this))},n.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,ma(this,!1)),this.readyState=pa},n.tc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,ga(this)),this.a&&(this.readyState=3,ga(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.rc.bind(this),this.Ta.bind(this)):void 0!==c.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,va(this)):t.text().then(this.sc.bind(this),this.Ta.bind(this)))))},n.oc=function(t){if(this.a){var n=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});n&&(this.response=this.responseText+=n),t.done?ma(this,!0):ga(this),3==this.readyState&&va(this)}},n.sc=function(t){this.a&&(this.response=this.responseText=t,ma(this,!0))},n.rc=function(t){this.a&&(this.response=t,ma(this,!0))},n.Ta=function(t){var n=this.h;n&&n.log(oa,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&ma(this,!0)},n.setRequestHeader=function(t,n){this.i.append(t,n)},n.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(oa,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},n.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(oa,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var n=this.b.entries(),e=n.next();!e.done;)e=e.value,t.push(e[0]+": "+e[1]),e=n.next();return t.join("\r\n")},k(ba,Ie);var ya="";ba.prototype.b=ha("goog.net.XhrIo");var wa=/^https?$/i,Ia=["POST","PUT"];function Ta(t,n,e,i,r){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+n);e=e?e.toUpperCase():"GET",t.l=n,t.h="",t.P=e,t.G=!1,t.c=!0,t.a=t.O?t.O.a():Ho.a(),t.A=t.O?Yo(t.O):Yo(Ho),t.a.onreadystatechange=T(t.Ub,t);try{la(t.b,Ra(t,"Opening Xhr")),t.N=!0,t.a.open(e,String(n),!0),t.N=!1}catch(a){return la(t.b,Ra(t,"Error opening Xhr: "+a.message)),void Aa(t,a)}n=i||"";var o=new Oe(t.headers);r&&function(t,n){if(t.forEach&&"function"==typeof t.forEach)t.forEach(n,void 0);else if(p(t)||"string"==typeof t)G(t,n,void 0);else for(var e=_e(t),i=Ne(t),r=i.length,o=0;o<r;o++)n.call(void 0,i[o],e&&e[o],t)}(r,(function(t,n){o.set(n,t)})),r=function(t){t:{for(var n=Ea,e=t.length,i="string"==typeof t?t.split(""):t,r=0;r<e;r++)if(r in i&&n.call(void 0,i[r],r,t)){n=r;break t}n=-1}return 0>n?null:"string"==typeof t?t.charAt(n):t[n]}(o.Y()),i=c.FormData&&n instanceof c.FormData,!J(Ia,e)||r||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(t,n){this.a.setRequestHeader(n,t)}),t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.R&&(t.a.withCredentials=t.R);try{_a(t),0<t.g&&(t.u=function(t){return Jt&&an(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),la(t.b,Ra(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.u)),t.u?(t.a.timeout=t.g,t.a.ontimeout=T(t.Ma,t)):t.o=ke(t.Ma,t.g,t)),la(t.b,Ra(t,"Sending request")),t.i=!0,t.a.send(n),t.i=!1}catch(a){la(t.b,Ra(t,"Send error: "+a.message)),Aa(t,a)}}function Ea(t){return"content-type"==t.toLowerCase()}function Aa(t,n){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=n,ka(t),Na(t)}function ka(t){t.G||(t.G=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function Sa(t){if(t.c&&void 0!==u)if(t.A[1]&&4==Oa(t)&&2==Ca(t))la(t.b,Ra(t,"Local request error detected and ignored"));else if(t.i&&4==Oa(t))ke(t.Ub,0,t);else if(t.dispatchEvent("readystatechange"),4==Oa(t)){la(t.b,Ra(t,"Request complete")),t.c=!1;try{var n,e=Ca(t);t:switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(n=i)){var r;if(r=0===e){var o=String(t.l).match(Pe)[1]||null;if(!o&&c.self&&c.self.location){var a=c.self.location.protocol;o=a.substr(0,a.length-1)}r=!wa.test(o?o.toLowerCase():"")}n=r}if(n)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var s=2<Oa(t)?t.a.statusText:""}catch(h){la(t.b,"Can not get status: "+h.message),s=""}t.h=s+" ["+Ca(t)+"]",ka(t)}}finally{Na(t)}}}function Na(t,n){if(t.a){_a(t);var e=t.a,i=t.A[0]?f:null;t.a=null,t.A=null,n||t.dispatchEvent("ready");try{e.onreadystatechange=i}catch(r){(t=t.b)&&t.log(ra,"Problem encountered resetting onreadystatechange: "+r.message,void 0)}}}function _a(t){t.a&&t.u&&(t.a.ontimeout=null),t.o&&(c.clearTimeout(t.o),t.o=null)}function Oa(t){return t.a?t.a.readyState:0}function Ca(t){try{return 2<Oa(t)?t.a.status:-1}catch(n){return-1}}function Ra(t,n){return n+" ["+t.P+" "+t.l+" "+Ca(t)+"]"}function Pa(t){var n=Ha;this.g=[],this.u=n,this.o=t||null,this.f=this.a=!1,this.c=void 0,this.m=this.A=this.i=!1,this.h=0,this.b=null,this.l=0}function Da(t,n,e){t.a=!0,t.c=e,t.f=!n,ja(t)}function La(t){if(t.a){if(!t.m)throw new Ua(t);t.m=!1}}function xa(t,n,e,i){t.g.push([n,e,i]),t.a&&ja(t)}function Ma(t){return X(t.g,(function(t){return v(t[1])}))}function ja(t){if(t.h&&t.a&&Ma(t)){var n=t.h,e=Ka[n];e&&(c.clearTimeout(e.a),delete Ka[n]),t.h=0}t.b&&(t.b.l--,delete t.b),n=t.c;for(var i=e=!1;t.g.length&&!t.i;){var r=t.g.shift(),o=r[0],a=r[1];if(r=r[2],o=t.f?a:o)try{var s=o.call(r||t.o,n);void 0!==s&&(t.f=t.f&&(s==n||s instanceof Error),t.c=n=s),(D(n)||"function"==typeof c.Promise&&n instanceof c.Promise)&&(i=!0,t.i=!0)}catch(u){n=u,t.f=!0,Ma(t)||(e=!0)}}t.c=n,i&&(s=T(t.v,t,!0),i=T(t.v,t,!1),n instanceof Pa?(xa(n,s,i),n.A=!0):n.then(s,i)),e&&(n=new Fa(n),Ka[n.a]=n,t.h=n.a)}function Ua(){L.call(this)}function Va(){L.call(this)}function Fa(t){this.a=c.setTimeout(T(this.c,this),0),this.b=t}(n=ba.prototype).Ma=function(){void 0!==u&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",la(this.b,Ra(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},n.abort=function(){this.a&&this.c&&(la(this.b,Ra(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Na(this))},n.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Na(this,!0)),ba.$a.Da.call(this)},n.Ub=function(){this.xa||(this.N||this.i||this.f?Sa(this):this.Ic())},n.Ic=function(){Sa(this)},n.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ya:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(ra,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(n){return la(this.b,"Can not get response: "+n.message),null}},Pa.prototype.cancel=function(t){if(this.a)this.c instanceof Pa&&this.c.cancel();else{if(this.b){var n=this.b;delete this.b,t?n.cancel(t):(n.l--,0>=n.l&&n.cancel())}this.u?this.u.call(this.o,this):this.m=!0,this.a||(t=new Va(this),La(this),Da(this,!1,t))}},Pa.prototype.v=function(t,n){this.i=!1,Da(this,t,n)},Pa.prototype.then=function(t,n,e){var i,r,o=new Tn((function(t,n){i=t,r=n}));return xa(this,i,(function(t){t instanceof Va?o.cancel():r(t)})),o.then(t,n,e)},Pa.prototype.$goog_Thenable=!0,k(Ua,L),Ua.prototype.message="Deferred has already fired",Ua.prototype.name="AlreadyCalledError",k(Va,L),Va.prototype.message="Deferred was canceled",Va.prototype.name="CanceledError",Fa.prototype.c=function(){throw delete Ka[this.a],this.b};var Ka={};function qa(t){var n={},e=n.document||document,i=kt(t).toString(),r=pn(document,"SCRIPT"),o={Vb:r,Ma:void 0},a=new Pa(o),s=null,u=null!=n.timeout?n.timeout:5e3;return 0<u&&(s=window.setTimeout((function(){Ga(r,!0);var t=new Xa(Wa,"Timeout reached for loading script "+i);La(a),Da(a,!1,t)}),u),o.Ma=s),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(Ga(r,n.wd||!1,s),La(a),Da(a,!0,null))},r.onerror=function(){Ga(r,!0,s);var t=new Xa(Ba,"Error while loading script "+i);La(a),Da(a,!1,t)},gt(o=n.attributes||{},{type:"text/javascript",charset:"UTF-8"}),cn(r,o),function(t,n){bt(t,"HTMLScriptElement"),t.src=kt(n),null===l&&(l=(n=(n=c.document).querySelector&&n.querySelector("script[nonce]"))&&(n=n.nonce||n.getAttribute("nonce"))&&h.test(n)?n:""),(n=l)&&t.setAttribute("nonce",n)}(r,t),function(t){var n;return(n=(t||document).getElementsByTagName("HEAD"))&&0!=n.length?n[0]:t.documentElement}(e).appendChild(r),a}function Ha(){if(this&&this.Vb){var t=this.Vb;t&&"SCRIPT"==t.tagName&&Ga(t,!0,this.Ma)}}function Ga(t,n,e){null!=e&&c.clearTimeout(e),t.onload=f,t.onerror=f,t.onreadystatechange=f,n&&window.setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),0)}var Ba=0,Wa=1;function Xa(t,n){var e="Jsloader error (code #"+t+")";n&&(e+=": "+n),L.call(this,e),this.code=t}function Ja(t){this.f=t}function Ya(t,n,e){if(this.c=t,t=n||{},this.l=t.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.v=t.secureTokenTimeout||Za,this.g=vt(t.secureTokenHeaders||Qa),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.m=t.firebaseTimeout||ts,this.a=vt(t.firebaseHeaders||ns),e&&(this.a["X-Client-Version"]=e,this.g["X-Client-Version"]=e),e="Node"==wi(),!(e=c.XMLHttpRequest||e&&i.INTERNAL.node&&i.INTERNAL.node.XMLHttpRequest)&&!yi())throw new S("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,yi()?this.f=new fa(self):Ii()?this.f=new Ja(e):this.f=new Zo,this.b=null}k(Xa,L),k(Ja,Jo),Ja.prototype.a=function(){return new this.f},Ja.prototype.b=function(){return{}};var za,$a="idToken",Za=new Fi(3e4,6e4),Qa={"Content-Type":"application/x-www-form-urlencoded"},ts=new Fi(3e4,6e4),ns={"Content-Type":"application/json"};function es(t,n){n?t.a["X-Firebase-Locale"]=n:delete t.a["X-Firebase-Locale"]}function is(t,n){n&&(t.l=rs("https://securetoken.googleapis.com/v1/token",n),t.h=rs("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",n),t.i=rs("https://identitytoolkit.googleapis.com/v2/",n))}function rs(t,n){return t=Ve(t),n=Ve(n.url),t.c=t.a+t.c,Le(t,n.f),t.a=n.a,xe(t,n.g),t.toString()}function os(t,n){n?(t.a["X-Client-Version"]=n,t.g["X-Client-Version"]=n):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function as(t,n,e,i,r,o,a){(function(){var t=Ni();return!((t=Ai(t)!=Ei?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t)&&(!Jt||!rn||9<rn)})()||yi()?t=T(t.u,t):(za||(za=new Tn((function(t,n){!function(t,n){if(((window.gapi||{}).client||{}).request)t();else{c[us]=function(){((window.gapi||{}).client||{}).request?t():n(Error("CORS_UNSUPPORTED"))},function(t,n){xa(t,null,n,void 0)}(qa(St(ss,{onload:us})),(function(){n(Error("CORS_UNSUPPORTED"))}))}}(t,n)}))),t=T(t.o,t)),t(n,e,i,r,o,a)}Ya.prototype.S=function(){return this.b},Ya.prototype.u=function(t,n,e,i,r,o){if(yi()&&(void 0===c.fetch||void 0===c.Headers||void 0===c.Request))throw new S("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 a=new ba(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout((function(){a.dispatchEvent("timeout")}),o)}Te(a,"complete",(function(){s&&clearTimeout(s);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(n){return la(t.b,"Can not get responseText: "+n.message),""}}(this))||null}catch(e){t=null}n&&n(t)})),Ee(a,"ready",(function(){s&&clearTimeout(s),Wn(this)})),Ee(a,"timeout",(function(){s&&clearTimeout(s),Wn(this),n&&n(null)})),Ta(a,t,e,i,r)};var ss=new yt(Tt,"https://apis.google.com/js/client.js?onload=%{onload}"),us="__fcb"+Math.floor(1e6*Math.random()).toString();function cs(t,n,e,i,r,o,a){var s=Ve(n+e);je(s,"key",t.c),a&&je(s,"cb",A().toString());var u="GET"==i;if(u)for(var c in r)r.hasOwnProperty(c)&&je(s,c,r[c]);return new Tn((function(n,e){as(t,s.toString(),(function(t){t?t.error?e(ru(t,o||{})):n(t):e(new S("network-request-failed"))}),i,u?void 0:ii(xi(r)),t.a,t.m.get())}))}function hs(t){if("string"!=typeof(t=t.email)||!vi.test(t))throw new S("invalid-email")}function ls(t){"email"in t&&hs(t)}function fs(t){if(!t[$a]){if(t.mfaPendingCredential)throw new S("multi-factor-auth-required",null,vt(t));throw new S("internal-error")}}function ds(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new S("internal-error")}else{if(!t.sessionInfo)throw new S("missing-verification-id");if(!t.code)throw new S("missing-verification-code")}}Ya.prototype.o=function(t,n,e,i,r){var o=this;za.then((function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:e,body:i,headers:r,authType:"none",callback:function(t){window.gapi.auth.setToken(a),n&&n(t)}})})).s((function(t){n&&n({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})}))},Ya.prototype.yb=function(){return eu(this,Gs,{})},Ya.prototype.Ab=function(t,n){return eu(this,qs,{idToken:t,email:n})},Ya.prototype.Bb=function(t,n){return eu(this,Hs,{idToken:t,password:n})};var ps={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function vs(t){if(!t.phoneVerificationInfo)throw new S("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new S("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new S("missing-verification-code")}function ms(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new S("internal-error")}function gs(t,n){return n.oauthIdToken&&n.providerId&&0==n.providerId.indexOf("oidc.")&&!n.pendingToken&&(t.sessionId?n.nonce=t.sessionId:t.postBody&&(Qe(t=new Ye(t.postBody),"nonce")&&(n.nonce=t.get("nonce")))),n}function bs(t){var n=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",n=Xo(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",n=Xo(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",n=Xo(t)):t.errorMessage&&(n=iu(t.errorMessage)),n)throw n;fs(t)}function ys(t,n){return n.returnIdpCredential=!0,eu(t,Xs,n)}function ws(t,n){return n.returnIdpCredential=!0,eu(t,Ys,n)}function Is(t,n){return n.returnIdpCredential=!0,n.autoCreate=!1,eu(t,Js,n)}function Ts(t){if(!t.oobCode)throw new S("invalid-action-code")}(n=Ya.prototype).Cb=function(t,n){var e={idToken:t},i=[];return dt(ps,(function(t,r){var o=n[r];null===o?i.push(t):r in n&&(e[r]=o)})),i.length&&(e.deleteAttribute=i),eu(this,qs,e)},n.ub=function(t,n){return gt(t={requestType:"PASSWORD_RESET",email:t},n),eu(this,js,t)},n.vb=function(t,n){return gt(t={requestType:"EMAIL_SIGNIN",email:t},n),eu(this,Ls,t)},n.tb=function(t,n){return gt(t={requestType:"VERIFY_EMAIL",idToken:t},n),eu(this,xs,t)},n.Db=function(t,n,e){return gt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:n},e),eu(this,Ms,t)},n.eb=function(t){return eu(this,Zs,t)},n.mb=function(t,n){return eu(this,Fs,{oobCode:t,newPassword:n})},n.Qa=function(t){return eu(this,As,{oobCode:t})},n.ib=function(t){return eu(this,Es,{oobCode:t})};var Es={endpoint:"setAccountInfo",B:Ts,Z:"email",C:!0},As={endpoint:"resetPassword",B:Ts,F:function(t){var n=t.requestType;if(!n||!t.email&&"EMAIL_SIGNIN"!=n&&"VERIFY_AND_CHANGE_EMAIL"!=n)throw new S("internal-error")},C:!0},ks={endpoint:"signupNewUser",B:function(t){if(hs(t),!t.password)throw new S("weak-password")},F:fs,U:!0,C:!0},Ss={endpoint:"createAuthUri",C:!0},Ns={endpoint:"deleteAccount",M:["idToken"]},_s={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],B:function(t){if("array"!=d(t.deleteProvider))throw new S("internal-error")}},Os={endpoint:"emailLinkSignin",M:["email","oobCode"],B:hs,F:fs,U:!0,C:!0},Cs={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],B:hs,F:fs,U:!0},Rs={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],B:vs,F:fs,C:!0,Na:!0},Ps={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],B:vs,F:fs,C:!0,Na:!0},Ds={endpoint:"getAccountInfo"},Ls={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new S("internal-error");hs(t)},Z:"email",C:!0},xs={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],B:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new S("internal-error")},Z:"email",C:!0},Ms={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],B:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new S("internal-error")},Z:"email",C:!0},js={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(t){if("PASSWORD_RESET"!=t.requestType)throw new S("internal-error");hs(t)},Z:"email",C:!0},Us={kb:!0,endpoint:"getProjectConfig",Tb:"GET"},Vs={kb:!0,endpoint:"getRecaptchaParam",Tb:"GET",F:function(t){if(!t.recaptchaSiteKey)throw new S("internal-error")}},Fs={endpoint:"resetPassword",B:Ts,Z:"email",C:!0},Ks={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Z:"sessionInfo",C:!0},qs={endpoint:"setAccountInfo",M:["idToken"],B:ls,U:!0},Hs={endpoint:"setAccountInfo",M:["idToken"],B:function(t){if(ls(t),!t.password)throw new S("weak-password")},F:fs,U:!0},Gs={endpoint:"signupNewUser",F:fs,U:!0,C:!0},Bs={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],B:function(t){if(!t.phoneEnrollmentInfo)throw new S("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new S("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new S("missing-app-credential")},F:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new S("internal-error")},C:!0,Na:!0},Ws={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],B:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new S("missing-app-credential")},F:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new S("internal-error")},C:!0,Na:!0},Xs={endpoint:"verifyAssertion",B:ms,Xa:gs,F:bs,U:!0,C:!0},Js={endpoint:"verifyAssertion",B:ms,Xa:gs,F:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new S("user-not-found");if(t.errorMessage)throw iu(t.errorMessage);fs(t)},U:!0,C:!0},Ys={endpoint:"verifyAssertion",B:function(t){if(ms(t),!t.idToken)throw new S("internal-error")},Xa:gs,F:bs,U:!0},zs={endpoint:"verifyCustomToken",B:function(t){if(!t.token)throw new S("invalid-custom-token")},F:fs,U:!0,C:!0},$s={endpoint:"verifyPassword",B:function(t){if(hs(t),!t.password)throw new S("wrong-password")},F:fs,U:!0,C:!0},Zs={endpoint:"verifyPhoneNumber",B:ds,F:fs,C:!0},Qs={endpoint:"verifyPhoneNumber",B:function(t){if(!t.idToken)throw new S("internal-error");ds(t)},F:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Xo(t);fs(t)}},tu={Gb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:ds,F:fs,C:!0},nu={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],F:function(t){if(!!t[$a]^!!t.refreshToken)throw new S("internal-error")},C:!0,Na:!0};function eu(t,n,e){if(!function(t,n){if(!n||!n.length)return!0;if(!t)return!1;for(var e=0;e<n.length;e++){var i=t[n[e]];if(null==i||""===i)return!1}return!0}(e,n.M))return Cn(new S("internal-error"));var i,r=!!n.Na,o=n.Tb||"POST";return On(e).then(n.B).then((function(){return n.U&&(e.returnSecureToken=!0),n.C&&t.b&&void 0===e.tenantId&&(e.tenantId=t.b),cs(t,r?t.i:t.h,n.endpoint,o,e,n.Gb,n.kb||!1)})).then((function(t){return i=t,n.Xa?n.Xa(e,i):i})).then(n.F).then((function(){if(!n.Z)return i;if(!(n.Z in i))throw new S("internal-error");return i[n.Z]}))}function iu(t){return ru({error:{errors:[{message:t}],code:400,message:t}})}function ru(t,n){var e=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(e=i[e]?new S(i[e]):null)return e;for(var r in e=t.error&&t.error.message||"",gt(i={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",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",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",INVALID_TENANT_ID:"invalid-tenant-id",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"},n||{}),n=(n=e.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<n.length?n[1]:void 0,i)if(0===e.indexOf(r))return new S(i[r],n);return!n&&t&&(n=Li(t)),new S("internal-error",n)}function ou(t){this.b=t,this.a=null,this.qb=function(t){return(cu||(cu=new Tn((function(t,n){function e(){Vi(),_i("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){Vi(),n(Error("Network Error"))},timeout:su.get()})}if(_i("gapi.iframes.Iframe"))t();else if(_i("gapi.load"))e();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();c[i]=function(){_i("gapi.load")?e():n(Error("Network Error"))},On(qa(i=St(au,{onload:i}))).s((function(){n(Error("Network Error"))}))}})).s((function(t){throw cu=null,t})))).then((function(){return new Tn((function(n,e){_i("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:_i("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(i){function r(){clearTimeout(o),n()}t.a=i,t.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){e(Error("Network Error"))}),uu.get());i.ping(r).then(r,(function(){e(Error("Network Error"))}))}))}))}))}(this)}var au=new yt(Tt,"https://apis.google.com/js/api.js?onload=%{onload}"),su=new Fi(3e4,6e4),uu=new Fi(5e3,15e3),cu=null;function hu(t,n,e,i){this.l=t,this.h=n,this.i=e,this.g=i,this.f=null,this.g?t=Fe((t=Ve(this.g.url)).f,t.a,t.g,"/emulator/auth/iframe"):t=Fe("https",this.l,null,"/__/auth/iframe"),this.a=t,je(this.a,"apiKey",this.h),je(this.a,"appName",this.i),this.b=null,this.c=[]}function lu(t,n,e,i,r,o){this.u=t,this.o=n,this.c=e,this.v=i,this.m=o,this.i=this.g=this.l=null,this.a=r,this.h=this.f=null}function fu(t){try{return i.app(t).auth().Ga()}catch(n){return[]}}function du(t,n,e,i,r,o){this.o=t,this.g=n,this.b=e,this.f=o,this.c=i||null,this.i=r||null,this.l=this.u=this.A=null,this.h=[],this.v=this.a=null}function pu(t){var n=ci();return function(t){return eu(t,Us,{}).then((function(t){return t.authorizedDomains||[]}))}(t).then((function(t){t:{var e=Ve(n),i=e.f;e=e.a;for(var r=0;r<t.length;r++){var o=t[r],a=e,s=i;if(0==o.indexOf("chrome-extension://")?a=Ve(o).a==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:pi.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new Bo(ci())}))}function vu(t){return t.v||(t.v=mi().then((function(){if(!t.u){var n=t.c,e=t.i,i=fu(t.b),r=new hu(t.o,t.g,t.b,t.f);r.f=n,r.b=e,r.c=Z(i||[]),t.u=r.toString()}t.m=new ou(t.u),function(t){if(!t.m)throw Error("IfcHandler must be initialized!");!function(t,n){t.qb.then((function(){t.a.register("authEvent",n,_i("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(t.m,(function(n){var e={};if(n&&n.authEvent){var i=!1;for(n=Ko(n.authEvent),e=0;e<t.h.length;e++)i=t.h[e](n)||i;return(e={}).status=i?"ACK":"ERROR",On(e)}return e.status="ERROR",On(e)}))}(t)}))),t.v}function mu(t){return t.l||(t.A=t.c?Si(t.c,fu(t.b)):null,t.l=new Ya(t.g,P(t.i),t.A),t.f&&is(t.l,t.f)),t.l}function gu(t,n,e,i,r,o,a,s,u,c,h,l){return(t=new lu(t,n,e,i,r,l)).l=o,t.g=a,t.i=s,t.b=vt(u||null),t.f=c,t.xb(h).toString()}function bu(t){if(this.a=t||i.INTERNAL.reactNative&&i.INTERNAL.reactNative.AsyncStorage,!this.a)throw new S("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function yu(t){this.b=t,this.a={},this.f=T(this.c,this)}hu.prototype.toString=function(){return this.f?je(this.a,"v",this.f):Ze(this.a.b,"v"),this.b?je(this.a,"eid",this.b):Ze(this.a.b,"eid"),this.c.length?je(this.a,"fw",this.c.join(",")):Ze(this.a.b,"fw"),this.a.toString()},lu.prototype.xb=function(t){return this.h=t,this},lu.prototype.toString=function(){if(this.m){var t=Ve(this.m.url);t=Fe(t.f,t.a,t.g,"/emulator/auth/handler")}else t=Fe("https",this.u,null,"/__/auth/handler");if(je(t,"apiKey",this.o),je(t,"appName",this.c),je(t,"authType",this.v),this.a.isOAuthProvider){var n=this.a;try{var e=i.app(this.c).auth().ka()}catch(u){e=null}for(var r in n.nb=e,je(t,"providerId",this.a.providerId),n=xi((e=this.a).Hb))n[r]=n[r].toString();r=e.Pc,n=vt(n);for(var o=0;o<r.length;o++){var a=r[o];a in n&&delete n[a]}e.ob&&e.nb&&!n[e.ob]&&(n[e.ob]=e.nb),pt(n)||je(t,"customParameters",Li(n))}if("function"==typeof this.a.Pb&&((e=this.a.Pb()).length&&je(t,"scopes",e.join(","))),this.l?je(t,"redirectUrl",this.l):Ze(t.b,"redirectUrl"),this.g?je(t,"eventId",this.g):Ze(t.b,"eventId"),this.i?je(t,"v",this.i):Ze(t.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Ue(t,s)&&je(t,s,this.b[s]);return this.h?je(t,"tid",this.h):Ze(t.b,"tid"),this.f?je(t,"eid",this.f):Ze(t.b,"eid"),(s=fu(this.c)).length&&je(t,"fw",s.join(",")),t.toString()},(n=du.prototype).Nb=function(t,n,e){var i=new S("popup-closed-by-user"),r=new S("web-storage-unsupported"),o=this,a=!1;return this.la().then((function(){(function(t){var n={type:"webStorageSupport"};return vu(t).then((function(){return function(t,n){return t.qb.then((function(){return new Tn((function(e){t.a.send(n.type,n,e,_i("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(t.m,n)})).then((function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()}))})(o).then((function(e){e||(t&&fi(t),n(r),a=!0)}))})).s((function(){})).then((function(){if(!a)return function(t){return new Tn((function(n){return function e(){Se(2e3).then((function(){if(t&&!t.closed)return e();n()}))}()}))}(t)})).then((function(){if(!a)return Se(e).then((function(){n(i)}))}))},n.Wb=function(){var t=Ni();return!Di(t)&&!Ui(t)},n.Sb=function(){return!1},n.Lb=function(t,n,e,i,r,o,a,s){if(!t)return Cn(new S("popup-blocked"));if(a&&!Di())return this.la().s((function(n){fi(t),r(n)})),i(),On();this.a||(this.a=pu(mu(this)));var u=this;return this.a.then((function(){var n=u.la().s((function(n){throw fi(t),r(n),n}));return i(),n})).then((function(){(Vo(e),a)||hi(gu(u.o,u.g,u.b,n,e,null,o,u.c,void 0,u.i,s,u.f),t)})).s((function(t){throw"auth/network-request-failed"==t.code&&(u.a=null),t}))},n.Mb=function(t,n,e,i){this.a||(this.a=pu(mu(this)));var r=this;return this.a.then((function(){Vo(n),hi(gu(r.o,r.g,r.b,t,n,ci(),e,r.c,void 0,r.i,i,r.f))})).s((function(t){throw"auth/network-request-failed"==t.code&&(r.a=null),t}))},n.la=function(){var t=this;return vu(this).then((function(){return t.m.qb})).s((function(){throw t.a=null,new S("network-request-failed")}))},n.Zb=function(){return!0},n.Ea=function(t){this.h.push(t)},n.Ra=function(t){z(this.h,(function(n){return n==t}))},(n=bu.prototype).get=function(t){return On(this.a.getItem(t)).then((function(t){return t&&Mi(t)}))},n.set=function(t,n){return On(this.a.setItem(t,Li(n)))},n.T=function(t){return On(this.a.removeItem(t))},n.ca=function(){},n.ia=function(){};var wu,Iu=[];function Tu(t,n,e){pt(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[n]&&(t.a[n]=[]),t.a[n].push(e)}function Eu(t){this.a=t}function Au(t){this.c=t,this.b=!1,this.a=[]}function ku(t,n,e,i){var r,o,a,s,u=e||{},c=null;if(t.b)return Cn(Error("connection_unavailable"));var h=i?800:50,l="undefined"!=typeof MessageChannel?new MessageChannel:null;return new Tn((function(e,i){l?(r=Math.floor(Math.random()*Math.pow(10,20)).toString(),l.port1.start(),a=setTimeout((function(){i(Error("unsupported_event"))}),h),c={messageChannel:l,onMessage:o=function(t){t.data.eventId===r&&("ack"===t.data.status?(clearTimeout(a),s=setTimeout((function(){i(Error("timeout"))}),3e3)):"done"===t.data.status?(clearTimeout(s),void 0!==t.data.response?e(t.data.response):i(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),i(Error("invalid_response"))))}},t.a.push(c),l.port1.addEventListener("message",o),t.c.postMessage({eventType:n,eventId:r,data:u},[l.port2])):i(Error("connection_unavailable"))})).then((function(n){return Su(t,c),n})).s((function(n){throw Su(t,c),n}))}function Su(t,n){if(n){var e=n.messageChannel,i=n.onMessage;e&&(e.port1.removeEventListener("message",i),e.port1.close()),z(t.a,(function(t){return t==n}))}}function Nu(){if(!Cu())throw new S("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=c.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.o=!1,this.h=null;var t=this;yi()&&self?(this.l=function(){var t=yi()?self:null;if(G(Iu,(function(e){e.b==t&&(n=e)})),!n){var n=new yu(t);Iu.push(n)}return n}(),Tu(this.l,"keyChanged",(function(n,e){return xu(t).then((function(n){return 0<n.length&&G(t.a,(function(t){t(n)})),{keyProcessed:J(n,e.key)}}))})),Tu(this.l,"ping",(function(){return On(["keyChanged"])}))):function(){var t=c.navigator;return t&&t.serviceWorker?On().then((function(){return t.serviceWorker.ready})).then((function(t){return t.active||null})).s((function(){return null})):On(null)}().then((function(n){(t.h=n)&&(t.g=new Au(new Eu(n)),ku(t.g,"ping",null,!0).then((function(n){n[0].fulfilled&&J(n[0].value,"keyChanged")&&(t.o=!0)})).s((function(){})))}))}function _u(t){return new Tn((function(n,e){var i=t.m.open("firebaseLocalStorageDb",1);i.onerror=function(t){try{t.preventDefault()}catch(n){}e(Error(t.target.error))},i.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(n){e(n)}},i.onsuccess=function(i){(i=i.target.result).objectStoreNames.contains("firebaseLocalStorage")?n(i):function(t){return new Tn((function(n,e){var i=t.m.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){n()},i.onerror=function(t){e(Error(t.target.error))}}))}(t).then((function(){return _u(t)})).then((function(t){n(t)})).s((function(t){e(t)}))}}))}function Ou(t){return t.v||(t.v=_u(t)),t.v}function Cu(){try{return!!c.indexedDB}catch(Wt){return!1}}function Ru(t){return t.objectStore("firebaseLocalStorage")}function Pu(t,n){return t.transaction(["firebaseLocalStorage"],n?"readwrite":"readonly")}function Du(t){return new Tn((function(n,e){t.onsuccess=function(t){t&&t.target?n(t.target.result):n()},t.onerror=function(t){e(t.target.error)}}))}function Lu(t,n){return t.g&&t.h&&function(){var t=c.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?ku(t.g,"keyChanged",{key:n},t.o).then((function(){})).s((function(){})):On()}function xu(t){return Ou(t).then((function(t){var n=Ru(Pu(t,!1));return n.getAll?Du(n.getAll()):new Tn((function(t,e){var i=[],r=n.openCursor();r.onsuccess=function(n){(n=n.target.result)?(i.push(n.value),n.continue()):t(i)},r.onerror=function(t){e(t.target.error)}}))})).then((function(n){var e={},i=[];if(0==t.b){for(i=0;i<n.length;i++)e[n[i].fbase_key]=n[i].value;i=function t(n,e){var i,r=[];for(i in n)i in e?typeof n[i]!=typeof e[i]?r.push(i):"object"==typeof n[i]&&null!=n[i]&&null!=e[i]?0<t(n[i],e[i]).length&&r.push(i):n[i]!==e[i]&&r.push(i):r.push(i);for(i in e)i in n||r.push(i);return r}(t.c,e),t.c=e}return i}))}function Mu(t){t.i&&t.i.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function ju(t){var n=this,e=null;this.a=[],this.type="indexedDB",this.c=t,this.b=On().then((function(){if(Cu()){var t=ji(),i="__sak"+t;return wu||(wu=new Nu),(e=wu).set(i,t).then((function(){return e.get(i)})).then((function(n){if(n!==t)throw Error("indexedDB not supported!");return e.T(i)})).then((function(){return e})).s((function(){return n.c}))}return n.c})).then((function(t){return n.type=t.type,t.ca((function(t){G(n.a,(function(n){n(t)}))})),t}))}function Uu(){this.a={},this.type="inMemory"}function Vu(){if(!function(){var t="Node"==wi();if(!(t=Fu()||t&&i.INTERNAL.node&&i.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==wi())throw new S("internal-error","The LocalStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=Fu()||i.INTERNAL.node.localStorage,this.type="localStorage"}function Fu(){try{var t=c.localStorage,n=ji();return t&&(t.setItem(n,"1"),t.removeItem(n)),t}catch(e){return null}}function Ku(){this.type="nullStorage"}function qu(){if(!function(){var t="Node"==wi();if(!(t=Hu()||t&&i.INTERNAL.node&&i.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==wi())throw new S("internal-error","The SessionStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=Hu()||i.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Hu(){try{var t=c.sessionStorage,n=ji();return t&&(t.setItem(n,"1"),t.removeItem(n)),t}catch(e){return null}}function Gu(){var t={};t.Browser=Xu,t.Node=Ju,t.ReactNative=Yu,t.Worker=zu,this.a=t[wi()]}yu.prototype.c=function(t){var n=t.data.eventType,e=t.data.eventId,i=this.a[n];if(i&&0<i.length){t.ports[0].postMessage({status:"ack",eventId:e,eventType:n,response:null});var r=[];G(i,(function(n){r.push(On().then((function(){return n(t.origin,t.data.data)})))})),Pn(r).then((function(i){var r=[];G(i,(function(t){r.push({fulfilled:t.Ob,value:t.value,reason:t.reason?t.reason.message:void 0})})),G(r,(function(t){for(var n in t)void 0===t[n]&&delete t[n]})),t.ports[0].postMessage({status:"done",eventId:e,eventType:n,response:r})}))}},Eu.prototype.postMessage=function(t,n){this.a.postMessage(t,n)},Au.prototype.close=function(){for(;0<this.a.length;)Su(this,this.a[0]);this.b=!0},(n=Nu.prototype).set=function(t,n){var e,i=!1,r=this;return Ou(this).then((function(n){return Du((n=Ru(Pu(e=n,!0))).get(t))})).then((function(o){var a=Ru(Pu(e,!0));return o?(o.value=n,Du(a.put(o))):(r.b++,i=!0,(o={}).fbase_key=t,o.value=n,Du(a.add(o)))})).then((function(){return r.c[t]=n,Lu(r,t)})).na((function(){i&&r.b--}))},n.get=function(t){return Ou(this).then((function(n){return Du(Ru(Pu(n,!1)).get(t))})).then((function(t){return t&&t.value}))},n.T=function(t){var n=!1,e=this;return Ou(this).then((function(i){return n=!0,e.b++,Du(Ru(Pu(i,!0)).delete(t))})).then((function(){return delete e.c[t],Lu(e,t)})).na((function(){n&&e.b--}))},n.ca=function(t){0==this.a.length&&function(t){Mu(t),function n(){t.f=setTimeout((function(){t.i=xu(t).then((function(n){0<n.length&&G(t.a,(function(t){t(n)}))})).then((function(){n()})).s((function(t){"STOP_EVENT"!=t.message&&n()}))}),800)}()}(this),this.a.push(t)},n.ia=function(t){z(this.a,(function(n){return n==t})),0==this.a.length&&Mu(this)},(n=ju.prototype).get=function(t){return this.b.then((function(n){return n.get(t)}))},n.set=function(t,n){return this.b.then((function(e){return e.set(t,n)}))},n.T=function(t){return this.b.then((function(n){return n.T(t)}))},n.ca=function(t){this.a.push(t)},n.ia=function(t){z(this.a,(function(n){return n==t}))},(n=Uu.prototype).get=function(t){return On(this.a[t])},n.set=function(t,n){return this.a[t]=n,On()},n.T=function(t){return delete this.a[t],On()},n.ca=function(){},n.ia=function(){},(n=Vu.prototype).get=function(t){var n=this;return On().then((function(){return Mi(n.a.getItem(t))}))},n.set=function(t,n){var e=this;return On().then((function(){var i=Li(n);null===i?e.T(t):e.a.setItem(t,i)}))},n.T=function(t){var n=this;return On().then((function(){n.a.removeItem(t)}))},n.ca=function(t){c.window&&ce(c.window,"storage",t)},n.ia=function(t){c.window&&fe(c.window,"storage",t)},(n=Ku.prototype).get=function(){return On(null)},n.set=function(){return On()},n.T=function(){return On()},n.ca=function(){},n.ia=function(){},(n=qu.prototype).get=function(t){var n=this;return On().then((function(){return Mi(n.a.getItem(t))}))},n.set=function(t,n){var e=this;return On().then((function(){var i=Li(n);null===i?e.T(t):e.a.setItem(t,i)}))},n.T=function(t){var n=this;return On().then((function(){n.a.removeItem(t)}))},n.ca=function(){},n.ia=function(){};var Bu,Wu,Xu={D:Vu,ab:qu},Ju={D:Vu,ab:qu},Yu={D:bu,ab:Ku},zu={D:Vu,ab:Ku},$u={qd:"local",NONE:"none",sd:"session"};function Zu(){var t=!(Ui(Ni())||!bi()),n=Di(),e=Oi();this.v=t,this.h=n,this.l=e,this.a={},Bu||(Bu=new Gu),t=Bu;try{this.g=!ui()&&Gi()||!c.indexedDB?new t.a.D:new ju(yi()?new Uu:new t.a.D)}catch(i){this.g=new Uu,this.h=!0}try{this.i=new t.a.ab}catch(i){this.i=new Uu}this.m=new Uu,this.f=T(this.Xb,this),this.b={}}function Qu(){return Wu||(Wu=new Zu),Wu}function tc(t,n){switch(n){case"session":return t.i;case"none":return t.m;default:return t.g}}function nc(t,n){return"firebase:"+t.name+(n?":"+n:"")}function ec(t,n,e){return e=nc(n,e),"local"==n.D&&(t.b[e]=null),tc(t,n.D).T(e)}function ic(t){t.c&&(clearInterval(t.c),t.c=null)}function rc(t){this.a=t,this.b=Qu()}(n=Zu.prototype).get=function(t,n){return tc(this,t.D).get(nc(t,n))},n.set=function(t,n,e){var i=nc(t,e),r=this,o=tc(this,t.D);return o.set(i,n).then((function(){return o.get(i)})).then((function(n){"local"==t.D&&(r.b[i]=n)}))},n.addListener=function(t,n,e){t=nc(t,n),this.l&&(this.b[t]=c.localStorage.getItem(t)),pt(this.a)&&(tc(this,"local").ca(this.f),this.h||(ui()||!Gi())&&c.indexedDB||!this.l||function(t){ic(t),t.c=setInterval((function(){for(var n in t.a){var e=c.localStorage.getItem(n),i=t.b[n];e!=i&&(t.b[n]=e,e=new Zn({type:"storage",key:n,target:window,oldValue:i,newValue:e,a:!0}),t.Xb(e))}}),1e3)}(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(e)},n.removeListener=function(t,n,e){t=nc(t,n),this.a[t]&&(z(this.a[t],(function(t){return t==e})),0==this.a[t].length&&delete this.a[t]),pt(this.a)&&(tc(this,"local").ia(this.f),ic(this))},n.Xb=function(t){if(t&&t.g){var n=t.a.key;if(null==n)for(var e in this.a){var i=this.b[e];void 0===i&&(i=null);var r=c.localStorage.getItem(e);r!==i&&(this.b[e]=r,this.lb(e))}else if(0==n.indexOf("firebase:")&&this.a[n]){if(void 0!==t.a.a?tc(this,"local").ia(this.f):ic(this),this.v)if(e=c.localStorage.getItem(n),(i=t.a.newValue)!==e)null!==i?c.localStorage.setItem(n,i):c.localStorage.removeItem(n);else if(this.b[n]===i&&void 0===t.a.a)return;var o=this;e=function(){void 0===t.a.a&&o.b[n]===c.localStorage.getItem(n)||(o.b[n]=c.localStorage.getItem(n),o.lb(n))},Jt&&rn&&10==rn&&c.localStorage.getItem(n)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(e,10):e()}}else G(t,T(this.lb,this))},n.lb=function(t){this.a[t]&&G(this.a[t],(function(t){t()}))};var oc,ac={name:"authEvent",D:"local"};function sc(){this.a=Qu()}function uc(t,n){this.b=cc,this.f=c.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=n,this.l=c.Int32Array?new Int32Array(64):Array(64),void 0===oc&&(oc=c.Int32Array?new Int32Array(mc):mc),this.reset()}k(uc,(function(){this.b=-1}));for(var cc=64,hc=cc-1,lc=[],fc=0;fc<hc;fc++)lc[fc]=0;var dc=$(128,lc);function pc(t){for(var n=t.f,e=t.l,i=0,r=0;r<n.length;)e[i++]=n[r]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3],r=4*i;for(n=16;64>n;n++){r=0|e[n-15],i=0|e[n-2];var o=(0|e[n-16])+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,a=(0|e[n-7])+((i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;e[n]=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],n=0;64>n;n++){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|oc[n])|0)+(0|e[n])|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 vc(t,n,e){void 0===e&&(e=n.length);var i=0,r=t.c;if("string"==typeof n)for(;i<e;)t.f[r++]=n.charCodeAt(i++),r==t.b&&(pc(t),r=0);else{if(!p(n))throw Error("message must be string or array");for(;i<e;){var o=n[i++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");t.f[r++]=o,r==t.b&&(pc(t),r=0)}}t.c=r,t.g+=e}uc.prototype.reset=function(){this.g=this.c=0,this.a=c.Int32Array?new Int32Array(this.h):Z(this.h)};var mc=[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];function gc(){uc.call(this,8,bc)}k(gc,uc);var bc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function yc(t,n,e,i,r,o){this.m=t,this.i=n,this.l=e,this.v=i||null,this.u=r||null,this.o=o,this.h=n+":"+e,this.A=new sc,this.g=new rc(this.h),this.f=null,this.b=[],this.a=this.c=null}function wc(t){return new S("invalid-cordova-configuration",t)}function Ic(t){var n=new gc;vc(n,t),t=[];var e=8*n.g;56>n.c?vc(n,dc,56-n.c):vc(n,dc,n.b-(n.c-56));for(var i=63;56<=i;i--)n.f[i]=255&e,e/=256;for(pc(n),i=e=0;i<n.i;i++)for(var r=24;0<=r;r-=8)t[e++]=n.a[i]>>r&255;return function(t){return W(t,(function(t){return 1<(t=t.toString(16)).length?t:"0"+t})).join("")}(t)}function Tc(t,n){for(var e=0;e<t.b.length;e++)try{t.b[e](n)}catch(i){}}function Ec(t){return t.f||(t.f=t.la().then((function(){return new Tn((function(n){t.Ea((function e(i){return n(i),t.Ra(e),!1})),function(t){function n(n){i=!0,r&&r.cancel(),Ac(t).then((function(i){var r=e;if(i&&n&&n.url){var o=null;-1!=(r=ro(n.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=Mi(Ue(o=Ve(r),"firebaseError")||null))?N(o):null)?new Fo(i.c,i.b,null,null,o,null,i.S()):new Fo(i.c,i.b,r,i.f,null,null,i.S())),r=o||e}Tc(t,r)}))}var e=new Fo("unknown",null,null,null,new S("no-auth-event")),i=!1,r=Se(500).then((function(){return Ac(t).then((function(){i||Tc(t,e)}))})),o=c.handleOpenURL;c.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(_i("BuildInfo.packageName",c).toLowerCase()+"://")&&n({url:t}),"function"==typeof o)try{o(t)}catch(e){console.error(e)}},Go||(Go=new qo),function(t){var n=Go;n.a.push(t),n.b||(n.b=function(t){for(var e=0;e<n.a.length;e++)n.a[e](t)},"function"==typeof(t=_i("universalLinks.subscribe",c))&&t(null,n.b))}(n)}(t)}))}))),t.f}function Ac(t){var n=null;return function(t){return t.b.get(ac,t.a).then((function(t){return Ko(t)}))}(t.g).then((function(e){return n=e,ec((e=t.g).b,ac,e.a)})).then((function(){return n}))}function kc(t){this.a=t,this.b=Qu()}(n=yc.prototype).la=function(){return this.Ia?this.Ia:this.Ia=(gi(void 0)?mi().then((function(){return new Tn((function(t,n){var e=c.document,i=setTimeout((function(){n(Error("Cordova framework is not ready."))}),1e3);e.addEventListener("deviceready",(function(){clearTimeout(i),t()}),!1)}))})):Cn(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!=typeof _i("universalLinks.subscribe",c))throw wc("cordova-universal-links-plugin-fix is not installed");if(void 0===_i("BuildInfo.packageName",c))throw wc("cordova-plugin-buildinfo is not installed");if("function"!=typeof _i("cordova.plugins.browsertab.openUrl",c))throw wc("cordova-plugin-browsertab is not installed");if("function"!=typeof _i("cordova.InAppBrowser.open",c))throw wc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new S("cordova-not-ready")}))},n.Nb=function(t,n){return n(new S("operation-not-supported-in-this-environment")),On()},n.Lb=function(){return Cn(new S("operation-not-supported-in-this-environment"))},n.Zb=function(){return!1},n.Wb=function(){return!0},n.Sb=function(){return!0},n.Mb=function(t,n,e,i){if(this.c)return Cn(new S("redirect-operation-pending"));var r=this,o=c.document,a=null,s=null,u=null,h=null;return this.c=On().then((function(){return Vo(n),Ec(r)})).then((function(){return function(t,n,e,i,r){var o=function(){for(var t=20,n=[];0<t;)n.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return n.join("")}(),a=new Fo(n,i,null,o,new S("no-auth-event"),null,r),s=_i("BuildInfo.packageName",c);if("string"!=typeof s)throw new S("invalid-cordova-configuration");var u=_i("BuildInfo.displayName",c),h={};if(Ni().toLowerCase().match(/iphone|ipad|ipod/))h.ibi=s;else{if(!Ni().toLowerCase().match(/android/))return Cn(new S("operation-not-supported-in-this-environment"));h.apn=s}u&&(h.appDisplayName=u),o=Ic(o),h.sessionId=o;var l=gu(t.m,t.i,t.l,n,e,null,i,t.v,h,t.u,r,t.o);return t.la().then((function(){var n=t.h;return t.A.a.set(ac,a.w(),n)})).then((function(){var n=_i("cordova.plugins.browsertab.isAvailable",c);if("function"!=typeof n)throw new S("invalid-cordova-configuration");var e=null;n((function(n){if(n){if("function"!=typeof(e=_i("cordova.plugins.browsertab.openUrl",c)))throw new S("invalid-cordova-configuration");e(l)}else{if("function"!=typeof(e=_i("cordova.InAppBrowser.open",c)))throw new S("invalid-cordova-configuration");n=Ni(),t.a=e(l,n.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||n.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(r,t,n,e,i)})).then((function(){return new Tn((function(t,n){s=function(){var n=_i("cordova.plugins.browsertab.close",c);return t(),"function"==typeof n&&n(),r.a&&"function"==typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Ea(s),u=function(){a||(a=Se(2e3).then((function(){n(new S("redirect-cancelled-by-user"))})))},h=function(){Ki()&&u()},o.addEventListener("resume",u,!1),Ni().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",h,!1)})).s((function(t){return Ac(r).then((function(){throw t}))}))})).na((function(){u&&o.removeEventListener("resume",u,!1),h&&o.removeEventListener("visibilitychange",h,!1),a&&a.cancel(),s&&r.Ra(s),r.c=null}))},n.Ea=function(t){this.b.push(t),Ec(this).s((function(n){"auth/invalid-cordova-configuration"===n.code&&(n=new Fo("unknown",null,null,null,new S("no-auth-event")),t(n))}))},n.Ra=function(t){z(this.b,(function(n){return n==t}))};var Sc={name:"pendingRedirect",D:"session"};function Nc(t){return ec(t.b,Sc,t.a)}function _c(t,n,e,i){this.i={},this.u=0,this.O=t,this.m=n,this.v=e,this.G=i,this.h=[],this.f=!1,this.l=T(this.o,this),this.b=new Hc,this.A=new Jc,this.g=new kc(Kc(this.m,this.v)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.A,this.c.linkViaPopup=this.A,this.c.reauthViaPopup=this.A,this.a=Oc(this.O,this.m,this.v,_,this.G)}function Oc(t,n,e,r,o){var a=i.SDK_VERSION||null;return gi()?new yc(t,n,e,a,r,o):new du(t,n,e,a,r,o)}function Cc(t){t.f||(t.f=!0,t.a.Ea(t.l));var n=t.a;return t.a.la().s((function(e){throw t.a==n&&t.reset(),e}))}function Rc(t){t.a.Wb()&&Cc(t).s((function(n){var e=new Fo("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));jc(n)&&t.o(e)})),t.a.Sb()||Gc(t.b)}function Pc(t,n){J(t.h,n)||t.h.push(n),t.f||function(t){return t.b.get(Sc,t.a).then((function(t){return"pending"==t}))}(t.g).then((function(n){n?Nc(t.g).then((function(){Cc(t).s((function(n){var e=new Fo("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));jc(n)&&t.o(e)}))})):Rc(t)})).s((function(){Rc(t)}))}function Dc(t,n){z(t.h,(function(t){return t==n}))}_c.prototype.reset=function(){this.f=!1,this.a.Ra(this.l),this.a=Oc(this.O,this.m,this.v,null,this.G),this.i={}},_c.prototype.o=function(t){if(!t)throw new S("invalid-auth-event");if(6e5<=A()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var n=!1,e=0;e<this.h.length;e++){var i=this.h[e];if(i.Eb(t.c,t.b)){(n=this.c[t.c])&&(n.h(t,i),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.u=A())),n=!0;break}}return Gc(this.b),n};var Lc=new Fi(2e3,1e4),xc=new Fi(3e4,6e4);function Mc(t,n,e,i,r,o,a){return t.a.Lb(n,e,i,(function(){t.f||(t.f=!0,t.a.Ea(t.l))}),(function(){t.reset()}),r,o,a)}function jc(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function Uc(t,n,e,i,r){var o;return function(t){return t.b.set(Sc,"pending",t.a)}(t.g).then((function(){return t.a.Mb(n,e,i,r).s((function(n){if(jc(n))throw new S("operation-not-supported-in-this-environment");return o=n,Nc(t.g).then((function(){throw o}))})).then((function(){return t.a.Zb()?new Tn((function(){})):Nc(t.g).then((function(){return t.qa()})).then((function(){})).s((function(){}))}))}))}function Vc(t,n,e,i,r){return t.a.Nb(i,(function(t){n.ma(e,null,t,r)}),Lc.get())}_c.prototype.qa=function(){return this.b.qa()};var Fc={};function Kc(t,n,e){return t=t+":"+n,e&&(t=t+":"+e.url),t}function qc(t,n,e,i){var r=Kc(n,e,i);return Fc[r]||(Fc[r]=new _c(t,n,e,i)),Fc[r]}function Hc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Gc(t){t.g||(t.g=!0,Xc(t,!1,null,null))}function Bc(t){t.g&&!t.i&&Xc(t,!1,null,null)}function Wc(t,n){if(t.b=function(){return On(n)},t.f.length)for(var e=0;e<t.f.length;e++)t.f[e](n)}function Xc(t,n,e,i){n?i?function(t,n){if(t.b=function(){return Cn(n)},t.c.length)for(var e=0;e<t.c.length;e++)t.c[e](n)}(t,i):Wc(t,e):Wc(t,{user:null}),t.f=[],t.c=[]}function Jc(){}function Yc(){this.hb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.hb},set:function(t){this.hb=t},enumerable:!1})}function zc(t,n){this.a=n,Yi(this,"verificationId",t)}function $c(t,n,e,i){return new Mo(t).eb(n,e).then((function(t){return new zc(t,i)}))}function Zc(t){var n=Gr(t);if(!(n&&n.exp&&n.auth_time&&n.iat))throw new S("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");zi(this,{token:t,expirationTime:Hi(1e3*n.exp),authTime:Hi(1e3*n.auth_time),issuedAtTime:Hi(1e3*n.iat),signInProvider:n.firebase&&n.firebase.sign_in_provider?n.firebase.sign_in_provider:null,signInSecondFactor:n.firebase&&n.firebase.sign_in_second_factor?n.firebase.sign_in_second_factor:null,claims:n})}function Qc(t,n,e){var i=n&&n[nh];if(!i)throw new S("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=vt(n),this.g=e,this.c=new oo(null,i),this.b=[];var r=this;G(n[th]||[],(function(t){(t=tr(t))&&r.b.push(t)})),Yi(this,"auth",this.a),Yi(this,"session",this.c),Yi(this,"hints",this.b)}Hc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Hc.prototype.h=function(t,n){if(t){this.reset(),this.g=!0;var e=t.c,i=t.b,r=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!r&&!o),"unknown"!=e||r||o?t.a?(Xc(this,!0,null,t.a),On()):n.Fa(e,i)?function(t,n,e){e=e.Fa(n.c,n.b);var i=n.g,r=n.f,o=n.i,a=n.S(),s=!!n.c.match(/Redirect$/);e(i,r,a,o).then((function(n){Xc(t,s,n,null)})).s((function(n){Xc(t,s,null,n)}))}(this,t,n):Cn(new S("invalid-auth-event")):(Xc(this,!1,null,null),On())}else Cn(new S("invalid-auth-event"))},Hc.prototype.qa=function(){var t=this;return new Tn((function(n,e){t.b?t.b().then(n,e):(t.f.push(n),t.c.push(e),function(t){var n=new S("timeout");t.a&&t.a.cancel(),t.a=Se(xc.get()).then((function(){t.b||(t.g=!0,Xc(t,!0,null,n))}))}(t))}))},Jc.prototype.h=function(t,n){if(t){var e=t.c,i=t.b;t.a?(n.ma(t.c,null,t.a,t.b),On()):n.Fa(e,i)?function(t,n){var e=t.b,i=t.c;n.Fa(i,e)(t.g,t.f,t.S(),t.i).then((function(t){n.ma(i,t,null,e)})).s((function(t){n.ma(i,null,t,e)}))}(t,n):Cn(new S("invalid-auth-event"))}else Cn(new S("invalid-auth-event"))},zc.prototype.confirm=function(t){return t=jo(this.verificationId,t),this.a(t)};var th="mfaInfo",nh="mfaPendingCredential";function eh(t,n,e,i){S.call(this,"multi-factor-auth-required",i,n),this.b=new Qc(t,n,e),Yi(this,"resolver",this.b)}function ih(t,n,e){if(t&&m(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new eh(n,t.serverResponse,e,t.message)}catch(i){}return null}function rh(){}function oh(t){Yi(this,"factorId",t.fa),this.a=t}function ah(t){if(oh.call(this,t),this.a.fa!=Mo.PROVIDER_ID)throw new S("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function sh(t,n){for(var e in $n.call(this,t),n)this[e]=n[e]}function uh(t,n){this.a=t,this.b=[],this.c=T(this.xc,this),ce(this.a,"userReloaded",this.c);var e=[];n&&n.multiFactor&&n.multiFactor.enrolledFactors&&G(n.multiFactor.enrolledFactors,(function(t){var n=null,i={};if(t){t.uid&&(i[ir]=t.uid),t.displayName&&(i[nr]=t.displayName),t.enrollmentTime&&(i[er]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(i[rr]=t.phoneNumber);try{n=new or(i)}catch(r){}t=n}else t=null;t&&e.push(t)})),ch(this,e)}function ch(t,n){t.b=n,Yi(t,"enrolledFactors",n)}function hh(t,n,e){if(this.h=t,this.i=n,this.g=e,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function lh(t){this.c=t,this.b=this.a=null}function fh(t){return t.b&&1e3*t.b.c||0}function dh(t,n){var e=n.refreshToken;t.b=Hr(n[$a]||""),t.a=e}function ph(t,n){return function(t,n){return new Tn((function(e,i){"refresh_token"==n.grant_type&&n.refresh_token||"authorization_code"==n.grant_type&&n.code?as(t,t.l+"?key="+encodeURIComponent(t.c),(function(t){t?t.error?i(ru(t)):t.access_token&&t.refresh_token?e(t):i(new S("internal-error")):i(new S("network-request-failed"))}),"POST",$e(n).toString(),t.g,t.v.get()):i(new S("internal-error"))}))}(t.c,n).then((function(n){return t.b=Hr(n.access_token),t.a=n.refresh_token,{accessToken:t.b.toString(),refreshToken:t.a}})).s((function(n){throw"auth/user-token-expired"==n.code&&(t.a=null),n}))}function vh(t,n){this.a=t||null,this.b=n||null,zi(this,{lastSignInTime:Hi(n||null),creationTime:Hi(t||null)})}function mh(t,n,e,i,r,o){zi(this,{uid:t,displayName:i||null,photoURL:r||null,email:e||null,phoneNumber:o||null,providerId:n})}function gh(t,n,e){this.G=[],this.l=t.apiKey,this.m=t.appName,this.o=t.authDomain||null;var r=i.SDK_VERSION?Si(i.SDK_VERSION):null;this.a=new Ya(this.l,P(_),r),t.emulatorConfig&&is(this.a,t.emulatorConfig),this.b=new lh(this.a),kh(this,n[$a]),dh(this.b,n),Yi(this,"refreshToken",this.b.a),_h(this,e||{}),Ie.call(this),this.P=!1,this.o&&Ci()&&(this.i=qc(this.o,this.l,this.m)),this.R=[],this.f=null,this.u=function(t){return new hh((function(){return t.I(!0)}),(function(t){return!(!t||"auth/network-request-failed"!=t.code)}),(function(){var n=fh(t.b)-A()-3e5;return 0<n?n:0}))}(this),this.$=T(this.gb,this);var o=this;this.pa=null,this.Ba=function(t){o.wa(t.h)},this.ba=null,this.za=function(t){is(o.a,t.c)},this.W=null,this.X=[],this.Aa=function(t){wh(o,t.f)},this.aa=null,this.N=new uh(this,e),Yi(this,"multiFactor",this.N)}function bh(t,n){t.ba&&fe(t.ba,"languageCodeChanged",t.Ba),(t.ba=n)&&ce(n,"languageCodeChanged",t.Ba)}function yh(t,n){t.W&&fe(t.W,"emulatorConfigChanged",t.za),(t.W=n)&&ce(n,"emulatorConfigChanged",t.za)}function wh(t,n){t.X=n,os(t.a,i.SDK_VERSION?Si(i.SDK_VERSION,t.X):null)}function Ih(t,n){t.aa&&fe(t.aa,"frameworkChanged",t.Aa),(t.aa=n)&&ce(n,"frameworkChanged",t.Aa)}function Th(t){try{return i.app(t.m).auth()}catch(n){throw new S("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function Eh(t){t.A||t.u.b||(t.u.start(),fe(t,"tokenChanged",t.$),ce(t,"tokenChanged",t.$))}function Ah(t){fe(t,"tokenChanged",t.$),t.u.stop()}function kh(t,n){t.ya=n,Yi(t,"_lat",n)}function Sh(t){for(var n=[],e=0;e<t.R.length;e++)n.push(t.R[e](t));return Pn(n).then((function(){return t}))}function Nh(t){t.i&&!t.P&&(t.P=!0,Pc(t.i,t))}function _h(t,n){zi(t,{uid:n.uid,displayName:n.displayName||null,photoURL:n.photoURL||null,email:n.email||null,emailVerified:n.emailVerified||!1,phoneNumber:n.phoneNumber||null,isAnonymous:n.isAnonymous||!1,tenantId:n.tenantId||null,metadata:new vh(n.createdAt,n.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function Oh(){}function Ch(t){return On().then((function(){if(t.A)throw new S("app-deleted")}))}function Rh(t){return W(t.providerData,(function(t){return t.providerId}))}function Ph(t,n){n&&(Dh(t,n.providerId),t.providerData.push(n))}function Dh(t,n){z(t.providerData,(function(t){return t.providerId==n}))}function Lh(t,n,e){("uid"!=n||e)&&t.hasOwnProperty(n)&&Yi(t,n,e)}function xh(t,n){t!=n&&(zi(t,{uid:n.uid,displayName:n.displayName,photoURL:n.photoURL,email:n.email,emailVerified:n.emailVerified,phoneNumber:n.phoneNumber,isAnonymous:n.isAnonymous,tenantId:n.tenantId,providerData:[]}),n.metadata?Yi(t,"metadata",function(t){return new vh(t.a,t.b)}(n.metadata)):Yi(t,"metadata",new vh),G(n.providerData,(function(n){Ph(t,n)})),function(t,n){t.b=n.b,t.a=n.a}(t.b,n.b),Yi(t,"refreshToken",t.b.a),ch(t.N,n.N.b))}function Mh(t){return t.I().then((function(n){var e=t.isAnonymous;return function(t,n){return eu(t.a,Ds,{idToken:n}).then(T(t.Jc,t))}(t,n).then((function(){return e||Lh(t,"isAnonymous",!1),n}))}))}function jh(t,n){n[$a]&&t.ya!=n[$a]&&(dh(t.b,n),t.dispatchEvent(new sh("tokenChanged")),kh(t,n[$a]),Lh(t,"refreshToken",t.b.a))}function Uh(t,n){return Mh(t).then((function(){if(J(Rh(t),n))return Sh(t).then((function(){throw new S("provider-already-linked")}))}))}function Vh(t,n,e){return $i({user:t,credential:Uo(n),additionalUserInfo:n=Yr(n),operationType:e})}function Fh(t,n){return jh(t,n),t.reload().then((function(){return t}))}function Kh(t,n,e,r,o){if(!Ci())return Cn(new S("operation-not-supported-in-this-environment"));if(t.f&&!o)return Cn(t.f);var a=Jr(e.providerId),s=ji(t.uid+":::"),u=null;(!Di()||bi())&&t.o&&e.isOAuthProvider&&(u=gu(t.o,t.l,t.m,n,e,null,s,i.SDK_VERSION||null,null,null,t.tenantId));var c=di(u,a&&a.ua,a&&a.ta);return r=r().then((function(){if(Hh(t),!o)return t.I().then((function(){}))})).then((function(){return Mc(t.i,c,n,e,s,!!u,t.tenantId)})).then((function(){return new Tn((function(e,i){t.ma(n,null,new S("cancelled-popup-request"),t.h||null),t.g=e,t.O=i,t.h=s,t.c=Vc(t.i,t,n,c,s)}))})).then((function(t){return c&&fi(c),t?$i(t):null})).s((function(t){throw c&&fi(c),t})),Gh(t,r,o)}function qh(t,n,e,i,r){if(!Ci())return Cn(new S("operation-not-supported-in-this-environment"));if(t.f&&!r)return Cn(t.f);var o=null,a=ji(t.uid+":::");return i=i().then((function(){if(Hh(t),!r)return t.I().then((function(){}))})).then((function(){return t.ga=a,Sh(t)})).then((function(n){return t.ha&&(n=(n=t.ha).b.set(Xh,t.w(),n.a)),n})).then((function(){return Uc(t.i,n,e,a,t.tenantId)})).s((function(n){if(o=n,t.ha)return Jh(t.ha);throw o})).then((function(){if(o)throw o})),Gh(t,i,r)}function Hh(t){if(!t.i||!t.P){if(t.i&&!t.P)throw new S("internal-error");throw new S("auth-domain-config-required")}}function Gh(t,n,e){var i=function(t,n,e){return t.f&&!e?(n.cancel(),Cn(t.f)):n.s((function(n){throw!n||"auth/user-disabled"!=n.code&&"auth/user-token-expired"!=n.code||(t.f||t.dispatchEvent(new sh("userInvalidated")),t.f=n),n}))}(t,n,e);return t.G.push(i),i.na((function(){Y(t.G,i)})),i.s((function(n){var e=null;throw n&&"auth/multi-factor-auth-required"===n.code&&(e=ih(n.w(),Th(t),T(t.ic,t))),e||n}))}function Bh(t){if(!t.apiKey)return null;var n={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName,emulatorConfig:t.emulatorConfig},e={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;e[$a]=t.stsTokenManager.accessToken,e.refreshToken=t.stsTokenManager.refreshToken||null;var i=new gh(n,e,t);return t.providerData&&G(t.providerData,(function(t){t&&Ph(i,$i(t))})),t.redirectEventId&&(i.ga=t.redirectEventId),i}function Wh(t){this.a=t,this.b=Qu()}Qc.prototype.Qc=function(t){var n=this;return t.rb(this.a.a,this.c).then((function(t){var e=vt(n.f);return delete e[th],delete e[nh],gt(e,t),n.g(e)}))},k(eh,S),rh.prototype.rb=function(t,n,e){return n.type==ao?function(t,n,e,i){return e.Ha().then((function(e){return e={idToken:e},void 0!==i&&(e.displayName=i),gt(e,{phoneVerificationInfo:xo(t.a)}),eu(n,Rs,e)}))}(this,t,n,e):function(t,n,e){return e.Ha().then((function(e){return gt(e={mfaPendingCredential:e},{phoneVerificationInfo:xo(t.a)}),eu(n,Ps,e)}))}(this,t,n)},k(oh,rh),k(ah,oh),k(sh,$n),(n=uh.prototype).xc=function(t){ch(this,function(t){var n=[];return G(t.mfaInfo||[],(function(t){(t=tr(t))&&n.push(t)})),n}(t.gd))},n.Qb=function(){return this.a.I().then((function(t){return new oo(t,null)}))},n.ec=function(t,n){var e=this,i=this.a.a;return this.Qb().then((function(e){return t.rb(i,e,n)})).then((function(t){return jh(e.a,t),e.a.reload()}))},n.ad=function(t){var n=this,e="string"==typeof t?t:t.uid,i=this.a.a;return this.a.I().then((function(t){return eu(i,nu,{idToken:t,mfaEnrollmentId:e})})).then((function(t){var i=B(n.b,(function(t){return t.uid!=e}));return ch(n,i),jh(n.a,t),n.a.reload().s((function(t){if("auth/user-token-expired"!=t.code)throw t}))}))},n.w=function(){return{multiFactor:{enrolledFactors:W(this.b,(function(t){return t.w()}))}}},hh.prototype.start=function(){this.a=this.c,function t(n,e){n.stop(),n.b=Se(function(t,n){return n?(t.a=t.c,t.g()):(n=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),n)}(n,e)).then((function(){return function(){var t=c.document,n=null;return Ki()||!t?On():new Tn((function(e){n=function(){Ki()&&(t.removeEventListener("visibilitychange",n,!1),e())},t.addEventListener("visibilitychange",n,!1)})).s((function(e){throw t.removeEventListener("visibilitychange",n,!1),e}))}()})).then((function(){return n.h()})).then((function(){t(n,!0)})).s((function(e){n.i(e)&&t(n,!1)}))}(this,!0)},hh.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},lh.prototype.w=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:fh(this)}},lh.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Cn(new S("user-token-expired")):t||!this.b||A()>fh(this)-3e4?this.a?ph(this,{grant_type:"refresh_token",refresh_token:this.a}):On(null):On({accessToken:this.b.toString(),refreshToken:this.a})},vh.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},k(gh,Ie),gh.prototype.wa=function(t){this.pa=t,es(this.a,t)},gh.prototype.ka=function(){return this.pa},gh.prototype.Ga=function(){return Z(this.X)},gh.prototype.gb=function(){this.u.b&&(this.u.stop(),this.u.start())},Yi(gh.prototype,"providerId","firebase"),(n=gh.prototype).reload=function(){var t=this;return Gh(this,Ch(this).then((function(){return Mh(t).then((function(){return Sh(t)})).then(Oh)})))},n.nc=function(t){return this.I(t).then((function(t){return new Zc(t)}))},n.I=function(t){var n=this;return Gh(this,Ch(this).then((function(){return n.b.getToken(t)})).then((function(t){if(!t)throw new S("internal-error");return t.accessToken!=n.ya&&(kh(n,t.accessToken),n.dispatchEvent(new sh("tokenChanged"))),Lh(n,"refreshToken",t.refreshToken),t.accessToken})))},n.Jc=function(t){if(!(t=t.users)||!t.length)throw new S("internal-error");_h(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 n=function(t){return(t=t.providerUserInfo)&&t.length?W(t,(function(t){return new mh(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}(t),e=0;e<n.length;e++)Ph(this,n[e]);Lh(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new sh("userReloaded",{gd:t}))},n.Kc=function(t){return Xi("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.sb(t)},n.sb=function(t){var n=this,e=null;return Gh(this,t.c(this.a,this.uid).then((function(t){return jh(n,t),e=Vh(n,t,"reauthenticate"),n.f=null,n.reload()})).then((function(){return e})),!0)},n.Bc=function(t){return Xi("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.pb(t)},n.pb=function(t){var n=this,e=null;return Gh(this,Uh(this,t.providerId).then((function(){return n.I()})).then((function(e){return t.b(n.a,e)})).then((function(t){return e=Vh(n,t,"link"),Fh(n,t)})).then((function(){return e})))},n.Cc=function(t,n){var e=this;return Gh(this,Uh(this,"phone").then((function(){return $c(Th(e),t,n,T(e.pb,e))})))},n.Lc=function(t,n){var e=this;return Gh(this,On().then((function(){return $c(Th(e),t,n,T(e.sb,e))})),!0)},n.Ab=function(t){var n=this;return Gh(this,this.I().then((function(e){return n.a.Ab(e,t)})).then((function(t){return jh(n,t),n.reload()})))},n.dd=function(t){var n=this;return Gh(this,this.I().then((function(e){return t.b(n.a,e)})).then((function(t){return jh(n,t),n.reload()})))},n.Bb=function(t){var n=this;return Gh(this,this.I().then((function(e){return n.a.Bb(e,t)})).then((function(t){return jh(n,t),n.reload()})))},n.Cb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return Ch(this);var n=this;return Gh(this,this.I().then((function(e){return n.a.Cb(e,{displayName:t.displayName,photoUrl:t.photoURL})})).then((function(t){return jh(n,t),Lh(n,"displayName",t.displayName||null),Lh(n,"photoURL",t.photoUrl||null),G(n.providerData,(function(t){"password"===t.providerId&&(Yi(t,"displayName",n.displayName),Yi(t,"photoURL",n.photoURL))})),Sh(n)})).then(Oh))},n.bd=function(t){var n=this;return Gh(this,Mh(this).then((function(e){return J(Rh(n),t)?function(t,n,e){return eu(t,_s,{idToken:n,deleteProvider:e})}(n.a,e,[t]).then((function(t){var e={};return G(t.providerUserInfo||[],(function(t){e[t.providerId]=!0})),G(Rh(n),(function(t){e[t]||Dh(n,t)})),e[Mo.PROVIDER_ID]||Yi(n,"phoneNumber",null),Sh(n)})):Sh(n).then((function(){throw new S("no-such-provider")}))})))},n.delete=function(){var t=this;return Gh(this,this.I().then((function(n){return eu(t.a,Ns,{idToken:n})})).then((function(){t.dispatchEvent(new sh("userDeleted"))}))).then((function(){for(var n=0;n<t.G.length;n++)t.G[n].cancel("app-deleted");bh(t,null),yh(t,null),Ih(t,null),t.G=[],t.A=!0,Ah(t),Yi(t,"refreshToken",null),t.i&&Dc(t.i,t)}))},n.Eb=function(t,n){return!!("linkViaPopup"==t&&(this.h||null)==n&&this.g||"reauthViaPopup"==t&&(this.h||null)==n&&this.g||"linkViaRedirect"==t&&(this.ga||null)==n||"reauthViaRedirect"==t&&(this.ga||null)==n)},n.ma=function(t,n,e,i){"linkViaPopup"!=t&&"reauthViaPopup"!=t||i!=(this.h||null)||(e&&this.O?this.O(e):n&&!e&&this.g&&this.g(n),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},n.Fa=function(t,n){return"linkViaPopup"==t&&n==(this.h||null)?T(this.Jb,this):"reauthViaPopup"==t&&n==(this.h||null)?T(this.Kb,this):"linkViaRedirect"==t&&(this.ga||null)==n?T(this.Jb,this):"reauthViaRedirect"==t&&(this.ga||null)==n?T(this.Kb,this):null},n.Dc=function(t){var n=this;return Kh(this,"linkViaPopup",t,(function(){return Uh(n,t.providerId).then((function(){return Sh(n)}))}),!1)},n.Mc=function(t){return Kh(this,"reauthViaPopup",t,(function(){return On()}),!0)},n.Ec=function(t){var n=this;return qh(this,"linkViaRedirect",t,(function(){return Uh(n,t.providerId)}),!1)},n.Nc=function(t){return qh(this,"reauthViaRedirect",t,(function(){return On()}),!0)},n.Jb=function(t,n,e,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Gh(this,this.I().then((function(e){return ws(r.a,{requestUri:t,postBody:i,sessionId:n,idToken:e})})).then((function(t){return o=Vh(r,t,"link"),Fh(r,t)})).then((function(){return o})))},n.Kb=function(t,n,e,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Gh(this,On().then((function(){return co(Is(r.a,{requestUri:t,sessionId:n,postBody:i,tenantId:e}),r.uid)})).then((function(t){return o=Vh(r,t,"reauthenticate"),jh(r,t),r.f=null,r.reload()})).then((function(){return o})),!0)},n.tb=function(t){var n=this,e=null;return Gh(this,this.I().then((function(n){return e=n,void 0===t||pt(t)?{}:Vr(new Or(t))})).then((function(t){return n.a.tb(e,t)})).then((function(t){if(n.email!=t)return n.reload()})).then((function(){})))},n.Db=function(t,n){var e=this,i=null;return Gh(this,this.I().then((function(t){return i=t,void 0===n||pt(n)?{}:Vr(new Or(n))})).then((function(n){return e.a.Db(i,t,n)})).then((function(t){if(e.email!=t)return e.reload()})).then((function(){})))},n.ic=function(t){var n=null,e=this;return Gh(this,t=co(On(t),e.uid).then((function(t){return n=Vh(e,t,"reauthenticate"),jh(e,t),e.f=null,e.reload()})).then((function(){return n})),!0)},n.toJSON=function(){return this.w()},n.w=function(){var t={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.l,appName:this.m,authDomain:this.o,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&gt(t,this.metadata.w()),G(this.providerData,(function(n){t.providerData.push(function(t){var n,e={};for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(n))})),gt(t,this.N.w()),t};var Xh={name:"redirectUser",D:"session"};function Jh(t){return ec(t.b,Xh,t.a)}function Yh(t){this.a=t,this.b=Qu(),this.c=null,this.f=function(t){var n=Zh("local"),e=Zh("session"),i=Zh("none");return function(t,n,e){var i=nc(n,e),r=tc(t,n.D);return t.get(n,e).then((function(o){var a=null;try{a=Mi(c.localStorage.getItem(i))}catch(s){}if(a&&!o)return c.localStorage.removeItem(i),t.set(n,a,e);a&&o&&"localStorage"!=r.type&&c.localStorage.removeItem(i)}))}(t.b,n,t.a).then((function(){return t.b.get(e,t.a)})).then((function(r){return r?e:t.b.get(i,t.a).then((function(e){return e?i:t.b.get(n,t.a).then((function(e){return e?n:t.b.get($h,t.a).then((function(t){return t?Zh(t):n}))}))}))})).then((function(n){return t.c=n,zh(t,n.D)})).s((function(){t.c||(t.c=n)}))}(this),this.b.addListener(Zh("local"),this.a,T(this.g,this))}function zh(t,n){var e,i=[];for(e in $u)$u[e]!==n&&i.push(ec(t.b,Zh($u[e]),t.a));return i.push(ec(t.b,$h,t.a)),function(t){return new Tn((function(n,e){var i=t.length,r=[];if(i)for(var o=function(t,e){i--,r[t]=e,0==i&&n(r)},a=function(t){e(t)},s=0;s<t.length;s++)Rn(t[s],E(o,s),a);else n(r)}))}(i)}Yh.prototype.g=function(){var t=this,n=Zh("local");el(this,(function(){return On().then((function(){return t.c&&"local"!=t.c.D?t.b.get(n,t.a):null})).then((function(e){if(e)return zh(t,"local").then((function(){t.c=n}))}))}))};var $h={name:"persistence",D:"session"};function Zh(t){return{name:"authUser",D:t}}function Qh(t,n){return el(t,(function(){return t.b.set(t.c,n.w(),t.a)}))}function tl(t){return el(t,(function(){return ec(t.b,t.c,t.a)}))}function nl(t,n,e){return el(t,(function(){return t.b.get(t.c,t.a).then((function(t){return t&&n&&(t.authDomain=n),t&&e&&(t.emulatorConfig=e),Bh(t||{})}))}))}function el(t,n){return t.f=t.f.then(n,n),t.f}function il(t){if(this.m=!1,Yi(this,"settings",new Yc),Yi(this,"app",t),!fl(this).options||!fl(this).options.apiKey)throw new S("invalid-api-key");t=i.SDK_VERSION?Si(i.SDK_VERSION):null,this.a=new Ya(fl(this).options&&fl(this).options.apiKey,P(_),t),this.R=[],this.u=[],this.P=[],this.ac=i.INTERNAL.createSubscribe(T(this.yc,this)),this.X=void 0,this.bc=i.INTERNAL.createSubscribe(T(this.zc,this)),hl(this,null),this.l=new Yh(fl(this).options.apiKey+":"+fl(this).name),this.G=new Wh(fl(this).options.apiKey+":"+fl(this).name),this.$=ml(this,function(t){var n=fl(t).options.authDomain,e=function(t){var n=function(t,n){return t.b.get(Xh,t.a).then((function(t){return t&&n&&(t.authDomain=n),Bh(t||{})}))}(t.G,fl(t).options.authDomain).then((function(n){return(t.o=n)&&(n.ha=t.G),Jh(t.G)}));return ml(t,n)}(t).then((function(){return nl(t.l,n,t.f)})).then((function(n){return n?(n.ha=t.G,t.o&&(t.o.ga||null)==(n.ga||null)?n:n.reload().then((function(){return Qh(t.l,n).then((function(){return n}))})).s((function(e){return"auth/network-request-failed"==e.code?n:tl(t.l)}))):null})).then((function(n){hl(t,n||null)}));return ml(t,e)}(this)),this.i=ml(this,function(t){return t.$.then((function(){return ul(t)})).s((function(){})).then((function(){if(!t.m)return t.pa()})).s((function(){})).then((function(){if(!t.m){t.ba=!0;var n=t.l;n.b.addListener(Zh("local"),n.a,t.pa)}}))}(this)),this.ba=!1,this.pa=T(this.Yc,this),this.Ba=T(this.da,this),this.ya=T(this.kc,this),this.za=T(this.vc,this),this.Aa=T(this.wc,this),this.b=null,function(t){var n=fl(t).options.authDomain,e=fl(t).options.apiKey;n&&Ci()&&(t.gb=t.$.then((function(){if(!t.m){if(t.b=qc(n,e,fl(t).name,t.f),Pc(t.b,t),dl(t)&&Nh(dl(t)),t.o){Nh(t.o);var i=t.o;i.wa(t.ka()),bh(i,t),wh(i=t.o,t.N),Ih(i,t),is((i=t.o).a,t.f),yh(i,t),t.o=null}return t.b}})))}(this),this.INTERNAL={},this.INTERNAL.delete=T(this.delete,this),this.INTERNAL.logFramework=T(this.Fc,this),this.A=0,Ie.call(this),function(t){Object.defineProperty(t,"lc",{get:function(){return this.ka()},set:function(t){this.wa(t)},enumerable:!1}),t.aa=null,Object.defineProperty(t,"ti",{get:function(){return this.S()},set:function(t){this.xb(t)},enumerable:!1}),t.W=null}(this),this.N=[],this.f=null}function rl(t){$n.call(this,"languageCodeChanged"),this.h=t}function ol(t){$n.call(this,"emulatorConfigChanged"),this.c=t}function al(t){$n.call(this,"frameworkChanged"),this.f=t}function sl(t){return t.gb||Cn(new S("auth-domain-config-required"))}function ul(t){if(!Ci())return Cn(new S("operation-not-supported-in-this-environment"));var n=sl(t).then((function(){return t.b.qa()})).then((function(t){return t?$i(t):null}));return ml(t,n)}function cl(t,n){var e={};return e.apiKey=fl(t).options.apiKey,e.authDomain=fl(t).options.authDomain,e.appName=fl(t).name,t.f&&(e.emulatorConfig=t.f),t.$.then((function(){return function(t,n,e,i){var r=new gh(t,n);return e&&(r.ha=e),i&&wh(r,i),r.reload().then((function(){return r}))}(e,n,t.G,t.Ga())})).then((function(n){return dl(t)&&n.uid==dl(t).uid?(xh(dl(t),n),t.da(n)):(hl(t,n),Nh(n),t.da(n))})).then((function(){vl(t)}))}function hl(t,n){dl(t)&&(function(t,n){z(t.R,(function(t){return t==n}))}(dl(t),t.Ba),fe(dl(t),"tokenChanged",t.ya),fe(dl(t),"userDeleted",t.za),fe(dl(t),"userInvalidated",t.Aa),Ah(dl(t))),n&&(n.R.push(t.Ba),ce(n,"tokenChanged",t.ya),ce(n,"userDeleted",t.za),ce(n,"userInvalidated",t.Aa),0<t.A&&Eh(n)),Yi(t,"currentUser",n),n&&(n.wa(t.ka()),bh(n,t),wh(n,t.N),Ih(n,t),is(n.a,t.f),yh(n,t))}function ll(t,n){var e=null,i=null;return ml(t,n.then((function(n){return e=Uo(n),i=Yr(n),cl(t,n)}),(function(n){var e=null;throw n&&"auth/multi-factor-auth-required"===n.code&&(e=ih(n.w(),t,T(t.jc,t))),e||n})).then((function(){return $i({user:dl(t),credential:e,additionalUserInfo:i,operationType:"signIn"})})))}function fl(t){return t.app}function dl(t){return t.currentUser}function pl(t){return dl(t)&&dl(t)._lat||null}function vl(t){if(t.ba){for(var n=0;n<t.u.length;n++)t.u[n]&&t.u[n](pl(t));if(t.X!==t.getUid()&&t.P.length)for(t.X=t.getUid(),n=0;n<t.P.length;n++)t.P[n]&&t.P[n](pl(t))}}function ml(t,n){return t.R.push(n),n.na((function(){Y(t.R,n)})),n}function gl(){}function bl(){this.a={},this.b=1e12}Yh.prototype.wb=function(t){var n=null,e=this;return function(t){var n=new S("invalid-persistence-type"),e=new S("unsupported-persistence-type");t:{for(i in $u)if($u[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw n;switch(wi()){case"ReactNative":if("session"===t)throw e;break;case"Node":if("none"!==t)throw e;break;case"Worker":if("session"===t||!Cu()&&"none"!==t)throw e;break;default:if(!Oi()&&"none"!==t)throw e}}(t),el(this,(function(){return t!=e.c.D?e.b.get(e.c,e.a).then((function(i){return n=i,zh(e,t)})).then((function(){if(e.c=Zh(t),n)return e.b.set(e.c,n,e.a)})):On()}))},k(il,Ie),k(rl,$n),k(ol,$n),k(al,$n),(n=il.prototype).wb=function(t){return ml(this,t=this.l.wb(t))},n.wa=function(t){this.aa===t||this.m||(this.aa=t,es(this.a,this.aa),this.dispatchEvent(new rl(this.ka())))},n.ka=function(){return this.aa},n.ed=function(){var t=c.navigator;this.wa(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},n.fd=function(t){if(!this.f){if(!/^https?:\/\//.test(t))throw new S("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");qi("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),c.document&&mi().then((function(){var t=c.document.createElement("div");t.innerText="Running in emulator mode. Do not use with production credentials.",t.style.position="fixed",t.style.width="100%",t.style.backgroundColor="#ffffff",t.style.border=".1em solid #000000",t.style.color="#ff0000",t.style.bottom="0px",t.style.left="0px",t.style.margin="0px",t.style.zIndex=1e4,t.style.textAlign="center",t.classList.add("firebase-emulator-warning"),c.document.body.appendChild(t)})),this.f={url:t},this.settings.hb=!0,is(this.a,this.f),this.dispatchEvent(new ol(this.f))}},n.Fc=function(t){this.N.push(t),os(this.a,i.SDK_VERSION?Si(i.SDK_VERSION,this.N):null),this.dispatchEvent(new al(this.N))},n.Ga=function(){return Z(this.N)},n.xb=function(t){this.W===t||this.m||(this.W=t,this.a.b=this.W)},n.S=function(){return this.W},n.toJSON=function(){return{apiKey:fl(this).options.apiKey,authDomain:fl(this).options.authDomain,appName:fl(this).name,currentUser:dl(this)&&dl(this).w()}},n.Eb=function(t,n){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.h==n&&!!this.g;default:return!1}},n.ma=function(t,n,e,i){"signInViaPopup"==t&&this.h==i&&(e&&this.O?this.O(e):n&&!e&&this.g&&this.g(n),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},n.Fa=function(t,n){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.h==n&&this.g?T(this.hc,this):null},n.hc=function(t,n,e,i){var r=this,o={requestUri:t,postBody:i,sessionId:n,tenantId:e};return this.c&&(this.c.cancel(),this.c=null),r.$.then((function(){return ll(r,ys(r.a,o))}))},n.Wc=function(t){if(!Ci())return Cn(new S("operation-not-supported-in-this-environment"));var n=this,e=Jr(t.providerId),r=ji(),o=null;(!Di()||bi())&&fl(this).options.authDomain&&t.isOAuthProvider&&(o=gu(fl(this).options.authDomain,fl(this).options.apiKey,fl(this).name,"signInViaPopup",t,null,r,i.SDK_VERSION||null,null,null,this.S(),this.f));var a=di(o,e&&e.ua,e&&e.ta);return ml(this,e=sl(this).then((function(e){return Mc(e,a,"signInViaPopup",t,r,!!o,n.S())})).then((function(){return new Tn((function(t,e){n.ma("signInViaPopup",null,new S("cancelled-popup-request"),n.h),n.g=t,n.O=e,n.h=r,n.c=Vc(n.b,n,"signInViaPopup",a,r)}))})).then((function(t){return a&&fi(a),t?$i(t):null})).s((function(t){throw a&&fi(a),t})))},n.Xc=function(t){if(!Ci())return Cn(new S("operation-not-supported-in-this-environment"));var n=this;return ml(this,sl(this).then((function(){return function(t){return el(t,(function(){return t.b.set($h,t.c.D,t.a)}))}(n.l)})).then((function(){return Uc(n.b,"signInViaRedirect",t,void 0,n.S())})))},n.qa=function(){var t=this;return ul(this).then((function(n){return t.b&&Bc(t.b.b),n})).s((function(n){throw t.b&&Bc(t.b.b),n}))},n.cd=function(t){if(!t)return Cn(new S("null-user"));if(this.W!=t.tenantId)return Cn(new S("tenant-id-mismatch"));var n=this,e={};e.apiKey=fl(this).options.apiKey,e.authDomain=fl(this).options.authDomain,e.appName=fl(this).name;var i=function(t,n,e,i){var r=t.b,o={};return o[$a]=r.b&&r.b.toString(),o.refreshToken=r.a,n=new gh(n||{apiKey:t.l,authDomain:t.o,appName:t.m},o),e&&(n.ha=e),i&&wh(n,i),xh(n,t),n}(t,e,n.G,n.Ga());return ml(this,this.i.then((function(){if(fl(n).options.apiKey!=t.l)return i.reload()})).then((function(){return dl(n)&&t.uid==dl(n).uid?(xh(dl(n),t),n.da(t)):(hl(n,i),Nh(i),n.da(i))})).then((function(){vl(n)})))},n.zb=function(){var t=this;return ml(this,this.i.then((function(){return t.b&&Bc(t.b.b),dl(t)?(hl(t,null),tl(t.l).then((function(){vl(t)}))):On()})))},n.Yc=function(){var t=this;return nl(this.l,fl(this).options.authDomain).then((function(n){if(!t.m){var e;if(e=dl(t)&&n){e=dl(t).uid;var i=n.uid;e=null!=e&&""!==e&&null!=i&&""!==i&&e==i}if(e)return xh(dl(t),n),dl(t).I();(dl(t)||n)&&(hl(t,n),n&&(Nh(n),n.ha=t.G),t.b&&Pc(t.b,t),vl(t))}}))},n.da=function(t){return Qh(this.l,t)},n.kc=function(){vl(this),this.da(dl(this))},n.vc=function(){this.zb()},n.wc=function(){this.zb()},n.jc=function(t){var n=this;return this.i.then((function(){return ll(n,On(t))}))},n.yc=function(t){var n=this;this.addAuthTokenListener((function(){t.next(dl(n))}))},n.zc=function(t){var n=this;!function(t,n){t.P.push(n),ml(t,t.i.then((function(){!t.m&&J(t.P,n)&&t.X!==t.getUid()&&(t.X=t.getUid(),n(pl(t)))})))}(this,(function(){t.next(dl(n))}))},n.Hc=function(t,n,e){var i=this;return this.ba&&Promise.resolve().then((function(){"function"==typeof t?t(dl(i)):"function"==typeof t.next&&t.next(dl(i))})),this.ac(t,n,e)},n.Gc=function(t,n,e){var i=this;return this.ba&&Promise.resolve().then((function(){i.X=i.getUid(),"function"==typeof t?t(dl(i)):"function"==typeof t.next&&t.next(dl(i))})),this.bc(t,n,e)},n.mc=function(t){var n=this;return ml(this,this.i.then((function(){return dl(n)?dl(n).I(t).then((function(t){return{accessToken:t}})):null})))},n.Sc=function(t){var n=this;return this.i.then((function(){return ll(n,eu(n.a,zs,{token:t}))})).then((function(t){var e=t.user;return Lh(e,"isAnonymous",!1),n.da(e),t}))},n.Tc=function(t,n){var e=this;return this.i.then((function(){return ll(e,eu(e.a,$s,{email:t,password:n}))}))},n.dc=function(t,n){var e=this;return this.i.then((function(){return ll(e,eu(e.a,ks,{email:t,password:n}))}))},n.Za=function(t){var n=this;return this.i.then((function(){return ll(n,t.ja(n.a))}))},n.Rc=function(t){return Xi("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Za(t)},n.yb=function(){var t=this;return this.i.then((function(){var n=dl(t);if(n&&n.isAnonymous){var e=$i({providerId:null,isNewUser:!1});return $i({user:n,credential:null,additionalUserInfo:e,operationType:"signIn"})}return ll(t,t.a.yb()).then((function(n){var e=n.user;return Lh(e,"isAnonymous",!0),t.da(e),n}))}))},n.getUid=function(){return dl(this)&&dl(this).uid||null},n.cc=function(t){this.addAuthTokenListener(t),this.A++,0<this.A&&dl(this)&&Eh(dl(this))},n.Oc=function(t){var n=this;G(this.u,(function(e){e==t&&n.A--})),0>this.A&&(this.A=0),0==this.A&&dl(this)&&Ah(dl(this)),this.removeAuthTokenListener(t)},n.addAuthTokenListener=function(t){var n=this;this.u.push(t),ml(this,this.i.then((function(){n.m||J(n.u,t)&&t(pl(n))})))},n.removeAuthTokenListener=function(t){z(this.u,(function(n){return n==t}))},n.delete=function(){this.m=!0;for(var t=0;t<this.R.length;t++)this.R[t].cancel("app-deleted");return this.R=[],this.l&&(t=this.l).b.removeListener(Zh("local"),t.a,this.pa),this.b&&(Dc(this.b,this),Bc(this.b.b)),Promise.resolve()},n.gc=function(t){return ml(this,function(t,n){return eu(t,Ss,{identifier:n,continueUri:Ri()?ci():"http://localhost"}).then((function(t){return t.signinMethods||[]}))}(this.a,t))},n.Ac=function(t){return!!Po(t)},n.vb=function(t,n){var e=this;return ml(this,On().then((function(){var t=new Or(n);if(!t.c)throw new S("argument-error",Pr+" must be true when sending sign in link to email");return Vr(t)})).then((function(n){return e.a.vb(t,n)})).then((function(){})))},n.hd=function(t){return this.Qa(t).then((function(t){return t.data.email}))},n.mb=function(t,n){return ml(this,this.a.mb(t,n).then((function(){})))},n.Qa=function(t){return ml(this,this.a.Qa(t).then((function(t){return new ar(t)})))},n.ib=function(t){return ml(this,this.a.ib(t).then((function(){})))},n.ub=function(t,n){var e=this;return ml(this,On().then((function(){return void 0===n||pt(n)?{}:Vr(new Or(n))})).then((function(n){return e.a.ub(t,n)})).then((function(){})))},n.Vc=function(t,n){return ml(this,$c(this,t,n,T(this.Za,this)))},n.Uc=function(t,n){var e=this;return ml(this,On().then((function(){var i=n||ci(),r=Ro(t,i);if(!(i=Po(i)))throw new S("argument-error","Invalid email link!");if(i.tenantId!==e.S())throw new S("tenant-id-mismatch");return e.Za(r)})))},gl.prototype.render=function(){},gl.prototype.reset=function(){},gl.prototype.getResponse=function(){},gl.prototype.execute=function(){};var yl=null;function wl(t,n){return(n=Il(n))&&t.a[n]||null}function Il(t){return(t=void 0===t?1e12:t)?t.toString():null}function Tl(t,n){this.g=!1,this.c=n,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=un(t);var e=this;this.i=function(){e.execute()},this.h?this.execute():ce(this.f,"click",this.i)}function El(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function Al(){}function kl(){}bl.prototype.render=function(t,n){return this.a[this.b.toString()]=new Tl(t,n),this.b++},bl.prototype.reset=function(t){var n=wl(this,t);t=Il(t),n&&t&&(n.delete(),delete this.a[t])},bl.prototype.getResponse=function(t){return(t=wl(this,t))?t.getResponse():null},bl.prototype.execute=function(t){(t=wl(this,t))&&t.execute()},Tl.prototype.getResponse=function(){return El(this),this.b},Tl.prototype.execute=function(){El(this);var t=this;this.a||(this.a=setTimeout((function(){t.b=function(){for(var t=50,n=[];0<t;)n.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return n.join("")}();var n=t.c.callback,e=t.c["expired-callback"];if(n)try{n(t.b)}catch(i){}t.a=setTimeout((function(){if(t.a=null,t.b=null,e)try{e()}catch(i){}t.h&&t.execute()}),6e4)}),500))},Tl.prototype.delete=function(){El(this),this.g=!0,clearTimeout(this.a),this.a=null,fe(this.f,"click",this.i)},Yi(Al,"FACTOR_ID","phone"),kl.prototype.g=function(){return yl||(yl=new bl),On(yl)},kl.prototype.c=function(){};var Sl=null;function Nl(){this.b=c.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var _l=new yt(Tt,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Ol=new Fi(3e4,6e4);Nl.prototype.g=function(t){var n=this;return new Tn((function(e,i){var r=setTimeout((function(){i(new S("network-request-failed"))}),Ol.get());!c.grecaptcha||t!==n.f&&!n.b?(c[n.a]=function(){if(c.grecaptcha){n.f=t;var o=c.grecaptcha.render;c.grecaptcha.render=function(t,e){return t=o(t,e),n.b++,t},clearTimeout(r),e(c.grecaptcha)}else clearTimeout(r),i(new S("internal-error"));delete c[n.a]},On(qa(St(_l,{onload:n.a,hl:t||""}))).s((function(){clearTimeout(r),i(new S("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(r),e(c.grecaptcha))}))},Nl.prototype.c=function(){this.b--};var Cl=null;function Rl(t,n,e,i,r,o,a){if(Yi(this,"type","recaptcha"),this.c=this.f=null,this.A=!1,this.m=n,this.g=null,a?(Sl||(Sl=new kl),a=Sl):(Cl||(Cl=new Nl),a=Cl),this.v=a,this.a=e||{theme:"light",type:"image"},this.h=[],this.a[Ll])throw new S("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[xl],!c.document)throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!un(n)||!this.i&&un(n).hasChildNodes())throw new S("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new Ya(t,o||null,r||null),this.u=i||function(){return null};var s=this;this.l=[];var u=this.a[Pl];this.a[Pl]=function(t){if(Ml(s,t),"function"==typeof u)u(t);else if("string"==typeof u){var n=_i(u,c);"function"==typeof n&&n(t)}};var h=this.a[Dl];this.a[Dl]=function(){if(Ml(s,null),"function"==typeof h)h();else if("string"==typeof h){var t=_i(h,c);"function"==typeof t&&t()}}}var Pl="callback",Dl="expired-callback",Ll="sitekey",xl="size";function Ml(t,n){for(var e=0;e<t.l.length;e++)try{t.l[e](n)}catch(i){}}function jl(t,n){return t.h.push(n),n.na((function(){Y(t.h,n)})),n}function Ul(t){if(t.A)throw new S("internal-error","RecaptchaVerifier instance has been destroyed.")}function Vl(t,n,e){var r=!1;try{this.b=e||i.app()}catch(s){throw new S("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new S("invalid-api-key");e=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().Ga()}catch(s){}try{r=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=i.SDK_VERSION?Si(i.SDK_VERSION,a):null,Rl.call(this,e,t,n,(function(){try{var t=o.b.auth().ka()}catch(n){t=null}return t}),a,P(_),r)}function Fl(t,n,e,i){t:{e=Array.prototype.slice.call(e);for(var r=0,o=!1,a=0;a<n.length;a++)if(n[a].optional)o=!0;else{if(o)throw new S("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(o=n.length,e.length<r||o<e.length)i="Expected "+(r==o?1==r?"1 argument":r+" arguments":r+"-"+o+" arguments")+" but got "+e.length+".";else{for(r=0;r<e.length;r++)if(o=n[r].optional&&void 0===e[r],!n[r].K(e[r])&&!o){if(n=n[r],0>r||r>=Kl.length)throw new S("internal-error","Argument validator received an unsupported number of arguments.");e=Kl[r],i=(i?"":e+" argument ")+(n.name?'"'+n.name+'" ':"")+"must be "+n.J+".";break t}i=null}}if(i)throw new S("argument-error",t+" failed: "+i)}(n=Rl.prototype).Ia=function(){var t=this;return this.f?this.f:this.f=jl(this,On().then((function(){if(Ri()&&!yi())return mi();throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return t.v.g(t.u())})).then((function(n){return t.g=n,eu(t.o,Vs,{})})).then((function(n){t.a[Ll]=n.recaptchaSiteKey})).s((function(n){throw t.f=null,n})))},n.render=function(){Ul(this);var t=this;return jl(this,this.Ia().then((function(){if(null===t.c){var n=t.m;if(!t.i){var e=un(n);n=function(t,n,e){var i=arguments,r=document,o=String(i[0]),a=i[1];if(!sn&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',Ht(a.name),'"'),a.type){o.push(' type="',Ht(a.type),'"');var s={};gt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=pn(r,o),a&&("string"==typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):cn(o,a)),2<i.length&&dn(r,o,i),o}("DIV"),e.appendChild(n)}t.c=t.g.render(n,t.a)}return t.c})))},n.verify=function(){Ul(this);var t=this;return jl(this,this.render().then((function(n){return new Tn((function(e){var i=t.g.getResponse(n);if(i)e(i);else{t.l.push((function n(i){i&&(function(t,n){z(t.l,(function(t){return t==n}))}(t,n),e(i))})),t.i&&t.g.execute(t.c)}}))})))},n.reset=function(){Ul(this),null!==this.c&&this.g.reset(this.c)},n.clear=function(){Ul(this),this.A=!0,this.v.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=un(this.m);for(var n;n=t.firstChild;)t.removeChild(n)}},k(Vl,Rl);var Kl="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function ql(t,n){return{name:t||"",J:"a valid string",optional:!!n,K:function(t){return"string"==typeof t}}}function Hl(t,n){return{name:t||"",J:"a boolean",optional:!!n,K:function(t){return"boolean"==typeof t}}}function Gl(t,n){return{name:t||"",J:"a valid object",optional:!!n,K:m}}function Bl(t,n){return{name:t||"",J:"a function",optional:!!n,K:function(t){return"function"==typeof t}}}function Wl(t,n){return{name:t||"",J:"null",optional:!!n,K:function(t){return null===t}}}function Xl(t){return{name:t?t+"Credential":"credential",J:t?"a valid "+t+" credential":"a valid credential",optional:!1,K:function(n){if(!n)return!1;var e=!t||n.providerId===t;return!(!n.ja||!e)}}}function Jl(t,n){return m(t)&&"string"==typeof t.type&&t.type===n&&"function"==typeof t.Ha}function Yl(t){return m(t)&&"string"==typeof t.uid}function zl(t,n,e,i){return{name:e||"",J:t.J+" or "+n.J,optional:!!i,K:function(e){return t.K(e)||n.K(e)}}}function $l(t,n){for(var e in n){var i=n[e].name;t[i]=tf(i,t[e],n[e].j)}}function Zl(t,n){for(var e in n){var i=n[e].name;i!==e&&Object.defineProperty(t,i,{get:E((function(t){return this[t]}),e),set:E((function(t,n,e,i){Fl(t,[e],[i],!0),this[n]=i}),i,e,n[e].jb),enumerable:!0})}}function Ql(t,n,e,i){t[n]=tf(n,e,i)}function tf(t,n,e){function i(){var t=Array.prototype.slice.call(arguments);return Fl(o,e,t),n.apply(this,t)}if(!e)return n;var r,o=function(t){return(t=t.split("."))[t.length-1]}(t);for(r in n)i[r]=n[r];for(r in n.prototype)i.prototype[r]=n.prototype[r];return i}$l(il.prototype,{ib:{name:"applyActionCode",j:[ql("code")]},Qa:{name:"checkActionCode",j:[ql("code")]},mb:{name:"confirmPasswordReset",j:[ql("code"),ql("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[ql("email"),ql("password")]},gc:{name:"fetchSignInMethodsForEmail",j:[ql("email")]},qa:{name:"getRedirectResult",j:[]},Ac:{name:"isSignInWithEmailLink",j:[ql("emailLink")]},Gc:{name:"onAuthStateChanged",j:[zl(Gl(),Bl(),"nextOrObserver"),Bl("opt_error",!0),Bl("opt_completed",!0)]},Hc:{name:"onIdTokenChanged",j:[zl(Gl(),Bl(),"nextOrObserver"),Bl("opt_error",!0),Bl("opt_completed",!0)]},ub:{name:"sendPasswordResetEmail",j:[ql("email"),zl(Gl("opt_actionCodeSettings",!0),Wl(null,!0),"opt_actionCodeSettings",!0)]},vb:{name:"sendSignInLinkToEmail",j:[ql("email"),Gl("actionCodeSettings")]},wb:{name:"setPersistence",j:[ql("persistence")]},Rc:{name:"signInAndRetrieveDataWithCredential",j:[Xl()]},yb:{name:"signInAnonymously",j:[]},Za:{name:"signInWithCredential",j:[Xl()]},Sc:{name:"signInWithCustomToken",j:[ql("token")]},Tc:{name:"signInWithEmailAndPassword",j:[ql("email"),ql("password")]},Uc:{name:"signInWithEmailLink",j:[ql("email"),ql("emailLink",!0)]},Vc:{name:"signInWithPhoneNumber",j:[ql("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Wc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Xc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},cd:{name:"updateCurrentUser",j:[zl({name:"user",J:"an instance of Firebase User",optional:!1,K:function(t){return!!(t&&t instanceof gh)}},Wl(),"user")]},zb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[ql(null,!0)]},ed:{name:"useDeviceLanguage",j:[]},fd:{name:"useEmulator",j:[ql("url")]},hd:{name:"verifyPasswordResetCode",j:[ql("code")]}}),Zl(il.prototype,{lc:{name:"languageCode",jb:zl(ql(),Wl(),"languageCode")},ti:{name:"tenantId",jb:zl(ql(),Wl(),"tenantId")}}),il.Persistence=$u,il.Persistence.LOCAL="local",il.Persistence.SESSION="session",il.Persistence.NONE="none",$l(gh.prototype,{delete:{name:"delete",j:[]},nc:{name:"getIdTokenResult",j:[Hl("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Hl("opt_forceRefresh",!0)]},Bc:{name:"linkAndRetrieveDataWithCredential",j:[Xl()]},pb:{name:"linkWithCredential",j:[Xl()]},Cc:{name:"linkWithPhoneNumber",j:[ql("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Dc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Ec:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Kc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Xl()]},sb:{name:"reauthenticateWithCredential",j:[Xl()]},Lc:{name:"reauthenticateWithPhoneNumber",j:[ql("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Mc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Nc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},tb:{name:"sendEmailVerification",j:[zl(Gl("opt_actionCodeSettings",!0),Wl(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[ql(null,!0)]},bd:{name:"unlink",j:[ql("provider")]},Ab:{name:"updateEmail",j:[ql("email")]},Bb:{name:"updatePassword",j:[ql("password")]},dd:{name:"updatePhoneNumber",j:[Xl("phone")]},Cb:{name:"updateProfile",j:[Gl("profile")]},Db:{name:"verifyBeforeUpdateEmail",j:[ql("email"),zl(Gl("opt_actionCodeSettings",!0),Wl(null,!0),"opt_actionCodeSettings",!0)]}}),$l(bl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),$l(gl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),$l(Tn.prototype,{na:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),Zl(Yc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",jb:Hl("appVerificationDisabledForTesting")}}),$l(zc.prototype,{confirm:{name:"confirm",j:[ql("verificationCode")]}}),Ql(uo,"fromJSON",(function(t){t="string"==typeof t?JSON.parse(t):t;for(var n,e=[mo,Oo,Lo,fo],i=0;i<e.length;i++)if(n=e[i](t))return n;return null}),[zl(ql(),Gl(),"json")]),Ql(Co,"credential",(function(t,n){return new _o(t,n)}),[ql("email"),ql("password")]),$l(_o.prototype,{w:{name:"toJSON",j:[ql(null,!0)]}}),$l(wo.prototype,{Ca:{name:"addScope",j:[ql("scope")]},Ka:{name:"setCustomParameters",j:[Gl("customOAuthParameters")]}}),Ql(wo,"credential",Io,[zl(ql(),Gl(),"token")]),Ql(Co,"credentialWithLink",Ro,[ql("email"),ql("emailLink")]),$l(To.prototype,{Ca:{name:"addScope",j:[ql("scope")]},Ka:{name:"setCustomParameters",j:[Gl("customOAuthParameters")]}}),Ql(To,"credential",Eo,[zl(ql(),Gl(),"token")]),$l(Ao.prototype,{Ca:{name:"addScope",j:[ql("scope")]},Ka:{name:"setCustomParameters",j:[Gl("customOAuthParameters")]}}),Ql(Ao,"credential",ko,[zl(ql(),zl(Gl(),Wl()),"idToken"),zl(ql(),Wl(),"accessToken",!0)]),$l(So.prototype,{Ka:{name:"setCustomParameters",j:[Gl("customOAuthParameters")]}}),Ql(So,"credential",No,[zl(ql(),Gl(),"token"),ql("secret",!0)]),$l(yo.prototype,{Ca:{name:"addScope",j:[ql("scope")]},credential:{name:"credential",j:[zl(ql(),zl(Gl(),Wl()),"optionsOrIdToken"),zl(ql(),Wl(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[Gl("customOAuthParameters")]}}),$l(po.prototype,{w:{name:"toJSON",j:[ql(null,!0)]}}),$l(ho.prototype,{w:{name:"toJSON",j:[ql(null,!0)]}}),Ql(Mo,"credential",jo,[ql("verificationId"),ql("verificationCode")]),$l(Mo.prototype,{eb:{name:"verifyPhoneNumber",j:[zl(ql(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(t){return!!t&&(t.session&&t.phoneNumber?Jl(t.session,ao)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?Jl(t.session,so)&&Yl(t.multiFactorHint):t.session&&t.multiFactorUid?Jl(t.session,so)&&"string"==typeof t.multiFactorUid:!!t.phoneNumber&&"string"==typeof t.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]}}),$l(Do.prototype,{w:{name:"toJSON",j:[ql(null,!0)]}}),$l(S.prototype,{toJSON:{name:"toJSON",j:[ql(null,!0)]}}),$l(Wo.prototype,{toJSON:{name:"toJSON",j:[ql(null,!0)]}}),$l(Bo.prototype,{toJSON:{name:"toJSON",j:[ql(null,!0)]}}),$l(eh.prototype,{toJSON:{name:"toJSON",j:[ql(null,!0)]}}),$l(Qc.prototype,{Qc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.rb}}]}}),$l(uh.prototype,{Qb:{name:"getSession",j:[]},ec:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.rb}},ql("displayName",!0)]},ad:{name:"unenroll",j:[zl({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Yl},ql(),"multiFactorInfoIdentifier")]}}),$l(Vl.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Ql(wr,"parseLink",_r,[ql("link")]),Ql(Al,"assertion",(function(t){return new ah(t)}),[Xl("phone")]),function(){if(void 0===i||!i.INTERNAL||!i.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:ur,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:sr,VERIFY_AND_CHANGE_EMAIL:cr,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:il,AuthCredential:uo,Error:S};Ql(t,"EmailAuthProvider",Co,[]),Ql(t,"FacebookAuthProvider",wo,[]),Ql(t,"GithubAuthProvider",To,[]),Ql(t,"GoogleAuthProvider",Ao,[]),Ql(t,"TwitterAuthProvider",So,[]),Ql(t,"OAuthProvider",yo,[ql("providerId")]),Ql(t,"SAMLAuthProvider",bo,[ql("providerId")]),Ql(t,"PhoneAuthProvider",Mo,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(t){return!!(t&&t instanceof il)}}]),Ql(t,"RecaptchaVerifier",Vl,[zl(ql(),{name:"",J:"an HTML element",optional:!1,K:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),Gl("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(t){return!!(t&&t instanceof i.app.App)}}]),Ql(t,"ActionCodeURL",wr,[]),Ql(t,"PhoneMultiFactorGenerator",Al,[]),i.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new il(t=t.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC"}),i.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return{getUid:T((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:T(t.mc,t),addAuthTokenListener:T(t.cc,t),removeAuthTokenListener:T(t.Oc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),i.registerVersion("@firebase/auth","0.15.0"),i.INTERNAL.extendNamespace({User:gh})}()}).apply(void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}).call(this,e("yLpj"))}}]);
  //# sourceMappingURL=6d33f454-1e6efeb0b1234585a5ff.js.map