{"version":3,"names":[],"mappings":"","sources":["firebase-app.js"],"sourcesContent":["var firebase=function(){var e=void 0===e?self:e;return function(t){function n(e){if(o[e])return o[e].exports;var r=o[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var r=e.webpackJsonp;e.webpackJsonp=function(e,o,a){for(var c,s,u,f=0,l=[];f0&&void 0!==arguments[0]?arguments[0]:e();return\"function\"!=typeof t[n]&&i(\"invalid-app-argument\",{name:n}),t[n]()};return void 0!==o&&(0,f.deepExtend)(s,o),m[n]=s,h.prototype[n]=function(){for(var e=this._getService.bind(this,n),t=arguments.length,r=Array(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:p;if(this.checkDestroyed_(),this.services_[e]||(this.services_[e]={}),!this.services_[e][t]){var n=this.firebase_.INTERNAL.factories[e](this,this.extendApp.bind(this),t);this.services_[e][t]=n}return this.services_[e][t]}},{key:\"extendApp\",value:function(t){var n=this;(0,f.deepExtend)(e.prototype,t),t.INTERNAL&&t.INTERNAL.addAuthTokenListener&&(d.forEach(function(e){n.INTERNAL.addAuthTokenListener(e)}),d=[])}},{key:\"checkDestroyed_\",value:function(){this.isDeleted_&&i(\"app-deleted\",{name:this.name_})}},{key:\"name\",get:function(){return this.checkDestroyed_(),this.name_}},{key:\"options\",get:function(){return this.checkDestroyed_(),this.options_}}]),e}();h.prototype.INTERNAL={getUid:function(){return null},getToken:function(){return l.resolve(null)},addAuthTokenListener:function(e){d.push(e),setTimeout(function(){return e(null)},0)},removeAuthTokenListener:function(e){d=d.filter(function(t){return t!==e})}},h.prototype.name&&h.prototype.options||h.prototype.delete||console.log(\"dc\");var v={\"no-app\":\"No Firebase App '{$name}' has been created - call Firebase App.initializeApp()\",\"bad-app-name\":\"Illegal App name: '{$name}\",\"duplicate-app\":\"Firebase App named '{$name}' already exists\",\"app-deleted\":\"Firebase App named '{$name}' already deleted\",\"duplicate-service\":\"Firebase service named '{$name}' already registered\",\"sa-not-supported\":\"Initializing the Firebase SDK with a service account is only allowed in a Node.js environment. On client devices, you should instead initialize the SDK with an api key and auth domain\",\"invalid-app-argument\":\"firebase.{$name}() takes either no argument or a Firebase App instance.\"},m=new s.ErrorFactory(\"app\",\"Firebase\",v)},32:function(e,t,n){\"use strict\";function r(e){return o(void 0,e)}function o(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=o(e[n],t[n]));return e}function i(e,t,n){e[t]=n}Object.defineProperty(t,\"__esModule\",{value:!0}),t.deepCopy=r,t.deepExtend=o,t.patchProperty=i},4:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(27),o=(0,r.createFirebaseNamespace)();t.default=o,e.exports=t.default},51:function(e,t){function n(){throw new Error(\"setTimeout has not been defined\")}function r(){throw new Error(\"clearTimeout has not been defined\")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&c())}function c(){if(!v){var e=o(a);v=!0;for(var t=h.length;t;){for(d=h,h=[];++m1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(53),n.setImmediate=setImmediate,n.clearImmediate=clearImmediate},9:function(e,t,n){\"use strict\";function r(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function o(e){var t=a;return a=e,t}Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n\"}),o=this.serviceName+\": \"+o+\" (\"+r+\").\";var i=new c(r,o);for(var a in t)t.hasOwnProperty(a)&&\"_\"!==a.slice(-1)&&(i[a]=t[a]);return i}}]),e}()}})}();"],"file":"firebase-app.js"}