1/*! 2 * @license Firebase v4.12.1 3 * Build: rev-5cfbafd 4 * Terms: https://firebase.google.com/terms/ 5 */ 6try{webpackJsonpFirebase([5],{78:function(t,e,n){n(79)},79:function(t,e,n){(function(t){(function(){function t(t){return"string"==typeof t}function e(t){return"boolean"==typeof t}function i(){}function r(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function o(t){return null===t}function a(t){return"array"==r(t)}function s(t){var e=r(t);return"array"==e||"object"==e&&"number"==typeof t.length}function u(t){return"function"==r(t)}function c(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function h(t,e,n){return t.call.apply(t.bind,arguments)}function f(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function l(t,e,n){return l=Function.prototype.bind&&-1!=(""+Function.prototype.bind).indexOf("native code")?h:f,l.apply(null,arguments)}function d(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function p(t,e){function n(){}n.prototype=e.prototype,t.lb=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.$c=function(t,n,i){for(var r=Array(arguments.length-2),o=2;o<arguments.length;o++)r[o-2]=arguments[o];return e.prototype[n].apply(t,r)}}function v(t){t.prototype.then=t.prototype.then,t.prototype.$goog_Thenable=!0}function m(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(t){return!1}}function b(t){if(Error.captureStackTrace)Error.captureStackTrace(this,b);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=t+"")}function g(t,e){t=t.split("%s");for(var n="",i=t.length-1,r=0;r<i;r++)n+=t[r]+(r<e.length?e[r]:"%s");b.call(this,n+t[i])}function w(t,e){throw new g("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function y(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function I(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function T(){this.b=this.a=null}function E(){var t=Lu,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function k(){this.next=this.b=this.a=null}function A(e,n){var i=e.length,r=t(e)?e.split(""):e;for(--i;0<=i;--i)i in r&&n.call(void 0,r[i],i,e)}function N(e){t:{for(var n=qi,i=e.length,r=t(e)?e.split(""):e,o=0;o<i;o++)if(o in r&&n.call(void 0,r[o],o,e)){n=o;break t}n=-1}return 0>n?null:t(e)?e.charAt(n):e[n]}function S(t,e){return 0<=mu(t,e)}function _(t,e){e=mu(t,e);var n;return(n=0<=e)&&Array.prototype.splice.call(t,e,1),n}function O(t,e){var n=0;A(t,function(i,r){e.call(void 0,i,r,t)&&1==Array.prototype.splice.call(t,r,1).length&&n++})}function P(t){return Array.prototype.concat.apply([],arguments)}function C(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}function R(t,e){for(var n=t.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1<n.length;)i+=n.shift()+r.shift();return i+n.join("%s")}function D(t){return Su.test(t)?(-1!=t.indexOf("&")&&(t=t.replace(Iu,"&")),-1!=t.indexOf("<")&&(t=t.replace(Tu,"<")),-1!=t.indexOf(">")&&(t=t.replace(Eu,">")),-1!=t.indexOf('"')&&(t=t.replace(ku,""")),-1!=t.indexOf("'")&&(t=t.replace(Au,"'")),-1!=t.indexOf("\0")&&(t=t.replace(Nu,"�")),t):t}function L(t,e){return-1!=t.indexOf(e)}function x(t,e){return t<e?-1:t>e?1:0}function M(t){return L(vu,t)}function j(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function U(t){for(var e in t)return!1;return!0}function V(t){var e,n={};for(e in t)n[e]=t[e];return n}function F(t,e){for(var n,i,r=1;r<arguments.length;r++){i=arguments[r];for(n in i)t[n]=i[n];for(var o=0;o<Ru.length;o++)n=Ru[o],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function K(t){hu.setTimeout(function(){throw t},0)}function H(){var t=hu.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!M("Presto")&&(t=function(){var t=document.createElement("IF
6RAME");t.style.display="none",t.src="",document.documentElement.appendChild(t);var e=t.contentWindow;t=e.document,t.open(),t.write(""),t.close();var n="callImmediate"+Math.random(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=l(function(t){"*"!=i&&t.origin!=i||t.data!=n||this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,i)}}}),void 0!==t&&!M("Trident")&&!M("MSIE")){var e=new t,n={},i=n;return e.port1.onmessage=function(){if(void 0!==n.next){n=n.next;var t=n.rb;n.rb=null,t()}},function(t){i.next={rb:t},i=i.next,e.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(t){var e=document.createElement("SCRIPT");e.onreadystatechange=function(){e.onreadystatechange=null,e.parentNode.removeChild(e),e=null,t(),t=null},document.documentElement.appendChild(e)}:function(t){hu.setTimeout(t,0)}}function q(t,e){Cu||G(),Du||(Cu(),Du=!0),Lu.add(t,e)}function G(){if(-1!=(hu.Promise+"").indexOf("[native code]")){var t=hu.Promise.resolve(void 0);Cu=function(){t.then(B)}}else Cu=function(){var t=B;!u(hu.setImmediate)||hu.Window&&hu.Window.prototype&&!M("Edge")&&hu.Window.prototype.setImmediate==hu.setImmediate?(Pu||(Pu=H()),Pu(t)):hu.setImmediate(t)}}function B(){for(var t;t=E();){try{t.a.call(t.b)}catch(t){K(t)}I(pu,t)}Du=!1}function X(t,e){if(this.a=xu,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=i)try{var n=this;t.call(e,function(t){it(n,Mu,t)},function(t){if(!(t instanceof ft))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(t){}it(n,ju,t)})}catch(t){it(this,ju,t)}}function W(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}function z(t,e,n){var i=Uu.get();return i.g=t,i.b=e,i.f=n,i}function J(t){if(t instanceof X)return t;var e=new X(i);return it(e,Mu,t),e}
6function Y(t){return new X(function(e,n){n(t)})}function $(t,e,n){rt(t,e,n,null)||q(d(e,t))}function Z(t){return new X(function(e,n){var i=t.length,r=[];if(i)for(var o,a=function(t,n){i--,r[t]=n,0==i&&e(r)},s=function(t){n(t)},u=0;u<t.length;u++)o=t[u],$(o,d(a,u),s);else e(r)})}function Q(t){return new X(function(e){var n=t.length,i=[];if(n)for(var r,o=function(t,r,o){n--,i[t]=r?{Zb:!0,value:o}:{Zb:!1,reason:o},0==n&&e(i)},a=0;a<t.length;a++)r=t[a],$(r,d(o,a,!0),d(o,a,!1));else e(i)})}function tt(t,e){if(t.a==xu)if(t.c){var n=t.c;if(n.b){for(var i=0,r=null,o=null,a=n.b;a&&(a.c||(i++,a.a==t&&(r=a),!(r&&1<i)));a=a.next)r||(o=a);r&&(n.a==xu&&1==i?tt(n,e):(o?(i=o,i.next==n.f&&(n.f=i),i.next=i.next.next):st(n),ut(n,r,ju,e)))}t.c=null}else it(t,ju,e)}function et(t,e){t.b||t.a!=Mu&&t.a!=ju||at(t),t.f?t.f.next=e:t.b=e,t.f=e}function nt(t,e,n,i){var r=z(null,null,null);return r.a=new X(function(t,o){r.g=e?function(n){try{var r=e.call(i,n);t(r)}catch(t){o(t)}}:t,r.b=n?function(e){try{var r=n.call(i,e);void 0===r&&e instanceof ft?o(e):t(r)}catch(t){o(t)}}:o}),r.a.c=t,et(t,r),r.a}function it(t,e,n){t.a==xu&&(t===n&&(e=ju,n=new TypeError("Promise cannot resolve to itself")),t.a=1,rt(n,t.Jc,t.Kc,t)||(t.i=n,t.a=e,t.c=null,at(t),e!=ju||n instanceof ft||ht(t,n)))}function rt(t,e,n,r){if(t instanceof X)return et(t,z(e||i,n||null,r)),!0;if(m(t))return t.then(e,n,r),!0;if(c(t))try{var o=t.then;if(u(o))return ot(t,o,e,n,r),!0}catch(t){return n.call(r,t),!0}return!1}function ot(t,e,n,i,r){function o(t){s||(s=!0,i.call(r,t))}function a(t){s||(s=!0,n.call(r,t))}var s=!1;try{e.call(t,a,o)}catch(t){o(t)}}function at(t){t.h||(t.h=!0,q(t.Ub,t))}function st(t){var e=null;return t.b&&(e=t.b,t.b=e.next,e.next=null),t.b||(t.f=null),e}function ut(t,e,n,i){if(n==ju&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,ct(e,n,i);else try{e.c?e.g.call(e.f):ct(e,n,i)}catch(t){Vu.call(null,t)}I(Uu,e)}function ct(t,e,n){e==Mu?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}function ht(t,e){t.g=!0,q(function(){t.g&&Vu.call(null,e)})}function ft(t){b.call(this,t)}function lt(){0!=Fu&&(Ku[this[fu]||(this[fu]=++lu)]=this),this.pa=this.pa,this.oa=this.oa}function dt(t){if(!t.pa&&(t.pa=!0,t.ua(),0!=Fu)){var e=t[fu]||(t[fu]=++lu);if(0!=Fu&&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 Ku[e]}}function pt(t){return pt[" "](t),t}function vt(t,e){var n=Qu;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}function mt(){var t=hu.document;return t?t.documentMode:void 0}function bt(t){return vt(t,function(){for(var e=0,n=yu(Hu+"").split("."),i=yu(t+"").split("."),r=Math.max(n.length,i.length),o=0;0==e&&o<r;o++){var a=n[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;e=x(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||x(0==a[2].length,0==s[2].length)||x(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e})}function gt(t,e){this.type=t,this.b=this.target=e,this.Eb=!0}function wt(e,n){if(gt.call(this,e?e.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,e){var i=this.type=e.type,r=e.changedTouches?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=n,n=e.relatedTarget){if(Wu){t:{try{pt(n.nodeName);var o=!0;break t}catch(t){}o=!1}o||(n=null)}}else"mouseover"==i?n=e.fromElement:"mouseout"==i&&(n=e.toElement);this.relatedTarget=n,null===r?(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0):(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=t(e.pointerType)?e.pointerType:oc[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.c()}}function yt(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.La=r,this.key=++sc,this.ma=this.Ha=!1}function It(t){t.ma=!0,t.listener=null,t.proxy=null,t.src=null,t.La=null}function Tt(t){this.src=t,this.a={},this.b=0}function Et(t,e){var n=e.type;n in t.a&&_(t.a[n],e)&&(It(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function kt(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.ma&&o.listener==e&&o.capture==!!n&&o.La==i)return r}return-1}function At(t,e,n,i,r){if(i&&i.once)_t(t,e,n,i,r);else if(a(e))for(var o=0;o<e.length;o++)At(t,e[o],n,i,r);else n=Mt(n),t&&t[ac]?Ut(t,e,n,c(i)?!!i.capture:!!i,r):Nt(t,e,n,!1,i,r)}function Nt(t,e,n,i,r,o){if(!e)throw Error("Invalid event type");var a=c(r)?!!r.capture:!!r,s=xt(t);
6if(s||(t[uc]=s=new Tt(t)),n=s.add(e,n,i,a,o),!n.proxy){if(i=St(),n.proxy=i,i.src=t,i.listener=n,t.addEventListener)rc||(r=a),void 0===r&&(r=!1),t.addEventListener(""+e,i,r);else if(t.attachEvent)t.attachEvent(Ct(""+e),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}hc++}}function St(){var t=Lt,e=nc?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}function _t(t,e,n,i,r){if(a(e))for(var o=0;o<e.length;o++)_t(t,e[o],n,i,r);else n=Mt(n),t&&t[ac]?Vt(t,e,n,c(i)?!!i.capture:!!i,r):Nt(t,e,n,!0,i,r)}function Ot(t,e,n,i,r){if(a(e))for(var o=0;o<e.length;o++)Ot(t,e[o],n,i,r);else i=c(i)?!!i.capture:!!i,n=Mt(n),t&&t[ac]?(t=t.u,(e+="")in t.a&&(o=t.a[e],-1<(n=kt(o,n,i,r))&&(It(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--)))):t&&(t=xt(t))&&(e=t.a[""+e],t=-1,e&&(t=kt(e,n,i,r)),(n=-1<t?e[t]:null)&&Pt(n))}function Pt(t){if("number"!=typeof t&&t&&!t.ma){var e=t.src;if(e&&e[ac])Et(e.u,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(Ct(n),i):e.addListener&&e.removeListener&&e.removeListener(i),hc--,(n=xt(e))?(Et(n,t),0==n.b&&(n.src=null,e[uc]=null)):It(t)}}}function Ct(t){return t in cc?cc[t]:cc[t]="on"+t}function Rt(t,e,n,i){var r=!0;if((t=xt(t))&&(e=t.a[""+e]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.ma&&(o=Dt(o,i),r=r&&!1!==o)}return r}function Dt(t,e){var n=t.listener,i=t.La||t.src;return t.Ha&&Pt(t),n.call(i,e)}function Lt(t,e){if(t.ma)return!0;if(!nc){if(!e)t:{e=["window","event"];for(var n=hu,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}if(i=e,e=new wt(i,this),n=!0,!(0>i.keyCode||void 0!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(t){r=!0}(r||void 0==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=e.b;r;r=r.parentNode)i.push(r);for(t=t.type,r=i.length-1;0<=r;r--){e.b=i[r];var o=Rt(i[r],t,!0,e);n=n&&o}for(r=0;r<i.length;r++)e.b=i[r],o=Rt(i[r],t,!1,e),n=n&&o}return n}return Dt(t,new wt(e,this))}function xt(t){return t=t[uc],t instanceof Tt?t:null}function Mt(t){return u(t)?t:(t[fc]||(t[fc]=function(e){return t.handleEvent(e)}),t[fc])}function jt(){lt.call(this),this.u=new Tt(this),this.Mb=this,this.Ta=null}function Ut(t,e,n,i,r){t.u.add(e+"",n,!1,i,r)}function Vt(t,e,n,i,r){t.u.add(e+"",n,!0,i,r)}function Ft(t,e,n,i){if(!(e=t.u.a[e+""]))return!0;e=e.concat();for(var r=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.ma&&a.capture==n){var s=a.listener,u=a.La||a.src;a.Ha&&Et(t.u,a),r=!1!==s.call(u,i)&&r}}return r&&0!=i.Eb}function Kt(t,e,n){if(u(t))n&&(t=l(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=l(t.handleEvent,t)}return 2147483647<+e?-1:hu.setTimeout(t,e||0)}function Ht(t){var e=null;return new X(function(n,i){-1==(e=Kt(function(){n(void 0)},t))&&i(Error("Failed to schedule timer."))}).o(function(t){throw hu.clearTimeout(e),t})}function qt(e){if(e.R&&"function"==typeof e.R)return e.R();if(t(e))return e.split("");if(s(e)){for(var n=[],i=e.length,r=0;r<i;r++)n.push(e[r]);return n}n=[],i=0;for(r in e)n[i++]=e[r];return n}function Gt(e){if(e.T&&"function"==typeof e.T)return e.T();if(!e.R||"function"!=typeof e.R){if(s(e)||t(e)){var n=[];e=e.length;for(var i=0;i<e;i++)n.push(i);return n}n=[],i=0;for(var r in e)n[i++]=r;return n}}function Bt(e,n){if(e.forEach&&"function"==typeof e.forEach)e.forEach(n,void 0);else if(s(e)||t(e))bu(e,n,void 0);else for(var i=Gt(e),r=qt(e),o=r.length,a=0;a<o;a++)n.call(void 0,r[a],i&&i[a],e)}function Xt(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof Xt)for(n=t.T(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function Wt(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var i=t.a[e];zt(t.b,i)&&(t.a[n++]=i),e++}t.a.length=n}if(t.c!=t.a.length){var r={};for(n=e=0;e<t.a.length;)i=t.a[e],zt(r,i)||(t.a[n++]=i,r[i]=1),e++;t.a.length=n}}function zt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Jt(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var o=t[n].substring(0,i);r=t[n].substring(i+1)}else o=t[n];e(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}function Yt(t,e){if(this.b=this.l=this.c="",this.i=null,this.h=this.g="",this.f=!1,t instanceof Yt){this.f=void 0!==e?e:t.f,$t(this,t.c),this.l=t.l,this.b=t.b,Zt(this,t.i),this.g=t.g,e=t.a;var n=new se;n.c=e.c,e.a&&(n.a=new Xt(e.a),n.b=e.b),Qt(this,n),this.h=t.h}else t&&(n=(t+"").match(lc))?(this.f=!!e,$t(this,n[1]||"",!0),this.l=re(n[2]||""),this.b=re(n[3]||"",!0),Zt(this,n[4]),this.g=re(n[5]||"",!0),Qt(this,n[6]||"",!0),this.h=re(n[7]||"")):(this.f=!!e,this.a=new se(null,this.f))}function $t(t,e,n){t.c=n?re(e,!0):e,t.c&&(t.c=t.c.replace(/:$/,""))}function Zt(t,e){if(e){if(e=+e,isNaN(e)||0>e)throw Error("Bad port number "+e);t.i=e}else t.i=null}function Qt(t,e,n){e instanceof se?(t.a=e,pe(t.a,t.f)):(n||(e=oe(e,mc)),t.a=new se(e,t.f))}function te(t,e,n){t.a.set(e,n)}function ee(t,e){return t.a.get(e)}function ne(t){return t instanceof Yt?new Yt(t):new Yt(t,void 0)}function ie(t,e){var n=new Yt(null,void 0);return $t(n,"https"),t&&(n.b=t),e&&(n.g=e),n}function re(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function oe(e,n,i){return t(e)?(e=encodeURI(e).replace(n,ae),i&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function ae(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}function se(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function ue(t){t.a||(t.a=new Xt,t.b=0,t.c&&Jt(t.c,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function ce(t){var e=Gt(t);
6if(void 0===e)throw Error("Keys are undefined");var n=new se(null,void 0);t=qt(t);for(var i=0;i<e.length;i++){var r=e[i],o=t[i];a(o)?le(n,r,o):n.add(r,o)}return n}function he(t,e){ue(t),e=de(t,e),zt(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,t=t.a,zt(t.b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Wt(t)))}function fe(t,e){return ue(t),e=de(t,e),zt(t.a.b,e)}function le(t,e,n){he(t,e),0<n.length&&(t.c=null,t.a.set(de(t,e),C(n)),t.b+=n.length)}function de(t,e){return e+="",t.f&&(e=e.toLowerCase()),e}function pe(t,e){e&&!t.f&&(ue(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(he(this,e),le(this,n,t))},t)),t.f=e}function ve(){this.a="",this.b=wc}function me(t){return t instanceof ve&&t.constructor===ve&&t.b===wc?t.a:(w("expected object of type Const, got '"+t+"'"),"type_error:Const")}function be(t){var e=new ve;return e.a=t,e}function ge(){this.a="",this.b=Tc}function we(t){return t instanceof ge&&t.constructor===ge&&t.b===Tc?t.a:(w("expected object of type TrustedResourceUrl, got '"+t+"' of type "+r(t)),"type_error:TrustedResourceUrl")}function ye(t,e){var n=me(t);if(!Ic.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(yc,function(t,i){if(!Object.prototype.hasOwnProperty.call(e,i))throw Error('Found marker, "'+i+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return t=e[i],t instanceof ve?me(t):encodeURIComponent(t+"")}),Ie(t)}function Ie(t){var e=new ge;return e.a=t,e}function Te(){this.a="",this.b=kc}function Ee(t){return t instanceof Te&&t.constructor===Te&&t.b===kc?t.a:(w("expected object of type SafeUrl, got '"+t+"' of type "+r(t)),"type_error:SafeUrl")}function ke(t){return t instanceof Te?t:(t=t.la?t.ja():t+"",Ec.test(t)||(t="about:invalid#zClosurez"),Ae(t))}function Ae(t){var e=new Te;return e.a=t,e}function Ne(){this.a="",this.b=Ac}function Se(t){return t instanceof Ne&&t.constructor===Ne&&t.b===Ac?t.a:(w("expected object of type SafeHtml, got '"+t+"' of type "+r(t)),"type_error:SafeHtml")}function _e(t){var e=new Ne;return e.a=t,e}function Oe(e){var n=document;return t(e)?n.getElementById(e):e}function Pe(t,e){j(e,function(e,n){e&&e.la&&(e=e.ja()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:Nc.hasOwnProperty(n)?t.setAttribute(Nc[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e})}function Ce(e,n,i){var r=arguments,o=document,s=r[0]+"",u=r[1];if(!gc&&u&&(u.name||u.type)){if(s=["<",s],u.name&&s.push(' name="',D(u.name),'"'),u.type){s.push(' type="',D(u.type),'"');var c={};F(c,u),delete c.type,u=c}s.push(">"),s=s.join("")}return s=o.createElement(s),u&&(t(u)?s.className=u:a(u)?s.className=u.join(" "):Pe(s,u)),2<r.length&&Re(o,s,r),s}function Re(e,n,i){function r(i){i&&n.appendChild(t(i)?e.createTextNode(i):i)}for(var o=2;o<i.length;o++){var a=i[o];!s(a)||c(a)&&0<a.nodeType?r(a):bu(De(a)?C(a):a,r)}}function De(t){if(t&&"number"==typeof t.length){if(c(t))return"function"==typeof t.item||"string"==typeof t.item;if(u(t))return"function"==typeof t.item}return!1}function Le(t){var e=[];return Me(new xe,t,e),e.join("")}function xe(){}function Me(t,e,n){if(null==e)n.push("null");else{if("object"==typeof e){if(a(e)){var i=e;e=i.length,n.push("[");for(var r="",o=0;o<e;o++)n.push(r),Me(t,i[o],n),r=",";return void n.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){n.push("{"),r="";for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&"function"!=typeof(o=e[i])&&(n.push(r),je(i,n),n.push(":"),Me(t,o,n),r=",");return void n.push("}")}e=e.valueOf()}switch(typeof e){case"string":je(e,n);break;case"number":n.push(isFinite(e)&&!isNaN(e)?e+"":"null");break;case"boolean":n.push(e+"");break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}function je(t,e){e.push('"',t.replace(_c,function(t){var e=Sc[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),Sc[t]=e),e}),'"')}function Ue(){var t=nn();return Gu&&!!Zu&&11==Zu||/Edge\/\d+/.test(t)}function Ve(){return hu.window&&hu.window.location.href||self&&self.location&&self.location.href||""}function Fe(t,e){e=e||hu.window;var n="about:blank";t&&(n=Ee(ke(t))),e.location.href=n}function Ke(t,e){var n,i=[];for(n in t)if(n in e)if(typeof t[n]!=typeof e[n])i.push(n);else if(a(t[n])){t:{var r=void 0,o=t[n],s=e[n];for(r in o)if(!(r in s)||o[r]!==s[r]){r=!1;break t}for(r in s)if(!(r in o)){r=!1;break t}r=!0}r||i.push(n)}else"object"==typeof t[n]&&null!=t[n]&&null!=e[n]?0<Ke(t[n],e[n]).length&&i.push(n):t[n]!==e[n]&&i.push(n);else i.push(n);for(n in e)n in t||i.push(n);return i}function He(){var t=nn();return!((t=tn(t)!=Cc?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t||Gu&&Zu&&!(9<Zu))}function qe(t){return t=(t||nn()).toLowerCase(),!!(t.match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function Ge(t){t=t||hu.window;try{t.close()}catch(t){}}function Be(t,e,n){var i=""+Math.floor(1e9*Math.random());e=e||500,n=n||600;
6var r=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-e)/2;e={width:e,height:n,top:0<r?r:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=nn().toLowerCase(),i&&(e.target=i,L(n,"crios/")&&(e.target="_blank")),tn(nn())==Pc&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),i=window,e=n instanceof Te?n:ke(void 0!==n.href?n.href:n+""),n=t.target||n.target,r=[];for(a in 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((M("iPhone")&&!M("iPod")&&!M("iPad")||M("iPad")||M("iPod"))&&i.navigator&&i.navigator.standalone&&n&&"_self"!=n?(a=i.document.createElement("A"),e instanceof Te||e instanceof Te||(e=e.la?e.ja():e+"",Ec.test(e)||(e="about:invalid#zClosurez"),e=Ae(e)),a.href=Ee(e),a.setAttribute("target",n),t.noreferrer&&a.setAttribute("rel","noreferrer"),t=document.createEvent("MouseEvent"),t.initMouseEvent("click",!0,!0,i,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=i.open("",n,a),t=Ee(e),a&&(Xu&&L(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,be("b/12014412, meta tag with sanitized URL"),t='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+D(t)+'">',t=_e(t),a.document.write(Se(t)),a.document.close())):(a=i.open(Ee(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(t){}return a}function Xe(t){return new X(function(e){function n(){Ht(2e3).then(function(){if(t&&!t.closed)return n();e()})}return n()})}function We(){var t=null;return new X(function(e){"complete"==hu.document.readyState?e():(t=function(){e()},_t(window,"load",t))}).o(function(e){throw Ot(window,"load",t),e})}function ze(){return Je(void 0)?We().then(function(){return new X(function(t,e){var n=hu.document,i=setTimeout(function(){e(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(i),t()},!1)})}):Y(Error("Cordova must run in an Android or iOS file scheme."))}function Je(t){return t=t||nn(),!("file:"!==un()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function Ye(){var t=hu.window;try{return!(!t||t==t.top)}catch(t){return!1}}function $e(){return"object"!=typeof hu.window&&"function"==typeof hu.importScripts}function Ze(){return uu.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":uu.INTERNAL.hasOwnProperty("node")?"Node":$e()?"Worker":"Browser"}function Qe(){var t=Ze();return"ReactNative"===t||"Node"===t}function tn(t){var e=t.toLowerCase();return L(e,"opera/")||L(e,"opr/")||L(e,"opios/")?"Opera":L(e,"iemobile")?"IEMobile":L(e,"msie")||L(e,"trident/")?"IE":L(e,"edge/")?"Edge":L(e,"firefox/")?Pc:L(e,"silk/")?"Silk":L(e,"blackberry")?"Blackberry":L(e,"webos")?"Webos":!L(e,"safari/")||L(e,"chrome/")||L(e,"crios/")||L(e,"android")?!L(e,"chrome/")&&!L(e,"crios/")||L(e,"edge/")?L(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":Cc:"Safari"}function en(t,e){e=e||[];var n,i=[],r={};for(n in Rc)r[Rc[n]]=!0;for(n=0;n<e.length;n++)void 0!==r[e[n]]&&(delete r[e[n]],i.push(e[n]));return i.sort(),e=i,e.length||(e=["FirebaseCore-web"]),i=Ze(),"Browser"===i?(r=nn(),i=tn(r)):"Worker"===i&&(r=nn(),i=tn(r)+"-"+i),i+"/JsCore/"+t+"/"+e.join(",")}function nn(){return hu.navigator&&hu.navigator.userAgent||""}function rn(t,e){t=t.split("."),e=e||hu;for(var n=0;n<t.length&&"object"==typeof e&&null!=e;n++)e=e[t[n]];return n!=t.length&&(e=void 0),e}function on(){try{var t=hu.localStorage,e=dn();if(t)return t.setItem(e,"1"),t.removeItem(e),!Ue()||!!hu.indexedDB}catch(t){return $e()&&!!hu.indexedDB}return!1}function an(){return(sn()||"chrome-extension:"===un()||Je())&&!Qe()&&on()&&!$e()}function sn(){return"http:"===un()||"https:"===un()}function un(){return hu.location&&hu.location.protocol||null}function cn(t){return t=t||nn(),!qe(t)&&tn(t)!=Pc}function hn(t){return void 0===t?null:Le(t)}function fn(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!==t[e]&&void 0!==t[e]&&(n[e]=t[e]);return n}function ln(t){if(null!==t)return JSON.parse(t)}function dn(t){return t||""+Math.floor(1e9*Math.random())}function pn(t){return t=t||nn(),"Safari"!=tn(t)&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function vn(){var t=hu.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var n=0;n<t.CP.length;n++)t.CP[n]=null}function mn(){var t=hu.navigator;return!t||"boolean"!=typeof t.onLine||!sn()&&"chrome-extension:"!==un()&&void 0===t.connection||t.onLine}function bn(t,e){if(t>
6e)throw Error("Short delay should be less than long delay!");this.c=t,this.b=e,t=nn(),e=Ze(),this.a=qe(t)||"ReactNative"===e}function gn(){var t=hu.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function wn(){var t=hu.document,e=null;return gn()||!t?J():new X(function(n){e=function(){gn()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)}).o(function(n){throw t.removeEventListener("visibilitychange",e,!1),n})}function yn(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(t){}return null}function In(){return!(!rn("fireauth.oauthhelper",hu)&&!rn("fireauth.iframe",hu))}function Tn(t,e,n){Dc?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function En(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Tn(t,n,e[n])}function kn(t){var e={};return En(e,t),e}function An(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Nn(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n<e.length;n++){var i=t[e[n]];if(void 0===i||null===i||""===i)return!1}return!0}function Sn(t){var e=t;if("object"==typeof t&&null!=t){e="length"in t?[]:{};for(var n in t)Tn(e,n,Sn(t[n]))}return e}function _n(t){var e={},n=t[jc],i=t[Uc];if(!(t=t[Vc])||t!=Mc&&!n)throw Error("Invalid provider user info!");e[Kc]=i||null,e[Fc]=n||null,Tn(this,qc,t),Tn(this,Hc,Sn(e))}function On(t,e){this.code=Gc+t,this.message=e||Bc[t]||""}function Pn(t){var e=t&&t.code;return e?new On(e.substring(Gc.length),t.message):null}function Cn(t){var e=t[Jc];if(void 0===e)throw new On("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new On("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Xc];if(n&&"object"==typeof n){e=n[Zc];var i=n[Yc];if(n=n[$c],"string"==typeof e&&e.length){if(this.a=e,void 0!==i&&"boolean"!=typeof i)throw new On("argument-error",Yc+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new On("argument-error",$c+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new On("argument-error",Zc+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new On("missing-android-pkg-name")}}else if(void 0!==n)throw new On("argument-error",Xc+" property must be a non null object when specified.");if(this.f=null,(e=t[zc])&&"object"==typeof e){if("string"==typeof(e=e[Qc])&&e.length)this.f=e;else if(void 0!==e)throw new On("argument-error",Qc+" property must be a non empty string when specified.")}else if(void 0!==e)throw new On("argument-error",zc+" property must be a non null object when specified.");if(void 0!==(t=t[Wc])&&"boolean"!=typeof t)throw new On("argument-error",Wc+" property must be a boolean when specified.");this.c=!!t}function Rn(t){var e={};e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f;for(var n in e)null===e[n]&&delete e[n];return e}function Dn(t){return gu(t,function(t){return t=t.toString(16),1<t.length?t:"0"+t}).join("")}function Ln(t){var e="";return xn(t,function(t){e+=String.fromCharCode(t)}),e}function xn(t,e){function n(e){for(;i<t.length;){var n=t.charAt(i++),r=eh[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}Mn();for(var i=0;;){var r=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===r)break;e(r<<2|o>>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}function Mn(){if(!th){th={},eh={};for(var t=0;65>t;t++)th[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t),eh[th[t]]=t,62<=t&&(eh["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(t)]=t)}}function jn(t){this.c=t.sub,du(),this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function Un(t){if(t=t.split("."),3!=t.length)return null;t=t[1];for(var e=(4-t.length%4)%4,n=0;n<e;n++)t+=".";try{var i=JSON.parse(Ln(t));if(i.sub&&i.iss&&i.aud&&i.exp)return new jn(i)}catch(t){}return null}function Vn(t){for(var e in rh)if(rh[e].Na==t)return rh[e];return null}function Fn(t){var e={};e["facebook.com"]=qn,e["google.com"]=Bn,e["github.com"]=Gn,e["twitter.com"]=Xn;var n=t&&t[ah];try{if(n)return e[n]?new e[n](t):new Hn(t);if(void 0!==t[oh])return new Kn(t)}catch(t){}return null}function Kn(t){var e=t[ah];if(!e&&t[oh]){var n=Un(t[oh]);n&&n.a&&(e=n.a)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),n=!1,void 0!==t.isNewUser?n=!!t.
6isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Tn(this,"providerId",e),Tn(this,"isNewUser",n)}function Hn(t){Kn.call(this,t),t=ln(t.rawUserInfo||"{}"),Tn(this,"profile",Sn(t||{}))}function qn(t){if(Hn.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Gn(t){if(Hn.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Tn(this,"username",this.profile&&this.profile.login||null)}function Bn(t){if(Hn.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Xn(t){if(Hn.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Tn(this,"username",t.screenName||null)}function Wn(t){this.a=ne(t)}function zn(t){var e=ne(t),n=ee(e,"link"),i=ee(ne(n),"link");return e=ee(e,"deep_link_id"),ee(ne(e),"link")||e||i||n||t}function Jn(t,e){return t.then(function(t){if(t[Ah]){var n=Un(t[Ah]);if(!n||e!=n.c)throw new On("user-mismatch");return t}throw new On("user-mismatch")}).o(function(t){throw t&&t.code&&t.code==Gc+"user-not-found"?new On("user-mismatch"):t})}function Yn(t,e,n){if(e.idToken||e.accessToken)e.idToken&&Tn(this,"idToken",e.idToken),e.accessToken&&Tn(this,"accessToken",e.accessToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new On("internal-error","failed to construct a credential");Tn(this,"accessToken",e.oauthToken),Tn(this,"secret",e.oauthTokenSecret)}Tn(this,"providerId",t),Tn(this,"signInMethod",n)}function $n(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,{postBody:""+ce(e),requestUri:"http://localhost"}}function Zn(t,e){this.zc=e||[],En(this,{providerId:t,isOAuthProvider:!0}),this.tb={},this.Za=(Vn(t)||{}).Ma||null,this.Xa=null}function Qn(t){Zn.call(this,t,ih),this.a=[]}function ti(){Qn.call(this,"facebook.com")}function ei(t){if(!t)throw new On("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return c(t)&&(e=t.accessToken),(new ti).credential(null,e)}function ni(){Qn.call(this,"github.com")}function ii(t){if(!t)throw new On("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return c(t)&&(e=t.accessToken),(new ni).credential(null,e)}function ri(){Qn.call(this,"google.com"),this.ta("profile")}function oi(t,e){var n=t;return c(t)&&(n=t.idToken,e=t.accessToken),(new ri).credential(n,e)}function ai(){Zn.call(this,"twitter.com",nh)}function si(t,e){var n=t;if(c(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new On("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Yn("twitter.com",n,"twitter.com")}function ui(t,e,n){this.a=t,this.b=e,Tn(this,"providerId","password"),Tn(this,"signInMethod",n===ci.EMAIL_LINK_SIGN_IN_METHOD?ci.EMAIL_LINK_SIGN_IN_METHOD:ci.EMAIL_PASSWORD_SIGN_IN_METHOD)}function ci(){En(this,{providerId:"password",isOAuthProvider:!1})}function hi(t,e){if(!(e=fi(e)))throw new On("argument-error","Invalid email link!");return new ui(t,e,ci.EMAIL_LINK_SIGN_IN_METHOD)}function fi(t){t=zn(t),t=new Wn(t);var e=ee(t.a,"oobCode")||null;return"signIn"===(ee(t.a,"mode")||null)&&e?e:null}function li(t){if(!(t.Ra&&t.Qa||t.Ea&&t.Y))throw new On("internal-error");this.a=t,Tn(this,"providerId","phone"),Tn(this,"signInMethod","phone")}function di(t){return t.a.Ea&&t.a.Y?{temporaryProof:t.a.Ea,phoneNumber:t.a.Y}:{sessionInfo:t.a.Ra,code:t.a.Qa}}function pi(t){try{this.a=t||uu.auth()}catch(t){throw new On("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().")}En(this,{providerId:"phone",isOAuthProvider:!1})}function vi(t,e){if(!t)throw new On("missing-verification-id");if(!e)throw new On("missing-verification-code");return new li({Ra:t,Qa:e})}function mi(t){if(t.temporaryProof&&t.phoneNumber)return new li({Ea:t.temporaryProof,Y:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,i=t&&t.oauthTokenSecret;t=t&&t.oauthIdToken;try{switch(e){case"google.com":return oi(t,n);case"facebook.com":return ei(n);case"github.com":return ii(n);case"twitter.com":return si(n,i);default:return new Qn(e).credential(t,n)}}catch(t){return null}}function bi(t){if(!t.isOAuthProvider)throw new On("invalid-oauth-provider")}function gi(t,e,n,i,r){if(this.b=t,this.c=e||null,this.f=n||null,this.g=i||null,this.a=r||null,!this.f&&!this.a)throw new On("invalid-auth-event");
6if(this.f&&this.a)throw new On("invalid-auth-event");if(this.f&&!this.g)throw new On("invalid-auth-event")}function wi(t){return t=t||{},t.type?new gi(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&Pn(t.error)):null}function yi(){this.b=null,this.a=[]}function Ii(t){var e="unauthorized-domain",n=void 0,i=ne(t);t=i.b,i=i.c,"chrome-extension"==i?n=R("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?n=R("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",On.call(this,e,n)}function Ti(t,e,n){On.call(this,t,n),t=e||{},t.ub&&Tn(this,"email",t.ub),t.Y&&Tn(this,"phoneNumber",t.Y),t.credential&&Tn(this,"credential",t.credential)}function Ei(t){if(t.code){var e=t.code||"";0==e.indexOf(Gc)&&(e=e.substring(Gc.length));var n={credential:mi(t)};if(t.email)n.ub=t.email;else{if(!t.phoneNumber)return new On(e,t.message||void 0);n.Y=t.phoneNumber}return new Ti(e,n,t.message)}return null}function ki(){}function Ai(t){return t.c||(t.c=t.b())}function Ni(){}function Si(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<4;n++){var i=e[n];try{return new ActiveXObject(i),t.f=i}catch(t){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function _i(){}function Oi(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseText="",this.status=-1,this.statusText="",this.a.onload=l(this.ac,this),this.a.onerror=l(this.zb,this),this.a.onprogress=l(this.bc,this),this.a.ontimeout=l(this.ec,this)}function Pi(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Ci(t,e,n){this.reset(t,e,n,void 0,void 0)}function Ri(t){this.f=t,this.b=this.c=this.a=null}function Di(t,e){this.name=t,this.value=e}function Li(t){return t.c?t.c:t.a?Li(t.a):(w("Root logger has no level set."),null)}function xi(t){mh||(mh=new Ri(""),vh[""]=mh,mh.c=dh);var e;if(!(e=vh[t])){e=new Ri(t);var n=t.lastIndexOf("."),i=t.substr(n+1);n=xi(t.substr(0,n)),n.b||(n.b={}),n.b[i]=e,e.a=n,vh[t]=e}return e}function Mi(t,e){t&&t.log(ph,e,void 0)}function ji(t){this.f=t}function Ui(t){jt.call(this),this.i=t,this.readyState=bh,this.status=0,this.responseText=this.statusText="",this.onreadystatechange=null,this.g=new Headers,this.b=null,this.h="GET",this.c="",this.a=!1,this.f=xi("goog.net.FetchXmlHttp")}function Vi(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function Fi(t){jt.call(this),this.headers=new Xt,this.D=t||null,this.c=!1,this.A=this.a=null,this.h=this.N=this.l="",this.f=this.I=this.i=this.G=!1,this.g=0,this.s=null,this.m=gh,this.v=this.O=!1}function Ki(t,e,n,i,r){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.N=n,t.G=!1,t.c=!0,t.a=t.D?t.D.a():ch.a(),t.A=Ai(t.D?t.D:ch),t.a.onreadystatechange=l(t.Db,t);try{Mi(t.b,Zi(t,"Opening Xhr")),t.I=!0,t.a.open(n,e+"",!0),t.I=!1}catch(e){return Mi(t.b,Zi(t,"Error opening Xhr: "+e.message)),void Gi(t,e)}e=i||"";var o=new Xt(t.headers);r&&Bt(r,function(t,e){o.set(e,t)}),r=N(o.T()),i=hu.FormData&&e instanceof hu.FormData,!S(yh,n)||r||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.O&&(t.a.withCredentials=t.O);try{zi(t),0<t.g&&(t.v=Hi(t.a),Mi(t.b,Zi(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.v)),t.v?(t.a.timeout=t.g,t.a.ontimeout=l(t.Fa,t)):t.s=Kt(t.Fa,t.g,t)),Mi(t.b,Zi(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(e){Mi(t.b,Zi(t,"Send error: "+e.message)),Gi(t,e)}}function Hi(t){return Gu&&bt(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}function qi(t){return"content-type"==t.toLowerCase()}function Gi(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,Bi(t),Wi(t)}function Bi(t){t.G||(t.G=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function Xi(t){if(t.c&&void 0!==cu)if(t.A[1]&&4==Ji(t)&&2==Yi(t))Mi(t.b,Zi(t,"Local request error detected and ignored"));else if(t.i&&4==Ji(t))Kt(t.Db,0,t);else if(t.dispatchEvent("readystatechange"),4==Ji(t)){Mi(t.b,Zi(t,"Request complete")),t.c=!1;try{var e=Yi(t);t:switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break t;default:n=!1}var i;if(!(i=n)){var r;if(r=0===e){var o=(t.l+"").match(lc)[1]||null;if(!o&&hu.self&&hu.self.location){var a=hu.self.location.protocol;o=a.substr(0,a.length-1)}r=!wh.test(o?o.toLowerCase():"")}i=r}if(i)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var s=2<Ji(t)?t.a.statusText:""}catch(e){Mi(t.b,"Can not get status: "+e.message),s=""}t.h=s+" ["+Yi(t)+"]",Bi(t)}}finally{Wi(t)}}}function Wi(t,e){if(t.a){zi(t);var n=t.a,r=t.A[0]?i:null;
6t.a=null,t.A=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(e){(t=t.b)&&t.log(fh,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}}function zi(t){t.a&&t.v&&(t.a.ontimeout=null),t.s&&(hu.clearTimeout(t.s),t.s=null)}function Ji(t){return t.a?t.a.readyState:0}function Yi(t){try{return 2<Ji(t)?t.a.status:-1}catch(t){return-1}}function $i(t){try{return t.a?t.a.responseText:""}catch(e){return Mi(t.b,"Can not get responseText: "+e.message),""}}function Zi(t,e){return e+" ["+t.N+" "+t.l+" "+Yi(t)+"]"}function Qi(t,e){this.g=[],this.v=t,this.s=e||null,this.f=this.a=!1,this.c=void 0,this.u=this.A=this.i=!1,this.h=0,this.b=null,this.l=0}function tr(t,e,n){t.a=!0,t.c=n,t.f=!e,or(t)}function er(t){if(t.a){if(!t.u)throw new ar(t);t.u=!1}}function nr(t,e){ir(t,null,e,void 0)}function ir(t,e,n,i){t.g.push([e,n,i]),t.a&&or(t)}function rr(t){return wu(t.g,function(t){return u(t[1])})}function or(t){if(t.h&&t.a&&rr(t)){var e=t.h,n=Ih[e];n&&(hu.clearTimeout(n.a),delete Ih[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var i=n=!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.s,e);void 0!==s&&(t.f=t.f&&(s==e||s instanceof Error),t.c=e=s),(m(e)||"function"==typeof hu.Promise&&e instanceof hu.Promise)&&(i=!0,t.i=!0)}catch(i){e=i,t.f=!0,rr(t)||(n=!0)}}t.c=e,i&&(s=l(t.m,t,!0),i=l(t.m,t,!1),e instanceof Qi?(ir(e,s,i),e.A=!0):e.then(s,i)),n&&(e=new ur(e),Ih[e.a]=e,t.h=e.a)}function ar(){b.call(this)}function sr(){b.call(this)}function ur(t){this.a=hu.setTimeout(l(this.c,this),0),this.b=t}function cr(t){var e={},n=e.document||document,i=we(t),r=document.createElement("SCRIPT"),o={Fb:r,Fa:void 0},a=new Qi(fr,o),s=null,u=null!=e.timeout?e.timeout:5e3;return 0<u&&(s=window.setTimeout(function(){lr(r,!0);var t=new dr(Eh,"Timeout reached for loading script "+i);er(a),tr(a,!1,t)},u),o.Fa=s),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(lr(r,e.ad||!1,s),a.D())},r.onerror=function(){lr(r,!0,s);var t=new dr(Th,"Error while loading script "+i);er(a),tr(a,!1,t)},o=e.attributes||{},F(o,{type:"text/javascript",charset:"UTF-8"}),Pe(r,o),r.src=we(t),hr(n).appendChild(r),a}function hr(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}function fr(){if(this&&this.Fb){var t=this.Fb;t&&"SCRIPT"==t.tagName&&lr(t,!0,this.Fa)}}function lr(t,e,n){null!=n&&hu.clearTimeout(n),t.onload=i,t.onerror=i,t.onreadystatechange=i,e&&window.setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},0)}function dr(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),b.call(this,n),this.code=t}function pr(t){this.f=t}function vr(t,e,n){if(this.b=t,t=e||{},this.i=t.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.l=t.secureTokenTimeout||Nh,this.f=V(t.secureTokenHeaders||Sh),this.g=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.h=t.firebaseTimeout||_h,this.a=V(t.firebaseHeaders||Oh),n&&(this.a["X-Client-Version"]=n,this.f["X-Client-Version"]=n),n="Node"==Ze(),!(n=hu.XMLHttpRequest||n&&uu.INTERNAL.node&&uu.INTERNAL.node.XMLHttpRequest)&&!$e())throw new On("internal-error","The XMLHttpRequest compatibility library was not found.");this.c=void 0,$e()?this.c=new ji(self):Qe()?this.c=new pr(n):this.c=new _i}function mr(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function br(t,e){e?(t.a["X-Client-Version"]=e,t.f["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.f["X-Client-Version"])}function gr(t,e,n,i,r,o,a){mn()?(He()||$e()?t=l(t.m,t):(kh||(kh=new X(function(t,e){wr(t,e)})),t=l(t.u,t)),t(e,n,i,r,o,a)):n&&n(null)}function wr(t,e){((window.gapi||{}).client||{}).request?t():(hu[Ch]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))},nr(cr(ye(Ph,{onload:Ch})),function(){e(Error("CORS_UNSUPPORTED"))}))}function yr(t,e){return new X(function(n,i){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?gr(t,t.i+"?key="+encodeURIComponent(t.b),function(t){t?t.error?i(Vr(t)):t.access_token&&t.refresh_token?n(t):i(new On("internal-error")):i(new On("network-request-failed"))},"POST",""+ce(e),t.f,t.l.get()):i(new On("internal-error"))})}function Ir(t,e,n,i,r,o){var a=ne(t.g+e);te(a,"key",t.b),o&&te(a,"cb",""+du());var s="GET"==n;if(s)for(var u in i)i.hasOwnProperty(u)&&te(a,u,i[u]);return new X(function(e,o){gr(t,""+a,function(t){t?t.error?o(Vr(t,r||{})):e(t):o(new On("network-request-failed"))},n,s?void 0:Le(fn(i)),t.a,t.h.get())})}function Tr(t){if(!uh.test(t.email))throw new On("invalid-email")}function Er(t){"email"in t&&Tr(t)}function kr(t,e){return jr(t,jh,{identifier:e,continueUri:sn()?Ve():"http://localhost"}).then(function(t){return t.allProviders||[]})}function Ar(t,e){return jr(t,jh,{identifier:e,continueUri:sn()?Ve():"http://localhost"}).then(function(t){return t.signinMethods||[]})}function Nr(t){return jr(t,Xh,{}).then(function(t){return t.authorizedDomains||[]})}function Sr(t){if(!t[Ah])throw new On("internal-error")}function _r(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new On("internal-error")}else{if(!t.sessionInfo)throw new On("missing-verification-id");if(!t.code)throw new On("missing-verification-code")}}function Or(t,e){return jr(t,Jh,e)}function Pr(t,e,n){return jr(t,Vh,{idToken:e,deleteProvider:n})}function Cr(t){if(!t.requestUri||!t.sessionId&&!t.postBody)throw new On("internal-error")}function Rr(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=Ei(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Ei(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Ei(t)):t.errorMessage&&(e=Ur(t.errorMessage)),e)throw e;if(!t[Ah])throw new On("internal-error")}function Dr(t,e){return e.returnIdpCredential=!0,jr(t,Qh,e)}function Lr(t,e){return e.returnIdpCredential=!0,jr(t,ef,e)}function xr(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,jr(t,tf,e)}function Mr(t){if(!t.oobCode)throw new On("invalid-action-code")}function jr(t,e,n){if(!Nn(n,e.S))return Y(new On("internal-error"));var i,r=e.Cb||"POST";return J(n).then(e.w).then(function(){return e.P&&(n.returnSecureToken=!0),Ir(t,e.endpoint,r,n,e.Tb,e.pb||!1)}).then(function(t){return i=t}).then(e.J).then(function(){if(!e.$)return i;if(!(e.$ in i))throw new On("internal-error");return i[e.$]})}function Ur(t){return Vr({error:{errors:[{message:t}],code:400,message:t}})}function Vr(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=i[n]?new On(i[n]):null)return n;n=t.error&&t.error.message||"",i={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVA
6LID_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",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",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",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_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash"},F(i,e||{}),e=(e=n.match(/^[^\s]+\s*:\s*(.*)$/))&&1<e.length?e[1]:void 0;for(var r in i)if(0===n.indexOf(r))return new On(i[r],e);return!e&&t&&(e=hn(t)),new On("internal-error",e)}function Fr(t){for(var e in uf)if(uf[e].id===t)return t=uf[e],{firebaseEndpoint:t.Ya,secureTokenEndpoint:t.eb};return null}function Kr(t){this.b=t,this.a=null,this.ab=Hr(this)}function Hr(t){return Br().then(function(){return new X(function(e,n){rn("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:rn("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(i){function r(){clearTimeout(o),e()}t.a=i,t.a.restyle({setHideOnLeave:!1});var o=setTimeout(function(){n(Error("Network Error"))},ff.get());i.ping(r).then(r,function(){n(Error("Network Error"))})})})})}function qr(t,e){return t.ab.then(function(){return new X(function(n){t.a.send(e.type,e,n,rn("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}function Gr(t,e){t.ab.then(function(){t.a.register("authEvent",e,rn("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}function Br(){return lf||(lf=new X(function(t,e){if(mn()){var n=function(){vn(),rn("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){vn(),e(Error("Network Error"))},timeout:hf.get()})};if(rn("gapi.iframes.Iframe"))t();else if(rn("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random());hu[i]=function(){rn("gapi.load")?n():e(Error("Network Error"))},i=ye(cf,{onload:i}),J(cr(i)).o(function(){e(Error("Network Error"))})}}else e(Error("Network Error"))}).o(function(t){throw lf=null,t}))}function Xr(t,e,n){this.i=t,this.g=e,this.h=n,this.f=null,this.a=ie(this.i,"/__/auth/iframe"),te(this.a,"apiKey",this.g),te(this.a,"appName",this.h),this.b=null,this.c=[]}function Wr(t,e,n,i,r){this.m=t,this.u=e,this.c=n,this.l=i,this.h=this.g=this.i=null,this.a=r,this.f=null}function zr(t){try{return uu.app(t).auth().Ka()}catch(t){return[]}}function Jr(t,e,n,i,r){this.u=t,this.f=e,this.b=n,this.c=i||null,this.h=r||null,this.m=this.s=this.v=null,this.g=[],this.l=this.a=null}function Yr(t){var e=Ve();return Nr(t).then(function(t){t:{var n=ne(e),i=n.c;n=n.b;for(var r=0;r<t.length;r++){var o=t[r],a=n,s=i;if(0==o.indexOf("chrome-extension://")?a=ne(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:Oc.test(o)?a=a==o:(o=o.split(".").join("\\."),a=RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new Ii(Ve())})}function $r(t){return t.l?t.l:(t.l=We().then(function(){if(!t.s){var e=t.c,n=t.h,i=zr(t.b),r=new Xr(t.u,t.f,t.b);r.f=e,r.b=n,r.c=C(i||[]),t.s=""+r}t.i=new Kr(t.s),to(t)}),t.l)}
6function Zr(t){return t.m||(t.v=t.c?en(t.c,zr(t.b)):null,t.m=new vr(t.f,Fr(t.h),t.v)),t.m}function Qr(t,e,n,i,r,o,a,s,u,c){return t=new Wr(t,e,n,i,r),t.i=o,t.g=a,t.h=s,t.b=V(u||null),t.f=c,""+t}function to(t){if(!t.i)throw Error("IfcHandler must be initialized!");Gr(t.i,function(e){var n={};if(e&&e.authEvent){var i=!1;for(e=wi(e.authEvent),n=0;n<t.g.length;n++)i=t.g[n](e)||i;return n={},n.status=i?"ACK":"ERROR",J(n)}return n.status="ERROR",J(n)})}function eo(t){var e={type:"webStorageSupport"};return $r(t).then(function(){return qr(t.i,e)}).then(function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()})}function no(t){if(this.a=t||uu.INTERNAL.reactNative&&uu.INTERNAL.reactNative.AsyncStorage,!this.a)throw new On("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function io(){this.a={},this.type="inMemory"}function ro(){try{var t=!!hu.indexedDB}catch(e){t=!1}if(!t)throw new On("web-storage-unsupported");this.f={},this.c=[],this.a=0,this.h=hu.indexedDB,this.type="indexedDB"}function oo(t){return new X(function(e,n){var i=t.h.open("firebaseLocalStorageDb",1);i.onerror=function(t){n(Error(t.target.errorCode))},i.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(t){n(t)}},i.onsuccess=function(t){e(t.target.result)}})}function ao(t){return t.g||(t.g=oo(t)),t.g}function so(t){return t.objectStore("firebaseLocalStorage")}function uo(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function co(t){return new X(function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(Error(t.target.errorCode))}})}function ho(t){function e(){return t.b=Ht(800).then(l(t.Ic,t)).then(function(e){0<e.length&&bu(t.c,function(t){t(e)})}).then(e).o(function(t){"STOP_EVENT"!=t.message&&e()}),t.b}t.b&&t.b.cancel("STOP_EVENT"),e()}function fo(){if(!po()){if("Node"==Ze())throw new On("internal-error","The LocalStorage compatibility library was not found.");throw new On("web-storage-unsupported")}this.a=lo()||uu.INTERNAL.node.localStorage,this.type="localStorage"}function lo(){try{var t=hu.localStorage,e=dn();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(t){return null}}function po(){var t="Node"==Ze();if(!(t=lo()||t&&uu.INTERNAL.node&&uu.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(t){return!1}}function vo(){this.type="nullStorage"}function mo(){if(!go()){if("Node"==Ze())throw new On("internal-error","The SessionStorage compatibility library was not found.");throw new On("web-storage-unsupported")}this.a=bo()||uu.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function bo(){try{var t=hu.sessionStorage,e=dn();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(t){return null}}function go(){var t="Node"==Ze();if(!(t=bo()||t&&uu.INTERNAL.node&&uu.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(t){return!1}}function wo(){var t={};t.Browser=mf,t.Node=bf,t.ReactNative=gf,t.Worker=wf,this.a=t[Ze()]}function yo(t){var e=new On("invalid-persistence-type"),n=new On("unsupported-persistence-type");t:{for(i in yf)if(yf[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw e;switch(Ze()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;default:if(!on()&&"none"!==t)throw n}}function Io(){var t=!(pn(nn())||!Ye()),e=cn(),n=on();this.m=t,this.h=e,this.l=n,this.a={},pf||(pf=new wo),t=pf;try{if(!Ue()&&In()||!hu.indexedDB)var i=new t.a.B;else df||(df=new ro),i=df;this.g=i}catch(t){this.g=new io,this.h=!0}try{this.i=new t.a.Pa}catch(t){this.i=new io}this.u=new io,this.f=l(this.Kb,this),this.b={}}function To(){return vf||(vf=new Io),vf}function Eo(t,e){switch(e){case"session":return t.i;case"none":return t.u;default:return t.g}}function ko(t,e){return"firebase:"+t.name+(e?":"+e:"")}function Ao(t,e,n){var i=ko(e,n),r=Eo(t,e.B);return t.get(e,n).then(function(o){var a=null;try{a=ln(hu.localStorage.getItem(i))}catch(t){}if(a&&!o)return hu.localStorage.removeItem(i),t.set(e,a,n);a&&o&&"localStorage"!=r.type&&hu.localStorage.removeItem(i)})}function No(t,e,n){return n=ko(e,n),"local"==e.B&&(t.b[n]=null),Eo(t,e.B).X(n)}function So(t){_o(t),t.c=setInterval(function(){for(var e in t.a){var n=hu.localStorage.getItem(e),i=t.b[e];n!=i&&(t.b[e]=n,n=new wt({type:"storage",key:e,target:window,oldValue:i,newValue:n,a:!0}),t.Kb(n))}},1e3)}function _o(t){t.c&&(clearInterval(t.c),t.c=null)}function Oo(t){this.a=t,this.b=To()}function Po(t){return t.b.get(Tf,t.a).then(function(t){return wi(t)})}function Co(){this.a=To()}function Ro(){this.b=-1}function Do(t,e){this.b=-1,this.b=Ef,this.f=hu.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=hu.Int32Array?new Int32Array(64):Array(64),void 0!==If||(If=hu.Int32Array?new Int32Array(_f):_f),this.reset()}function Lo(t){for(var e=t.f,n=t.l,i=0,r=0;r<e.length;)n[i++]=e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3],r=4*i;for(e=16;64>e;e++){r=0|n[e-15],i=0|n[e-2];var o=(0|n[e-16])+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,a=(0|n[e-7])+((i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[e]=o+a|0}i=0|t.a[0],r=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],c=0|t.a[4],h=0|t.a[5],f=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var l=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&s^r&s)|0;a=c&h^~c&f,o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>
625|c<<7))|0,a=a+(0|If[e])|0,a=o+(a+(0|n[e])|0)|0,o=f,f=h,h=c,c=u+a|0,u=s,s=r,r=i,i=a+l|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]+f|0,t.a[7]=t.a[7]+o|0}function xo(e,n,i){void 0===i&&(i=n.length);var r=0,o=e.c;if(t(n))for(;r<i;)e.f[o++]=n.charCodeAt(r++),o==e.b&&(Lo(e),o=0);else{if(!s(n))throw Error("message must be string or array");for(;r<i;){var a=n[r++];if(!("number"==typeof a&&0<=a&&255>=a&&a==(0|a)))throw Error("message must be a byte array");e.f[o++]=a,o==e.b&&(Lo(e),o=0)}}e.c=o,e.g+=i}function Mo(){Do.call(this,8,Of)}function jo(t,e,n,i,r){this.u=t,this.i=e,this.l=n,this.m=i||null,this.s=r||null,this.h=e+":"+n,this.v=new Co,this.g=new Oo(this.h),this.f=null,this.b=[],this.a=this.c=null}function Uo(t){return new On("invalid-cordova-configuration",t)}function Vo(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}function Fo(t){var e=new Mo;xo(e,t),t=[];var n=8*e.g;56>e.c?xo(e,Sf,56-e.c):xo(e,Sf,e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&n,n/=256;for(Lo(e),i=n=0;i<e.i;i++)for(var r=24;0<=r;r-=8)t[n++]=e.a[i]>>r&255;return Dn(t)}function Ko(t,e,n,i){var r=Vo(),o=new gi(e,i,null,r,new On("no-auth-event")),a=rn("BuildInfo.packageName",hu);if("string"!=typeof a)throw new On("invalid-cordova-configuration");var s=rn("BuildInfo.displayName",hu),u={};if(nn().toLowerCase().match(/iphone|ipad|ipod/))u.ibi=a;else{if(!nn().toLowerCase().match(/android/))return Y(new On("operation-not-supported-in-this-environment"));u.apn=a}s&&(u.appDisplayName=s),r=Fo(r),u.sessionId=r;var c=Qr(t.u,t.i,t.l,e,n,null,i,t.m,u,t.s);return t.ca().then(function(){var e=t.h;return t.v.a.set(Tf,o.C(),e)}).then(function(){var e=rn("cordova.plugins.browsertab.isAvailable",hu);if("function"!=typeof e)throw new On("invalid-cordova-configuration");var n=null;e(function(e){if(e){if("function"!=typeof(n=rn("cordova.plugins.browsertab.openUrl",hu)))throw new On("invalid-cordova-configuration");n(c)}else{if("function"!=typeof(n=rn("cordova.InAppBrowser.open",hu)))throw new On("invalid-cordova-configuration");e=nn(),e=!(!e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)&&!e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)),t.a=n(c,e?"_blank":"_system","location=yes")}})})}function Ho(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(t){}}function qo(t){return t.f||(t.f=t.ca().then(function(){return new X(function(e){function n(i){return e(i),t.Ja(n),!1}t.va(n),Bo(t)})})),t.f}function Go(t){var e=null;return Po(t.g).then(function(n){return e=n,n=t.g,No(n.b,Tf,n.a)}).then(function(){return e})}function Bo(t){function e(e){i=!0,r&&r.cancel(),Go(t).then(function(i){var r=n;if(i&&e&&e.url){var o=null;r=zn(e.url),-1!=r.indexOf("/__/auth/callback")&&(o=ne(r),o=ln(ee(o,"firebaseError")||null),o=(o="object"==typeof o?Pn(o):null)?new gi(i.b,i.c,null,null,o):new gi(i.b,i.c,r,i.g)),r=o||n}Ho(t,r)})}var n=new gi("unknown",null,null,null,new On("no-auth-event")),i=!1,r=Ht(500).then(function(){return Go(t).then(function(){i||Ho(t,n)})}),o=hu.handleOpenURL;hu.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(rn("BuildInfo.packageName",hu).toLowerCase()+"://")&&e({url:t}),"function"==typeof o)try{o(t)}catch(t){console.error(t)}},sh||(sh=new yi),sh.subscribe(e)}function Xo(t){this.a=t,this.b=To()}function Wo(t){return t.b.set(Pf,"pending",t.a)}function zo(t){return No(t.b,Pf,t.a)}function Jo(t){return t.b.get(Pf,t.a).then(function(t){return"pending"==t})}function Yo(t,e,n){this.v=t,this.l=e,this.u=n,this.h=[],this.f=!1,this.i=l(this.m,this),this.c=new ia,this.s=new ha,this.g=new Xo(this.l+":"+this.u),this.b={},this.b.unknown=this.c,this.b.signInViaRedirect=this.c,this.b.linkViaRedirect=this.c,this.b.reauthViaRedirect=this.c,this.b.signInViaPopup=this.s,this.b.linkViaPopup=this.s,this.b.reauthViaPopup=this.s,this.a=$o(this.v,this.l,this.u,Dh)}function $o(t,e,n,i){var r=uu.SDK_VERSION||null;return Je()?new jo(t,e,n,r,i):new Jr(t,e,n,r,i)}function Zo(t){t.f||(t.f=!0,t.a.va(t.i));var e=t.a;return t.a.ca().o(function(n){throw t.a==e&&t.reset(),n})}function Qo(t){t.a.Gb()&&Zo(t).o(function(e){var n=new gi("unknown",null,null,null,new On("operation-not-supported-in-this-environment"));ea(e)&&t.m(n)}),t.a.Bb()||ra(t.c)}function ta(t,e,n,i,r,o){return t.a.xb(e,n,i,function(){t.f||(t.f
6=!0,t.a.va(t.i))},function(){t.reset()},r,o)}function ea(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function na(t,e,n){var i=e+":"+n;return Df[i]||(Df[i]=new Yo(t,e,n)),Df[i]}function ia(){this.b=null,this.f=[],this.c=[],this.a=null,this.g=!1}function ra(t){t.g||(t.g=!0,ua(t,!1,null,null))}function oa(t,e,n){n=n.wa(e.b,e.c);var i=e.f,r=e.g,o=!!e.b.match(/Redirect$/);n(i,r).then(function(e){ua(t,o,e,null)}).o(function(e){ua(t,o,null,e)})}function aa(t,e){if(t.b=function(){return Y(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}function sa(t,e){if(t.b=function(){return J(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function ua(t,e,n,i){e?i?aa(t,i):sa(t,n):sa(t,{user:null}),t.f=[],t.c=[]}function ca(t){var e=new On("timeout");t.a&&t.a.cancel(),t.a=Ht(Rf.get()).then(function(){t.b||ua(t,!0,null,e)})}function ha(){}function fa(t,e){var n=t.c,i=t.b;e.wa(i,n)(t.f,t.g).then(function(t){e.fa(i,t,null,n)}).o(function(t){e.fa(i,null,t,n)})}function la(t,e){this.a=e,Tn(this,"verificationId",t)}function da(t,e,n,i){return new pi(t).Sa(e,n).then(function(t){return new la(t,i)})}function pa(t,e,n){if(this.h=t,this.i=e,this.g=n,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 va(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}function ma(t,e){t.stop(),t.b=Ht(va(t,e)).then(function(){return wn()}).then(function(){return t.h()}).then(function(){ma(t,!0)}).o(function(e){t.i(e)&&ma(t,!1)})}function ba(t){this.f=t,this.b=this.a=null,this.c=0}function ga(t,e){var n=e[Ah],i=e.refreshToken;e=wa(e.expiresIn),t.b=n,t.c=e,t.a=i}function wa(t){return du()+1e3*parseInt(t,10)}function ya(t,e){return yr(t.f,e).then(function(e){return t.b=e.access_token,t.c=wa(e.expires_in),t.a=e.refresh_token,{accessToken:t.b,expirationTime:t.c,refreshToken:t.a}}).o(function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e})}function Ia(t,e){this.a=t||null,this.b=e||null,En(this,{lastSignInTime:yn(e||null),creationTime:yn(t||null)})}function Ta(t){return new Ia(t.a,t.b)}function Ea(t,e,n,i,r,o){En(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:e})}function ka(t,e){gt.call(this,t);for(var n in e)this[n]=e[n]}function Aa(t,e,n){this.D=[],this.G=t.apiKey,this.s=t.appName,this.A=t.authDomain||null,t=uu.SDK_VERSION?en(uu.SDK_VERSION):null,this.b=new vr(this.G,Fr(Dh),t),this.h=new ba(this.b),Da(this,e[Ah]),ga(this.h,e),Tn(this,"refreshToken",this.h.a),ja(this,n||{}),jt.call(this),this.I=!1,this.A&&an()&&(this.a=na(this.A,this.G,this.s)),this.N=[],this.i=null,this.l=Pa(this),this.U=l(this.Ga,this);var i=this;this.ha=null,this.sa=function(t){i.na(t.h)},this.W=null,this.O=[],this.ra=function(t){Sa(i,t.f)},this.V=null}function Na(t,e){t.W&&Ot(t.W,"languageCodeChanged",t.sa),(t.W=e)&&At(e,"languageCodeChanged",t.sa)}function Sa(t,e){t.O=e,br(t.b,uu.SDK_VERSION?en(uu.SDK_VERSION,t.O):null)}function _a(t,e){t.V&&Ot(t.V,"frameworkChanged",t.ra),(t.V=e)&&At(e,"frameworkChanged",t.ra)}function Oa(t){try{return uu.app(t.s).auth()}catch(e){throw new On("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.s+"'!")}}function Pa(t){return new pa(function(){return t.F(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var e=t.h.c-du()-3e5;return 0<e?e:0})}function Ca(t){t.m||t.l.b||(t.l.start(),Ot(t,"tokenChanged",t.U),At(t,"tokenChanged",t.U))}function Ra(t){Ot(t,"tokenChanged",t.U),t.l.stop()}function Da(t,e){t.qa=e,Tn(t,"_lat",e)}function La(t,e){O(t.N,function(t){return t==e})}function xa(t){for(var e=[],n=0;n<t.N.length;n++)e.push(t.N[n](t));return Q(e).then(function(){return t})}function Ma(t){t.a&&!t.I&&(t.I=!0,t.a.subscribe(t))}function ja(t,e){En(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,metadata:new Ia(e.createdAt,e.lastLoginAt),providerData:[]})}function Ua(){}function Va(t){return J().then(function(){if(t.m)throw new On("app-deleted")})}function Fa(t){return gu(t.providerData,function(t){return t.providerId})}function Ka(t,e){e&&(Ha(t,e.providerId),t.providerData.push(e))}function Ha(t,e){O(t.providerData,function(t){return t.providerId==e})}function qa(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&Tn(t,e,n)}function Ga(t,e){t!=e&&(En(t,{uid:e.uid,displayName:e.displayName,photoURL:e.ph
6otoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,providerData:[]}),e.metadata?Tn(t,"metadata",Ta(e.metadata)):Tn(t,"metadata",new Ia),bu(e.providerData,function(e){Ka(t,e)}),t.h=e.h,Tn(t,"refreshToken",t.h.a))}function Ba(t){return t.F().then(function(e){var n=t.isAnonymous;return Wa(t,e).then(function(){return n||qa(t,"isAnonymous",!1),e})})}function Xa(t,e){e[Ah]&&t.qa!=e[Ah]&&(ga(t.h,e),t.dispatchEvent(new ka("tokenChanged")),Da(t,e[Ah]),qa(t,"refreshToken",t.h.a))}function Wa(t,e){return jr(t.b,Hh,{idToken:e}).then(l(t.tc,t))}function za(t){return(t=t.providerUserInfo)&&t.length?gu(t,function(t){return new Ea(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}function Ja(t,e){return Ba(t).then(function(){if(S(Fa(t),e))return xa(t).then(function(){throw new On("provider-already-linked")})})}function Ya(t,e,n){var i=mi(e);return e=Fn(e),kn({user:t,credential:i,additionalUserInfo:e,operationType:n})}function $a(t,e){return Xa(t,e),t.reload().then(function(){return t})}function Za(t,e,n,i,r){if(!an())return Y(new On("operation-not-supported-in-this-environment"));if(t.i&&!r)return Y(t.i);var o=Vn(n.providerId),a=dn(t.uid+":::"),s=null;(!cn()||Ye())&&t.A&&n.isOAuthProvider&&(s=Qr(t.A,t.G,t.s,e,n,null,a,uu.SDK_VERSION||null));var u=Be(s,o&&o.Aa,o&&o.za);return i=i().then(function(){if(ts(t),!r)return t.F().then(function(){})}).then(function(){return ta(t.a,u,e,n,a,!!s)}).then(function(){return new X(function(n,i){t.fa(e,null,new On("cancelled-popup-request"),t.g||null),t.f=n,t.v=i,t.g=a,t.c=t.a.Da(t,e,u,a)})}).then(function(t){return u&&Ge(u),t?kn(t):null}).o(function(t){throw u&&Ge(u),t}),es(t,i,r)}function Qa(t,e,n,i,r){if(!an())return Y(new On("operation-not-supported-in-this-environment"));if(t.i&&!r)return Y(t.i);var o=null,a=dn(t.uid+":::");return i=i().then(function(){if(ts(t),!r)return t.F().then(function(){})}).then(function(){return t.Z=a,xa(t)}).then(function(e){return t.da&&(e=t.da,e=e.b.set(Lf,t.C(),e.a)),e}).then(function(){return t.a.Ba(e,n,a)}).o(function(e){if(o=e,t.da)return as(t.da);throw o}).then(function(){if(o)throw o}),es(t,i,r)}function ts(t){if(!t.a||!t.I){if(t.a&&!t.I)throw new On("internal-error");throw new On("auth-domain-config-required")}}function es(t,e,n){var i=ns(t,e,n);return t.D.push(i),i.ga(function(){_(t.D,i)}),i}function ns(t,e,n){return t.i&&!n?(e.cancel(),Y(t.i)):e.o(function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.i||t.dispatchEvent(new ka("userInvalidated")),t.i=e),e})}function is(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName},n={};if(!(t.stsTokenManager&&t.stsTokenManager.accessToken&&t.stsTokenManager.expirationTime))return null;n[Ah]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null,n.expiresIn=(t.stsTokenManager.expirationTime-du())/1e3;var i=new Aa(e,n,t);return t.providerData&&bu(t.providerData,function(t){t&&Ka(i,kn(t))}),t.redirectEventId&&(i.Z=t.redirectEventId),i}function rs(t,e,n,i){var r=new Aa(t,e);return n&&(r.da=n),i&&Sa(r,i),r.reload().then(function(){return r})}function os(t){this.a=t,this.b=To()}function as(t){return No(t.b,Lf,t.a)}function ss(t,e){return t.b.get(Lf,t.a).then(function(t){return t&&e&&(t.authDomain=e),is(t||{})})}function us(t){this.a=t,this.b=To(),this.c=null,this.f=hs(this),this.b.addListener(fs("local"),this.a,l(this.g,this))}function cs(t,e){var n,i=[];for(n in yf)yf[n]!==e&&i.push(No(t.b,fs(yf[n]),t.a));return i.push(No(t.b,xf,t.a)),Z(i)}function hs(t){var e=fs("local"),n=fs("session"),i=fs("none");return Ao(t.b,e,t.a).then(function(){return t.b.get(n,t.a)}).then(function(r){return r?n:t.b.get(i,t.a).then(function(n){return n?i:t.b.get(e,t.a).then(function(n){return n?e:t.b.get(xf,t.a).then(function(t){return t?fs(t):e})})})}).then(function(e){return t.c=e,cs(t,e.B)}).o(function(){t.c||(t.c=e)})}function fs(t){return{name:"authUser",B:t}}function ls(t){return ms(t,function(){return t.b.set(xf,t.c.B,t.a)})}function ds(t,e){return ms(t,function(){return t.b.set(t.c,e.C(),t.a)})}function ps(t){return ms(t,function(){return No(t.b,t.c,t.a)})}function vs(t,e){return ms(t,function(){return t.b.get(t.c,t.a).then(function(t){return t&&e&&(t.authDomain=e),is(t||{})})})}function ms(t,e){return t.f=t.f.then(e,e),t.f}function bs(t){if(this.l=!1,Tn(this,"app",t),!Os(this).options||!Os(this).options.apiKey)throw new On("invalid-api-key");t=uu.SDK_VERSION?en(uu.SDK_VERSION):null,this.b=new vr(Os(this).options&&Os(this).options.apiKey,Fr(Dh),t),this.N=[],this.m=[],this.I=[],this.Ob=uu.INTERNAL.createSubscribe(l(this.hc,this)),this.O=void 0,this.Pb=uu.INTERNAL.createSubscribe(l(this.ic,this)),ks(this,null),this.h=new us(Os(this).options.apiKey+":"+Os(this).name),this.G=new os(Os(this).options.apiKey+":"+Os(this).name),this.U=Ls(this,Ns(this)),this.i=Ls(this,Ss(this)),this.W=!1,this.ha=l(this.Hc,this),this.Ga=l(this.ka,this),this.qa=l(this.Yb,this),this.ra=l(this.fc,this),this.sa=l(this.gc,this),Ts(this),this.INTERNAL={},this.INTERNAL.delete=l(this.delete,this),this.INTERNAL.logFramework=l(this.pc,this),this.s=0,jt.call(this),ys(this),this.D=[]}function gs(t){gt.call(this,"languageCodeChanged"),this.h=t}function ws(t){gt.call(this,"frameworkChanged"),this.f=t}function ys(t){Object.defineProperty(t,"lc",{get:function(){return this.aa()},set:function(t){this.na(t)},enumerable:!1}),t.V=null}function Is(t){return t.Nb||Y(new On("auth-domain-config-required"))}function Ts(t){var e=Os(t).options.authDomain,n=Os(t).options.apiKey;e&&an()&&(t.Nb=t.U.then(function(){if(!t.l){if(t.a=na(e,n,Os(t).name),t.a.subscribe(t),Ps(t)&&Ma(Ps(t)),t.A){Ma(t.A);var i=t.A;i.na(t.aa()),Na(i,t),i=t.A,Sa(i,t.D),_a(i,t),t.A=null}return t.a}}))}function Es(t,e){var n={};return n.apiKey=Os(t).options.apiKey,n.authDomain=Os(t).options.authDomain,n.appName=Os(t).name,t.U.then(function(){return rs(n,e,t.G,t.Ka())}).then(function(e){return Ps(t)&&e.uid==Ps(t).uid?(Ga(Ps(t),e),t.ka(e)):(ks(t,e),Ma(e),t.ka(e))}).then(function(){Rs(t)})}function ks(t,e){Ps(t)&&(La(Ps(t),t.Ga),Ot(Ps(t),"tokenChanged",t.qa),Ot(Ps(t),"userDeleted",t.ra),Ot(Ps(t),"userInvalidated",t.sa),Ra(Ps(t))),e&&(e.N.push(t.Ga),At(e,"tokenChanged",t.qa),At(e,"userDeleted",t.ra),At(e,"userInvalidated",t.sa),0<t.s&&Ca(e)),Tn(t,"currentUser",e),e&&(e.na(t.aa()),Na(e,t),Sa(e,t.D),_a(e,t))}function As(t){var e=ss(t.G,Os(t).options.authDomain).then(function(e){return(t.A=e)&&(e.da=t.G),as(t.G)});return Ls(t,e)}function Ns(t){var e=Os(t).options.authDomain,n=As(t).then(function(){return vs(t.h,e)}).then(function(e){return e?(e.da=t.G,t.A&&(t.A.Z||null)==(e.Z||null)?e:e.reload().then(function(){return ds(t.h,e).then(function(){return e})}).o(function(n){return"auth/network-request-failed"==n.code?e:ps(t.h)})):null}).then(function(e){ks(t,e||null)});return Ls(t,n)}function Ss(t){return t.U.then(function(){return t.ba()}).o(function(){}).then(function(){if(!t.l)return t.ha()}).o(function(){}).then(function(){if(!t.l){t.W=!0;var e=t.h;e.b.addListener(fs("local"),e.a,t.ha)}})}function _s(t,e){var n=null,i=null;return Ls(t,e.then(function(e){return n=mi(e),i=Fn(e),Es(t,e)}).then(function(){return kn({user:Ps(t),credential:n,additionalUserInfo:i,operationType:"signIn"})}))}function Os(t){return t.app}function Ps(t){return t.currentUser}function Cs(t){return Ps(t)&&Ps(t)._lat||null}function Rs(t){if(t.W){for(var e=0;e<t.m.length;e++)t.m[e]&&t.m[e](Cs(t));if(t.O!==t.getUid()&&t.I.length)for(t.O=t.getUid(),e=0;e<t.I.length;e++)t.I[e]&&t.I[e](Cs(t))}}function Ds(t,e){t.I.push(e),Ls(t,t.i.then(function(){!t.l&&S(t.I,e)&&t.O!==t.getUid()&&(t.O=t.getUid(),e(Cs(t)))}))}function Ls(t,e){return t.N.push(e),e.ga(function(){_(t.N,e)}),e}function xs(t,e,n,i,r,o){if(Tn(this,"type","recaptcha"),this.b=this.c=null,this.m=!1,this.l=e,this.a=n||{theme:"light",type:"image"},this.g=[],this.a[Uf])throw new On("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.h="invisible"===this.a[Vf],!hu.document)throw new On("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!Oe(e)||!this.h&&Oe(e).hasChildNodes())throw new On("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.u=new vr(t,o||null,r||null),this.s=i||function(){return null};var a=this;this.i=[];var s=this.a[Mf];this.a[Mf]=function(t){if(Ms(a,t),"function"==typeof s)s(t);else if("string"==typeof s){var e=rn(s,hu);"function"==typeof e&&e(t)}};var u=this.a[jf];this.a[jf]=function(){if(Ms(a,null),"function"==typeof u)u();else if("string"==typeof u){var t=rn(u,hu);"function"==typeof t&&t()}}}function Ms(t,e){for(var n=0;n<t.i.length;n++)try{t.i[n](e)}catch(t){}}function js(t,e){O(t.i,function(t){return t==e})}function Us(t,e){return t.g.push(e),e.ga(function(){_(t.g,e)}),e}function Vs(t){if(t.m)throw new On("internal-error","RecaptchaVerifier instance has been destroyed.")}function Fs(){this.b=hu.grecaptcha?1/0:0,this.c=null,this.a="__rcb"+Math.floor(1e6*Math.random())}
6function Ks(t,e){return new X(function(n,i){if(mn())if(!hu.grecaptcha||e!==t.c&&!t.b){hu[t.a]=function(){if(hu.grecaptcha){t.c=e;var r=hu.grecaptcha.render;hu.grecaptcha.render=function(e,n){return e=r(e,n),t.b++,e},n()}else i(new On("internal-error"));delete hu[t.a]};var r=ye(Ff,{onload:t.a,hl:e||""});J(cr(r)).o(function(){i(new On("internal-error","Unable to load external reCAPTCHA dependencies!"))})}else n();else i(new On("network-request-failed"))})}function Hs(){return Kf||(Kf=new Fs),Kf}function qs(t,e,n){try{this.f=n||uu.app()}catch(t){throw new On("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.f.options||!this.f.options.apiKey)throw new On("invalid-api-key");n=this.f.options.apiKey;var i=this,r=null;try{r=this.f.auth().Ka()}catch(t){}r=uu.SDK_VERSION?en(uu.SDK_VERSION,r):null,xs.call(this,n,t,e,function(){try{var t=i.f.auth().aa()}catch(e){t=null}return t},r,Fr(Dh))}function Gs(t,e,n,i){t:{n=Array.prototype.slice.call(n);for(var r=0,o=!1,a=0;a<e.length;a++)if(e[a].optional)o=!0;else{if(o)throw new On("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(o=e.length,n.length<r||o<n.length)i="Expected "+(r==o?1==r?"1 argument":r+" arguments":r+"-"+o+" arguments")+" but got "+n.length+".";else{for(r=0;r<n.length;r++)if(o=e[r].optional&&void 0===n[r],!e[r].M(n[r])&&!o){if(e=e[r],0>r||r>=Hf.length)throw new On("internal-error","Argument validator received an unsupported number of arguments.");n=Hf[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}i=null}}if(i)throw new On("argument-error",t+" failed: "+i)}function Bs(e,n){return{name:e||"",K:"a valid string",optional:!!n,M:t}}function Xs(){return{name:"opt_forceRefresh",K:"a boolean",optional:!0,M:e}}function Ws(t,e){return{name:t||"",K:"a valid object",optional:!!e,M:c}}function zs(t,e){return{name:t||"",K:"a function",optional:!!e,M:u}}function Js(t,e){return{name:t||"",K:"null",optional:!!e,M:o}}function Ys(){return{name:"",K:"an HTML element",optional:!1,M:function(t){return!!(t&&t instanceof Element)}}}function $s(){return{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(t){return!!(t&&t instanceof bs)}}}function Zs(){return{name:"app",K:"an instance of Firebase App",optional:!0,M:function(t){return!!(t&&t instanceof uu.app.App)}}}function Qs(t){return{name:t?t+"Credential":"credential",K:t?"a valid "+t+" credential":"a valid credential",optional:!1,M:function(e){if(!e)return!1;var n=!t||e.providerId===t;return!(!e.xa||!n)}}}function tu(){return{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}}function eu(){return{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!!(e&&t(e.type)&&u(e.verify))}}}function nu(t,e,n,i){return{name:n||"",K:t.K+" or "+e.K,optional:!!i,M:function(n){return t.M(n)||e.M(n)}}}function iu(t,e){for(var n in e){var i=e[n].name;t[i]=ou(i,t[n],e[n].j)}}function ru(t,e,n,i){t[e]=ou(e,n,i)}function ou(t,e,n){function i(){var t=Array.prototype.slice.call(arguments);return Gs(o,n,t),e.apply(this,t)}if(!n)return e;var r,o=au(t);for(r in e)i[r]=e[r];for(r in e.prototype)i.prototype[r]=e.prototype[r];return i}function au(t){return t=t.split("."),t[t.length-1]}var su,uu=n(7).default,cu=cu||{},hu=this,fu="closure_uid_"+(1e9*Math.random()>>>0),lu=0,du=Date.now||function(){return+new Date};p(b,Error),b.prototype.name="CustomError",p(g,b),g.prototype.name="AssertionError",y.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 pu=new y(function(){return new k},function(t){t.reset()});T.prototype.add=function(t,e){var n=pu.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},k.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},k.prototype.reset=function(){this.next=this.b=this.a=null};var vu,mu=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(e,n){if(t(e))return t(n)&&1==n.length?e.indexOf(n,0):-1;for(var i=0;i<e.length;i++)if(i in e&&e[i]===n)return i;return-1},bu=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(e,n,i){for(var r=e.length,o=t(e)?e.split(""):e,a=0;a<r;a++)a in o&&n.call(i,o[a],a,e)},gu=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(e,n){for(var i=e.length,r=Array(i),o=t(e)?e.split(""):e,a=0;a<i;a++)a in o&&(r[a]=n.call(void 0,o[a],a,e));return r},wu=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(e,n){for(var i=e.length,r=t(e)?e.split(""):e,o=0;o<i;o++)if(o in r&&n.call(void 0,r[o],o,e))return!0;return!1},yu=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},Iu=/&/g,Tu=/</g,Eu=/>/g,ku=/"/g,Au=/'/g,Nu=/\x00/g,Su=/[\x00&<>"']/;t:{var _u=hu.navigator;if(_u){var Ou=_u.userAgent;if(Ou){vu=Ou;break t}}vu=""}var Pu,Cu,Ru="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
6ing toString valueOf".split(" "),Du=!1,Lu=new T,xu=0,Mu=2,ju=3;W.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Uu=new y(function(){return new W},function(t){t.reset()});X.prototype.then=function(t,e,n){return nt(this,u(t)?t:null,u(e)?e:null,n)},v(X),su=X.prototype,su.ga=function(t,e){return t=z(t,t,e),t.c=!0,et(this,t),this},su.o=function(t,e){return nt(this,null,t,e)},su.cancel=function(t){this.a==xu&&q(function(){tt(this,new ft(t))},this)},su.Jc=function(t){this.a=xu,it(this,Mu,t)},su.Kc=function(t){this.a=xu,it(this,ju,t)},su.Ub=function(){for(var t;t=st(this);)ut(this,t,this.a,this.i);this.h=!1};var Vu=K;p(ft,b),ft.prototype.name="cancel";var Fu=0,Ku={};lt.prototype.pa=!1,lt.prototype.ua=function(){if(this.oa)for(;this.oa.length;)this.oa.shift()()},pt[" "]=i;var Hu,qu=M("Opera"),Gu=M("Trident")||M("MSIE"),Bu=M("Edge"),Xu=Bu||Gu,Wu=M("Gecko")&&!(L(vu.toLowerCase(),"webkit")&&!M("Edge"))&&!(M("Trident")||M("MSIE"))&&!M("Edge"),zu=L(vu.toLowerCase(),"webkit")&&!M("Edge");t:{var Ju="",Yu=function(){var t=vu;return Wu?/rv:([^\);]+)(\)|;)/.exec(t):Bu?/Edge\/([\d\.]+)/.exec(t):Gu?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):zu?/WebKit\/(\S+)/.exec(t):qu?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(Yu&&(Ju=Yu?Yu[1]:""),Gu){var $u=mt();if(null!=$u&&$u>parseFloat(Ju)){Hu=$u+"";break t}}Hu=Ju}var Zu,Qu={},tc=hu.document;Zu=tc&&Gu?mt()||("CSS1Compat"==tc.compatMode?parseInt(Hu,10):5):void 0;var ec=Object.freeze||function(t){return t},nc=!Gu||9<=+Zu,ic=Gu&&!bt("9"),rc=function(){if(!hu.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});return hu.addEventListener("test",i,e),hu.removeEventListener("test",i,e),t}();gt.prototype.c=function(){this.Eb=!1},p(wt,gt);var oc=ec({2:"touch",3:"pen",4:"mouse"});wt.prototype.c=function(){wt.lb.c.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,ic)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(t){}},wt.prototype.g=function(){return this.a};var ac="closure_listenable_"+(1e6*Math.random()|0),sc=0;Tt.prototype.add=function(t,e,n,i,r){var o=""+t;(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=kt(t,e,i,r);return-1<a?(e=t[a],n||(e.Ha=!1)):(e=new yt(e,this.src,o,!!i,r),e.Ha=n,t.push(e)),e};var uc="closure_lm_"+(1e6*Math.random()|0),cc={},hc=0,fc="__closure_events_fn_"+(1e9*Math.random()>>>0);p(jt,lt),jt.prototype[ac]=!0,jt.prototype.addEventListener=function(t,e,n,i){At(this,t,e,n,i)},jt.prototype.removeEventListener=function(t,e,n,i){Ot(this,t,e,n,i)},jt.prototype.dispatchEvent=function(e){var n,i=this.Ta;if(i)for(n=[];i;i=i.Ta)n.push(i);i=this.Mb;var r=e.type||e;if(t(e))e=new gt(e,i);else if(e instanceof gt)e.target=e.target||i;else{var o=e;e=new gt(r,i),F(e,o)}if(o=!0,n)for(var a=n.length-1;0<=a;a--){var s=e.b=n[a];o=Ft(s,r,!0,e)&&o}if(s=e.b=i,o=Ft(s,r,!0,e)&&o,o=Ft(s,r,!1,e)&&o,n)for(a=0;a<n.length;a++)s=e.b=n[a],o=Ft(s,r,!1,e)&&o;return o},jt.prototype.ua=function(){if(jt.lb.ua.call(this),this.u){var t,e=this.u,n=0;for(t in e.a){for(var i=e.a[t],r=0;r<i.length;r++)++n,It(i[r]);delete e.a[t],e.b--}}this.Ta=null},su=Xt.prototype,su.R=function(){Wt(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},su.T=function(){return Wt(this),this.a.concat()},su.clear=function(){this.b={},this.c=this.a.length=0},su.get=function(t,e){return zt(this.b,t)?this.b[t]:e},su.set=function(t,e){zt(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},su.forEach=function(t,e){for(var n=this.T(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);t.call(e,o,r,this)}};var lc=/^(?:([^:\/?#.]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/#?]*?)(?::([0-9]+))?(?=[\/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;Yt.prototype.toString=function(){var t=[],e=this.c;e&&t.push(oe(e,dc,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(oe(e,dc,!0),"@"),t.push(encodeURIComponent(n+"").replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&t.push(":",n+"")),(n=this.g)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(oe(n,"/"==n.charAt(0)?vc:pc,!0))),(n=""+this.a)&&t.push("?",n),(n=this.h)&&t.push("#",oe(n,bc)),t.join("")};var dc=/[#\/\?@]/g,pc=/[#\?:]/g,vc=/[#\?]/g,mc=/[#\?@]/g,bc=/#/g;su=se.prototype,su.add=function(t,e){ue(this),this.c=null,t=de(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},su.clear=function(){this.a=this.c=null,this.b=0},su.forEach=function(t,e){ue(this),this.a.forEach(function(n,i){bu(n,function(n){t.call(e,n,i,this)},this)},this)},su.T=function(){ue(this);for(var t=this.a.R(),e=this.a.T(),n=[],i=0;i<e.length;i++)for(var r=t[i],o=0;o<r.length;o++)n.push(e[i]);return n},su.R=function(e){ue(this);var n=[];if(t(e))fe(this,e)&&(n=P(n,this.a.get(de(this,e))));else{e=this.a.R();for(var i=0;i<e.length;i++)n=P(n,e[i])}return n},su.set=function(t,e){return ue(this),this.c=null,t=de(this,t),fe(this,t)&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},su.get=function(t,e){return t=t?this.R(t):[],0<t.length?t[0]+"":e},su.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.T(),n=0;n<e.length;n++){var i=e[n],r=encodeURIComponent(i+"");i=this.R(i);for(var o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(i[o]+"")),t.push(a)}}return this.c=t.join("&")};var gc=!Gu||9<=+Zu;ve.prototype.la=!0,ve.prototype.ja=function(){return this.a},ve.prototype.toString=function(){return"Const{"+this.a+"}"};var wc={};be(""),ge.prototype.la=!0,ge.prototype.ja=function(){return this.a},ge.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var yc=/%{(\w+)}/g,Ic=/^(?:https:)?\/\/[0-9a-z.:[\]-]+\/|^\/[^\/\\]|^about:blank#/i,Tc={};Te.prototype.la=!0,Te.prototype.ja=function(){return this.a},Te.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Ec=/^(?:(?:https?|mailto|ftp):|[^:\/?#]*(?:[\/?#]|$))/i,kc={};Ae("about:blank"),Ne.prototype.la=!0,Ne.prototype.ja=function(){return this.a},Ne.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ac={};_e("<!DOCTYPE html>"),_e(""),_e("<br>");var Nc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
6nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Sc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},_c=/\uffff/.test("ï¿¿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Oc=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Pc="Firefox",Cc="Chrome",Rc={Pc:"FirebaseCore-web",Rc:"FirebaseUI-web"};bn.prototype.get=function(){return this.a?this.b:this.c};var Dc,Lc={};try{var xc={};Object.defineProperty(xc,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(xc,"abcd",{configurable:!0,enumerable:!0,value:2}),Dc=2==xc.abcd}catch(t){Dc=!1}var Mc="EMAIL_SIGNIN",jc="email",Uc="newEmail",Vc="requestType",Fc="email",Kc="fromEmail",Hc="data",qc="operation";p(On,Error),On.prototype.C=function(){return{code:this.code,message:this.message}},On.prototype.toJSON=function(){return this.C()};var Gc="auth/",Bc={"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-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-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-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
6d-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-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-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-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.","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-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.","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.",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-persistence-type":"The current environment does not support the specified persistence type.","user-cancelled":"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."},Xc="android",Wc="handleCodeInApp",zc="iOS",Jc="url",Yc="installApp",$c="minimumVersion",Zc="packageName",Qc="bundleId",th=null,eh=null;jn.prototype.f=function(){return this.b};var nh="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),ih=["client_id","response_type","scope","redirect_uri","state"],rh={Qc:{Ma:"locale",Aa:500,za:600,Na:"facebook.com",cb:ih},Sc:{Ma:null,Aa:500,za:620,Na:"github.com",cb:ih},Tc:{Ma:"hl",Aa:515,za:680,Na:"google.com",cb:ih},Zc:{Ma:"lang",Aa:485,za:705,Na:"twitter.com",cb:nh}},oh="idToken",ah="providerId";p(Hn,Kn),p(qn,Hn),p(Gn,Hn),p(Bn,Hn),p(Xn,Hn),Yn.prototype.xa=function(t){return Dr(t,$n(this))},Yn.prototype.c=function(t,e){var n=$n(this);return n.idToken=e,Lr(t,n)},Yn.prototype.f=function(t,e){return Jn(xr(t,$n(this)),e)},Yn.prototype.C=function(){var t={providerId:this.providerId,sign
6InMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),t},Zn.prototype.Ca=function(t){return this.tb=V(t),this},p(Qn,Zn),Qn.prototype.ta=function(t){return S(this.a,t)||this.a.push(t),this},Qn.prototype.yb=function(){return C(this.a)},Qn.prototype.credential=function(t,e){if(!t&&!e)throw new On("argument-error","credential failed: must provide the ID token and/or the access token.");return new Yn(this.providerId,{idToken:t||null,accessToken:e||null},this.providerId)},p(ti,Qn),Tn(ti,"PROVIDER_ID","facebook.com"),Tn(ti,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),p(ni,Qn),Tn(ni,"PROVIDER_ID","github.com"),Tn(ni,"GITHUB_SIGN_IN_METHOD","github.com"),p(ri,Qn),Tn(ri,"PROVIDER_ID","google.com"),Tn(ri,"GOOGLE_SIGN_IN_METHOD","google.com"),p(ai,Zn),Tn(ai,"PROVIDER_ID","twitter.com"),Tn(ai,"TWITTER_SIGN_IN_METHOD","twitter.com"),ui.prototype.xa=function(t){return this.signInMethod==ci.EMAIL_LINK_SIGN_IN_METHOD?jr(t,Fh,{email:this.a,oobCode:this.b}):jr(t,rf,{email:this.a,password:this.b})},ui.prototype.c=function(t,e){return this.signInMethod==ci.EMAIL_LINK_SIGN_IN_METHOD?jr(t,Kh,{idToken:e,email:this.a,oobCode:this.b}):jr(t,$h,{idToken:e,email:this.a,password:this.b})},ui.prototype.f=function(t,e){return Jn(this.xa(t),e)},ui.prototype.C=function(){return{email:this.a,password:this.b,signInMethod:this.signInMethod}},En(ci,{PROVIDER_ID:"password"}),En(ci,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),En(ci,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),li.prototype.xa=function(t){return t.Sa(di(this))},li.prototype.c=function(t,e){var n=di(this);return n.idToken=e,jr(t,af,n)},li.prototype.f=function(t,e){var n=di(this);return n.operation="REAUTH",t=jr(t,sf,n),Jn(t,e)},li.prototype.C=function(){var t={providerId:"phone"};return this.a.Ra&&(t.verificationId=this.a.Ra),this.a.Qa&&(t.verificationCode=this.a.Qa),this.a.Ea&&(t.temporaryProof=this.a.Ea),this.a.Y&&(t.phoneNumber=this.a.Y),t},pi.prototype.Sa=function(e,n){var i=this.a.b;return J(n.verify()).then(function(r){if(!t(r))throw new On("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":return Or(i,{phoneNumber:e,recaptchaToken:r}).then(function(t){return"function"==typeof n.reset&&n.reset(),t},function(t){throw"function"==typeof n.reset&&n.reset(),t});default:throw new On("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},En(pi,{PROVIDER_ID:"phone"}),En(pi,{PHONE_SIGN_IN_METHOD:"phone"}),gi.prototype.C=function(){return{type:this.b,eventId:this.c,urlResponse:this.f,sessionId:this.g,error:this.a&&this.a.C()}};var sh=null;yi.prototype.subscribe=function(t){var e=this;this.a.push(t),this.b||(this.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},"function"==typeof(t=rn("universalLinks.subscribe",hu))&&t(null,this.b))},yi.prototype.unsubscribe=function(t){O(this.a,function(e){return e==t})},p(Ii,On),p(Ti,On),Ti.prototype.C=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber);var e=this.credential&&this.credential.C();return e&&F(t,e),t},Ti.prototype.toJSON=function(){return this.C()};var uh=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;ki.prototype.c=null;var ch;p(Ni,ki),Ni.prototype.a=function(){var t=Si(this);return t?new ActiveXObject(t):new XMLHttpRequest},Ni.prototype.b=function(){var t={};return Si(this)&&(t[0]=!0,t[1]=!0),t},ch=new Ni,p(_i,ki),_i.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Oi;throw Error("Unsupported browser")},_i.prototype.b=function(){return{}},su=Oi.prototype,su.open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},su.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},su.abort=function(){this.a.abort()},su.setRequestHeader=function(){},su.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},su.ac=function(){this.status=200,this.responseText=this.a.responseText,Pi(this,4)},su.zb=function(){this.status=500,this.responseText="",Pi(this,4)},su.ec=function(){this.zb()},su.bc=function(){this.status=200,Pi(this,1)},su.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Ci.prototype.a=null;var hh=0;Ci.prototype.reset=function(t,e,n,i,r){"number"==typeof r||hh++,i||du(),delete this.a},Di.prototype.toString=function(){return this.name};var fh=new Di("SEVERE",1e3),lh=new Di("WARNING",900),dh=new Di("CONFIG",700),ph=new Di("FINE",500);Ri.prototype.log=function(t,e,n){if(t.value>=Li(this).value)for(u(e)&&(e=e()),t=new Ci(t,e+"",this.f),n&&(t.a=n),n=this;n;)n=n.a};var vh={},mh=null;p(ji,ki),ji.prototype.a=function(){return new Ui(this.f)},ji.prototype.b=function(t){return function(){return t}}({}),p(Ui,jt);var bh=0;su=Ui.prototype,su.open=function(t,e){if(this.readyState!=bh)throw this.abort(),Error("Error reopening a connection");this.h=t,this.c=e,this.readyState=1,Vi(this)},su.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.g,method:this.h,credentials:void 0,cache:void 0};
6t&&(e.body=t),this.i.fetch(new Request(this.c,e)).then(this.dc.bind(this),this.Ab.bind(this))},su.abort=function(){this.responseText="",this.g=new Headers,this.status=0,1<=this.readyState&&this.a&&4!=this.readyState&&(this.readyState=4,this.a=!1,Vi(this)),this.readyState=bh},su.dc=function(t){this.a&&(this.b||(this.b=t.headers,this.readyState=2,Vi(this)),this.a&&(this.readyState=3,Vi(this),this.a&&t.text().then(this.cc.bind(this,t),this.Ab.bind(this))))},su.cc=function(t,e){this.a&&(this.status=t.status,this.statusText=t.statusText,this.responseText=e,this.readyState=4,Vi(this))},su.Ab=function(t){var e=this.f;e&&e.log(lh,"Failed to fetch url "+this.c,t instanceof Error?t:Error(t)),this.a&&(this.readyState=4,Vi(this))},su.setRequestHeader=function(t,e){this.g.append(t,e)},su.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.f)&&t.log(lh,"Attempting to get response header but no headers have been received for url: "+this.c,void 0),"")},su.getAllResponseHeaders=function(){if(!this.b){var t=this.f;return t&&t.log(lh,"Attempting to get all response headers but no headers have been received for url: "+this.c,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},p(Fi,jt);var gh="";Fi.prototype.b=xi("goog.net.XhrIo");var wh=/^https?$/i,yh=["POST","PUT"];su=Fi.prototype,su.Fa=function(){void 0!==cu&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",Mi(this.b,Zi(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},su.abort=function(){this.a&&this.c&&(Mi(this.b,Zi(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Wi(this))},su.ua=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Wi(this,!0)),Fi.lb.ua.call(this)},su.Db=function(){this.pa||(this.I||this.i||this.f?Xi(this):this.sc())},su.sc=function(){Xi(this)},su.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case gh: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(fh,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(t){return Mi(this.b,"Can not get response: "+t.message),null}},Qi.prototype.cancel=function(t){if(this.a)this.c instanceof Qi&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):0>=--e.l&&e.cancel()}this.v?this.v.call(this.s,this):this.u=!0,this.a||(t=new sr(this),er(this),tr(this,!1,t))}},Qi.prototype.m=function(t,e){this.i=!1,tr(this,t,e)},Qi.prototype.D=function(){er(this),tr(this,!0,null)},Qi.prototype.then=function(t,e,n){var i,r,o=new X(function(t,e){i=t,r=e});return ir(this,i,function(t){t instanceof sr?o.cancel():r(t)}),o.then(t,e,n)},v(Qi),p(ar,b),ar.prototype.message="Deferred has already fired",ar.prototype.name="AlreadyCalledError",p(sr,b),sr.prototype.message="Deferred was canceled",sr.prototype.name="CanceledError",ur.prototype.c=function(){throw delete Ih[this.a],this.b};var Ih={},Th=0,Eh=1;p(dr,b),p(pr,ki),pr.prototype.a=function(){return new this.f},pr.prototype.b=function(){return{}};var kh,Ah="idToken",Nh=new bn(3e4,6e4),Sh={"Content-Type":"application/x-www-form-urlencoded"},_h=new bn(3e4,6e4),Oh={"Content-Type":"application/json"};vr.prototype.m=function(t,e,n,i,r,o){if($e()&&(void 0===hu.fetch||void 0===hu.Headers||void 0===hu.Request))throw new On("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 Fi(this.c);if(o){a.g=Math.max(0,o);var s=setTimeout(function(){a.dispatchEvent("timeout")},o)}Ut(a,"complete",function(){s&&clearTimeout(s);var t=null;try{t=JSON.parse($i(this))||null}catch(e){t=null}e&&e(t)}),Vt(a,"ready",function(){s&&clearTimeout(s),dt(this)}),Vt(a,"timeout",function(){s&&clearTimeout(s),dt(this),e&&e(null)}),Ki(a,t,n,i,r)};var Ph=be("https://apis.google.com/js/client.js?onload=%{onload}"),Ch="__fcb"+Math.floor(1e6*Math.random());vr.prototype.u=function(t,e,n,i,r){var o=this;kh.then(function(){window.gapi.client.setApiKey(o.b);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:i,headers:r,authType:"none",callback:function(t){window.gapi.auth.setToken(a),e&&e(t)}})}).o(function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})})},vr.prototype.jb=function(){return jr(this,Zh,{})},vr.prototype.mb=function(t,e){return jr(this,Yh,{idToken:t,email:e})},vr.prototype.nb=function(t,e){return jr(this,$h,{idToken:t,password:e})};
6var Rh={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};su=vr.prototype,su.ob=function(t,e){var n={idToken:t},i=[];return j(Rh,function(t,r){var o=e[r];null===o?i.push(t):r in e&&(n[r]=o)}),i.length&&(n.deleteAttribute=i),jr(this,Yh,n)},su.gb=function(t,e){return t={requestType:"PASSWORD_RESET",email:t},F(t,e),jr(this,Bh,t)},su.hb=function(t,e){return t={requestType:"EMAIL_SIGNIN",email:t},F(t,e),jr(this,qh,t)},su.fb=function(t,e){return t={requestType:"VERIFY_EMAIL",idToken:t},F(t,e),jr(this,Gh,t)},su.Sa=function(t){return jr(this,of,t)},su.Wa=function(t,e){return jr(this,zh,{oobCode:t,newPassword:e})},su.Ia=function(t){return jr(this,xh,{oobCode:t})},su.Ua=function(t){return jr(this,Lh,{oobCode:t})};var Dh,Lh={endpoint:"setAccountInfo",w:Mr,$:"email"},xh={endpoint:"resetPassword",w:Mr,J:function(t){if(!t.email||!t.requestType)throw new On("internal-error")}},Mh={endpoint:"signupNewUser",w:function(t){if(Tr(t),!t.password)throw new On("weak-password")},J:Sr,P:!0},jh={endpoint:"createAuthUri"},Uh={endpoint:"deleteAccount",S:["idToken"]},Vh={endpoint:"setAccountInfo",S:["idToken","deleteProvider"],w:function(t){if(!a(t.deleteProvider))throw new On("internal-error")}},Fh={endpoint:"emailLinkSignin",S:["email","oobCode"],w:Tr,J:Sr,P:!0},Kh={endpoint:"emailLinkSignin",S:["idToken","email","oobCode"],w:Tr,J:Sr,P:!0},Hh={endpoint:"getAccountInfo"},qh={endpoint:"getOobConfirmationCode",S:["requestType"],w:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new On("internal-error");Tr(t)},$:"email"},Gh={endpoint:"getOobConfirmationCode",S:["idToken","requestType"],w:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new On("internal-error")},$:"email"},Bh={endpoint:"getOobConfirmationCode",S:["requestType"],w:function(t){if("PASSWORD_RESET"!=t.requestType)throw new On("internal-error");Tr(t)},$:"email"},Xh={pb:!0,endpoint:"getProjectConfig",Cb:"GET"},Wh={pb:!0,endpoint:"getRecaptchaParam",Cb:"GET",J:function(t){if(!t.recaptchaSiteKey)throw new On("internal-error")}},zh={endpoint:"resetPassword",w:Mr,$:"email"},Jh={endpoint:"sendVerificationCode",S:["phoneNumber","recaptchaToken"],$:"sessionInfo"},Yh={endpoint:"setAccountInfo",S:["idToken"],w:Er,P:!0},$h={endpoint:"setAccountInfo",S:["idToken"],w:function(t){if(Er(t),!t.password)throw new On("weak-password")},J:Sr,P:!0},Zh={endpoint:"signupNewUser",J:Sr,P:!0},Qh={endpoint:"verifyAssertion",w:Cr,J:Rr,P:!0},tf={endpoint:"verifyAssertion",w:Cr,J:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new On("user-not-found");if(t.errorMessage)throw Ur(t.errorMessage);if(!t[Ah])throw new On("internal-error")},P:!0},ef={endpoint:"verifyAssertion",w:function(t){if(Cr(t),!t.idToken)throw new On("internal-error")},J:Rr,P:!0},nf={endpoint:"verifyCustomToken",w:function(t){if(!t.token)throw new On("invalid-custom-token")},J:Sr,P:!0},rf={endpoint:"verifyPassword",w:function(t){if(Tr(t),!t.password)throw new On("wrong-password")},J:Sr,P:!0},of={endpoint:"verifyPhoneNumber",w:_r,J:Sr},af={endpoint:"verifyPhoneNumber",w:function(t){if(!t.idToken)throw new On("internal-error");_r(t)},J:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Ei(t);Sr(t)}},sf={Tb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",w:_r,J:Sr},uf={Vc:{Ya:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",eb:"https://securetoken.googleapis.com/v1/token",id:"p"},Xc:{Ya:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",eb:"https://staging-securetoken.sandbox.googleapis.com/v1/token",id:"s"},Yc:{Ya:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",eb:"https://test-securetoken.sandbox.googleapis.com/v1/token",id:"t"}};Dh=Fr("__EID__")?"__EID__":void 0;var cf=be("https://apis.google.com/js/api.js?onload=%{onload}"),hf=new bn(3e4,6e4),ff=new bn(5e3,15e3),lf=null;Xr.prototype.toString=function(){return this.f?te(this.a,"v",this.f):he(this.a.a,"v"),this.b?te(this.a,"eid",this.b):he(this.a.a,"eid"),this.c.length?te(this.a,"fw",this.c.join(",")):he(this.a.a,"fw"),""+this.a},Wr.prototype.toString=function(){var t=ie(this.m,"/__/auth/handler");if(te(t,"apiKey",this.u),te(t,"appName",this.c),te(t,"authType",this.l),this.a.isOAuthProvider){var e=this.a;try{var n=uu.app(this.c).auth().aa()}catch(t){n=null}e.Xa=n,te(t,"providerId",this.a.providerId),e=this.a,n=fn(e.tb);for(var i in n)n[i]=""+n[i];i=e.zc,n=V(n);for(var r=0;r<i.length;r++){var o=i[r];o in n&&delete n[o]}e.Za&&e.Xa&&!n[e.Za]&&(n[e.Za]=e.Xa),U(n)||te(t,"customParameters",hn(n))}if("function"==typeof this.a.yb&&(e=this.a.yb(),e.length&&te(t,"scopes",e.join(","))),this.i?te
6(t,"redirectUrl",this.i):he(t.a,"redirectUrl"),this.g?te(t,"eventId",this.g):he(t.a,"eventId"),this.h?te(t,"v",this.h):he(t.a,"v"),this.b)for(var a in this.b)this.b.hasOwnProperty(a)&&!ee(t,a)&&te(t,a,this.b[a]);return this.f?te(t,"eid",this.f):he(t.a,"eid"),a=zr(this.c),a.length&&te(t,"fw",a.join(",")),""+t},su=Jr.prototype,su.Da=function(t,e,n){var i=new On("popup-closed-by-user"),r=new On("web-storage-unsupported"),o=this,a=!1;return this.ca().then(function(){eo(o).then(function(n){n||(t&&Ge(t),e(r),a=!0)})}).o(function(){}).then(function(){if(!a)return Xe(t)}).then(function(){if(!a)return Ht(n).then(function(){e(i)})})},su.Gb=function(){var t=nn();return!cn(t)&&!pn(t)},su.Bb=function(){return!1},su.xb=function(t,e,n,i,r,o,a){if(!t)return Y(new On("popup-blocked"));if(a&&!cn())return this.ca().o(function(e){Ge(t),r(e)}),i(),J();this.a||(this.a=Yr(Zr(this)));var s=this;return this.a.then(function(){var e=s.ca().o(function(e){throw Ge(t),r(e),e});return i(),e}).then(function(){bi(n),a||Fe(Qr(s.u,s.f,s.b,e,n,null,o,s.c,void 0,s.h),t)}).o(function(t){throw"auth/network-request-failed"==t.code&&(s.a=null),t})},su.Ba=function(t,e,n){this.a||(this.a=Yr(Zr(this)));var i=this;return this.a.then(function(){bi(e),Fe(Qr(i.u,i.f,i.b,t,e,Ve(),n,i.c,void 0,i.h))}).o(function(t){throw"auth/network-request-failed"==t.code&&(i.a=null),t})},su.ca=function(){var t=this;return $r(this).then(function(){return t.i.ab}).o(function(){throw t.a=null,new On("network-request-failed")})},su.Lb=function(){return!0},su.va=function(t){this.g.push(t)},su.Ja=function(t){O(this.g,function(e){return e==t})},su=no.prototype,su.get=function(t){return J(this.a.getItem(t)).then(function(t){return t&&ln(t)})},su.set=function(t,e){return J(this.a.setItem(t,hn(e)))},su.X=function(t){return J(this.a.removeItem(t))},su.ia=function(){},su.ea=function(){},su=io.prototype,su.get=function(t){return J(this.a[t])},su.set=function(t,e){return this.a[t]=e,J()},su.X=function(t){return delete this.a[t],J()},su.ia=function(){},su.ea=function(){};var df;su=ro.prototype,su.set=function(t,e){var n,i=!1,r=this;return ao(this).then(function(e){return n=e,e=so(uo(n,!0)),co(e.get(t))}).then(function(o){var a=so(uo(n,!0));return o?(o.value=e,co(a.put(o))):(r.a++,i=!0,o={},o.fbase_key=t,o.value=e,co(a.add(o)))}).then(function(){r.f[t]=e}).ga(function(){i&&r.a--})},su.get=function(t){return ao(this).then(function(e){return co(so(uo(e,!1)).get(t))}).then(function(t){return t&&t.value})},su.X=function(t){var e=!1,n=this;return ao(this).then(function(i){return e=!0,n.a++,co(so(uo(i,!0)).delete(t))}).then(function(){delete n.f[t]}).ga(function(){e&&n.a--})},su.Ic=function(){var t=this;return ao(this).then(function(t){var e=so(uo(t,!1));return e.getAll?co(e.getAll()):new X(function(t,n){var i=[],r=e.openCursor();r.onsuccess=function(e){(e=e.target.result)?(i.push(e.value),e.continue()):t(i)},r.onerror=function(t){n(Error(t.target.errorCode))}})}).then(function(e){var n={},i=[];if(0==t.a){for(i=0;i<e.length;i++)n[e[i].fbase_key]=e[i].value;i=Ke(t.f,n),t.f=n}return i})},su.ia=function(t){0==this.c.length&&ho(this),this.c.push(t)},su.ea=function(t){O(this.c,function(e){return e==t}),0==this.c.length&&this.b&&this.b.cancel("STOP_EVENT")},su=fo.prototype,su.get=function(t){var e=this;return J().then(function(){return ln(e.a.getItem(t))})},su.set=function(t,e){var n=this;return J().then(function(){var i=hn(e);null===i?n.X(t):n.a.setItem(t,i)})},su.X=function(t){var e=this;return J().then(function(){e.a.removeItem(t)})},su.ia=function(t){hu.window&&At(hu.window,"storage",t)},su.ea=function(t){hu.window&&Ot(hu.window,"storage",t)},su=vo.prototype,su.get=function(){return J(null)},su.set=function(){return J()},su.X=function(){return J()},su.ia=function(){},su.ea=function(){},su=mo.prototype,su.get=function(t){var e=this;return J().then(function(){return ln(e.a.getItem(t))})},su.set=function(t,e){var n=this;return J().then(function(){var i=hn(e);null===i?n.X(t):n.a.setItem(t,i)})},su.X=function(t){var e=this;return J().then(function(){e.a.removeItem(t)})},su.ia=function(){},su.ea=function(){};var pf,vf,mf={B:fo,Pa:mo},bf={B:fo,Pa:mo},gf={B:no,Pa:vo},wf={B:fo,Pa:vo},yf={Uc:"local",NONE:"none",Wc:"session"};su=Io.prototype,su.get=function(t,e){return Eo(this,t.B).get(ko(t,e))},su.set=function(t,e,n){var i=ko(t,n),r=this,o=Eo(this,t.B);return o.set(i,e).then(function(){return o.get(i)}).then(function(e){"local"==t.B&&(r.b[i]=e)})},su.addListener=function(t,e,n){t=ko(t,e),this.l&&(this.b[t]=hu.localStorage.getItem(t)),U(this.a)&&(Eo(this,"local").ia(this.f),this.h||(Ue()||!In())&&hu.indexedDB||!this.l||So(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},su.removeListener=function(t,e,n){t=ko(t,e),this.a[t]&&(O(this.a[t],function(t){return t==n}),0==this.a[t].length&&delete this.a[t]),U(this.a)&&(Eo(this,"local").ea(this.f),_o(this))},su.Kb=function(t){if(t&&t.g){var e=t.a.key;if(null==e)for(var n in this.a){var i=this.b[n];void 0===i&&(i=null);var r=hu.localStorage.getItem(n);r!==i&&(this.b[n]=r,this.Va(n))}else if(0==e.indexOf("firebase:")&&this.a[e]){if(void 0!==t.a.a?
6Eo(this,"local").ea(this.f):_o(this),this.m)if(n=hu.localStorage.getItem(e),(i=t.a.newValue)!==n)null!==i?hu.localStorage.setItem(e,i):hu.localStorage.removeItem(e);else if(this.b[e]===i&&void 0===t.a.a)return;var o=this;n=function(){void 0===t.a.a&&o.b[e]===hu.localStorage.getItem(e)||(o.b[e]=hu.localStorage.getItem(e),o.Va(e))},Gu&&Zu&&10==Zu&&hu.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else bu(t,l(this.Va,this))},su.Va=function(t){this.a[t]&&bu(this.a[t],function(t){t()})};var If,Tf={name:"authEvent",B:"local"};p(Do,Ro);for(var Ef=64,kf=Ef-1,Af=[],Nf=0;Nf<kf;Nf++)Af[Nf]=0;var Sf=P(128,Af);Do.prototype.reset=function(){this.g=this.c=0,this.a=hu.Int32Array?new Int32Array(this.h):C(this.h)};var _f=[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];p(Mo,Do);var Of=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];su=jo.prototype,su.ca=function(){return this.ya?this.ya:this.ya=ze().then(function(){if("function"!=typeof rn("universalLinks.subscribe",hu))throw Uo("cordova-universal-links-plugin is not installed");if(void 0===rn("BuildInfo.packageName",hu))throw Uo("cordova-plugin-buildinfo is not installed");if("function"!=typeof rn("cordova.plugins.browsertab.openUrl",hu))throw Uo("cordova-plugin-browsertab is not installed");if("function"!=typeof rn("cordova.InAppBrowser.open",hu))throw Uo("cordova-plugin-inappbrowser is not installed")},function(){throw new On("cordova-not-ready")})},su.Da=function(t,e){return e(new On("operation-not-supported-in-this-environment")),J()},su.xb=function(){return Y(new On("operation-not-supported-in-this-environment"))},su.Lb=function(){return!1},su.Gb=function(){return!0},su.Bb=function(){return!0},su.Ba=function(t,e,n){if(this.c)return Y(new On("redirect-operation-pending"));var i=this,r=hu.document,o=null,a=null,s=null,u=null;return this.c=J().then(function(){return bi(e),qo(i)}).then(function(){return Ko(i,t,e,n)}).then(function(){return new X(function(t,e){a=function(){var e=rn("cordova.plugins.browsertab.close",hu);return t(),"function"==typeof e&&e(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.va(a),s=function(){o||(o=Ht(2e3).then(function(){e(new On("redirect-cancelled-by-user"))}))},u=function(){gn()&&s()},r.addEventListener("resume",s,!1),nn().toLowerCase().match(/android/)||r.addEventListener("visibilitychange",u,!1)}).o(function(t){return Go(i).then(function(){throw t})})}).ga(function(){s&&r.removeEventListener("resume",s,!1),u&&r.removeEventListener("visibilitychange",u,!1),o&&o.cancel(),a&&i.Ja(a),i.c=null})},su.va=function(t){this.b.push(t),qo(this).o(function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new gi("unknown",null,null,null,new On("no-auth-event")),t(e))})},su.Ja=function(t){O(this.b,function(e){return e==t})};var Pf={name:"pendingRedirect",B:"session"};Yo.prototype.reset=function(){this.f=!1,this.a.Ja(this.i),this.a=$o(this.v,this.l,this.u)},Yo.prototype.subscribe=function(t){if(S(this.h,t)||this.h.push(t),!this.f){var e=this;Jo(this.g).then(function(t){t?zo(e.g).then(function(){Zo(e).o(function(t){var n=new gi("unknown",null,null,null,new On("operation-not-supported-in-this-environment"));ea(t)&&e.m(n)})}):Qo(e)}).o(function(){Qo(e)})}},Yo.prototype.unsubscribe=function(t){O(this.h,function(e){return e==t})},Yo.prototype.m=function(t){if(!t)throw new On("invalid-auth-event");for(var e=!1,n=0;n<this.h.length;n++){var i=this.h[n];if(i.qb(t.b,t.c)){(e=this.b[t.b])&&e.h(t,i),e=!0;break}}return ra(this.c),e};var Cf=new bn(2e3,1e4),Rf=new bn(3e4,6e4);Yo.prototype.ba=function(){return this.c.ba()},Yo.prototype.Ba=function(t,e,n){var i,r=this;return Wo(this.g).then(function(){return r.a.Ba(t,e,n).o(function(t){if(ea(t))throw new On("operation-not-supported-in-this-environment");return i=t,zo(r.g).then(function(){throw i})}).then(function(){return r.a.Lb()?new X(function(){}):zo(r.g).then(function(){return r.ba()}).then(function(){}).o(function(){})})})},Yo.prototype.Da=function(t,e,n,i){return this.a.Da(n,function(n){t.fa(e,null,n,i)},Cf.get())};var Df={};ia.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},ia.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.b,i=t.c,r=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;
6"unknown"!=n||r||o?t.a?(ua(this,!0,null,t.a),J()):e.wa(n,i)?oa(this,t,e):Y(new On("invalid-auth-event")):(ua(this,!1,null,null),J())}else Y(new On("invalid-auth-event"))},ia.prototype.ba=function(){var t=this;return new X(function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),ca(t))})},ha.prototype.h=function(t,e){if(t){var n=t.b,i=t.c;t.a?(e.fa(t.b,null,t.a,t.c),J()):e.wa(n,i)?fa(t,e):Y(new On("invalid-auth-event"))}else Y(new On("invalid-auth-event"))},la.prototype.confirm=function(t){return t=vi(this.verificationId,t),this.a(t)},pa.prototype.start=function(){this.a=this.c,ma(this,!0)},pa.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},ba.prototype.C=function(){return{apiKey:this.f.b,refreshToken:this.a,accessToken:this.b,expirationTime:this.c}},ba.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Y(new On("user-token-expired")):t||!this.b||du()>this.c-3e4?this.a?ya(this,{grant_type:"refresh_token",refresh_token:this.a}):J(null):J({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},Ia.prototype.C=function(){return{lastLoginAt:this.b,createdAt:this.a}},p(ka,gt),p(Aa,jt),Aa.prototype.na=function(t){this.ha=t,mr(this.b,t)},Aa.prototype.aa=function(){return this.ha},Aa.prototype.Ka=function(){return C(this.O)},Aa.prototype.Ga=function(){this.l.b&&(this.l.stop(),this.l.start())},Tn(Aa.prototype,"providerId","firebase"),su=Aa.prototype,su.reload=function(){var t=this;return es(this,Va(this).then(function(){return Ba(t).then(function(){return xa(t)}).then(Ua)}))},su.F=function(t){var e=this;return es(this,Va(this).then(function(){return e.h.getToken(t)}).then(function(t){if(!t)throw new On("internal-error");return t.accessToken!=e.qa&&(Da(e,t.accessToken),e.dispatchEvent(new ka("tokenChanged"))),qa(e,"refreshToken",t.refreshToken),t.accessToken}))},su.getToken=function(t){return Lc["firebase.User.prototype.getToken is deprecated. Please use firebase.User.prototype.getIdToken instead."]||(Lc["firebase.User.prototype.getToken is deprecated. Please use firebase.User.prototype.getIdToken instead."]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("firebase.User.prototype.getToken is deprecated. Please use firebase.User.prototype.getIdToken instead.")),this.F(t)},su.tc=function(t){if(!(t=t.users)||!t.length)throw new On("internal-error");t=t[0],ja(this,{uid:t.localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt});for(var e=za(t),n=0;n<e.length;n++)Ka(this,e[n]);qa(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length))},su.bb=function(t){var e=this,n=null;return es(this,t.f(this.b,this.uid).then(function(t){return Xa(e,t),n=Ya(e,t,"reauthenticate"),e.i=null,e.reload()}).then(function(){return n}),!0)},su.uc=function(t){return this.bb(t).then(function(){})},su.$a=function(t){var e=this,n=null;return es(this,Ja(this,t.providerId).then(function(){return e.F()}).then(function(n){return t.c(e.b,n)}).then(function(t){return n=Ya(e,t,"link"),$a(e,t)}).then(function(){return n}))},su.kc=function(t){return this.$a(t).then(function(t){return t.user})},su.mc=function(t,e){var n=this;return es(this,Ja(this,"phone").then(function(){return da(Oa(n),t,e,l(n.$a,n))}))},su.vc=function(t,e){var n=this;return es(this,J().then(function(){return da(Oa(n),t,e,l(n.bb,n))}),!0)},su.mb=function(t){var e=this;return es(this,this.F().then(function(n){return e.b.mb(n,t)}).then(function(t){return Xa(e,t),e.reload()}))},su.Mc=function(t){var e=this;return es(this,this.F().then(function(n){return t.c(e.b,n)}).then(function(t){return Xa(e,t),e.reload()}))},su.nb=function(t){var e=this;return es(this,this.F().then(function(n){return e.b.nb(n,t)}).then(function(t){return Xa(e,t),e.reload()}))},su.ob=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return Va(this);var e=this;return es(this,this.F().then(function(n){return e.b.ob(n,{displayName:t.displayName,photoUrl:t.photoURL})}).then(function(t){return Xa(e,t),qa(e,"displayName",t.displayName||null),qa(e,"photoURL",t.photoUrl||null),bu(e.providerData,function(t){"password"===t.providerId&&(Tn(t,"displayName",e.displayName),Tn(t,"photoURL",e.photoURL))}),xa(e)}).then(Ua))},su.Lc=function(t){var e=this;return es(this,Ba(this).then(function(n){return S(Fa(e),t)?Pr(e.b,n,[t]).then(function(t){var n={};return bu(t.providerUserInfo||[],function(t){n[t.providerId]=!0}),bu(Fa(e),function(t){n[t]||Ha(e,t)}),n[pi.PROVIDER_ID]||Tn(e,"phoneNumber",null),xa(e)}):xa(e).then(function(){throw new On("no-such-provider")})}))},su.delete=function(){var t=this;return es(this,this.F().then(function(e){return jr(t.b,Uh,{idToken:e})}).then(function(){t.dispatchEvent(new ka("userDeleted"))})).then(function(){for(var e=0;e<t.D.length;e++)t.D[e].cancel("app-deleted");Na(t,null),_a(t,null),t.D=[],t.m=!0,Ra(t),Tn(t,"refreshToken",null),t.a&&t.a.unsubscribe(t)})},su.qb=function(t,e){return!!("linkViaPopup"==t&&(this.g||null)==e&&this.f||"reauthViaPopup"==t&&(this.g||null)==e&&this.f||"linkViaRedirect"==t&&(this.Z||null)==e||"reauthViaRedirect"==t&&(this.Z||null)==e)},su.fa=function(t,e,n,i){"linkViaPopup"!=t&&"reauthViaPopup"!=t||i!=(this.g||null)||(n&&this.v?this.v(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},su.wa=function(t,e){return"linkViaPopup"==t&&e==(this.g||null)?l(this.vb,this):"reauthViaPopup"==t&&e==(this.g||null)?l(this.wb,this):"linkViaRedirect"==t&&(this.Z||null)==e?l(this.vb,this):"reauthViaRedirect"==t&&(this.Z||null)==e?l(this.wb,this):null},su.nc=function(t){var e=this;return Za(this,"linkViaPopup",t,function(){return Ja(e,t.providerId).then(function(){return xa(e)})},!1)},su.wc=function(t){return Za(this,"reauthViaPopup",t,function(){return J()},!0)},su.oc=function(t){var e=this;return Qa(this,"linkViaRedirect",t,function(){return Ja(e,t.providerId)},!1)},su.xc=function(t){return Qa(this,"reauthViaRedirect",t,function(){return J()},!0)},su.vb=function(t,e){var n=this;this.c&&(this.c.cancel(),this.c=null);var i=null;return es(this,this.F().then(function(i){return Lr(n.b,{requestUri:t,sessionId:e,idToken:i})}).then(function(t){return i=Ya(n,t,"link"),$a(n,t)}).then(function(){return i}))},su.wb=function(t,e){var n=this;this.c&&(this.c.cancel(),this.c=null);var i=null;return es(this,J().then(function(){return Jn(xr(n.b,{requestUri:t,sessionId:e}),n.uid)}).then(function(t){return i=Ya(n,t,"reauthenticate"),Xa(n,t),n.i=null,n.reload()}).then(function(){return i}),!0)},su.fb=function(t){var e=this,n=null;return es(this,this.F().then(function(e){return n=e,void 0===t||U(t)?{}:Rn(new Cn(t))}).then(function(t){return e.b.fb(n,t)}).then(function(t){if(e.email!=t)return e.reload()}).then(function(){}))},su.toJSON=function(){return this.C()},su.C=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,providerData:[],apiKey:this.G,appName:this.s,authDomain:this.A,stsTokenManager:this.h.C(),redirectEventId:this.Z||null};return this.metadata&&F(t,this.metadata.C()),bu(this.providerData,function(e){t.providerData.push(An(e))}),t};var Lf={name:"redirectUser",B:"session"};us.prototype.g=function(){var t=this,e=fs("local");ms(this,function(){return J().then(function(){return t.c&&"local"!=t.c.B?t.b.get(e,t.a):null}).then(function(n){if(n)return cs(t,"local").then(function(){t.c=e})})})};var xf={name:"persistence",B:"session"};us.prototype.ib=function(t){var e=null,n=this;return yo(t),ms(this,function(){return t!=n.c.B?n.b.get(n.c,n.a).then(function(i){return e=i,cs(n,t)}).then(function(){if(n.c=fs(t),e)return n.b.set(n.c,e,n.a)}):J()})},p(bs,jt),p(gs,gt),p(ws,gt),su=bs.prototype,su.ib=function(t){return t=this.h.ib(t),Ls(this,t)},su.na=function(t){this.V===t||this.l||(this.V=t,mr(this.b,this.V),this.dispatchEvent(new gs(this.aa())))},su.aa=function(){return this.V},su.Nc=function(){var t=hu.navigator;this.na(t?t.languages&&t.languages[0]||t.language||t.userLanguage||null:null)},su.pc=function(t){this.D.push(t),br(this.b,uu.SDK_VERSION?en(uu.SDK_VERSION,this.D):null),this.dispatchEvent(new ws(this.D))},su.Ka=function(){return C(this.D)},su.toJSON=function(){return{apiKey:Os(this).options.apiKey,authDomain:Os(this).options.authDomain,appName:Os(this).name,currentUser:Ps(this)&&Ps(this).C()}},su.qb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==e&&!!this.f;default:return!1}},su.fa=function(t,e,n,i){"signInViaPopup"==t&&this.g==i&&(n&&this.v?this.v(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},su.wa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==e&&this.f?l(this.Xb,this):null},su.Xb=function(t,e){var n=this;t={requestUri:t,sessionId:e},this.c&&(this.c.cancel(),this.c=null);var i=null,r=null,o=Dr(n.b,t).then(function(t){return i=mi(t),r=Fn(t),t});return t=n.U.then(function(){return o}
6).then(function(t){return Es(n,t)}).then(function(){return kn({user:Ps(n),credential:i,additionalUserInfo:r,operationType:"signIn"})}),Ls(this,t)},su.Fc=function(t){if(!an())return Y(new On("operation-not-supported-in-this-environment"));var e=this,n=Vn(t.providerId),i=dn(),r=null;(!cn()||Ye())&&Os(this).options.authDomain&&t.isOAuthProvider&&(r=Qr(Os(this).options.authDomain,Os(this).options.apiKey,Os(this).name,"signInViaPopup",t,null,i,uu.SDK_VERSION||null));var o=Be(r,n&&n.Aa,n&&n.za);return n=Is(this).then(function(e){return ta(e,o,"signInViaPopup",t,i,!!r)}).then(function(){return new X(function(t,n){e.fa("signInViaPopup",null,new On("cancelled-popup-request"),e.g),e.f=t,e.v=n,e.g=i,e.c=e.a.Da(e,"signInViaPopup",o,i)})}).then(function(t){return o&&Ge(o),t?kn(t):null}).o(function(t){throw o&&Ge(o),t}),Ls(this,n)},su.Gc=function(t){if(!an())return Y(new On("operation-not-supported-in-this-environment"));var e=this;return Ls(this,Is(this).then(function(){return ls(e.h)}).then(function(){return e.a.Ba("signInViaRedirect",t)}))},su.ba=function(){if(!an())return Y(new On("operation-not-supported-in-this-environment"));var t=this;return Ls(this,Is(this).then(function(){return t.a.ba()}).then(function(t){return t?kn(t):null}))},su.kb=function(){var t=this;return Ls(this,this.i.then(function(){return Ps(t)?(ks(t,null),ps(t.h).then(function(){Rs(t)})):J()}))},su.Hc=function(){var t=this;return vs(this.h,Os(this).options.authDomain).then(function(e){if(!t.l){var n;if(n=Ps(t)&&e){n=Ps(t).uid;var i=e.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==i&&null!==i&&""!==i&&n==i}if(n)return Ga(Ps(t),e),Ps(t).F();(Ps(t)||e)&&(ks(t,e),e&&(Ma(e),e.da=t.G),t.a&&t.a.subscribe(t),Rs(t))}})},su.ka=function(t){return ds(this.h,t)},su.Yb=function(){Rs(this),this.ka(Ps(this))},su.fc=function(){this.kb()},su.gc=function(){this.kb()},su.hc=function(t){var e=this;this.addAuthTokenListener(function(){t.next(Ps(e))})},su.ic=function(t){var e=this;Ds(this,function(){t.next(Ps(e))})},su.rc=function(t,e,n){var i=this;return this.W&&uu.Promise.resolve().then(function(){u(t)?t(Ps(i)):u(t.next)&&t.next(Ps(i))}),this.Ob(t,e,n)},su.qc=function(t,e,n){var i=this;return this.W&&uu.Promise.resolve().then(function(){i.O=i.getUid(),u(t)?t(Ps(i)):u(t.next)&&t.next(Ps(i))}),this.Pb(t,e,n)},su.$b=function(t){var e=this;return Ls(this,this.i.then(function(){return Ps(e)?Ps(e).F(t).then(function(t){return{accessToken:t}}):null}))},su.Bc=function(t){return this.Hb(t).then(function(t){return t.user})},su.Hb=function(t){var e=this;return this.i.then(function(){return _s(e,jr(e.b,nf,{token:t}))}).then(function(t){var n=t.user;return qa(n,"isAnonymous",!1),e.ka(n),t})},su.Ib=function(t,e){var n=this;return this.i.then(function(){return _s(n,jr(n.b,rf,{email:t,password:e}))})},su.Cc=function(t,e){return this.Ib(t,e).then(function(t){return t.user})},su.Sb=function(t,e){return this.sb(t,e).then(function(t){return t.user})},su.sb=function(t,e){var n=this;return this.i.then(function(){return _s(n,jr(n.b,Mh,{email:t,password:e}))})},su.Ac=function(t){return this.Oa(t).then(function(t){return t.user})},su.Oa=function(t){var e=this;return this.i.then(function(){return _s(e,t.xa(e.b))})},su.jb=function(){return this.Jb().then(function(t){return t.user})},su.Jb=function(){var t=this;return this.i.then(function(){var e=Ps(t);return e&&e.isAnonymous?kn({user:e,credential:null,additionalUserInfo:kn({providerId:null,isNewUser:!1}),operationType:"signIn"}):_s(t,t.b.jb()).then(function(e){var n=e.user;return qa(n,"isAnonymous",!0),t.ka(n),e})})},su.getUid=function(){return Ps(this)&&Ps(this).uid||null},su.Qb=function(t){this.addAuthTokenListener(t),0<++this.s&&Ps(this)&&Ca(Ps(this))},su.yc=function(t){var e=this;bu(this.m,function(n){n==t&&e.s--}),0>this.s&&(this.s=0),0==this.s&&Ps(this)&&Ra(Ps(this)),this.removeAuthTokenListener(t)},su.addAuthTokenListener=function(t){var e=this;this.m.push(t),Ls(this,this.i.then(function(){e.l||S(e.m,t)&&t(Cs(e))}))},su.removeAuthTokenListener=function(t){O(this.m,function(e){return e==t})},su.delete=function(){this.l=!0;for(var t=0;t<this.N.length;t++)this.N[t].cancel("app-deleted");return this.N=[],this.h&&(t=this.h,t.b.removeListener(fs("local"),t.a,this.ha)),this.a&&this.a.unsubscribe(this),uu.Promise.resolve()},su.Vb=function(t){return Ls(this,kr(this.b,t))},su.Wb=function(t){return Ls(this,Ar(this.b,t))},su.jc=function(t){return!!fi(t)},su.hb=function(t,e){var n=this;return Ls(this,J().then(function(){var t=new Cn(e);if(!t.c)throw new On("argument-error",Wc+" must be true when sending sign in link to email");return Rn(t)}).then(function(e){return n.b.hb(t,e)}).then(function(){}))},su.Oc=function(t){return this.Ia(t).then(function(t){return t.data.email})},su.Wa=function(t,e){return Ls(this,this.b.Wa(t,e).then(function(){}))},su.Ia=function(t){return Ls(this,this.b.Ia(t).then(function(t){return new _n(t)}))}
6,su.Ua=function(t){return Ls(this,this.b.Ua(t).then(function(){}))},su.gb=function(t,e){var n=this;return Ls(this,J().then(function(){return void 0===e||U(e)?{}:Rn(new Cn(e))}).then(function(e){return n.b.gb(t,e)}).then(function(){}))},su.Ec=function(t,e){return Ls(this,da(this,t,e,l(this.Oa,this)))},su.Dc=function(t,e){var n=this;return Ls(this,J().then(function(){var i=hi(t,e||Ve());return n.Oa(i)}))};var Mf="callback",jf="expired-callback",Uf="sitekey",Vf="size";su=xs.prototype,su.ya=function(){var t=this;return this.c?this.c:this.c=Us(this,J().then(function(){if(sn()&&!$e())return We();throw new On("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return Ks(Hs(),t.s())}).then(function(){return jr(t.u,Wh,{})}).then(function(e){t.a[Uf]=e.recaptchaSiteKey}).o(function(e){throw t.c=null,e}))},su.render=function(){Vs(this);var t=this;return Us(this,this.ya().then(function(){if(null===t.b){var e=t.l;if(!t.h){var n=Oe(e);e=Ce("DIV"),n.appendChild(e)}t.b=grecaptcha.render(e,t.a)}return t.b}))},su.verify=function(){Vs(this);var t=this;return Us(this,this.render().then(function(e){return new X(function(n){var i=grecaptcha.getResponse(e);if(i)n(i);else{var r=function(e){e&&(js(t,r),n(e))};t.i.push(r),t.h&&grecaptcha.execute(t.b)}})}))},su.reset=function(){Vs(this),null!==this.b&&grecaptcha.reset(this.b)},su.clear=function(){Vs(this),this.m=!0,Hs().b--;for(var t=0;t<this.g.length;t++)this.g[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.h){t=Oe(this.l);for(var e;e=t.firstChild;)t.removeChild(e)}};var Ff=be("https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Kf=null;p(qs,xs);var Hf="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");iu(bs.prototype,{Ua:{name:"applyActionCode",j:[Bs("code")]},Ia:{name:"checkActionCode",j:[Bs("code")]},Wa:{name:"confirmPasswordReset",j:[Bs("code"),Bs("newPassword")]},Sb:{name:"createUserWithEmailAndPassword",j:[Bs("email"),Bs("password")]},sb:{name:"createUserAndRetrieveDataWithEmailAndPassword",j:[Bs("email"),Bs("password")]},Vb:{name:"fetchProvidersForEmail",j:[Bs("email")]},Wb:{name:"fetchSignInMethodsForEmail",j:[Bs("email")]},ba:{name:"getRedirectResult",j:[]},jc:{name:"isSignInWithEmailLink",j:[Bs("emailLink")]},qc:{name:"onAuthStateChanged",j:[nu(Ws(),zs(),"nextOrObserver"),zs("opt_error",!0),zs("opt_completed",!0)]},rc:{name:"onIdTokenChanged",j:[nu(Ws(),zs(),"nextOrObserver"),zs("opt_error",!0),zs("opt_completed",!0)]},gb:{name:"sendPasswordResetEmail",j:[Bs("email"),nu(Ws("opt_actionCodeSettings",!0),Js(null,!0),"opt_actionCodeSettings",!0)]},hb:{name:"sendSignInLinkToEmail",j:[Bs("email"),Ws("actionCodeSettings")]},ib:{name:"setPersistence",j:[Bs("persistence")]},Oa:{name:"signInAndRetrieveDataWithCredential",j:[Qs()]},jb:{name:"signInAnonymously",j:[]},Jb:{name:"signInAnonymouslyAndRetrieveData",j:[]},Ac:{name:"signInWithCredential",j:[Qs()]},Bc:{name:"signInWithCustomToken",j:[Bs("token")]},Hb:{name:"signInAndRetrieveDataWithCustomToken",j:[Bs("token")]},Cc:{name:"signInWithEmailAndPassword",j:[Bs("email"),Bs("password")]},Dc:{name:"signInWithEmailLink",j:[Bs("email"),Bs("emailLink",!0)]},Ib:{name:"signInAndRetrieveDataWithEmailAndPassword",j:[Bs("email"),Bs("password")]},Ec:{name:"signInWithPhoneNumber",j:[Bs("phoneNumber"),eu()]},Fc:{name:"signInWithPopup",j:[tu()]},Gc:{name:"signInWithRedirect",j:[tu()]},kb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Bs(null,!0)]},Nc:{name:"useDeviceLanguage",j:[]},Oc:{name:"verifyPasswordResetCode",j:[Bs("code")]}}),function(t,e){for(var n in e){var i=e[n].name;if(i!==n){var r=e[n].Rb;Object.defineProperty(t,i,{get:function(){return this[n]},set:function(t){Gs(i,[r],[t],!0),this[n]=t},enumerable:!0})}}}(bs.prototype,{lc:{name:"languageCode",Rb:nu(Bs(),Js(),"languageCode")}}),bs.Persistence=yf,bs.Persistence.LOCAL="local",bs.Persistence.SESSION="session",bs.Persistence.NONE="none",iu(Aa.prototype,{delete:{name:"delete",j:[]},F:{name:"getIdToken",j:[Xs()]},getToken:{name:"getToken",j:[Xs()]},$a:{name:"linkAndRetrieveDataWithCredential",j:[Qs()]},kc:{name:"linkWithCredential",j:[Qs()]},mc:{name:"linkWithPhoneNumber",j:[Bs("phoneNumber"),eu()]},nc:{name:"linkWithPopup",j:[tu()]},oc:{name:"linkWithRedirect",j:[tu()]},bb:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Qs()]},uc:{name:"reauthenticateWithCredential",j:[Qs()]},vc:{name:"reauthenticateWithPhoneNumber",j:[Bs("phoneNumber"),eu()]},wc:{name:"reauthenticateWithPopup",j:[tu()]},xc:{name:"reauthenticateWithRedirect",j:[tu()]},reload:{name:"reload",j:[]},fb:{name:"sendEmailVerification",j:[nu(Ws("opt_actionCodeSettings",!0),Js(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Bs(null,!0)]},Lc:{name:"unlink",j:[Bs("provider")]},mb:{name:"updateEmail",j:[Bs("email")]},nb:{name:"updatePassword",j:[Bs("password")]},Mc:{name:"updatePhoneNumber",j:[Qs("phone")]},ob:{name:"updateProfile",j:[Ws("profile")]}}),iu(X.prototype,{ga:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),iu(la.prototype,{confirm:{name:"confirm",j:[Bs("verificationCode")]}}),ru(ci,"credential",function(t,e){return new ui(t,e)},[Bs("email"),Bs("password")]),iu(ti.prototype,{ta:{name:"addScope",j:[Bs("scope")]},Ca:{name:"setCustomParameters",j:[Ws("customOAuthParameters")]}}),ru(ti,"credential",ei,[nu(Bs(),Ws(),"token")]),ru(ci,"credentialWithLink",hi,[Bs("email"),Bs("emailLink")]),iu(ni.prototype,{ta:{name:"addScope",j:[Bs("scope")]},Ca:{name:"setCustomParameters",j:[Ws("customOAuthParameters")]}}),ru(ni,"credential",ii,[nu(Bs(),Ws(),"token")]),iu(ri.prototype,{ta:{name:"addScope",j:[Bs("scope")]},Ca:{name:"setCustomParameters",j:[Ws("customOAuthParameters")]}}),ru(ri,"credential",oi,[nu(Bs(),nu(Ws(),Js()),"idToken"),nu(Bs(),Js(),"accessToken",!0)]),iu(ai.prototype,{Ca:{name:"setCustomParameters",j:[Ws("customOAuthParameters")]}}),ru(ai,"credential",si,[nu(Bs(),Ws(),"token"),Bs("secret",!0)]),iu(Qn.prototype,{ta:{name:"addScope",j:[Bs("scope")]},credential:{name:"credential",j:[nu(Bs(),Js(),"idToken",!0),nu(Bs(),Js(),"accessToken",!0)]},Ca:{name:"setCustomParameters",j:[Ws("customOAuthParameters")]}}),ru(pi,"credential",vi,[Bs("verificationId"),Bs("verificationCode")]),iu(pi.prototype,{Sa:{name:"verifyPhoneNumber",j:[Bs("phoneNumber"),eu()]}}),iu(On.prototype,{toJSON:{name:"toJSON",j:[Bs(null,!0)]}}),iu(Ti.prototype,{toJSON:{name:"toJSON",j:[Bs(null,!0)]}}),iu(Ii.prototype,{toJSON:{name:"toJSON",j:[Bs(null,!0)]}}),iu(qs.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),function(){if(void 0===uu||!uu.INTERNAL||!uu.INTERNAL.registerService)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={Auth:bs,Error:On};ru(t,"EmailAuthProvider",ci,[]),ru(t,"FacebookAuthProvider",ti,[]),ru(t,"GithubAuthProvider",ni,[]),ru(t,"GoogleAuthProvider",ri,[]),ru(t,"TwitterAuthProvider",ai,[]),ru(t,"OAuthProvider",Qn,[Bs("providerId")]),ru(t,"PhoneAuthProvider",pi,[$s()]),ru(t,"RecaptchaVerifier",qs,[nu(Bs(),Ys(),"recaptchaContainer"),Ws("recaptchaParameters",!0),Zs()]),uu.INTERNAL.registerService("auth",function(t,e){return t=new bs(t),e({INTERNAL:{getUid:l(t.getUid,t),getToken:l(t.$b,t),addAuthTokenListener:l(t.Qb,t),removeAuthTokenListener:l(t.yc,t)}}),t},t,function(t,e){if("create"===t)try{e.auth()}catch(t){}}),uu.INTERNAL.extendNamespace({User:Aa})}()}).call(void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}).call(e,n(11))}},[78])}catch(t){throw Error("Cannot instantiate firebase-auth.js - be sure to load firebase-app.js first.")} 7//# sourceMappingURL=firebase-auth.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.