oraculo-ui 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OraculoSeccionBonoBienvenida-4ZHLRFV2.css +221 -0
- package/dist/OraculoSeccionBonoBienvenida-4ZHLRFV2.css.map +1 -0
- package/dist/OraculoSeccionBonoBienvenida-6L54EBL3.mjs +9 -0
- package/dist/OraculoSeccionBonoBienvenida-6L54EBL3.mjs.map +1 -0
- package/dist/OraculoSeccionCasino-CPSKAAFH.css +398 -0
- package/dist/OraculoSeccionCasino-CPSKAAFH.css.map +1 -0
- package/dist/OraculoSeccionCasino-FHD2WBDU.mjs +13 -0
- package/dist/OraculoSeccionCasino-FHD2WBDU.mjs.map +1 -0
- package/dist/{OraculoSeccionCasino-H6CXFXMN.mjs → OraculoSeccionCasino-LRZCQVLY.mjs} +1 -1
- package/dist/{OraculoSeccionCasino-WBPCNYC5.mjs → OraculoSeccionCasino-ORWFZCMV.mjs} +1 -1
- package/dist/OraculoSeccionCasinoEnVivo-7W64K4YQ.css +157 -0
- package/dist/OraculoSeccionCasinoEnVivo-7W64K4YQ.css.map +1 -0
- package/dist/OraculoSeccionCasinoEnVivo-EPVIACRV.mjs +9 -0
- package/dist/OraculoSeccionCasinoEnVivo-EPVIACRV.mjs.map +1 -0
- package/dist/OraculoSeccionClubOlimpo-63QCT4A2.mjs +10 -0
- package/dist/OraculoSeccionClubOlimpo-63QCT4A2.mjs.map +1 -0
- package/dist/OraculoSeccionClubOlimpo-BLUJXLUC.mjs +8 -0
- package/dist/OraculoSeccionClubOlimpo-BLUJXLUC.mjs.map +1 -0
- package/dist/OraculoSeccionClubOlimpo-F2AFK4G3.css +274 -0
- package/dist/OraculoSeccionClubOlimpo-F2AFK4G3.css.map +1 -0
- package/dist/OraculoSeccionClubOlimpo-ZCBMTUL3.css +117 -0
- package/dist/OraculoSeccionClubOlimpo-ZCBMTUL3.css.map +1 -0
- package/dist/{OraculoSeccionDestacados-EPL4KZCF.mjs → OraculoSeccionDestacados-2KCEN6PZ.mjs} +1 -1
- package/dist/OraculoSeccionDestacados-5RFVEBFL.mjs +13 -0
- package/dist/OraculoSeccionDestacados-5RFVEBFL.mjs.map +1 -0
- package/dist/{OraculoSeccionDestacados-IMREYQ6W.mjs → OraculoSeccionDestacados-6D4LKX4H.mjs} +1 -1
- package/dist/OraculoSeccionDestacados-AMMYUK67.css +398 -0
- package/dist/OraculoSeccionDestacados-AMMYUK67.css.map +1 -0
- package/dist/OraculoSeccionTopJuegos-K6CHEKEP.mjs +13 -0
- package/dist/OraculoSeccionTopJuegos-K6CHEKEP.mjs.map +1 -0
- package/dist/{OraculoSeccionTopJuegos-DWEO36ND.mjs → OraculoSeccionTopJuegos-LEFQWP7T.mjs} +1 -1
- package/dist/{OraculoSeccionTopJuegos-FKAD2YD3.mjs → OraculoSeccionTopJuegos-RBVOHPDV.mjs} +1 -1
- package/dist/OraculoSeccionTopJuegos-XBGNNR6G.css +398 -0
- package/dist/OraculoSeccionTopJuegos-XBGNNR6G.css.map +1 -0
- package/dist/{OraculoSeccionVirtuales-IBYOMEJV.mjs → OraculoSeccionVirtuales-FKHGLEVT.mjs} +1 -1
- package/dist/{OraculoSeccionVirtuales-N2ETKRK7.mjs → OraculoSeccionVirtuales-N6FY52CM.mjs} +1 -1
- package/dist/OraculoSeccionVirtuales-NEIWD2BT.mjs +13 -0
- package/dist/OraculoSeccionVirtuales-NEIWD2BT.mjs.map +1 -0
- package/dist/OraculoSeccionVirtuales-SSM6EDST.css +398 -0
- package/dist/OraculoSeccionVirtuales-SSM6EDST.css.map +1 -0
- package/dist/{chunk-VYYKDD5L.mjs → chunk-7IWMEE6R.mjs} +318 -1117
- package/dist/chunk-FIOWVLJP.mjs +7 -0
- package/dist/chunk-FIOWVLJP.mjs.map +1 -0
- package/dist/{chunk-ECHAXSTL.mjs → chunk-FROEVP3X.mjs} +314 -1114
- package/dist/chunk-IGAIIVJZ.mjs +74 -0
- package/dist/chunk-IGAIIVJZ.mjs.map +1 -0
- package/dist/chunk-MC4XEBI3.mjs +1277 -0
- package/dist/chunk-MC4XEBI3.mjs.map +1 -0
- package/dist/chunk-PYHDJZX3.mjs +476 -0
- package/dist/chunk-PYHDJZX3.mjs.map +1 -0
- package/dist/chunk-THUJNRMX.mjs +119 -0
- package/dist/chunk-THUJNRMX.mjs.map +1 -0
- package/dist/chunk-WTK2IT5O.mjs +250 -0
- package/dist/chunk-WTK2IT5O.mjs.map +1 -0
- package/dist/chunk-XNMUIY72.mjs +10 -0
- package/dist/chunk-XNMUIY72.mjs.map +1 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +302 -1060
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -1006,8 +1006,8 @@ var require_service_config = __commonJS({
|
|
|
1006
1006
|
if (!("name" in obj) || !Array.isArray(obj.name)) {
|
|
1007
1007
|
throw new Error("Invalid method config: invalid name array");
|
|
1008
1008
|
}
|
|
1009
|
-
for (const
|
|
1010
|
-
result.name.push(validateName(
|
|
1009
|
+
for (const name3 of obj.name) {
|
|
1010
|
+
result.name.push(validateName(name3));
|
|
1011
1011
|
}
|
|
1012
1012
|
if ("waitForReady" in obj) {
|
|
1013
1013
|
if (typeof obj.waitForReady !== "boolean") {
|
|
@@ -1103,13 +1103,13 @@ var require_service_config = __commonJS({
|
|
|
1103
1103
|
}
|
|
1104
1104
|
const seenMethodNames = [];
|
|
1105
1105
|
for (const methodConfig of result.methodConfig) {
|
|
1106
|
-
for (const
|
|
1106
|
+
for (const name3 of methodConfig.name) {
|
|
1107
1107
|
for (const seenName of seenMethodNames) {
|
|
1108
|
-
if (
|
|
1109
|
-
throw new Error(`Invalid service config: duplicate name ${
|
|
1108
|
+
if (name3.service === seenName.service && name3.method === seenName.method) {
|
|
1109
|
+
throw new Error(`Invalid service config: duplicate name ${name3.service}/${name3.method}`);
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
seenMethodNames.push(
|
|
1112
|
+
seenMethodNames.push(name3);
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
1115
|
return result;
|
|
@@ -1713,20 +1713,20 @@ var require_resolving_load_balancer = __commonJS({
|
|
|
1713
1713
|
"EMPTY"
|
|
1714
1714
|
];
|
|
1715
1715
|
function hasMatchingName(service, method, methodConfig, matchLevel) {
|
|
1716
|
-
for (const
|
|
1716
|
+
for (const name3 of methodConfig.name) {
|
|
1717
1717
|
switch (matchLevel) {
|
|
1718
1718
|
case "EMPTY":
|
|
1719
|
-
if (!
|
|
1719
|
+
if (!name3.service && !name3.method) {
|
|
1720
1720
|
return true;
|
|
1721
1721
|
}
|
|
1722
1722
|
break;
|
|
1723
1723
|
case "SERVICE":
|
|
1724
|
-
if (
|
|
1724
|
+
if (name3.service === service && !name3.method) {
|
|
1725
1725
|
return true;
|
|
1726
1726
|
}
|
|
1727
1727
|
break;
|
|
1728
1728
|
case "SERVICE_AND_METHOD":
|
|
1729
|
-
if (
|
|
1729
|
+
if (name3.service === service && name3.method === method) {
|
|
1730
1730
|
return true;
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
@@ -2982,13 +2982,13 @@ var require_make_client = __commonJS({
|
|
|
2982
2982
|
}
|
|
2983
2983
|
class ServiceClientImpl extends client_1.Client {
|
|
2984
2984
|
}
|
|
2985
|
-
Object.keys(methods).forEach((
|
|
2986
|
-
if (isPrototypePolluted(
|
|
2985
|
+
Object.keys(methods).forEach((name3) => {
|
|
2986
|
+
if (isPrototypePolluted(name3)) {
|
|
2987
2987
|
return;
|
|
2988
2988
|
}
|
|
2989
|
-
const attrs = methods[
|
|
2989
|
+
const attrs = methods[name3];
|
|
2990
2990
|
let methodType;
|
|
2991
|
-
if (typeof
|
|
2991
|
+
if (typeof name3 === "string" && name3.charAt(0) === "$") {
|
|
2992
2992
|
throw new Error("Method names cannot start with $");
|
|
2993
2993
|
}
|
|
2994
2994
|
if (attrs.requestStream) {
|
|
@@ -3007,10 +3007,10 @@ var require_make_client = __commonJS({
|
|
|
3007
3007
|
const serialize = attrs.requestSerialize;
|
|
3008
3008
|
const deserialize = attrs.responseDeserialize;
|
|
3009
3009
|
const methodFunc = partial(requesterFuncs[methodType], attrs.path, serialize, deserialize);
|
|
3010
|
-
ServiceClientImpl.prototype[
|
|
3011
|
-
Object.assign(ServiceClientImpl.prototype[
|
|
3010
|
+
ServiceClientImpl.prototype[name3] = methodFunc;
|
|
3011
|
+
Object.assign(ServiceClientImpl.prototype[name3], attrs);
|
|
3012
3012
|
if (attrs.originalName && !isPrototypePolluted(attrs.originalName)) {
|
|
3013
|
-
ServiceClientImpl.prototype[attrs.originalName] = ServiceClientImpl.prototype[
|
|
3013
|
+
ServiceClientImpl.prototype[attrs.originalName] = ServiceClientImpl.prototype[name3];
|
|
3014
3014
|
}
|
|
3015
3015
|
});
|
|
3016
3016
|
ServiceClientImpl.service = methods;
|
|
@@ -4060,7 +4060,7 @@ var require_minimal = __commonJS({
|
|
|
4060
4060
|
util.isString = function isString(value) {
|
|
4061
4061
|
return typeof value === "string" || value instanceof String;
|
|
4062
4062
|
};
|
|
4063
|
-
util.isObject = function
|
|
4063
|
+
util.isObject = function isObject(value) {
|
|
4064
4064
|
return value && typeof value === "object";
|
|
4065
4065
|
};
|
|
4066
4066
|
util.isset = /**
|
|
@@ -4118,7 +4118,7 @@ var require_minimal = __commonJS({
|
|
|
4118
4118
|
util.lcFirst = function lcFirst(str) {
|
|
4119
4119
|
return str.charAt(0).toLowerCase() + str.substring(1);
|
|
4120
4120
|
};
|
|
4121
|
-
function newError(
|
|
4121
|
+
function newError(name3) {
|
|
4122
4122
|
function CustomError(message, properties) {
|
|
4123
4123
|
if (!(this instanceof CustomError))
|
|
4124
4124
|
return new CustomError(message, properties);
|
|
@@ -4141,7 +4141,7 @@ var require_minimal = __commonJS({
|
|
|
4141
4141
|
},
|
|
4142
4142
|
name: {
|
|
4143
4143
|
get: function get() {
|
|
4144
|
-
return
|
|
4144
|
+
return name3;
|
|
4145
4145
|
},
|
|
4146
4146
|
set: void 0,
|
|
4147
4147
|
enumerable: false,
|
|
@@ -4175,9 +4175,9 @@ var require_minimal = __commonJS({
|
|
|
4175
4175
|
};
|
|
4176
4176
|
};
|
|
4177
4177
|
util.oneOfSetter = function setOneOf(fieldNames) {
|
|
4178
|
-
return function(
|
|
4178
|
+
return function(name3) {
|
|
4179
4179
|
for (var i = 0; i < fieldNames.length; ++i)
|
|
4180
|
-
if (fieldNames[i] !==
|
|
4180
|
+
if (fieldNames[i] !== name3)
|
|
4181
4181
|
delete this[fieldNames[i]];
|
|
4182
4182
|
};
|
|
4183
4183
|
};
|
|
@@ -4988,8 +4988,8 @@ var require_namespace = __commonJS({
|
|
|
4988
4988
|
var Type;
|
|
4989
4989
|
var Service;
|
|
4990
4990
|
var Enum;
|
|
4991
|
-
Namespace.fromJSON = function fromJSON2(
|
|
4992
|
-
return new Namespace(
|
|
4991
|
+
Namespace.fromJSON = function fromJSON2(name3, json) {
|
|
4992
|
+
return new Namespace(name3, json.options).addJSON(json.nested);
|
|
4993
4993
|
};
|
|
4994
4994
|
function arrayToJSON(array, toJSONOptions) {
|
|
4995
4995
|
if (!(array && array.length))
|
|
@@ -5008,16 +5008,16 @@ var require_namespace = __commonJS({
|
|
|
5008
5008
|
}
|
|
5009
5009
|
return false;
|
|
5010
5010
|
};
|
|
5011
|
-
Namespace.isReservedName = function isReservedName(reserved,
|
|
5011
|
+
Namespace.isReservedName = function isReservedName(reserved, name3) {
|
|
5012
5012
|
if (reserved) {
|
|
5013
5013
|
for (var i = 0; i < reserved.length; ++i)
|
|
5014
|
-
if (reserved[i] ===
|
|
5014
|
+
if (reserved[i] === name3)
|
|
5015
5015
|
return true;
|
|
5016
5016
|
}
|
|
5017
5017
|
return false;
|
|
5018
5018
|
};
|
|
5019
|
-
function Namespace(
|
|
5020
|
-
ReflectionObject.call(this,
|
|
5019
|
+
function Namespace(name3, options) {
|
|
5020
|
+
ReflectionObject.call(this, name3, options);
|
|
5021
5021
|
this.nested = void 0;
|
|
5022
5022
|
this._nestedArray = null;
|
|
5023
5023
|
this._lookupCache = {};
|
|
@@ -5059,13 +5059,13 @@ var require_namespace = __commonJS({
|
|
|
5059
5059
|
}
|
|
5060
5060
|
return this;
|
|
5061
5061
|
};
|
|
5062
|
-
Namespace.prototype.get = function get(
|
|
5063
|
-
return this.nested && this.nested[
|
|
5062
|
+
Namespace.prototype.get = function get(name3) {
|
|
5063
|
+
return this.nested && this.nested[name3] || null;
|
|
5064
5064
|
};
|
|
5065
|
-
Namespace.prototype.getEnum = function getEnum(
|
|
5066
|
-
if (this.nested && this.nested[
|
|
5067
|
-
return this.nested[
|
|
5068
|
-
throw Error("no such enum: " +
|
|
5065
|
+
Namespace.prototype.getEnum = function getEnum(name3) {
|
|
5066
|
+
if (this.nested && this.nested[name3] instanceof Enum)
|
|
5067
|
+
return this.nested[name3].values;
|
|
5068
|
+
throw Error("no such enum: " + name3);
|
|
5069
5069
|
};
|
|
5070
5070
|
Namespace.prototype.add = function add(object) {
|
|
5071
5071
|
if (!(object instanceof Field && object.extend !== void 0 || object instanceof Type || object instanceof OneOf || object instanceof Enum || object instanceof Service || object instanceof Namespace))
|
|
@@ -5255,16 +5255,16 @@ var require_mapfield = __commonJS({
|
|
|
5255
5255
|
((MapField.prototype = Object.create(Field.prototype)).constructor = MapField).className = "MapField";
|
|
5256
5256
|
var types = require_types();
|
|
5257
5257
|
var util = require_util();
|
|
5258
|
-
function MapField(
|
|
5259
|
-
Field.call(this,
|
|
5258
|
+
function MapField(name3, id, keyType, type, options, comment) {
|
|
5259
|
+
Field.call(this, name3, id, type, void 0, void 0, options, comment);
|
|
5260
5260
|
if (!util.isString(keyType))
|
|
5261
5261
|
throw TypeError("keyType must be a string");
|
|
5262
5262
|
this.keyType = keyType;
|
|
5263
5263
|
this.resolvedKeyType = null;
|
|
5264
5264
|
this.map = true;
|
|
5265
5265
|
}
|
|
5266
|
-
MapField.fromJSON = function fromJSON2(
|
|
5267
|
-
return new MapField(
|
|
5266
|
+
MapField.fromJSON = function fromJSON2(name3, json) {
|
|
5267
|
+
return new MapField(name3, json.id, json.keyType, json.type, json.options, json.comment);
|
|
5268
5268
|
};
|
|
5269
5269
|
MapField.prototype.toJSON = function toJSON(toJSONOptions) {
|
|
5270
5270
|
var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;
|
|
@@ -5310,7 +5310,7 @@ var require_method = __commonJS({
|
|
|
5310
5310
|
var ReflectionObject = require_object();
|
|
5311
5311
|
((Method.prototype = Object.create(ReflectionObject.prototype)).constructor = Method).className = "Method";
|
|
5312
5312
|
var util = require_util();
|
|
5313
|
-
function Method(
|
|
5313
|
+
function Method(name3, type, requestType, responseType, requestStream, responseStream, options, comment, parsedOptions) {
|
|
5314
5314
|
if (util.isObject(requestStream)) {
|
|
5315
5315
|
options = requestStream;
|
|
5316
5316
|
requestStream = responseStream = void 0;
|
|
@@ -5324,7 +5324,7 @@ var require_method = __commonJS({
|
|
|
5324
5324
|
throw TypeError("requestType must be a string");
|
|
5325
5325
|
if (!util.isString(responseType))
|
|
5326
5326
|
throw TypeError("responseType must be a string");
|
|
5327
|
-
ReflectionObject.call(this,
|
|
5327
|
+
ReflectionObject.call(this, name3, options);
|
|
5328
5328
|
this.type = type || "rpc";
|
|
5329
5329
|
this.requestType = requestType;
|
|
5330
5330
|
this.requestStream = requestStream ? true : void 0;
|
|
@@ -5335,8 +5335,8 @@ var require_method = __commonJS({
|
|
|
5335
5335
|
this.comment = comment;
|
|
5336
5336
|
this.parsedOptions = parsedOptions;
|
|
5337
5337
|
}
|
|
5338
|
-
Method.fromJSON = function fromJSON2(
|
|
5339
|
-
return new Method(
|
|
5338
|
+
Method.fromJSON = function fromJSON2(name3, json) {
|
|
5339
|
+
return new Method(name3, json.type, json.requestType, json.responseType, json.requestStream, json.responseStream, json.options, json.comment, json.parsedOptions);
|
|
5340
5340
|
};
|
|
5341
5341
|
Method.prototype.toJSON = function toJSON(toJSONOptions) {
|
|
5342
5342
|
var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;
|
|
@@ -5380,13 +5380,13 @@ var require_service2 = __commonJS({
|
|
|
5380
5380
|
var Method = require_method();
|
|
5381
5381
|
var util = require_util();
|
|
5382
5382
|
var rpc = require_rpc();
|
|
5383
|
-
function Service(
|
|
5384
|
-
Namespace.call(this,
|
|
5383
|
+
function Service(name3, options) {
|
|
5384
|
+
Namespace.call(this, name3, options);
|
|
5385
5385
|
this.methods = {};
|
|
5386
5386
|
this._methodsArray = null;
|
|
5387
5387
|
}
|
|
5388
|
-
Service.fromJSON = function fromJSON2(
|
|
5389
|
-
var service = new Service(
|
|
5388
|
+
Service.fromJSON = function fromJSON2(name3, json) {
|
|
5389
|
+
var service = new Service(name3, json.options);
|
|
5390
5390
|
if (json.methods)
|
|
5391
5391
|
for (var names = Object.keys(json.methods), i = 0; i < names.length; ++i)
|
|
5392
5392
|
service.add(Method.fromJSON(names[i], json.methods[names[i]]));
|
|
@@ -5424,8 +5424,8 @@ var require_service2 = __commonJS({
|
|
|
5424
5424
|
service._methodsArray = null;
|
|
5425
5425
|
return service;
|
|
5426
5426
|
}
|
|
5427
|
-
Service.prototype.get = function get(
|
|
5428
|
-
return this.methods[
|
|
5427
|
+
Service.prototype.get = function get(name3) {
|
|
5428
|
+
return this.methods[name3] || Namespace.prototype.get.call(this, name3);
|
|
5429
5429
|
};
|
|
5430
5430
|
Service.prototype.resolveAll = function resolveAll() {
|
|
5431
5431
|
if (!this._needsRecursiveResolve) return this;
|
|
@@ -5890,8 +5890,8 @@ var require_wrappers = __commonJS({
|
|
|
5890
5890
|
wrappers[".google.protobuf.Any"] = {
|
|
5891
5891
|
fromObject: function(object) {
|
|
5892
5892
|
if (object && object["@type"]) {
|
|
5893
|
-
var
|
|
5894
|
-
var type = this.lookup(
|
|
5893
|
+
var name3 = object["@type"].substring(object["@type"].lastIndexOf("/") + 1);
|
|
5894
|
+
var type = this.lookup(name3);
|
|
5895
5895
|
if (type) {
|
|
5896
5896
|
var type_url = object["@type"].charAt(0) === "." ? object["@type"].slice(1) : object["@type"];
|
|
5897
5897
|
if (type_url.indexOf("/") === -1) {
|
|
@@ -5908,11 +5908,11 @@ var require_wrappers = __commonJS({
|
|
|
5908
5908
|
toObject: function(message, options) {
|
|
5909
5909
|
var googleApi = "type.googleapis.com/";
|
|
5910
5910
|
var prefix = "";
|
|
5911
|
-
var
|
|
5911
|
+
var name3 = "";
|
|
5912
5912
|
if (options && options.json && message.type_url && message.value) {
|
|
5913
|
-
|
|
5913
|
+
name3 = message.type_url.substring(message.type_url.lastIndexOf("/") + 1);
|
|
5914
5914
|
prefix = message.type_url.substring(0, message.type_url.lastIndexOf("/") + 1);
|
|
5915
|
-
var type = this.lookup(
|
|
5915
|
+
var type = this.lookup(name3);
|
|
5916
5916
|
if (type)
|
|
5917
5917
|
message = type.decode(message.value);
|
|
5918
5918
|
}
|
|
@@ -5922,8 +5922,8 @@ var require_wrappers = __commonJS({
|
|
|
5922
5922
|
if (prefix === "") {
|
|
5923
5923
|
prefix = googleApi;
|
|
5924
5924
|
}
|
|
5925
|
-
|
|
5926
|
-
object["@type"] =
|
|
5925
|
+
name3 = prefix + messageName;
|
|
5926
|
+
object["@type"] = name3;
|
|
5927
5927
|
return object;
|
|
5928
5928
|
}
|
|
5929
5929
|
return this.toObject(message, options);
|
|
@@ -5953,8 +5953,8 @@ var require_type = __commonJS({
|
|
|
5953
5953
|
var verifier = require_verifier();
|
|
5954
5954
|
var converter = require_converter();
|
|
5955
5955
|
var wrappers = require_wrappers();
|
|
5956
|
-
function Type(
|
|
5957
|
-
Namespace.call(this,
|
|
5956
|
+
function Type(name3, options) {
|
|
5957
|
+
Namespace.call(this, name3, options);
|
|
5958
5958
|
this.fields = {};
|
|
5959
5959
|
this.oneofs = void 0;
|
|
5960
5960
|
this.extensions = void 0;
|
|
@@ -6057,8 +6057,8 @@ var require_type = __commonJS({
|
|
|
6057
6057
|
delete type.verify;
|
|
6058
6058
|
return type;
|
|
6059
6059
|
}
|
|
6060
|
-
Type.fromJSON = function fromJSON2(
|
|
6061
|
-
var type = new Type(
|
|
6060
|
+
Type.fromJSON = function fromJSON2(name3, json) {
|
|
6061
|
+
var type = new Type(name3, json.options);
|
|
6062
6062
|
type.extensions = json.extensions;
|
|
6063
6063
|
type.reserved = json.reserved;
|
|
6064
6064
|
var names = Object.keys(json.fields), i = 0;
|
|
@@ -6140,8 +6140,8 @@ var require_type = __commonJS({
|
|
|
6140
6140
|
});
|
|
6141
6141
|
return this;
|
|
6142
6142
|
};
|
|
6143
|
-
Type.prototype.get = function get(
|
|
6144
|
-
return this.fields[
|
|
6143
|
+
Type.prototype.get = function get(name3) {
|
|
6144
|
+
return this.fields[name3] || this.oneofs && this.oneofs[name3] || this.nested && this.nested[name3] || null;
|
|
6145
6145
|
};
|
|
6146
6146
|
Type.prototype.add = function add(object) {
|
|
6147
6147
|
if (this.get(object.name))
|
|
@@ -6194,8 +6194,8 @@ var require_type = __commonJS({
|
|
|
6194
6194
|
Type.prototype.isReservedId = function isReservedId(id) {
|
|
6195
6195
|
return Namespace.isReservedId(this.reserved, id);
|
|
6196
6196
|
};
|
|
6197
|
-
Type.prototype.isReservedName = function isReservedName(
|
|
6198
|
-
return Namespace.isReservedName(this.reserved,
|
|
6197
|
+
Type.prototype.isReservedName = function isReservedName(name3) {
|
|
6198
|
+
return Namespace.isReservedName(this.reserved, name3);
|
|
6199
6199
|
};
|
|
6200
6200
|
Type.prototype.create = function create(properties) {
|
|
6201
6201
|
return new this.ctor(properties);
|
|
@@ -6549,8 +6549,8 @@ var require_util = __commonJS({
|
|
|
6549
6549
|
};
|
|
6550
6550
|
var safePropBackslashRe = /\\/g;
|
|
6551
6551
|
var safePropQuoteRe = /"/g;
|
|
6552
|
-
util.isReserved = function isReserved(
|
|
6553
|
-
return /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(
|
|
6552
|
+
util.isReserved = function isReserved(name3) {
|
|
6553
|
+
return /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(name3);
|
|
6554
6554
|
};
|
|
6555
6555
|
util.safeProp = function safeProp(prop) {
|
|
6556
6556
|
if (!/^[$\w_]+$/.test(prop) || util.isReserved(prop))
|
|
@@ -6822,14 +6822,14 @@ var require_field = __commonJS({
|
|
|
6822
6822
|
var util = require_util();
|
|
6823
6823
|
var Type;
|
|
6824
6824
|
var ruleRe = /^required|optional|repeated$/;
|
|
6825
|
-
Field.fromJSON = function fromJSON2(
|
|
6826
|
-
var field = new Field(
|
|
6825
|
+
Field.fromJSON = function fromJSON2(name3, json) {
|
|
6826
|
+
var field = new Field(name3, json.id, json.type, json.rule, json.extend, json.options, json.comment);
|
|
6827
6827
|
if (json.edition)
|
|
6828
6828
|
field._edition = json.edition;
|
|
6829
6829
|
field._defaultEdition = "proto3";
|
|
6830
6830
|
return field;
|
|
6831
6831
|
};
|
|
6832
|
-
function Field(
|
|
6832
|
+
function Field(name3, id, type, rule, extend, options, comment) {
|
|
6833
6833
|
if (util.isObject(rule)) {
|
|
6834
6834
|
comment = extend;
|
|
6835
6835
|
options = rule;
|
|
@@ -6839,7 +6839,7 @@ var require_field = __commonJS({
|
|
|
6839
6839
|
options = extend;
|
|
6840
6840
|
extend = void 0;
|
|
6841
6841
|
}
|
|
6842
|
-
ReflectionObject.call(this,
|
|
6842
|
+
ReflectionObject.call(this, name3, options);
|
|
6843
6843
|
if (!util.isInteger(id) || id < 0)
|
|
6844
6844
|
throw TypeError("id must be a non-negative integer");
|
|
6845
6845
|
if (!util.isString(type))
|
|
@@ -6901,8 +6901,8 @@ var require_field = __commonJS({
|
|
|
6901
6901
|
this._features.field_presence !== "IMPLICIT";
|
|
6902
6902
|
}
|
|
6903
6903
|
});
|
|
6904
|
-
Field.prototype.setOption = function setOption(
|
|
6905
|
-
return ReflectionObject.prototype.setOption.call(this,
|
|
6904
|
+
Field.prototype.setOption = function setOption(name3, value, ifNotSet) {
|
|
6905
|
+
return ReflectionObject.prototype.setOption.call(this, name3, value, ifNotSet);
|
|
6906
6906
|
};
|
|
6907
6907
|
Field.prototype.toJSON = function toJSON(toJSONOptions) {
|
|
6908
6908
|
var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;
|
|
@@ -7016,20 +7016,20 @@ var require_oneof = __commonJS({
|
|
|
7016
7016
|
((OneOf.prototype = Object.create(ReflectionObject.prototype)).constructor = OneOf).className = "OneOf";
|
|
7017
7017
|
var Field = require_field();
|
|
7018
7018
|
var util = require_util();
|
|
7019
|
-
function OneOf(
|
|
7019
|
+
function OneOf(name3, fieldNames, options, comment) {
|
|
7020
7020
|
if (!Array.isArray(fieldNames)) {
|
|
7021
7021
|
options = fieldNames;
|
|
7022
7022
|
fieldNames = void 0;
|
|
7023
7023
|
}
|
|
7024
|
-
ReflectionObject.call(this,
|
|
7024
|
+
ReflectionObject.call(this, name3, options);
|
|
7025
7025
|
if (!(fieldNames === void 0 || Array.isArray(fieldNames)))
|
|
7026
7026
|
throw TypeError("fieldNames must be an Array");
|
|
7027
7027
|
this.oneof = fieldNames || [];
|
|
7028
7028
|
this.fieldsArray = [];
|
|
7029
7029
|
this.comment = comment;
|
|
7030
7030
|
}
|
|
7031
|
-
OneOf.fromJSON = function fromJSON2(
|
|
7032
|
-
return new OneOf(
|
|
7031
|
+
OneOf.fromJSON = function fromJSON2(name3, json) {
|
|
7032
|
+
return new OneOf(name3, json.oneof, json.options, json.comment);
|
|
7033
7033
|
};
|
|
7034
7034
|
OneOf.prototype.toJSON = function toJSON(toJSONOptions) {
|
|
7035
7035
|
var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;
|
|
@@ -7127,14 +7127,14 @@ var require_object = __commonJS({
|
|
|
7127
7127
|
var editions2023Defaults = { enum_type: "OPEN", field_presence: "EXPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" };
|
|
7128
7128
|
var proto2Defaults = { enum_type: "CLOSED", field_presence: "EXPLICIT", json_format: "LEGACY_BEST_EFFORT", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "EXPANDED", utf8_validation: "NONE" };
|
|
7129
7129
|
var proto3Defaults = { enum_type: "OPEN", field_presence: "IMPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" };
|
|
7130
|
-
function ReflectionObject(
|
|
7131
|
-
if (!util.isString(
|
|
7130
|
+
function ReflectionObject(name3, options) {
|
|
7131
|
+
if (!util.isString(name3))
|
|
7132
7132
|
throw TypeError("name must be a string");
|
|
7133
7133
|
if (options && !util.isObject(options))
|
|
7134
7134
|
throw TypeError("options must be an object");
|
|
7135
7135
|
this.options = options;
|
|
7136
7136
|
this.parsedOptions = null;
|
|
7137
|
-
this.name =
|
|
7137
|
+
this.name = name3;
|
|
7138
7138
|
this._edition = null;
|
|
7139
7139
|
this._defaultEdition = "proto2";
|
|
7140
7140
|
this._features = {};
|
|
@@ -7250,42 +7250,42 @@ var require_object = __commonJS({
|
|
|
7250
7250
|
ReflectionObject.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures() {
|
|
7251
7251
|
return {};
|
|
7252
7252
|
};
|
|
7253
|
-
ReflectionObject.prototype.getOption = function getOption(
|
|
7253
|
+
ReflectionObject.prototype.getOption = function getOption(name3) {
|
|
7254
7254
|
if (this.options)
|
|
7255
|
-
return this.options[
|
|
7255
|
+
return this.options[name3];
|
|
7256
7256
|
return void 0;
|
|
7257
7257
|
};
|
|
7258
|
-
ReflectionObject.prototype.setOption = function setOption(
|
|
7258
|
+
ReflectionObject.prototype.setOption = function setOption(name3, value, ifNotSet) {
|
|
7259
7259
|
if (!this.options)
|
|
7260
7260
|
this.options = {};
|
|
7261
|
-
if (/^features\./.test(
|
|
7262
|
-
util.setProperty(this.options,
|
|
7263
|
-
} else if (!ifNotSet || this.options[
|
|
7264
|
-
if (this.getOption(
|
|
7265
|
-
this.options[
|
|
7261
|
+
if (/^features\./.test(name3)) {
|
|
7262
|
+
util.setProperty(this.options, name3, value, ifNotSet);
|
|
7263
|
+
} else if (!ifNotSet || this.options[name3] === void 0) {
|
|
7264
|
+
if (this.getOption(name3) !== value) this.resolved = false;
|
|
7265
|
+
this.options[name3] = value;
|
|
7266
7266
|
}
|
|
7267
7267
|
return this;
|
|
7268
7268
|
};
|
|
7269
|
-
ReflectionObject.prototype.setParsedOption = function setParsedOption(
|
|
7269
|
+
ReflectionObject.prototype.setParsedOption = function setParsedOption(name3, value, propName) {
|
|
7270
7270
|
if (!this.parsedOptions) {
|
|
7271
7271
|
this.parsedOptions = [];
|
|
7272
7272
|
}
|
|
7273
7273
|
var parsedOptions = this.parsedOptions;
|
|
7274
7274
|
if (propName) {
|
|
7275
7275
|
var opt = parsedOptions.find(function(opt2) {
|
|
7276
|
-
return Object.prototype.hasOwnProperty.call(opt2,
|
|
7276
|
+
return Object.prototype.hasOwnProperty.call(opt2, name3);
|
|
7277
7277
|
});
|
|
7278
7278
|
if (opt) {
|
|
7279
|
-
var newValue = opt[
|
|
7279
|
+
var newValue = opt[name3];
|
|
7280
7280
|
util.setProperty(newValue, propName, value);
|
|
7281
7281
|
} else {
|
|
7282
7282
|
opt = {};
|
|
7283
|
-
opt[
|
|
7283
|
+
opt[name3] = util.setProperty({}, propName, value);
|
|
7284
7284
|
parsedOptions.push(opt);
|
|
7285
7285
|
}
|
|
7286
7286
|
} else {
|
|
7287
7287
|
var newOpt = {};
|
|
7288
|
-
newOpt[
|
|
7288
|
+
newOpt[name3] = value;
|
|
7289
7289
|
parsedOptions.push(newOpt);
|
|
7290
7290
|
}
|
|
7291
7291
|
return this;
|
|
@@ -7323,8 +7323,8 @@ var require_enum = __commonJS({
|
|
|
7323
7323
|
((Enum.prototype = Object.create(ReflectionObject.prototype)).constructor = Enum).className = "Enum";
|
|
7324
7324
|
var Namespace = require_namespace();
|
|
7325
7325
|
var util = require_util();
|
|
7326
|
-
function Enum(
|
|
7327
|
-
ReflectionObject.call(this,
|
|
7326
|
+
function Enum(name3, values, options, comment, comments, valuesOptions) {
|
|
7327
|
+
ReflectionObject.call(this, name3, options);
|
|
7328
7328
|
if (values && typeof values !== "object")
|
|
7329
7329
|
throw TypeError("values must be an object");
|
|
7330
7330
|
this.valuesById = {};
|
|
@@ -7349,8 +7349,8 @@ var require_enum = __commonJS({
|
|
|
7349
7349
|
});
|
|
7350
7350
|
return this;
|
|
7351
7351
|
};
|
|
7352
|
-
Enum.fromJSON = function fromJSON2(
|
|
7353
|
-
var enm = new Enum(
|
|
7352
|
+
Enum.fromJSON = function fromJSON2(name3, json) {
|
|
7353
|
+
var enm = new Enum(name3, json.values, json.options, json.comment, json.comments);
|
|
7354
7354
|
enm.reserved = json.reserved;
|
|
7355
7355
|
if (json.edition)
|
|
7356
7356
|
enm._edition = json.edition;
|
|
@@ -7376,49 +7376,49 @@ var require_enum = __commonJS({
|
|
|
7376
7376
|
keepComments ? this.comments : void 0
|
|
7377
7377
|
]);
|
|
7378
7378
|
};
|
|
7379
|
-
Enum.prototype.add = function add(
|
|
7380
|
-
if (!util.isString(
|
|
7379
|
+
Enum.prototype.add = function add(name3, id, comment, options) {
|
|
7380
|
+
if (!util.isString(name3))
|
|
7381
7381
|
throw TypeError("name must be a string");
|
|
7382
7382
|
if (!util.isInteger(id))
|
|
7383
7383
|
throw TypeError("id must be an integer");
|
|
7384
|
-
if (this.values[
|
|
7385
|
-
throw Error("duplicate name '" +
|
|
7384
|
+
if (this.values[name3] !== void 0)
|
|
7385
|
+
throw Error("duplicate name '" + name3 + "' in " + this);
|
|
7386
7386
|
if (this.isReservedId(id))
|
|
7387
7387
|
throw Error("id " + id + " is reserved in " + this);
|
|
7388
|
-
if (this.isReservedName(
|
|
7389
|
-
throw Error("name '" +
|
|
7388
|
+
if (this.isReservedName(name3))
|
|
7389
|
+
throw Error("name '" + name3 + "' is reserved in " + this);
|
|
7390
7390
|
if (this.valuesById[id] !== void 0) {
|
|
7391
7391
|
if (!(this.options && this.options.allow_alias))
|
|
7392
7392
|
throw Error("duplicate id " + id + " in " + this);
|
|
7393
|
-
this.values[
|
|
7393
|
+
this.values[name3] = id;
|
|
7394
7394
|
} else
|
|
7395
|
-
this.valuesById[this.values[
|
|
7395
|
+
this.valuesById[this.values[name3] = id] = name3;
|
|
7396
7396
|
if (options) {
|
|
7397
7397
|
if (this.valuesOptions === void 0)
|
|
7398
7398
|
this.valuesOptions = {};
|
|
7399
|
-
this.valuesOptions[
|
|
7399
|
+
this.valuesOptions[name3] = options || null;
|
|
7400
7400
|
}
|
|
7401
|
-
this.comments[
|
|
7401
|
+
this.comments[name3] = comment || null;
|
|
7402
7402
|
return this;
|
|
7403
7403
|
};
|
|
7404
|
-
Enum.prototype.remove = function remove(
|
|
7405
|
-
if (!util.isString(
|
|
7404
|
+
Enum.prototype.remove = function remove(name3) {
|
|
7405
|
+
if (!util.isString(name3))
|
|
7406
7406
|
throw TypeError("name must be a string");
|
|
7407
|
-
var val = this.values[
|
|
7407
|
+
var val = this.values[name3];
|
|
7408
7408
|
if (val == null)
|
|
7409
|
-
throw Error("name '" +
|
|
7409
|
+
throw Error("name '" + name3 + "' does not exist in " + this);
|
|
7410
7410
|
delete this.valuesById[val];
|
|
7411
|
-
delete this.values[
|
|
7412
|
-
delete this.comments[
|
|
7411
|
+
delete this.values[name3];
|
|
7412
|
+
delete this.comments[name3];
|
|
7413
7413
|
if (this.valuesOptions)
|
|
7414
|
-
delete this.valuesOptions[
|
|
7414
|
+
delete this.valuesOptions[name3];
|
|
7415
7415
|
return this;
|
|
7416
7416
|
};
|
|
7417
7417
|
Enum.prototype.isReservedId = function isReservedId(id) {
|
|
7418
7418
|
return Namespace.isReservedId(this.reserved, id);
|
|
7419
7419
|
};
|
|
7420
|
-
Enum.prototype.isReservedName = function isReservedName(
|
|
7421
|
-
return Namespace.isReservedName(this.reserved,
|
|
7420
|
+
Enum.prototype.isReservedName = function isReservedName(name3) {
|
|
7421
|
+
return Namespace.isReservedName(this.reserved, name3);
|
|
7422
7422
|
};
|
|
7423
7423
|
}
|
|
7424
7424
|
});
|
|
@@ -7806,8 +7806,8 @@ var require_parse = __commonJS({
|
|
|
7806
7806
|
var ptr = root;
|
|
7807
7807
|
var topLevelObjects = [];
|
|
7808
7808
|
var topLevelOptions = {};
|
|
7809
|
-
var applyCase = options.keepCase ? function(
|
|
7810
|
-
return
|
|
7809
|
+
var applyCase = options.keepCase ? function(name3) {
|
|
7810
|
+
return name3;
|
|
7811
7811
|
} : util.camelCase;
|
|
7812
7812
|
function resolveFileFeatures() {
|
|
7813
7813
|
topLevelObjects.forEach((obj) => {
|
|
@@ -7818,11 +7818,11 @@ var require_parse = __commonJS({
|
|
|
7818
7818
|
});
|
|
7819
7819
|
});
|
|
7820
7820
|
}
|
|
7821
|
-
function illegal(token2,
|
|
7821
|
+
function illegal(token2, name3, insideTryCatch) {
|
|
7822
7822
|
var filename = parse.filename;
|
|
7823
7823
|
if (!insideTryCatch)
|
|
7824
7824
|
parse.filename = null;
|
|
7825
|
-
return Error("illegal " + (
|
|
7825
|
+
return Error("illegal " + (name3 || "token") + " '" + token2 + "' (" + (filename ? filename + ", " : "") + "line " + tn.line + ")");
|
|
7826
7826
|
}
|
|
7827
7827
|
function readString() {
|
|
7828
7828
|
var values = [], token2;
|
|
@@ -7883,9 +7883,9 @@ var require_parse = __commonJS({
|
|
|
7883
7883
|
}
|
|
7884
7884
|
} while (skip(",", true));
|
|
7885
7885
|
var dummy = { options: void 0 };
|
|
7886
|
-
dummy.setOption = function(
|
|
7886
|
+
dummy.setOption = function(name3, value) {
|
|
7887
7887
|
if (this.options === void 0) this.options = {};
|
|
7888
|
-
this.options[
|
|
7888
|
+
this.options[name3] = value;
|
|
7889
7889
|
};
|
|
7890
7890
|
ifBlock(
|
|
7891
7891
|
dummy,
|
|
@@ -8095,12 +8095,12 @@ var require_parse = __commonJS({
|
|
|
8095
8095
|
}
|
|
8096
8096
|
if (!typeRefRe.test(type))
|
|
8097
8097
|
throw illegal(type, "type");
|
|
8098
|
-
var
|
|
8099
|
-
if (!nameRe.test(
|
|
8100
|
-
throw illegal(
|
|
8101
|
-
|
|
8098
|
+
var name3 = next();
|
|
8099
|
+
if (!nameRe.test(name3))
|
|
8100
|
+
throw illegal(name3, "name");
|
|
8101
|
+
name3 = applyCase(name3);
|
|
8102
8102
|
skip("=");
|
|
8103
|
-
var field = new Field(
|
|
8103
|
+
var field = new Field(name3, parseId(next()), type, rule, extend);
|
|
8104
8104
|
ifBlock(field, function parseField_block(token2) {
|
|
8105
8105
|
if (token2 === "option") {
|
|
8106
8106
|
parseOption(field, token2);
|
|
@@ -8111,7 +8111,7 @@ var require_parse = __commonJS({
|
|
|
8111
8111
|
parseInlineOptions(field);
|
|
8112
8112
|
});
|
|
8113
8113
|
if (rule === "proto3_optional") {
|
|
8114
|
-
var oneof = new OneOf("_" +
|
|
8114
|
+
var oneof = new OneOf("_" + name3);
|
|
8115
8115
|
field.setOption("proto3_optional", true);
|
|
8116
8116
|
oneof.add(field);
|
|
8117
8117
|
parent.add(oneof);
|
|
@@ -8126,17 +8126,17 @@ var require_parse = __commonJS({
|
|
|
8126
8126
|
if (edition >= 2023) {
|
|
8127
8127
|
throw illegal("group");
|
|
8128
8128
|
}
|
|
8129
|
-
var
|
|
8130
|
-
if (!nameRe.test(
|
|
8131
|
-
throw illegal(
|
|
8132
|
-
var fieldName = util.lcFirst(
|
|
8133
|
-
if (
|
|
8134
|
-
|
|
8129
|
+
var name3 = next();
|
|
8130
|
+
if (!nameRe.test(name3))
|
|
8131
|
+
throw illegal(name3, "name");
|
|
8132
|
+
var fieldName = util.lcFirst(name3);
|
|
8133
|
+
if (name3 === fieldName)
|
|
8134
|
+
name3 = util.ucFirst(name3);
|
|
8135
8135
|
skip("=");
|
|
8136
8136
|
var id = parseId(next());
|
|
8137
|
-
var type = new Type(
|
|
8137
|
+
var type = new Type(name3);
|
|
8138
8138
|
type.group = true;
|
|
8139
|
-
var field = new Field(fieldName, id,
|
|
8139
|
+
var field = new Field(fieldName, id, name3, rule);
|
|
8140
8140
|
field.filename = parse.filename;
|
|
8141
8141
|
ifBlock(type, function parseGroup_block(token2) {
|
|
8142
8142
|
switch (token2) {
|
|
@@ -8181,11 +8181,11 @@ var require_parse = __commonJS({
|
|
|
8181
8181
|
if (!typeRefRe.test(valueType))
|
|
8182
8182
|
throw illegal(valueType, "type");
|
|
8183
8183
|
skip(">");
|
|
8184
|
-
var
|
|
8185
|
-
if (!nameRe.test(
|
|
8186
|
-
throw illegal(
|
|
8184
|
+
var name3 = next();
|
|
8185
|
+
if (!nameRe.test(name3))
|
|
8186
|
+
throw illegal(name3, "name");
|
|
8187
8187
|
skip("=");
|
|
8188
|
-
var field = new MapField(applyCase(
|
|
8188
|
+
var field = new MapField(applyCase(name3), parseId(next()), keyType, valueType);
|
|
8189
8189
|
ifBlock(field, function parseMapField_block(token2) {
|
|
8190
8190
|
if (token2 === "option") {
|
|
8191
8191
|
parseOption(field, token2);
|
|
@@ -8242,11 +8242,11 @@ var require_parse = __commonJS({
|
|
|
8242
8242
|
var value = parseId(next(), true), dummy = {
|
|
8243
8243
|
options: void 0
|
|
8244
8244
|
};
|
|
8245
|
-
dummy.getOption = function(
|
|
8246
|
-
return this.options[
|
|
8245
|
+
dummy.getOption = function(name3) {
|
|
8246
|
+
return this.options[name3];
|
|
8247
8247
|
};
|
|
8248
|
-
dummy.setOption = function(
|
|
8249
|
-
ReflectionObject.prototype.setOption.call(dummy,
|
|
8248
|
+
dummy.setOption = function(name3, value2) {
|
|
8249
|
+
ReflectionObject.prototype.setOption.call(dummy, name3, value2);
|
|
8250
8250
|
};
|
|
8251
8251
|
dummy.setParsedOption = function() {
|
|
8252
8252
|
return void 0;
|
|
@@ -8289,13 +8289,13 @@ var require_parse = __commonJS({
|
|
|
8289
8289
|
}
|
|
8290
8290
|
token2 = next();
|
|
8291
8291
|
}
|
|
8292
|
-
var
|
|
8293
|
-
var optionValue = parseOptionValue(parent,
|
|
8292
|
+
var name3 = propName ? option.concat(propName) : option;
|
|
8293
|
+
var optionValue = parseOptionValue(parent, name3);
|
|
8294
8294
|
propName = propName && propName[0] === "." ? propName.slice(1) : propName;
|
|
8295
8295
|
option = option && option[option.length - 1] === "." ? option.slice(0, -1) : option;
|
|
8296
8296
|
setParsedOption(parent, option, optionValue, propName);
|
|
8297
8297
|
}
|
|
8298
|
-
function parseOptionValue(parent,
|
|
8298
|
+
function parseOptionValue(parent, name3) {
|
|
8299
8299
|
if (skip("{", true)) {
|
|
8300
8300
|
var objectResult = {};
|
|
8301
8301
|
while (!skip("}", true)) {
|
|
@@ -8309,7 +8309,7 @@ var require_parse = __commonJS({
|
|
|
8309
8309
|
var propName = token;
|
|
8310
8310
|
skip(":", true);
|
|
8311
8311
|
if (peek() === "{") {
|
|
8312
|
-
value = parseOptionValue(parent,
|
|
8312
|
+
value = parseOptionValue(parent, name3 + "." + token);
|
|
8313
8313
|
} else if (peek() === "[") {
|
|
8314
8314
|
value = [];
|
|
8315
8315
|
var lastValue;
|
|
@@ -8320,12 +8320,12 @@ var require_parse = __commonJS({
|
|
|
8320
8320
|
} while (skip(",", true));
|
|
8321
8321
|
skip("]");
|
|
8322
8322
|
if (typeof lastValue !== "undefined") {
|
|
8323
|
-
setOption(parent,
|
|
8323
|
+
setOption(parent, name3 + "." + token, lastValue);
|
|
8324
8324
|
}
|
|
8325
8325
|
}
|
|
8326
8326
|
} else {
|
|
8327
8327
|
value = readValue(true);
|
|
8328
|
-
setOption(parent,
|
|
8328
|
+
setOption(parent, name3 + "." + token, value);
|
|
8329
8329
|
}
|
|
8330
8330
|
var prevValue = objectResult[propName];
|
|
8331
8331
|
if (prevValue)
|
|
@@ -8337,20 +8337,20 @@ var require_parse = __commonJS({
|
|
|
8337
8337
|
return objectResult;
|
|
8338
8338
|
}
|
|
8339
8339
|
var simpleValue = readValue(true);
|
|
8340
|
-
setOption(parent,
|
|
8340
|
+
setOption(parent, name3, simpleValue);
|
|
8341
8341
|
return simpleValue;
|
|
8342
8342
|
}
|
|
8343
|
-
function setOption(parent,
|
|
8344
|
-
if (ptr === parent && /^features\./.test(
|
|
8345
|
-
topLevelOptions[
|
|
8343
|
+
function setOption(parent, name3, value) {
|
|
8344
|
+
if (ptr === parent && /^features\./.test(name3)) {
|
|
8345
|
+
topLevelOptions[name3] = value;
|
|
8346
8346
|
return;
|
|
8347
8347
|
}
|
|
8348
8348
|
if (parent.setOption)
|
|
8349
|
-
parent.setOption(
|
|
8349
|
+
parent.setOption(name3, value);
|
|
8350
8350
|
}
|
|
8351
|
-
function setParsedOption(parent,
|
|
8351
|
+
function setParsedOption(parent, name3, value, propName) {
|
|
8352
8352
|
if (parent.setParsedOption)
|
|
8353
|
-
parent.setParsedOption(
|
|
8353
|
+
parent.setParsedOption(name3, value, propName);
|
|
8354
8354
|
}
|
|
8355
8355
|
function parseInlineOptions(parent) {
|
|
8356
8356
|
if (skip("[", true)) {
|
|
@@ -8384,7 +8384,7 @@ var require_parse = __commonJS({
|
|
|
8384
8384
|
var type = token2;
|
|
8385
8385
|
if (!nameRe.test(token2 = next()))
|
|
8386
8386
|
throw illegal(token2, "name");
|
|
8387
|
-
var
|
|
8387
|
+
var name3 = token2, requestType, requestStream, responseType, responseStream;
|
|
8388
8388
|
skip("(");
|
|
8389
8389
|
if (skip("stream", true))
|
|
8390
8390
|
requestStream = true;
|
|
@@ -8400,7 +8400,7 @@ var require_parse = __commonJS({
|
|
|
8400
8400
|
throw illegal(token2);
|
|
8401
8401
|
responseType = token2;
|
|
8402
8402
|
skip(")");
|
|
8403
|
-
var method = new Method(
|
|
8403
|
+
var method = new Method(name3, type, requestType, responseType, requestStream, responseStream);
|
|
8404
8404
|
method.comment = commentText;
|
|
8405
8405
|
ifBlock(method, function parseMethod_block(token3) {
|
|
8406
8406
|
if (token3 === "option") {
|
|
@@ -8490,12 +8490,12 @@ var require_common = __commonJS({
|
|
|
8490
8490
|
"use strict";
|
|
8491
8491
|
module2.exports = common;
|
|
8492
8492
|
var commonRe = /\/|\./;
|
|
8493
|
-
function common(
|
|
8494
|
-
if (!commonRe.test(
|
|
8495
|
-
|
|
8493
|
+
function common(name3, json) {
|
|
8494
|
+
if (!commonRe.test(name3)) {
|
|
8495
|
+
name3 = "google/protobuf/" + name3 + ".proto";
|
|
8496
8496
|
json = { nested: { google: { nested: { protobuf: { nested: json } } } } };
|
|
8497
8497
|
}
|
|
8498
|
-
common[
|
|
8498
|
+
common[name3] = json;
|
|
8499
8499
|
}
|
|
8500
8500
|
common("any", {
|
|
8501
8501
|
/**
|
|
@@ -10508,8 +10508,8 @@ var require_descriptor2 = __commonJS({
|
|
|
10508
10508
|
var values = {};
|
|
10509
10509
|
if (descriptor.value)
|
|
10510
10510
|
for (var i = 0; i < descriptor.value.length; ++i) {
|
|
10511
|
-
var
|
|
10512
|
-
values[
|
|
10511
|
+
var name3 = descriptor.value[i].name, value = descriptor.value[i].number || 0;
|
|
10512
|
+
values[name3 && name3.length ? name3 : "NAME" + value] = value;
|
|
10513
10513
|
}
|
|
10514
10514
|
var enm = new Enum(
|
|
10515
10515
|
descriptor.name && descriptor.name.length ? descriptor.name : "Enum" + unnamedEnumIndex++,
|
|
@@ -12234,11 +12234,11 @@ var require_src2 = __commonJS({
|
|
|
12234
12234
|
oneofs: true,
|
|
12235
12235
|
json: true
|
|
12236
12236
|
};
|
|
12237
|
-
function joinName(baseName,
|
|
12237
|
+
function joinName(baseName, name3) {
|
|
12238
12238
|
if (baseName === "") {
|
|
12239
|
-
return
|
|
12239
|
+
return name3;
|
|
12240
12240
|
} else {
|
|
12241
|
-
return baseName + "." +
|
|
12241
|
+
return baseName + "." + name3;
|
|
12242
12242
|
}
|
|
12243
12243
|
}
|
|
12244
12244
|
function isHandledReflectionObject(obj) {
|
|
@@ -12253,8 +12253,8 @@ var require_src2 = __commonJS({
|
|
|
12253
12253
|
return [[objName, obj]];
|
|
12254
12254
|
} else {
|
|
12255
12255
|
if (isNamespaceBase(obj) && typeof obj.nested !== "undefined") {
|
|
12256
|
-
return Object.keys(obj.nested).map((
|
|
12257
|
-
return getAllHandledReflectionObjects(obj.nested[
|
|
12256
|
+
return Object.keys(obj.nested).map((name3) => {
|
|
12257
|
+
return getAllHandledReflectionObjects(obj.nested[name3], objName);
|
|
12258
12258
|
}).reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
|
|
12259
12259
|
}
|
|
12260
12260
|
}
|
|
@@ -12310,10 +12310,10 @@ var require_src2 = __commonJS({
|
|
|
12310
12310
|
options: mapMethodOptions(method.parsedOptions)
|
|
12311
12311
|
};
|
|
12312
12312
|
}
|
|
12313
|
-
function createServiceDefinition(service,
|
|
12313
|
+
function createServiceDefinition(service, name3, options, fileDescriptors) {
|
|
12314
12314
|
const def = {};
|
|
12315
12315
|
for (const method of service.methodsArray) {
|
|
12316
|
-
def[method.name] = createMethodDefinition(method,
|
|
12316
|
+
def[method.name] = createMethodDefinition(method, name3, options, fileDescriptors);
|
|
12317
12317
|
}
|
|
12318
12318
|
return def;
|
|
12319
12319
|
}
|
|
@@ -12333,9 +12333,9 @@ var require_src2 = __commonJS({
|
|
|
12333
12333
|
fileDescriptorProtos: fileDescriptors
|
|
12334
12334
|
};
|
|
12335
12335
|
}
|
|
12336
|
-
function createDefinition(obj,
|
|
12336
|
+
function createDefinition(obj, name3, options, fileDescriptors) {
|
|
12337
12337
|
if (obj instanceof Protobuf.Service) {
|
|
12338
|
-
return createServiceDefinition(obj,
|
|
12338
|
+
return createServiceDefinition(obj, name3, options, fileDescriptors);
|
|
12339
12339
|
} else if (obj instanceof Protobuf.Type) {
|
|
12340
12340
|
return createMessageDefinition(obj, fileDescriptors);
|
|
12341
12341
|
} else if (obj instanceof Protobuf.Enum) {
|
|
@@ -12349,8 +12349,8 @@ var require_src2 = __commonJS({
|
|
|
12349
12349
|
root.resolveAll();
|
|
12350
12350
|
const descriptorList = root.toDescriptor("proto3").file;
|
|
12351
12351
|
const bufferList = descriptorList.map((value) => Buffer.from(descriptor.FileDescriptorProto.encode(value).finish()));
|
|
12352
|
-
for (const [
|
|
12353
|
-
def[
|
|
12352
|
+
for (const [name3, obj] of getAllHandledReflectionObjects(root, "")) {
|
|
12353
|
+
def[name3] = createDefinition(obj, name3, options, bufferList);
|
|
12354
12354
|
}
|
|
12355
12355
|
return def;
|
|
12356
12356
|
}
|
|
@@ -12587,18 +12587,18 @@ var require_channelz = __commonJS({
|
|
|
12587
12587
|
var subchannels = [];
|
|
12588
12588
|
var servers = [];
|
|
12589
12589
|
var sockets = [];
|
|
12590
|
-
function registerChannelzChannel(
|
|
12590
|
+
function registerChannelzChannel(name3, getInfo, channelzEnabled) {
|
|
12591
12591
|
const id = getNextId();
|
|
12592
|
-
const ref = { id, name:
|
|
12592
|
+
const ref = { id, name: name3, kind: "channel" };
|
|
12593
12593
|
if (channelzEnabled) {
|
|
12594
12594
|
channels[id] = { ref, getInfo };
|
|
12595
12595
|
}
|
|
12596
12596
|
return ref;
|
|
12597
12597
|
}
|
|
12598
12598
|
exports2.registerChannelzChannel = registerChannelzChannel;
|
|
12599
|
-
function registerChannelzSubchannel(
|
|
12599
|
+
function registerChannelzSubchannel(name3, getInfo, channelzEnabled) {
|
|
12600
12600
|
const id = getNextId();
|
|
12601
|
-
const ref = { id, name:
|
|
12601
|
+
const ref = { id, name: name3, kind: "subchannel" };
|
|
12602
12602
|
if (channelzEnabled) {
|
|
12603
12603
|
subchannels[id] = { ref, getInfo };
|
|
12604
12604
|
}
|
|
@@ -12614,9 +12614,9 @@ var require_channelz = __commonJS({
|
|
|
12614
12614
|
return ref;
|
|
12615
12615
|
}
|
|
12616
12616
|
exports2.registerChannelzServer = registerChannelzServer;
|
|
12617
|
-
function registerChannelzSocket(
|
|
12617
|
+
function registerChannelzSocket(name3, getInfo, channelzEnabled) {
|
|
12618
12618
|
const id = getNextId();
|
|
12619
|
-
const ref = { id, name:
|
|
12619
|
+
const ref = { id, name: name3, kind: "socket" };
|
|
12620
12620
|
if (channelzEnabled) {
|
|
12621
12621
|
sockets[id] = { ref, getInfo };
|
|
12622
12622
|
}
|
|
@@ -13808,9 +13808,9 @@ var require_subchannel_call = __commonJS({
|
|
|
13808
13808
|
var constants_2 = require_constants();
|
|
13809
13809
|
var TRACER_NAME = "subchannel_call";
|
|
13810
13810
|
function getSystemErrorName(errno) {
|
|
13811
|
-
for (const [
|
|
13811
|
+
for (const [name3, num] of Object.entries(os.constants.errno)) {
|
|
13812
13812
|
if (num === errno) {
|
|
13813
|
-
return
|
|
13813
|
+
return name3;
|
|
13814
13814
|
}
|
|
13815
13815
|
}
|
|
13816
13816
|
return "Unknown system error " + errno;
|
|
@@ -17621,8 +17621,8 @@ var require_server = __commonJS({
|
|
|
17621
17621
|
if (serviceKeys.length === 0) {
|
|
17622
17622
|
throw new Error("Cannot add an empty service to a server");
|
|
17623
17623
|
}
|
|
17624
|
-
serviceKeys.forEach((
|
|
17625
|
-
const attrs = service[
|
|
17624
|
+
serviceKeys.forEach((name3) => {
|
|
17625
|
+
const attrs = service[name3];
|
|
17626
17626
|
let methodType;
|
|
17627
17627
|
if (attrs.requestStream) {
|
|
17628
17628
|
if (attrs.responseStream) {
|
|
@@ -17637,7 +17637,7 @@ var require_server = __commonJS({
|
|
|
17637
17637
|
methodType = "unary";
|
|
17638
17638
|
}
|
|
17639
17639
|
}
|
|
17640
|
-
let implFn = implementation[
|
|
17640
|
+
let implFn = implementation[name3];
|
|
17641
17641
|
let impl;
|
|
17642
17642
|
if (implFn === void 0 && typeof attrs.originalName === "string") {
|
|
17643
17643
|
implFn = implementation[attrs.originalName];
|
|
@@ -17645,7 +17645,7 @@ var require_server = __commonJS({
|
|
|
17645
17645
|
if (implFn !== void 0) {
|
|
17646
17646
|
impl = implFn.bind(implementation);
|
|
17647
17647
|
} else {
|
|
17648
|
-
impl = getDefaultHandler(methodType,
|
|
17648
|
+
impl = getDefaultHandler(methodType, name3);
|
|
17649
17649
|
}
|
|
17650
17650
|
const success = this.register(attrs.path, impl, attrs.responseSerialize, attrs.requestDeserialize, methodType);
|
|
17651
17651
|
if (success === false) {
|
|
@@ -17658,8 +17658,8 @@ var require_server = __commonJS({
|
|
|
17658
17658
|
throw new Error("removeService() requires object as argument");
|
|
17659
17659
|
}
|
|
17660
17660
|
const serviceKeys = Object.keys(service);
|
|
17661
|
-
serviceKeys.forEach((
|
|
17662
|
-
const attrs = service[
|
|
17661
|
+
serviceKeys.forEach((name3) => {
|
|
17662
|
+
const attrs = service[name3];
|
|
17663
17663
|
this.unregister(attrs.path);
|
|
17664
17664
|
});
|
|
17665
17665
|
}
|
|
@@ -17934,21 +17934,21 @@ var require_server = __commonJS({
|
|
|
17934
17934
|
(0, channelz_1.unregisterChannelzRef)(this.channelzRef);
|
|
17935
17935
|
}
|
|
17936
17936
|
}
|
|
17937
|
-
register(
|
|
17938
|
-
if (this.handlers.has(
|
|
17937
|
+
register(name3, handler, serialize, deserialize, type) {
|
|
17938
|
+
if (this.handlers.has(name3)) {
|
|
17939
17939
|
return false;
|
|
17940
17940
|
}
|
|
17941
|
-
this.handlers.set(
|
|
17941
|
+
this.handlers.set(name3, {
|
|
17942
17942
|
func: handler,
|
|
17943
17943
|
serialize,
|
|
17944
17944
|
deserialize,
|
|
17945
17945
|
type,
|
|
17946
|
-
path:
|
|
17946
|
+
path: name3
|
|
17947
17947
|
});
|
|
17948
17948
|
return true;
|
|
17949
17949
|
}
|
|
17950
|
-
unregister(
|
|
17951
|
-
return this.handlers.delete(
|
|
17950
|
+
unregister(name3) {
|
|
17951
|
+
return this.handlers.delete(name3);
|
|
17952
17952
|
}
|
|
17953
17953
|
start() {
|
|
17954
17954
|
if (this.http2ServerList.length === 0 || this.http2ServerList.every(({ server: http2Server }) => http2Server.listening !== true)) {
|
|
@@ -20471,7 +20471,6 @@ import {
|
|
|
20471
20471
|
Container,
|
|
20472
20472
|
Stack as Stack4
|
|
20473
20473
|
} from "@mui/material";
|
|
20474
|
-
import "@splidejs/react-splide/css";
|
|
20475
20474
|
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
20476
20475
|
function OraculoPageLanding({ props }) {
|
|
20477
20476
|
const listaDestacados = [
|
|
@@ -20901,244 +20900,6 @@ var getDefaults = () => {
|
|
|
20901
20900
|
return;
|
|
20902
20901
|
}
|
|
20903
20902
|
};
|
|
20904
|
-
var getDefaultEmulatorHost = (productName) => {
|
|
20905
|
-
var _a, _b;
|
|
20906
|
-
return (_b = (_a = getDefaults()) == null ? void 0 : _a.emulatorHosts) == null ? void 0 : _b[productName];
|
|
20907
|
-
};
|
|
20908
|
-
var getDefaultEmulatorHostnameAndPort = (productName) => {
|
|
20909
|
-
const host = getDefaultEmulatorHost(productName);
|
|
20910
|
-
if (!host) {
|
|
20911
|
-
return void 0;
|
|
20912
|
-
}
|
|
20913
|
-
const separatorIndex = host.lastIndexOf(":");
|
|
20914
|
-
if (separatorIndex <= 0 || separatorIndex + 1 === host.length) {
|
|
20915
|
-
throw new Error(`Invalid host ${host} with no separate hostname and port!`);
|
|
20916
|
-
}
|
|
20917
|
-
const port = parseInt(host.substring(separatorIndex + 1), 10);
|
|
20918
|
-
if (host[0] === "[") {
|
|
20919
|
-
return [host.substring(1, separatorIndex - 1), port];
|
|
20920
|
-
} else {
|
|
20921
|
-
return [host.substring(0, separatorIndex), port];
|
|
20922
|
-
}
|
|
20923
|
-
};
|
|
20924
|
-
var getDefaultAppConfig = () => {
|
|
20925
|
-
var _a;
|
|
20926
|
-
return (_a = getDefaults()) == null ? void 0 : _a.config;
|
|
20927
|
-
};
|
|
20928
|
-
var Deferred = class {
|
|
20929
|
-
constructor() {
|
|
20930
|
-
this.reject = () => {
|
|
20931
|
-
};
|
|
20932
|
-
this.resolve = () => {
|
|
20933
|
-
};
|
|
20934
|
-
this.promise = new Promise((resolve, reject) => {
|
|
20935
|
-
this.resolve = resolve;
|
|
20936
|
-
this.reject = reject;
|
|
20937
|
-
});
|
|
20938
|
-
}
|
|
20939
|
-
/**
|
|
20940
|
-
* Our API internals are not promisified and cannot because our callback APIs have subtle expectations around
|
|
20941
|
-
* invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback
|
|
20942
|
-
* and returns a node-style callback which will resolve or reject the Deferred's promise.
|
|
20943
|
-
*/
|
|
20944
|
-
wrapCallback(callback) {
|
|
20945
|
-
return (error, value) => {
|
|
20946
|
-
if (error) {
|
|
20947
|
-
this.reject(error);
|
|
20948
|
-
} else {
|
|
20949
|
-
this.resolve(value);
|
|
20950
|
-
}
|
|
20951
|
-
if (typeof callback === "function") {
|
|
20952
|
-
this.promise.catch(() => {
|
|
20953
|
-
});
|
|
20954
|
-
if (callback.length === 1) {
|
|
20955
|
-
callback(error);
|
|
20956
|
-
} else {
|
|
20957
|
-
callback(error, value);
|
|
20958
|
-
}
|
|
20959
|
-
}
|
|
20960
|
-
};
|
|
20961
|
-
}
|
|
20962
|
-
};
|
|
20963
|
-
function isCloudWorkstation(url) {
|
|
20964
|
-
try {
|
|
20965
|
-
const host = url.startsWith("http://") || url.startsWith("https://") ? new URL(url).hostname : url;
|
|
20966
|
-
return host.endsWith(".cloudworkstations.dev");
|
|
20967
|
-
} catch {
|
|
20968
|
-
return false;
|
|
20969
|
-
}
|
|
20970
|
-
}
|
|
20971
|
-
async function pingServer(endpoint) {
|
|
20972
|
-
const result = await fetch(endpoint, {
|
|
20973
|
-
credentials: "include"
|
|
20974
|
-
});
|
|
20975
|
-
return result.ok;
|
|
20976
|
-
}
|
|
20977
|
-
function createMockUserToken(token, projectId) {
|
|
20978
|
-
if (token.uid) {
|
|
20979
|
-
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
|
20980
|
-
}
|
|
20981
|
-
const header = {
|
|
20982
|
-
alg: "none",
|
|
20983
|
-
type: "JWT"
|
|
20984
|
-
};
|
|
20985
|
-
const project = projectId || "demo-project";
|
|
20986
|
-
const iat = token.iat || 0;
|
|
20987
|
-
const sub = token.sub || token.user_id;
|
|
20988
|
-
if (!sub) {
|
|
20989
|
-
throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");
|
|
20990
|
-
}
|
|
20991
|
-
const payload = {
|
|
20992
|
-
// Set all required fields to decent defaults
|
|
20993
|
-
iss: `https://securetoken.google.com/${project}`,
|
|
20994
|
-
aud: project,
|
|
20995
|
-
iat,
|
|
20996
|
-
exp: iat + 3600,
|
|
20997
|
-
auth_time: iat,
|
|
20998
|
-
sub,
|
|
20999
|
-
user_id: sub,
|
|
21000
|
-
firebase: {
|
|
21001
|
-
sign_in_provider: "custom",
|
|
21002
|
-
identities: {}
|
|
21003
|
-
},
|
|
21004
|
-
// Override with user options
|
|
21005
|
-
...token
|
|
21006
|
-
};
|
|
21007
|
-
const signature = "";
|
|
21008
|
-
return [
|
|
21009
|
-
base64urlEncodeWithoutPadding(JSON.stringify(header)),
|
|
21010
|
-
base64urlEncodeWithoutPadding(JSON.stringify(payload)),
|
|
21011
|
-
signature
|
|
21012
|
-
].join(".");
|
|
21013
|
-
}
|
|
21014
|
-
var emulatorStatus = {};
|
|
21015
|
-
function getEmulatorSummary() {
|
|
21016
|
-
const summary = {
|
|
21017
|
-
prod: [],
|
|
21018
|
-
emulator: []
|
|
21019
|
-
};
|
|
21020
|
-
for (const key of Object.keys(emulatorStatus)) {
|
|
21021
|
-
if (emulatorStatus[key]) {
|
|
21022
|
-
summary.emulator.push(key);
|
|
21023
|
-
} else {
|
|
21024
|
-
summary.prod.push(key);
|
|
21025
|
-
}
|
|
21026
|
-
}
|
|
21027
|
-
return summary;
|
|
21028
|
-
}
|
|
21029
|
-
function getOrCreateEl(id) {
|
|
21030
|
-
let parentDiv = document.getElementById(id);
|
|
21031
|
-
let created = false;
|
|
21032
|
-
if (!parentDiv) {
|
|
21033
|
-
parentDiv = document.createElement("div");
|
|
21034
|
-
parentDiv.setAttribute("id", id);
|
|
21035
|
-
created = true;
|
|
21036
|
-
}
|
|
21037
|
-
return { created, element: parentDiv };
|
|
21038
|
-
}
|
|
21039
|
-
var previouslyDismissed = false;
|
|
21040
|
-
function updateEmulatorBanner(name4, isRunningEmulator) {
|
|
21041
|
-
if (typeof window === "undefined" || typeof document === "undefined" || !isCloudWorkstation(window.location.host) || emulatorStatus[name4] === isRunningEmulator || emulatorStatus[name4] || // If already set to use emulator, can't go back to prod.
|
|
21042
|
-
previouslyDismissed) {
|
|
21043
|
-
return;
|
|
21044
|
-
}
|
|
21045
|
-
emulatorStatus[name4] = isRunningEmulator;
|
|
21046
|
-
function prefixedId(id) {
|
|
21047
|
-
return `__firebase__banner__${id}`;
|
|
21048
|
-
}
|
|
21049
|
-
const bannerId = "__firebase__banner";
|
|
21050
|
-
const summary = getEmulatorSummary();
|
|
21051
|
-
const showError = summary.prod.length > 0;
|
|
21052
|
-
function tearDown() {
|
|
21053
|
-
const element = document.getElementById(bannerId);
|
|
21054
|
-
if (element) {
|
|
21055
|
-
element.remove();
|
|
21056
|
-
}
|
|
21057
|
-
}
|
|
21058
|
-
function setupBannerStyles(bannerEl) {
|
|
21059
|
-
bannerEl.style.display = "flex";
|
|
21060
|
-
bannerEl.style.background = "#7faaf0";
|
|
21061
|
-
bannerEl.style.position = "fixed";
|
|
21062
|
-
bannerEl.style.bottom = "5px";
|
|
21063
|
-
bannerEl.style.left = "5px";
|
|
21064
|
-
bannerEl.style.padding = ".5em";
|
|
21065
|
-
bannerEl.style.borderRadius = "5px";
|
|
21066
|
-
bannerEl.style.alignItems = "center";
|
|
21067
|
-
}
|
|
21068
|
-
function setupIconStyles(prependIcon, iconId) {
|
|
21069
|
-
prependIcon.setAttribute("width", "24");
|
|
21070
|
-
prependIcon.setAttribute("id", iconId);
|
|
21071
|
-
prependIcon.setAttribute("height", "24");
|
|
21072
|
-
prependIcon.setAttribute("viewBox", "0 0 24 24");
|
|
21073
|
-
prependIcon.setAttribute("fill", "none");
|
|
21074
|
-
prependIcon.style.marginLeft = "-6px";
|
|
21075
|
-
}
|
|
21076
|
-
function setupCloseBtn() {
|
|
21077
|
-
const closeBtn = document.createElement("span");
|
|
21078
|
-
closeBtn.style.cursor = "pointer";
|
|
21079
|
-
closeBtn.style.marginLeft = "16px";
|
|
21080
|
-
closeBtn.style.fontSize = "24px";
|
|
21081
|
-
closeBtn.innerHTML = " ×";
|
|
21082
|
-
closeBtn.onclick = () => {
|
|
21083
|
-
previouslyDismissed = true;
|
|
21084
|
-
tearDown();
|
|
21085
|
-
};
|
|
21086
|
-
return closeBtn;
|
|
21087
|
-
}
|
|
21088
|
-
function setupLinkStyles(learnMoreLink, learnMoreId) {
|
|
21089
|
-
learnMoreLink.setAttribute("id", learnMoreId);
|
|
21090
|
-
learnMoreLink.innerText = "Learn more";
|
|
21091
|
-
learnMoreLink.href = "https://firebase.google.com/docs/studio/preview-apps#preview-backend";
|
|
21092
|
-
learnMoreLink.setAttribute("target", "__blank");
|
|
21093
|
-
learnMoreLink.style.paddingLeft = "5px";
|
|
21094
|
-
learnMoreLink.style.textDecoration = "underline";
|
|
21095
|
-
}
|
|
21096
|
-
function setupDom() {
|
|
21097
|
-
const banner = getOrCreateEl(bannerId);
|
|
21098
|
-
const firebaseTextId = prefixedId("text");
|
|
21099
|
-
const firebaseText = document.getElementById(firebaseTextId) || document.createElement("span");
|
|
21100
|
-
const learnMoreId = prefixedId("learnmore");
|
|
21101
|
-
const learnMoreLink = document.getElementById(learnMoreId) || document.createElement("a");
|
|
21102
|
-
const prependIconId = prefixedId("preprendIcon");
|
|
21103
|
-
const prependIcon = document.getElementById(prependIconId) || document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
21104
|
-
if (banner.created) {
|
|
21105
|
-
const bannerEl = banner.element;
|
|
21106
|
-
setupBannerStyles(bannerEl);
|
|
21107
|
-
setupLinkStyles(learnMoreLink, learnMoreId);
|
|
21108
|
-
const closeBtn = setupCloseBtn();
|
|
21109
|
-
setupIconStyles(prependIcon, prependIconId);
|
|
21110
|
-
bannerEl.append(prependIcon, firebaseText, learnMoreLink, closeBtn);
|
|
21111
|
-
document.body.appendChild(bannerEl);
|
|
21112
|
-
}
|
|
21113
|
-
if (showError) {
|
|
21114
|
-
firebaseText.innerText = `Preview backend disconnected.`;
|
|
21115
|
-
prependIcon.innerHTML = `<g clip-path="url(#clip0_6013_33858)">
|
|
21116
|
-
<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"/>
|
|
21117
|
-
</g>
|
|
21118
|
-
<defs>
|
|
21119
|
-
<clipPath id="clip0_6013_33858">
|
|
21120
|
-
<rect width="24" height="24" fill="white"/>
|
|
21121
|
-
</clipPath>
|
|
21122
|
-
</defs>`;
|
|
21123
|
-
} else {
|
|
21124
|
-
prependIcon.innerHTML = `<g clip-path="url(#clip0_6083_34804)">
|
|
21125
|
-
<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"/>
|
|
21126
|
-
</g>
|
|
21127
|
-
<defs>
|
|
21128
|
-
<clipPath id="clip0_6083_34804">
|
|
21129
|
-
<rect width="24" height="24" fill="white"/>
|
|
21130
|
-
</clipPath>
|
|
21131
|
-
</defs>`;
|
|
21132
|
-
firebaseText.innerText = "Preview backend running in this workspace.";
|
|
21133
|
-
}
|
|
21134
|
-
firebaseText.setAttribute("id", firebaseTextId);
|
|
21135
|
-
}
|
|
21136
|
-
if (document.readyState === "loading") {
|
|
21137
|
-
window.addEventListener("DOMContentLoaded", setupDom);
|
|
21138
|
-
} else {
|
|
21139
|
-
setupDom();
|
|
21140
|
-
}
|
|
21141
|
-
}
|
|
21142
20903
|
function getUA() {
|
|
21143
20904
|
if (typeof navigator !== "undefined" && typeof navigator["userAgent"] === "string") {
|
|
21144
20905
|
return navigator["userAgent"];
|
|
@@ -21231,36 +20992,6 @@ function replaceTemplate(template, data) {
|
|
|
21231
20992
|
});
|
|
21232
20993
|
}
|
|
21233
20994
|
var PATTERN = /\{\$([^}]+)}/g;
|
|
21234
|
-
function deepEqual(a, b) {
|
|
21235
|
-
if (a === b) {
|
|
21236
|
-
return true;
|
|
21237
|
-
}
|
|
21238
|
-
const aKeys = Object.keys(a);
|
|
21239
|
-
const bKeys = Object.keys(b);
|
|
21240
|
-
for (const k of aKeys) {
|
|
21241
|
-
if (!bKeys.includes(k)) {
|
|
21242
|
-
return false;
|
|
21243
|
-
}
|
|
21244
|
-
const aProp = a[k];
|
|
21245
|
-
const bProp = b[k];
|
|
21246
|
-
if (isObject(aProp) && isObject(bProp)) {
|
|
21247
|
-
if (!deepEqual(aProp, bProp)) {
|
|
21248
|
-
return false;
|
|
21249
|
-
}
|
|
21250
|
-
} else if (aProp !== bProp) {
|
|
21251
|
-
return false;
|
|
21252
|
-
}
|
|
21253
|
-
}
|
|
21254
|
-
for (const k of bKeys) {
|
|
21255
|
-
if (!aKeys.includes(k)) {
|
|
21256
|
-
return false;
|
|
21257
|
-
}
|
|
21258
|
-
}
|
|
21259
|
-
return true;
|
|
21260
|
-
}
|
|
21261
|
-
function isObject(thing) {
|
|
21262
|
-
return thing !== null && typeof thing === "object";
|
|
21263
|
-
}
|
|
21264
20995
|
var MAX_VALUE_MILLIS = 4 * 60 * 60 * 1e3;
|
|
21265
20996
|
function getModularInstance(service) {
|
|
21266
20997
|
if (service && service._delegate) {
|
|
@@ -21279,8 +21010,8 @@ var Component = class {
|
|
|
21279
21010
|
* @param instanceFactory Service factory responsible for creating the public interface
|
|
21280
21011
|
* @param type whether the service provided by the component is public or private
|
|
21281
21012
|
*/
|
|
21282
|
-
constructor(
|
|
21283
|
-
this.name =
|
|
21013
|
+
constructor(name3, instanceFactory, type) {
|
|
21014
|
+
this.name = name3;
|
|
21284
21015
|
this.instanceFactory = instanceFactory;
|
|
21285
21016
|
this.type = type;
|
|
21286
21017
|
this.multipleInstances = false;
|
|
@@ -21305,260 +21036,6 @@ var Component = class {
|
|
|
21305
21036
|
return this;
|
|
21306
21037
|
}
|
|
21307
21038
|
};
|
|
21308
|
-
var DEFAULT_ENTRY_NAME = "[DEFAULT]";
|
|
21309
|
-
var Provider = class {
|
|
21310
|
-
constructor(name4, container) {
|
|
21311
|
-
this.name = name4;
|
|
21312
|
-
this.container = container;
|
|
21313
|
-
this.component = null;
|
|
21314
|
-
this.instances = /* @__PURE__ */ new Map();
|
|
21315
|
-
this.instancesDeferred = /* @__PURE__ */ new Map();
|
|
21316
|
-
this.instancesOptions = /* @__PURE__ */ new Map();
|
|
21317
|
-
this.onInitCallbacks = /* @__PURE__ */ new Map();
|
|
21318
|
-
}
|
|
21319
|
-
/**
|
|
21320
|
-
* @param identifier A provider can provide multiple instances of a service
|
|
21321
|
-
* if this.component.multipleInstances is true.
|
|
21322
|
-
*/
|
|
21323
|
-
get(identifier) {
|
|
21324
|
-
const normalizedIdentifier = this.normalizeInstanceIdentifier(identifier);
|
|
21325
|
-
if (!this.instancesDeferred.has(normalizedIdentifier)) {
|
|
21326
|
-
const deferred = new Deferred();
|
|
21327
|
-
this.instancesDeferred.set(normalizedIdentifier, deferred);
|
|
21328
|
-
if (this.isInitialized(normalizedIdentifier) || this.shouldAutoInitialize()) {
|
|
21329
|
-
try {
|
|
21330
|
-
const instance = this.getOrInitializeService({
|
|
21331
|
-
instanceIdentifier: normalizedIdentifier
|
|
21332
|
-
});
|
|
21333
|
-
if (instance) {
|
|
21334
|
-
deferred.resolve(instance);
|
|
21335
|
-
}
|
|
21336
|
-
} catch (e) {
|
|
21337
|
-
}
|
|
21338
|
-
}
|
|
21339
|
-
}
|
|
21340
|
-
return this.instancesDeferred.get(normalizedIdentifier).promise;
|
|
21341
|
-
}
|
|
21342
|
-
getImmediate(options) {
|
|
21343
|
-
var _a;
|
|
21344
|
-
const normalizedIdentifier = this.normalizeInstanceIdentifier(options == null ? void 0 : options.identifier);
|
|
21345
|
-
const optional = (_a = options == null ? void 0 : options.optional) != null ? _a : false;
|
|
21346
|
-
if (this.isInitialized(normalizedIdentifier) || this.shouldAutoInitialize()) {
|
|
21347
|
-
try {
|
|
21348
|
-
return this.getOrInitializeService({
|
|
21349
|
-
instanceIdentifier: normalizedIdentifier
|
|
21350
|
-
});
|
|
21351
|
-
} catch (e) {
|
|
21352
|
-
if (optional) {
|
|
21353
|
-
return null;
|
|
21354
|
-
} else {
|
|
21355
|
-
throw e;
|
|
21356
|
-
}
|
|
21357
|
-
}
|
|
21358
|
-
} else {
|
|
21359
|
-
if (optional) {
|
|
21360
|
-
return null;
|
|
21361
|
-
} else {
|
|
21362
|
-
throw Error(`Service ${this.name} is not available`);
|
|
21363
|
-
}
|
|
21364
|
-
}
|
|
21365
|
-
}
|
|
21366
|
-
getComponent() {
|
|
21367
|
-
return this.component;
|
|
21368
|
-
}
|
|
21369
|
-
setComponent(component) {
|
|
21370
|
-
if (component.name !== this.name) {
|
|
21371
|
-
throw Error(`Mismatching Component ${component.name} for Provider ${this.name}.`);
|
|
21372
|
-
}
|
|
21373
|
-
if (this.component) {
|
|
21374
|
-
throw Error(`Component for ${this.name} has already been provided`);
|
|
21375
|
-
}
|
|
21376
|
-
this.component = component;
|
|
21377
|
-
if (!this.shouldAutoInitialize()) {
|
|
21378
|
-
return;
|
|
21379
|
-
}
|
|
21380
|
-
if (isComponentEager(component)) {
|
|
21381
|
-
try {
|
|
21382
|
-
this.getOrInitializeService({ instanceIdentifier: DEFAULT_ENTRY_NAME });
|
|
21383
|
-
} catch (e) {
|
|
21384
|
-
}
|
|
21385
|
-
}
|
|
21386
|
-
for (const [instanceIdentifier, instanceDeferred] of this.instancesDeferred.entries()) {
|
|
21387
|
-
const normalizedIdentifier = this.normalizeInstanceIdentifier(instanceIdentifier);
|
|
21388
|
-
try {
|
|
21389
|
-
const instance = this.getOrInitializeService({
|
|
21390
|
-
instanceIdentifier: normalizedIdentifier
|
|
21391
|
-
});
|
|
21392
|
-
instanceDeferred.resolve(instance);
|
|
21393
|
-
} catch (e) {
|
|
21394
|
-
}
|
|
21395
|
-
}
|
|
21396
|
-
}
|
|
21397
|
-
clearInstance(identifier = DEFAULT_ENTRY_NAME) {
|
|
21398
|
-
this.instancesDeferred.delete(identifier);
|
|
21399
|
-
this.instancesOptions.delete(identifier);
|
|
21400
|
-
this.instances.delete(identifier);
|
|
21401
|
-
}
|
|
21402
|
-
// app.delete() will call this method on every provider to delete the services
|
|
21403
|
-
// TODO: should we mark the provider as deleted?
|
|
21404
|
-
async delete() {
|
|
21405
|
-
const services = Array.from(this.instances.values());
|
|
21406
|
-
await Promise.all([
|
|
21407
|
-
...services.filter((service) => "INTERNAL" in service).map((service) => service.INTERNAL.delete()),
|
|
21408
|
-
...services.filter((service) => "_delete" in service).map((service) => service._delete())
|
|
21409
|
-
]);
|
|
21410
|
-
}
|
|
21411
|
-
isComponentSet() {
|
|
21412
|
-
return this.component != null;
|
|
21413
|
-
}
|
|
21414
|
-
isInitialized(identifier = DEFAULT_ENTRY_NAME) {
|
|
21415
|
-
return this.instances.has(identifier);
|
|
21416
|
-
}
|
|
21417
|
-
getOptions(identifier = DEFAULT_ENTRY_NAME) {
|
|
21418
|
-
return this.instancesOptions.get(identifier) || {};
|
|
21419
|
-
}
|
|
21420
|
-
initialize(opts = {}) {
|
|
21421
|
-
const { options = {} } = opts;
|
|
21422
|
-
const normalizedIdentifier = this.normalizeInstanceIdentifier(opts.instanceIdentifier);
|
|
21423
|
-
if (this.isInitialized(normalizedIdentifier)) {
|
|
21424
|
-
throw Error(`${this.name}(${normalizedIdentifier}) has already been initialized`);
|
|
21425
|
-
}
|
|
21426
|
-
if (!this.isComponentSet()) {
|
|
21427
|
-
throw Error(`Component ${this.name} has not been registered yet`);
|
|
21428
|
-
}
|
|
21429
|
-
const instance = this.getOrInitializeService({
|
|
21430
|
-
instanceIdentifier: normalizedIdentifier,
|
|
21431
|
-
options
|
|
21432
|
-
});
|
|
21433
|
-
for (const [instanceIdentifier, instanceDeferred] of this.instancesDeferred.entries()) {
|
|
21434
|
-
const normalizedDeferredIdentifier = this.normalizeInstanceIdentifier(instanceIdentifier);
|
|
21435
|
-
if (normalizedIdentifier === normalizedDeferredIdentifier) {
|
|
21436
|
-
instanceDeferred.resolve(instance);
|
|
21437
|
-
}
|
|
21438
|
-
}
|
|
21439
|
-
return instance;
|
|
21440
|
-
}
|
|
21441
|
-
/**
|
|
21442
|
-
*
|
|
21443
|
-
* @param callback - a function that will be invoked after the provider has been initialized by calling provider.initialize().
|
|
21444
|
-
* The function is invoked SYNCHRONOUSLY, so it should not execute any longrunning tasks in order to not block the program.
|
|
21445
|
-
*
|
|
21446
|
-
* @param identifier An optional instance identifier
|
|
21447
|
-
* @returns a function to unregister the callback
|
|
21448
|
-
*/
|
|
21449
|
-
onInit(callback, identifier) {
|
|
21450
|
-
var _a;
|
|
21451
|
-
const normalizedIdentifier = this.normalizeInstanceIdentifier(identifier);
|
|
21452
|
-
const existingCallbacks = (_a = this.onInitCallbacks.get(normalizedIdentifier)) != null ? _a : /* @__PURE__ */ new Set();
|
|
21453
|
-
existingCallbacks.add(callback);
|
|
21454
|
-
this.onInitCallbacks.set(normalizedIdentifier, existingCallbacks);
|
|
21455
|
-
const existingInstance = this.instances.get(normalizedIdentifier);
|
|
21456
|
-
if (existingInstance) {
|
|
21457
|
-
callback(existingInstance, normalizedIdentifier);
|
|
21458
|
-
}
|
|
21459
|
-
return () => {
|
|
21460
|
-
existingCallbacks.delete(callback);
|
|
21461
|
-
};
|
|
21462
|
-
}
|
|
21463
|
-
/**
|
|
21464
|
-
* Invoke onInit callbacks synchronously
|
|
21465
|
-
* @param instance the service instance`
|
|
21466
|
-
*/
|
|
21467
|
-
invokeOnInitCallbacks(instance, identifier) {
|
|
21468
|
-
const callbacks = this.onInitCallbacks.get(identifier);
|
|
21469
|
-
if (!callbacks) {
|
|
21470
|
-
return;
|
|
21471
|
-
}
|
|
21472
|
-
for (const callback of callbacks) {
|
|
21473
|
-
try {
|
|
21474
|
-
callback(instance, identifier);
|
|
21475
|
-
} catch {
|
|
21476
|
-
}
|
|
21477
|
-
}
|
|
21478
|
-
}
|
|
21479
|
-
getOrInitializeService({ instanceIdentifier, options = {} }) {
|
|
21480
|
-
let instance = this.instances.get(instanceIdentifier);
|
|
21481
|
-
if (!instance && this.component) {
|
|
21482
|
-
instance = this.component.instanceFactory(this.container, {
|
|
21483
|
-
instanceIdentifier: normalizeIdentifierForFactory(instanceIdentifier),
|
|
21484
|
-
options
|
|
21485
|
-
});
|
|
21486
|
-
this.instances.set(instanceIdentifier, instance);
|
|
21487
|
-
this.instancesOptions.set(instanceIdentifier, options);
|
|
21488
|
-
this.invokeOnInitCallbacks(instance, instanceIdentifier);
|
|
21489
|
-
if (this.component.onInstanceCreated) {
|
|
21490
|
-
try {
|
|
21491
|
-
this.component.onInstanceCreated(this.container, instanceIdentifier, instance);
|
|
21492
|
-
} catch {
|
|
21493
|
-
}
|
|
21494
|
-
}
|
|
21495
|
-
}
|
|
21496
|
-
return instance || null;
|
|
21497
|
-
}
|
|
21498
|
-
normalizeInstanceIdentifier(identifier = DEFAULT_ENTRY_NAME) {
|
|
21499
|
-
if (this.component) {
|
|
21500
|
-
return this.component.multipleInstances ? identifier : DEFAULT_ENTRY_NAME;
|
|
21501
|
-
} else {
|
|
21502
|
-
return identifier;
|
|
21503
|
-
}
|
|
21504
|
-
}
|
|
21505
|
-
shouldAutoInitialize() {
|
|
21506
|
-
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
|
21507
|
-
}
|
|
21508
|
-
};
|
|
21509
|
-
function normalizeIdentifierForFactory(identifier) {
|
|
21510
|
-
return identifier === DEFAULT_ENTRY_NAME ? void 0 : identifier;
|
|
21511
|
-
}
|
|
21512
|
-
function isComponentEager(component) {
|
|
21513
|
-
return component.instantiationMode === "EAGER";
|
|
21514
|
-
}
|
|
21515
|
-
var ComponentContainer = class {
|
|
21516
|
-
constructor(name4) {
|
|
21517
|
-
this.name = name4;
|
|
21518
|
-
this.providers = /* @__PURE__ */ new Map();
|
|
21519
|
-
}
|
|
21520
|
-
/**
|
|
21521
|
-
*
|
|
21522
|
-
* @param component Component being added
|
|
21523
|
-
* @param overwrite When a component with the same name has already been registered,
|
|
21524
|
-
* if overwrite is true: overwrite the existing component with the new component and create a new
|
|
21525
|
-
* provider with the new component. It can be useful in tests where you want to use different mocks
|
|
21526
|
-
* for different tests.
|
|
21527
|
-
* if overwrite is false: throw an exception
|
|
21528
|
-
*/
|
|
21529
|
-
addComponent(component) {
|
|
21530
|
-
const provider = this.getProvider(component.name);
|
|
21531
|
-
if (provider.isComponentSet()) {
|
|
21532
|
-
throw new Error(`Component ${component.name} has already been registered with ${this.name}`);
|
|
21533
|
-
}
|
|
21534
|
-
provider.setComponent(component);
|
|
21535
|
-
}
|
|
21536
|
-
addOrOverwriteComponent(component) {
|
|
21537
|
-
const provider = this.getProvider(component.name);
|
|
21538
|
-
if (provider.isComponentSet()) {
|
|
21539
|
-
this.providers.delete(component.name);
|
|
21540
|
-
}
|
|
21541
|
-
this.addComponent(component);
|
|
21542
|
-
}
|
|
21543
|
-
/**
|
|
21544
|
-
* getProvider provides a type safe interface where it can only be called with a field name
|
|
21545
|
-
* present in NameServiceMapping interface.
|
|
21546
|
-
*
|
|
21547
|
-
* Firebase SDKs providing services should extend NameServiceMapping interface to register
|
|
21548
|
-
* themselves.
|
|
21549
|
-
*/
|
|
21550
|
-
getProvider(name4) {
|
|
21551
|
-
if (this.providers.has(name4)) {
|
|
21552
|
-
return this.providers.get(name4);
|
|
21553
|
-
}
|
|
21554
|
-
const provider = new Provider(name4, this);
|
|
21555
|
-
this.providers.set(name4, provider);
|
|
21556
|
-
return provider;
|
|
21557
|
-
}
|
|
21558
|
-
getProviders() {
|
|
21559
|
-
return Array.from(this.providers.values());
|
|
21560
|
-
}
|
|
21561
|
-
};
|
|
21562
21039
|
|
|
21563
21040
|
// ../node_modules/@firebase/logger/dist/esm/index.esm.js
|
|
21564
21041
|
var instances = [];
|
|
@@ -21606,8 +21083,8 @@ var Logger = class {
|
|
|
21606
21083
|
*
|
|
21607
21084
|
* @param name The name that the logs will be associated with
|
|
21608
21085
|
*/
|
|
21609
|
-
constructor(
|
|
21610
|
-
this.name =
|
|
21086
|
+
constructor(name3) {
|
|
21087
|
+
this.name = name3;
|
|
21611
21088
|
this._logLevel = defaultLogLevel;
|
|
21612
21089
|
this._logHandler = defaultLogHandler;
|
|
21613
21090
|
this._userLogHandler = null;
|
|
@@ -21810,8 +21287,8 @@ function wrap(value) {
|
|
|
21810
21287
|
var unwrap = (value) => reverseTransformCache.get(value);
|
|
21811
21288
|
|
|
21812
21289
|
// ../node_modules/idb/build/index.js
|
|
21813
|
-
function openDB(
|
|
21814
|
-
const request = indexedDB.open(
|
|
21290
|
+
function openDB(name3, version3, { blocked, upgrade, blocking, terminated } = {}) {
|
|
21291
|
+
const request = indexedDB.open(name3, version3);
|
|
21815
21292
|
const openPromise = wrap(request);
|
|
21816
21293
|
if (upgrade) {
|
|
21817
21294
|
request.addEventListener("upgradeneeded", (event) => {
|
|
@@ -21826,11 +21303,11 @@ function openDB(name4, version4, { blocked, upgrade, blocking, terminated } = {}
|
|
|
21826
21303
|
event
|
|
21827
21304
|
));
|
|
21828
21305
|
}
|
|
21829
|
-
openPromise.then((
|
|
21306
|
+
openPromise.then((db) => {
|
|
21830
21307
|
if (terminated)
|
|
21831
|
-
|
|
21308
|
+
db.addEventListener("close", () => terminated());
|
|
21832
21309
|
if (blocking) {
|
|
21833
|
-
|
|
21310
|
+
db.addEventListener("versionchange", (event) => blocking(event.oldVersion, event.newVersion, event));
|
|
21834
21311
|
}
|
|
21835
21312
|
}).catch(() => {
|
|
21836
21313
|
});
|
|
@@ -21926,7 +21403,6 @@ var name$2 = "@firebase/ai";
|
|
|
21926
21403
|
var name$1 = "@firebase/firestore-compat";
|
|
21927
21404
|
var name2 = "firebase";
|
|
21928
21405
|
var version = "12.6.0";
|
|
21929
|
-
var DEFAULT_ENTRY_NAME2 = "[DEFAULT]";
|
|
21930
21406
|
var PLATFORM_LOG_STRING = {
|
|
21931
21407
|
[name$q]: "fire-core",
|
|
21932
21408
|
[name$p]: "fire-core-compat",
|
|
@@ -21961,11 +21437,11 @@ var PLATFORM_LOG_STRING = {
|
|
|
21961
21437
|
var _apps = /* @__PURE__ */ new Map();
|
|
21962
21438
|
var _serverApps = /* @__PURE__ */ new Map();
|
|
21963
21439
|
var _components = /* @__PURE__ */ new Map();
|
|
21964
|
-
function _addComponent(
|
|
21440
|
+
function _addComponent(app, component) {
|
|
21965
21441
|
try {
|
|
21966
|
-
|
|
21442
|
+
app.container.addComponent(component);
|
|
21967
21443
|
} catch (e) {
|
|
21968
|
-
logger.debug(`Component ${component.name} failed to register with FirebaseApp ${
|
|
21444
|
+
logger.debug(`Component ${component.name} failed to register with FirebaseApp ${app.name}`, e);
|
|
21969
21445
|
}
|
|
21970
21446
|
}
|
|
21971
21447
|
function _registerComponent(component) {
|
|
@@ -21975,21 +21451,14 @@ function _registerComponent(component) {
|
|
|
21975
21451
|
return false;
|
|
21976
21452
|
}
|
|
21977
21453
|
_components.set(componentName, component);
|
|
21978
|
-
for (const
|
|
21979
|
-
_addComponent(
|
|
21454
|
+
for (const app of _apps.values()) {
|
|
21455
|
+
_addComponent(app, component);
|
|
21980
21456
|
}
|
|
21981
21457
|
for (const serverApp of _serverApps.values()) {
|
|
21982
21458
|
_addComponent(serverApp, component);
|
|
21983
21459
|
}
|
|
21984
21460
|
return true;
|
|
21985
21461
|
}
|
|
21986
|
-
function _getProvider(app2, name4) {
|
|
21987
|
-
const heartbeatController = app2.container.getProvider("heartbeat").getImmediate({ optional: true });
|
|
21988
|
-
if (heartbeatController) {
|
|
21989
|
-
void heartbeatController.triggerHeartbeat();
|
|
21990
|
-
}
|
|
21991
|
-
return app2.container.getProvider(name4);
|
|
21992
|
-
}
|
|
21993
21462
|
function _isFirebaseServerApp(obj) {
|
|
21994
21463
|
if (obj === null || obj === void 0) {
|
|
21995
21464
|
return false;
|
|
@@ -22055,122 +21524,18 @@ var ERRORS = {
|
|
|
22055
21524
|
]: "FirebaseServerApp is not for use in browser environments."
|
|
22056
21525
|
};
|
|
22057
21526
|
var ERROR_FACTORY = new ErrorFactory("app", "Firebase", ERRORS);
|
|
22058
|
-
var FirebaseAppImpl = class {
|
|
22059
|
-
constructor(options, config, container) {
|
|
22060
|
-
this._isDeleted = false;
|
|
22061
|
-
this._options = { ...options };
|
|
22062
|
-
this._config = { ...config };
|
|
22063
|
-
this._name = config.name;
|
|
22064
|
-
this._automaticDataCollectionEnabled = config.automaticDataCollectionEnabled;
|
|
22065
|
-
this._container = container;
|
|
22066
|
-
this.container.addComponent(new Component(
|
|
22067
|
-
"app",
|
|
22068
|
-
() => this,
|
|
22069
|
-
"PUBLIC"
|
|
22070
|
-
/* ComponentType.PUBLIC */
|
|
22071
|
-
));
|
|
22072
|
-
}
|
|
22073
|
-
get automaticDataCollectionEnabled() {
|
|
22074
|
-
this.checkDestroyed();
|
|
22075
|
-
return this._automaticDataCollectionEnabled;
|
|
22076
|
-
}
|
|
22077
|
-
set automaticDataCollectionEnabled(val) {
|
|
22078
|
-
this.checkDestroyed();
|
|
22079
|
-
this._automaticDataCollectionEnabled = val;
|
|
22080
|
-
}
|
|
22081
|
-
get name() {
|
|
22082
|
-
this.checkDestroyed();
|
|
22083
|
-
return this._name;
|
|
22084
|
-
}
|
|
22085
|
-
get options() {
|
|
22086
|
-
this.checkDestroyed();
|
|
22087
|
-
return this._options;
|
|
22088
|
-
}
|
|
22089
|
-
get config() {
|
|
22090
|
-
this.checkDestroyed();
|
|
22091
|
-
return this._config;
|
|
22092
|
-
}
|
|
22093
|
-
get container() {
|
|
22094
|
-
return this._container;
|
|
22095
|
-
}
|
|
22096
|
-
get isDeleted() {
|
|
22097
|
-
return this._isDeleted;
|
|
22098
|
-
}
|
|
22099
|
-
set isDeleted(val) {
|
|
22100
|
-
this._isDeleted = val;
|
|
22101
|
-
}
|
|
22102
|
-
/**
|
|
22103
|
-
* This function will throw an Error if the App has already been deleted -
|
|
22104
|
-
* use before performing API actions on the App.
|
|
22105
|
-
*/
|
|
22106
|
-
checkDestroyed() {
|
|
22107
|
-
if (this.isDeleted) {
|
|
22108
|
-
throw ERROR_FACTORY.create("app-deleted", { appName: this._name });
|
|
22109
|
-
}
|
|
22110
|
-
}
|
|
22111
|
-
};
|
|
22112
21527
|
var SDK_VERSION = version;
|
|
22113
|
-
function
|
|
22114
|
-
let options = _options;
|
|
22115
|
-
if (typeof rawConfig !== "object") {
|
|
22116
|
-
const name5 = rawConfig;
|
|
22117
|
-
rawConfig = { name: name5 };
|
|
22118
|
-
}
|
|
22119
|
-
const config = {
|
|
22120
|
-
name: DEFAULT_ENTRY_NAME2,
|
|
22121
|
-
automaticDataCollectionEnabled: true,
|
|
22122
|
-
...rawConfig
|
|
22123
|
-
};
|
|
22124
|
-
const name4 = config.name;
|
|
22125
|
-
if (typeof name4 !== "string" || !name4) {
|
|
22126
|
-
throw ERROR_FACTORY.create("bad-app-name", {
|
|
22127
|
-
appName: String(name4)
|
|
22128
|
-
});
|
|
22129
|
-
}
|
|
22130
|
-
options || (options = getDefaultAppConfig());
|
|
22131
|
-
if (!options) {
|
|
22132
|
-
throw ERROR_FACTORY.create(
|
|
22133
|
-
"no-options"
|
|
22134
|
-
/* AppError.NO_OPTIONS */
|
|
22135
|
-
);
|
|
22136
|
-
}
|
|
22137
|
-
const existingApp = _apps.get(name4);
|
|
22138
|
-
if (existingApp) {
|
|
22139
|
-
if (deepEqual(options, existingApp.options) && deepEqual(config, existingApp.config)) {
|
|
22140
|
-
return existingApp;
|
|
22141
|
-
} else {
|
|
22142
|
-
throw ERROR_FACTORY.create("duplicate-app", { appName: name4 });
|
|
22143
|
-
}
|
|
22144
|
-
}
|
|
22145
|
-
const container = new ComponentContainer(name4);
|
|
22146
|
-
for (const component of _components.values()) {
|
|
22147
|
-
container.addComponent(component);
|
|
22148
|
-
}
|
|
22149
|
-
const newApp = new FirebaseAppImpl(options, config, container);
|
|
22150
|
-
_apps.set(name4, newApp);
|
|
22151
|
-
return newApp;
|
|
22152
|
-
}
|
|
22153
|
-
function getApp(name4 = DEFAULT_ENTRY_NAME2) {
|
|
22154
|
-
const app2 = _apps.get(name4);
|
|
22155
|
-
if (!app2 && name4 === DEFAULT_ENTRY_NAME2 && getDefaultAppConfig()) {
|
|
22156
|
-
return initializeApp();
|
|
22157
|
-
}
|
|
22158
|
-
if (!app2) {
|
|
22159
|
-
throw ERROR_FACTORY.create("no-app", { appName: name4 });
|
|
22160
|
-
}
|
|
22161
|
-
return app2;
|
|
22162
|
-
}
|
|
22163
|
-
function registerVersion(libraryKeyOrName, version4, variant) {
|
|
21528
|
+
function registerVersion(libraryKeyOrName, version3, variant) {
|
|
22164
21529
|
var _a;
|
|
22165
21530
|
let library = (_a = PLATFORM_LOG_STRING[libraryKeyOrName]) != null ? _a : libraryKeyOrName;
|
|
22166
21531
|
if (variant) {
|
|
22167
21532
|
library += `-${variant}`;
|
|
22168
21533
|
}
|
|
22169
21534
|
const libraryMismatch = library.match(/\s|\//);
|
|
22170
|
-
const versionMismatch =
|
|
21535
|
+
const versionMismatch = version3.match(/\s|\//);
|
|
22171
21536
|
if (libraryMismatch || versionMismatch) {
|
|
22172
21537
|
const warning = [
|
|
22173
|
-
`Unable to register library "${library}" with version "${
|
|
21538
|
+
`Unable to register library "${library}" with version "${version3}":`
|
|
22174
21539
|
];
|
|
22175
21540
|
if (libraryMismatch) {
|
|
22176
21541
|
warning.push(`library name "${library}" contains illegal characters (whitespace or "/")`);
|
|
@@ -22179,14 +21544,14 @@ function registerVersion(libraryKeyOrName, version4, variant) {
|
|
|
22179
21544
|
warning.push("and");
|
|
22180
21545
|
}
|
|
22181
21546
|
if (versionMismatch) {
|
|
22182
|
-
warning.push(`version name "${
|
|
21547
|
+
warning.push(`version name "${version3}" contains illegal characters (whitespace or "/")`);
|
|
22183
21548
|
}
|
|
22184
21549
|
logger.warn(warning.join(" "));
|
|
22185
21550
|
return;
|
|
22186
21551
|
}
|
|
22187
21552
|
_registerComponent(new Component(
|
|
22188
21553
|
`${library}-version`,
|
|
22189
|
-
() => ({ library, version:
|
|
21554
|
+
() => ({ library, version: version3 }),
|
|
22190
21555
|
"VERSION"
|
|
22191
21556
|
/* ComponentType.VERSION */
|
|
22192
21557
|
));
|
|
@@ -22198,11 +21563,11 @@ var dbPromise = null;
|
|
|
22198
21563
|
function getDbPromise() {
|
|
22199
21564
|
if (!dbPromise) {
|
|
22200
21565
|
dbPromise = openDB(DB_NAME, DB_VERSION, {
|
|
22201
|
-
upgrade: (
|
|
21566
|
+
upgrade: (db, oldVersion) => {
|
|
22202
21567
|
switch (oldVersion) {
|
|
22203
21568
|
case 0:
|
|
22204
21569
|
try {
|
|
22205
|
-
|
|
21570
|
+
db.createObjectStore(STORE_NAME);
|
|
22206
21571
|
} catch (e) {
|
|
22207
21572
|
console.warn(e);
|
|
22208
21573
|
}
|
|
@@ -22216,11 +21581,11 @@ function getDbPromise() {
|
|
|
22216
21581
|
}
|
|
22217
21582
|
return dbPromise;
|
|
22218
21583
|
}
|
|
22219
|
-
async function readHeartbeatsFromIndexedDB(
|
|
21584
|
+
async function readHeartbeatsFromIndexedDB(app) {
|
|
22220
21585
|
try {
|
|
22221
|
-
const
|
|
22222
|
-
const tx =
|
|
22223
|
-
const result = await tx.objectStore(STORE_NAME).get(computeKey(
|
|
21586
|
+
const db = await getDbPromise();
|
|
21587
|
+
const tx = db.transaction(STORE_NAME);
|
|
21588
|
+
const result = await tx.objectStore(STORE_NAME).get(computeKey(app));
|
|
22224
21589
|
await tx.done;
|
|
22225
21590
|
return result;
|
|
22226
21591
|
} catch (e) {
|
|
@@ -22234,12 +21599,12 @@ async function readHeartbeatsFromIndexedDB(app2) {
|
|
|
22234
21599
|
}
|
|
22235
21600
|
}
|
|
22236
21601
|
}
|
|
22237
|
-
async function writeHeartbeatsToIndexedDB(
|
|
21602
|
+
async function writeHeartbeatsToIndexedDB(app, heartbeatObject) {
|
|
22238
21603
|
try {
|
|
22239
|
-
const
|
|
22240
|
-
const tx =
|
|
21604
|
+
const db = await getDbPromise();
|
|
21605
|
+
const tx = db.transaction(STORE_NAME, "readwrite");
|
|
22241
21606
|
const objectStore = tx.objectStore(STORE_NAME);
|
|
22242
|
-
await objectStore.put(heartbeatObject, computeKey(
|
|
21607
|
+
await objectStore.put(heartbeatObject, computeKey(app));
|
|
22243
21608
|
await tx.done;
|
|
22244
21609
|
} catch (e) {
|
|
22245
21610
|
if (e instanceof FirebaseError) {
|
|
@@ -22252,8 +21617,8 @@ async function writeHeartbeatsToIndexedDB(app2, heartbeatObject) {
|
|
|
22252
21617
|
}
|
|
22253
21618
|
}
|
|
22254
21619
|
}
|
|
22255
|
-
function computeKey(
|
|
22256
|
-
return `${
|
|
21620
|
+
function computeKey(app) {
|
|
21621
|
+
return `${app.name}!${app.options.appId}`;
|
|
22257
21622
|
}
|
|
22258
21623
|
var MAX_HEADER_BYTES = 1024;
|
|
22259
21624
|
var MAX_NUM_STORED_HEARTBEATS = 30;
|
|
@@ -22261,8 +21626,8 @@ var HeartbeatServiceImpl = class {
|
|
|
22261
21626
|
constructor(container) {
|
|
22262
21627
|
this.container = container;
|
|
22263
21628
|
this._heartbeatsCache = null;
|
|
22264
|
-
const
|
|
22265
|
-
this._storage = new HeartbeatStorageImpl(
|
|
21629
|
+
const app = this.container.getProvider("app").getImmediate();
|
|
21630
|
+
this._storage = new HeartbeatStorageImpl(app);
|
|
22266
21631
|
this._heartbeatsCachePromise = this._storage.read().then((result) => {
|
|
22267
21632
|
this._heartbeatsCache = result;
|
|
22268
21633
|
return result;
|
|
@@ -22368,8 +21733,8 @@ function extractHeartbeatsForHeader(heartbeatsCache, maxSize = MAX_HEADER_BYTES)
|
|
|
22368
21733
|
};
|
|
22369
21734
|
}
|
|
22370
21735
|
var HeartbeatStorageImpl = class {
|
|
22371
|
-
constructor(
|
|
22372
|
-
this.app =
|
|
21736
|
+
constructor(app) {
|
|
21737
|
+
this.app = app;
|
|
22373
21738
|
this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
|
22374
21739
|
}
|
|
22375
21740
|
async runIndexedDBEnvironmentCheck() {
|
|
@@ -22933,8 +22298,8 @@ User.FIRST_PARTY = new User("first-party-uid");
|
|
|
22933
22298
|
User.MOCK_USER = new User("mock-user");
|
|
22934
22299
|
var version2 = "12.3.0";
|
|
22935
22300
|
var SDK_VERSION2 = version2;
|
|
22936
|
-
function setSDKVersion(
|
|
22937
|
-
SDK_VERSION2 =
|
|
22301
|
+
function setSDKVersion(version3) {
|
|
22302
|
+
SDK_VERSION2 = version3;
|
|
22938
22303
|
}
|
|
22939
22304
|
function formatJSON(value) {
|
|
22940
22305
|
return inspect(value, { depth: 100 });
|
|
@@ -23157,24 +22522,6 @@ var EmptyAuthCredentialsProvider = class {
|
|
|
23157
22522
|
shutdown() {
|
|
23158
22523
|
}
|
|
23159
22524
|
};
|
|
23160
|
-
var EmulatorAuthCredentialsProvider = class {
|
|
23161
|
-
constructor(token) {
|
|
23162
|
-
this.token = token;
|
|
23163
|
-
this.changeListener = null;
|
|
23164
|
-
}
|
|
23165
|
-
getToken() {
|
|
23166
|
-
return Promise.resolve(this.token);
|
|
23167
|
-
}
|
|
23168
|
-
invalidateToken() {
|
|
23169
|
-
}
|
|
23170
|
-
start(asyncQueue, changeListener) {
|
|
23171
|
-
this.changeListener = changeListener;
|
|
23172
|
-
asyncQueue.enqueueRetryable(() => changeListener(this.token.user));
|
|
23173
|
-
}
|
|
23174
|
-
shutdown() {
|
|
23175
|
-
this.changeListener = null;
|
|
23176
|
-
}
|
|
23177
|
-
};
|
|
23178
22525
|
var FirebaseAuthCredentialsProvider = class {
|
|
23179
22526
|
constructor(authProvider) {
|
|
23180
22527
|
this.authProvider = authProvider;
|
|
@@ -23332,14 +22679,14 @@ var AppCheckToken = class {
|
|
|
23332
22679
|
}
|
|
23333
22680
|
};
|
|
23334
22681
|
var FirebaseAppCheckTokenProvider = class {
|
|
23335
|
-
constructor(
|
|
22682
|
+
constructor(app, appCheckProvider) {
|
|
23336
22683
|
this.appCheckProvider = appCheckProvider;
|
|
23337
22684
|
this.forceRefresh = false;
|
|
23338
22685
|
this.appCheck = null;
|
|
23339
22686
|
this.latestAppCheckToken = null;
|
|
23340
22687
|
this.serverAppAppCheckToken = null;
|
|
23341
|
-
if (_isFirebaseServerApp(
|
|
23342
|
-
this.serverAppAppCheckToken =
|
|
22688
|
+
if (_isFirebaseServerApp(app) && app.settings.appCheckToken) {
|
|
22689
|
+
this.serverAppAppCheckToken = app.settings.appCheckToken;
|
|
23343
22690
|
}
|
|
23344
22691
|
}
|
|
23345
22692
|
start(asyncQueue, changeListener) {
|
|
@@ -23733,8 +23080,8 @@ var DocumentKey = class _DocumentKey {
|
|
|
23733
23080
|
static fromPath(path) {
|
|
23734
23081
|
return new _DocumentKey(ResourcePath.fromString(path));
|
|
23735
23082
|
}
|
|
23736
|
-
static fromName(
|
|
23737
|
-
return new _DocumentKey(ResourcePath.fromString(
|
|
23083
|
+
static fromName(name3) {
|
|
23084
|
+
return new _DocumentKey(ResourcePath.fromString(name3).popFirst(5));
|
|
23738
23085
|
}
|
|
23739
23086
|
static empty() {
|
|
23740
23087
|
return new _DocumentKey(ResourcePath.emptyPath());
|
|
@@ -24287,8 +23634,8 @@ var PersistencePromise = class _PersistencePromise {
|
|
|
24287
23634
|
};
|
|
24288
23635
|
function getAndroidVersion(ua) {
|
|
24289
23636
|
const androidVersionRegex = ua.match(/Android ([\d.]+)/i);
|
|
24290
|
-
const
|
|
24291
|
-
return Number(
|
|
23637
|
+
const version3 = androidVersionRegex ? androidVersionRegex[1].split(".").slice(0, 2).join(".") : "-1";
|
|
23638
|
+
return Number(version3);
|
|
24292
23639
|
}
|
|
24293
23640
|
function isIndexedDbTransactionError(e) {
|
|
24294
23641
|
return e.name === "IndexedDbTransactionError";
|
|
@@ -25207,11 +24554,11 @@ var DatabaseId = class _DatabaseId {
|
|
|
25207
24554
|
return other instanceof _DatabaseId && other.projectId === this.projectId && other.database === this.database;
|
|
25208
24555
|
}
|
|
25209
24556
|
};
|
|
25210
|
-
function databaseIdFromApp(
|
|
25211
|
-
if (!Object.prototype.hasOwnProperty.apply(
|
|
24557
|
+
function databaseIdFromApp(app, database) {
|
|
24558
|
+
if (!Object.prototype.hasOwnProperty.apply(app.options, ["projectId"])) {
|
|
25212
24559
|
throw new FirestoreError(Code.INVALID_ARGUMENT, '"projectId" not provided in firebase.initializeApp.');
|
|
25213
24560
|
}
|
|
25214
|
-
return new DatabaseId(
|
|
24561
|
+
return new DatabaseId(app.options.projectId, database);
|
|
25215
24562
|
}
|
|
25216
24563
|
var BATCHID_UNKNOWN = -1;
|
|
25217
24564
|
function isNullOrUndefined(value) {
|
|
@@ -25772,10 +25119,10 @@ var ObjectValue = class _ObjectValue {
|
|
|
25772
25119
|
}
|
|
25773
25120
|
};
|
|
25774
25121
|
var MutableDocument = class _MutableDocument {
|
|
25775
|
-
constructor(key, documentType,
|
|
25122
|
+
constructor(key, documentType, version3, readTime, createTime, data, documentState) {
|
|
25776
25123
|
this.key = key;
|
|
25777
25124
|
this.documentType = documentType;
|
|
25778
|
-
this.version =
|
|
25125
|
+
this.version = version3;
|
|
25779
25126
|
this.readTime = readTime;
|
|
25780
25127
|
this.createTime = createTime;
|
|
25781
25128
|
this.data = data;
|
|
@@ -25804,12 +25151,12 @@ var MutableDocument = class _MutableDocument {
|
|
|
25804
25151
|
* Creates a new document that is known to exist with the given data at the
|
|
25805
25152
|
* given version.
|
|
25806
25153
|
*/
|
|
25807
|
-
static newFoundDocument(documentKey,
|
|
25154
|
+
static newFoundDocument(documentKey, version3, createTime, value) {
|
|
25808
25155
|
return new _MutableDocument(
|
|
25809
25156
|
documentKey,
|
|
25810
25157
|
1,
|
|
25811
25158
|
/* version */
|
|
25812
|
-
|
|
25159
|
+
version3,
|
|
25813
25160
|
/* readTime */
|
|
25814
25161
|
SnapshotVersion.min(),
|
|
25815
25162
|
/* createTime */
|
|
@@ -25820,12 +25167,12 @@ var MutableDocument = class _MutableDocument {
|
|
|
25820
25167
|
);
|
|
25821
25168
|
}
|
|
25822
25169
|
/** Creates a new document that is known to not exist at the given version. */
|
|
25823
|
-
static newNoDocument(documentKey,
|
|
25170
|
+
static newNoDocument(documentKey, version3) {
|
|
25824
25171
|
return new _MutableDocument(
|
|
25825
25172
|
documentKey,
|
|
25826
25173
|
2,
|
|
25827
25174
|
/* version */
|
|
25828
|
-
|
|
25175
|
+
version3,
|
|
25829
25176
|
/* readTime */
|
|
25830
25177
|
SnapshotVersion.min(),
|
|
25831
25178
|
/* createTime */
|
|
@@ -25840,12 +25187,12 @@ var MutableDocument = class _MutableDocument {
|
|
|
25840
25187
|
* whose data is not known (e.g. a document that was updated without a known
|
|
25841
25188
|
* base document).
|
|
25842
25189
|
*/
|
|
25843
|
-
static newUnknownDocument(documentKey,
|
|
25190
|
+
static newUnknownDocument(documentKey, version3) {
|
|
25844
25191
|
return new _MutableDocument(
|
|
25845
25192
|
documentKey,
|
|
25846
25193
|
3,
|
|
25847
25194
|
/* version */
|
|
25848
|
-
|
|
25195
|
+
version3,
|
|
25849
25196
|
/* readTime */
|
|
25850
25197
|
SnapshotVersion.min(),
|
|
25851
25198
|
/* createTime */
|
|
@@ -25859,11 +25206,11 @@ var MutableDocument = class _MutableDocument {
|
|
|
25859
25206
|
* Changes the document type to indicate that it exists and that its version
|
|
25860
25207
|
* and data are known.
|
|
25861
25208
|
*/
|
|
25862
|
-
convertToFoundDocument(
|
|
25209
|
+
convertToFoundDocument(version3, value) {
|
|
25863
25210
|
if (this.createTime.isEqual(SnapshotVersion.min()) && (this.documentType === 2 || this.documentType === 0)) {
|
|
25864
|
-
this.createTime =
|
|
25211
|
+
this.createTime = version3;
|
|
25865
25212
|
}
|
|
25866
|
-
this.version =
|
|
25213
|
+
this.version = version3;
|
|
25867
25214
|
this.documentType = 1;
|
|
25868
25215
|
this.data = value;
|
|
25869
25216
|
this.documentState = 0;
|
|
@@ -25873,8 +25220,8 @@ var MutableDocument = class _MutableDocument {
|
|
|
25873
25220
|
* Changes the document type to indicate that it doesn't exist at the given
|
|
25874
25221
|
* version.
|
|
25875
25222
|
*/
|
|
25876
|
-
convertToNoDocument(
|
|
25877
|
-
this.version =
|
|
25223
|
+
convertToNoDocument(version3) {
|
|
25224
|
+
this.version = version3;
|
|
25878
25225
|
this.documentType = 2;
|
|
25879
25226
|
this.data = ObjectValue.empty();
|
|
25880
25227
|
this.documentState = 0;
|
|
@@ -25885,8 +25232,8 @@ var MutableDocument = class _MutableDocument {
|
|
|
25885
25232
|
* that its data is not known (e.g. a document that was updated without a known
|
|
25886
25233
|
* base document).
|
|
25887
25234
|
*/
|
|
25888
|
-
convertToUnknownDocument(
|
|
25889
|
-
this.version =
|
|
25235
|
+
convertToUnknownDocument(version3) {
|
|
25236
|
+
this.version = version3;
|
|
25890
25237
|
this.documentType = 3;
|
|
25891
25238
|
this.data = ObjectValue.empty();
|
|
25892
25239
|
this.documentState = 2;
|
|
@@ -26799,8 +26146,8 @@ var Precondition = class _Precondition {
|
|
|
26799
26146
|
return new _Precondition(void 0, exists);
|
|
26800
26147
|
}
|
|
26801
26148
|
/** Creates a new Precondition based on a version a document exists at. */
|
|
26802
|
-
static updateTime(
|
|
26803
|
-
return new _Precondition(
|
|
26149
|
+
static updateTime(version3) {
|
|
26150
|
+
return new _Precondition(version3);
|
|
26804
26151
|
}
|
|
26805
26152
|
/** Returns whether this Precondition is empty. */
|
|
26806
26153
|
get isNone() {
|
|
@@ -27993,9 +27340,9 @@ function fromBytes(serializer, value) {
|
|
|
27993
27340
|
return ByteString.fromUint8Array(value ? value : new Uint8Array());
|
|
27994
27341
|
}
|
|
27995
27342
|
}
|
|
27996
|
-
function fromVersion(
|
|
27997
|
-
hardAssert(!!
|
|
27998
|
-
return SnapshotVersion.fromTimestamp(fromTimestamp(
|
|
27343
|
+
function fromVersion(version3) {
|
|
27344
|
+
hardAssert(!!version3, 49232);
|
|
27345
|
+
return SnapshotVersion.fromTimestamp(fromTimestamp(version3));
|
|
27999
27346
|
}
|
|
28000
27347
|
function toResourceName(databaseId, path) {
|
|
28001
27348
|
return toResourcePath(databaseId, path).canonicalString();
|
|
@@ -28004,16 +27351,16 @@ function toResourcePath(databaseId, path) {
|
|
|
28004
27351
|
const resourcePath = fullyQualifiedPrefixPath(databaseId).child("documents");
|
|
28005
27352
|
return path === void 0 ? resourcePath : resourcePath.child(path);
|
|
28006
27353
|
}
|
|
28007
|
-
function fromResourceName(
|
|
28008
|
-
const resource = ResourcePath.fromString(
|
|
27354
|
+
function fromResourceName(name3) {
|
|
27355
|
+
const resource = ResourcePath.fromString(name3);
|
|
28009
27356
|
hardAssert(isValidResourceName(resource), 10190, { key: resource.toString() });
|
|
28010
27357
|
return resource;
|
|
28011
27358
|
}
|
|
28012
27359
|
function toName(serializer, key) {
|
|
28013
27360
|
return toResourceName(serializer.databaseId, key.path);
|
|
28014
27361
|
}
|
|
28015
|
-
function fromName(serializer,
|
|
28016
|
-
const resource = fromResourceName(
|
|
27362
|
+
function fromName(serializer, name3) {
|
|
27363
|
+
const resource = fromResourceName(name3);
|
|
28017
27364
|
if (resource.get(1) !== serializer.databaseId.projectId) {
|
|
28018
27365
|
throw new FirestoreError(Code.INVALID_ARGUMENT, "Tried to deserialize key from different project: " + resource.get(1) + " vs " + serializer.databaseId.projectId);
|
|
28019
27366
|
}
|
|
@@ -28025,8 +27372,8 @@ function fromName(serializer, name4) {
|
|
|
28025
27372
|
function toQueryPath(serializer, path) {
|
|
28026
27373
|
return toResourceName(serializer.databaseId, path);
|
|
28027
27374
|
}
|
|
28028
|
-
function fromQueryPath(
|
|
28029
|
-
const resourceName = fromResourceName(
|
|
27375
|
+
function fromQueryPath(name3) {
|
|
27376
|
+
const resourceName = fromResourceName(name3);
|
|
28030
27377
|
if (resourceName.length === 4) {
|
|
28031
27378
|
return ResourcePath.emptyPath();
|
|
28032
27379
|
}
|
|
@@ -28070,12 +27417,12 @@ function fromWatchChange(serializer, change) {
|
|
|
28070
27417
|
assertPresent(entityChange.document.name);
|
|
28071
27418
|
assertPresent(entityChange.document.updateTime);
|
|
28072
27419
|
const key = fromName(serializer, entityChange.document.name);
|
|
28073
|
-
const
|
|
27420
|
+
const version3 = fromVersion(entityChange.document.updateTime);
|
|
28074
27421
|
const createTime = entityChange.document.createTime ? fromVersion(entityChange.document.createTime) : SnapshotVersion.min();
|
|
28075
27422
|
const data = new ObjectValue({
|
|
28076
27423
|
mapValue: { fields: entityChange.document.fields }
|
|
28077
27424
|
});
|
|
28078
|
-
const doc3 = MutableDocument.newFoundDocument(key,
|
|
27425
|
+
const doc3 = MutableDocument.newFoundDocument(key, version3, createTime, data);
|
|
28079
27426
|
const updatedTargetIds = entityChange.targetIds || [];
|
|
28080
27427
|
const removedTargetIds = entityChange.removedTargetIds || [];
|
|
28081
27428
|
watchChange = new DocumentWatchChange(updatedTargetIds, removedTargetIds, doc3.key, doc3);
|
|
@@ -28084,8 +27431,8 @@ function fromWatchChange(serializer, change) {
|
|
|
28084
27431
|
const docDelete = change.documentDelete;
|
|
28085
27432
|
assertPresent(docDelete.document);
|
|
28086
27433
|
const key = fromName(serializer, docDelete.document);
|
|
28087
|
-
const
|
|
28088
|
-
const doc3 = MutableDocument.newNoDocument(key,
|
|
27434
|
+
const version3 = docDelete.readTime ? fromVersion(docDelete.readTime) : SnapshotVersion.min();
|
|
27435
|
+
const doc3 = MutableDocument.newNoDocument(key, version3);
|
|
28089
27436
|
const removedTargetIds = docDelete.removedTargetIds || [];
|
|
28090
27437
|
watchChange = new DocumentWatchChange([], removedTargetIds, doc3.key, doc3);
|
|
28091
27438
|
} else if ("documentRemove" in change) {
|
|
@@ -36500,50 +35847,6 @@ var Firestore$1 = class {
|
|
|
36500
35847
|
return Promise.resolve();
|
|
36501
35848
|
}
|
|
36502
35849
|
};
|
|
36503
|
-
function connectFirestoreEmulator(firestore, host, port, options = {}) {
|
|
36504
|
-
var _a;
|
|
36505
|
-
firestore = cast(firestore, Firestore$1);
|
|
36506
|
-
const useSsl = isCloudWorkstation(host);
|
|
36507
|
-
const settings = firestore._getSettings();
|
|
36508
|
-
const existingConfig = {
|
|
36509
|
-
...settings,
|
|
36510
|
-
emulatorOptions: firestore._getEmulatorOptions()
|
|
36511
|
-
};
|
|
36512
|
-
const newHostSetting = `${host}:${port}`;
|
|
36513
|
-
if (useSsl) {
|
|
36514
|
-
void pingServer(`https://${newHostSetting}`);
|
|
36515
|
-
updateEmulatorBanner("Firestore", true);
|
|
36516
|
-
}
|
|
36517
|
-
if (settings.host !== DEFAULT_HOST && settings.host !== newHostSetting) {
|
|
36518
|
-
logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
|
|
36519
|
-
}
|
|
36520
|
-
const newConfig = {
|
|
36521
|
-
...settings,
|
|
36522
|
-
host: newHostSetting,
|
|
36523
|
-
ssl: useSsl,
|
|
36524
|
-
emulatorOptions: options
|
|
36525
|
-
};
|
|
36526
|
-
if (deepEqual(newConfig, existingConfig)) {
|
|
36527
|
-
return;
|
|
36528
|
-
}
|
|
36529
|
-
firestore._setSettings(newConfig);
|
|
36530
|
-
if (options.mockUserToken) {
|
|
36531
|
-
let token;
|
|
36532
|
-
let user;
|
|
36533
|
-
if (typeof options.mockUserToken === "string") {
|
|
36534
|
-
token = options.mockUserToken;
|
|
36535
|
-
user = User.MOCK_USER;
|
|
36536
|
-
} else {
|
|
36537
|
-
token = createMockUserToken(options.mockUserToken, (_a = firestore._app) == null ? void 0 : _a.options.projectId);
|
|
36538
|
-
const uid = options.mockUserToken.sub || options.mockUserToken.user_id;
|
|
36539
|
-
if (!uid) {
|
|
36540
|
-
throw new FirestoreError(Code.INVALID_ARGUMENT, "mockUserToken must contain 'sub' or 'user_id' field!");
|
|
36541
|
-
}
|
|
36542
|
-
user = new User(uid);
|
|
36543
|
-
}
|
|
36544
|
-
firestore._authCredentials = new EmulatorAuthCredentialsProvider(new OAuthToken(token, user));
|
|
36545
|
-
}
|
|
36546
|
-
}
|
|
36547
35850
|
var Query = class _Query {
|
|
36548
35851
|
// This is the lite version of the Query class in the main SDK.
|
|
36549
35852
|
/** @hideconstructor protected */
|
|
@@ -36861,11 +36164,11 @@ function getMessageOrStack(error) {
|
|
|
36861
36164
|
}
|
|
36862
36165
|
var Firestore = class extends Firestore$1 {
|
|
36863
36166
|
/** @hideconstructor */
|
|
36864
|
-
constructor(authCredentialsProvider, appCheckCredentialsProvider, databaseId,
|
|
36865
|
-
super(authCredentialsProvider, appCheckCredentialsProvider, databaseId,
|
|
36167
|
+
constructor(authCredentialsProvider, appCheckCredentialsProvider, databaseId, app) {
|
|
36168
|
+
super(authCredentialsProvider, appCheckCredentialsProvider, databaseId, app);
|
|
36866
36169
|
this.type = "firestore";
|
|
36867
36170
|
this._queue = new AsyncQueueImpl();
|
|
36868
|
-
this._persistenceKey = (
|
|
36171
|
+
this._persistenceKey = (app == null ? void 0 : app.name) || "[DEFAULT]";
|
|
36869
36172
|
}
|
|
36870
36173
|
async _terminate() {
|
|
36871
36174
|
if (this._firestoreClient) {
|
|
@@ -36876,20 +36179,6 @@ var Firestore = class extends Firestore$1 {
|
|
|
36876
36179
|
}
|
|
36877
36180
|
}
|
|
36878
36181
|
};
|
|
36879
|
-
function getFirestore(appOrDatabaseId, optionalDatabaseId) {
|
|
36880
|
-
const app2 = typeof appOrDatabaseId === "object" ? appOrDatabaseId : getApp();
|
|
36881
|
-
const databaseId = typeof appOrDatabaseId === "string" ? appOrDatabaseId : optionalDatabaseId || DEFAULT_DATABASE_NAME;
|
|
36882
|
-
const db2 = _getProvider(app2, "firestore").getImmediate({
|
|
36883
|
-
identifier: databaseId
|
|
36884
|
-
});
|
|
36885
|
-
if (!db2._initialized) {
|
|
36886
|
-
const emulator = getDefaultEmulatorHostnameAndPort("firestore");
|
|
36887
|
-
if (emulator) {
|
|
36888
|
-
connectFirestoreEmulator(db2, ...emulator);
|
|
36889
|
-
}
|
|
36890
|
-
}
|
|
36891
|
-
return db2;
|
|
36892
|
-
}
|
|
36893
36182
|
function ensureFirestoreConfigured(firestore) {
|
|
36894
36183
|
if (firestore._terminated) {
|
|
36895
36184
|
throw new FirestoreError(Code.FAILED_PRECONDITION, "The client has already been terminated.");
|
|
@@ -36923,8 +36212,8 @@ function buildComponentProvider(componentsProvider) {
|
|
|
36923
36212
|
function registerFirestore(variant, useFetchStreams = true) {
|
|
36924
36213
|
setSDKVersion(SDK_VERSION);
|
|
36925
36214
|
_registerComponent(new Component("firestore", (container, { instanceIdentifier: databaseId, options: settings }) => {
|
|
36926
|
-
const
|
|
36927
|
-
const firestoreInstance = new Firestore(new FirebaseAuthCredentialsProvider(container.getProvider("auth-internal")), new FirebaseAppCheckTokenProvider(
|
|
36215
|
+
const app = container.getProvider("app").getImmediate();
|
|
36216
|
+
const firestoreInstance = new Firestore(new FirebaseAuthCredentialsProvider(container.getProvider("auth-internal")), new FirebaseAppCheckTokenProvider(app, container.getProvider("app-check-internal")), databaseIdFromApp(app, databaseId), app);
|
|
36928
36217
|
settings = { useFetchStreams, ...settings };
|
|
36929
36218
|
firestoreInstance._setSettings(settings);
|
|
36930
36219
|
return firestoreInstance;
|
|
@@ -37671,9 +36960,9 @@ var AbstractUserDataWriter = class {
|
|
|
37671
36960
|
const normalizedValue = normalizeTimestamp(value);
|
|
37672
36961
|
return new Timestamp(normalizedValue.seconds, normalizedValue.nanos);
|
|
37673
36962
|
}
|
|
37674
|
-
convertDocumentKey(
|
|
37675
|
-
const resourcePath = ResourcePath.fromString(
|
|
37676
|
-
hardAssert(isValidResourceName(resourcePath), 9688, { name:
|
|
36963
|
+
convertDocumentKey(name3, expectedDatabaseId) {
|
|
36964
|
+
const resourcePath = ResourcePath.fromString(name3);
|
|
36965
|
+
hardAssert(isValidResourceName(resourcePath), 9688, { name: name3 });
|
|
37677
36966
|
const databaseId = new DatabaseId(resourcePath.get(1), resourcePath.get(3));
|
|
37678
36967
|
const key = new DocumentKey(resourcePath.popFirst(5));
|
|
37679
36968
|
if (!databaseId.isEqual(expectedDatabaseId)) {
|
|
@@ -37930,12 +37219,12 @@ var BundleBuilder = class {
|
|
|
37930
37219
|
return bundleString;
|
|
37931
37220
|
}
|
|
37932
37221
|
};
|
|
37933
|
-
function buildDocumentSnapshotJsonBundle(
|
|
37934
|
-
const builder = new BundleBuilder(
|
|
37222
|
+
function buildDocumentSnapshotJsonBundle(db, document2, docData, path) {
|
|
37223
|
+
const builder = new BundleBuilder(db, AutoId.newId());
|
|
37935
37224
|
builder.addBundleDocument(documentToDocumentSnapshotBundleData(path, docData, document2));
|
|
37936
37225
|
return builder.build();
|
|
37937
37226
|
}
|
|
37938
|
-
function buildQuerySnapshotJsonBundle(
|
|
37227
|
+
function buildQuerySnapshotJsonBundle(db, query, bundleName, parent, paths, docs, documentData) {
|
|
37939
37228
|
const docBundleDataArray = [];
|
|
37940
37229
|
for (let i = 0; i < docs.length; i++) {
|
|
37941
37230
|
docBundleDataArray.push(documentToDocumentSnapshotBundleData(paths[i], documentData[i], docs[i]));
|
|
@@ -37946,7 +37235,7 @@ function buildQuerySnapshotJsonBundle(db2, query, bundleName, parent, paths, doc
|
|
|
37946
37235
|
parent,
|
|
37947
37236
|
docBundleDataArray
|
|
37948
37237
|
};
|
|
37949
|
-
const builder = new BundleBuilder(
|
|
37238
|
+
const builder = new BundleBuilder(db, bundleName);
|
|
37950
37239
|
builder.addBundleQuery(bundleData);
|
|
37951
37240
|
return builder.build();
|
|
37952
37241
|
}
|
|
@@ -38253,8 +37542,8 @@ var ExpUserDataWriter = class extends AbstractUserDataWriter {
|
|
|
38253
37542
|
convertBytes(bytes) {
|
|
38254
37543
|
return new Bytes(bytes);
|
|
38255
37544
|
}
|
|
38256
|
-
convertReference(
|
|
38257
|
-
const key = this.convertDocumentKey(
|
|
37545
|
+
convertReference(name3) {
|
|
37546
|
+
const key = this.convertDocumentKey(name3, this.firestore._databaseId);
|
|
38258
37547
|
return new DocumentReference(
|
|
38259
37548
|
this.firestore,
|
|
38260
37549
|
/* converter= */
|
|
@@ -38325,38 +37614,19 @@ function convertToDocSnapshot(firestore, ref, snapshot) {
|
|
|
38325
37614
|
}
|
|
38326
37615
|
registerFirestore("node");
|
|
38327
37616
|
|
|
38328
|
-
// ../node_modules/firebase/app/dist/index.mjs
|
|
38329
|
-
var name3 = "firebase";
|
|
38330
|
-
var version3 = "12.6.0";
|
|
38331
|
-
registerVersion(name3, version3, "app");
|
|
38332
|
-
|
|
38333
|
-
// ../app/fireabse.ts
|
|
38334
|
-
var firebaseConfig = {
|
|
38335
|
-
apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
|
|
38336
|
-
authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
|
|
38337
|
-
projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
|
|
38338
|
-
storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,
|
|
38339
|
-
messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,
|
|
38340
|
-
appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID,
|
|
38341
|
-
measurementId: process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID
|
|
38342
|
-
};
|
|
38343
|
-
var app = initializeApp(firebaseConfig);
|
|
38344
|
-
var db = getFirestore(app);
|
|
38345
|
-
|
|
38346
37617
|
// src/templates/OraculoPageLandingPreview.tsx
|
|
38347
|
-
import "@splidejs/react-splide/css";
|
|
38348
37618
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
38349
37619
|
|
|
38350
37620
|
// import("../organisms/**/*/**/*") in src/templates/OraculoPageLandingPreview.tsx
|
|
38351
37621
|
var globImport_organisms = __glob({
|
|
38352
37622
|
"../organisms/OraculoSeccionBonoBienvenida/OraculoSeccionBonoBienvenida.tsx": () => import("./OraculoSeccionBonoBienvenida-2APXZQQA.mjs"),
|
|
38353
|
-
"../organisms/OraculoSeccionCasino/OraculoSeccionCasino.tsx": () => import("./OraculoSeccionCasino-
|
|
37623
|
+
"../organisms/OraculoSeccionCasino/OraculoSeccionCasino.tsx": () => import("./OraculoSeccionCasino-LRZCQVLY.mjs"),
|
|
38354
37624
|
"../organisms/OraculoSeccionCasinoEnVivo/OraculoSeccionCasinoEnVivo.tsx": () => import("./OraculoSeccionCasinoEnVivo-ISYMJSUN.mjs"),
|
|
38355
37625
|
"../organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.css": () => import("./OraculoSeccionClubOlimpo-XGB4KUKX.mjs"),
|
|
38356
37626
|
"../organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.tsx": () => import("./OraculoSeccionClubOlimpo-TV3LABJ5.mjs"),
|
|
38357
|
-
"../organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.tsx": () => import("./OraculoSeccionDestacados-
|
|
38358
|
-
"../organisms/OraculoSeccionTopJuegos/OraculoSeccionTopJuegos.tsx": () => import("./OraculoSeccionTopJuegos-
|
|
38359
|
-
"../organisms/OraculoSeccionVirtuales/OraculoSeccionVirtuales.tsx": () => import("./OraculoSeccionVirtuales-
|
|
37627
|
+
"../organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.tsx": () => import("./OraculoSeccionDestacados-2KCEN6PZ.mjs"),
|
|
37628
|
+
"../organisms/OraculoSeccionTopJuegos/OraculoSeccionTopJuegos.tsx": () => import("./OraculoSeccionTopJuegos-RBVOHPDV.mjs"),
|
|
37629
|
+
"../organisms/OraculoSeccionVirtuales/OraculoSeccionVirtuales.tsx": () => import("./OraculoSeccionVirtuales-N6FY52CM.mjs")
|
|
38360
37630
|
});
|
|
38361
37631
|
|
|
38362
37632
|
// src/templates/OraculoPageLandingPreview.tsx
|
|
@@ -38371,7 +37641,8 @@ var HttpError = class extends Error {
|
|
|
38371
37641
|
};
|
|
38372
37642
|
var OraculoPageLandingPreview = ({
|
|
38373
37643
|
sectionsOverride,
|
|
38374
|
-
docId = "home"
|
|
37644
|
+
docId = "home",
|
|
37645
|
+
db
|
|
38375
37646
|
}) => {
|
|
38376
37647
|
const [sections, setSections] = useState3([]);
|
|
38377
37648
|
const [loading, setLoading] = useState3(false);
|
|
@@ -38381,6 +37652,7 @@ var OraculoPageLandingPreview = ({
|
|
|
38381
37652
|
const [sectionErrorMap, setSectionErrorMap] = useState3({});
|
|
38382
37653
|
useEffect(() => {
|
|
38383
37654
|
if (sectionsOverride) return;
|
|
37655
|
+
if (!db) return;
|
|
38384
37656
|
setLoading(true);
|
|
38385
37657
|
const unsubscribe = onSnapshot(
|
|
38386
37658
|
doc(db, "landings", docId),
|
|
@@ -38406,7 +37678,7 @@ var OraculoPageLandingPreview = ({
|
|
|
38406
37678
|
}
|
|
38407
37679
|
);
|
|
38408
37680
|
return () => unsubscribe();
|
|
38409
|
-
}, [sectionsOverride, docId]);
|
|
37681
|
+
}, [sectionsOverride, docId, db]);
|
|
38410
37682
|
const fetchSectionData = async (section) => {
|
|
38411
37683
|
const rawUrl = (section.apiUrl || "").trim();
|
|
38412
37684
|
if (!rawUrl) return void 0;
|
|
@@ -38536,8 +37808,8 @@ var OraculoPageLandingPreview = ({
|
|
|
38536
37808
|
const mapPayloadToProps = (payload, manual, base) => {
|
|
38537
37809
|
const merged = base ? { ...base } : {};
|
|
38538
37810
|
if (manual) {
|
|
38539
|
-
const
|
|
38540
|
-
merged[
|
|
37811
|
+
const name3 = (manual.variableName || "items").trim() || "items";
|
|
37812
|
+
merged[name3] = manual.arr || [];
|
|
38541
37813
|
return merged;
|
|
38542
37814
|
}
|
|
38543
37815
|
const pl = payload;
|
|
@@ -38550,7 +37822,7 @@ var OraculoPageLandingPreview = ({
|
|
|
38550
37822
|
merged.items = choose(arrData || []);
|
|
38551
37823
|
return merged;
|
|
38552
37824
|
};
|
|
38553
|
-
const lazyLoadComponent =
|
|
37825
|
+
const lazyLoadComponent = (rawKey) => {
|
|
38554
37826
|
globImport_organisms(`../organisms/${rawKey}/${rawKey}`).then((mod2) => {
|
|
38555
37827
|
var _a;
|
|
38556
37828
|
const ns = mod2;
|
|
@@ -38656,6 +37928,9 @@ var OraculoPageLandingPreview = ({
|
|
|
38656
37928
|
};
|
|
38657
37929
|
var OraculoPageLandingPreview_default = OraculoPageLandingPreview;
|
|
38658
37930
|
|
|
37931
|
+
// src/index.ts
|
|
37932
|
+
var index_default = OraculoPageLandingPreview_default;
|
|
37933
|
+
|
|
38659
37934
|
// src/organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.tsx
|
|
38660
37935
|
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
38661
37936
|
function OraculoSeccionDestacados({
|
|
@@ -38775,7 +38050,8 @@ export {
|
|
|
38775
38050
|
OraculoSeccionCasino_default,
|
|
38776
38051
|
OraculoSeccionVirtuales_default,
|
|
38777
38052
|
OraculoPageLanding,
|
|
38778
|
-
OraculoPageLandingPreview_default
|
|
38053
|
+
OraculoPageLandingPreview_default,
|
|
38054
|
+
index_default
|
|
38779
38055
|
};
|
|
38780
38056
|
/*! Bundled license information:
|
|
38781
38057
|
|
|
@@ -38829,6 +38105,8 @@ long/umd/index.js:
|
|
|
38829
38105
|
@firebase/util/dist/node-esm/index.node.esm.js:
|
|
38830
38106
|
@firebase/util/dist/node-esm/index.node.esm.js:
|
|
38831
38107
|
@firebase/util/dist/node-esm/index.node.esm.js:
|
|
38108
|
+
@firebase/util/dist/node-esm/index.node.esm.js:
|
|
38109
|
+
@firebase/util/dist/node-esm/index.node.esm.js:
|
|
38832
38110
|
@firebase/logger/dist/esm/index.esm.js:
|
|
38833
38111
|
@firebase/firestore/dist/index.node.mjs:
|
|
38834
38112
|
@firebase/firestore/dist/index.node.mjs:
|
|
@@ -38897,22 +38175,7 @@ long/umd/index.js:
|
|
|
38897
38175
|
*)
|
|
38898
38176
|
|
|
38899
38177
|
@firebase/util/dist/node-esm/index.node.esm.js:
|
|
38900
|
-
|
|
38901
|
-
* @license
|
|
38902
|
-
* Copyright 2017 Google LLC
|
|
38903
|
-
*
|
|
38904
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
38905
|
-
* you may not use this file except in compliance with the License.
|
|
38906
|
-
* You may obtain a copy of the License at
|
|
38907
|
-
*
|
|
38908
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
38909
|
-
*
|
|
38910
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
38911
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
38912
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
38913
|
-
* See the License for the specific language governing permissions and
|
|
38914
|
-
* limitations under the License.
|
|
38915
|
-
*)
|
|
38178
|
+
@firebase/firestore/dist/index.node.mjs:
|
|
38916
38179
|
(**
|
|
38917
38180
|
* @license
|
|
38918
38181
|
* Copyright 2025 Google LLC
|
|
@@ -38929,6 +38192,10 @@ long/umd/index.js:
|
|
|
38929
38192
|
* See the License for the specific language governing permissions and
|
|
38930
38193
|
* limitations under the License.
|
|
38931
38194
|
*)
|
|
38195
|
+
|
|
38196
|
+
@firebase/util/dist/node-esm/index.node.esm.js:
|
|
38197
|
+
@firebase/firestore/dist/index.node.mjs:
|
|
38198
|
+
@firebase/firestore/dist/index.node.mjs:
|
|
38932
38199
|
(**
|
|
38933
38200
|
* @license
|
|
38934
38201
|
* Copyright 2021 Google LLC
|
|
@@ -38948,6 +38215,10 @@ long/umd/index.js:
|
|
|
38948
38215
|
|
|
38949
38216
|
@firebase/util/dist/node-esm/index.node.esm.js:
|
|
38950
38217
|
@firebase/component/dist/esm/index.esm.js:
|
|
38218
|
+
@firebase/component/dist/esm/index.esm.js:
|
|
38219
|
+
@firebase/component/dist/esm/index.esm.js:
|
|
38220
|
+
@firebase/app/dist/esm/index.esm.js:
|
|
38221
|
+
@firebase/app/dist/esm/index.esm.js:
|
|
38951
38222
|
@firebase/app/dist/esm/index.esm.js:
|
|
38952
38223
|
@firebase/app/dist/esm/index.esm.js:
|
|
38953
38224
|
@firebase/firestore/dist/index.node.mjs:
|
|
@@ -38991,7 +38262,7 @@ long/umd/index.js:
|
|
|
38991
38262
|
@firebase/firestore/dist/index.node.mjs:
|
|
38992
38263
|
@firebase/firestore/dist/index.node.mjs:
|
|
38993
38264
|
@firebase/firestore/dist/index.node.mjs:
|
|
38994
|
-
firebase/
|
|
38265
|
+
@firebase/firestore/dist/index.node.mjs:
|
|
38995
38266
|
(**
|
|
38996
38267
|
* @license
|
|
38997
38268
|
* Copyright 2020 Google LLC
|
|
@@ -39044,22 +38315,11 @@ firebase/app/dist/index.mjs:
|
|
|
39044
38315
|
*)
|
|
39045
38316
|
|
|
39046
38317
|
@firebase/app/dist/esm/index.esm.js:
|
|
39047
|
-
|
|
39048
|
-
|
|
39049
|
-
|
|
39050
|
-
|
|
39051
|
-
|
|
39052
|
-
* you may not use this file except in compliance with the License.
|
|
39053
|
-
* You may obtain a copy of the License at
|
|
39054
|
-
*
|
|
39055
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
39056
|
-
*
|
|
39057
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
39058
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
39059
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
39060
|
-
* See the License for the specific language governing permissions and
|
|
39061
|
-
* limitations under the License.
|
|
39062
|
-
*)
|
|
38318
|
+
@firebase/firestore/dist/index.node.mjs:
|
|
38319
|
+
@firebase/firestore/dist/index.node.mjs:
|
|
38320
|
+
@firebase/firestore/dist/index.node.mjs:
|
|
38321
|
+
@firebase/firestore/dist/index.node.mjs:
|
|
38322
|
+
@firebase/firestore/dist/index.node.mjs:
|
|
39063
38323
|
(**
|
|
39064
38324
|
* @license
|
|
39065
38325
|
* Copyright 2023 Google LLC
|
|
@@ -39400,28 +38660,6 @@ firebase/app/dist/index.mjs:
|
|
|
39400
38660
|
* limitations under the License.
|
|
39401
38661
|
*)
|
|
39402
38662
|
|
|
39403
|
-
@firebase/firestore/dist/index.node.mjs:
|
|
39404
|
-
@firebase/firestore/dist/index.node.mjs:
|
|
39405
|
-
@firebase/firestore/dist/index.node.mjs:
|
|
39406
|
-
@firebase/firestore/dist/index.node.mjs:
|
|
39407
|
-
@firebase/firestore/dist/index.node.mjs:
|
|
39408
|
-
(**
|
|
39409
|
-
* @license
|
|
39410
|
-
* Copyright 2023 Google LLC
|
|
39411
|
-
*
|
|
39412
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
39413
|
-
* you may not use this file except in compliance with the License.
|
|
39414
|
-
* You may obtain a copy of the License at
|
|
39415
|
-
*
|
|
39416
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
39417
|
-
*
|
|
39418
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
39419
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
39420
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
39421
|
-
* See the License for the specific language governing permissions and
|
|
39422
|
-
* limitations under the License.
|
|
39423
|
-
*)
|
|
39424
|
-
|
|
39425
38663
|
@firebase/firestore/dist/index.node.mjs:
|
|
39426
38664
|
(**
|
|
39427
38665
|
* @license
|
|
@@ -39692,24 +38930,6 @@ firebase/app/dist/index.mjs:
|
|
|
39692
38930
|
* limitations under the License.
|
|
39693
38931
|
*)
|
|
39694
38932
|
|
|
39695
|
-
@firebase/firestore/dist/index.node.mjs:
|
|
39696
|
-
(**
|
|
39697
|
-
* @license
|
|
39698
|
-
* Copyright 2025 Google LLC
|
|
39699
|
-
*
|
|
39700
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
39701
|
-
* you may not use this file except in compliance with the License.
|
|
39702
|
-
* You may obtain a copy of the License at
|
|
39703
|
-
*
|
|
39704
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
39705
|
-
*
|
|
39706
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
39707
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
39708
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
39709
|
-
* See the License for the specific language governing permissions and
|
|
39710
|
-
* limitations under the License.
|
|
39711
|
-
*)
|
|
39712
|
-
|
|
39713
38933
|
@firebase/firestore/dist/index.node.mjs:
|
|
39714
38934
|
(**
|
|
39715
38935
|
* @license
|
|
@@ -39877,23 +39097,4 @@ firebase/app/dist/index.mjs:
|
|
|
39877
39097
|
* See the License for the specific language governing permissions and
|
|
39878
39098
|
* limitations under the License.
|
|
39879
39099
|
*)
|
|
39880
|
-
|
|
39881
|
-
@firebase/firestore/dist/index.node.mjs:
|
|
39882
|
-
@firebase/firestore/dist/index.node.mjs:
|
|
39883
|
-
(**
|
|
39884
|
-
* @license
|
|
39885
|
-
* Copyright 2021 Google LLC
|
|
39886
|
-
*
|
|
39887
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
39888
|
-
* you may not use this file except in compliance with the License.
|
|
39889
|
-
* You may obtain a copy of the License at
|
|
39890
|
-
*
|
|
39891
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
39892
|
-
*
|
|
39893
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
39894
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
39895
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
39896
|
-
* See the License for the specific language governing permissions and
|
|
39897
|
-
* limitations under the License.
|
|
39898
|
-
*)
|
|
39899
39100
|
*/
|