PageSourceSearch

https://app.datamorf.io/chunk-ZKKZ3TQV.js

js datamorf.io collected 2026-10-08 03:18:32 UTC 42,748 bytes, 24 lines download raw bytes

vendor: 1,681 bytes, line 1
1import{B as ve,C as Oe,D as xe,E as Ue,F as Ne,G as H,H as De,I as Pe,J as Be,K as Me,L as x,M as Le,N as Fe,Q as $e,R as ze}from"./chunk-JGCQDCDJ.js";import{Da as j,fa as Se,ia as ke,kb as Ie,ta as Ce}from"./chunk-ZMXUQ3OG.js";import{k as O}from"./chunk-KZY52SKS.js";var je=()=>{};var We=function(e){let t=[],n=0;for(let s=0;s<e.length;s++){let r=e.charCodeAt(s);r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=r&63|128):(r&64512)===55296&&s+1<e.length&&(e.charCodeAt(s+1)&64512)===56320?(r=65536+((r&1023)<<10)+(e.charCodeAt(++s)&1023),t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=r&63|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=r&63|128)}return t},Ot=function(e){let t=[],n=0,s=0;for(;n<e.length;){let r=e[n++];if(r<128)t[s++]=String.fromCharCode(r);else if(r>191&&r<224){let i=e[n++];t[s++]=String.fromCharCode((r&31)<<6|i&63)}else if(r>239&&r<365){let i=e[n++],o=e[n++],c=e[n++],a=((r&7)<<18|(i&63)<<12|(o&63)<<6|c&63)-65536;t[s++]=String.fromCharCode(55296+(a>>10)),t[s++]=String.fromCharCode(56320+(a&1023))}else{let i=e[n++],o=e[n++];t[s++]=String.fromCharCode((r&15)<<12|(i&63)<<6|o&63)}}return t.join("")},Ve={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let r=0;r<e.length;
vendor: 4,464 bytes, line 1
1r+=3){let i=e[r],o=r+1<e.length,c=o?e[r+1]:0,a=r+2<e.length,l=a?e[r+2]:0,h=i>>2,f=(i&3)<<4|c>>4,u=(c&15)<<2|l>>6,d=l&63;a||(d=64,o||(u=64)),s.push(n[h],n[f],n[u],n[d])}return s.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(We(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):Ot(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let r=0;r<e.length;){let i=n[e.charAt(r++)],c=r<e.length?n[e.charAt(r)]:0;++r;let l=r<e.length?n[e.charAt(r)]:64;++r;let f=r<e.length?n[e.charAt(r)]:64;if(++r,i==null||c==null||l==null||f==null)throw new oe;let u=i<<2|c>>4;if(s.push(u),l!==64){let d=c<<4&240|l>>2;if(s.push(d),f!==64){let p=l<<6&192|f;s.push(p)}}}return s},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},oe=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},xt=function(e){let t=We(e);return Ve.encodeByteArray(t,!0)},He=function(e){return xt(e).replace(/\./g,"")},Ut=function(e){try{return Ve.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function Nt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var Dt=()=>Nt().__FIREBASE_DEFAULTS__,Pt=()=>{if(typeof process>"u"||typeof process.env>"u")return;let e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},Bt=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let t=e&&Ut(e[1]);return t&&JSON.parse(t)},Mt=()=>{try{return je()||Dt()||Pt()||Bt()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Lt=e=>{var t,n;return(n=(t=Mt())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},Ge=e=>{let t=Lt(e);if(!t)return;let n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);let s=parseInt(t.substring(n+1),10);return t[0]==="["?[t.substring(1,n-1),s]:[t.substring(0,n),s]};function Q(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}function Ke(e){return O(this,null,function*(){return(yield fetch(e,{credentials:"include"})).ok})}function Xe(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let n={alg:"none",type:"JWT"},s=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");let o=Object.assign({iss:`https://securetoken.google.com/${s}`,aud:s,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[He(JSON.stringify(n)),He(JSON.stringify(o)),""].join(".")}var q={};function Ft(){let e={prod:[],emulator:[]};for(let t of Object.keys(q))q[t]?e.emulator.push(t):e.prod.push(t);return e}function $t(e){let t=document.getElementById(e),n=!1;return t||(t=document.createElement("div"),t.setAttribute("id",e),n=!0),{created:n,element:t}}var qe=!1;function Ze(e,t){if(typeof window>"u"||typeof document>"u"||!Q(window.location.host)||q[e]===t||q[e]||qe)return;q[e]=t;function n(u){return`__firebase__banner__${u}`}let s="__firebase__banner",i=Ft().prod.length>0;function o(){let u=document.getElementById(s);u&&u.remove()}function c(u){u.style.display="flex",u.style.background="#7faaf0",u.style.position="fixed",u.style.bottom="5px",u.style.left="5px",u.style.padding=".5em",u.style.borderRadius="5px",u.style.alignItems="center"}function a(u,d){u.setAttribute("width","24"),u.setAttribute("id",d),u.setAttribute("height","24"),u.setAttribute("viewBox","0 0 24 24"),u.setAttribute("fill","none"),u.style.marginLeft="-6px"}function l(){let u=document.createElement("span");
1return u.style.cursor="pointer",u.style.marginLeft="16px",u.style.fontSize="24px",u.innerHTML=" &times;",u.onclick=()=>{qe=!0,o()},u}function h(u,d){u.setAttribute("id",d),u.innerText="Learn more",u.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",u.setAttribute("target","__blank"),u.style.paddingLeft="5px",u.style.textDecoration="underline"}function f(){let u=$t(s),d=n("text"),p=document.getElementById(d)||document.createElement("span"),E=n("learnmore"),m=document.getElementById(E)||document.createElement("a"),A=n("preprendIcon"),w=document.getElementById(A)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(u.created){let b=u.element;c(b),h(m,E);let y=l();a(w,A),b.append(w,p,m,y),document.body.appendChild(b)}i?(p.innerText="Preview backend disconnected.",w.innerHTML=`<g clip-path="url(#clip0_6013_33858)">
2<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
3</g>
4<defs>
5<clipPath id="clip0_6013_33858">
6<rect width="24" height="24" fill="white"/>
7</clipPath>
8</defs>`):(w.innerHTML=`<g clip-path="url(#clip0_6083_34804)">
9<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
10</g>
11<defs>
12<clipPath id="clip0_6083_34804">
13<rect width="24" height="24" fill="white"/>
14</clipPath>
15</defs>`,p.innerText="Preview backend running in this workspace."),p.setAttribute("id",d)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",f):f()}var zt="FirebaseError",W=class e extends Error{constructor(t,n,s){super(n),this.code=t,this.customData=s,this.name=zt,Object.setPrototypeOf(this,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ae.prototype.create)}},ae=class{constructor(t,n,s){this.service=t,this.serviceName=n,this.errors=s}create(t,...n){let s=n[0]||{},r=`${this.service}/${t}`,i=this.errors[t],o=i?jt(i,s):"Error",c=`${this.serviceName}: ${o} (${r}).`;return new W(r,c,s)}};function jt(e,t){return e.replace(Ht,(n,s)=>{let r=t[s];return r!=null?String(r):`<${s}?>`})}var Ht=/\{\$([^}]+)}/g;var ss=14400*1e3;function U(e){return e&&e._delegate?e._delegate:e}var ee=class{constructor(t,n,s){this.name=t,this.instanceFactory=n,this.type=s,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}};var rt="firebasestorage.googleapis.com",it="storageBucket",qt=120*1e3,Wt=600*1e3,Vt=1e3;var g=class e extends W{constructor(t,n,s=0){super(ce(t),`Firebase Storage: ${n} (${ce(t)})`),this.status_=s,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,e.prototype)}get status(){return this.status_}set status(t){this.status_=t}_codeEquals(t){return ce(t)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=`${this._baseMessage}
16${this.customData.serverResponse}`:this.message=this._baseMessage}},_=(function(e){return e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CA
vendor: 13,813 bytes, line 16
16NNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment",e})(_||{});function ce(e){return"storage/"+e}function ge(){let e="An unknown error occurred, please check the error payload for server response.";return new g(_.UNKNOWN,e)}function Gt(e){return new g(_.OBJECT_NOT_FOUND,"Object '"+e+"' does not exist.")}function Kt(e){return new g(_.QUOTA_EXCEEDED,"Quota for bucket '"+e+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function Xt(){let e="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new g(_.UNAUTHENTICATED,e)}function Zt(){return new g(_.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function Jt(e){return new g(_.UNAUTHORIZED,"User does not have permission to access '"+e+"'.")}function ot(){return new g(_.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function at(){return new g(_.CANCELED,"User canceled the upload/download.")}function Yt(e){return new g(_.INVALID_URL,"Invalid URL '"+e+"'.")}function Qt(e){return new g(_.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}function en(){return new g(_.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+it+"' property when initializing the app?")}function ct(){return new g(_.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function tn(){return new g(_.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}function nn(){return new g(_.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function sn(e){return new g(_.UNSUPPORTED_ENVIRONMENT,`${e} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function le(e){return new g(_.INVALID_ARGUMENT,e)}function ut(){return new g(_.APP_DELETED,"The Firebase app was deleted.")}function rn(e){return new g(_.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 G(e,t){return new g(_.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function V(e){throw new g(_.INTERNAL_ERROR,"Internal error: "+e)}var S=class e{constructor(t,n){this.bucket=t,this.path_=n}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){let t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(t,n){let s;try{s=e.makeFromUrl(t,n)}catch{return new e(t,"")}if(s.path==="")return s;throw Qt(t)}static makeFromUrl(t,n){let s=null,r="([A-Za-z0-9.\\-_]+)";function i(y){y.path.charAt(y.path.length-1)==="/"&&(y.path_=y.path_.slice(0,-1))}let o="(/(.*))?$",c=new RegExp("^gs://"+r+o,"i"),a={bucket:1,path:3};function l(y){y.path_=decodeURIComponent(y.path)}let h="v[A-Za-z0-9_]+",f=n.replace(/[.]/g,"\\."),u="(/([^?#]*).*)?$",d=new RegExp(`^https?://${f}/${h}/b/${r}/o${u}`,"i"),p={bucket:1,path:3},E=n===rt?"(?:storage.googleapis.com|storage.cloud.google.com)":n,m="([^?#]*)",A=new RegExp(`^https?://${E}/${r}/${m}`,"i"),b=[{regex:c,indices:a,postModify:i},{regex:d,indices:p,postModify:l},{regex:A,indices:{bucket:1,path:2},postModify:l}];for(let y=0;y<b.length;y++){let N=b[y],D=N.regex.exec(t);if(D){let re=D[N.indices.bucket],z=D[N.indices.path];z||(z=""),s=new e(re,z),N.postModify(s);break}}if(s==null)throw Yt(t);return s}},he=class{constructor(t){this.promise_=Promise.reject(t)}getPromise(){return this.promise_}cancel(t=!1){}};function on(e,t,n){let s=1,r=null,i=null,o=!1,c=0;function a(){return c===2}let l=!1;function h(...m){l||(l=!0,t.apply(null,m))}function f(m){r=setTimeout(()=>{r=null,e(d,a())},m)}function u(){i&&clearTimeout(i)}function d(m,...A){if(l){u();return}if(m){u(),h.call(null,m,...A);return}if(a()||o){u(),h.call(null,m,...A);return}s<64&&(s*=2);let b;c===1?(c=2,b=0):b=(s+Math.random())*1e3,f(b)}let p=!1;function E(m){p||(p=!0,u(),!l&&(r!==null?(m||(c=2),clearTimeout(r),f(0)):m||(c=1)))}return f(0),i=setTimeout(()=>{o=!0,E(!0)},n),E}function an(e){e(!1)}function cn(e){return e!==void 0}function un(e){return typeof e=="function"}function ln(e){return typeof e=="object"&&!Array.isArray(e)}function se(e){return typeof e=="string"||e instanceof String}function Je(e){return be()&&e instanceof Blob}function be(){return typeof Blob<"u"}function Ye(e,t,n,s){if(s<t)throw le(`Invalid value for '${e}'. Expected ${t} or greater.`);if(s>n)throw le(`Invalid value for '${e}'. Expected ${n} or less.`)}function $(e,t,n){let s=t;return n==null&&(s=`https://${t}`),`${n}://${s}/v0${e}`}function lt(e){let t=encodeURIComponent,n="?";for(let s in e)if(e.hasOwnProperty(s)){let r=t(s)+"="+t(e[s]);n=n+r+"&"}return n=n.slice(0,-1),n}var M=(function(e){return e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT",e})(M||{});function ht(e,t){let n=e>=500&&e<600,r=[408,429].indexOf(e)!==-1,i=t.indexOf(e)!==-1;return n||r||i}var de=class{constructor(t,n,s,r,i,o,c,a,l,h,f,u=!0,d=!1){this.url_=t,this.method_=n,this.headers_=s,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=c,this.errorCallback_=a,this.timeout_=l,this.progressCallback_=h,this.connectionFactory_=f,this.retry=u,this.isUsingEmulator=d,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((p,E)=>{this.resolve_=p,this.reject_=E,this.start_()})}start_(){let t=(s,r)=>{if(r){s(!1,new B(!1,null,!0));return}let i=this.connectionFactory_();this.pendingConnection_=i;let o=c=>{let a=c.loaded,l=c.lengthComputable?c.total:-1;this.progressCallback_!==null&&this.progressCallback_(a,l)};this.progressCallback_!==null&&i.addUploadProgressListener(o),i.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&i.removeUploadProgressListener(o),this.pendingConnection_=null;let c=i.getErrorCode()===M.NO_ERROR,a=i.getStatus();if(!c||ht(a,this.additionalRetryCodes_)&&this.retry){let h=i.getErrorCode()===M.ABORT;s(!1,new B(!1,null,h));return}let l=this.successCodes_.indexOf(a)!==-1;s(!0,new B(l,i))})},n=(s,r)=>{let i=this.resolve_,o=this.reject_,c=r.connection;if(r.wasSuccessCode)try{let a=this.callback_(c,c.getResponse());cn(a)?i(a):i()}catch(a){o(a)}else if(c!==null){let a=ge();a.serverResponse=c.getErrorText(),this.errorCallback_?o(this.errorCallback_(c,a)):o(a)}else if(r.canceled){let a=this.appDelete_?ut():at();o(a)}else{let a=ot();o(a)}};this.canceled_?n(!1,new B(!1,null,!0)):this.backoffId_=on(t,n,this.timeout_)}getPromise(){return this.promise_}cancel(t){this.canceled_=!0,this.appDelete_=t||!1,this.backoffId_!==null&&an(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}},B=class{constructor(t,n,s){this.wasSuccessCode=t,this.connection=n,this.canceled=!!s}};function hn(e,t){t!==null&&t.length>0&&(e.Authorization="Firebase "+t)}function dn(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(t??"AppManager")}function fn(e,t){t&&(e["X-Firebase-GMPID"]=t)}function pn(e,t){t!==null&&(e["X-Firebase-AppCheck"]=t)}function _n(e,t,n,s,r,i,o=!0,c=!1){let a=lt(e.urlParams),l=e.url+a,h=Object.assign({},e.headers);return fn(h,t),hn(h,n),dn(h,i),pn(h,s),new de(l,e.method,h,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,r,o,c)}function mn(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function gn(...e){let t=mn();if(t!==void 0){let n=new t;for(let s=0;s<e.length;s++)n.append(e[s]);return n.getBlob()}else{if(be())return new Blob(e);throw new g(_.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}}function bn(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}function yn(e){if(typeof atob>"u")throw sn("base-64");return atob(e)}var k={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},K=class{constructor(t,n){this.data=t,this.contentType=n||null}};function En(e,t){switch(e){case k.RAW:return new K(dt(t));case k.BASE64:case k.BASE64URL:return new K(ft(e,t));case k.DATA_URL:return new K(wn(t),Rn(t))}throw ge()}function dt(e){let t=[];for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);if(s<=127)t.push(s);else if(s<=2047)t.push(192|s>>6,128|s&63);else if((s&64512)===55296)if(!(n<e.length-1&&(e.charCodeAt(n+1)&64512)===56320))t.push(239,191,189);else{let i=s,o=e.charCodeAt(++n);s=65536|(i&1023)<<10|o&1023,t.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|s&63)}else(s&64512)===56320?t.push(239,191,189):t.push(224|s>>12,128|s>>6&63,128|s&63)}return new Uint8Array(t)}function Tn(e){let t;try{t=decodeURIComponent(e)}catch{throw G(k.DATA_URL,"Malformed data URL.")}return dt(t)}function ft(e,t){switch(e){case k.BASE64:{let r=t.indexOf("-")!==-1,i=t.indexOf("_")!==-1;if(r||i)throw G(e,"Invalid character '"+(r?"-":"_")+"' found: is it base64url encoded?");break}case k.BASE64URL:{let r=t.indexOf("+")!==-1,i=t.indexOf("/")!==-1;if(r||i)throw G(e,"Invalid character '"+(r?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=yn(t)}catch(r){throw r.message.includes("polyfill")?r:G(e,"Invalid character found")}let s=new Uint8Array(n.length);for(let r=0;r<n.length;r++)s[r]=n.charCodeAt(r);return s}var ne=class{constructor(t){this.base64=!1,this.contentType=null;let n=t.match(/^data:([^,]+)?,/);if(n===null)throw G(k.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");let s=n[1]||null;s!=null&&(this.base64=An(s,";base64"),this.contentType=this.base64?s.substring(0,s.length-7):s),this.rest=t.substring(t.indexOf(",")+1)}};function wn(e){let t=new ne(e);return t.base64?ft(k.BASE64,t.rest):Tn(t.rest)}function Rn(e){return new ne(e).contentType}function An(e,t){return e.length>=t.length?e.substring(e.length-t.length)===t:!1}var X=class e{constructor(t,n){let s=0,r="";Je(t)?(this.data_=t,s=t.size,r=t.type):t instanceof ArrayBuffer?(n?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),s=this.data_.length):t instanceof Uint8Array&&(n?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),s=t.length),this.size_=s,this.type_=r}size(){return this.size_}type(){return this.type_}slice(t,n){if(Je(this.data_)){let s=this.data_,r=bn(s,t,n);return r===null?null:new e(r)}else{let s=new Uint8Array(this.data_.buffer,t,n-t);return new e(s,!0)}}static getBlob(...t){if(be()){let n=t.map(s=>s instanceof e?s.data_:s);return new e(gn.apply(null,n))}else{let n=t.map(o=>se(o)?En(k.RAW,o).data:o.data_),s=0;n.forEach(o=>{s+=o.byteLength});let r=new Uint8Array(s),i=0;return n.forEach(o=>{for(let c=0;c<o.length;c++)r[i++]=o[c]}),new e(r,!0)}}uploadData(){return this.data_}};function pt(e){let t;try{t=JSON.parse(e)}catch{return null}return ln(t)?t:null}function Sn(e){if(e.length===0)return null;let t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function kn(e,t){let n=t.split("/").filter(s=>s.length>0).join("/");return e.length===0?n:e+"/"+n}function _t(e){let t=e.lastIndexOf("/",e.length-2);return t===-1?e:e.slice(t+1)}function Cn(e,t){return t}var T=class{constructor(t,n,s,r){this.server=t,this.local=n||t,this.writable=!!s,this.xform=r||Cn}},te=null;function In(e){return!se(e)||e.length<2?e:_t(e)}function ye(){if(te)return te;let e=[];e.push(new T("bucket")),e.push(new T("generation")),e.push(new T("metageneration")),e.push(new T("name","fullPath",!0));function t(i,o){return In(o)}let n=new T("name");n.xform=t,e.push(n);function s(i,o){return o!==void 0?Number(o):o}let r=new T("size");return r.xform=s,e.push(r),e.push(new T("timeCreated")),e.push(new T("updated")),e.push(new T("md5Hash",null,!0)),e.push(new T("cacheControl",null,!0)),e.push(new T("contentDisposition",null,!0)),e.push(new T("contentEncoding",null,!0)),e.push(new T("contentLanguage",null,!0)),e.push(new T("contentType",null,!0)),e.push(new T("metadata","customMetadata",!0)),te=e,te}function vn(e,t){function n(){let s=e.bucket,r=e.fullPath,i=new S(s,r);return t._makeStorageReference(i)}Object.defineProperty(e,"ref",{get:n})}function On(e,t,n){let s={};s.type="file";let r=n.length;for(let i=0;i<r;i++){let o=n[i];s[o.local]=o.xform(s,t[o.server])}return vn(s,e),s}function mt(e,t,n){let s=pt(t);return s===null?null:On(e,s,n)}function xn(e,t,n,s){let r=pt(t);if(r===null||!se(r.downloadTokens))return null;let i=r.downloadTokens;if(i.length===0)return null;let o=encodeURIComponent;return i.split(",").map(l=>{let h=e.bucket,f=e.fullPath,u="/b/"+o(h)+"/o/"+o(f),d=$(u,n,s),p=lt({alt:"media",token:l});return d+p})[0]}function gt(e,t){let n={},s=t.length;for(let r=0;r<s;r++){let i=t[r];i.writable&&(n[i.server]=e[i.local])}return JSON.stringify(n)}var I=class{constructor(t,n,s,r){this.url=t,this.method=n,this.handler=s,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}};function C(e){if(!e)throw ge()}function Ee(e,t){function n(s,r){let i=mt(e,r,t);return C(i!==null),i}return n}function Un(e,t){function n(s,r){let i=mt(e,r,t);return C(i!==null),xn(i,r,e.host,e._protocol)}return n}function J(e){function t(n,s){let r;return n.getStatus()===401?n.getErrorText().includes("Firebase App Check token is invali
16d")?r=Zt():r=Xt():n.getStatus()===402?r=Kt(e.bucket):n.getStatus()===403?r=Jt(e.path):r=s,r.status=n.getStatus(),r.serverResponse=s.serverResponse,r}return t}function Te(e){let t=J(e);function n(s,r){let i=t(s,r);return s.getStatus()===404&&(i=Gt(e.path)),i.serverResponse=r.serverResponse,i}return n}function Nn(e,t,n){let s=t.fullServerUrl(),r=$(s,e.host,e._protocol),i="GET",o=e.maxOperationRetryTime,c=new I(r,i,Ee(e,n),o);return c.errorHandler=Te(t),c}function Dn(e,t,n){let s=t.fullServerUrl(),r=$(s,e.host,e._protocol),i="GET",o=e.maxOperationRetryTime,c=new I(r,i,Un(e,n),o);return c.errorHandler=Te(t),c}function Pn(e,t){let n=t.fullServerUrl(),s=$(n,e.host,e._protocol),r="DELETE",i=e.maxOperationRetryTime;function o(a,l){}let c=new I(s,r,o,i);return c.successCodes=[200,204],c.errorHandler=Te(t),c}function Bn(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}function bt(e,t,n){let s=Object.assign({},n);return s.fullPath=e.path,s.size=t.size(),s.contentType||(s.contentType=Bn(null,t)),s}function yt(e,t,n,s,r){let i=t.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"};function c(){let b="";for(let y=0;y<2;y++)b=b+Math.random().toString().slice(2);return b}let a=c();o["Content-Type"]="multipart/related; boundary="+a;let l=bt(t,s,r),h=gt(l,n),f="--"+a+`\r
17Content-Type: application/json; charset=utf-8\r
18\r
19`+h+`\r
20--`+a+`\r
21Content-Type: `+l.contentType+`\r
22\r
23`,u=`\r
24--`+a+"--",d=X.getBlob(f,s,u);if(d===null)throw ct();let p={name:l.fullPath},E=$(i,e.host,e._protocol),m="POST",A=e.maxUploadRetryTime,w=new I(E,m,Ee(e,n),A);return w.urlParams=p,w.headers=o,w.body=d.uploadData(),w.errorHandler=J(t),w}var L=class{constructor(t,n,s,r){this.current=t,this.total=n,this.finalized=!!s,this.metadata=r||null}};function we(e,t){let n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch{C(!1)}return C(!!n&&(t||["active"]).indexOf(n)!==-1),n}function Mn(e,t,n,s,r){let i=t.bucketOnlyServerUrl(),o=bt(t,s,r),c={name:o.fullPath},a=$(i,e.host,e._protocol),l="POST",h={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${s.size()}`,"X-Goog-Upload-Header-Content-Type":o.contentType,"Content-Type":"application/json; charset=utf-8"},f=gt(o,n),u=e.maxUploadRetryTime;function d(E){we(E);let m;try{m=E.getResponseHeader("X-Goog-Upload-URL")}catch{C(!1)}return C(se(m)),m}let p=new I(a,l,d,u);return p.urlParams=c,p.headers=h,p.body=f,p.errorHandler=J(t),p}function Ln(e,t,n,s){let r={"X-Goog-Upload-Command":"query"};function i(l){let h=we(l,["active","final"]),f=null;try{f=l.getResponseHeader("X-Goog-Upload-Size-Received")}catch{C(!1)}f||C(!1);let u=Number(f);return C(!isNaN(u)),new L(u,s.size(),h==="final")}let o="POST",c=e.maxUploadRetryTime,a=new I(n,o,i,c);return a.headers=r,a.errorHandler=J(t),a}var Qe=256*1024;function Fn(e,t,n,s,r,i,o,c){let a=new L(0,0);if(o?(a.current=o.current,a.total=o.total):(a.current=0,a.total=s.size()),s.size()!==a.total)throw tn();let l=a.total-a.current,h=l;r>0&&(h=Math.min(h,r));let f=a.current,u=f+h,d="";h===0?d="finalize":l===h?d="upload, finalize":d="upload";let p={"X-Goog-Upload-Command":d,"X-Goog-Upload-Offset":`${a.current}`},E=s.slice(f,u);if(E===null)throw ct();function m(y,N){let D=we(y,["active","final"]),re=a.current+h,z=s.size(),ie;return D==="final"?ie=Ee(t,i)(y,N):ie=null,new L(re,z,D==="final",ie)}let A="POST",w=t.maxUploadRetryTime,b=new I(n,A,m,w);return b.headers=p,b.body=E.uploadData(),b.progressCallback=c||null,b.errorHandler=J(e),b}var R={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function ue(e){switch(e){case"running":case"pausing":case"canceling":return R.RUNNING;case"paused":return R.PAUSED;case"success":return R.SUCCESS;case"canceled":return R.CANCELED;case"error":return R.ERROR;default:return R.ERROR}}var fe=class{constructor(t,n,s){if(un(t)||n!=null||s!=null)this.next=t,this.error=n??void 0,this.complete=s??void 0;else{let i=t;this.next=i.next,this.error=i.error,this.complete=i.complete}}};function P(e){return(...t)=>{Promise.resolve().then(()=>e(...t))}}var et=null,pe=class{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=M.NO_ERROR,this.sendPromise_=new Promise(t=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=M.ABORT,t()}),this.xhr_.addEventListener("error",()=>
vendor: 12,962 bytes, line 24
24{this.errorCode_=M.NETWORK_ERROR,t()}),this.xhr_.addEventListener("load",()=>{t()})})}send(t,n,s,r,i){if(this.sent_)throw V("cannot .send() more than once");if(Q(t)&&s&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(n,t,!0),i!==void 0)for(let o in i)i.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,i[o].toString());return r!==void 0?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw V("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw V("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw V("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw V("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(t){return this.xhr_.getResponseHeader(t)}addUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",t)}removeUploadProgressListener(t){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",t)}},_e=class extends pe{initXhr(){this.xhr_.responseType="text"}};function v(){return et?et():new _e}var me=class{isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}constructor(t,n,s=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=t,this._blob=n,this._metadata=s,this._mappings=ye(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=r=>{if(this._request=void 0,this._chunkMultiplier=1,r._codeEquals(_.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{let i=this.isExponentialBackoffExpired();if(ht(r.status,[]))if(i)r=ot();else{this.sleepTime=Math.max(this.sleepTime*2,Vt),this._needToFetchStatus=!0,this.completeTransitions_();return}this._error=r,this._transition("error")}},this._metadataErrorHandler=r=>{this._request=void 0,r._codeEquals(_.CANCELED)?this.completeTransitions_():(this._error=r,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i,this._start()}),this._promise.then(null,()=>{})}_makeProgressCallback(){let t=this._transferred;return n=>this._updateProgress(t+n)}_shouldDoResumable(t){return t.size()>256*1024}_start(){this._state==="running"&&this._request===void 0&&(this._resumable?this._uploadUrl===void 0?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(t){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([n,s])=>{switch(this._state){case"running":t(n,s);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused");break}})}_createResumable(){this._resolveToken((t,n)=>{let s=Mn(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(s,v,t,n);this._request=r,r.getPromise().then(i=>{this._request=void 0,this._uploadUrl=i,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){let t=this._uploadUrl;this._resolveToken((n,s)=>{let r=Ln(this._ref.storage,this._ref._location,t,this._blob),i=this._ref.storage._makeRequest(r,v,n,s);this._request=i,i.getPromise().then(o=>{o=o,this._request=void 0,this._updateProgress(o.current),this._needToFetchStatus=!1,o.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){let t=Qe*this._chunkMultiplier,n=new L(this._transferred,this._blob.size()),s=this._uploadUrl;this._resolveToken((r,i)=>{let o;try{o=Fn(this._ref._location,this._ref.storage,s,this._blob,t,this._mappings,n,this._makeProgressCallback())}catch(a){this._error=a,this._transition("error");return}let c=this._ref.storage._makeRequest(o,v,r,i,!1);this._request=c,c.getPromise().then(a=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(a.current),a.finalized?(this._metadata=a.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){Qe*this._chunkMultiplier*2<32*1024*1024&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((t,n)=>{let s=Nn(this._ref.storage,this._ref._location,this._mappings),r=this._ref.storage._makeRequest(s,v,t,n);this._request=r,r.getPromise().then(i=>{this._request=void 0,this._metadata=i,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((t,n)=>{let s=yt(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(s,v,t,n);this._request=r,r.getPromise().then(i=>{this._request=void 0,this._metadata=i,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(t){let n=this._transferred;this._transferred=t,this._transferred!==n&&this._notifyObservers()}_transition(t){if(this._state!==t)switch(t){case"canceling":case"pausing":this._state=t,this._request!==void 0?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":let n=this._state==="paused";this._state=t,n&&(this._notifyObservers(),this._start());break;case"paused":this._state=t,this._notifyObservers();break;case"canceled":this._error=at(),this._state=t,this._notifyObservers();break;case"error":this._state=t,this._notifyObservers();break;case"success":this._state=t,this._notifyObservers();break}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start();break}}get snapshot(){let t=ue(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:t,metadata:this._metadata,task:this,ref:this._ref}}on(t,n,s,r){let i=new fe(n||void 0,s||void 0,r||void 0);return this._addObserver(i),()=>{this._removeObserver(i)}}then(t,n){return this._promise.then(t,n)}catch(t){return this.then(null,t)}_addObserver(t){this._observers.push(t),this._notifyObserver(t)}_removeObserver(t){let n=this._observers.indexOf(t);n!==-1&&this._observers.splice(n,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(n=>{this._notifyObserver(n)})}_finishPromise(){if(this._resolve!==void 0){let t=!0;switch(ue(this._state)){case R.SUCCESS:P(this._resolve.bind(null,this.snapshot))();break;case R.CANCELED:case R.ERROR:let n=this._reject;P(n.bind(null,this._error))();break;default:t=!1;break}t&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(t){switch(ue(this._state)){case R.RUNNING:case R.PAUSED:t.next&&P(t.next.bind(t,this.snapshot))();break;case R.SUCCESS:t.complete&&P(t.complete.bind(t))();break;case R.CANCELED:case R.ERROR:t.error&&P(t.error.bind(t,this._error))();break;default:t.error&&P(t.error.bind(t,this._error))()}}resume(){let t=this._state==="paused"||this._state==="pausing";return t&&this._transition("running"),t}pause(){let t=this._state==="running";return t&&this._transition("pausing"),t}cancel(){let t=this._state==="running"||this._state==="pausing";return t&&this._transition("canceling"),t}};var F=class e{constructor(t,n){this._service=t,n instanceof S?this._location=n:this._location=S.makeFromUrl(n,t.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(t,n){return new e(t,n)}get root(){let t=new S(this._location.bucket,"");return this._newRef(this._service,t)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return _t(this._location.path)}get storage(){return this._service}get parent(){let t=Sn(this._location.path);if(t===null)return null;let n=new S(this._location.bucket,t);return new e(this._service,n)}_throwIfRoot(t){if(this._location.path==="")throw rn(t)}};function $n(e,t,n){e._throwIfRoot("uploadBytes");let s=yt(e.storage,e._location,ye(),new X(t,!0),n);return e.storage.makeRequestWithTokens(s,v).then(r=>({metadata:r,ref:e}))}function zn(e,t,n){return e._throwIfRoot("uploadBytesResumable"),new me(e,new X(t),n)}function jn(e){e._throwIfRoot("getDownloadURL");let t=Dn(e.storage,e._location,ye());return e.storage.makeRequestWithTokens(t,v).then(n=>{if(n===null)throw nn();return n})}function Hn(e){e._throwIfRoot("deleteObject");let t=Pn(e.storage,e._location);return e.storage.makeRequestWithTokens(t,v)}function qn(e,t){let n=kn(e._location.path,t),s=new S(e._location.bucket,n);return new F(e.storage,s)}function Wn(e){return/^[A-Za-z]+:\/\//.test(e)}function Vn(e,t){return new F(e,t)}function Et(e,t){if(e instanceof Z){let n=e;if(n._bucket==null)throw en();let s=new F(n,n._bucket);return t!=null?Et(s,t):s}else return t!==void 0?qn(e,t):e}function Gn(e,t){if(t&&Wn(t)){if(e instanceof Z)return Vn(e,t);throw le("To use ref(service, url), the first argument must be a Storage instance.")}else return Et(e,t)}function tt(e,t){let n=t?.[it];return n==null?null:S.makeFromBucketSpec(n,e)}function Kn(e,t,n,s={}){e.host=`${t}:${n}`;let r=Q(t);r&&(Ke(`https://${e.host}/b`),Ze("Storage",!0)),e._isUsingEmulator=!0,e._protocol=r?"https":"http";let{mockUserToken:i}=s;i&&(e._overrideAuthToken=typeof i=="string"?i:Xe(i,e.app.options.projectId))}var Z=class{constructor(t,n,s,r,i,o=!1){this.app=t,this._authProvider=n,this._appCheckProvider=s,this._url=r,this._firebaseVersion=i,this._isUsingEmulator=o,this._bucket=null,this._host=rt,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=qt,this._maxUploadRetryTime=Wt,this._requests=new Set,r!=null?this._bucket=S.makeFromBucketSpec(r,this._host):this._bucket=tt(this._host,this.app.options)}get host(){return this._host}set host(t){this._host=t,this._url!=null?this._bucket=S.makeFromBucketSpec(this._url,t):this._bucket=tt(t,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(t){Ye("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(t){Ye("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t}_getAuthToken(){return O(this,null,function*(){if(this._overrideAuthToken)return this._overrideAuthToken;let t=this._authProvider.getImmediate({optional:!0});if(t){let n=yield t.getToken();if(n!==null)return n.accessToken}return null})}_getAppCheckToken(){return O(this,null,function*(){if(xe(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let t=this._appCheckProvider.getImmediate({optional:!0});return t?(yield t.getToken()).token:null})}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(t=>t.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(t){return new F(this,t)}_makeRequest(t,n,s,r,i=!0){if(this._deleted)return new he(ut());{let o=_n(t,this._appId,s,r,n,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}makeRequestWithTokens(t,n){return O(this,null,function*(){let[s,r]=yield Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(t,n,s,r).getPromise()})}},nt="@firebase/storage",st="0.13.14";var Tt="storage";function wt(e,t,n){return e=U(e),$n(e,t,n)}function Rt(e,t,n){return e=U(e),zn(e,t,n)}function At(e){return e=U(e),jn(e)}function St(e){return e=U(e),Hn(e)}function kt(e,t){return e=U(e),Gn(e,t)}function Ct(e=Ne(),t){e=U(e);let s=Oe(e,Tt).getImmediate({identifier:t}),r=Ge("storage");return r&&It(s,...r),s}function It(e,t,n,s={}){Kn(e,t,n,s)}function Xn(e,{instanceIdentifier:t}){let n=e.getProvider("app").getImmediate(),s=e.getProvider("auth-internal"),r=e.getProvider("app-check-internal");return new Z(n,s,r,t,Ue)}function Zn(){ve(new ee(Tt,Xn,"PUBLIC").setMultipleInstances(!0)),H(nt,st,""),H(nt,st,"esm2017")}Zn();var Y=class{constructor(t){return t}},vt="storage",Re=class{constructor(){return Be(vt)}};var Ae=new Se("angularfire2.storage-instances");function Jn(e,t){let n=Pe(vt,e,t);return n&&new Y(n)}function Yn(e){return(t,n)=>{let s=t.runOutsideAngular(()=>e(n));return new Y(s)}}var Qn={provide:Re,deps:[[new j,Ae]]},es={provide:Y,useFactory:Jn,deps:[[new j,Ae],Le]};function Ns(e,...t){return H("angularfire",De.full,"gcs"),ke([es,Qn,{provide:Ae,useFactory:Yn(e),multi:!0,deps:[Ie,Ce,Me,Fe,[new j,ze],[new j,$e],...t]}])}var Ds=x(St,!0,2);var Ps=x(At,!0);var Bs=x(Ct,!0);var Ms=x(kt,!0,2);var Ls=x(wt,!0),Fs=x(Rt,!0);export{Y as a,Ns as b,Ds as c,Ps as d,Bs as e,Ms as f,Ls as g,Fs as h};

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.