!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],e):e((t=t||self).firebase)}(this,function(Ue){"use strict";try{(function(){Ue=Ue&&Object.prototype.hasOwnProperty.call(Ue,"default")?Ue.default:Ue;var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var c=function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;na[0]&&e[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0"})):"Error",u=this.serviceName+": "+s+" ("+o+").",c=new g(o,u),f=0,l=Object.keys(i);fi&&r.push(e.charAt(i));return r.join("")}var Gt,Jt,zt,Yt=(Zt.prototype.getAppId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!t)throw Vt.create("no app id");return t},Zt.prototype.getProjectId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!t)throw Vt.create("no project id");return t},Zt.prototype.getApiKey=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!t)throw Vt.create("no api key");return t},Zt.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},Zt.getInstance=function(){return void 0===Bt&&(Bt=new Zt),Bt},Zt);function Zt(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=$t("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=$t("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}function Qt(){return Gt}(zt=Jt=Jt||{})[zt.UNKNOWN=0]="UNKNOWN",zt[zt.VISIBLE=1]="VISIBLE",zt[zt.HIDDEN=2]="HIDDEN";var Xt=["firebase_","google_","ga_"],te=new RegExp("^[a-zA-Z]\\w*$");function ee(){switch(Kt.getInstance().document.visibilityState){case"visible":return Jt.VISIBLE;case"hidden":return Jt.HIDDEN;default:return Jt.UNKNOWN}}var ne=new Rt(Ft);ne.logLevel=at.INFO;var re="0.0.1",ie={loggingEnabled:!0},oe="FIREBASE_INSTALLATIONS_AUTH";function ae(t){var r,e=function(){var t=Kt.getInstance().localStorage;if(!t)return;var e=t.getItem(qt);if(!e||!function(t){return Number(t)>Date.now()}(e))return;var n=t.getItem(Ut);if(!n)return;try{return JSON.parse(n)}catch(t){return}}();return e?(ue(e),Promise.resolve()):(r=t,function(){var t=Yt.getInstance().installationsService.getToken();return t.then(function(t){}),t}().then(function(t){var e="https://firebaseremoteconfig.googleapis.com/v1/projects/"+Yt.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+Yt.getInstance().getApiKey(),n=new Request(e,{method:"POST",headers:{Authorization:oe+" "+t},body:JSON.stringify({app_instance_id:r,app_instance_id_token:t,app_id:Yt.getInstance().getAppId(),app_version:Dt,sdk_version:re})});return fetch(n).then(function(t){if(t.ok)return t.json();throw Vt.create("RC response not ok")})}).catch(function(){ne.info(se)}).then(ue).then(function(t){return function(t){var e=Kt.getInstance().localStorage;if(!t||!e)return;e.setItem(Ut,JSON.stringify(t)),e.setItem(qt,String(Date.now()+60*Yt.getInstance().configTimeToLive*60*1e3))}(t)},function(){}))}var se="Could not fetch config, will use default configs";function ue(t){if(!t)return t;var e=Yt.getInstance(),n=t.entries||{};return e.loggingEnabled=void 0!==n.fpr_enabled?"true"===String(n.fpr_enabled):ie.loggingEnabled,n.fpr_log_source&&(e.logSource=Number(n.fpr_log_source)),n.fpr_log_endpoint_url&&(e.logEndPointUrl=n.fpr_log_endpoint_url),n.fpr_log_transport_key&&(e.transportKey=n.fpr_log_transport_key),void 0!==n.fpr_vc_network_request_sampling_rate&&(e.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate)),void 0!==n.fpr_vc_trace_sampling_rate&&(e.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate)),e.logTraceAfterSampling=ce(e.tracesSamplingRate),e.logNetworkAfterSampling=ce(e.networkRequestsSamplingRate),t}function ce(t){return Math.random()<=t}var fe,le=1;function pe(){return le=2,fe=fe||function(){var n=Kt.getInstance().document;return new Promise(function(t){if(n&&"complete"!==n.readyState){var e=function(){"complete"===n.readyState&&(n.removeEventListener("readystatechange",e),t())};n.addEventListener("readystatechange",e)}else t()})}().then(function(){return(t=Yt.getInstance().installationsService.getId()).then(function(t){Gt=t}),t;var t}).then(function(t){return ae(t)}).then(function(){return he()},function(){return he()})}function he(){le=3}var de,ge=1e4,ve=5500,me=3,ye=me,be=[],_e=!1;function we(t){setTimeout(function(){if(0!==ye)return be.length?void function(){var t=o(be);be=[];var e=t.map(function(t){return{source_extension_json_proto3:t.message,event_time_ms:String(t.eventTime)}});(function(t,i){return function(t){var e=Yt.getInstance().getFlTransportFullUrl();return fetch(e,{method:"POST",body:JSON.stringify(t)})}(t).then(function(t){return t.ok||ne.info("Call to Firebase backend failed."),t.json()}).then(function(t){var e=Number(t.nextRequestWaitMillis),n=ge;isNaN(e)||(n=Math.max(e,n));var r=t.logResponseDetails;Array.isArray(r)&&0