PageSourceSearch

https://scorekinole.es/_app/immutable/chunks/BL4V4Sru.js

js scorekinole.es collected 2026-10-04 01:58:17 UTC 33,979 bytes, 295 lines download raw bytes

1import{_ as ge,C as me,r as X,S as Re,F as be,d as C,k as we,H as Te,m as ye,v as ke}from"./Ds6a9DvP.js";/**
2 * @license
3 * Copyright 2017 Google LLC
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *   http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */const Q="firebasestorage.googleapis.com",ee="storageBucket",Ee=120*1e3,Ae=600*1e3;/**
17 * @license
18 * Copyright 2017 Google LLC
19 *
20 * Licensed under the Apache License, Version 2.0 (the "License");
21 * you may not use this file except in compliance with the License.
22 * You may obtain a copy of the License at
23 *
24 *   http://www.apache.org/licenses/LICENSE-2.0
25 *
26 * Unless required by applicable law or agreed to in writing, software
27 * distributed under the License is distributed on an "AS IS" BASIS,
28 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29 * See the License for the specific language governing permissions and
30 * limitations under the License.
31 */class h extends be{constructor(t,n,r=0){super(F(t),`Firebase Storage: ${n} (${F(t)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,h.prototype)}get status(){return this.status_}set status(t){this.status_=t}_codeEquals(t){return F(t)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=`${this._baseMessage}
32${this.customData.serverResponse}`:this.message=this._baseMessage}}var l;(function(e){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.CANNOT_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"})(l||(l={}));function F(e){return"storage/"+e}function $(){const e="An unknown error occurred, please check the error payload for server response.";return new h(l.UNKNOWN,e)}function Oe(e){return new h(l.OBJECT_NOT_FOUND,"Object '"+e+"' does not exist.")}function Ue(e){return new h(l.QUOTA_EXCEEDED,"Quota for bucket '"+e+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function Ie(){const e="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new h(l.UNAUTHENTICATED,e)}function Ne(){return new h(l.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function Pe(e){return new h(l.UNAUTHORIZED,"User does not have permission to access '"+e+"'.")}function Ce(){return new h(l.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function De(){return new h(l.CANCELED,"User canceled the upload/download.")}function xe(e){return new h(l.INVALID_URL,"Invalid URL '"+e+"'.")}function Le(e){return new h(l.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}function ve(){return new h(l.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+ee+"' property when initializing the app?")}function Se(){return new h(l.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function Be(){return new h(l.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function Fe(e){return new h(l.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 H(e){return new h(l.INVALID_ARGUMENT,e)}function te(){return new h(l.APP_DELETED,"The Firebase app was deleted.")}function Me(e){return new h(l.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 P(e,t){return new h(l.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function N(e){throw new h(l.INTERNAL_ERROR,"Internal error: "+e)}/**
33 * @license
34 * Copyright 2017 Google LLC
35 *
36 * Licensed under the Apache License, Version 2.0 (the "License");
37 * you may not use this file except in compliance with the License.
38 * You may obtain a copy of the License at
39 *
40 *   http://www.apache.org/licenses/LICENSE-2.0
41 *
42 * Unless required by applicable law or agreed to in writing, software
43 * distributed under the License is distributed on an "AS IS" BASIS,
44 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
45 * See the License for the specific language governing permissions and
46 * limitations under the License.
47 */class _{constructor(t,n){this.bucket=t,this.path_=n}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){const t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(t,n){let r;try{r=_.makeFromUrl(t,n)}catch{return new _(t,"")}if(r.path==="")return r;throw Le(t)}static makeFromUrl(t,n){let r=null;const s="([A-Za-z0-9.\\-_]+)";function o(p){p.path.charAt(p.path.length-1)==="/"&&(p.path_=p.path_.slice(0,-1))}const i="(/(.*))?$",a=new RegExp("^gs://"+s+i,"i"),u={bucket:1,path:3};function c(p){p.path_=decodeURIComponent(p.path)}const g="v[A-Za-z0-9_]+",R=n.replace(/[.]/g,"\\."),m="(/([^?#]*).*)?$",b=new RegExp(`^https?://${R}/${g}/b/${s}/o${m}`,"i"),w={bucket:1,path:3},U=n===Q?"(?:storage.googleapis.com|storage.cloud.google.com)":n,f="([^?#]*)",I=new RegExp(`^https?://${U}/${s}/${f}`,"i"),T=[{regex:a,indices:u,postModify:o},{regex:b,indices:w,postModify:c},{regex:I,indices:{bucket:1,path:2},postModify:c}];for(let p=0;p<T.length;p++){const D=T[p],S=D.regex.exec(t);if(S){const _e=S[D.indices.bucket];let B=S[D.indices.path];B||(B=""),r=new _(_e,B),D.postModify(r);break}}if(r==null)throw xe(t);return r}}class He{constructor(t){this.promise_=Promise.reject(t)}getPromise(){return this.promise_}cancel(t=!1){}}/**
48 * @license
49 * Copyright 2017 Google LLC
50 *
51 * Licensed under the Apache License, Version 2.0 (the "License");
52 * you may not use this file except in compliance with the License.
53 * You may obtain a copy of the License at
54 *
55 *   http://www.apache.org/licenses/LICENSE-2.0
56 *
57 * Unless required by applicable law or agreed to in writing, software
58 * distributed under the License is distributed on an "AS IS" BASIS,
59 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
60 * See the License for the specific language governing permissions and
61 * limitations under the License.
62 */function $e(e,t,n){let r=1,s=null,o=null,i=!1,a=0;function u(){return a===2}let c=!1;function g(...f){c||(c=!0,t.apply(null,f))}function R(f){s=setTimeout(()=>{s=null,e(b,u())},f)}function m(){o&&clearTimeout(o)}function b(f,...I){if(c){m();return}if(f){m(),g.call(null,f,...I);return}if(u()||i){m(),g.call(null,f,...I);return}r<64&&(r*=2);let T;a===1?(a=2,T=0):T=(r+Math.random())*1e3,R(T)}let w=!1;function U(f){w||(w=!0,m(),!c&&(s!==null?(f||(a=2),clearTimeout(s),R(0)):f||(a=1)))}return R(0),o=setTimeout(()=>{i=!0,U(!0)},n),U}function je(e){e(!1)}/**
63 * @license
64 * Copyright 2017 Google LLC
65 *
66 * Licensed under the Apache License, Version 2.0 (the "License");
67 * you may not use this file except in compliance with the License.
68 * You may obtain a copy of the License at
69 *
70 *   http://www.apache.org/licenses/LICENSE-2.0
71 *
72 * Unless required by applicable law or agreed to in writing, software
73 * distributed under the License is distributed on an "AS IS" BASIS,
74 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
75 * See the License for the specific language governing permissions and
76 * limitations under the License.
77 */function qe(e){return e!==void 0}function Ve(e){return typeof e=="object"&&!Array.isArray(e)}function j(e){return typeof e=="string"||e instanceof String}function K(e){return q()&&e instanceof Blob}function q(){return typeof Blob<"u"}function G(e,t,n,r){if(r<t)throw H(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw H(`Invalid value for '${e}'. Expected ${n} or less.`)}/**
78 * @license
79 * Copyright 2017 Google LLC
80 *
81 * Licensed under the Apache License, Version 2.0 (the "License");
82 * you may not use this file except in compliance with the License.
83 * You may obtain a copy of the License at
84 *
85 *   http://www.apache.org/licenses/LICENSE-2.0
86 *
87 * Unless required by applicable law or agreed to in writing, software
88 * distributed under the License is distributed on an "AS IS" BASIS,
89 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
90 * See the License for the specific language governing permissions and
91 * limitations under the License.
92 */function v(e,t,n){let r=t;return n==null&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function ne(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){const s=t(r)+"="+t(e[r]);n=n+s+"&"}return n=n.slice(0,-1),n}var A;(function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"})(A||(A={}));/**
93 * @license
94 * Copyright 2022 Google LLC
95 *
96 * Licensed under the Apache License, Version 2.0 (the "License");
97 * you may not use this file except in compliance with the License.
98 * You may obtain a copy of the License at
99 *
100 *   http://www.apache.org/licenses/LICENSE-2.0
101 *
102 * Unless required by applicable law or agreed to in writing, software
103 * distributed under the License is distributed on an "AS IS" BASIS,
104 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
105 * See the License for the specific language governing permissions and
106 * limitations under the License.
107 */function ze(e,t){const n=e>=500&&e<600,s=[408,429].indexOf(e)!==-1,o=t.indexOf(e)!==-1;return n||s||o}/**
108 * @license
109 * Copyright 2017 Google LLC
110 *
111 * Licensed under the Apache License, Version 2.0 (the "License");
112 * you may not use this file except in compliance with the License.
113 * You may obtain a copy of the License at
114 *
115 *   http://www.apache.org/licenses/LICENSE-2.0
116 *
117 * Unless required by applicable law or agreed to in writing, software
118 * distributed under the License is distributed on an "AS IS" BASIS,
119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
120 * See the License for the specific language governing permissions and
121 * limitations under the License.
122 */class We{constructor(t,n,r,s,o,i,a,u,c,g,R,m=!0){this.url_=t,this.method_=n,this.headers_=r,this.body_=s,this.successCodes_=o,this.additionalRetryCodes_=i,this.callback_=a,this.errorCallback_=u,this.timeout_=c,this.progressCallback_=g,this.connectionFactory_=R,this.retry=m,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((b,w)=>{this.resolve_=b,this.reject_=w,this.start_()})}start_(){const t=(r,s)=>{if(s){r(!1,new x(!1,null,!0));return}const o=this.connectionFactory_();this.pendingConnection_=o;const i=a=>{const u=a.loaded,c=a.lengthComputable?a.total:-1;this.progressCallback_!==null&&this.progressCallback_(u,c)};this.progressCallback_!==null&&o.addUploadProgressListener(i),o.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&o.removeUploadProgressListener(i),this.pendingConnection_=null;const a=o.getErrorCode()===A.NO_ERROR,u=o.getStatus();if(!a||ze(u,this.additionalRetryCodes_)&&this.retry){const g=o.getErrorCode()===A.ABORT;r(!1,new x(!1,null,g));return}const c=this.successCodes_.indexOf(u)!==-1;r(!0,new x(c,o))})},n=(r,s)=>{const o=this.resolve_,i=this.reject_,a=s.connection;if(s.wasSuccessCode)try{const u=this.callback_(a,a.getResponse());qe(u)?o(u):o()}catch(u){i(u)}else if(a!==null){const u=$();u.serverResponse=a.getErrorText(),this.errorCallback_?i(this.errorCallback_(a,u)):i(u)}else if(s.canceled){const u=this.appDelete_?te():De();i(u)}else{const u=Ce();i(u)}};this.canceled_?n(!1,new x(!1,null,!0)):this.backoffId_=$e(t,n,this.timeout_)}getPromise(){return this.promise_}cancel(t){this.canceled_=!0,this.appDelete_=t||!1,this.backoffId_!==null&&je(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class x{constructor(t,n,r){this.wasSuccessCode=t,this.connection=n,this.canceled=!!r}}function Xe(e,t){t!==null&&t.length>0&&(e.Authorization="Firebase "+t)}function Ke(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(t??"AppManager")}function Ge(e,t){t&&(e["X-Firebase-GMPID"]=t)}function Ye(e,t){t!==null&&(e["X-Firebase-AppCheck"]=t)}
122function Ze(e,t,n,r,s,o,i=!0){const a=ne(e.urlParams),u=e.url+a,c=Object.assign({},e.headers);return Ge(c,t),Xe(c,n),Ke(c,o),Ye(c,r),new We(u,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,s,i)}/**
123 * @license
124 * Copyright 2017 Google LLC
125 *
126 * Licensed under the Apache License, Version 2.0 (the "License");
127 * you may not use this file except in compliance with the License.
128 * You may obtain a copy of the License at
129 *
130 *   http://www.apache.org/licenses/LICENSE-2.0
131 *
132 * Unless required by applicable law or agreed to in writing, software
133 * distributed under the License is distributed on an "AS IS" BASIS,
134 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
135 * See the License for the specific language governing permissions and
136 * limitations under the License.
137 */function Je(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function Qe(...e){const t=Je();if(t!==void 0){const n=new t;for(let r=0;r<e.length;r++)n.append(e[r]);return n.getBlob()}else{if(q())return new Blob(e);throw new h(l.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}}function et(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}/**
138 * @license
139 * Copyright 2021 Google LLC
140 *
141 * Licensed under the Apache License, Version 2.0 (the "License");
142 * you may not use this file except in compliance with the License.
143 * You may obtain a copy of the License at
144 *
145 *   http://www.apache.org/licenses/LICENSE-2.0
146 *
147 * Unless required by applicable law or agreed to in writing, software
148 * distributed under the License is distributed on an "AS IS" BASIS,
149 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
150 * See the License for the specific language governing permissions and
151 * limitations under the License.
152 */function tt(e){if(typeof atob>"u")throw Fe("base-64");return atob(e)}/**
153 * @license
154 * Copyright 2017 Google LLC
155 *
156 * Licensed under the Apache License, Version 2.0 (the "License");
157 * you may not use this file except in compliance with the License.
158 * You may obtain a copy of the License at
159 *
160 *   http://www.apache.org/licenses/LICENSE-2.0
161 *
162 * Unless required by applicable law or agreed to in writing, software
163 * distributed under the License is distributed on an "AS IS" BASIS,
164 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
165 * See the License for the specific language governing permissions and
166 * limitations under the License.
167 */const y={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class M{constructor(t,n){this.data=t,this.contentType=n||null}}function nt(e,t){switch(e){case y.RAW:return new M(re(t));case y.BASE64:case y.BASE64URL:return new M(se(e,t));case y.DATA_URL:return new M(st(t),ot(t))}throw $()}function re(e){const t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|r&63);else if((r&64512)===55296)if(!(n<e.length-1&&(e.charCodeAt(n+1)&64512)===56320))t.push(239,191,189);else{const o=r,i=e.charCodeAt(++n);r=65536|(o&1023)<<10|i&1023,t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63)}else(r&64512)===56320?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|r&63)}return new Uint8Array(t)}function rt(e){let t;try{t=decodeURIComponent(e)}catch{throw P(y.DATA_URL,"Malformed data URL.")}return re(t)}function se(e,t){switch(e){case y.BASE64:{const s=t.indexOf("-")!==-1,o=t.indexOf("_")!==-1;if(s||o)throw P(e,"Invalid character '"+(s?"-":"_")+"' found: is it base64url encoded?");break}case y.BASE64URL:{const s=t.indexOf("+")!==-1,o=t.indexOf("/")!==-1;if(s||o)throw P(e,"Invalid character '"+(s?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=tt(t)}catch(s){throw s.message.includes("polyfill")?s:P(e,"Invalid character found")}const r=new Uint8Array(n.length);for(let s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return r}class oe{constructor(t){this.base64=!1,this.contentType=null;const n=t.match(/^data:([^,]+)?,/);if(n===null)throw P(y.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const r=n[1]||null;r!=null&&(this.base64=it(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=t.substring(t.indexOf(",")+1)}}function st(e){const t=new oe(e);return t.base64?se(y.BASE64,t.rest):rt(t.rest)}function ot(e){return new oe(e).contentType}function it(e,t){return e.length>=t.length?e.substring(e.length-t.length)===t:!1}/**
168 * @license
169 * Copyright 2017 Google LLC
170 *
171 * Licensed under the Apache License, Version 2.0 (the "License");
172 * you may not use this file except in compliance with the License.
173 * You may obtain a copy of the License at
174 *
175 *   http://www.apache.org/licenses/LICENSE-2.0
176 *
177 * Unless required by applicable law or agreed to in writing, software
178 * distributed under the License is distributed on an "AS IS" BASIS,
179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
180 * See the License for the specific language governing permissions and
181 * limitations under the License.
182 */class k{constructor(t,n){let r=0,s="";K(t)?(this.data_=t,r=t.size,s=t.type):t instanceof ArrayBuffer?(n?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),r=this.data_.length):t instanceof Uint8Array&&(n?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),r=t.length),this.size_=r,this.type_=s}size(){return this.size_}type(){return this.type_}slice(t,n){if(K(this.data_)){const r=this.data_,s=et(r,t,n);return s===null?null:new k(s)}else{const r=new Uint8Array(this.data_.buffer,t,n-t);return new k(r,!0)}}static getBlob(...t){if(q()){const n=t.map(r=>r instanceof k?r.data_:r);return new k(Qe.apply(null,n))}else{const n=t.map(i=>j(i)?nt(y.RAW,i).data:i.data_);let r=0;n.forEach(i=>{r+=i.byteLength});const s=new Uint8Array(r);let o=0;return n.forEach(i=>{for(let a=0;a<i.length;a++)s[o++]=i[a]}),new k(s,!0)}}uploadData(){return this.data_}}/**
183 * @license
184 * Copyright 2017 Google LLC
185 *
186 * Licensed under the Apache License, Version 2.0 (the "License");
187 * you may not use this file except in compliance with the License.
188 * You may obtain a copy of the License at
189 *
190 *   http://www.apache.org/licenses/LICENSE-2.0
191 *
192 * Unless required by applicable law or agreed to in writing, software
193 * distributed under the License is distributed on an "AS IS" BASIS,
194 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
195 * See the License for the specific language governing permissions and
196 * limitations under the License.
197 */function ie(e){let t;try{t=JSON.parse(e)}catch{return null}return Ve(t)?t:null}/**
198 * @license
199 * Copyright 2017 Google LLC
200 *
201 * Licensed under the Apache License, Version 2.0 (the "License");
202 * you may not use this file except in compliance with the License.
203 * You may obtain a copy of the License at
204 *
205 *   http://www.apache.org/licenses/LICENSE-2.0
206 *
207 * Unless required by applicable law or agreed to in writing, software
208 * distributed under the License is distributed on an "AS IS" BASIS,
209 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
210 * See the License for the specific language governing permissions and
211 * limitations under the License.
212 */function at(e){if(e.length===0)return null;const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function ut(e,t){const n=t.split("/").filter(r=>r.length>0).join("/");return e.length===0?n:e+"/"+n}function ae(e){const t=e.lastIndexOf("/",e.length-2);return t===-1?e:e.slice(t+1)}/**
213 * @license
214 * Copyright 2017 Google LLC
215 *
216 * Licensed under the Apache License, Version 2.0 (the "License");
217 * you may not use this file except in compliance with the License.
218 * You may obtain a copy of the License at
219 *
220 *   http://www.apache.org/licenses/LICENSE-2.0
221 *
222 * Unless required by applicable law or agreed to in writing, software
223 * distributed under the License is distributed on an "AS IS" BASIS,
224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
225 * See the License for the specific language governing permissions and
226 * limitations under the License.
227 */function ct(e,t){return t}class d{constructor(t,n,r,s){this.server=t,this.local=n||t,this.writable=!!r,this.xform=s||ct}}let L=null;function lt(e){return!j(e)||e.length<2?e:ae(e)}function ue(){if(L)return L;const e=[];e.push(new d("bucket")),e.push(new d("generation")),e.push(new d("metageneration")),e.push(new d("name","fullPath",!0));function t(o,i){return lt(i)}const n=new d("name");n.xform=t,e.push(n);function r(o,i){return i!==void 0?Number(i):i}const s=new d("size");return s.xform=r,e.push(s),e.push(new d("timeCreated")),e.push(new d("updated")),e.push(new d("md5Hash",null,!0)),e.push(new d("cacheControl",null,!0)),e.push(new d("contentDisposition",null,!0)),e.push(new d("contentEncoding",null,!0)),e.push(new d("contentLanguage",null,!0)),e.push(new d("contentType",null,!0)),e.push(new d("metadata","customMetadata",!0)),L=e,L}function ht(e,t){function n(){const r=e.bucket,s=e.fullPath,o=new _(r,s);return t._makeStorageReference(o)}Object.defineProperty(e,"ref",{get:n})}function dt(e,t,n){const r={};r.type="file";const s=n.length;for(let o=0;o<s;o++){const i=n[o];r[i.local]=i.xform(r,t[i.server])}return ht(r,e),r}function ce(e,t,n){const r=ie(t);return r===null?null:dt(e,r,n)}function ft(e,t,n,r){const s=ie(t);if(s===null||!j(s.downloadTokens))return null;const o=s.downloadTokens;if(o.length===0)return null;const i=encodeURIComponent;return o.split(",").map(c=>{const g=e.bucket,R=e.fullPath,m="/b/"+i(g)+"/o/"+i(R),b=v(m,n,r),w=ne({alt:"media",token:c});return b+w}
227)[0]}function pt(e,t){const n={},r=t.length;for(let s=0;s<r;s++){const o=t[s];o.writable&&(n[o.server]=e[o.local])}return JSON.stringify(n)}class V{constructor(t,n,r,s){this.url=t,this.method=n,this.handler=r,this.timeout=s,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}/**
228 * @license
229 * Copyright 2017 Google LLC
230 *
231 * Licensed under the Apache License, Version 2.0 (the "License");
232 * you may not use this file except in compliance with the License.
233 * You may obtain a copy of the License at
234 *
235 *   http://www.apache.org/licenses/LICENSE-2.0
236 *
237 * Unless required by applicable law or agreed to in writing, software
238 * distributed under the License is distributed on an "AS IS" BASIS,
239 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240 * See the License for the specific language governing permissions and
241 * limitations under the License.
242 */function le(e){if(!e)throw $()}function _t(e,t){function n(r,s){const o=ce(e,s,t);return le(o!==null),o}return n}function gt(e,t){function n(r,s){const o=ce(e,s,t);return le(o!==null),ft(o,s,e.host,e._protocol)}return n}function he(e){function t(n,r){let s;return n.getStatus()===401?n.getErrorText().includes("Firebase App Check token is invalid")?s=Ne():s=Ie():n.getStatus()===402?s=Ue(e.bucket):n.getStatus()===403?s=Pe(e.path):s=r,s.status=n.getStatus(),s.serverResponse=r.serverResponse,s}return t}function de(e){const t=he(e);function n(r,s){let o=t(r,s);return r.getStatus()===404&&(o=Oe(e.path)),o.serverResponse=s.serverResponse,o}return n}function mt(e,t,n){const r=t.fullServerUrl(),s=v(r,e.host,e._protocol),o="GET",i=e.maxOperationRetryTime,a=new V(s,o,gt(e,n),i);return a.errorHandler=de(t),a}function Rt(e,t){const n=t.fullServerUrl(),r=v(n,e.host,e._protocol),s="DELETE",o=e.maxOperationRetryTime;function i(u,c){}const a=new V(r,s,i,o);return a.successCodes=[200,204],a.errorHandler=de(t),a}function bt(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}function wt(e,t,n){const r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=bt(null,t)),r}function Tt(e,t,n,r,s){const o=t.bucketOnlyServerUrl(),i={"X-Goog-Upload-Protocol":"multipart"};function a(){let T="";for(let p=0;p<2;p++)T=T+Math.random().toString().slice(2);return T}const u=a();i["Content-Type"]="multipart/related; boundary="+u;const c=wt(t,r,s),g=pt(c,n),R="--"+u+`\r
243Content-Type: application/json; charset=utf-8\r
244\r
245`+g+`\r
246--`+u+`\r
247Content-Type: `+c.contentType+`\r
248\r
249`,m=`\r
250--`+u+"--",b=k.getBlob(R,r,m);if(b===null)throw Se();const w={name:c.fullPath},U=v(o,e.host,e._protocol),f="POST",I=e.maxUploadRetryTime,E=new V(U,f,_t(e,n),I);return E.urlParams=w,E.headers=i,E.body=b.uploadData(),E.errorHandler=he(t),E}class yt{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=A.NO_ERROR,this.sendPromise_=new Promise(t=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=A.ABORT,t()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=A.NETWORK_ERROR,t()}),this.xhr_.addEventListener("load",()=>{t()})})}send(t,n,r,s){if(this.sent_)throw N("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(n,t,!0),s!==void 0)for(const o in s)s.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,s[o].toString());return r!==void 0?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw N("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw N("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw N("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw N("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)}}class kt extends yt{initXhr(){this.xhr_.responseType="text"}}function z(){return new kt}/**
251 * @license
252 * Copyright 2019 Google LLC
253 *
254 * Licensed under the Apache License, Version 2.0 (the "License");
255 * you may not use this file except in compliance with the License.
256 * You may obtain a copy of the License at
257 *
258 *   http://www.apache.org/licenses/LICENSE-2.0
259 *
260 * Unless required by applicable law or agreed to in writing, software
261 * distributed under the License is distributed on an "AS IS" BASIS,
262 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
263 * See the License for the specific language governing permissions and
264 * limitations under the License.
265 */class O{constructor(t,n){this._service=t,n instanceof _?this._location=n:this._location=_.makeFromUrl(n,t.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(t,n){return new O(t,n)}get root(){const t=new _(this._location.bucket,"");return this._newRef(this._service,t)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return ae(this._location.path)}get storage(){return this._service}get parent(){const t=at(this._location.path);if(t===null)return null;const n=new _(this._location.bucket,t);return new O(this._service,n)}_throwIfRoot(t){if(this._location.path==="")throw Me(t)}}function Et(e,t,n){e._throwIfRoot("uploadBytes");const r=Tt(e.storage,e._location,ue(),new k(t,!0),n);return e.storage.makeRequestWithTokens(r,z).then(s=>({metadata:s,ref:e}))}function At(e){e._throwIfRoot("getDownloadURL");const t=mt(e.storage,e._location,ue());return e.storage.makeRequestWithTokens(t,z).then(n=>{if(n===null)throw Be();return n})}function Ot(e){e._throwIfRoot("deleteObject");const t=Rt(e.storage,e._location);return e.storage.makeRequestWithTokens(t,z)}function Ut(e,t){const n=ut(e._location.path,t),r=new _(e._location.bucket,n);return new O(e.storage,r)}/**
266 * @license
267 * Copyright 2017 Google LLC
268 *
269 * Licensed under the Apache License, Version 2.0 (the "License");
270 * you may not use this file except in compliance with the License.
271 * You may obtain a copy of the License at
272 *
273 *   http://www.apache.org/licenses/LICENSE-2.0
274 *
275 * Unless required by applicable law or agreed to in writing, software
276 * distributed under the License is distributed on an "AS IS" BASIS,
277 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
278 * See the License for the specific language governing permissions and
279 * limitations under the License.
280 */function It(e){return/^[A-Za-z]+:\/\//.test(e)}function Nt(e,t){return new O(e,t)}function fe(e,t){if(e instanceof W){const n=e;if(n._bucket==null)throw ve();const r=new O(n,n._bucket);return t!=null?fe(r,t):r}else return t!==void 0?Ut(e,t):e}function Pt(e,t){if(t&&It(t)){if(e instanceof W)return Nt(e,t);throw H("To use ref(service, url), the first argument must be a Storage instance.")}else return fe(e,t)}function Y(e,t){const n=t==null?void 0:t[ee];return n==null?null:_.makeFromBucketSpec(n,e)}function Ct(e,t,n,r={}){e.host=`${t}:${n}`,e._protocol="http";const{mockUserToken:s}=r;s&&(e._overrideAuthToken=typeof s=="string"?s:ke(s,e.app.options.projectId))}class W{constructor(t,n,r,s,o){this.app=t,this._authProvider=n,this._appCheckProvider=r,this._url=s,this._firebaseVersion=o,this._bucket=null,this._host=Q,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=Ee,this._maxUploadRetryTime=Ae,this._requests=new Set,s!=null?this._bucket=_.makeFromBucketSpec(s,this._host):this._bucket=Y(this._host,this.app.options)}get host(){return this._host}set host(t){this._host=t,this._url!=null?this._bucket=_.makeFromBucketSpec(this._url,t):this._bucket=Y(t,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(t){G("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(t){G("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const t=this._authProvider.getImmediate({optional:!0});if(t){const n=await t.getToken();if(n!==null)return n.accessToken}return null}async _getAppCheckToken(){const t=this._appCheckProvider.getImmediate({optional:!0});return t?(await t.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEac
280h(t=>t.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(t){return new O(this,t)}_makeRequest(t,n,r,s,o=!0){if(this._deleted)return new He(te());{const i=Ze(t,this._appId,r,s,n,this._firebaseVersion,o);return this._requests.add(i),i.getPromise().then(()=>this._requests.delete(i),()=>this._requests.delete(i)),i}}async makeRequestWithTokens(t,n){const[r,s]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(t,n,r,s).getPromise()}}const Z="@firebase/storage",J="0.13.2";/**
281 * @license
282 * Copyright 2020 Google LLC
283 *
284 * Licensed under the Apache License, Version 2.0 (the "License");
285 * you may not use this file except in compliance with the License.
286 * You may obtain a copy of the License at
287 *
288 *   http://www.apache.org/licenses/LICENSE-2.0
289 *
290 * Unless required by applicable law or agreed to in writing, software
291 * distributed under the License is distributed on an "AS IS" BASIS,
292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
293 * See the License for the specific language governing permissions and
294 * limitations under the License.
295 */const pe="storage";function St(e,t,n){return e=C(e),Et(e,t,n)}function Bt(e){return e=C(e),At(e)}function Ft(e){return e=C(e),Ot(e)}function Mt(e,t){return e=C(e),Pt(e,t)}function Ht(e=ye(),t){e=C(e);const r=we(e,pe).getImmediate({identifier:t}),s=Te("storage");return s&&Dt(r,...s),r}function Dt(e,t,n,r={}){Ct(e,t,n,r)}function xt(e,{instanceIdentifier:t}){const n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),s=e.getProvider("app-check-internal");return new W(n,r,s,t,Re)}function Lt(){ge(new me(pe,xt,"PUBLIC").setMultipleInstances(!0)),X(Z,J,""),X(Z,J,"esm2017")}Lt();export{h as StorageError,l as StorageErrorCode,y as StringFormat,k as _FbsBlob,_ as _Location,nt as _dataFromString,H as _invalidArgument,Me as _invalidRootOperation,Dt as connectStorageEmulator,Ft as deleteObject,Bt as getDownloadURL,Ht as getStorage,Mt as ref,St as uploadBytes};

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.