PageSourceSearch

https://studio--flowtrack-6eh9w.us-central1.hosted.app/_next/static/chunks/2244-aa644f3302d934f8.js

js studio--flowtrack-6eh9w.us-central1.hosted.app collected 2026-10-03 05:33:49 UTC 41,428 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2244],{738:function(e,t,n){n.d(t,{C6:function(){return r.C6},Mq:function(){return r.Mq},ZF:function(){return r.ZF}});var r=n(99697);(0,r.KN)("firebase","11.10.0","app")},43301:function(e,t,n){n.d(t,{v0:function(){return r.p}});var r=n(25052);n(99697),n(60338),n(18667),n(78965)},4818:function(e,t,n){n.d(t,{KL:function(){return eD},LP:function(){return eP},Gb:function(){return eU},ps:function(){return ex}});var r,i,o,a,s=n(99697),l=n(78965),u=n(60338),c=n(21542);let d="@firebase/installations",h="0.6.18",p=`w:${h}`,f="FIS_v2",g=new u.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function w(e){return e instanceof u.ZR&&e.code.includes("request-failed")}function m({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function _(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function b(e,t){let n=(await t.json()).error;return g.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function y({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function v(e){let t=await e();return t.status>=500&&t.status<600?e():t}async function k({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let r=m(e),i=y(e),o=t.getImmediate({optional:!0});if(o){let e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let a={method:"POST",headers:i,body:JSON.stringify({fid:n,authVersion:f,appId:e.appId,sdkVersion:p})},s=await v(()=>fetch(r,a));if(s.ok){let e=await s.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:_(e.authToken)}}throw await b("Create Installation",s)}function T(e){return new Promise(t=>{setTimeout(t,e)})}let I=/^[cdef][\w-]{21}$/;function R(e){return`${e.appName}!${e.appId}`}let E=new Map;function A(e,t){let n=R(e);C(n,t),function(e,t){let n=(!O&&"BroadcastChannel"in self&&((O=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{C(e.data.key,e.data.fid)}),O);n&&n.postMessage({key:e,fid:t}),0===E.size&&O&&(O.close(),O=null)}(n,t)}function C(e,t){let n=E.get(e);if(n)for(let e of n)e(t)}let O=null,S="firebase-installations-store",N=null;function U(){return N||(N=(0,c.X3)("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(S)}})),N}async function D(e,t){let n=R(e),r=(await U()).transaction(S,"readwrite"),i=r.objectStore(S),o=await i.get(n);return await i.put(t,n),await r.done,o&&o.fid===t.fid||A(e,t.fid),t}async function P(e){let t=R(e),n=(await U()).transaction(S,"readwrite");await n.objectStore(S).delete(t),await n.done}async function x(e,t){let n=R(e),r=(await U()).transaction(S,"readwrite"),i=r.objectStore(S),o=await i.get(n),a=t(o);return void 0===a?await i.delete(n):await i.put(a,n),await r.done,a&&(!o||o.fid!==a.fid)&&A(e,a.fid),a}async function L(e){let t;let n=await x(e.appConfig,n=>{let r=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(g.create("app-offline"))};let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=M(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:j(e)}:{installationEntry:t}}(e,B(n||{fid:function(){try{let e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;let t=btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22);return I.test(t)?t:""}catch(e){return""}}(),registrationStatus:0}));return t=r.registrationPromise,r.installationEntry});return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function M(e,t){try{let n=await k(e,t);return D(e.appConfig,n)}catch(n){throw w(n)&&409===n.customData.serverCode?await P(e.appConfig):await D(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function j(e){let t=await K(e.appConfig);for(;1===t.registrationStatus;)await T(100),t=await K(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:n}=await L(e);return n||t}return t}function K(e){return x(e,e=>{if(!e)throw g.create("installation-not-found");return B(e)})}function B(e){return 1===e.registrationStatus&&e.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function F({appConfig:e,heartbeatServiceProvider:t},n){let r=function(e,{fid:t}){return`${m(e)}/${t}/authTokens:generate`}(e,n),i=function(e,{refreshToken:t}){let n=y(e);return n.append("Authorization",`${f} ${t}`),n}(e,n),o=t.getImmediate({optional:!0});if(o){let e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let a={method:"POST",headers:i,body:JSON.stringify({installation:{sdkVersion:p,appId:e.appId}})},s=await v(()=>fetch(r,a));if(s.ok)return _(await s.json());throw await b("Generate Auth Token",s)}async function q(e,t=!1){let n;let r=await x(e.appConfig,r=>{var i;if(!W(r))throw g.create("not-registered");let o=r.authToken;if(!t&&2===(i=o).requestStatus&&!function(e){let t=Date.now();
1return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(i))return r;if(1===o.requestStatus)return n=$(e,t),r;{if(!navigator.onLine)throw g.create("app-offline");let t=function(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=V(e,t),t}});return n?await n:r.authToken}async function $(e,t){let n=await H(e.appConfig);for(;1===n.authToken.requestStatus;)await T(100),n=await H(e.appConfig);let r=n.authToken;return 0===r.requestStatus?q(e,t):r}function H(e){return x(e,e=>{var t;if(!W(e))throw g.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function V(e,t){try{let n=await F(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await D(e.appConfig,r),n}catch(n){if(w(n)&&(401===n.customData.serverCode||404===n.customData.serverCode))await P(e.appConfig);else{let n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await D(e.appConfig,n)}throw n}}function W(e){return void 0!==e&&2===e.registrationStatus}async function X(e){let{installationEntry:t,registrationPromise:n}=await L(e);return n?n.catch(console.error):q(e).catch(console.error),t.fid}async function z(e,t=!1){return await G(e),(await q(e,t)).token}async function G(e){let{registrationPromise:t}=await L(e);t&&await t}function Z(e){return g.create("missing-app-config-values",{valueName:e})}let J="installations";(0,s.Xd)(new l.wA(J,e=>{let t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw Z("App Configuration");if(!e.name)throw Z("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw Z(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),r=(0,s.qX)(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,s.Xd)(new l.wA("installations-internal",e=>{let t=e.getProvider("app").getImmediate(),n=(0,s.qX)(t,J).getImmediate();return{getId:()=>X(n),getToken:e=>z(n,e)}},"PRIVATE")),(0,s.KN)(d,h),(0,s.KN)(d,h,"esm2017");let Y="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Q="google.c.a.c_id";function ee(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}(r=o||(o={}))[r.DATA_MESSAGE=1]="DATA_MESSAGE",r[r.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION",(i=a||(a={})).PUSH_RECEIVED="push-received",i.NOTIFICATION_CLICKED="notification-clicked";let et="fcm_token_details_db",en="fcm_token_object_Store";async function er(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(e=>e.name).includes(et))return null;let t=null;return(await (0,c.X3)(et,5,{upgrade:async(n,r,i,o)=>{var a;if(r<2||!n.objectStoreNames.contains(en))return;let s=o.objectStore(en),l=await s.index("fcmSenderId").get(e);if(await s.clear(),l){if(2===r){if(!l.auth||!l.p256dh||!l.endpoint)return;t={token:l.fcmToken,createTime:null!==(a=l.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:l.auth,p256dh:l.p256dh,endpoint:l.endpoint,swScope:l.swScope,vapidKey:"string"==typeof l.vapidKey?l.vapidKey:ee(l.vapidKey)}}}else 3===r?t={token:l.fcmToken,createTime:l.createTime,subscriptionOptions:{auth:ee(l.auth),p256dh:ee(l.p256dh),endpoint:l.endpoint,swScope:l.swScope,vapidKey:ee(l.vapidKey)}}:4===r&&(t={token:l.fcmToken,createTime:l.createTime,subscriptionOptions:{auth:ee(l.auth),p256dh:ee(l.p256dh),endpoint:l.endpoint,swScope:l.swScope,vapidKey:ee(l.vapidKey)}})}}})).close(),await (0,c.Lj)(et),await (0,c.Lj)("fcm_vapid_details_db"),await (0,c.Lj)("undefined"),!function(e){if(!e||!e.subscriptionOptions)return!1;let{subscriptionOptions:t}=e;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}(t)?null:t}let ei="firebase-messaging-store",eo=null;function ea(){return eo||(eo=(0,c.X3)("firebase-messaging-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(ei)}})),eo}async function es(e){let t=function({appConfig:e}){return e.appId}(e),n=await ea(),r=await n.transaction(ei).objectStore(ei).get(t);if(r)return r;{let t=await er(e.appConfig.senderId);if(t)return await el(e,t),t}}async function el(e,t){let n=function({appConfig:e}){return e.appId}(e),r=(await ea()).transaction(ei,"readwrite");return await r.objectStore(ei).put(t,n),await r.done,t}let eu=new u.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","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.","invali
1d-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","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."});async function ec(e,t){let n;let r={method:"POST",headers:await ef(e),body:JSON.stringify(eg(t))};try{let t=await fetch(ep(e.appConfig),r);n=await t.json()}catch(e){throw eu.create("token-subscribe-failed",{errorInfo:null==e?void 0:e.toString()})}if(n.error){let e=n.error.message;throw eu.create("token-subscribe-failed",{errorInfo:e})}if(!n.token)throw eu.create("token-subscribe-no-token");return n.token}async function ed(e,t){let n;let r={method:"PATCH",headers:await ef(e),body:JSON.stringify(eg(t.subscriptionOptions))};try{let i=await fetch(`${ep(e.appConfig)}/${t.token}`,r);n=await i.json()}catch(e){throw eu.create("token-update-failed",{errorInfo:null==e?void 0:e.toString()})}if(n.error){let e=n.error.message;throw eu.create("token-update-failed",{errorInfo:e})}if(!n.token)throw eu.create("token-update-no-token");return n.token}async function eh(e,t){let n=await ef(e);try{let r=await fetch(`${ep(e.appConfig)}/${t}`,{method:"DELETE",headers:n}),i=await r.json();if(i.error){let e=i.error.message;throw eu.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw eu.create("token-unsubscribe-failed",{errorInfo:null==e?void 0:e.toString()})}}function ep({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}async function ef({appConfig:e,installations:t}){let n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function eg({p256dh:e,auth:t,endpoint:n,vapidKey:r}){let i={web:{endpoint:n,auth:t,p256dh:e}};return r!==Y&&(i.web.applicationPubKey=r),i}async function ew(e){let t=await eb(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:ee(t.getKey("auth")),p256dh:ee(t.getKey("p256dh"))},r=await es(e.firebaseDependencies);if(!r)return e_(e.firebaseDependencies,n);if(function(e,t){let n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&r&&i&&o}(r.subscriptionOptions,n))return Date.now()>=r.createTime+6048e5?em(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await eh(e.firebaseDependencies,r.token)}catch(e){console.warn(e)}return e_(e.firebaseDependencies,n)}async function em(e,t){try{let n=await ed(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await el(e.firebaseDependencies,r),n}catch(e){throw e}}async function e_(e,t){let n={token:await ec(e,t),createTime:Date.now(),subscriptionOptions:t};return await el(e,n),n.token}async function eb(e,t){return await e.pushManager.getSubscription()||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),n=atob((e+t).replace(/\-/g,"+").replace(/_/g,"/")),r=new Uint8Array(n.length);for(let e=0;e<n.length;++e)r[e]=n.charCodeAt(e);return r}(t)})}function ey(e){let t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,t){if(!t.notification)return;e.notification={};let n=t.notification.title;n&&(e.notification.title=n);let r=t.notification.body;r&&(e.notification.body=r);let i=t.notification.image;i&&(e.notification.image=i);let o=t.notification.icon;o&&(e.notification.icon=o)}(t,e),e.data&&(t.data=e.data),function(e,t){var n,r,i,o,a;if(!t.fcmOptions&&!(null===(n=t.notification)||void 0===n?void 0:n.click_action))return;e.fcmOptions={};let s=null!==(i=null===(r=t.fcmOptions)||void 0===r?void 0:r.link)&&void 0!==i?i:null===(o=t.notification)||void 0===o?void 0:o.click_action;s&&(e.fcmOptions.link=s);let l=null===(a=t.fcmOptions)||void 0===a?void 0:a.analytics_label;l&&(e.fcmOptions.analyticsLabel=l)}(t,e),t}function ev(e){return eu.create("missing-app-config-values",{valueName:e})}!function(e,t){let n=[];for(let r=0;r<e.length;r++)n.push(e.charAt(r)),r<t.length&&n.push(t.charAt(r));n.join("")}("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class ek{constructor(e,t,n){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroun
1dMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;let r=function(e){if(!e||!e.options)throw ev("App Configuration Object");if(!e.name)throw ev("App Name");let{options:t}=e;for(let e of["projectId","apiKey","appId","messagingSenderId"])if(!t[e])throw ev(e);return{appName:e.name,projectId:t.projectId,apiKey:t.apiKey,appId:t.appId,senderId:t.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:r,installations:t,analyticsProvider:n}}_delete(){return Promise.resolve()}}async function eT(e){try{e.swRegistration=await navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}),e.swRegistration.update().catch(()=>{}),await eI(e.swRegistration)}catch(e){throw eu.create("failed-service-worker-registration",{browserErrorMessage:null==e?void 0:e.message})}}async function eI(e){return new Promise((t,n)=>{let r=setTimeout(()=>n(Error("Service worker not registered after 10000 ms")),1e4),i=e.installing||e.waiting;e.active?(clearTimeout(r),t()):i?i.onstatechange=e=>{var n;(null===(n=e.target)||void 0===n?void 0:n.state)==="activated"&&(i.onstatechange=null,clearTimeout(r),t())}:(clearTimeout(r),n(Error("No incoming service worker found.")))})}async function eR(e,t){if(t||e.swRegistration||await eT(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw eu.create("invalid-sw-registration");e.swRegistration=t}}async function eE(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=Y)}async function eA(e,t){if(!navigator)throw eu.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw eu.create("permission-blocked");return await eE(e,null==t?void 0:t.vapidKey),await eR(e,null==t?void 0:t.serviceWorkerRegistration),ew(e)}async function eC(e,t,n){let r=function(e){switch(e){case a.NOTIFICATION_CLICKED:return"notification_open";case a.PUSH_RECEIVED:return"notification_foreground";default:throw Error()}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[Q],message_name:n["google.c.a.c_l"],message_time:n["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})}async function eO(e,t){let n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===a.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(ey(n)):e.onMessageHandler.next(ey(n)));let r=n.data;"object"==typeof r&&r&&Q in r&&"1"===r["google.c.a.e"]&&await eC(e,n.messageType,r)}let eS="@firebase/messaging",eN="0.12.22";async function eU(){try{await (0,u.eu)()}catch(e){return!1}return"undefined"!=typeof window&&(0,u.hl)()&&(0,u.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function eD(e=(0,s.Mq)()){return eU().then(e=>{if(!e)throw eu.create("unsupported-browser")},e=>{throw eu.create("indexed-db-unsupported")}),(0,s.qX)((0,u.m9)(e),"messaging").getImmediate()}async function eP(e,t){return eA(e=(0,u.m9)(e),t)}function ex(e,t){return function(e,t){if(!navigator)throw eu.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}(e=(0,u.m9)(e),t)}(0,s.Xd)(new l.wA("messaging",e=>{let t=new ek(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",e=>eO(t,e)),t},"PUBLIC")),(0,s.Xd)(new l.wA("messaging-internal",e=>{let t=e.getProvider("messaging").getImmediate();return{getToken:e=>eA(t,e)}},"PRIVATE")),(0,s.KN)(eS,eN),(0,s.KN)(eS,eN,"esm2017")},60062:function(e,t,n){n.d(t,{oq:function(){return ea},Jt:function(){return eo},sd:function(){return ei},cF:function(){return el},iH:function(){return es},KV:function(){return er}});var r,i,o,a,s=n(99697),l=n(60338),u=n(78965);let c="firebasestorage.googleapis.com",d="storageBucket";class h extends l.ZR{constructor(e,t,n=0){super(p(e),`Firebase Storage: ${t} (${p(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,h.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return p(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}
2${this.customData.serverResponse}`:this.message=this._baseMessage}}function p(e){return"storage/"+e}function f(){return new h(o.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function g(e){return new h(o.INVALID_ARGUMENT,e)}function w(){return new h(o.APP_DELETED,"The Firebase app was deleted.")}function m(e,t){return new h(o.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function _(e){throw new h(o.INTERNAL_ERROR,"Internal error: "+e)}(r=o||(o={})).UNKNOWN="unknown",r.OBJECT_NOT_FOUND="object-not-found",r.BUCKET_NOT_FOUND="bucket-not-found",r.PROJECT_NOT_FOUND="project-not-found",r.QUOTA_EXCEEDED="quota-exceeded",r.UNAUTHENTICATED="unauthenticated",r.UNAUTHORIZED="unauthorized",r.UNAUTHORIZED_APP="unauthorized-app",r.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",r.INVALID_CHECKSUM="invalid-checksum",r.CANCELED="canceled",r.INVALID_EVENT_NAME="invalid-event-name",r.INVALID_URL="invalid-url",r.INVALID_DEFAULT_BUCKET="invalid-default-bucket",r.NO_DEFAULT_BUCKET="no-default-bucket",r.CANNOT_SLICE_BLOB="cannot-slice-blob",r.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",r.NO_DOWNLOAD_URL="no-download-url",r.INVALID_ARGUMENT="invalid-argument",r.INVALID_ARGUMENT_COUNT="invalid-argument-count",r.APP_DELETED="app-deleted",r.INVALID_ROOT_OPERATION="invalid-root-operation",r.INVALID_FORMAT="invalid-format",r.INTERNAL_ERROR="internal-error",r.UNSUPPORTED_ENVIRONMENT="unsupported-environment";class b{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){let e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=b.makeFromUrl(e,t)}catch(t){return new b(e,"")}if(""===n.path)return n;throw new h(o.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}static makeFromUrl(e,t){let n=null,r="([A-Za-z0-9.\\-_]+)",i=RegExp("^gs://"+r+"(
2/(.*))?$","i");function a(e){e.path_=decodeURIComponent(e.path)}let s=t.replace(/[.]/g,"\\."),l=[{regex:i,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:RegExp(`^https?://${s}/v[A-Za-z0-9_]+/b/${r}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:a},{regex:RegExp(`^https?://${t===c?"(?:storage.googleapis.com|storage.cloud.google.com)":t}/${r}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:a}];for(let t=0;t<l.length;t++){let r=l[t],i=r.regex.exec(e);if(i){let e=i[r.indices.bucket],t=i[r.indices.path];t||(t=""),n=new b(e,t),r.postModify(n);break}}if(null==n)throw new h(o.INVALID_URL,"Invalid URL '"+e+"'.");return n}}class y{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}function v(e){return"string"==typeof e||e instanceof String}function k(e){return T()&&e instanceof Blob}function T(){return"undefined"!=typeof Blob}function I(e,t,n,r){if(r<t)throw g(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw g(`Invalid value for '${e}'. Expected ${n} or less.`)}function R(e,t,n){let r=t;return null==n&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function E(e){let t=encodeURIComponent,n="?";for(let r in e)e.hasOwnProperty(r)&&(n=n+(t(r)+"=")+t(e[r])+"&");return n.slice(0,-1)}(i=a||(a={}))[i.NO_ERROR=0]="NO_ERROR",i[i.NETWORK_ERROR=1]="NETWORK_ERROR",i[i.ABORT=2]="ABORT";class A{constructor(e,t,n,r,i,o,a,s,l,u,c,d=!0,h=!1){this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=a,this.errorCallback_=s,this.timeout_=l,this.progressCallback_=u,this.connectionFactory_=c,this.retry=d,this.isUsingEmulator=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){let e=(e,t)=>{let n=this.resolve_,r=this.reject_,i=t.connection;if(t.wasSuccessCode)try{let e=this.callback_(i,i.getResponse());void 0!==e?n(e):n()}catch(e){r(e)}else if(null!==i){let e=f();e.serverResponse=i.getErrorText(),r(this.errorCallback_?this.errorCallback_(i,e):e)}else r(t.canceled?this.appDelete_?w():new h(o.CANCELED,"User canceled the upload/download."):new h(o.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again."))};this.canceled_?e(!1,new C(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,i=null,o=null,a=!1,s=0,l=!1;function u(...e){l||(l=!0,t.apply(null,e))}function c(t){i=setTimeout(()=>{i=null,e(h,2===s)},t)}function d(){o&&clearTimeout(o)}function h(e,...t){let n;if(l){d();return}if(e||2===s||a){d(),u.call(null,e,...t);return}r<64&&(r*=2),1===s?(s=2,n=0):n=(r+Math.random())*1e3,c(n)}let p=!1;function f(e){!p&&(p=!0,d(),!l&&(null!==i?(e||(s=2),clearTimeout(i),c(0)):e||(s=1)))}return c(0),o=setTimeout(()=>{a=!0,f(!0)},n),f}((e,t)=>{if(t){e(!1,new C(!1,null,!0));return}let n=this.connectionFactory_();this.pendingConnection_=n;let r=e=>{let t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;let t=n.getErrorCode()===a.NO_ERROR,i=n.getStatus();if(!t||function(e,t){let n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return n||r||i}(i,this.additionalRetryCodes_)&&this.retry){e(!1,new C(!1,null,n.getErrorCode()===a.ABORT));return}e(!0,new C(-1!==this.successCodes_.indexOf(i),n))})},e,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class C{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function O(...e){let t="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0;if(void 0!==t){let n=new t;for(let t=0;t<e.length;t++)n.append(e[t]);return n.getBlob()}if(T())return new Blob(e);throw new h(o.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to supp
2ort creating Blobs")}let S={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class N{constructor(e,t){this.data=e,this.contentType=t||null}}function U(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<=127?t.push(r):r<=2047?t.push(192|r>>6,128|63&r):(64512&r)==55296?n<e.length-1&&(64512&e.charCodeAt(n+1))==56320?(r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)):t.push(239,191,189):(64512&r)==56320?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function D(e,t){let n;switch(e){case S.BASE64:{let n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw m(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break}case S.BASE64URL:{let n=-1!==t.indexOf("+"),r=-1!==t.indexOf("/");if(n||r)throw m(e,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}}try{n=function(e){if("undefined"==typeof atob)throw new h(o.UNSUPPORTED_ENVIRONMENT,"base-64 is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.");return atob(e)}(t)}catch(t){if(t.message.includes("polyfill"))throw t;throw m(e,"Invalid character found")}let r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}class P{constructor(e){var t;this.base64=!1,this.contentType=null;let n=e.match(/^data:([^,]+)?,/);if(null===n)throw m(S.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");let r=n[1]||null;null!=r&&(this.base64=(t=";base64",r.length>=t.length&&r.substring(r.length-t.length)===t),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=e.substring(e.indexOf(",")+1)}}class x{constructor(e,t){let n=0,r="";k(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}size(){return this.size_}type(){return this.type_}slice(e,t){if(!k(this.data_))return new x(new Uint8Array(this.data_.buffer,e,t-e),!0);{var n;let r=(n=this.data_).webkitSlice?n.webkitSlice(e,t):n.mozSlice?n.mozSlice(e,t):n.slice?n.slice(e,t):null;return null===r?null:new x(r)}}static getBlob(...e){if(T()){let t=e.map(e=>e instanceof x?e.data_:e);return new x(O.apply(null,t))}{let t=e.map(e=>v(e)?function(e,t){switch(e){case S.RAW:return new N(U(t));case S.BASE64:case S.BASE64URL:return new N(D(e,t));case S.DATA_URL:return new N(function(e){let t=new P(e);return t.base64?D(S.BASE64,t.rest):function(e){let t;try{t=decodeURIComponent(e)}catch(e){throw m(S.DATA_URL,"Malformed data URL.")}return U(t)}(t.rest)}(t),new P(t).contentType)}throw f()}(S.RAW,e).data:e.data_),n=0;t.forEach(e=>{n+=e.byteLength});let r=new Uint8Array(n),i=0;return t.forEach(e=>{for(let t=0;t<e.length;t++)r[i++]=e[t]}),new x(r,!0)}}uploadData(){return this.data_}}function L(e){var t;let n;try{n=JSON.parse(e)}catch(e){return null}return"object"!=typeof(t=n)||Array.isArray(t)?null:n}function M(e){let t=e.lastIndexOf("/",e.length-2);return -1===t?e:e.slice(t+1)}function j(e,t){return t}class K{constructor(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||j}}let B=null;function F(){if(B)return B;let e=[];e.push(new K("bucket")),e.push(new K("generation")),e.push(new K("metageneration")),e.push(new K("name","fullPath",!0));let t=new K("name");t.xform=function(e,t){return!v(t)||t.length<2?t:M(t)},e.push(t);let n=new K("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new K("timeCreated")),e.push(new K("updated")),e.push(new K("md5Hash",null,!0)),e.push(new K("cacheControl",null,!0)),e.push(new K("contentDisposition",null,!0)),e.push(new K("contentEncoding",null,!0)),e.push(new K("contentLanguage",null,!0)),e.push(new K("contentType",null,!0)),e.push(new K("metadata","customMetadata",!0)),B=e}function q(e,t,n){let r=L(t);return null===r?null:function(e,t,n){let r={};r.type="file";let i=n.length;for(let e=0;e<i;e++){let i=n[e];r[i.local]=i.xform(r,t[i.server])}return Object.defineProperty(r,"ref",{get:function(){let t=new b(r.bucket,r.fullPath);return e._makeStorageReference(t)}}),r}(e,r,n)}class ${constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParam
2s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function H(e){if(!e)throw f()}function V(e,t){return function(n,r){let i=q(e,r,t);return H(null!==i),i}}function W(e){return function(t,n){var r,i;let a;return 401===t.getStatus()?a=t.getErrorText().includes("Firebase App Check token is invalid")?new h(o.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new h(o.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(r=e.bucket,a=new h(o.QUOTA_EXCEEDED,"Quota for bucket '"+r+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,a=new h(o.UNAUTHORIZED,"User does not have permission to access '"+i+"'.")):a=n,a.status=t.getStatus(),a.serverResponse=n.serverResponse,a}}function X(e){let t=W(e);return function(n,r){let i=t(n,r);if(404===n.getStatus()){var a;a=e.path,i=new h(o.OBJECT_NOT_FOUND,"Object '"+a+"' does not exist.")}return i.serverResponse=r.serverResponse,i}}class z{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=a.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=a.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=a.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,n,r,i){if(this.sent_)throw _("cannot .send() more than once");if((0,l.Xx)(e)&&n&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==i)for(let e in i)i.hasOwnProperty(e)&&this.xhr_.setRequestHeader(e,i[e].toString());return void 0!==r?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw _("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw _("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return -1}}getResponse(){if(!this.sent_)throw _("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw _("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class G extends z{initXhr(){this.xhr_.responseType="text"}}function Z(){return new G}class J{constructor(e,t){this._service=e,t instanceof b?this._location=t:this._location=b.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new J(e,t)}get root(){let e=new b(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return M(this._location.path)}get storage(){return this._service}get parent(){let e=function(e){if(0===e.length)return null;let t=e.lastIndexOf("/");return -1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;let t=new b(this._location.bucket,e);return new J(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw new h(o.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}}function Y(e,t){let n=null==t?void 0:t[d];return null==n?null:b.makeFromBucketSpec(n,e)}class Q{constructor(e,t,n,r,i,o=!1){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=i,this._isUsingEmulator=o,this._bucket=null,this._host=c,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,null!=r?this._bucket=b.makeFromBucketSpec(r,this._host):this._bucket=Y(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=b.makeFromBucketSpec(this._url,e):this._bucket=Y(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){I("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){I("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;let e=this._authProvider.getImmediate({optional:!0});if(e){let t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if((0,s.rh)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=this._appCheckProvider.getImmediate({optional:!0});
2return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new J(this,e)}_makeRequest(e,t,n,r,i=!0){if(this._deleted)return new y(w());{let o=function(e,t,n,r,i,o,a=!0,s=!1){let l=E(e.urlParams),u=e.url+l,c=Object.assign({},e.headers);return t&&(c["X-Firebase-GMPID"]=t),null!==n&&n.length>0&&(c.Authorization="Firebase "+n),c["X-Firebase-Storage-Version"]="webjs/"+(null!=o?o:"AppManager"),null!==r&&(c["X-Firebase-AppCheck"]=r),new A(u,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,a,s)}(e,this._appId,n,r,t,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}async makeRequestWithTokens(e,t){let[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}let ee="@firebase/storage",et="0.13.14",en="storage";function er(e,t,n){return function(e,t,n){e._throwIfRoot("uploadBytes");let r=function(e,t,n,r,i){let a=t.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"},l=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();s["Content-Type"]="multipart/related; boundary="+l;let u=function(e,t,n){let r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),!r.contentType&&(r.contentType=t&&t.type()||"application/octet-stream"),r}(t,r,i),c="--"+l+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+function(e,t){let n={},r=t.length;for(let i=0;i<r;i++){let r=t[i];r.writable&&(n[r.server]=e[r.local])}return JSON.stringify(n)}(u,n)+"\r\n--"+l+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",d=x.getBlob(c,r,"\r\n--"+l+"--");if(null===d)throw new h(o.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.");let p={name:u.fullPath},f=R(a,e.host,e._protocol),g=e.maxUploadRetryTime,w=new $(f,"POST",V(e,n),g);return w.urlParams=p,w.headers=s,w.body=d.uploadData(),w.errorHandler=W(t),w}(e.storage,e._location,F(),new x(t,!0),n);return e.storage.makeRequestWithTokens(r,Z).then(t=>({metadata:t,ref:e}))}(e=(0,l.m9)(e),t,n)}function ei(e){return function(e){e._throwIfRoot("getMetadata");let t=function(e,t,n){let r=R(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,o=new $(r,"GET",V(e,n),i);return o.errorHandler=X(t),o}(e.storage,e._location,F());return e.storage.makeRequestWithTokens(t,Z)}(e=(0,l.m9)(e))}function eo(e){return function(e){e._throwIfRoot("getDownloadURL");let t=function(e,t,n){let r=new $(R(t.fullServerUrl(),e.host,e._protocol),"GET",function(t,r){let i=q(e,r,n);return H(null!==i),function(e,t,n,r){let i=L(t);if(null===i||!v(i.downloadTokens))return null;let o=i.downloadTokens;if(0===o.length)return null;let a=encodeURIComponent;return o.split(",").map(t=>{let i=e.bucket,o=e.fullPath;return R("/b/"+a(i)+"/o/"+a(o),n,r)+E({alt:"media",token:t})})[0]}(i,r,e.host,e._protocol)},e.maxOperationRetryTime);return r.errorHandler=X(t),r}(e.storage,e._location,F());return e.storage.makeRequestWithTokens(t,Z).then(e=>{if(null===e)throw new h(o.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})}(e=(0,l.m9)(e))}function ea(e){return function(e){e._throwIfRoot("deleteObject");let t=function(e,t){let n=new $(R(t.fullServerUrl(),e.host,e._protocol),"DELETE",function(e,t){},e.maxOperationRetryTime);return n.successCodes=[200,204],n.errorHandler=X(t),n}(e.storage,e._location);return e.storage.makeRequestWithTokens(t,Z)}(e=(0,l.m9)(e))}function es(e,t){return function(e,t){if(!(t&&/^[A-Za-z]+:\/\//.test(t)))return function e(t,n){if(t instanceof Q){if(null==t._bucket)throw new h(o.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+d+"' property when initializing the app?");let r=new J(t,t._bucket);return null!=n?e(r,n):r}return void 0!==n?function(e,t){let n=function(e,t){let n=t.split("/").filter(e=>e.length>0).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new b(e._location.bucket,n);
2return new J(e.storage,r)}(t,n):t}(e,t);if(e instanceof Q)return new J(e,t);throw g("To use ref(service, url), the first argument must be a Storage instance.")}(e=(0,l.m9)(e),t)}function el(e=(0,s.Mq)(),t){e=(0,l.m9)(e);let n=(0,s.qX)(e,en).getImmediate({identifier:t}),r=(0,l.P0)("storage");return r&&function(e,t,n,r={}){!function(e,t,n,r={}){e.host=`${t}:${n}`;let i=(0,l.Xx)(t);i&&((0,l.Uo)(`https://${e.host}/b`),(0,l.dp)("Storage",!0)),e._isUsingEmulator=!0,e._protocol=i?"https":"http";let{mockUserToken:o}=r;o&&(e._overrideAuthToken="string"==typeof o?o:(0,l.Sg)(o,e.app.options.projectId))}(e,t,n,r)}(n,...r),n}(0,s.Xd)(new u.wA(en,function(e,{instanceIdentifier:t}){return new Q(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("app-check-internal"),t,s.Jn)},"PUBLIC").setMultipleInstances(!0)),(0,s.KN)(ee,et,""),(0,s.KN)(ee,et,"esm2017")}}]);

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.