1(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{dB9c:function(e,t,n){"use strict";n.r(t);var r,i=n("zIRd"),o=n("/6Yf"),s=n("LpKv"),a=n("qOnz"),c=n("nbvr"),u=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["not-registered"]="Firebase Installation is not registered.",r["installation-not-found"]="Firebase Installation not found.",r["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',r["app-offline"]="Could not process request. Application offline.",r["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",r),l=new a.b("installations","Installations",u);function f(e){return e instanceof a.c&&e.code.includes("request-failed")}function d(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function p(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function h(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),[2,l.create("request-failed",{requestName:e,serverCode:(r=n.error).code,serverMessage:r.message,serverStatus:r.status})]}})})}function b(e){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey})}function g(e,t){var n=t.refreshToken,r=b(e);return r.append("Authorization",function(e){return"FIS_v2 "+e}(n)),r}function v(e){return Object(s.b)(this,void 0,void 0,function(){var t;return Object(s.d)(this,function(n){switch(n.label){case 0:return[4,e()];case 1:return(t=n.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}})})}function y(e,t){var n=t.fid;return Object(s.b)(this,void 0,void 0,function(){var t,r,i,o,a;return Object(s.d)(this,function(s){switch(s.label){case 0:return t=d(e),r=b(e),i={method:"POST",headers:r,body:JSON.stringify({fid:n,authVersion:"FIS_v2",appId:e.appId,sdkVersion:"w:0.4.32"})},[4,v(function(){return fetch(t,i)})];case 1:return(o=s.sent()).ok?[4,o.json()]:[3,3];case 2:return[2,{fid:(a=s.sent()).fid||n,registrationStatus:2,refreshToken:a.refreshToken,authToken:p(a.authToken)}];case 3:return[4,h("Create Installation",o)];case 4:throw s.sent()}})})}function w(e){return new Promise(function(t){setTimeout(t,e)})}var m=/^[cdef][\w-]{21}$/;function j(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){var t;return(t=e,btoa(String.fromCharCode.apply(String,Object(s.f)([],Object(s.e)(t)))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22)}(e);return m.test(t)?t:""}catch(n){return""}}function O(e){return e.appName+"!"+e.appId}var k=new Map;function S(e,t){var n=O(e);I(n,t),function(e,t){var n=C();n&&n.postMessage({key:e,fid:t}),T()}(n,t)}function I(e,t){var n,r,i=k.get(e);if(i)try{for(var o=Object(s.g)(i),a=o.next();!a.done;a=o.next())(0,a.value)(t)}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var _=null;function C(){return!_&&"BroadcastChannel"in self&&((_=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){I(e.data.key,e.data.fid)}),_}function T(){0===k.size&&_&&(_.close(),_=null)}var D,P,K="firebase-installations-store",M=null;function E(){return M||(M=Object(c.openDb)("firebase-installations-database",1,function(e){0===e.oldVersion&&e.createObjectStore(K)})),M}function x(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r,i,o,a;return Object(s.d)(this,function(s){switch(s.label){case 0:return n=O(e),[4,E()];case 1:return r=s.sent(),i=r.transaction(K,"readwrite"),[4,(o=i.objectStore(K)).get(n)];case 2:return a=s.sent(),[4,o.put(t,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),a&&a.fid===t.fid||S(e,t.fid),[2,t]}})})}function N(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return t=O(e),[4,E()];case 1:return n=i.sent(),[4,(r=n.transaction(K,"readwrite")).objectStore(K).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}})})}function A(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r,i,o,a,c;return Object(s.d)(this,function(s){switch(s.label){case 0:return n=O(e),[4,E()];case 1:return r=s.sent(),i=r.transaction(K,"readwrite"),[4,(o=i.objectStore(K)).get(n)];case 2:return a=s.sent(),void 0!==(c=t(a))?[3,4]:[4,o.delete(n)];case 3:return s.sent(),[3,6];case 4:return[4,o.put(c,n)];case 5:s.sent(),s.label=6;case 6:return[4,i.complete];case 7:return s.sent(),!c||a&&a.fid===c.fid||S(e,c.fid),[2,c]}})})}function q(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return[4,A(e,function(n){var r=function(e){return L(e||{fid:j(),registrationStatus:0})}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(l.create("app-offline"))};var n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()};return{installationEntry:n,registrationPromise:function(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,y(e,t)];case 1:return n=i.sent(),[2,x(e,n)];case 2:return f(r=i.sent())&&409===r.customData.serverCode?[4,N(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,x(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}})})}
1(e,n)}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:R(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry})];case 1:return""!==(n=i.sent()).fid?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}})})}function R(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r,i;return Object(s.d)(this,function(o){switch(o.label){case 0:return[4,B(e)];case 1:t=o.sent(),o.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,w(100)];case 3:return o.sent(),[4,B(e)];case 4:return t=o.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,q(e)];case 6:return n=o.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,t]}})})}function B(e){return A(e,function(e){if(!e)throw l.create("installation-not-found");return L(e)})}function L(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function V(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return Object(s.b)(this,void 0,void 0,function(){var e,i,o,a,c;return Object(s.d)(this,function(s){switch(s.label){case 0:return e=function(e,t){var n=t.fid;return d(e)+"/"+n+"/authTokens:generate"}(n,t),i=g(n,t),(o=r.getImmediate({optional:!0}))&&i.append("x-firebase-client",o.getPlatformInfoString()),a={method:"POST",headers:i,body:JSON.stringify({installation:{sdkVersion:"w:0.4.32"}})},[4,v(function(){return fetch(e,a)})];case 1:return(c=s.sent()).ok?[4,c.json()]:[3,3];case 2:return[2,p(s.sent())];case 3:return[4,h("Generate Auth Token",c)];case 4:throw s.sent()}})})}function F(e,t){return void 0===t&&(t=!1),Object(s.b)(this,void 0,void 0,function(){var n,r,i;return Object(s.d)(this,function(o){switch(o.label){case 0:return[4,A(e.appConfig,function(r){if(!W(r))throw l.create("not-registered");var i,o=r.authToken;if(!t&&2===(i=o).requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(i))return r;if(1===o.requestStatus)return n=function(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return[4,U(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,w(100)];case 3:return i.sent(),[4,U(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,F(e,t)]:[2,r]}})})}(e,t),r;if(!navigator.onLine)throw l.create("app-offline");var a=function(e){var t={requestStatus:1,requestTime:Date.now()};return Object(s.a)(Object(s.a)({},e),{authToken:t})}(r);return n=function(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r,i;return Object(s.d)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,V(e,t)];case 1:return n=o.sent(),i=Object(s.a)(Object(s.a)({},t),{authToken:n}),[4,x(e.appConfig,i)];case 2:return o.sent(),[2,n];case 3:return!f(r=o.sent())||401!==r.customData.serverCode&&404!==r.customData.serverCode?[3,5]:[4,N(e.appConfig)];case 4:return o.sent(),[3,7];case 5:return i=Object(s.a)(Object(s.a)({},t),{authToken:{requestStatus:0}}),[4,x(e.appConfig,i)];case 6:o.sent(),o.label=7;case 7:throw r;case 8:return[2]}})})}(e,a),a})];case 1:return r=o.sent(),n?[4,n]:[3,3];case 2:return i=o.sent(),[3,4];case 3:i=r.authToken,o.label=4;case 4:return[2,i]}})})}function U(e){return A(e,function(e){if(!W(e))throw l.create("not-registered");var t;return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?Object(s.a)(Object(s.a)({},e),{authToken:{requestStatus:0}}):e})}function W(e){return void 0!==e&&2===e.registrationStatus}function H(e){return Object(s.b)(this,void 0,void 0,function(){var t;return Object(s.d)(this,function(n){switch(n.label){case 0:return[4,q(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})}function $(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r,i,o;return Object(s.d)(this,function(s){switch(s.label){case 0:return n=function(e,t){var n=t.fid;return d(e)+"/"+n}(e,t),r=g(e,t),i={method:"DELETE",headers:r},[4,v(function(){return fetch(n,i)})];case 1:return(o=s.sent()).ok?[3,3]:[4,h("Delete Installation",o)];case 2:throw s.sent();case 3:return[2]}})})}function z(e){return l.create("missing-app-config-values",{valueName:e})}(D=i.a).INTERNAL.registerComponent(new o.a("installations",function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw z("App Configuration");if(!e.name)throw z("App Name");try{for(var r=Object(s.g)(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var o=i.value;if(!e.options[o])throw z(o)}}catch(a){t={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}
1return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){return function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return[4,q(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):F(e).catch(console.error),[2,n.fid]}})})}(n)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(n){switch(n.label){case 0:return[4,H(e.appConfig)];case 1:return n.sent(),[4,F(e,t)];case 2:return[2,n.sent().token]}})})}(n,e)},delete:function(){return function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n;return Object(s.d)(this,function(r){switch(r.label){case 0:return[4,A(t=e.appConfig,function(e){if(!e||0!==e.registrationStatus)return e})];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw l.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw l.create("app-offline");case 3:return[4,$(t,n)];case 4:return r.sent(),[4,N(t)];case 5:r.sent(),r.label=6;case 6:return[2]}})})}(n)},onIdChange:function(e){return function(e,t){var n=e.appConfig;return function(e,t){C();var n=O(e),r=k.get(n);r||(r=new Set,k.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=O(e),r=k.get(n);r&&(r.delete(t),0===r.size&&k.delete(n),T())}(n,t)}}(n,e)}}},"PUBLIC")),D.registerVersion("@firebase/installations","0.4.32");var G=((P={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',P["only-available-in-window"]="This method is available in a Window context.",P["only-available-in-sw"]="This method is available in a service worker context.",P["permission-default"]="The notification permission was not granted and dismissed instead.",P["permission-blocked"]="The notification permission was not granted and blocked instead.",P["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",P["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",P["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",P["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",P["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",P["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",P["token-update-no-token"]="FCM returned no token when updating the user to push.",P["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",P["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",P["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",P["invalid-vapid-key"]="The public VAPID key must be a string.",P["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",P),J=new a.b("messaging","Messaging",G),Y="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Q=function(e){return e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked",e}({});function X(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,Object(s.f)([],Object(s.e)(t)))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Z(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}function ee(e){return Object(s.b)(this,void 0,void 0,function(){var t,n=this;return Object(s.d)(this,function(r){switch(r.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(!r.sent().map(function(e){return e.name}).includes("fcm_token_details_db"))return[2,null];r.label=2;case 2:return t=null,[4,Object(c.openDb)("fcm_token_details_db",5,function(r){return Object(s.b)(n,void 0,void 0,function(){var n,i,o,a;return Object(s.d)(this,function(s){switch(s.label){case 0:return r.oldVersion<2?[2]:r.objectStoreNames.contains("fcm_token_object_Store")?[4,(n=r.transaction.objectStore("fcm_token_object_Store")).index("fcmSenderId").get(e)]:[2];case 1:return i=s.sent(),[4,n.clear()];case 2:if(s.sent(),!i)return[2];if(2===r.oldVersion){if(!(o=i).auth||!o.p256dh||!o.endpoint)return[2];t={token:o.fcmToken,createTime:null!==(a=o.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:o.auth,p256dh:o.p256dh,endpoint:o.endpoint,swScope:o.swScope,vapidKey:"string"==typeof o.vapidKey?o.vapidKey:X(o.vapidKey)}}}else(3===r.oldVersion||4===r.oldVersion)&&(t={token:(o=i).fcmToken,createTime:o.createTime,subscriptionOptions:{auth:X(o.auth),p256dh:X(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:X(o.vapidKey)}});return[2]}})})})];case 3:return r.sent().close(),[4,Object(c.deleteDb)("fcm_token_details_db")];case 4:return r.sent(),[4,Object(c.deleteDb)("fcm_vapid_details_db")];case 5:return r.sent(),[4,Object(c.deleteDb)("undefined")];case 6:return r.sent(),[2,te(t)?t:null]}})})}function te(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}var ne=null;function re(){return ne||(ne=Object(c.openDb)("firebase-messaging-database",1,function(e){0===e.oldVersion&&e.createObjectStore("firebase-messaging-store")})),ne}function ie(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return t=ae(e),[4,re()];case 1:return[4,i.sent().transaction("firebase-messaging-store").objectStore("firebase-messaging-store").get(t)];case 2:return(n=i.sent())?[2,n]:[3,3];case 3:return[4,ee(e.appConfig.senderId)];case 4:return(r=i.sent())?[4,oe(e,r)]:[3,6];case 5:return i.sent(),[2,r];case 6:return[2]}})})}function oe(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r,i;return Object(s.d)(this,function(o){switch(o.label){case 0:return n=ae(e),[4,re()];case 1:return r=o.sent(),[4,(i=r.transaction("firebase-messaging-store","readwrite")).objectStore("firebase-messaging-store").put(t,n)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,t]}})})}function se(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return t=ae(e),[4,re()];case 1:return n=i.sent(),[4,(r=n.transaction("firebase-messaging-store","readwrite")).objectStore("firebase-messaging-store").delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}})})}function ae(e){return e.appConfig.appId}function ce(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r,i,o,a;return Object(s.d)(this,function(s){switch(s.label){case 0:return[4,de(e)];case 1:n=s.sent(),r=pe(t),i={method:"POST",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(fe(e.appConfig),i)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),J.create("token-subscribe-failed",{errorInfo:a});case 6:if(o.error)throw J.create("token-subscribe-failed",{errorInfo:o.error.message});if(!o.token)throw J.create("token-subscribe-no-token");return[2,o.token]}})})}function ue(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r,i,o,a;return Object(s.d)(this,function(s){switch(s.label){case 0:return[4,de(e)];case 1:n=s.sent(),r=pe(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(fe(e.appConfig)+"/"+t.token,i)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),J.create("token-update-failed",{errorInfo:a});case 6:if(o.error)throw J.create("token-update-failed",{errorInfo:o.error.message});if(!o.token)throw J.create("token-update-no-token");return[2,o.token]}})})}function le(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r,i,o;return Object(s.d)(this,function(s){switch(s.label){case 0:return[4,de(e)];case 1:n=s.sent(),r={method:"DELETE",headers:n},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(fe(e.appConfig)+"/"+t,r)];case 3:return[4,s.sent().json()];case 4:if((i=s.sent()).error)throw J.create("token-unsubscribe-failed",{errorInfo:i.error.message});return[3,6];case 5:throw o=s.sent(),J.create("token-unsubscribe-failed",{errorInfo:o});case 6:return[2]}})})}function fe(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function de(e){var t=e.appConfig,n=e.installations;return Object(s.b)(this,void 0,void 0,function(){var e;return Object(s.d)(this,function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return e=r.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":"FIS "+e})]}})})}function pe(e){var t=e.vapidKey,n={web:{endpoint:e.endpoint,auth:e.auth,p256dh:e.p256dh}};return t!==Y&&(n.web.applicationPubKey=t),n}function he(e,t,n){return Object(s.b)(this,void 0,void 0,function(){var r,i,o,a;return Object(s.d)(this,function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw J.create("permission-blocked");return[4,ye(t,n)];case 1:return r=s.sent(),[4,ie(e)];case 2:return i=s.sent(),o={vapidKey:n,swScope:t.scope,endpoint:r.endpoint,auth:X(r.getKey("auth")),p256dh:X(r.getKey("p256dh"))},i?[3,3]:[2,ve(e,o)];case 3:if(l=(u=o).endpoint===(c=i.subscriptionOptions).endpoint,u.vapidKey===c.vapidKey&&l&&u.auth===c.auth&&u.p256dh===c.p256dh)return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,le(e,i.token)];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),console.warn(a),[3,7];case 7:return[2,ve(e,o)];case 8:return Date.now()>=i.createTime+6048e5?[2,ge({token:i.token,createTime:Date.now(),subscriptionOptions:o},e,t)]:[2,i.token];case 9:return[2]}var c,u,l})})}function be(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return[4,ie(e)];case 1:return(n=i.sent())?[4,le(e,n.token)]:[3,4];case 2:return i.sent(),[4,se(e)];case 3:i.sent(),i.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return(r=i.sent())?[2,r.unsubscribe()]:[2,!0]}})})}function ge(e,t,n){return Object(s.b)(this,void 0,void 0,function(){var r,i,o;return Object(s.d)(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,ue(t,e)];case 1:return r=a.sent(),i=Object(s.a)(Object(s.a)({},e),{token:r,createTime:Date.now()}),[4,oe(t,i)];case 2:return a.sent(),[2,r];case 3:return o=a.sent(),[4,be(t,n)];case 4:throw a.sent(),o;case 5:return[2]}})})}function ve(e,t){return Object(s.b)(this,void 0,void 0,function(){var n,r;return Object(s.d)(this,function(i){switch(i.label){case 0:return[4,ce(e,t)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:t},[4,oe(e,r)];case 2:return i.sent(),[2,r.token]}})})}function ye(e,t){return Object(s.b)(this,void 0,void 0,function(){var n;return Object(s.d)(this,function(r){switch(r.label){case 0:return[4,e.pushManager.getSubscription()];
1case 1:return(n=r.sent())?[2,n]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Z(t)})]}})})}function we(e){return"object"==typeof e&&!!e&&"google.c.a.c_id"in e}function me(e){return new Promise(function(t){setTimeout(t,e)})}var je=function(){function e(e){var t=this;this.firebaseDependencies=e,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(e){e.waitUntil(t.onPush(e))}),self.addEventListener("pushsubscriptionchange",function(e){e.waitUntil(t.onSubChange(e))}),self.addEventListener("notificationclick",function(e){e.waitUntil(t.onNotificationClick(e))})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(e){if(this.isOnBackgroundMessageUsed=!1,!e||"function"!=typeof e)throw J.create("invalid-bg-handler");this.bgMessageHandler=e},e.prototype.onBackgroundMessage=function(e){var t=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=e,function(){t.bgMessageHandler=null}},e.prototype.getToken=function(){var e,t;return Object(s.b)(this,void 0,void 0,function(){var n;return Object(s.d)(this,function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,ie(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(t=null===(e=null==n?void 0:n.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==t?t:Y,r.label=2;case 2:return[2,he(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},e.prototype.deleteToken=function(){return be(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw J.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw J.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw J.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(){throw J.create("only-available-in-window")},e.prototype.onMessage=function(){throw J.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw J.create("only-available-in-window")},e.prototype.onPush=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r,i;return Object(s.d)(this,function(o){switch(o.label){case 0:return(t=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(n){return null}}(e))?[4,Ie()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return function(e){return e.some(function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")})}(n=o.sent())?[2,Se(n,t)]:(r=!1,t.notification?[4,_e(Oe(t))]:[3,3]);case 2:o.sent(),r=!0,o.label=3;case 3:return!0===r&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(i=function(e){var t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcm_message_id};return function(e,t){if(t.notification){e.notification={};var n=t.notification.title;n&&(e.notification.title=n);var r=t.notification.body;r&&(e.notification.body=r);var i=t.notification.image;i&&(e.notification.image=i)}}(t,e),function(e,t){t.data&&(e.data=t.data)}(t,e),function(e,t){if(t.fcmOptions){e.fcmOptions={};var n=t.fcmOptions.link;n&&(e.fcmOptions.link=n);var r=t.fcmOptions.analytics_label;r&&(e.fcmOptions.analyticsLabel=r)}}(t,e),t}(t),"function"==typeof this.bgMessageHandler?this.bgMessageHandler(i):this.bgMessageHandler.next(i)),[4,me(1e3)]);case 4:return o.sent(),[2]}})})},e.prototype.onSubChange=function(e){var t,n;return Object(s.b)(this,void 0,void 0,function(){var r;return Object(s.d)(this,function(i){switch(i.label){case 0:return e.newSubscription?[3,2]:[4,be(this.firebaseDependencies,self.registration)];case 1:case 5:return i.sent(),[2];case 2:return[4,ie(this.firebaseDependencies)];case 3:return r=i.sent(),[4,be(this.firebaseDependencies,self.registration)];case 4:return i.sent(),[4,he(this.firebaseDependencies,self.registration,null!==(n=null===(t=null==r?void 0:r.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==n?n:Y)]}})})},e.prototype.onNotificationClick=function(e){var t,n;return Object(s.b)(this,void 0,void 0,function(){var r,i,o,a,c;return Object(s.d)(this,function(s){switch(s.label){case 0:return(r=null===(n=null===(t=e.notification)||void 0===t?void 0:t.data)||void 0===n?void 0:n.FCM_MSG)?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),(i=function(e){var t,n,r;return(null!==(n=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==n?n:null===(r=e.notification)||void 0===r?void 0:r.click_action)||(we(e.data)?self.location.origin:null)}(r))?(o=new URL(i,self.location.href),a=new URL(self.location.origin),o.host!==a.host?[2]:[4,ke(o)]):[2]):[2];case 1:return(c=s.sent())?[3,4]:[4,self.clients.openWindow(i)];case 2:return c=s.sent(),[4,me(3e3)];case 3:return s.sent(),[3,6];case 4:return[4,c.focus()];case 5:c=s.sent(),s.label=6;case 6:return c?(r.messageType=Q.NOTIFICATION_CLICKED,r.isFirebaseMessaging=!0,[2,c.postMessage(r)]):[2]}})})},e}();function Oe(e){var t,n=Object(s.a)({},e.notification);return n.data=((t={}).FCM_MSG=e,t),n}function ke(e){return Object(s.b)(this,void 0,void 0,function(){var t,n,r,i,o,a,c;return Object(s.d)(this,function(u){switch(u.label){case 0:return[4,Ie()];case 1:t=u.sent();try{for(n=Object(s.g)(t),r=n.next();!r.done;r=n.next())if(i=r.value,o=new URL(i.url,self.location.href),e.host===o.host)return[2,i]}catch(l){a={error:l}}finally{try{r&&!r.done&&(c=n.return)&&c.call(n)}finally{if(a)throw a.error}}return[2,null]}})})}function Se(e,t){var n,r;t.isFirebaseMessaging=!0,t.messageType=Q.PUSH_RECEIVED;try{for(var i=Object(s.g)(e),o=i.next();!o.done;o=i.next())o.value.postMessage(t)}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Ie(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function _e(e){var t,n=e.actions,r=Notification.maxActions;return n&&r&&n.length>r&&console.warn("This browser only supports "+r+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(t=e.title)&&void 0!==t?t:"",e)}var Ce=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(e){return t.messageEventListener(e)})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app}
1,enumerable:!1,configurable:!0}),e.prototype.messageEventListener=function(e){return Object(s.b)(this,void 0,void 0,function(){var t,n;return Object(s.d)(this,function(r){switch(r.label){case 0:return(t=e.data).isFirebaseMessaging?(this.onMessageCallback&&t.messageType===Q.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback(function(e){return delete e.messageType,delete e.isFirebaseMessaging,e}(Object.assign({},t))):this.onMessageCallback.next(Object.assign({},t))),we(n=t.data)&&"1"===n["google.c.a.e"]?[4,this.logEvent(t.messageType,n)]:[3,2]):[2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.getVapidKey=function(){return this.vapidKey},e.prototype.getSwReg=function(){return this.swRegistration},e.prototype.getToken=function(e){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(t){switch(t.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:t.sent(),t.label=2;case 2:if("granted"!==Notification.permission)throw J.create("permission-blocked");return[4,this.updateVapidKey(null==e?void 0:e.vapidKey)];case 3:return t.sent(),[4,this.updateSwReg(null==e?void 0:e.serviceWorkerRegistration)];case 4:return t.sent(),[2,he(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},e.prototype.updateVapidKey=function(e){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(t){return e?this.vapidKey=e:this.vapidKey||(this.vapidKey=Y),[2]})})},e.prototype.updateSwReg=function(e){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(t){switch(t.label){case 0:return e||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:t.sent(),t.label=2;case 2:if(!e&&this.swRegistration)return[2];if(!(e instanceof ServiceWorkerRegistration))throw J.create("invalid-sw-registration");return this.swRegistration=e,[2]}})})},e.prototype.registerDefaultSw=function(){return Object(s.b)(this,void 0,void 0,function(){var e,t;return Object(s.d)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return e.swRegistration=n.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw t=n.sent(),J.create("failed-service-worker-registration",{browserErrorMessage:t.message});case 3:return[2]}})})},e.prototype.deleteToken=function(){return Object(s.b)(this,void 0,void 0,function(){return Object(s.d)(this,function(e){switch(e.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:e.sent(),e.label=2;case 2:return[2,be(this.firebaseDependencies,this.swRegistration)]}})})},e.prototype.requestPermission=function(){return Object(s.b)(this,void 0,void 0,function(){var e;return Object(s.d)(this,function(t){switch(t.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw J.create("denied"===e?"permission-blocked":"permission-default")}})})},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw J.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw J.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw J.create("invalid-sw-registration");if(this.swRegistration)throw J.create("use-sw-after-get-token");this.swRegistration=e},e.prototype.onMessage=function(e){var t=this;return this.onMessageCallback=e,function(){t.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw J.create("only-available-in-sw")},e.prototype.onBackgroundMessage=function(){throw J.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.logEvent=function(e,t){return Object(s.b)(this,void 0,void 0,function(){var n;return Object(s.d)(this,function(r){switch(r.label){case 0:return n=function(e){switch(e){case Q.NOTIFICATION_CLICKED:return"notification_open";case Q.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(e),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r.sent().logEvent(n,{message_id:t["google.c.a.c_id"],message_name:t["google.c.a.c_l"],message_time:t["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},e}();function Te(e){return J.create("missing-app-config-values",{valueName:e})}var De={isSupported:Pe};function Pe(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSub
1scription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}i.a.INTERNAL.registerComponent(new o.a("messaging",function(e){var t=e.getProvider("app").getImmediate(),n={app:t,appConfig:function(e){var t,n;if(!e||!e.options)throw Te("App Configuration Object");if(!e.name)throw Te("App Name");var r=e.options;try{for(var i=Object(s.g)(["projectId","apiKey","appId","messagingSenderId"]),o=i.next();!o.done;o=i.next()){var a=o.value;if(!r[a])throw Te(a)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return{appName:e.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}(t),installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!Pe())throw J.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new je(n):new Ce(n)},"PUBLIC").setServiceProps(De))},nbvr:function(e,t,n){!function(e){"use strict";function t(e){return new Promise(function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function n(e,n,r){var i,o=new Promise(function(o,s){t(i=e[n].apply(e,r)).then(o,s)});return o.request=i,o}function r(e,t,n){n.forEach(function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})})}function i(e,t,r,i){i.forEach(function(i){i in r.prototype&&(e.prototype[i]=function(){return n(this[t],i,arguments)})})}function o(e,t,n,r){r.forEach(function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})})}function s(e,t,r,i){i.forEach(function(i){i in r.prototype&&(e.prototype[i]=function(){return(e=n(this[t],i,arguments)).then(function(t){if(t)return new c(t,e.request)});var e})})}function a(e){this._index=e}function c(e,t){this._cursor=e,this._request=t}function u(e){this._store=e}function l(e){this._tx=e,this.complete=new Promise(function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}})}function f(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new l(n)}function d(e){this._db=e}r(a,"_index",["name","keyPath","multiEntry","unique"]),i(a,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),s(a,"_index",IDBIndex,["openCursor","o
1penKeyCursor"]),r(c,"_cursor",["direction","key","primaryKey","value"]),i(c,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(e){e in IDBCursor.prototype&&(c.prototype[e]=function(){var n=this,r=arguments;return Promise.resolve().then(function(){return n._cursor[e].apply(n._cursor,r),t(n._request).then(function(e){if(e)return new c(e,n._request)})})})}),u.prototype.createIndex=function(){return new a(this._store.createIndex.apply(this._store,arguments))},u.prototype.index=function(){return new a(this._store.index.apply(this._store,arguments))},r(u,"_store",["name","keyPath","indexNames","autoIncrement"]),i(u,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),s(u,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),o(u,"_store",IDBObjectStore,["deleteIndex"]),l.prototype.objectStore=function(){return new u(this._tx.objectStore.apply(this._tx,arguments))},r(l,"_tx",["objectStoreNames","mode"]),o(l,"_tx",IDBTransaction,["abort"]),f.prototype.createObjectStore=function(){return new u(this._db.createObjectStore.apply(this._db,arguments))},r(f,"_db",["name","version","objectStoreNames"]),o(f,"_db",IDBDatabase,["deleteObjectStore","close"]),d.prototype.transaction=function(){return new l(this._db.transaction.apply(this._db,arguments))},r(d,"_db",["name","version","objectStoreNames"]),o(d,"_db",IDBDatabase,["close"]),["openCursor","o
1penKeyCursor"].forEach(function(e){[u,a].forEach(function(t){e in t.prototype&&(t.prototype[e.replace("open","iterate")]=function(){var t=Array.prototype.slice.call(arguments),n=t[t.length-1],r=this._store||this._index,i=r[e].apply(r,t.slice(0,-1));i.onsuccess=function(){n(i.result)}})})}),[a,u].forEach(function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise(function(i){n.iterateCursor(e,function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():i(r)):i(r)})})})}),e.openDb=function(e,t,r){var i=n(indexedDB,"open",[e,t]),o=i.request;return o&&(o.onupgradeneeded=function(e){r&&r(new f(o.result,e.oldVersion,o.transaction))}),i.then(function(e){return new d(e)})},e.deleteDb=function(e){return n(indexedDB,"deleteDatabase",[e])},Object.defineProperty(e,"__esModule",{value:!0})}(t)}}]);
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.