@entropic-bond/crud-panel 4.4.7 → 4.4.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entropic-bond-crud-panel.js","names":[],"sources":["../node_modules/entropic-bond/lib/entropic-bond.js","../src/progress-controller.ts","../src/crud-controller.ts","../node_modules/react/cjs/react.production.js","../node_modules/react/cjs/react.development.js","../node_modules/react/index.js","../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/crud-panel.tsx"],"sourcesContent":["//#region src/observable/observable.ts\nvar e = class {\n\tconstructor() {\n\t\tthis.subscribers = /* @__PURE__ */ new Set();\n\t}\n\tsubscribe(e) {\n\t\treturn this.subscribers.add(e), () => this.unsubscribe(e);\n\t}\n\tunsubscribe(e) {\n\t\tthis.subscribers.delete(e);\n\t}\n\tnotify(e) {\n\t\tthis.subscribers.forEach((t) => t(e));\n\t}\n\tget subscribersCount() {\n\t\treturn this.subscribers.size;\n\t}\n}, t = /* @__PURE__ */ new Uint8Array(16);\nfunction n() {\n\treturn crypto.getRandomValues(t);\n}\n//#endregion\n//#region node_modules/uuid/dist/stringify.js\nvar r = [];\nfor (let e = 0; e < 256; ++e) r.push((e + 256).toString(16).slice(1));\nfunction i(e, t = 0) {\n\treturn (r[e[t + 0]] + r[e[t + 1]] + r[e[t + 2]] + r[e[t + 3]] + \"-\" + r[e[t + 4]] + r[e[t + 5]] + \"-\" + r[e[t + 6]] + r[e[t + 7]] + \"-\" + r[e[t + 8]] + r[e[t + 9]] + \"-\" + r[e[t + 10]] + r[e[t + 11]] + r[e[t + 12]] + r[e[t + 13]] + r[e[t + 14]] + r[e[t + 15]]).toLowerCase();\n}\n//#endregion\n//#region node_modules/uuid/dist/v4.js\nfunction a(e, t, n) {\n\treturn !t && !e && crypto.randomUUID ? crypto.randomUUID() : o(e, t, n);\n}\nfunction o(e, t, r) {\n\te ||= {};\n\tlet a = e.random ?? e.rng?.() ?? n();\n\tif (a.length < 16) throw Error(\"Random bytes length must be >= 16\");\n\tif (a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, t) {\n\t\tif (r ||= 0, r < 0 || r + 16 > t.length) throw RangeError(`UUID byte range ${r}:${r + 15} is out of buffer bounds`);\n\t\tfor (let e = 0; e < 16; ++e) t[r + e] = a[e];\n\t\treturn t;\n\t}\n\treturn i(a);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.137.0/helpers/esm/decorate.js\nfunction s(e, t, n, r) {\n\tvar i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;\n\tif (typeof Reflect == \"object\" && typeof Reflect.decorate == \"function\") a = Reflect.decorate(e, t, n, r);\n\telse for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);\n\treturn i > 3 && a && Object.defineProperty(t, n, a), a;\n}\n//#endregion\n//#region src/persistent/persistent.ts\nvar c = class e {\n\tstatic registerFactory(e, t, n, r = !1) {\n\t\tthis._factoryMap[e] = {\n\t\t\tfactory: t,\n\t\t\tannotation: n,\n\t\t\tisLegacy: r\n\t\t};\n\t}\n\tstatic classFactory(e) {\n\t\tif (!e) throw Error(\"You should provide a class name.\");\n\t\tif (!this._factoryMap[e]) throw Error(`You should register class ${e} prior to use.`);\n\t\treturn this._factoryMap[e].factory;\n\t}\n\tstatic registeredClasses() {\n\t\treturn Object.entries(this._factoryMap).filter(([, e]) => !e.isLegacy).map(([e]) => e);\n\t}\n\tstatic registeredClassesAndLegacyNames() {\n\t\treturn Object.keys(this._factoryMap);\n\t}\n\tstatic classesExtending(e) {\n\t\treturn Object.entries(this._factoryMap).filter(([, t]) => new t.factory() instanceof e && !t.isLegacy).map(([e]) => e);\n\t}\n\tstatic isInstanceOf(t, n) {\n\t\tlet r = e.classFactory(n);\n\t\treturn t instanceof e ? t instanceof r : e.createInstance(t) instanceof r;\n\t}\n\tstatic annotations(t) {\n\t\tif (t instanceof e ? t = t.className : typeof t == \"string\" || (t = new t().className), !this._factoryMap[t]) throw Error(`You should register class ${t} prior to use.`);\n\t\treturn this._factoryMap[t].annotation;\n\t}\n\tconstructor(e = a()) {\n\t\tthis._id = e;\n\t}\n\tget className() {\n\t\treturn this.__className;\n\t}\n\tsetId(e) {\n\t\tthis._id = e;\n\t}\n\tget id() {\n\t\treturn this._id;\n\t}\n\tafterDeserialize() {}\n\tbeforeSerialize() {}\n\tgetPersistentProperties() {\n\t\treturn this._persistentProperties ? this._persistentProperties.map((e) => ({\n\t\t\t...e,\n\t\t\tname: e.name.slice(1)\n\t\t})) : [];\n\t}\n\tgetPropInfo(e) {\n\t\tlet t = this.getPersistentProperties().find((t) => t.name === e);\n\t\tif (!t) throw Error(`Property \"${e}\" has not been registered.`);\n\t\treturn t;\n\t}\n\tisRequired(e) {\n\t\treturn this.getPropInfo(e).validator != null;\n\t}\n\tisPropValueValid(e) {\n\t\tlet t = this.getPropInfo(e);\n\t\treturn t.validator ? t.validator(this[t.name], t, this) : !0;\n\t}\n\tclone(e) {\n\t\tlet t = e.toObject();\n\t\treturn delete t.id, this.fromObject(t);\n\t}\n\tfromObject(e) {\n\t\treturn this.fromObj(e), this.afterDeserialize(), this;\n\t}\n\tfromObj(e) {\n\t\treturn this._persistentProperties && this._persistentProperties.forEach((t) => {\n\t\t\tlet n = e[this.removeUnderscore(t)];\n\t\t\tn != null && (this[t.name] = this.fromDeepObject(n));\n\t\t}), this;\n\t}\n\ttoObject() {\n\t\tlet e = {}, t = this.toObj(e);\n\t\treturn this.pushDocument(e, this.className, t), {\n\t\t\t...t,\n\t\t\t__rootCollections: e\n\t\t};\n\t}\n\ttoObj(t) {\n\t\tif (!this._persistentProperties) return {};\n\t\tthis.beforeSerialize();\n\t\tlet n = {};\n\t\tif (!this.className) throw Error(`You should register \\`${this.constructor.name || this.toString() || \"this\"}\\` class prior to streaming it.`);\n\t\treturn this._persistentProperties.forEach((r) => {\n\t\t\tlet i = this[r.name], a = this.removeUnderscore(r);\n\t\t\ti != null && (r.isReference ? n[a] = this.toReferenceObj(r, t) : n[a] = this.toDeepObj(i, t), r.searchableArray && (n[e.searchableArrayNameFor(a)] = i.map((e) => e.id)));\n\t\t}), n.__className = this.className, n;\n\t}\n\tstatic searchableArrayNameFor(e) {\n\t\treturn `__${e}_searchable`;\n\t}\n\tfromDeepObject(t) {\n\t\tif (t == null) return t;\n\t\tif (Array.isArray(t)) return t.map((e) => this.fromDeepObject(e));\n\t\tif (t.__documentReference) {\n\t\t\tlet n = t, r = e.createInstance(n);\n\t\t\treturn r.__documentReference = t.__documentReference, r;\n\t\t}\n\t\tif (t.__className) return e.createInstance(t);\n\t\tif (typeof t == \"object\") {\n\t\t\tlet e = {};\n\t\t\treturn Object.entries(t).forEach(([t, n]) => e[t] = this.fromDeepObject(n)), e;\n\t\t}\n\t\treturn t;\n\t}\n\ttoDeepObj(t, n) {\n\t\tif (t != null) {\n\t\t\tif (Array.isArray(t)) return t.map((e) => this.toDeepObj(e, n));\n\t\t\tif (t.__documentReference) return t;\n\t\t\tif (t instanceof e) return t.toObj(n);\n\t\t\tif (typeof t == \"object\") {\n\t\t\t\tlet e = {};\n\t\t\t\treturn Object.entries(t).forEach(([t, r]) => e[t] = this.toDeepObj(r, n)), e;\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t}\n\tstatic collectionPath(e, t, n) {\n\t\tlet r;\n\t\treturn r = typeof t.storeInCollection == \"function\" ? t.storeInCollection(e, t, n) : t.storeInCollection ?? e.className, r;\n\t}\n\ttoReferenceObj(t, n) {\n\t\tlet r = this[t.name];\n\t\treturn Array.isArray(r) ? r.map((r) => (t.isPureReference || this.pushDocument(n, e.collectionPath(r, t), r), this.buildRefObject(r, e.collectionPath(r, t), t.cachedProps))) : (t.isPureReference || this.pushDocument(n, e.collectionPath(r, t), r), this.buildRefObject(r, e.collectionPath(r, t), t.cachedProps));\n\t}\n\tbuildRefObject(e, t, n) {\n\t\tlet r = n?.reduce((t, n) => (e[n] !== void 0 && (t[n] = e[n]), t), {});\n\t\treturn {\n\t\t\tid: e.id,\n\t\t\t__className: e.className || e.__className,\n\t\t\t__documentReference: { storedInCollection: t },\n\t\t\t...r\n\t\t};\n\t}\n\tpushDocument(e, t, n) {\n\t\tif (\"__documentReference\" in n && n.__documentReference) return;\n\t\te[t] || (e[t] = []);\n\t\tlet r = this.toDeepObj(n, e);\n\t\te[t].push(r);\n\t}\n\tremoveUnderscore(e) {\n\t\treturn e.name.slice(1);\n\t}\n\tstatic createReference(t) {\n\t\tlet n = e.createInstance(t);\n\t\treturn n.__documentReference = t.__documentReference || { storedInCollection: n.className }, n;\n\t}\n\tstatic createInstance(t) {\n\t\tif (typeof t == \"string\") return new (e.classFactory(t))();\n\t\ttry {\n\t\t\treturn new (e.classFactory(t.__className))().fromObject(t);\n\t\t} catch (e) {\n\t\t\tlet n = Object.entries(t).filter(([e, t]) => t != null && typeof t != \"function\").map(([e, t]) => `${e}: ${t}`).join(\",\\n\t\");\n\t\t\tthrow Error(`${e}\\n-----> Class name not found in object:\\n{\\n\\t ${n} \\n}\\n`);\n\t\t}\n\t}\n\tstatic propInfo(t, n) {\n\t\treturn e.createInstance(t).getPropInfo(n);\n\t}\n\tstatic propType(t) {\n\t\tif (t.typeName) return Array.isArray(t.typeName) ? \"undefined[]\" : t.typeName ?? \"undefined\";\n\t\tlet n = e.createInstance(t.ownerClassName())[t.name];\n\t\tif (Array.isArray(n)) {\n\t\t\tif (n.length === 0) return \"undefined[]\";\n\t\t\tlet t = n[0];\n\t\t\treturn t instanceof e ? t.className + \"[]\" : typeof t + \"[]\";\n\t\t} else if (n instanceof e) return n.className;\n\t\telse return typeof n;\n\t}\n\tstatic getSystemRegisteredReferencesWithCachedProps() {\n\t\treturn e.registeredClasses().reduce((t, n) => {\n\t\t\tlet r = e.createInstance(n).getPersistentProperties().filter((e) => e.cachedProps);\n\t\t\treturn r.length > 0 && (t[n] = r), t;\n\t\t}, {});\n\t}\n\tstatic {\n\t\tthis._factoryMap = {};\n\t}\n};\ns([l], c.prototype, \"_id\", void 0);\nfunction l(e, t) {\n\treturn h()(e, t);\n}\nfunction u(e) {\n\treturn function(t, n) {\n\t\treturn h({\n\t\t\tstoreInCollection: e,\n\t\t\tisReference: !0\n\t\t})(t, n);\n\t};\n}\nfunction d(e, t) {\n\treturn h({ isReference: !0 })(e, t);\n}\nfunction f(e, t, n, r) {\n\treturn function(i, a) {\n\t\treturn h({\n\t\t\tisReference: !0,\n\t\t\tstoreInCollection: n,\n\t\t\ttypeName: t,\n\t\t\tcachedProps: e,\n\t\t\townerCollection: r ?? i.className\n\t\t})(i, a);\n\t};\n}\nfunction p(e, t, n) {\n\treturn h({\n\t\tisReference: !0,\n\t\tisPureReference: !0,\n\t\tstoreInCollection: n\n\t})(e, t);\n}\nfunction m(e, t, n, r) {\n\treturn function(i, a) {\n\t\treturn h({\n\t\t\tisReference: !0,\n\t\t\tisPureReference: !0,\n\t\t\tstoreInCollection: n,\n\t\t\townerCollection: r,\n\t\t\ttypeName: t,\n\t\t\tcachedProps: e\n\t\t})(i, a);\n\t};\n}\nfunction h(e) {\n\treturn function(t, n) {\n\t\tObject.getOwnPropertyDescriptor(t, \"_persistentProperties\") || (t._persistentProperties ? t._persistentProperties = [...t._persistentProperties] : t._persistentProperties = []);\n\t\tlet r = t._persistentProperties.find((e) => e.name === n);\n\t\tr ? Object.assign(r, e) : t._persistentProperties.push({\n\t\t\tname: n,\n\t\t\townerClassName: () => t.className,\n\t\t\t...e\n\t\t});\n\t};\n}\nfunction g(e, t) {\n\treturn (n) => {\n\t\tc.registerFactory(e, n, t), n.prototype.__className = e;\n\t};\n}\nfunction _(e) {\n\treturn (t) => {\n\t\tc.registerFactory(e, t, void 0, !0);\n\t};\n}\nfunction v(e, t) {\n\treturn h({ searchableArray: !0 })(e, t);\n}\nfunction y(e, t) {\n\treturn h({ validator: (e) => e != null })(e, t);\n}\nfunction b(e = (e) => e != null) {\n\treturn function(t, n) {\n\t\treturn h({ validator: e })(t, n);\n\t};\n}\nfunction x(e) {\n\tlet t;\n\treturn t = typeof e == \"function\" ? new e().className : e, function(e, n) {\n\t\treturn h({ typeName: t })(e, n);\n\t};\n}\n//#endregion\n//#region src/persistent/entropic-component.ts\nvar S = class extends c {\n\tconstructor(...t) {\n\t\tsuper(...t), this._onChange = new e();\n\t}\n\tonChange(e) {\n\t\treturn this._onChange.subscribe(e);\n\t}\n\tremoveOnChange(e) {\n\t\tthis._onChange.unsubscribe(e);\n\t}\n\tchangeProp(e, t) {\n\t\tlet n = \"_\" + String(e);\n\t\treturn this[n] === t ? !1 : (this[n] = t, this._onChange.notify({ [e]: t }), !0);\n\t}\n\tnotify(e) {\n\t\tthis._onChange.notify(e);\n\t}\n\tpushAndNotify(e, t, n) {\n\t\tlet r = \"_\" + String(e);\n\t\tif (!(n && this[r].find((e) => !n(e, t)))) return this[r].push(t), this.notify({ [e]: this[e] }), t;\n\t}\n\tremoveAndNotify(e, t, n) {\n\t\tlet r = \"_\" + String(e), i = this[r].length;\n\t\tif (this[r] = this[r].filter((e) => !n(e, t)), i !== this[r].length) return this.notify({ [e]: this[e] }), t;\n\t}\n}, C = class e {\n\tstatic {\n\t\tthis.error = {\n\t\t\tpersistentNeedForSubCollection: \"The document parameter for a sub-collection should be a Persistent instace\",\n\t\t\tinvalidQueryOrder: \"Cannot add where calls after or calls\"\n\t\t};\n\t}\n\tconstructor(t, n, r) {\n\t\tif (r) {\n\t\t\tif (!(n instanceof c)) throw Error(e.error.persistentNeedForSubCollection);\n\t\t\tthis.collectionName = `${n.className}/${n.id}/${r}`;\n\t\t} else this.collectionName = n instanceof c ? n.className : n;\n\t\tthis._stream = t;\n\t}\n\tfindById(e, t) {\n\t\treturn new Promise((n, r) => {\n\t\t\tthis._stream.findById(e, this.collectionName).then((e) => {\n\t\t\t\te ? (t ? t.fromObject(e) : t = c.createInstance(e), n(t)) : n(void 0);\n\t\t\t}).catch((e) => r(e));\n\t\t});\n\t}\n\tsave(e) {\n\t\tlet t = e.toObject();\n\t\treturn this.collectionName !== t.__className && (t.__rootCollections[this.collectionName] = t.__rootCollections[t.__className], delete t.__rootCollections[t.__className]), new Promise((e, n) => {\n\t\t\tthis._stream.save(t.__rootCollections).then(() => e()).catch((e) => n(e));\n\t\t});\n\t}\n\tdelete(e) {\n\t\treturn new Promise((t, n) => {\n\t\t\tthis._stream.delete(e, this.collectionName).then(() => t()).catch((e) => n(e));\n\t\t});\n\t}\n\tfind() {\n\t\treturn new w(this);\n\t}\n\tquery(e = {}, t) {\n\t\tif (t) {\n\t\t\tlet n = t instanceof c ? t.className : t;\n\t\t\te.operations ||= [], e.operations.push({\n\t\t\t\tproperty: \"__className\",\n\t\t\t\toperator: \"==\",\n\t\t\t\tvalue: n\n\t\t\t});\n\t\t}\n\t\treturn this.mapToInstance(() => this._stream.find(this.preprocessQueryObject(e), this.collectionName));\n\t}\n\tcount(e) {\n\t\treturn this._stream.count(e, this.collectionName);\n\t}\n\tnext(e) {\n\t\treturn this.mapToInstance(() => this._stream.next(e));\n\t}\n\tonDocumentChange(e, t) {\n\t\treturn this._stream.onDocumentChange(this.collectionName, e, (e) => t(D.toPersistentDocumentChange(e)));\n\t}\n\tonCollectionChange(e, t) {\n\t\treturn this._stream.onCollectionChange(this.preprocessQueryObject(e.getQueryObject()), this.collectionName, (e) => t(e.map((e) => D.toPersistentDocumentChange(e))));\n\t}\n\tonCollectionTemplateChange(e, t) {\n\t\treturn this._stream.onDocumentTemplateChange(e, (e) => t(D.toPersistentDocumentChange(e)));\n\t}\n\tmapToInstance(e) {\n\t\treturn new Promise((t, n) => {\n\t\t\te().then((e) => t(e.map((e) => c.createInstance(e)))).catch((e) => n(e));\n\t\t});\n\t}\n\tpreprocessQueryObject(e) {\n\t\tif (Object.values(e).length === 0) return e;\n\t\tlet t = e.operations?.map((e) => {\n\t\t\tlet t = e.value[0] ?? e.value;\n\t\t\treturn D.isArrayOperator(e.operator) && t instanceof c ? {\n\t\t\t\tproperty: c.searchableArrayNameFor(e.property),\n\t\t\t\toperator: e.operator,\n\t\t\t\tvalue: Array.isArray(e.value) ? e.value.map((e) => e.id) : t.id,\n\t\t\t\taggregate: e.aggregate\n\t\t\t} : {\n\t\t\t\tproperty: e.property,\n\t\t\t\toperator: e.operator,\n\t\t\t\tvalue: e.value instanceof c ? { id: e.value.id } : e.value,\n\t\t\t\taggregate: e.aggregate\n\t\t\t};\n\t\t}) ?? [];\n\t\treturn {\n\t\t\t...e,\n\t\t\toperations: t\n\t\t};\n\t}\n}, w = class {\n\tconstructor(e) {\n\t\tthis.queryObject = { operations: [] }, this.model = e;\n\t}\n\twhere(e, t, n, r) {\n\t\tif (this.queryObject.operations?.at(-1)?.aggregate && !r) throw Error(C.error.invalidQueryOrder);\n\t\treturn this.queryObject.operations?.push({\n\t\t\tproperty: e,\n\t\t\toperator: t,\n\t\t\tvalue: n,\n\t\t\taggregate: r\n\t\t}), this;\n\t}\n\twhereDeepProp(e, t, n, r) {\n\t\tif (this.queryObject.operations?.at(-1)?.aggregate && !r) throw Error(C.error.invalidQueryOrder);\n\t\tlet i = e.split(\".\"), a = {}, o = i.length > 1 ? a : n;\n\t\treturn i.slice(1).forEach((e, t) => {\n\t\t\ta[e] = t < i.length - 2 ? {} : n, a = a[e];\n\t\t}), this.queryObject.operations?.push({\n\t\t\tproperty: i[0],\n\t\t\toperator: t,\n\t\t\tvalue: o,\n\t\t\taggregate: r\n\t\t}), this;\n\t}\n\tand(e, t, n) {\n\t\treturn this.where(e, t, n);\n\t}\n\tandDeepProp(e, t, n) {\n\t\treturn this.whereDeepProp(e, t, n);\n\t}\n\tor(e, t, n) {\n\t\treturn this.where(e, t, n, !0);\n\t}\n\torDeepProp(e, t, n) {\n\t\treturn this.whereDeepProp(e, t, n, !0);\n\t}\n\tinstanceOf(e) {\n\t\tlet t = e instanceof c ? e.className : e;\n\t\treturn this.queryObject.operations?.push({\n\t\t\tproperty: \"__className\",\n\t\t\toperator: \"==\",\n\t\t\tvalue: t\n\t\t}), this;\n\t}\n\tget(e) {\n\t\treturn e && (this.queryObject.limit = e), this.model.query(this.queryObject);\n\t}\n\tlimit(e) {\n\t\treturn this.queryObject.limit = e, this;\n\t}\n\torderBy(e, t = \"asc\") {\n\t\treturn this.queryObject.sort = {\n\t\t\tpropertyName: e,\n\t\t\torder: t\n\t\t}, this;\n\t}\n\torderByDeepProp(e, t = \"asc\") {\n\t\treturn this.queryObject.sort = {\n\t\t\tpropertyName: e,\n\t\t\torder: t\n\t\t}, this;\n\t}\n\tcount() {\n\t\treturn this.model.count(this.queryObject);\n\t}\n\tgetQueryObject() {\n\t\treturn this.queryObject;\n\t}\n\tgetQueryModel() {\n\t\treturn this.model;\n\t}\n}, T = class e {\n\tconstructor() {}\n\tstatic {\n\t\tthis.error = { shouldBeRegistered: \"You should register a data source before using the data Store.\" };\n\t}\n\tstatic useDataSource(e) {\n\t\tthis._dataSource = e;\n\t}\n\tstatic get dataSource() {\n\t\treturn e._dataSource;\n\t}\n\tstatic getModel(t) {\n\t\tif (!e._dataSource) throw Error(this.error.shouldBeRegistered);\n\t\treturn new C(e._dataSource, t);\n\t}\n\tstatic getModelForSubCollection(t, n) {\n\t\tif (!e._dataSource) throw Error(this.error.shouldBeRegistered);\n\t\treturn new C(e._dataSource, t, n);\n\t}\n\tstatic async populate(e) {\n\t\tif (!e) return;\n\t\tlet t = async (e) => {\n\t\t\tlet t = e;\n\t\t\tif (!t.__documentReference) return e;\n\t\t\tlet n = await this.getModel(t.__documentReference.storedInCollection).findById(t.id, e);\n\t\t\treturn n && (n.__documentReference = void 0), n;\n\t\t};\n\t\treturn Array.isArray(e) ? (await Promise.all(e.map((e) => t(e)))).filter((e) => e) : t(e);\n\t}\n\tstatic isPopulated(e) {\n\t\treturn Array.isArray(e) ? e.reduce((e, t) => e && t.__documentReference === void 0, !0) : e.__documentReference === void 0;\n\t}\n}, E = class e {\n\tconstructor(e) {\n\t\tthis._resolveCollectionPaths = () => {\n\t\t\tthrow Error(\"The method collectionsMatchingTemplate has not been implemented in the concrete data source\");\n\t\t}, this._disabledChangeListeners = /* @__PURE__ */ new Set(), this._collectionsToWatch = {}, e && (this._beforeUpdateDocument = e.beforeUpdateDocument, this._afterUpdateDocument = e.afterUpdateDocument, this._afterDocumentChange = e.afterDocumentChange, this._beforeDocumentChange = e.beforeDocumentChange, this._beforeQueryOwnerCollection = e.beforeQueryOwnerCollection), this.installUpdaters();\n\t}\n\tinstallUpdaters() {\n\t\tlet e = c.getSystemRegisteredReferencesWithCachedProps();\n\t\tthis._collectionsToWatch = {}, Object.entries(e).forEach(([e, t]) => {\n\t\t\tt.forEach((t) => {\n\t\t\t\tt.typeName && (Array.isArray(t.typeName) ? t.typeName : [t?.typeName ?? e]).map((e) => c.collectionPath(c.createInstance(e), t)).forEach((e) => {\n\t\t\t\t\tthis._collectionsToWatch[e] || (this._collectionsToWatch[e] = []), this._collectionsToWatch[e].find((e) => e.name === t.name && e.ownerClassName() === t.ownerClassName()) || this._collectionsToWatch[e].push(t);\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\tset beforeDocumentChange(e) {\n\t\tthis._beforeDocumentChange = e;\n\t}\n\tset afterDocumentChange(e) {\n\t\tthis._afterDocumentChange = e;\n\t}\n\tset beforeUpdateDocument(e) {\n\t\tthis._beforeUpdateDocument = e;\n\t}\n\tset afterUpdateDocument(e) {\n\t\tthis._afterUpdateDocument = e;\n\t}\n\tset beforeQueryOwnerCollection(e) {\n\t\tthis._beforeQueryOwnerCollection = e;\n\t}\n\tset resolveCollectionPaths(e) {\n\t\tthis._resolveCollectionPaths = e;\n\t}\n\tget collectionsToWatch() {\n\t\treturn this._collectionsToWatch;\n\t}\n\tupdateProps(e, t) {\n\t\tlet n = this._collectionsToWatch[e];\n\t\treturn n ? this.onDocumentChange(t, n) : Promise.resolve();\n\t}\n\tasync onDocumentChange(t, n) {\n\t\tlet r = D.toPersistentDocumentChange(t);\n\t\tthis._beforeDocumentChange?.(r, n);\n\t\tlet i = {};\n\t\tt.type !== \"update\" || !r.before || r.after?.id && this._disabledChangeListeners.has(r.after?.id) || (await Promise.all(n.map(async (t) => {\n\t\t\tlet n = e.ownerCollectionPath(c.createInstance(t.ownerClassName()), t, r.params), a = await this._resolveCollectionPaths(n);\n\t\t\tawait Promise.all(a.map(async (e) => {\n\t\t\t\tlet n = T.getModel(e), a = n.find(), o = !1;\n\t\t\t\tt.cachedProps?.forEach((e) => {\n\t\t\t\t\tr.before[e] !== r.after[e] && (o = !0);\n\t\t\t\t}), o && (a = t.searchableArray ? a.where(t.name, \"contains\", r.before) : a.where(t.name, \"==\", r.before)), a = this._beforeQueryOwnerCollection?.(a) ?? a;\n\t\t\t\tlet s = await a.get();\n\t\t\t\treturn i[e] = {\n\t\t\t\t\ttotalDocumentsToUpdate: s.length,\n\t\t\t\t\tupdatedDocuments: [],\n\t\t\t\t\tdocumentsToUpdate: s.map((e) => e.name ?? e.id)\n\t\t\t\t}, Promise.all([s.map(async (a) => {\n\t\t\t\t\tlet o = !1;\n\t\t\t\t\tif (t.cachedProps?.forEach((e) => {\n\t\t\t\t\t\tr.before[e] !== r.after[e] && (o = !0);\n\t\t\t\t\t}), o) {\n\t\t\t\t\t\tif (t.searchableArray) {\n\t\t\t\t\t\t\tlet e = a[t.name].findIndex((e) => e.id === r.before.id);\n\t\t\t\t\t\t\ta[t.name][e] = r.after;\n\t\t\t\t\t\t} else a[`_${t.name}`] = r.after;\n\t\t\t\t\t\tthis._beforeUpdateDocument?.(a, t, r.after), this.disableChangeListener(a), await n.save(a), this.enableChangeListener(a), i[e]?.updatedDocuments.push(a.id), this._afterUpdateDocument?.(a, t, r.after);\n\t\t\t\t\t} else return Promise.resolve();\n\t\t\t\t})]);\n\t\t\t}));\n\t\t})), this._afterDocumentChange?.(i, n));\n\t}\n\tdisableChangeListener(e) {\n\t\tthis._disabledChangeListeners.add(e.id);\n\t}\n\tenableChangeListener(e) {\n\t\tthis._disabledChangeListeners.delete(e.id);\n\t}\n\tstatic ownerCollectionPath(e, t, n) {\n\t\tlet r;\n\t\treturn r = typeof t.ownerCollection == \"function\" ? t.ownerCollection(e, t, n) : t.ownerCollection ?? e.className, r;\n\t}\n}, D = class e {\n\tconstructor() {\n\t\tthis._cachedPropsUpdater = void 0;\n\t}\n\tinstallCachedPropsUpdater(e) {\n\t\treturn this._cachedPropsUpdater = new E(e), this._cachedPropsUpdater.resolveCollectionPaths = this.resolveCollectionPaths.bind(this), this._cachedPropsUpdater;\n\t}\n\tget cachedPropsUpdater() {\n\t\treturn this._cachedPropsUpdater;\n\t}\n\tstatic toPropertyPathOperations(t) {\n\t\treturn t ? t.map((t) => {\n\t\t\tif (e.isArrayOperator(t.operator) && t.value[0] instanceof c) return {\n\t\t\t\tproperty: c.searchableArrayNameFor(t.property),\n\t\t\t\toperator: t.operator,\n\t\t\t\tvalue: t.value.map((e) => e.id),\n\t\t\t\taggregate: t.aggregate\n\t\t\t};\n\t\t\tlet [n, r] = this.toPropertyPathValue(t.value);\n\t\t\treturn {\n\t\t\t\tproperty: `${String(t.property)}${n ? \".\" + n : \"\"}`,\n\t\t\t\toperator: t.operator,\n\t\t\t\tvalue: r,\n\t\t\t\taggregate: t.aggregate\n\t\t\t};\n\t\t}) : [];\n\t}\n\tstatic isArrayOperator(e) {\n\t\treturn e === \"containsAny\" || e === \"contains\";\n\t}\n\tstatic toPersistentDocumentChange(e) {\n\t\treturn {\n\t\t\t...e,\n\t\t\tbefore: e.before && c.createInstance(e.before),\n\t\t\tafter: e.after && c.createInstance(e.after)\n\t\t};\n\t}\n\tstatic toPropertyPathValue(e) {\n\t\tif (typeof e == \"object\" && !Array.isArray(e)) {\n\t\t\tlet t = Object.keys(e)[0], [n, r] = this.toPropertyPathValue(e[t]);\n\t\t\treturn [`${t}${n ? \".\" + n : \"\"}`, r];\n\t\t} else return [void 0, e];\n\t}\n\tstatic isStringMatchingTemplate(e, t) {\n\t\tlet n = e.split(\"/\"), r = t.split(\"/\");\n\t\tif (r.length > n.length) return !1;\n\t\tfor (let e = 0; e < r.length; e++) {\n\t\t\tlet t = n[e], i = r[e];\n\t\t\tif (!(t.startsWith(\"{\") && t.endsWith(\"}\") || t.startsWith(\"${\") && t.endsWith(\"}\")) && t !== i) return !1;\n\t\t}\n\t\tfor (let e = r.length; e < n.length; e++) {\n\t\t\tlet t = n[e];\n\t\t\tif (!(t.startsWith(\"{\") && t.endsWith(\"}\") || t.startsWith(\"${\") && t.endsWith(\"}\"))) return !1;\n\t\t}\n\t\treturn !0;\n\t}\n\tstatic extractTemplateParams(e, t) {\n\t\tlet n = t.split(\"/\"), r = e.split(\"/\"), i = {};\n\t\tif (r.length > n.length) return i;\n\t\tfor (let e = 0; e < r.length; e++) {\n\t\t\tlet t = n[e], a = r[e];\n\t\t\tif (t.startsWith(\"{\") && t.endsWith(\"}\")) i[t.slice(1, -1)] = a;\n\t\t\telse if (t.startsWith(\"${\") && t.endsWith(\"}\")) i[t.slice(2, -1)] = a;\n\t\t\telse if (t !== a) return {};\n\t\t}\n\t\tfor (let e = r.length; e < n.length; e++) {\n\t\t\tlet t = n[e];\n\t\t\tif (!(t.startsWith(\"{\") && t.endsWith(\"}\") || t.startsWith(\"${\") && t.endsWith(\"}\"))) return {};\n\t\t}\n\t\treturn i;\n\t}\n}, O = class extends D {\n\tconstructor(e) {\n\t\tsuper(), this._jsonRawData = {}, this._lastMatchingDocs = [], this._lastLimit = 0, this._cursor = 0, this._simulateDelay = 0, this._pendingPromises = [], this._documentListeners = {}, this._collectionListeners = {}, e && (this._jsonRawData = e);\n\t}\n\tsetDataStore(e) {\n\t\treturn this._jsonRawData = e, this;\n\t}\n\tsimulateDelay(e) {\n\t\treturn this._simulateDelay = e, this;\n\t}\n\tfindById(e, t) {\n\t\tif (this._simulateError?.findById) throw Error(this._simulateError.findById);\n\t\treturn this.resolveWithDelay(this._jsonRawData[t]?.[e]);\n\t}\n\tsave(e) {\n\t\tif (this._simulateError?.store) throw Error(this._simulateError.store);\n\t\treturn Object.entries(e).forEach(([e, t]) => {\n\t\t\tthis._jsonRawData[e] || (this._jsonRawData[e] = {}), t?.forEach((t) => {\n\t\t\t\tlet n = this._jsonRawData[e][t.id];\n\t\t\t\tthis._jsonRawData[e][t.id] = t, this.notifyChange(e, t, n);\n\t\t\t});\n\t\t}), this.resolveWithDelay();\n\t}\n\tfind(e, t) {\n\t\tif (this._simulateError?.find) throw Error(this._simulateError.find);\n\t\tlet n = Object.values(this._jsonRawData[t] || {});\n\t\treturn e ? (this._lastLimit = e.limit || 0, this._cursor = 0, this._lastMatchingDocs = Object.entries(e).reduce((e, [t, n]) => this.queryProcessor(e, t, n), Object.values(n)), this.resolveWithDelay(this._lastMatchingDocs.slice(0, e.limit))) : this.resolveWithDelay(n);\n\t}\n\tdelete(e, t) {\n\t\tif (this._simulateError?.delete) throw Error(this._simulateError.delete);\n\t\treturn delete this._jsonRawData[t][e], this.resolveWithDelay();\n\t}\n\tnext(e) {\n\t\treturn e && (this._lastLimit = e), this.incCursor(this._lastLimit), this.resolveWithDelay(this._lastMatchingDocs.slice(this._cursor, this._cursor + this._lastLimit));\n\t}\n\tcount(e, t) {\n\t\treturn this.resolveWithDelay(Object.keys(this._jsonRawData[t] ?? {}).length);\n\t}\n\tonCollectionChange(e, t, n) {\n\t\tlet r = this._collectionListeners[t];\n\t\tr ||= (this._collectionListeners[t] = {}, this._collectionListeners[t]);\n\t\tlet i = (t) => {\n\t\t\tif (!t.after) return;\n\t\t\tlet r = [t.after];\n\t\t\tt.before && r.push(t.before);\n\t\t\tlet i = this.retrieveQueryDocs(r, e.operations).filter((e, t, n) => t === n.findIndex((t) => t.id === e.id));\n\t\t\ti.length > 0 && n(i.map((e) => ({\n\t\t\t\tbefore: t.before,\n\t\t\t\tafter: e,\n\t\t\t\ttype: t.type,\n\t\t\t\tparams: t.params\n\t\t\t})));\n\t\t}, a = Math.random().toString(36).substring(2, 9);\n\t\treturn r[a] = i, () => delete r[a];\n\t}\n\tonDocumentChange(e, t, n) {\n\t\tlet r = this._documentListeners[e];\n\t\tr ||= (this._documentListeners[e] = {}, this._documentListeners[e]);\n\t\tlet i = (e) => {\n\t\t\te.after && e.after.id === t && n(e);\n\t\t}, a = Math.random().toString(36).substring(2, 9);\n\t\treturn r[a] = i, () => delete r[a];\n\t}\n\tonDocumentTemplateChange(e, t) {\n\t\tlet n = this.collectionsMatchingTemplate(e), r = [];\n\t\treturn n.forEach((n) => {\n\t\t\tlet i = this._documentListeners[n];\n\t\t\ti ||= (this._documentListeners[n] = {}, this._documentListeners[n]);\n\t\t\tlet a = (r) => {\n\t\t\t\tr.params = D.extractTemplateParams(n, e), t(r);\n\t\t\t}, o = Math.random().toString(36).substring(2, 9);\n\t\t\ti[o] = a, r.push(() => delete i[o]);\n\t\t}), () => r.forEach((e) => e());\n\t}\n\tget rawData() {\n\t\treturn this._jsonRawData;\n\t}\n\twait() {\n\t\treturn Promise.all([...this._pendingPromises]);\n\t}\n\tincCursor(e) {\n\t\tthis._cursor += e, this._cursor > this._lastMatchingDocs.length && (this._cursor = this._lastMatchingDocs.length);\n\t}\n\tsimulateError(e) {\n\t\treturn e === void 0 ? (this._simulateError = void 0, this) : (typeof e == \"string\" ? this._simulateError = {\n\t\t\tstore: e,\n\t\t\tfind: e,\n\t\t\tfindById: e,\n\t\t\tdelete: e\n\t\t} : this._simulateError = e, this);\n\t}\n\tnotifyChange(e, t, n) {\n\t\tlet r = {\n\t\t\tbefore: n,\n\t\t\tafter: t,\n\t\t\tcollectionPath: e,\n\t\t\tparams: {},\n\t\t\ttype: n ? \"update\" : \"create\"\n\t\t};\n\t\tObject.values(this._documentListeners[e] ?? {}).forEach((e) => e(r)), Object.values(this._collectionListeners[e] ?? {}).forEach((e) => e(r));\n\t}\n\tdecCursor(e) {\n\t\treturn this._cursor -= e, this._cursor < 0 ? (this._cursor = 0, !0) : !1;\n\t}\n\tqueryProcessor(e, t, n) {\n\t\treturn {\n\t\t\tlimit: (t) => e,\n\t\t\toperations: (t) => this.retrieveQueryDocs(e, t),\n\t\t\tsort: ({ order: t, propertyName: n }) => e.sort((e, r) => t === \"asc\" ? this.deepValue(e, n) > this.deepValue(r, n) ? 1 : -1 : this.deepValue(e, n) < this.deepValue(r, n) ? 1 : -1)\n\t\t}[t](n);\n\t}\n\tretrieveQueryDocs(e, t) {\n\t\treturn t.reduce((t, n, r) => {\n\t\t\tif (n.aggregate) {\n\t\t\t\tlet i = e.filter((e) => this.isQueryMatched(e, n));\n\t\t\t\treturn r === 0 ? i : t.concat(i);\n\t\t\t} else return t.filter((e) => this.isQueryMatched(e, n));\n\t\t}, e);\n\t}\n\tdeepValue(e, t) {\n\t\treturn t.split(\".\").reduce((e, t) => e[t], e);\n\t}\n\tisQueryMatched(e, t) {\n\t\tlet n = {\n\t\t\t\"==\": (e, t) => e === t,\n\t\t\t\"!=\": (e, t) => e !== t,\n\t\t\t\"<\": (e, t) => e < t,\n\t\t\t\"<=\": (e, t) => e <= t,\n\t\t\t\">\": (e, t) => e > t,\n\t\t\t\">=\": (e, t) => e >= t,\n\t\t\tcontainsAny: (e, t) => e?.some((e) => t?.includes(e)),\n\t\t\tcontains: (e, t) => e?.includes(t)\n\t\t}, { property: r, value: i, operator: a } = t, [o, s] = this.retrieveValuesToCompare(e, r, i);\n\t\treturn n[a](o, s);\n\t}\n\tretrieveValuesToCompare(e, t, n) {\n\t\tlet r = e[t];\n\t\tif (r && typeof n == \"object\" && !Array.isArray(n)) {\n\t\t\tlet e = Object.keys(n)[0];\n\t\t\tvar [i, a] = this.retrieveValuesToCompare(r, e, n?.[e]);\n\t\t}\n\t\treturn [i || r, a || n];\n\t}\n\tresolveWithDelay(e) {\n\t\tif (this._simulateDelay <= 0) return Promise.resolve(e);\n\t\tlet t = new Promise((t) => {\n\t\t\tsetTimeout(() => t(e), this._simulateDelay);\n\t\t});\n\t\treturn this._pendingPromises.push(t), t.finally(() => this._pendingPromises = this._pendingPromises.filter((e) => e === t)), t;\n\t}\n\tresolveCollectionPaths(e) {\n\t\treturn Promise.resolve(this.collectionsMatchingTemplate(e));\n\t}\n\tcollectionsMatchingTemplate(e) {\n\t\treturn Object.keys(this._jsonRawData).filter((t) => D.isStringMatchingTemplate(e, t));\n\t}\n}, k = class e {\n\tstatic registerCloudStorage(t, n) {\n\t\te._cloudStorageFactoryMap[t] = n;\n\t}\n\tstatic createInstance(t) {\n\t\tlet n = e._cloudStorageFactoryMap[t];\n\t\tif (!n) throw Error(`You should register the ${t} cloud storage provider prior to use it`);\n\t\treturn n();\n\t}\n\tget className() {\n\t\treturn this.__className;\n\t}\n\tstatic useCloudStorage(t) {\n\t\te._defaultCloudStorage = t;\n\t}\n\tstatic get defaultCloudStorage() {\n\t\tif (!e._defaultCloudStorage) throw Error(\"You should define a default cloud storage provider prior to use it\");\n\t\treturn e._defaultCloudStorage;\n\t}\n\tstatic {\n\t\tthis._cloudStorageFactoryMap = {};\n\t}\n};\nfunction A(e, t) {\n\treturn k.registerCloudStorage(e, t), (t) => {\n\t\tt.prototype.__className = e;\n\t};\n}\n//#endregion\n//#region src/cloud-storage/mock-cloud-storage.ts\nvar j = class extends k {\n\tconstructor(e = \"\") {\n\t\tsuper(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles = e;\n\t}\n\tsimulateDelay(e) {\n\t\treturn this._simulateDelay = e, this;\n\t}\n\tresolveWithDelay(e) {\n\t\tif (this._simulateDelay <= 0) return Promise.resolve(e);\n\t\tlet t = new Promise((t) => {\n\t\t\tsetTimeout(() => t(e), this._simulateDelay);\n\t\t});\n\t\treturn this._pendingPromises.push(t), t.finally(() => this._pendingPromises = this._pendingPromises.filter((e) => e === t)), t;\n\t}\n\tsave(e, t) {\n\t\tlet n = e;\n\t\tthis._onProgress && this._onProgress(0, 100), this.mockFileSystem[e] = JSON.stringify(t), this._onProgress && this._onProgress(100, 100);\n\t\tlet r = t instanceof File ? t.name : n;\n\t\treturn this.resolveWithDelay(r);\n\t}\n\tuploadControl() {\n\t\treturn {\n\t\t\tresume: () => {},\n\t\t\tpause: () => {},\n\t\t\tcancel: () => {},\n\t\t\tonProgress: (e) => this._onProgress = e\n\t\t};\n\t}\n\tgetUrl(e) {\n\t\treturn Promise.resolve(this._pathToMockFiles + e);\n\t}\n\tdelete(e) {\n\t\treturn delete this.mockFileSystem[e], this.resolveWithDelay();\n\t}\n};\nj = s([A(\"MockCloudStorage\", () => new j())], j);\n//#endregion\n//#region src/cloud-storage/stored-file.ts\nvar M = /* @__PURE__ */ function(e) {\n\treturn e[e.stored = 0] = \"stored\", e[e.pendingDataSet = 1] = \"pendingDataSet\", e[e.deleted = 2] = \"deleted\", e;\n}({}), N = class extends c {\n\tconstructor(...t) {\n\t\tsuper(...t), this._onChange = new e();\n\t}\n\tasync save({ data: e, fileName: t, progress: n, cloudStorageProvider: r } = {}) {\n\t\tlet i = e || this._pendingData;\n\t\ti && (this._reference && await this.delete(), this.provider = r || k.defaultCloudStorage, this._originalFileName = t || (i instanceof File ? i.name : void 0), this._reference = await this.provider.save(this.id, i, n), this._url = await this.provider.getUrl(this._reference), this._pendingData = void 0, this._onChange.notify({\n\t\t\tevent: 0,\n\t\t\tstoredFile: this\n\t\t}));\n\t}\n\tuploadControl() {\n\t\treturn this.provider.uploadControl();\n\t}\n\tasync delete() {\n\t\tif (!this._reference) throw Error(\"Cannot delete a not stored file\");\n\t\tawait this.provider.delete(this._reference), this._reference = void 0, this._url = void 0, this._onChange.notify({\n\t\t\tevent: 2,\n\t\t\tstoredFile: this\n\t\t});\n\t}\n\tset provider(e) {\n\t\tthis._provider = e, this._cloudStorageProviderName = e.className;\n\t}\n\tget provider() {\n\t\tif (!this._provider) try {\n\t\t\tthis._provider = k.createInstance(this._cloudStorageProviderName);\n\t\t} catch {\n\t\t\tthis._provider = k.defaultCloudStorage;\n\t\t}\n\t\treturn this._provider;\n\t}\n\tget url() {\n\t\treturn this._url;\n\t}\n\tget mimeType() {\n\t\treturn this._mimeType;\n\t}\n\tsetDataToStore(e) {\n\t\treturn this._pendingData = e, this._originalFileName = e instanceof File ? e.name : void 0, this._mimeType = e instanceof Blob ? e.type : void 0, this._onChange.notify({\n\t\t\tevent: 1,\n\t\t\tpendingData: e,\n\t\t\tstoredFile: this\n\t\t}), this;\n\t}\n\tget originalFileName() {\n\t\treturn this._originalFileName;\n\t}\n\tonChange(e) {\n\t\treturn this._onChange.subscribe(e);\n\t}\n};\ns([l], N.prototype, \"_reference\", void 0), s([l], N.prototype, \"_url\", void 0), s([l], N.prototype, \"_cloudStorageProviderName\", void 0), s([l], N.prototype, \"_originalFileName\", void 0), s([l], N.prototype, \"_mimeType\", void 0), N = s([g(\"StoredFile\")], N);\n//#endregion\n//#region src/auth/auth.ts\nvar P = class {}, F = class t extends P {\n\tstatic {\n\t\tthis.error = { shouldBeRegistered: \"You should register an auth service before using Auth.\" };\n\t}\n\tconstructor() {\n\t\tif (super(), this._onAuthStateChange = new e(), !t._authService) throw Error(t.error.shouldBeRegistered);\n\t\tt._authService.onAuthStateChange((e) => this.authStateChanged(e));\n\t}\n\tstatic useAuthService(e) {\n\t\tt._authService != e && (t._authService = e, this._instance = void 0);\n\t}\n\tstatic get instance() {\n\t\treturn this._instance ||= new this();\n\t}\n\tsignUp(e) {\n\t\treturn t._authService.signUp(e);\n\t}\n\tlogin(e) {\n\t\treturn t._authService.login(e);\n\t}\n\tlogout() {\n\t\treturn t._authService.logout();\n\t}\n\tresetEmailPassword(e) {\n\t\treturn t._authService.resetEmailPassword(e);\n\t}\n\tresendVerificationEmail(e, n, r) {\n\t\treturn t._authService.resendVerificationEmail(e, n, r);\n\t}\n\trefreshToken() {\n\t\treturn t._authService.refreshToken();\n\t}\n\tonAuthStateChange(e) {\n\t\treturn this._onAuthStateChange.subscribe(e);\n\t}\n\tremoveAuthStateChange(e) {\n\t\tthis._onAuthStateChange.unsubscribe(e);\n\t}\n\tlinkAdditionalProvider(e) {\n\t\treturn t._authService.linkAdditionalProvider(e);\n\t}\n\tunlinkProvider(e) {\n\t\treturn t._authService.unlinkProvider(e);\n\t}\n\tauthStateChanged(e) {\n\t\tthis._onAuthStateChange.notify(e);\n\t}\n\tstatic {\n\t\tthis._instance = void 0;\n\t}\n}, I = class extends P {\n\tconstructor(...e) {\n\t\tsuper(...e), this.pendingPromises = [], this._fakeRegisteredUsers = {};\n\t}\n\tsignUp(e) {\n\t\tlet { verificationLink: t, email: n, password: r, authProvider: i } = e, a = new Promise(async (a, o) => {\n\t\t\ti === \"email\" && (n || o({\n\t\t\t\tcode: \"missingEmail\",\n\t\t\t\tmessage: \"missingEmail\"\n\t\t\t}), r || o({\n\t\t\t\tcode: \"missingPassword\",\n\t\t\t\tmessage: \"missingPassword\"\n\t\t\t})), r !== \"fail\" && n !== \"fail\" ? (this._loggedUser = this.userCredentials(e), this._fakeRegisteredUsers[this._loggedUser.id] = this._loggedUser, a(this._loggedUser), this.notifyChange?.(this._loggedUser)) : (o({\n\t\t\t\tcode: \"userNotFound\",\n\t\t\t\tmessage: t || \"Test auth error\"\n\t\t\t}), this.notifyChange?.(void 0));\n\t\t});\n\t\treturn this.pendingPromises.push(a), a;\n\t}\n\tlogin(e) {\n\t\tlet t = Object.values(this._fakeRegisteredUsers).find((t) => t.email === e.email);\n\t\treturn e.authProvider === \"email\" && !t && e.email && (e.email = \"fail\"), this.signUp(e);\n\t}\n\tonAuthStateChange(e) {\n\t\tthis.notifyChange = e, this.notifyChange(this._loggedUser);\n\t}\n\tasync logout() {\n\t\tlet e = new Promise((e) => {\n\t\t\tthis._loggedUser = void 0, e(), this.notifyChange?.(void 0);\n\t\t});\n\t\treturn this.pendingPromises.push(e), e;\n\t}\n\tresetEmailPassword(e) {\n\t\treturn Object.values(this._fakeRegisteredUsers).find((t) => t.email === e) ? Promise.resolve() : Promise.reject({\n\t\t\tcode: \"userNotFound\",\n\t\t\tmessage: \"Test auth error\"\n\t\t});\n\t}\n\tresendVerificationEmail(e, t, n) {\n\t\treturn Object.values(this._fakeRegisteredUsers).find((t) => t.email === e) ? Promise.resolve() : Promise.reject({\n\t\t\tcode: \"userNotFound\",\n\t\t\tmessage: \"Test auth error\"\n\t\t});\n\t}\n\trefreshToken() {\n\t\treturn Promise.resolve();\n\t}\n\tlinkAdditionalProvider(e) {\n\t\tthrow Error(\"Not implemented.\");\n\t}\n\tunlinkProvider(e) {\n\t\tthrow Error(\"Not implemented.\");\n\t}\n\tasync flush() {\n\t\tawait Promise.all(this.pendingPromises), this.pendingPromises = [];\n\t}\n\tfakeRegisteredUser(e) {\n\t\tif (this._fakeRegisteredUsers[e.id]) throw Error(`User with id ${e.id} already exists in fake user list`);\n\t\treturn this._fakeRegisteredUsers[e.id] = e, this;\n\t}\n\tget fakeRegisteredUsers() {\n\t\treturn this._fakeRegisteredUsers;\n\t}\n\tuserCredentials(e) {\n\t\tlet t = Object.values(this._fakeRegisteredUsers).find((t) => t.email === e.email);\n\t\treturn t ? { ...t } : {\n\t\t\tid: e.authProvider || `testUID${e.email ? \"-\" + e.email : \"\"}`,\n\t\t\temail: e.email || \"testEmail\",\n\t\t\tname: e.authProvider || `testName${e.email ? \" \" + e.email : \"\"}`,\n\t\t\tphoneNumber: \"testPhone\",\n\t\t\tcustomData: { role: \"test\" },\n\t\t\tlastLogin: 0,\n\t\t\tcreationDate: 0\n\t\t};\n\t}\n}, L = class e {\n\tconstructor() {}\n\tstatic {\n\t\tthis.error = { shouldBeRegistered: \"You should register a cloud functions service with useCloudFunctionsService static method before using CloudFunctions.\" };\n\t}\n\tstatic useCloudFunctionsService(e) {\n\t\tthis._cloudFunctionsService != e && (this._cloudFunctionsService = e);\n\t}\n\tstatic get instance() {\n\t\tif (!this._cloudFunctionsService) throw Error(e.error.shouldBeRegistered);\n\t\treturn e._instance ||= new e();\n\t}\n\tgetRawFunction(t) {\n\t\treturn e._cloudFunctionsService.retrieveFunction(t);\n\t}\n\tgetFunction(t) {\n\t\tlet n = e._cloudFunctionsService.callFunction, r = this.getRawFunction(t);\n\t\treturn async (e) => {\n\t\t\tlet t = await n(r, this.processParam(e));\n\t\t\treturn this.processResult(t);\n\t\t};\n\t}\n\tprocessParam(e) {\n\t\tif (e != null) return e instanceof c ? e.toObject() : Array.isArray(e) ? e.map((e) => this.processParam(e)) : typeof e == \"object\" ? Object.entries(e).reduce((e, [t, n]) => (e[t] = this.processParam(n), e), {}) : e;\n\t}\n\tprocessResult(e) {\n\t\tif (e != null) return e.__className ? c.createInstance(e) : Array.isArray(e) ? e.map((e) => this.processResult(e)) : typeof e == \"object\" ? Object.entries(e).reduce((e, [t, n]) => (e[t] = this.processResult(n), e), {}) : e;\n\t}\n}, R = class {\n\tconstructor(e) {\n\t\tthis._registeredFunctions = e;\n\t}\n\tretrieveFunction(e) {\n\t\tlet t = this._registeredFunctions[e];\n\t\tif (!t) throw Error(`Cloud function ${e} is not registered.`);\n\t\treturn t;\n\t}\n\tcallFunction(e, t) {\n\t\treturn e(t);\n\t}\n}, z = class {}, B = class e extends z {\n\tstatic {\n\t\tthis.error = { shouldBeRegistered: \"You should register a Server Auth service before using the Server Auth.\" };\n\t}\n\tconstructor() {\n\t\tsuper();\n\t}\n\tstatic useServerAuthService(t) {\n\t\te._authService != t && (e._authService = t, this._instance = void 0);\n\t}\n\tstatic get instance() {\n\t\tif (!e._authService) throw Error(e.error.shouldBeRegistered);\n\t\treturn this._instance ||= new e();\n\t}\n\tgetUser(t) {\n\t\treturn e._authService.getUser(t);\n\t}\n\tupdateUser(t, n) {\n\t\treturn e._authService.updateUser(t, n);\n\t}\n\tsetCustomCredentials(t, n) {\n\t\treturn e._authService.setCustomCredentials(t, n);\n\t}\n\tdeleteUser(t) {\n\t\treturn e._authService.deleteUser(t);\n\t}\n\tstatic {\n\t\tthis._instance = void 0;\n\t}\n}, V = class extends z {\n\tconstructor(e) {\n\t\tsuper(), this._userCredentials = e;\n\t}\n\tgetUser(e) {\n\t\treturn this._userCredentials[e] || Promise.resolve(void 0), Promise.resolve(this._userCredentials[e]);\n\t}\n\tsetCustomCredentials(e, t) {\n\t\tlet n = this._userCredentials[e];\n\t\tif (!n) throw Error(`User ${e} not found in the auth system`);\n\t\treturn n.customData = { ...t }, Promise.resolve();\n\t}\n\tupdateUser(e, t) {\n\t\treturn this._userCredentials[e] = {\n\t\t\t...this._userCredentials,\n\t\t\t...t,\n\t\t\tid: e\n\t\t}, Promise.resolve(this._userCredentials[e]);\n\t}\n\tdeleteUser(e) {\n\t\treturn delete this._userCredentials[e], Promise.resolve();\n\t}\n\tget userCredentials() {\n\t\treturn this._userCredentials;\n\t}\n};\n//#endregion\n//#region src/utils/utils.ts\nfunction H(e, t) {\n\treturn e ? e.replace(/\\${\\s*(\\w*)\\s*}/g, function(e, n) {\n\t\treturn t[n] || \"\";\n\t}) : \"\";\n}\nfunction U(e) {\n\treturn e ? e.replace(/([-_ ][\\w])/g, (e) => e.toUpperCase().replace(\"-\", \"\").replace(\"_\", \"\").replace(\" \", \"\")) : \"\";\n}\nfunction W(e, t = \"-\") {\n\tif (!e) return \"\";\n\tlet n = e.slice(1).replace(/( |[A-Z])/g, (e) => e === \" \" ? \"-\" : t + e[0].toLowerCase());\n\treturn e[0].toLocaleLowerCase() + n.replace(/--/g, \"-\");\n}\nfunction G(e, t) {\n\treturn t.split(\".\").reduce((e, t) => e[t], e);\n}\n//#endregion\nexport { F as Auth, I as AuthMock, P as AuthService, L as CloudFunctions, R as CloudFunctionsMock, k as CloudStorage, D as DataSource, S as EntropicComponent, O as JsonDataSource, j as MockCloudStorage, C as Model, e as Observable, c as Persistent, w as Query, B as ServerAuth, V as ServerAuthMock, z as ServerAuthService, T as Store, N as StoredFile, M as StoredFileEvent, U as camelCase, G as getDeepValue, l as persistent, h as persistentParser, p as persistentPureReference, m as persistentPureReferenceWithCachedProps, d as persistentReference, u as persistentReferenceAt, f as persistentReferenceWithCachedProps, A as registerCloudStorage, _ as registerLegacyClassName, g as registerPersistentClass, H as replaceValue, y as required, b as requiredWithValidator, v as searchableArray, W as snakeCase, x as typeName };\n\n//# sourceMappingURL=entropic-bond.js.map","import { Callback, Observable } from 'entropic-bond'\n\ninterface ProgressStage {\n\tname: string\n\tprogress: number\n\ttotal: number\n}\n\ninterface ProgressStageCollection {\n\t[ stageName: string ]: ProgressStage\n}\n\nexport interface ProgressEvent {\n\tbusy: boolean\n\tstages: ProgressStageCollection\n\toverallProgress: number\n}\n\nexport class ProgressController {\n\tnotifyBusy( busy: boolean, name?: string ) {\n\t\tthis.pushStage({\n\t\t\tname: name ?? '', progress: busy? 0 : 1, total: 1\n\t\t})\n\t}\n\n\tpushStage( stage: ProgressStage ) {\n\t\tthis._stages[ stage.name ] = stage\n\n\t\tconst overallProgress = Object.values( this._stages ).reduce( (prev, stage, _i, arr )=>{\n\t\t\treturn prev + stage.progress / stage.total / arr.length\n\t\t}, 0)\n\t\t\n\t\tthis._onProgress.notify({\n\t\t\tbusy: overallProgress < 1,\n\t\t\toverallProgress,\n\t\t\tstages: this._stages\n\t\t})\n\n\t\tif ( overallProgress >= 1 ) this._stages = {}\n\t\tif ( this.debug ) console.log( `ProgressController ${ stage.name }: Progress: ${ stage.progress } Stages: ${ stage.total }` )\n\t}\n\n\tonProgress( cb: Callback<ProgressEvent> ) {\n\t\treturn this._onProgress.subscribe( cb )\n\t}\n\n\tset debug( value: boolean ) {\n\t\tthis._debug = value\n\t}\n\t\n\tget debug(): boolean {\n\t\treturn this._debug\n\t}\n\t\n\tprivate _debug: boolean = false\n\tprivate _stages: ProgressStageCollection = {}\n\tprivate _onProgress: Observable<ProgressEvent> = new Observable<ProgressEvent>()\n}","import { Callback, ClassPropNames, EntropicComponent, Model, Observable, PropChangeEvent, Unsubscriber, Query } from 'entropic-bond'\nimport { ProgressController, ProgressEvent } from './progress-controller'\n\ntype CrudControllerAction = 'saved' | 'deleted' | 'populated' | 'filterChange'\n\nexport interface CrudControllerEvent<T extends EntropicComponent> {\n\tdocumentProps?: PropChangeEvent<T> \n\tdocumentChanged?: T\n\tdocumentCollection?: T[]\n\taction?: CrudControllerAction\n\t/** deprecated */\terror?: Error \n}\n\ninterface GlobalValidator<T extends EntropicComponent> {\n\tfunc: ( document: T ) => boolean\n\terrorMessage?: string\n}\n\ntype ValidatorFunction<V> = ( value: V ) => boolean \ntype ValidatorCollection<T extends EntropicComponent> = {\n\t[ prop in ClassPropNames<T> ]: {\n\t\tfunc: ValidatorFunction<T[prop]>\n\t\terrorMessage?: string\n\t}\n}\n\nexport abstract class CrudController<T extends EntropicComponent> {\n\tstatic readonly errorMessages = {\n\t\tmissedDocument: 'No document to save',\n\t}\n\n\tconstructor( document?: T ) {\n\t\tthis.setDocument( document || this.createDocument() )\n\t}\n\n\tprotected abstract createDocument(): T \n\tprotected abstract getModel(): Model<T> \n\t\n\tallRequiredPropertiesFilled(): boolean {\n\t\treturn this.nonFilledRequiredProperties.length <= 0 && this.validateGlobal()\n\t}\n\n\tget nonFilledRequiredProperties(): ClassPropNames<T>[] {\n\t\treturn this.requiredProperties.filter( prop => this.validateProp( prop ))\n\t}\n\n\tget requiredProperties(): ClassPropNames<T>[] {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\n\t\tconst decoratorDeclared = this.document.getPersistentProperties()\n\t\t\t.filter( prop => this.document.isRequired( prop.name as ClassPropNames<T> ) )\n\t\t\t.map( prop => prop.name )\n\n\t\tconst uniqueValues = new Set( decoratorDeclared.concat( Object.keys( this.validator )))\n\t\treturn [ ...uniqueValues ] as ClassPropNames<T>[]\n\t}\n\n\taddValidator<P extends ClassPropNames<T>>( prop: P, validatorFn: ValidatorFunction<T[P]>, errorMessage?: string ) {\n\t\tthis.validator[ prop ] = {\n\t\t\tfunc: validatorFn,\n\t\t\terrorMessage\n\t\t}\n\t}\n\n\tremoveValidator( prop: ClassPropNames<T> ) {\n\t\tdelete this.validator[ prop ]\n\t}\n\n\taddGlobalValidator( validatorFn: ValidatorFunction<T>, errorMessage?: string ) {\n\t\tthis.globalValidator = {\n\t\t\tfunc: validatorFn,\n\t\t\terrorMessage\n\t\t}\n\t}\n\n\tremoveGlobalValidator() {\n\t\tthis.globalValidator = undefined\n\t}\n\n\tfailedValidationError( prop?: ClassPropNames<T> ): string | undefined {\n\t\tif ( prop ) return this.validator[ prop ]?.errorMessage\n\n\t\tconst nonFilledProperty = this.nonFilledRequiredProperties[0]\n\t\tif ( nonFilledProperty ) return this.validator[ nonFilledProperty ]?.errorMessage\n\t\tif ( !this.validateGlobal() ) return this.globalValidator?.errorMessage\n\t}\n\n\tprivate validateProp( prop: ClassPropNames<T> ): boolean {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\n\t\tconst propVal = this.document[ prop ]\n\n\t\tif ( this.validator[ prop ] ) return !this.validator[ prop ].func( propVal )\n\t\treturn !this.document.isPropValueValid( prop )\n\t}\n\n\tprivate validateGlobal(): boolean {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\n\t\tif ( this.globalValidator ) return this.globalValidator.func( this.document )\n\t\telse return true\n\t}\n\n\tprotected storeDoc(): Promise<void> {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\t\treturn this.model.save( this.document )\n\t}\n\n\tprotected deleteDoc(): Promise<void> {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\t\treturn this.model.delete( this.document.id )\n\t}\n\n\t/**\n\t * Override this method to customize the query used to retrieve the documents \n\t * in the documentCollection method. This is the default method used by \n\t * the documentCollection method. If the findDocs method is overridden and returns\n\t * non undefined value, then this queryDocs method will not be used.\n\t * \n\t * @param limit the maximum number of documents to retrieve\n\t * @returns a query to retrieve the documents\n\t * @see documentCollection\n\t * @see findDocs\n\t */\n\tprotected queryDocs( limit?: number ): Query<T> {\n\t\tlet query = this.model.find()\n\n\t\tif ( limit ) query = query.limit( limit )\n\n\t\treturn query\n\t}\n\n\t/**\n\t * Override this method to customize the query used to retrieve the documents \n\t * in the documentCollection method. The default method called by the \n\t * documentCollection method is the queryDocs method. If this findDocs method \n\t * returns a non undefined value, then this method will be used instead of the\n\t * queryDocs method.\n\t * \n\t * @param limit the maximum number of documents to retrieve\n\t * @returns a query to retrieve the documents\n\t * @see documentCollection\n\t * @see queryDocs\n\t */\n\tprotected findDocs( limit?: number ): Promise<T[]> | undefined {\n\t\treturn undefined\n\t}\n\n\t/**\n\t * Sets a filter function to filter in memory the documents returned by the `documentCollection` method.\n\t * \n\t * @param filter the filter function\n\t * @returns the controller itself\n\t */\n\tasync setFilter( filter: ( document: T ) => boolean ) {\n\t\tthis._filter = filter\n\t\tthis.onChangeHdl.notify({ action: 'filterChange' })\n\t\treturn this\n\t}\n\n\t/**\n\t * Removes the filter function set by the `setFilter` method.\n\t * @returns the controller itself\n\t */\n\tresetFilter() {\n\t\tthis._filter = undefined\n\t\tthis.onChangeHdl.notify({ action: 'filterChange' })\n\t\treturn this\n\t}\n\t\n\tonChange( observer: Callback<CrudControllerEvent<T>> ) {\n\t\treturn this.onChangeHdl.subscribe( observer )\n\t}\n\n\t/**\n\t * Notifies the observer of any error that occurs during the execution of the controller.\n\t * If there are no subscribers to this event, the error will be thrown.\n\t * \n\t * @param observer \n\t * @returns the unsubscriber function\n\t */\n\tonError( observer: Callback<Error> ) {\n\t\treturn this.onErrorHdl.subscribe( observer )\n\t}\n\n\tprotected notifyChange<U extends CrudControllerEvent<T>>( event: U ) {\n\t\tthis.onChangeHdl.notify( event )\n\t}\n\n\tnewDocument() {\n\t\treturn this.setDocument( this.createDocument() )\n\t}\n\n\tasync storeDocument() {\n\t\tconst progressStage = 'Saving main document'\n\n\t\ttry {\n\t\t\tthis.progressController.notifyBusy( true, progressStage )\n\t\t\tawait this.storeDoc()\n\n\t\t\tthis.onChangeHdl.notify({\n\t\t\t\tdocumentCollection: await this.documentCollection(),\n\t\t\t\taction: 'saved'\n\t\t\t})\n\t\t}\n\t\tcatch( error ) {\n\t\t\tthis.onChangeHdl.notify({ error: this.errorToError( error ) })\n\t\t\tthis.onErrorHdl.notify( this.errorToError( error ))\n\t\t\tif ( this.throwOnError ) throw error\n\t\t}\n\t\tfinally {\n\t\t\tthis.progressController.notifyBusy( false, progressStage )\n\t\t}\n\t}\n\n\tasync deleteDocument() {\n\t\tconst progressStage = 'Delete main document'\n\t\ttry {\n\t\t\tthis.progressController.notifyBusy( true, progressStage )\n\t\t\tawait this.deleteDoc()\n\n\t\t\tthis.onChangeHdl.notify({\n\t\t\t\tdocumentCollection: await this.documentCollection(),\n\t\t\t\taction: 'deleted'\n\t\t\t})\n\t\t}\n\t\tcatch( error ) {\n\t\t\tthis.onChangeHdl.notify({ error: this.errorToError( error ) })\n\t\t\tthis.onErrorHdl.notify( this.errorToError( error ))\n\t\t\tif ( this.throwOnError ) throw error\n\t\t}\n\t\tfinally {\n\t\t\tthis.progressController.notifyBusy( false, progressStage )\n\t\t}\n\t}\n\t\t\n\tasync documentCollection( limit?: number ): Promise<T[]> {\n\t\tconst progressStage = 'Retrieving document collection'\n\t\tlet found: T[] = []\n\t\t\n\t\ttry {\n\t\t\tthis.progressController.notifyBusy( true, progressStage )\n\t\t\tconst docPromise = this.findDocs( limit )\n\t\t\tif ( docPromise ) found = await docPromise\n\t\t\telse found = await this.queryDocs( limit ).get()\n\t\t}\n\t\tcatch( error ) {\n\t\t\tthis.onChangeHdl.notify({ error: this.errorToError( error ) })\n\t\t\tthis.onErrorHdl.notify( this.errorToError( error ))\n\t\t\tif ( this.throwOnError ) throw error\n\t\t}\n\t\tfinally {\n\t\t\tthis.onChangeHdl.notify({\tdocumentCollection: found\t})\n\t\t\tthis.progressController.notifyBusy( false, progressStage )\n\t\t}\n\n\t\treturn found\n\t}\n\n\tfilter( docs: T[] ): T[] {\n\t\treturn docs.filter( doc => this._filter?.( doc ) ?? true )\n\t}\n\n\tonProgress( observer: Callback<ProgressEvent> ) {\n\t\treturn this.progressController.onProgress( observer )\n\t}\n\n\tprotected get model() {\n\t\treturn this.getModel()\n\t}\n\n\tsetDocument( value: T ): this {\n\t\tif ( this._document !== value ) {\n\n\t\t\tif ( this.unsubscribeDocument ) this.unsubscribeDocument()\n\n\t\t\tif ( value ) {\n\t\t\t\tthis.unsubscribeDocument = value.onChange( e => this.onChangeHdl.notify({ documentProps: e } ) )\n\t\t\t}\n\n\t\t\tthis._document = value\n\t\t\tthis.onChangeHdl.notify({ documentChanged: this._document })\n\t\t}\n\n\t\treturn this\n\t}\n\n\tset document( value: T ) {\n\t\tthis.setDocument( value )\n\t}\n\t\n\tget document(): T {\n\t\treturn this._document\n\t}\n\n\t/**\n\t * Use this method to throw an error in a controlled way.\n\t * It will notify the subscribers of the `onError` event and throw the error \n\t * if there are no subscribers to the `onError` event.\n\t * \n\t * @param error the error to throw\n\t */\n\tprotected managedThrow( error: Error | string | any ) {\n\t\t/* deprecated */ this.onChangeHdl.notify({ error: this.errorToError( error ) })\n\t\tthis.onErrorHdl.notify( this.errorToError( error ))\n\t\tif ( this.throwOnError ) throw this.errorToError( error )\n\t}\n\n\tprotected errorToError( error: any ): Error {\n\t\tif ( error instanceof Error ) return error\n\t\tif ( typeof error === 'string' ) return new Error( error )\n\t\tif ( 'code' in error ) return new Error( error.code )\n\t\tif ( 'message' in error ) return new Error( error.error )\n\t\treturn new Error( JSON.stringify( error ) )\n\t}\n\n\tprotected get throwOnError() {\n\t\treturn this.onErrorHdl.subscribersCount === 0 \n\t}\n\n\tprotected progressController: ProgressController = new ProgressController()\n\tprotected onChangeHdl: Observable<CrudControllerEvent<T>> = new Observable<CrudControllerEvent<T>>()\n\tprotected onErrorHdl: Observable<Error> = new Observable<Error>()\n\tprivate _document!: T\n\tprivate unsubscribeDocument: Unsubscriber | undefined\n\tprivate _filter: (( document: T ) => boolean ) | undefined\n\tprivate validator = {} as ValidatorCollection<T>\n\tprivate globalValidator: GlobalValidator<T> | undefined\n}\n","/**\n * @license React\n * react.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar ReactNoopUpdateQueue = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n assign = Object.assign,\n emptyObject = {};\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nComponent.prototype.isReactComponent = {};\nComponent.prototype.setState = function (partialState, callback) {\n if (\n \"object\" !== typeof partialState &&\n \"function\" !== typeof partialState &&\n null != partialState\n )\n throw Error(\n \"takes an object of state variables to update or a function which returns an object of state variables.\"\n );\n this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n};\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n};\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nvar pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());\npureComponentPrototype.constructor = PureComponent;\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = !0;\nvar isArrayImpl = Array.isArray;\nfunction noop() {}\nvar ReactSharedInternals = { H: null, A: null, T: null, S: null },\n hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction ReactElement(type, key, props) {\n var refProp = props.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== refProp ? refProp : null,\n props: props\n };\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n return ReactElement(oldElement.type, newKey, oldElement.props);\n}\nfunction isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n}\nfunction escape(key) {\n var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n return (\n \"$\" +\n key.replace(/[=:]/g, function (match) {\n return escaperLookup[match];\n })\n );\n}\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction getElementKey(element, index) {\n return \"object\" === typeof element && null !== element && null != element.key\n ? escape(\"\" + element.key)\n : index.toString(36);\n}\nfunction resolveThenable(thenable) {\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n default:\n switch (\n (\"string\" === typeof thenable.status\n ? thenable.then(noop, noop)\n : ((thenable.status = \"pending\"),\n thenable.then(\n function (fulfilledValue) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = fulfilledValue));\n },\n function (error) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"rejected\"), (thenable.reason = error));\n }\n )),\n thenable.status)\n ) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n }\n }\n throw thenable;\n}\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (\"undefined\" === type || \"boolean\" === type) children = null;\n var invokeCallback = !1;\n if (null === children) invokeCallback = !0;\n else\n switch (type) {\n case \"bigint\":\n case \"string\":\n case \"number\":\n invokeCallback = !0;\n break;\n case \"object\":\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = !0;\n break;\n case REACT_LAZY_TYPE:\n return (\n (invokeCallback = children._init),\n mapIntoArray(\n invokeCallback(children._payload),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n )\n );\n }\n }\n if (invokeCallback)\n return (\n (callback = callback(children)),\n (invokeCallback =\n \"\" === nameSoFar ? \".\" + getElementKey(children, 0) : nameSoFar),\n isArrayImpl(callback)\n ? ((escapedPrefix = \"\"),\n null != invokeCallback &&\n (escapedPrefix =\n invokeCallback.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n return c;\n }))\n : null != callback &&\n (isValidElement(callback) &&\n (callback = cloneAndReplaceKey(\n callback,\n escapedPrefix +\n (null == callback.key ||\n (children && children.key === callback.key)\n ? \"\"\n : (\"\" + callback.key).replace(\n userProvidedKeyEscapeRegex,\n \"$&/\"\n ) + \"/\") +\n invokeCallback\n )),\n array.push(callback)),\n 1\n );\n invokeCallback = 0;\n var nextNamePrefix = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n if (isArrayImpl(children))\n for (var i = 0; i < children.length; i++)\n (nameSoFar = children[i]),\n (type = nextNamePrefix + getElementKey(nameSoFar, i)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n for (\n children = i.call(children), i = 0;\n !(nameSoFar = children.next()).done;\n\n )\n (nameSoFar = nameSoFar.value),\n (type = nextNamePrefix + getElementKey(nameSoFar, i++)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (\"object\" === type) {\n if (\"function\" === typeof children.then)\n return mapIntoArray(\n resolveThenable(children),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n );\n array = String(children);\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === array\n ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n : array) +\n \"). If you meant to render a collection of children, use an array instead.\"\n );\n }\n return invokeCallback;\n}\nfunction mapChildren(children, func, context) {\n if (null == children) return children;\n var result = [],\n count = 0;\n mapIntoArray(children, result, \"\", \"\", function (child) {\n return func.call(context, child, count++);\n });\n return result;\n}\nfunction lazyInitializer(payload) {\n if (-1 === payload._status) {\n var ctor = payload._result;\n ctor = ctor();\n ctor.then(\n function (moduleObject) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 1), (payload._result = moduleObject);\n },\n function (error) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 2), (payload._result = error);\n }\n );\n -1 === payload._status && ((payload._status = 0), (payload._result = ctor));\n }\n if (1 === payload._status) return payload._result.default;\n throw payload._result;\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n },\n Children = {\n map: mapChildren,\n forEach: function (children, forEachFunc, forEachContext) {\n mapChildren(\n children,\n function () {\n forEachFunc.apply(this, arguments);\n },\n forEachContext\n );\n },\n count: function (children) {\n var n = 0;\n mapChildren(children, function () {\n n++;\n });\n return n;\n },\n toArray: function (children) {\n return (\n mapChildren(children, function (child) {\n return child;\n }) || []\n );\n },\n only: function (children) {\n if (!isValidElement(children))\n throw Error(\n \"React.Children.only expected to receive a single React element child.\"\n );\n return children;\n }\n };\nexports.Activity = REACT_ACTIVITY_TYPE;\nexports.Children = Children;\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n ReactSharedInternals;\nexports.__COMPILER_RUNTIME = {\n __proto__: null,\n c: function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n }\n};\nexports.cache = function (fn) {\n return function () {\n return fn.apply(null, arguments);\n };\n};\nexports.cacheSignal = function () {\n return null;\n};\nexports.cloneElement = function (element, config, children) {\n if (null === element || void 0 === element)\n throw Error(\n \"The argument must be a React element, but you passed \" + element + \".\"\n );\n var props = assign({}, element.props),\n key = element.key;\n if (null != config)\n for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n !hasOwnProperty.call(config, propName) ||\n \"key\" === propName ||\n \"__self\" === propName ||\n \"__source\" === propName ||\n (\"ref\" === propName && void 0 === config.ref) ||\n (props[propName] = config[propName]);\n var propName = arguments.length - 2;\n if (1 === propName) props.children = children;\n else if (1 < propName) {\n for (var childArray = Array(propName), i = 0; i < propName; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n return ReactElement(element.type, key, props);\n};\nexports.createContext = function (defaultValue) {\n defaultValue = {\n $$typeof: REACT_CONTEXT_TYPE,\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n defaultValue.Provider = defaultValue;\n defaultValue.Consumer = {\n $$typeof: REACT_CONSUMER_TYPE,\n _context: defaultValue\n };\n return defaultValue;\n};\nexports.createElement = function (type, config, children) {\n var propName,\n props = {},\n key = null;\n if (null != config)\n for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n hasOwnProperty.call(config, propName) &&\n \"key\" !== propName &&\n \"__self\" !== propName &&\n \"__source\" !== propName &&\n (props[propName] = config[propName]);\n var childrenLength = arguments.length - 2;\n if (1 === childrenLength) props.children = children;\n else if (1 < childrenLength) {\n for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n if (type && type.defaultProps)\n for (propName in ((childrenLength = type.defaultProps), childrenLength))\n void 0 === props[propName] &&\n (props[propName] = childrenLength[propName]);\n return ReactElement(type, key, props);\n};\nexports.createRef = function () {\n return { current: null };\n};\nexports.forwardRef = function (render) {\n return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };\n};\nexports.isValidElement = isValidElement;\nexports.lazy = function (ctor) {\n return {\n $$typeof: REACT_LAZY_TYPE,\n _payload: { _status: -1, _result: ctor },\n _init: lazyInitializer\n };\n};\nexports.memo = function (type, compare) {\n return {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: void 0 === compare ? null : compare\n };\n};\nexports.startTransition = function (scope) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = scope(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n returnValue.then(noop, reportGlobalError);\n } catch (error) {\n reportGlobalError(error);\n } finally {\n null !== prevTransition &&\n null !== currentTransition.types &&\n (prevTransition.types = currentTransition.types),\n (ReactSharedInternals.T = prevTransition);\n }\n};\nexports.unstable_useCacheRefresh = function () {\n return ReactSharedInternals.H.useCacheRefresh();\n};\nexports.use = function (usable) {\n return ReactSharedInternals.H.use(usable);\n};\nexports.useActionState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useActionState(action, initialState, permalink);\n};\nexports.useCallback = function (callback, deps) {\n return ReactSharedInternals.H.useCallback(callback, deps);\n};\nexports.useContext = function (Context) {\n return ReactSharedInternals.H.useContext(Context);\n};\nexports.useDebugValue = function () {};\nexports.useDeferredValue = function (value, initialValue) {\n return ReactSharedInternals.H.useDeferredValue(value, initialValue);\n};\nexports.useEffect = function (create, deps) {\n return ReactSharedInternals.H.useEffect(create, deps);\n};\nexports.useEffectEvent = function (callback) {\n return ReactSharedInternals.H.useEffectEvent(callback);\n};\nexports.useId = function () {\n return ReactSharedInternals.H.useId();\n};\nexports.useImperativeHandle = function (ref, create, deps) {\n return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);\n};\nexports.useInsertionEffect = function (create, deps) {\n return ReactSharedInternals.H.useInsertionEffect(create, deps);\n};\nexports.useLayoutEffect = function (create, deps) {\n return ReactSharedInternals.H.useLayoutEffect(create, deps);\n};\nexports.useMemo = function (create, deps) {\n return ReactSharedInternals.H.useMemo(create, deps);\n};\nexports.useOptimistic = function (passthrough, reducer) {\n return ReactSharedInternals.H.useOptimistic(passthrough, reducer);\n};\nexports.useReducer = function (reducer, initialArg, init) {\n return ReactSharedInternals.H.useReducer(reducer, initialArg, init);\n};\nexports.useRef = function (initialValue) {\n return ReactSharedInternals.H.useRef(initialValue);\n};\nexports.useState = function (initialState) {\n return ReactSharedInternals.H.useState(initialState);\n};\nexports.useSyncExternalStore = function (\n subscribe,\n getSnapshot,\n getServerSnapshot\n) {\n return ReactSharedInternals.H.useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot\n );\n};\nexports.useTransition = function () {\n return ReactSharedInternals.H.useTransition();\n};\nexports.version = \"19.2.7\";\n","/**\n * @license React\n * react.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function defineDeprecationWarning(methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n console.warn(\n \"%s(...) is deprecated in plain JavaScript React classes. %s\",\n info[0],\n info[1]\n );\n }\n });\n }\n function getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable)\n return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n }\n function warnNoop(publicInstance, callerName) {\n publicInstance =\n ((publicInstance = publicInstance.constructor) &&\n (publicInstance.displayName || publicInstance.name)) ||\n \"ReactClass\";\n var warningKey = publicInstance + \".\" + callerName;\n didWarnStateUpdateForUnmountedComponent[warningKey] ||\n (console.error(\n \"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.\",\n callerName,\n publicInstance\n ),\n (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));\n }\n function Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function ComponentDummy() {}\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function noop() {}\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function cloneAndReplaceKey(oldElement, newKey) {\n newKey = ReactElement(\n oldElement.type,\n newKey,\n oldElement.props,\n oldElement._owner,\n oldElement._debugStack,\n oldElement._debugTask\n );\n oldElement._store &&\n (newKey._store.validated = oldElement._store.validated);\n return newKey;\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n function escape(key) {\n var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n return (\n \"$\" +\n key.replace(/[=:]/g, function (match) {\n return escaperLookup[match];\n })\n );\n }\n function getElementKey(element, index) {\n return \"object\" === typeof element &&\n null !== element &&\n null != element.key\n ? (checkKeyStringCoercion(element.key), escape(\"\" + element.key))\n : index.toString(36);\n }\n function resolveThenable(thenable) {\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n default:\n switch (\n (\"string\" === typeof thenable.status\n ? thenable.then(noop, noop)\n : ((thenable.status = \"pending\"),\n thenable.then(\n function (fulfilledValue) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = fulfilledValue));\n },\n function (error) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"rejected\"),\n (thenable.reason = error));\n }\n )),\n thenable.status)\n ) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n }\n }\n throw thenable;\n }\n function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (\"undefined\" === type || \"boolean\" === type) children = null;\n var invokeCallback = !1;\n if (null === children) invokeCallback = !0;\n else\n switch (type) {\n case \"bigint\":\n case \"string\":\n case \"number\":\n invokeCallback = !0;\n break;\n case \"object\":\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = !0;\n break;\n case REACT_LAZY_TYPE:\n return (\n (invokeCallback = children._init),\n mapIntoArray(\n invokeCallback(children._payload),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n )\n );\n }\n }\n if (invokeCallback) {\n invokeCallback = children;\n callback = callback(invokeCallback);\n var childKey =\n \"\" === nameSoFar ? \".\" + getElementKey(invokeCallback, 0) : nameSoFar;\n isArrayImpl(callback)\n ? ((escapedPrefix = \"\"),\n null != childKey &&\n (escapedPrefix =\n childKey.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n return c;\n }))\n : null != callback &&\n (isValidElement(callback) &&\n (null != callback.key &&\n ((invokeCallback && invokeCallback.key === callback.key) ||\n checkKeyStringCoercion(callback.key)),\n (escapedPrefix = cloneAndReplaceKey(\n callback,\n escapedPrefix +\n (null == callback.key ||\n (invokeCallback && invokeCallback.key === callback.key)\n ? \"\"\n : (\"\" + callback.key).replace(\n userProvidedKeyEscapeRegex,\n \"$&/\"\n ) + \"/\") +\n childKey\n )),\n \"\" !== nameSoFar &&\n null != invokeCallback &&\n isValidElement(invokeCallback) &&\n null == invokeCallback.key &&\n invokeCallback._store &&\n !invokeCallback._store.validated &&\n (escapedPrefix._store.validated = 2),\n (callback = escapedPrefix)),\n array.push(callback));\n return 1;\n }\n invokeCallback = 0;\n childKey = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n if (isArrayImpl(children))\n for (var i = 0; i < children.length; i++)\n (nameSoFar = children[i]),\n (type = childKey + getElementKey(nameSoFar, i)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n for (\n i === children.entries &&\n (didWarnAboutMaps ||\n console.warn(\n \"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"\n ),\n (didWarnAboutMaps = !0)),\n children = i.call(children),\n i = 0;\n !(nameSoFar = children.next()).done;\n\n )\n (nameSoFar = nameSoFar.value),\n (type = childKey + getElementKey(nameSoFar, i++)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (\"object\" === type) {\n if (\"function\" === typeof children.then)\n return mapIntoArray(\n resolveThenable(children),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n );\n array = String(children);\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === array\n ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n : array) +\n \"). If you meant to render a collection of children, use an array instead.\"\n );\n }\n return invokeCallback;\n }\n function mapChildren(children, func, context) {\n if (null == children) return children;\n var result = [],\n count = 0;\n mapIntoArray(children, result, \"\", \"\", function (child) {\n return func.call(context, child, count++);\n });\n return result;\n }\n function lazyInitializer(payload) {\n if (-1 === payload._status) {\n var ioInfo = payload._ioInfo;\n null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());\n ioInfo = payload._result;\n var thenable = ioInfo();\n thenable.then(\n function (moduleObject) {\n if (0 === payload._status || -1 === payload._status) {\n payload._status = 1;\n payload._result = moduleObject;\n var _ioInfo = payload._ioInfo;\n null != _ioInfo && (_ioInfo.end = performance.now());\n void 0 === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = moduleObject));\n }\n },\n function (error) {\n if (0 === payload._status || -1 === payload._status) {\n payload._status = 2;\n payload._result = error;\n var _ioInfo2 = payload._ioInfo;\n null != _ioInfo2 && (_ioInfo2.end = performance.now());\n void 0 === thenable.status &&\n ((thenable.status = \"rejected\"), (thenable.reason = error));\n }\n }\n );\n ioInfo = payload._ioInfo;\n if (null != ioInfo) {\n ioInfo.value = thenable;\n var displayName = thenable.displayName;\n \"string\" === typeof displayName && (ioInfo.name = displayName);\n }\n -1 === payload._status &&\n ((payload._status = 0), (payload._result = thenable));\n }\n if (1 === payload._status)\n return (\n (ioInfo = payload._result),\n void 0 === ioInfo &&\n console.error(\n \"lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n const MyComponent = lazy(() => import('./MyComponent'))\\n\\nDid you accidentally put curly braces around the import?\",\n ioInfo\n ),\n \"default\" in ioInfo ||\n console.error(\n \"lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n const MyComponent = lazy(() => import('./MyComponent'))\",\n ioInfo\n ),\n ioInfo.default\n );\n throw payload._result;\n }\n function resolveDispatcher() {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher;\n }\n function releaseAsyncTransition() {\n ReactSharedInternals.asyncTransitions--;\n }\n function enqueueTask(task) {\n if (null === enqueueTaskImpl)\n try {\n var requireString = (\"require\" + Math.random()).slice(0, 7);\n enqueueTaskImpl = (module && module[requireString]).call(\n module,\n \"timers\"\n ).setImmediate;\n } catch (_err) {\n enqueueTaskImpl = function (callback) {\n !1 === didWarnAboutMessageChannel &&\n ((didWarnAboutMessageChannel = !0),\n \"undefined\" === typeof MessageChannel &&\n console.error(\n \"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.\"\n ));\n var channel = new MessageChannel();\n channel.port1.onmessage = callback;\n channel.port2.postMessage(void 0);\n };\n }\n return enqueueTaskImpl(task);\n }\n function aggregateErrors(errors) {\n return 1 < errors.length && \"function\" === typeof AggregateError\n ? new AggregateError(errors)\n : errors[0];\n }\n function popActScope(prevActQueue, prevActScopeDepth) {\n prevActScopeDepth !== actScopeDepth - 1 &&\n console.error(\n \"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. \"\n );\n actScopeDepth = prevActScopeDepth;\n }\n function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {\n var queue = ReactSharedInternals.actQueue;\n if (null !== queue)\n if (0 !== queue.length)\n try {\n flushActQueue(queue);\n enqueueTask(function () {\n return recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n });\n return;\n } catch (error) {\n ReactSharedInternals.thrownErrors.push(error);\n }\n else ReactSharedInternals.actQueue = null;\n 0 < ReactSharedInternals.thrownErrors.length\n ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),\n (ReactSharedInternals.thrownErrors.length = 0),\n reject(queue))\n : resolve(returnValue);\n }\n function flushActQueue(queue) {\n if (!isFlushing) {\n isFlushing = !0;\n var i = 0;\n try {\n for (; i < queue.length; i++) {\n var callback = queue[i];\n do {\n ReactSharedInternals.didUsePromise = !1;\n var continuation = callback(!1);\n if (null !== continuation) {\n if (ReactSharedInternals.didUsePromise) {\n queue[i] = callback;\n queue.splice(0, i);\n return;\n }\n callback = continuation;\n } else break;\n } while (1);\n }\n queue.length = 0;\n } catch (error) {\n queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);\n } finally {\n isFlushing = !1;\n }\n }\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator,\n didWarnStateUpdateForUnmountedComponent = {},\n ReactNoopUpdateQueue = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function (publicInstance) {\n warnNoop(publicInstance, \"forceUpdate\");\n },\n enqueueReplaceState: function (publicInstance) {\n warnNoop(publicInstance, \"replaceState\");\n },\n enqueueSetState: function (publicInstance) {\n warnNoop(publicInstance, \"setState\");\n }\n },\n assign = Object.assign,\n emptyObject = {};\n Object.freeze(emptyObject);\n Component.prototype.isReactComponent = {};\n Component.prototype.setState = function (partialState, callback) {\n if (\n \"object\" !== typeof partialState &&\n \"function\" !== typeof partialState &&\n null != partialState\n )\n throw Error(\n \"takes an object of state variables to update or a function which returns an object of state variables.\"\n );\n this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n };\n Component.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n };\n var deprecatedAPIs = {\n isMounted: [\n \"isMounted\",\n \"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.\"\n ],\n replaceState: [\n \"replaceState\",\n \"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).\"\n ]\n };\n for (fnName in deprecatedAPIs)\n deprecatedAPIs.hasOwnProperty(fnName) &&\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n ComponentDummy.prototype = Component.prototype;\n deprecatedAPIs = PureComponent.prototype = new ComponentDummy();\n deprecatedAPIs.constructor = PureComponent;\n assign(deprecatedAPIs, Component.prototype);\n deprecatedAPIs.isPureReactComponent = !0;\n var isArrayImpl = Array.isArray,\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals = {\n H: null,\n A: null,\n T: null,\n S: null,\n actQueue: null,\n asyncTransitions: 0,\n isBatchingLegacy: !1,\n didScheduleLegacyUpdate: !1,\n didUsePromise: !1,\n thrownErrors: [],\n getCurrentStack: null,\n recentlyCreatedOwnerStacks: 0\n },\n hasOwnProperty = Object.prototype.hasOwnProperty,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n deprecatedAPIs = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(\n deprecatedAPIs,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutMaps = !1,\n userProvidedKeyEscapeRegex = /\\/+/g,\n reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n },\n didWarnAboutMessageChannel = !1,\n enqueueTaskImpl = null,\n actScopeDepth = 0,\n didWarnNoAwaitAct = !1,\n isFlushing = !1,\n queueSeveralMicrotasks =\n \"function\" === typeof queueMicrotask\n ? function (callback) {\n queueMicrotask(function () {\n return queueMicrotask(callback);\n });\n }\n : enqueueTask;\n deprecatedAPIs = Object.freeze({\n __proto__: null,\n c: function (size) {\n return resolveDispatcher().useMemoCache(size);\n }\n });\n var fnName = {\n map: mapChildren,\n forEach: function (children, forEachFunc, forEachContext) {\n mapChildren(\n children,\n function () {\n forEachFunc.apply(this, arguments);\n },\n forEachContext\n );\n },\n count: function (children) {\n var n = 0;\n mapChildren(children, function () {\n n++;\n });\n return n;\n },\n toArray: function (children) {\n return (\n mapChildren(children, function (child) {\n return child;\n }) || []\n );\n },\n only: function (children) {\n if (!isValidElement(children))\n throw Error(\n \"React.Children.only expected to receive a single React element child.\"\n );\n return children;\n }\n };\n exports.Activity = REACT_ACTIVITY_TYPE;\n exports.Children = fnName;\n exports.Component = Component;\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.Profiler = REACT_PROFILER_TYPE;\n exports.PureComponent = PureComponent;\n exports.StrictMode = REACT_STRICT_MODE_TYPE;\n exports.Suspense = REACT_SUSPENSE_TYPE;\n exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n ReactSharedInternals;\n exports.__COMPILER_RUNTIME = deprecatedAPIs;\n exports.act = function (callback) {\n var prevActQueue = ReactSharedInternals.actQueue,\n prevActScopeDepth = actScopeDepth;\n actScopeDepth++;\n var queue = (ReactSharedInternals.actQueue =\n null !== prevActQueue ? prevActQueue : []),\n didAwaitActCall = !1;\n try {\n var result = callback();\n } catch (error) {\n ReactSharedInternals.thrownErrors.push(error);\n }\n if (0 < ReactSharedInternals.thrownErrors.length)\n throw (\n (popActScope(prevActQueue, prevActScopeDepth),\n (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),\n (ReactSharedInternals.thrownErrors.length = 0),\n callback)\n );\n if (\n null !== result &&\n \"object\" === typeof result &&\n \"function\" === typeof result.then\n ) {\n var thenable = result;\n queueSeveralMicrotasks(function () {\n didAwaitActCall ||\n didWarnNoAwaitAct ||\n ((didWarnNoAwaitAct = !0),\n console.error(\n \"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);\"\n ));\n });\n return {\n then: function (resolve, reject) {\n didAwaitActCall = !0;\n thenable.then(\n function (returnValue) {\n popActScope(prevActQueue, prevActScopeDepth);\n if (0 === prevActScopeDepth) {\n try {\n flushActQueue(queue),\n enqueueTask(function () {\n return recursivelyFlushAsyncActWork(\n returnValue,\n resolve,\n reject\n );\n });\n } catch (error$0) {\n ReactSharedInternals.thrownErrors.push(error$0);\n }\n if (0 < ReactSharedInternals.thrownErrors.length) {\n var _thrownError = aggregateErrors(\n ReactSharedInternals.thrownErrors\n );\n ReactSharedInternals.thrownErrors.length = 0;\n reject(_thrownError);\n }\n } else resolve(returnValue);\n },\n function (error) {\n popActScope(prevActQueue, prevActScopeDepth);\n 0 < ReactSharedInternals.thrownErrors.length\n ? ((error = aggregateErrors(\n ReactSharedInternals.thrownErrors\n )),\n (ReactSharedInternals.thrownErrors.length = 0),\n reject(error))\n : reject(error);\n }\n );\n }\n };\n }\n var returnValue$jscomp$0 = result;\n popActScope(prevActQueue, prevActScopeDepth);\n 0 === prevActScopeDepth &&\n (flushActQueue(queue),\n 0 !== queue.length &&\n queueSeveralMicrotasks(function () {\n didAwaitActCall ||\n didWarnNoAwaitAct ||\n ((didWarnNoAwaitAct = !0),\n console.error(\n \"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\\n\\nawait act(() => ...)\"\n ));\n }),\n (ReactSharedInternals.actQueue = null));\n if (0 < ReactSharedInternals.thrownErrors.length)\n throw (\n ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),\n (ReactSharedInternals.thrownErrors.length = 0),\n callback)\n );\n return {\n then: function (resolve, reject) {\n didAwaitActCall = !0;\n 0 === prevActScopeDepth\n ? ((ReactSharedInternals.actQueue = queue),\n enqueueTask(function () {\n return recursivelyFlushAsyncActWork(\n returnValue$jscomp$0,\n resolve,\n reject\n );\n }))\n : resolve(returnValue$jscomp$0);\n }\n };\n };\n exports.cache = function (fn) {\n return function () {\n return fn.apply(null, arguments);\n };\n };\n exports.cacheSignal = function () {\n return null;\n };\n exports.captureOwnerStack = function () {\n var getCurrentStack = ReactSharedInternals.getCurrentStack;\n return null === getCurrentStack ? null : getCurrentStack();\n };\n exports.cloneElement = function (element, config, children) {\n if (null === element || void 0 === element)\n throw Error(\n \"The argument must be a React element, but you passed \" +\n element +\n \".\"\n );\n var props = assign({}, element.props),\n key = element.key,\n owner = element._owner;\n if (null != config) {\n var JSCompiler_inline_result;\n a: {\n if (\n hasOwnProperty.call(config, \"ref\") &&\n (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(\n config,\n \"ref\"\n ).get) &&\n JSCompiler_inline_result.isReactWarning\n ) {\n JSCompiler_inline_result = !1;\n break a;\n }\n JSCompiler_inline_result = void 0 !== config.ref;\n }\n JSCompiler_inline_result && (owner = getOwner());\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (key = \"\" + config.key));\n for (propName in config)\n !hasOwnProperty.call(config, propName) ||\n \"key\" === propName ||\n \"__self\" === propName ||\n \"__source\" === propName ||\n (\"ref\" === propName && void 0 === config.ref) ||\n (props[propName] = config[propName]);\n }\n var propName = arguments.length - 2;\n if (1 === propName) props.children = children;\n else if (1 < propName) {\n JSCompiler_inline_result = Array(propName);\n for (var i = 0; i < propName; i++)\n JSCompiler_inline_result[i] = arguments[i + 2];\n props.children = JSCompiler_inline_result;\n }\n props = ReactElement(\n element.type,\n key,\n props,\n owner,\n element._debugStack,\n element._debugTask\n );\n for (key = 2; key < arguments.length; key++)\n validateChildKeys(arguments[key]);\n return props;\n };\n exports.createContext = function (defaultValue) {\n defaultValue = {\n $$typeof: REACT_CONTEXT_TYPE,\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n defaultValue.Provider = defaultValue;\n defaultValue.Consumer = {\n $$typeof: REACT_CONSUMER_TYPE,\n _context: defaultValue\n };\n defaultValue._currentRenderer = null;\n defaultValue._currentRenderer2 = null;\n return defaultValue;\n };\n exports.createElement = function (type, config, children) {\n for (var i = 2; i < arguments.length; i++)\n validateChildKeys(arguments[i]);\n i = {};\n var key = null;\n if (null != config)\n for (propName in (didWarnAboutOldJSXRuntime ||\n !(\"__self\" in config) ||\n \"key\" in config ||\n ((didWarnAboutOldJSXRuntime = !0),\n console.warn(\n \"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform\"\n )),\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (key = \"\" + config.key)),\n config))\n hasOwnProperty.call(config, propName) &&\n \"key\" !== propName &&\n \"__self\" !== propName &&\n \"__source\" !== propName &&\n (i[propName] = config[propName]);\n var childrenLength = arguments.length - 2;\n if (1 === childrenLength) i.children = children;\n else if (1 < childrenLength) {\n for (\n var childArray = Array(childrenLength), _i = 0;\n _i < childrenLength;\n _i++\n )\n childArray[_i] = arguments[_i + 2];\n Object.freeze && Object.freeze(childArray);\n i.children = childArray;\n }\n if (type && type.defaultProps)\n for (propName in ((childrenLength = type.defaultProps), childrenLength))\n void 0 === i[propName] && (i[propName] = childrenLength[propName]);\n key &&\n defineKeyPropWarningGetter(\n i,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return ReactElement(\n type,\n key,\n i,\n getOwner(),\n propName ? Error(\"react-stack-top-frame\") : unknownOwnerDebugStack,\n propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.createRef = function () {\n var refObject = { current: null };\n Object.seal(refObject);\n return refObject;\n };\n exports.forwardRef = function (render) {\n null != render && render.$$typeof === REACT_MEMO_TYPE\n ? console.error(\n \"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).\"\n )\n : \"function\" !== typeof render\n ? console.error(\n \"forwardRef requires a render function but was given %s.\",\n null === render ? \"null\" : typeof render\n )\n : 0 !== render.length &&\n 2 !== render.length &&\n console.error(\n \"forwardRef render functions accept exactly two parameters: props and ref. %s\",\n 1 === render.length\n ? \"Did you forget to use the ref parameter?\"\n : \"Any additional parameter will be undefined.\"\n );\n null != render &&\n null != render.defaultProps &&\n console.error(\n \"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?\"\n );\n var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },\n ownName;\n Object.defineProperty(elementType, \"displayName\", {\n enumerable: !1,\n configurable: !0,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n render.name ||\n render.displayName ||\n (Object.defineProperty(render, \"name\", { value: name }),\n (render.displayName = name));\n }\n });\n return elementType;\n };\n exports.isValidElement = isValidElement;\n exports.lazy = function (ctor) {\n ctor = { _status: -1, _result: ctor };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: ctor,\n _init: lazyInitializer\n },\n ioInfo = {\n name: \"lazy\",\n start: -1,\n end: -1,\n value: null,\n owner: null,\n debugStack: Error(\"react-stack-top-frame\"),\n debugTask: console.createTask ? console.createTask(\"lazy()\") : null\n };\n ctor._ioInfo = ioInfo;\n lazyType._debugInfo = [{ awaited: ioInfo }];\n return lazyType;\n };\n exports.memo = function (type, compare) {\n null == type &&\n console.error(\n \"memo: The first argument must be a component. Instead received: %s\",\n null === type ? \"null\" : typeof type\n );\n compare = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: void 0 === compare ? null : compare\n };\n var ownName;\n Object.defineProperty(compare, \"displayName\", {\n enumerable: !1,\n configurable: !0,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n type.name ||\n type.displayName ||\n (Object.defineProperty(type, \"name\", { value: name }),\n (type.displayName = name));\n }\n });\n return compare;\n };\n exports.startTransition = function (scope) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n currentTransition._updatedFibers = new Set();\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = scope(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n (ReactSharedInternals.asyncTransitions++,\n returnValue.then(releaseAsyncTransition, releaseAsyncTransition),\n returnValue.then(noop, reportGlobalError));\n } catch (error) {\n reportGlobalError(error);\n } finally {\n null === prevTransition &&\n currentTransition._updatedFibers &&\n ((scope = currentTransition._updatedFibers.size),\n currentTransition._updatedFibers.clear(),\n 10 < scope &&\n console.warn(\n \"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"\n )),\n null !== prevTransition &&\n null !== currentTransition.types &&\n (null !== prevTransition.types &&\n prevTransition.types !== currentTransition.types &&\n console.error(\n \"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"\n ),\n (prevTransition.types = currentTransition.types)),\n (ReactSharedInternals.T = prevTransition);\n }\n };\n exports.unstable_useCacheRefresh = function () {\n return resolveDispatcher().useCacheRefresh();\n };\n exports.use = function (usable) {\n return resolveDispatcher().use(usable);\n };\n exports.useActionState = function (action, initialState, permalink) {\n return resolveDispatcher().useActionState(\n action,\n initialState,\n permalink\n );\n };\n exports.useCallback = function (callback, deps) {\n return resolveDispatcher().useCallback(callback, deps);\n };\n exports.useContext = function (Context) {\n var dispatcher = resolveDispatcher();\n Context.$$typeof === REACT_CONSUMER_TYPE &&\n console.error(\n \"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?\"\n );\n return dispatcher.useContext(Context);\n };\n exports.useDebugValue = function (value, formatterFn) {\n return resolveDispatcher().useDebugValue(value, formatterFn);\n };\n exports.useDeferredValue = function (value, initialValue) {\n return resolveDispatcher().useDeferredValue(value, initialValue);\n };\n exports.useEffect = function (create, deps) {\n null == create &&\n console.warn(\n \"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?\"\n );\n return resolveDispatcher().useEffect(create, deps);\n };\n exports.useEffectEvent = function (callback) {\n return resolveDispatcher().useEffectEvent(callback);\n };\n exports.useId = function () {\n return resolveDispatcher().useId();\n };\n exports.useImperativeHandle = function (ref, create, deps) {\n return resolveDispatcher().useImperativeHandle(ref, create, deps);\n };\n exports.useInsertionEffect = function (create, deps) {\n null == create &&\n console.warn(\n \"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?\"\n );\n return resolveDispatcher().useInsertionEffect(create, deps);\n };\n exports.useLayoutEffect = function (create, deps) {\n null == create &&\n console.warn(\n \"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?\"\n );\n return resolveDispatcher().useLayoutEffect(create, deps);\n };\n exports.useMemo = function (create, deps) {\n return resolveDispatcher().useMemo(create, deps);\n };\n exports.useOptimistic = function (passthrough, reducer) {\n return resolveDispatcher().useOptimistic(passthrough, reducer);\n };\n exports.useReducer = function (reducer, initialArg, init) {\n return resolveDispatcher().useReducer(reducer, initialArg, init);\n };\n exports.useRef = function (initialValue) {\n return resolveDispatcher().useRef(initialValue);\n };\n exports.useState = function (initialState) {\n return resolveDispatcher().useState(initialState);\n };\n exports.useSyncExternalStore = function (\n subscribe,\n getSnapshot,\n getServerSnapshot\n ) {\n return resolveDispatcher().useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot\n );\n };\n exports.useTransition = function () {\n return resolveDispatcher().useTransition();\n };\n exports.version = \"19.2.7\";\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { EntropicComponent, snakeCase, Unsubscriber } from 'entropic-bond'\nimport { cloneElement, Component, ReactElement, JSX } from 'react'\nimport { CrudController } from './crud-controller'\n\nenum Mode { normal, add, edit }\n\nexport interface CrudCardProps<T extends EntropicComponent> {\n\tdocument: T\n\tonSelect: ( document: T ) => void\n\tonDelete: ( document: T ) => void\n}\n\nexport interface CrudContentViewProps<T extends EntropicComponent> {\n\tcontroller: CrudController<T>\n\tsubmitButtonCaption: string\n\tonSubmit: ( document: T ) => void\n\tonCancel: ()=>void\n}\n\nexport interface CrudPanelLabels {\n\taddNewDocumentLabel: string\n\taddButtonLabel: string\n\tupdateButtonLabel: string\n\tsingularDocumentInCollectionCaption?: string\n\tdocumentsInCollectionCaption: string\n\tnoDocumentsFoundLabel: string\n}\n\nexport type Layout = 'formOrItems' | 'itemsAlways' | 'formAndItems'\n\ninterface CrudPanelState<T extends EntropicComponent> {\n\tdocuments: T[]\n\tmode: Mode\n}\n\ninterface CrudPanelProps<T extends EntropicComponent> {\n\tcontroller: CrudController<T>\t\n\tlabels?: CrudPanelLabels | ( ( controller: CrudController<T> ) => CrudPanelLabels )\n\tlayout?: Layout\n\tchildren: [\n\t\t( ( props: CrudContentViewProps<T> ) => ReactElement ) | ReactElement<CrudContentViewProps<T>>,\n\t\t( ( props: CrudCardProps<T> ) => ReactElement ) | ReactElement<CrudCardProps<T>>\n\t]\n\tclassName?: string\n\tcardAddButton?: boolean | JSX.Element\n\theader?: string | JSX.Element | ( ( controller: CrudController<T>, newDocumentAction: ()=>void, labels: CrudPanelLabels ) => string | JSX.Element )\n\tfooter?: string | JSX.Element | ( ( controller: CrudController<T>, newDocumentAction: ()=>void, labels: CrudPanelLabels ) => string | JSX.Element )\n}\n\nexport class CrudPanel<T extends EntropicComponent> extends Component<CrudPanelProps<T>, CrudPanelState<T>> {\n\n\tconstructor( props: CrudPanelProps<T> ) {\n\t\tsuper( props )\n\n\t\tthis.state = {\n\t\t\tdocuments: [],\n\t\t\tmode: Mode.normal,\n\t\t}\n\t}\n\n\toverride async componentDidMount() {\n\t\tconst { controller } = this.props\n\n\t\tthis.unsubscriber = controller.onChange( event => {\n\t\t\tif ( event.documentCollection ) {\n\t\t\t\tthis.unfilteredDocuments = event.documentCollection\n\t\t\t\tthis.setState({\n\t\t\t\t\tdocuments: controller.filter( this.unfilteredDocuments )\n\t\t\t\t})\n\t\t\t}\n\t\t\tif ( event.action === 'filterChange' ) {\n\t\t\t\tthis.setState({\n\t\t\t\t\tdocuments: controller.filter( this.unfilteredDocuments )\n\t\t\t\t})\n\t\t\t}\n\t\t\telse this.setState({})\n\t\t})\n\n\t\tthis.unfilteredDocuments = await controller.documentCollection()\n\t\tthis.setState({\n\t\t\tdocuments: controller.filter( this.unfilteredDocuments )\n\t\t})\n\t}\n\n\toverride componentWillUnmount() {\n\t\tthis.unsubscriber?.()\n\t}\n\n\tprivate newDocument() {\n\t\tthis.props.controller.newDocument()\n\n\t\tthis.setState({\n\t\t\tmode: Mode.add,\n\t\t})\n\t}\n\n\tprivate editDocument( document: T ) {\n\t\tthis.props.controller.setDocument( document )\n\n\t\tthis.setState({\n\t\t\tmode: Mode.edit\n\t\t})\n\t}\n\n\tprivate async storeDocument( document: T ) {\n\t\tconst { controller, layout } = this.props\n\t\tcontroller.setDocument( document )\n\t\tawait controller.storeDocument()\n\n\t\tif ( layout === 'formAndItems' ) {\n\t\t\tthis.newDocument()\n\t\t}\n\t\telse {\n\t\t\tthis.setState({\n\t\t\t\tmode: Mode.normal,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate invokeContentViewChild( labels : CrudPanelLabels ) {\n\t\tconst { children, layout, controller } = this.props\n\t\tconst { mode } = this.state\n\t\tconst closeOnCancel = layout !== 'formAndItems'\n\t\tif ( !controller.document ) return\n\n\t\tconst props: CrudContentViewProps<T> = {\n\t\t\tcontroller: controller,\n\t\t\tsubmitButtonCaption: mode==Mode.edit? labels?.updateButtonLabel : labels?.addButtonLabel,\n\t\t\tonSubmit: ( document: T ) => this.storeDocument( document ),\n\t\t\tonCancel: closeOnCancel\n\t\t\t\t? ()=>this.setState({ mode: Mode.normal })\n\t\t\t\t: ()=>this.newDocument(),\n\t\t}\n\n\t\tif ( typeof children[0] === 'function' ) {\n\t\t\treturn cloneElement( children[0] (props), { key: controller.document.id })\n\t\t}\n\t\telse {\n\t\t\treturn cloneElement( children[0], { key: controller.document.id, ...props })\t\n\t\t}\t\t\n\t}\n\n\tprivate invokeDetailViewChild( document: T ) {\n\t\tconst { children, controller } = this.props\n\n\t\tconst props: CrudCardProps<T> = {\n\t\t\tdocument,\n\t\t\tonSelect: (document: T) => this.editDocument( document ),\n\t\t\tonDelete: (document: T) => controller.setDocument( document ).deleteDocument()\n\t\t}\n\n\t\tif ( typeof children[1] === 'function' ) {\n\t\t\treturn cloneElement( children[1]( props ), { key: document.id } )\n\t\t}\n\t\telse {\n\t\t\treturn cloneElement( children[1], { key: document.id, ...props } )\n\t\t}\n\t}\n\n\toverride render() {\n\t\tconst { mode, documents } = this.state\n\t\tconst { className, cardAddButton, controller } = this.props\n\t\tconst docClassName = snakeCase( controller.document?.className )\n\t\tlet labels = this.props.labels || {} as CrudPanelLabels\n\t\tconst layout = this.props.layout || 'itemsAlways'\n\n\t\tif ( typeof labels === 'function' ) labels = labels( controller )\n\n\t\tconst { addNewDocumentLabel, singularDocumentInCollectionCaption, documentsInCollectionCaption, noDocumentsFoundLabel } = labels\n\n\t\treturn (\n\t\t\t<div className={`crud-panel ${ docClassName } ${ className || '' }`}>\n\n\t\t\t\t{ mode === Mode.normal && layout !== 'formAndItems' && !cardAddButton &&\n\t\t\t\t\t<div className=\"header\">\n\n\t\t\t\t\t\t{ this.props.header\n\t\t\t\t\t\t\t? typeof this.props.header === 'function'\n\t\t\t\t\t\t\t\t? this.props.header( controller, ()=> this.newDocument(), labels )\n\t\t\t\t\t\t\t\t: this.props.header\n\t\t\t\t\t\t\t:\t<button onClick={ ()=> this.newDocument() }>\n\t\t\t\t\t\t\t\t\t{\taddNewDocumentLabel\t}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t</div>\n\n\t\t\t\t}\n\n\t\t\t\t{ ( layout === 'formAndItems' || mode === Mode.add || mode === Mode.edit ) &&\n\n\t\t\t\t\t<div className=\"content-panel\">\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.invokeContentViewChild( labels )\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t{ ( layout==='itemsAlways' || layout === 'formAndItems'\t|| mode === Mode.normal ) &&\n\n\t\t\t\t\t<div className=\"collection-panel\">\n\t\t\t\t\t\t{ documents?.length > 0 &&\n\t\t\t\t\t\t\t<h3>\n\t\t\t\t\t\t\t\t{ documents.length > 1\n\t\t\t\t\t\t\t\t\t? documentsInCollectionCaption \n\t\t\t\t\t\t\t\t\t: singularDocumentInCollectionCaption || documentsInCollectionCaption\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t<div className=\"documents\">\n\t\t\t\t\t\t\t{ cardAddButton &&\n\t\t\t\t\t\t\t\t<div className=\"crud-card card-add-button clickable\" \n\t\t\t\t\t\t\t\t\tonClick={ ()=> this.newDocument() }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<div className=\"button-element\">{\tcardAddButton }</div>\n\t\t\t\t\t\t\t\t\t<div className=\"add-label\">{\taddNewDocumentLabel\t}</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{ documents?.length\n\t\t\t\t\t\t\t\t? documents.map( (document: T) => this.invokeDetailViewChild( document ) )\n\t\t\t\t\t\t\t\t: <p>{ noDocumentsFoundLabel }</p>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t<div className=\"footer\">\n\t\t\t\t\t{ this.props.footer &&\n\t\t\t\t\t\ttypeof this.props.footer === 'function'\n\t\t\t\t\t\t\t? this.props.footer( controller, ()=> this.newDocument(), labels )\n\t\t\t\t\t\t\t: this.props.footer\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t)\n\t}\n\n\tprivate unsubscriber: Unsubscriber | undefined\n\tprivate unfilteredDocuments: T[] = []\n}\n"],"x_google_ignoreList":[0,3,4,5,6,7,8],"mappings":";2FACI,IAAI,MAAM;CACb,cAAc;EACb,KAAK,8BAA8B,IAAI,IAAI;CAC5C;CACA,UAAU,GAAG;EACZ,O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S,IAClB,IACA,KAAuC,EAEvC,CAAA,GAGL,iBAAA,GAAA,EAAA,KAAA,CAAC,OAAD;MAAK,WAAU;gBAAf,CACG,KACD,iBAAA,GAAA,EAAA,KAAA,CAAC,OAAD;OAAK,WAAU;OACd,eAAe,KAAK,YAAY;iBADjC,CAGC,iBAAA,GAAA,EAAA,IAAA,CAAC,OAAD;QAAK,WAAU;kBAAmB;OAAoB,CAAA,GACtD,iBAAA,GAAA,EAAA,IAAA,CAAC,OAAD;QAAK,WAAU;kBAAc;OAA0B,CAAA,CACnD;UAEJ,GAAW,SACV,EAAU,KAAM,MAAgB,KAAK,sBAAuB,CAAS,CAAE,IACvE,iBAAA,GAAA,EAAA,IAAA,CAAC,KAAD,EAAA,UAAK,EAA0B,CAAA,CAE9B;OACD;;IAIN,iBAAA,GAAA,EAAA,IAAA,CAAC,OAAD;KAAK,WAAU;eACZ,KAAK,MAAM,UACZ,OAAO,KAAK,MAAM,UAAW,aAC1B,KAAK,MAAM,OAAQ,SAAiB,KAAK,YAAY,GAAG,CAAO,IAC/D,KAAK,MAAM;IAEX,CAAA;GACD;;CAEP;AAID"}
|
|
1
|
+
{"version":3,"file":"entropic-bond-crud-panel.js","names":[],"sources":["../node_modules/entropic-bond/lib/entropic-bond.js","../src/progress-controller.ts","../src/crud-controller.ts","../node_modules/react/cjs/react.production.js","../node_modules/react/cjs/react.development.js","../node_modules/react/index.js","../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/crud-panel.tsx"],"sourcesContent":["//#region src/observable/observable.ts\nvar e = class {\n\tconstructor() {\n\t\tthis.subscribers = /* @__PURE__ */ new Set();\n\t}\n\tsubscribe(e) {\n\t\treturn this.subscribers.add(e), () => this.unsubscribe(e);\n\t}\n\tunsubscribe(e) {\n\t\tthis.subscribers.delete(e);\n\t}\n\tnotify(e) {\n\t\tthis.subscribers.forEach((t) => t(e));\n\t}\n\tget subscribersCount() {\n\t\treturn this.subscribers.size;\n\t}\n}, t = /* @__PURE__ */ new Uint8Array(16);\nfunction n() {\n\treturn crypto.getRandomValues(t);\n}\n//#endregion\n//#region node_modules/uuid/dist/stringify.js\nvar r = [];\nfor (let e = 0; e < 256; ++e) r.push((e + 256).toString(16).slice(1));\nfunction i(e, t = 0) {\n\treturn (r[e[t + 0]] + r[e[t + 1]] + r[e[t + 2]] + r[e[t + 3]] + \"-\" + r[e[t + 4]] + r[e[t + 5]] + \"-\" + r[e[t + 6]] + r[e[t + 7]] + \"-\" + r[e[t + 8]] + r[e[t + 9]] + \"-\" + r[e[t + 10]] + r[e[t + 11]] + r[e[t + 12]] + r[e[t + 13]] + r[e[t + 14]] + r[e[t + 15]]).toLowerCase();\n}\n//#endregion\n//#region node_modules/uuid/dist/v4.js\nfunction a(e, t, n) {\n\treturn !t && !e && crypto.randomUUID ? crypto.randomUUID() : o(e, t, n);\n}\nfunction o(e, t, r) {\n\te ||= {};\n\tlet a = e.random ?? e.rng?.() ?? n();\n\tif (a.length < 16) throw Error(\"Random bytes length must be >= 16\");\n\tif (a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, t) {\n\t\tif (r ||= 0, r < 0 || r + 16 > t.length) throw RangeError(`UUID byte range ${r}:${r + 15} is out of buffer bounds`);\n\t\tfor (let e = 0; e < 16; ++e) t[r + e] = a[e];\n\t\treturn t;\n\t}\n\treturn i(a);\n}\n//#endregion\n//#region \\0@oxc-project+runtime@0.137.0/helpers/esm/decorate.js\nfunction s(e, t, n, r) {\n\tvar i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;\n\tif (typeof Reflect == \"object\" && typeof Reflect.decorate == \"function\") a = Reflect.decorate(e, t, n, r);\n\telse for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);\n\treturn i > 3 && a && Object.defineProperty(t, n, a), a;\n}\n//#endregion\n//#region src/persistent/persistent.ts\nvar c = class e {\n\tstatic registerFactory(e, t, n, r = !1) {\n\t\tthis._factoryMap[e] = {\n\t\t\tfactory: t,\n\t\t\tannotation: n,\n\t\t\tisLegacy: r\n\t\t};\n\t}\n\tstatic classFactory(e) {\n\t\tif (!e) throw Error(\"You should provide a class name.\");\n\t\tif (!this._factoryMap[e]) throw Error(`You should register class ${e} prior to use.`);\n\t\treturn this._factoryMap[e].factory;\n\t}\n\tstatic registeredClasses() {\n\t\treturn Object.entries(this._factoryMap).filter(([, e]) => !e.isLegacy).map(([e]) => e);\n\t}\n\tstatic registeredClassesAndLegacyNames() {\n\t\treturn Object.keys(this._factoryMap);\n\t}\n\tstatic classesExtending(e) {\n\t\treturn Object.entries(this._factoryMap).filter(([, t]) => new t.factory() instanceof e && !t.isLegacy).map(([e]) => e);\n\t}\n\tstatic isInstanceOf(t, n) {\n\t\tlet r = e.classFactory(n);\n\t\treturn t instanceof e ? t instanceof r : e.createInstance(t) instanceof r;\n\t}\n\tstatic annotations(t) {\n\t\tif (t instanceof e ? t = t.className : typeof t == \"string\" || (t = new t().className), !this._factoryMap[t]) throw Error(`You should register class ${t} prior to use.`);\n\t\treturn this._factoryMap[t].annotation;\n\t}\n\tconstructor(e = a()) {\n\t\tthis._id = e;\n\t}\n\tget className() {\n\t\treturn this.__className;\n\t}\n\tsetId(e) {\n\t\tthis._id = e;\n\t}\n\tget id() {\n\t\treturn this._id;\n\t}\n\tafterDeserialize() {}\n\tbeforeSerialize() {}\n\tgetPersistentProperties() {\n\t\treturn this._persistentProperties ? this._persistentProperties.map((e) => ({\n\t\t\t...e,\n\t\t\tname: e.name.slice(1)\n\t\t})) : [];\n\t}\n\tgetPropInfo(e) {\n\t\tlet t = this.getPersistentProperties().find((t) => t.name === e);\n\t\tif (!t) throw Error(`Property \"${e}\" has not been registered.`);\n\t\treturn t;\n\t}\n\tisRequired(e) {\n\t\treturn this.getPropInfo(e).validator != null;\n\t}\n\tisPropValueValid(e) {\n\t\tlet t = this.getPropInfo(e);\n\t\treturn t.validator ? t.validator(this[t.name], t, this) : !0;\n\t}\n\tclone(e) {\n\t\tlet t = e.toObject();\n\t\treturn delete t.id, this.fromObject(t);\n\t}\n\tfromObject(e) {\n\t\treturn this.fromObj(e), this.afterDeserialize(), this;\n\t}\n\tfromObj(e) {\n\t\treturn this._persistentProperties && this._persistentProperties.forEach((t) => {\n\t\t\tlet n = e[this.removeUnderscore(t)];\n\t\t\tn != null && (this[t.name] = this.fromDeepObject(n));\n\t\t}), this;\n\t}\n\ttoObject() {\n\t\tlet e = {}, t = this.toObj(e);\n\t\treturn this.pushDocument(e, this.className, t), {\n\t\t\t...t,\n\t\t\t__rootCollections: e\n\t\t};\n\t}\n\ttoObj(t) {\n\t\tif (!this._persistentProperties) return {};\n\t\tthis.beforeSerialize();\n\t\tlet n = {};\n\t\tif (!this.className) throw Error(`You should register \\`${this.constructor.name || this.toString() || \"this\"}\\` class prior to streaming it.`);\n\t\treturn this._persistentProperties.forEach((r) => {\n\t\t\tlet i = this[r.name], a = this.removeUnderscore(r);\n\t\t\ti != null && (r.isReference ? n[a] = this.toReferenceObj(r, t) : n[a] = this.toDeepObj(i, t), r.searchableArray && (n[e.searchableArrayNameFor(a)] = i.map((e) => e.id)));\n\t\t}), n.__className = this.className, n;\n\t}\n\tstatic searchableArrayNameFor(e) {\n\t\treturn `__${e}_searchable`;\n\t}\n\tfromDeepObject(t) {\n\t\tif (t == null) return t;\n\t\tif (Array.isArray(t)) return t.map((e) => this.fromDeepObject(e));\n\t\tif (t.__documentReference) {\n\t\t\tlet n = t, r = e.createInstance(n);\n\t\t\treturn r.__documentReference = t.__documentReference, r;\n\t\t}\n\t\tif (t.__className) return e.createInstance(t);\n\t\tif (typeof t == \"object\") {\n\t\t\tlet e = {};\n\t\t\treturn Object.entries(t).forEach(([t, n]) => e[t] = this.fromDeepObject(n)), e;\n\t\t}\n\t\treturn t;\n\t}\n\ttoDeepObj(t, n) {\n\t\tif (t != null) {\n\t\t\tif (Array.isArray(t)) return t.map((e) => this.toDeepObj(e, n));\n\t\t\tif (t.__documentReference) return t;\n\t\t\tif (t instanceof e) return t.toObj(n);\n\t\t\tif (typeof t == \"object\") {\n\t\t\t\tlet e = {};\n\t\t\t\treturn Object.entries(t).forEach(([t, r]) => e[t] = this.toDeepObj(r, n)), e;\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t}\n\tstatic collectionPath(e, t, n) {\n\t\tlet r;\n\t\treturn r = typeof t.storeInCollection == \"function\" ? t.storeInCollection(e, t, n) : t.storeInCollection ?? e.className, r;\n\t}\n\ttoReferenceObj(t, n) {\n\t\tlet r = this[t.name];\n\t\treturn Array.isArray(r) ? r.map((r) => (t.isPureReference || this.pushDocument(n, e.collectionPath(r, t), r), this.buildRefObject(r, e.collectionPath(r, t), t.cachedProps))) : (t.isPureReference || this.pushDocument(n, e.collectionPath(r, t), r), this.buildRefObject(r, e.collectionPath(r, t), t.cachedProps));\n\t}\n\tbuildRefObject(e, t, n) {\n\t\tlet r = n?.reduce((t, n) => (e[n] !== void 0 && (t[n] = e[n]), t), {});\n\t\treturn {\n\t\t\tid: e.id,\n\t\t\t__className: e.className || e.__className,\n\t\t\t__documentReference: { storedInCollection: t },\n\t\t\t...r\n\t\t};\n\t}\n\tpushDocument(e, t, n) {\n\t\tif (\"__documentReference\" in n && n.__documentReference) return;\n\t\te[t] || (e[t] = []);\n\t\tlet r = this.toDeepObj(n, e);\n\t\te[t].push(r);\n\t}\n\tremoveUnderscore(e) {\n\t\treturn e.name.slice(1);\n\t}\n\tstatic createReference(t) {\n\t\tlet n = e.createInstance(t);\n\t\treturn n.__documentReference = t.__documentReference || { storedInCollection: n.className }, n;\n\t}\n\tstatic createInstance(t) {\n\t\tif (typeof t == \"string\") return new (e.classFactory(t))();\n\t\ttry {\n\t\t\treturn new (e.classFactory(t.__className))().fromObject(t);\n\t\t} catch (e) {\n\t\t\tlet n = Object.entries(t).filter(([e, t]) => t != null && typeof t != \"function\").map(([e, t]) => `${e}: ${t}`).join(\",\\n\t\");\n\t\t\tthrow Error(`${e}\\n-----> Class name not found in object:\\n{\\n\\t ${n} \\n}\\n`);\n\t\t}\n\t}\n\tstatic propInfo(t, n) {\n\t\treturn e.createInstance(t).getPropInfo(n);\n\t}\n\tstatic propType(t) {\n\t\tif (t.typeName) return Array.isArray(t.typeName) ? \"undefined[]\" : t.typeName ?? \"undefined\";\n\t\tlet n = e.createInstance(t.ownerClassName())[t.name];\n\t\tif (Array.isArray(n)) {\n\t\t\tif (n.length === 0) return \"undefined[]\";\n\t\t\tlet t = n[0];\n\t\t\treturn t instanceof e ? t.className + \"[]\" : typeof t + \"[]\";\n\t\t} else if (n instanceof e) return n.className;\n\t\telse return typeof n;\n\t}\n\tstatic getSystemRegisteredReferencesWithCachedProps() {\n\t\treturn e.registeredClasses().reduce((t, n) => {\n\t\t\tlet r = e.createInstance(n).getPersistentProperties().filter((e) => e.cachedProps);\n\t\t\treturn r.length > 0 && (t[n] = r), t;\n\t\t}, {});\n\t}\n\tstatic {\n\t\tthis._factoryMap = {};\n\t}\n};\ns([l], c.prototype, \"_id\", void 0);\nfunction l(e, t) {\n\treturn h()(e, t);\n}\nfunction u(e) {\n\treturn function(t, n) {\n\t\treturn h({\n\t\t\tstoreInCollection: e,\n\t\t\tisReference: !0\n\t\t})(t, n);\n\t};\n}\nfunction d(e, t) {\n\treturn h({ isReference: !0 })(e, t);\n}\nfunction f(e, t, n, r) {\n\treturn function(i, a) {\n\t\treturn h({\n\t\t\tisReference: !0,\n\t\t\tstoreInCollection: n,\n\t\t\ttypeName: t,\n\t\t\tcachedProps: e,\n\t\t\townerCollection: r ?? i.className\n\t\t})(i, a);\n\t};\n}\nfunction p(e, t, n) {\n\treturn h({\n\t\tisReference: !0,\n\t\tisPureReference: !0,\n\t\tstoreInCollection: n\n\t})(e, t);\n}\nfunction m(e, t, n, r) {\n\treturn function(i, a) {\n\t\treturn h({\n\t\t\tisReference: !0,\n\t\t\tisPureReference: !0,\n\t\t\tstoreInCollection: n,\n\t\t\townerCollection: r,\n\t\t\ttypeName: t,\n\t\t\tcachedProps: e\n\t\t})(i, a);\n\t};\n}\nfunction h(e) {\n\treturn function(t, n) {\n\t\tObject.getOwnPropertyDescriptor(t, \"_persistentProperties\") || (t._persistentProperties ? t._persistentProperties = [...t._persistentProperties] : t._persistentProperties = []);\n\t\tlet r = t._persistentProperties.find((e) => e.name === n);\n\t\tr ? Object.assign(r, e) : t._persistentProperties.push({\n\t\t\tname: n,\n\t\t\townerClassName: () => t.className,\n\t\t\t...e\n\t\t});\n\t};\n}\nfunction g(e, t) {\n\treturn (n) => {\n\t\tc.registerFactory(e, n, t), n.prototype.__className = e;\n\t};\n}\nfunction _(e) {\n\treturn (t) => {\n\t\tc.registerFactory(e, t, void 0, !0);\n\t};\n}\nfunction v(e, t) {\n\treturn h({ searchableArray: !0 })(e, t);\n}\nfunction y(e, t) {\n\treturn h({ validator: (e) => e != null })(e, t);\n}\nfunction b(e = (e) => e != null) {\n\treturn function(t, n) {\n\t\treturn h({ validator: e })(t, n);\n\t};\n}\nfunction x(e) {\n\tlet t;\n\treturn t = typeof e == \"function\" ? new e().className : e, function(e, n) {\n\t\treturn h({ typeName: t })(e, n);\n\t};\n}\n//#endregion\n//#region src/persistent/entropic-component.ts\nvar S = class extends c {\n\tconstructor(...t) {\n\t\tsuper(...t), this._onChange = new e();\n\t}\n\tonChange(e) {\n\t\treturn this._onChange.subscribe(e);\n\t}\n\tremoveOnChange(e) {\n\t\tthis._onChange.unsubscribe(e);\n\t}\n\tchangeProp(e, t) {\n\t\tlet n = \"_\" + String(e);\n\t\treturn this[n] === t ? !1 : (this[n] = t, this._onChange.notify({ [e]: t }), !0);\n\t}\n\tnotify(e) {\n\t\tthis._onChange.notify(e);\n\t}\n\tpushAndNotify(e, t, n) {\n\t\tlet r = \"_\" + String(e);\n\t\tif (!(n && this[r].find((e) => !n(e, t)))) return this[r].push(t), this.notify({ [e]: this[e] }), t;\n\t}\n\tremoveAndNotify(e, t, n) {\n\t\tlet r = \"_\" + String(e), i = this[r].length;\n\t\tif (this[r] = this[r].filter((e) => !n(e, t)), i !== this[r].length) return this.notify({ [e]: this[e] }), t;\n\t}\n}, C = class e {\n\tstatic {\n\t\tthis.error = {\n\t\t\tpersistentNeedForSubCollection: \"The document parameter for a sub-collection should be a Persistent instace\",\n\t\t\tinvalidQueryOrder: \"Cannot add where calls after or calls\"\n\t\t};\n\t}\n\tconstructor(t, n, r) {\n\t\tif (r) {\n\t\t\tif (!(n instanceof c)) throw Error(e.error.persistentNeedForSubCollection);\n\t\t\tthis.collectionName = `${n.className}/${n.id}/${r}`;\n\t\t} else this.collectionName = n instanceof c ? n.className : n;\n\t\tthis._stream = t;\n\t}\n\tfindById(e, t) {\n\t\treturn new Promise((n, r) => {\n\t\t\tthis._stream.findById(e, this.collectionName).then((e) => {\n\t\t\t\te ? (t ? t.fromObject(e) : t = c.createInstance(e), n(t)) : n(void 0);\n\t\t\t}).catch((e) => r(e));\n\t\t});\n\t}\n\tsave(e) {\n\t\tlet t = e.toObject();\n\t\treturn this.collectionName !== t.__className && (t.__rootCollections[this.collectionName] = t.__rootCollections[t.__className], delete t.__rootCollections[t.__className]), new Promise((e, n) => {\n\t\t\tthis._stream.save(t.__rootCollections).then(() => e()).catch((e) => n(e));\n\t\t});\n\t}\n\tdelete(e) {\n\t\treturn new Promise((t, n) => {\n\t\t\tthis._stream.delete(e, this.collectionName).then(() => t()).catch((e) => n(e));\n\t\t});\n\t}\n\tfind() {\n\t\treturn new w(this);\n\t}\n\tquery(e = {}, t) {\n\t\tif (t) {\n\t\t\tlet n = t instanceof c ? t.className : t;\n\t\t\te.operations ||= [], e.operations.push({\n\t\t\t\tproperty: \"__className\",\n\t\t\t\toperator: \"==\",\n\t\t\t\tvalue: n\n\t\t\t});\n\t\t}\n\t\treturn this.mapToInstance(() => this._stream.find(this.preprocessQueryObject(e), this.collectionName));\n\t}\n\tcount(e) {\n\t\treturn this._stream.count(e, this.collectionName);\n\t}\n\tnext(e) {\n\t\treturn this.mapToInstance(() => this._stream.next(e));\n\t}\n\tonDocumentChange(e, t) {\n\t\treturn this._stream.onDocumentChange(this.collectionName, e, (e) => t(D.toPersistentDocumentChange(e)));\n\t}\n\tonCollectionChange(e, t) {\n\t\treturn this._stream.onCollectionChange(this.preprocessQueryObject(e.getQueryObject()), this.collectionName, (e) => t(e.map((e) => D.toPersistentDocumentChange(e))));\n\t}\n\tonCollectionTemplateChange(e, t) {\n\t\treturn this._stream.onDocumentTemplateChange(e, (e) => t(D.toPersistentDocumentChange(e)));\n\t}\n\tmapToInstance(e) {\n\t\treturn new Promise((t, n) => {\n\t\t\te().then((e) => t(e.map((e) => c.createInstance(e)))).catch((e) => n(e));\n\t\t});\n\t}\n\tpreprocessQueryObject(e) {\n\t\tif (Object.values(e).length === 0) return e;\n\t\tlet t = e.operations?.map((e) => {\n\t\t\tlet t = e.value[0] ?? e.value;\n\t\t\treturn D.isArrayOperator(e.operator) && t instanceof c ? {\n\t\t\t\tproperty: c.searchableArrayNameFor(e.property),\n\t\t\t\toperator: e.operator,\n\t\t\t\tvalue: Array.isArray(e.value) ? e.value.map((e) => e.id) : t.id,\n\t\t\t\taggregate: e.aggregate\n\t\t\t} : {\n\t\t\t\tproperty: e.property,\n\t\t\t\toperator: e.operator,\n\t\t\t\tvalue: e.value instanceof c ? { id: e.value.id } : e.value,\n\t\t\t\taggregate: e.aggregate\n\t\t\t};\n\t\t}) ?? [];\n\t\treturn {\n\t\t\t...e,\n\t\t\toperations: t\n\t\t};\n\t}\n}, w = class {\n\tconstructor(e) {\n\t\tthis.queryObject = { operations: [] }, this.model = e;\n\t}\n\twhere(e, t, n, r) {\n\t\tif (this.queryObject.operations?.at(-1)?.aggregate && !r) throw Error(C.error.invalidQueryOrder);\n\t\treturn this.queryObject.operations?.push({\n\t\t\tproperty: e,\n\t\t\toperator: t,\n\t\t\tvalue: n,\n\t\t\taggregate: r\n\t\t}), this;\n\t}\n\twhereDeepProp(e, t, n, r) {\n\t\tif (this.queryObject.operations?.at(-1)?.aggregate && !r) throw Error(C.error.invalidQueryOrder);\n\t\tlet i = e.split(\".\"), a = {}, o = i.length > 1 ? a : n;\n\t\treturn i.slice(1).forEach((e, t) => {\n\t\t\ta[e] = t < i.length - 2 ? {} : n, a = a[e];\n\t\t}), this.queryObject.operations?.push({\n\t\t\tproperty: i[0],\n\t\t\toperator: t,\n\t\t\tvalue: o,\n\t\t\taggregate: r\n\t\t}), this;\n\t}\n\tand(e, t, n) {\n\t\treturn this.where(e, t, n);\n\t}\n\tandDeepProp(e, t, n) {\n\t\treturn this.whereDeepProp(e, t, n);\n\t}\n\tor(e, t, n) {\n\t\treturn this.where(e, t, n, !0);\n\t}\n\torDeepProp(e, t, n) {\n\t\treturn this.whereDeepProp(e, t, n, !0);\n\t}\n\tinstanceOf(e) {\n\t\tlet t = e instanceof c ? e.className : e;\n\t\treturn this.queryObject.operations?.push({\n\t\t\tproperty: \"__className\",\n\t\t\toperator: \"==\",\n\t\t\tvalue: t\n\t\t}), this;\n\t}\n\tget(e) {\n\t\treturn e && (this.queryObject.limit = e), this.model.query(this.queryObject);\n\t}\n\tlimit(e) {\n\t\treturn this.queryObject.limit = e, this;\n\t}\n\torderBy(e, t = \"asc\") {\n\t\treturn this.queryObject.sort = {\n\t\t\tpropertyName: e,\n\t\t\torder: t\n\t\t}, this;\n\t}\n\torderByDeepProp(e, t = \"asc\") {\n\t\treturn this.queryObject.sort = {\n\t\t\tpropertyName: e,\n\t\t\torder: t\n\t\t}, this;\n\t}\n\tcount() {\n\t\treturn this.model.count(this.queryObject);\n\t}\n\tgetQueryObject() {\n\t\treturn this.queryObject;\n\t}\n\tgetQueryModel() {\n\t\treturn this.model;\n\t}\n}, T = class e {\n\tconstructor() {}\n\tstatic {\n\t\tthis.error = { shouldBeRegistered: \"You should register a data source before using the data Store.\" };\n\t}\n\tstatic useDataSource(e) {\n\t\tthis._dataSource = e;\n\t}\n\tstatic get dataSource() {\n\t\treturn e._dataSource;\n\t}\n\tstatic getModel(t) {\n\t\tif (!e._dataSource) throw Error(this.error.shouldBeRegistered);\n\t\treturn new C(e._dataSource, t);\n\t}\n\tstatic getModelForSubCollection(t, n) {\n\t\tif (!e._dataSource) throw Error(this.error.shouldBeRegistered);\n\t\treturn new C(e._dataSource, t, n);\n\t}\n\tstatic async populate(e) {\n\t\tif (!e) return;\n\t\tlet t = async (e) => {\n\t\t\tlet t = e;\n\t\t\tif (!t.__documentReference) return e;\n\t\t\tlet n = await this.getModel(t.__documentReference.storedInCollection).findById(t.id, e);\n\t\t\treturn n && (n.__documentReference = void 0), n;\n\t\t};\n\t\treturn Array.isArray(e) ? (await Promise.all(e.map((e) => t(e)))).filter((e) => e) : t(e);\n\t}\n\tstatic isPopulated(e) {\n\t\treturn Array.isArray(e) ? e.reduce((e, t) => e && t.__documentReference === void 0, !0) : e.__documentReference === void 0;\n\t}\n}, E = class e {\n\tconstructor(e) {\n\t\tthis._resolveCollectionPaths = () => {\n\t\t\tthrow Error(\"The method collectionsMatchingTemplate has not been implemented in the concrete data source\");\n\t\t}, this._disabledChangeListeners = /* @__PURE__ */ new Set(), this._collectionsToWatch = {}, e && (this._beforeUpdateDocument = e.beforeUpdateDocument, this._afterUpdateDocument = e.afterUpdateDocument, this._afterDocumentChange = e.afterDocumentChange, this._beforeDocumentChange = e.beforeDocumentChange, this._beforeQueryOwnerCollection = e.beforeQueryOwnerCollection), this.installUpdaters();\n\t}\n\tinstallUpdaters() {\n\t\tlet e = c.getSystemRegisteredReferencesWithCachedProps();\n\t\tthis._collectionsToWatch = {}, Object.entries(e).forEach(([e, t]) => {\n\t\t\tt.forEach((t) => {\n\t\t\t\tt.typeName && (Array.isArray(t.typeName) ? t.typeName : [t?.typeName ?? e]).map((e) => c.collectionPath(c.createInstance(e), t)).forEach((e) => {\n\t\t\t\t\tthis._collectionsToWatch[e] || (this._collectionsToWatch[e] = []), this._collectionsToWatch[e].find((e) => e.name === t.name && e.ownerClassName() === t.ownerClassName()) || this._collectionsToWatch[e].push(t);\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\tset beforeDocumentChange(e) {\n\t\tthis._beforeDocumentChange = e;\n\t}\n\tset afterDocumentChange(e) {\n\t\tthis._afterDocumentChange = e;\n\t}\n\tset beforeUpdateDocument(e) {\n\t\tthis._beforeUpdateDocument = e;\n\t}\n\tset afterUpdateDocument(e) {\n\t\tthis._afterUpdateDocument = e;\n\t}\n\tset beforeQueryOwnerCollection(e) {\n\t\tthis._beforeQueryOwnerCollection = e;\n\t}\n\tset resolveCollectionPaths(e) {\n\t\tthis._resolveCollectionPaths = e;\n\t}\n\tget collectionsToWatch() {\n\t\treturn this._collectionsToWatch;\n\t}\n\tupdateProps(e, t) {\n\t\tlet n = this._collectionsToWatch[e];\n\t\treturn n ? this.onDocumentChange(t, n) : Promise.resolve();\n\t}\n\tasync onDocumentChange(t, n) {\n\t\tlet r = D.toPersistentDocumentChange(t);\n\t\tthis._beforeDocumentChange?.(r, n);\n\t\tlet i = {};\n\t\tt.type !== \"update\" || !r.before || r.after?.id && this._disabledChangeListeners.has(r.after?.id) || (await Promise.all(n.map(async (t) => {\n\t\t\tlet n = e.ownerCollectionPath(c.createInstance(t.ownerClassName()), t, r.params), a = await this._resolveCollectionPaths(n);\n\t\t\tawait Promise.all(a.map(async (e) => {\n\t\t\t\tlet n = T.getModel(e), a = n.find(), o = !1;\n\t\t\t\tt.cachedProps?.forEach((e) => {\n\t\t\t\t\tr.before[e] !== r.after[e] && (o = !0);\n\t\t\t\t}), o && (a = t.searchableArray ? a.where(t.name, \"contains\", r.before) : a.where(t.name, \"==\", r.before)), a = this._beforeQueryOwnerCollection?.(a) ?? a;\n\t\t\t\tlet s = await a.get();\n\t\t\t\treturn i[e] = {\n\t\t\t\t\ttotalDocumentsToUpdate: s.length,\n\t\t\t\t\tupdatedDocuments: [],\n\t\t\t\t\tdocumentsToUpdate: s.map((e) => e.name ?? e.id)\n\t\t\t\t}, Promise.all([s.map(async (a) => {\n\t\t\t\t\tlet o = !1;\n\t\t\t\t\tif (t.cachedProps?.forEach((e) => {\n\t\t\t\t\t\tr.before[e] !== r.after[e] && (o = !0);\n\t\t\t\t\t}), o) {\n\t\t\t\t\t\tif (t.searchableArray) {\n\t\t\t\t\t\t\tlet e = a[t.name].findIndex((e) => e.id === r.before.id);\n\t\t\t\t\t\t\ta[t.name][e] = r.after;\n\t\t\t\t\t\t} else a[`_${t.name}`] = r.after;\n\t\t\t\t\t\tthis._beforeUpdateDocument?.(a, t, r.after), this.disableChangeListener(a), await n.save(a), this.enableChangeListener(a), i[e]?.updatedDocuments.push(a.id), this._afterUpdateDocument?.(a, t, r.after);\n\t\t\t\t\t} else return Promise.resolve();\n\t\t\t\t})]);\n\t\t\t}));\n\t\t})), this._afterDocumentChange?.(i, n));\n\t}\n\tdisableChangeListener(e) {\n\t\tthis._disabledChangeListeners.add(e.id);\n\t}\n\tenableChangeListener(e) {\n\t\tthis._disabledChangeListeners.delete(e.id);\n\t}\n\tstatic ownerCollectionPath(e, t, n) {\n\t\tlet r;\n\t\treturn r = typeof t.ownerCollection == \"function\" ? t.ownerCollection(e, t, n) : t.ownerCollection ?? e.className, r;\n\t}\n}, D = class e {\n\tconstructor() {\n\t\tthis._cachedPropsUpdater = void 0;\n\t}\n\tinstallCachedPropsUpdater(e) {\n\t\treturn this._cachedPropsUpdater = new E(e), this._cachedPropsUpdater.resolveCollectionPaths = this.resolveCollectionPaths.bind(this), this._cachedPropsUpdater;\n\t}\n\tget cachedPropsUpdater() {\n\t\treturn this._cachedPropsUpdater;\n\t}\n\tstatic toPropertyPathOperations(t) {\n\t\treturn t ? t.map((t) => {\n\t\t\tif (e.isArrayOperator(t.operator) && t.value[0] instanceof c) return {\n\t\t\t\tproperty: c.searchableArrayNameFor(t.property),\n\t\t\t\toperator: t.operator,\n\t\t\t\tvalue: t.value.map((e) => e.id),\n\t\t\t\taggregate: t.aggregate\n\t\t\t};\n\t\t\tlet [n, r] = this.toPropertyPathValue(t.value);\n\t\t\treturn {\n\t\t\t\tproperty: `${String(t.property)}${n ? \".\" + n : \"\"}`,\n\t\t\t\toperator: t.operator,\n\t\t\t\tvalue: r,\n\t\t\t\taggregate: t.aggregate\n\t\t\t};\n\t\t}) : [];\n\t}\n\tstatic isArrayOperator(e) {\n\t\treturn e === \"containsAny\" || e === \"contains\";\n\t}\n\tstatic toPersistentDocumentChange(e) {\n\t\treturn {\n\t\t\t...e,\n\t\t\tbefore: e.before && c.createInstance(e.before),\n\t\t\tafter: e.after && c.createInstance(e.after)\n\t\t};\n\t}\n\tstatic toPropertyPathValue(e) {\n\t\tif (typeof e == \"object\" && !Array.isArray(e)) {\n\t\t\tlet t = Object.keys(e)[0], [n, r] = this.toPropertyPathValue(e[t]);\n\t\t\treturn [`${t}${n ? \".\" + n : \"\"}`, r];\n\t\t} else return [void 0, e];\n\t}\n\tstatic isStringMatchingTemplate(e, t) {\n\t\tlet n = e.split(\"/\"), r = t.split(\"/\");\n\t\tif (r.length > n.length) return !1;\n\t\tfor (let e = 0; e < r.length; e++) {\n\t\t\tlet t = n[e], i = r[e];\n\t\t\tif (!(t.startsWith(\"{\") && t.endsWith(\"}\") || t.startsWith(\"${\") && t.endsWith(\"}\")) && t !== i) return !1;\n\t\t}\n\t\tfor (let e = r.length; e < n.length; e++) {\n\t\t\tlet t = n[e];\n\t\t\tif (!(t.startsWith(\"{\") && t.endsWith(\"}\") || t.startsWith(\"${\") && t.endsWith(\"}\"))) return !1;\n\t\t}\n\t\treturn !0;\n\t}\n\tstatic extractTemplateParams(e, t) {\n\t\tlet n = t.split(\"/\"), r = e.split(\"/\"), i = {};\n\t\tif (r.length > n.length) return i;\n\t\tfor (let e = 0; e < r.length; e++) {\n\t\t\tlet t = n[e], a = r[e];\n\t\t\tif (t.startsWith(\"{\") && t.endsWith(\"}\")) i[t.slice(1, -1)] = a;\n\t\t\telse if (t.startsWith(\"${\") && t.endsWith(\"}\")) i[t.slice(2, -1)] = a;\n\t\t\telse if (t !== a) return {};\n\t\t}\n\t\tfor (let e = r.length; e < n.length; e++) {\n\t\t\tlet t = n[e];\n\t\t\tif (!(t.startsWith(\"{\") && t.endsWith(\"}\") || t.startsWith(\"${\") && t.endsWith(\"}\"))) return {};\n\t\t}\n\t\treturn i;\n\t}\n}, O = class extends D {\n\tconstructor(e) {\n\t\tsuper(), this._jsonRawData = {}, this._lastMatchingDocs = [], this._lastLimit = 0, this._cursor = 0, this._simulateDelay = 0, this._pendingPromises = [], this._documentListeners = {}, this._collectionListeners = {}, e && (this._jsonRawData = e);\n\t}\n\tsetDataStore(e) {\n\t\treturn this._jsonRawData = e, this;\n\t}\n\tsimulateDelay(e) {\n\t\treturn this._simulateDelay = e, this;\n\t}\n\tfindById(e, t) {\n\t\tif (this._simulateError?.findById) throw Error(this._simulateError.findById);\n\t\treturn this.resolveWithDelay(this._jsonRawData[t]?.[e]);\n\t}\n\tsave(e) {\n\t\tif (this._simulateError?.store) throw Error(this._simulateError.store);\n\t\treturn Object.entries(e).forEach(([e, t]) => {\n\t\t\tthis._jsonRawData[e] || (this._jsonRawData[e] = {}), t?.forEach((t) => {\n\t\t\t\tlet n = this._jsonRawData[e][t.id];\n\t\t\t\tthis._jsonRawData[e][t.id] = t, this.notifyChange(e, t, n);\n\t\t\t});\n\t\t}), this.resolveWithDelay();\n\t}\n\tfind(e, t) {\n\t\tif (this._simulateError?.find) throw Error(this._simulateError.find);\n\t\tlet n = Object.values(this._jsonRawData[t] || {});\n\t\treturn e ? (this._lastLimit = e.limit || 0, this._cursor = 0, this._lastMatchingDocs = Object.entries(e).reduce((e, [t, n]) => this.queryProcessor(e, t, n), Object.values(n)), this.resolveWithDelay(this._lastMatchingDocs.slice(0, e.limit))) : this.resolveWithDelay(n);\n\t}\n\tdelete(e, t) {\n\t\tif (this._simulateError?.delete) throw Error(this._simulateError.delete);\n\t\treturn delete this._jsonRawData[t][e], this.resolveWithDelay();\n\t}\n\tnext(e) {\n\t\treturn e && (this._lastLimit = e), this.incCursor(this._lastLimit), this.resolveWithDelay(this._lastMatchingDocs.slice(this._cursor, this._cursor + this._lastLimit));\n\t}\n\tcount(e, t) {\n\t\treturn this.resolveWithDelay(Object.keys(this._jsonRawData[t] ?? {}).length);\n\t}\n\tonCollectionChange(e, t, n) {\n\t\tlet r = this._collectionListeners[t];\n\t\tr ||= (this._collectionListeners[t] = {}, this._collectionListeners[t]);\n\t\tlet i = (t) => {\n\t\t\tif (!t.after) return;\n\t\t\tlet r = [t.after];\n\t\t\tt.before && r.push(t.before);\n\t\t\tlet i = this.retrieveQueryDocs(r, e.operations).filter((e, t, n) => t === n.findIndex((t) => t.id === e.id));\n\t\t\ti.length > 0 && n(i.map((e) => ({\n\t\t\t\tbefore: t.before,\n\t\t\t\tafter: e,\n\t\t\t\ttype: t.type,\n\t\t\t\tparams: t.params\n\t\t\t})));\n\t\t}, a = Math.random().toString(36).substring(2, 9);\n\t\treturn r[a] = i, () => delete r[a];\n\t}\n\tonDocumentChange(e, t, n) {\n\t\tlet r = this._documentListeners[e];\n\t\tr ||= (this._documentListeners[e] = {}, this._documentListeners[e]);\n\t\tlet i = (e) => {\n\t\t\te.after && e.after.id === t && n(e);\n\t\t}, a = Math.random().toString(36).substring(2, 9);\n\t\treturn r[a] = i, () => delete r[a];\n\t}\n\tonDocumentTemplateChange(e, t) {\n\t\tlet n = this.collectionsMatchingTemplate(e), r = [];\n\t\treturn n.forEach((n) => {\n\t\t\tlet i = this._documentListeners[n];\n\t\t\ti ||= (this._documentListeners[n] = {}, this._documentListeners[n]);\n\t\t\tlet a = (r) => {\n\t\t\t\tr.params = D.extractTemplateParams(n, e), t(r);\n\t\t\t}, o = Math.random().toString(36).substring(2, 9);\n\t\t\ti[o] = a, r.push(() => delete i[o]);\n\t\t}), () => r.forEach((e) => e());\n\t}\n\tget rawData() {\n\t\treturn this._jsonRawData;\n\t}\n\twait() {\n\t\treturn Promise.all([...this._pendingPromises]);\n\t}\n\tincCursor(e) {\n\t\tthis._cursor += e, this._cursor > this._lastMatchingDocs.length && (this._cursor = this._lastMatchingDocs.length);\n\t}\n\tsimulateError(e) {\n\t\treturn e === void 0 ? (this._simulateError = void 0, this) : (typeof e == \"string\" ? this._simulateError = {\n\t\t\tstore: e,\n\t\t\tfind: e,\n\t\t\tfindById: e,\n\t\t\tdelete: e\n\t\t} : this._simulateError = e, this);\n\t}\n\tnotifyChange(e, t, n) {\n\t\tlet r = {\n\t\t\tbefore: n,\n\t\t\tafter: t,\n\t\t\tcollectionPath: e,\n\t\t\tparams: {},\n\t\t\ttype: n ? \"update\" : \"create\"\n\t\t};\n\t\tObject.values(this._documentListeners[e] ?? {}).forEach((e) => e(r)), Object.values(this._collectionListeners[e] ?? {}).forEach((e) => e(r));\n\t}\n\tdecCursor(e) {\n\t\treturn this._cursor -= e, this._cursor < 0 ? (this._cursor = 0, !0) : !1;\n\t}\n\tqueryProcessor(e, t, n) {\n\t\treturn {\n\t\t\tlimit: (t) => e,\n\t\t\toperations: (t) => this.retrieveQueryDocs(e, t),\n\t\t\tsort: ({ order: t, propertyName: n }) => e.sort((e, r) => {\n\t\t\t\tlet i = this.deepValue(e, n), a = this.deepValue(r, n);\n\t\t\t\treturn t === \"asc\" ? i > a ? 1 : -1 : i < a ? 1 : -1;\n\t\t\t})\n\t\t}[t](n);\n\t}\n\tretrieveQueryDocs(e, t) {\n\t\treturn t.reduce((t, n, r) => {\n\t\t\tif (n.aggregate) {\n\t\t\t\tlet i = e.filter((e) => this.isQueryMatched(e, n));\n\t\t\t\treturn r === 0 ? i : t.concat(i);\n\t\t\t} else return t.filter((e) => this.isQueryMatched(e, n));\n\t\t}, e);\n\t}\n\tdeepValue(e, t) {\n\t\treturn t.split(\".\").reduce((e, t) => e[t], e);\n\t}\n\tisQueryMatched(e, t) {\n\t\tlet n = {\n\t\t\t\"==\": (e, t) => e === t,\n\t\t\t\"!=\": (e, t) => e !== t,\n\t\t\t\"<\": (e, t) => e < t,\n\t\t\t\"<=\": (e, t) => e <= t,\n\t\t\t\">\": (e, t) => e > t,\n\t\t\t\">=\": (e, t) => e >= t,\n\t\t\tcontainsAny: (e, t) => e?.some((e) => t?.includes(e)),\n\t\t\tcontains: (e, t) => e?.includes(t)\n\t\t}, { property: r, value: i, operator: a } = t, [o, s] = this.retrieveValuesToCompare(e, r, i);\n\t\treturn n[a](o, s);\n\t}\n\tretrieveValuesToCompare(e, t, n) {\n\t\tlet r = e[t];\n\t\tif (r && typeof n == \"object\" && !Array.isArray(n)) {\n\t\t\tlet e = Object.keys(n)[0];\n\t\t\tvar [i, a] = this.retrieveValuesToCompare(r, e, n?.[e]);\n\t\t}\n\t\treturn [i || r, a || n];\n\t}\n\tresolveWithDelay(e) {\n\t\tif (this._simulateDelay <= 0) return Promise.resolve(e);\n\t\tlet t = new Promise((t) => {\n\t\t\tsetTimeout(() => t(e), this._simulateDelay);\n\t\t});\n\t\treturn this._pendingPromises.push(t), t.finally(() => this._pendingPromises = this._pendingPromises.filter((e) => e === t)), t;\n\t}\n\tresolveCollectionPaths(e) {\n\t\treturn Promise.resolve(this.collectionsMatchingTemplate(e));\n\t}\n\tcollectionsMatchingTemplate(e) {\n\t\treturn Object.keys(this._jsonRawData).filter((t) => D.isStringMatchingTemplate(e, t));\n\t}\n}, k = class e {\n\tstatic registerCloudStorage(t, n) {\n\t\te._cloudStorageFactoryMap[t] = n;\n\t}\n\tstatic createInstance(t) {\n\t\tlet n = e._cloudStorageFactoryMap[t];\n\t\tif (!n) throw Error(`You should register the ${t} cloud storage provider prior to use it`);\n\t\treturn n();\n\t}\n\tget className() {\n\t\treturn this.__className;\n\t}\n\tstatic useCloudStorage(t) {\n\t\te._defaultCloudStorage = t;\n\t}\n\tstatic get defaultCloudStorage() {\n\t\tif (!e._defaultCloudStorage) throw Error(\"You should define a default cloud storage provider prior to use it\");\n\t\treturn e._defaultCloudStorage;\n\t}\n\tstatic {\n\t\tthis._cloudStorageFactoryMap = {};\n\t}\n};\nfunction A(e, t) {\n\treturn k.registerCloudStorage(e, t), (t) => {\n\t\tt.prototype.__className = e;\n\t};\n}\n//#endregion\n//#region src/cloud-storage/mock-cloud-storage.ts\nvar j = class extends k {\n\tconstructor(e = \"\") {\n\t\tsuper(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles = e;\n\t}\n\tsimulateDelay(e) {\n\t\treturn this._simulateDelay = e, this;\n\t}\n\tresolveWithDelay(e) {\n\t\tif (this._simulateDelay <= 0) return Promise.resolve(e);\n\t\tlet t = new Promise((t) => {\n\t\t\tsetTimeout(() => t(e), this._simulateDelay);\n\t\t});\n\t\treturn this._pendingPromises.push(t), t.finally(() => this._pendingPromises = this._pendingPromises.filter((e) => e === t)), t;\n\t}\n\tsave(e, t) {\n\t\tlet n = e;\n\t\tthis._onProgress && this._onProgress(0, 100), this.mockFileSystem[e] = JSON.stringify(t), this._onProgress && this._onProgress(100, 100);\n\t\tlet r = t instanceof File ? t.name : n;\n\t\treturn this.resolveWithDelay(r);\n\t}\n\tuploadControl() {\n\t\treturn {\n\t\t\tresume: () => {},\n\t\t\tpause: () => {},\n\t\t\tcancel: () => {},\n\t\t\tonProgress: (e) => this._onProgress = e\n\t\t};\n\t}\n\tgetUrl(e) {\n\t\treturn Promise.resolve(this._pathToMockFiles + e);\n\t}\n\tdelete(e) {\n\t\treturn delete this.mockFileSystem[e], this.resolveWithDelay();\n\t}\n};\nj = s([A(\"MockCloudStorage\", () => new j())], j);\n//#endregion\n//#region src/cloud-storage/stored-file.ts\nvar M = /* @__PURE__ */ function(e) {\n\treturn e[e.stored = 0] = \"stored\", e[e.pendingDataSet = 1] = \"pendingDataSet\", e[e.deleted = 2] = \"deleted\", e;\n}({}), N = class extends c {\n\tconstructor(...t) {\n\t\tsuper(...t), this._onChange = new e();\n\t}\n\tasync save({ data: e, fileName: t, progress: n, cloudStorageProvider: r } = {}) {\n\t\tlet i = e || this._pendingData;\n\t\ti && (this._reference && await this.delete(), this.provider = r || k.defaultCloudStorage, this._originalFileName = t || (i instanceof File ? i.name : void 0), this._reference = await this.provider.save(this.id, i, n), this._url = await this.provider.getUrl(this._reference), this._pendingData = void 0, this._onChange.notify({\n\t\t\tevent: 0,\n\t\t\tstoredFile: this\n\t\t}));\n\t}\n\tuploadControl() {\n\t\treturn this.provider.uploadControl();\n\t}\n\tasync delete() {\n\t\tif (!this._reference) throw Error(\"Cannot delete a not stored file\");\n\t\tawait this.provider.delete(this._reference), this._reference = void 0, this._url = void 0, this._onChange.notify({\n\t\t\tevent: 2,\n\t\t\tstoredFile: this\n\t\t});\n\t}\n\tset provider(e) {\n\t\tthis._provider = e, this._cloudStorageProviderName = e.className;\n\t}\n\tget provider() {\n\t\tif (!this._provider) try {\n\t\t\tthis._provider = k.createInstance(this._cloudStorageProviderName);\n\t\t} catch {\n\t\t\tthis._provider = k.defaultCloudStorage;\n\t\t}\n\t\treturn this._provider;\n\t}\n\tget url() {\n\t\treturn this._url;\n\t}\n\tget mimeType() {\n\t\treturn this._mimeType;\n\t}\n\tsetDataToStore(e) {\n\t\treturn this._pendingData = e, this._originalFileName = e instanceof File ? e.name : void 0, this._mimeType = e instanceof Blob ? e.type : void 0, this._onChange.notify({\n\t\t\tevent: 1,\n\t\t\tpendingData: e,\n\t\t\tstoredFile: this\n\t\t}), this;\n\t}\n\tget originalFileName() {\n\t\treturn this._originalFileName;\n\t}\n\tonChange(e) {\n\t\treturn this._onChange.subscribe(e);\n\t}\n};\ns([l], N.prototype, \"_reference\", void 0), s([l], N.prototype, \"_url\", void 0), s([l], N.prototype, \"_cloudStorageProviderName\", void 0), s([l], N.prototype, \"_originalFileName\", void 0), s([l], N.prototype, \"_mimeType\", void 0), N = s([g(\"StoredFile\")], N);\n//#endregion\n//#region src/auth/auth.ts\nvar P = class {}, F = class t extends P {\n\tstatic {\n\t\tthis.error = { shouldBeRegistered: \"You should register an auth service before using Auth.\" };\n\t}\n\tconstructor() {\n\t\tif (super(), this._onAuthStateChange = new e(), !t._authService) throw Error(t.error.shouldBeRegistered);\n\t\tt._authService.onAuthStateChange((e) => this.authStateChanged(e));\n\t}\n\tstatic useAuthService(e) {\n\t\tt._authService != e && (t._authService = e, this._instance = void 0);\n\t}\n\tstatic get instance() {\n\t\treturn this._instance ||= new this();\n\t}\n\tsignUp(e) {\n\t\treturn t._authService.signUp(e);\n\t}\n\tlogin(e) {\n\t\treturn t._authService.login(e);\n\t}\n\tlogout() {\n\t\treturn t._authService.logout();\n\t}\n\tresetEmailPassword(e) {\n\t\treturn t._authService.resetEmailPassword(e);\n\t}\n\tresendVerificationEmail(e, n, r) {\n\t\treturn t._authService.resendVerificationEmail(e, n, r);\n\t}\n\trefreshToken() {\n\t\treturn t._authService.refreshToken();\n\t}\n\tonAuthStateChange(e) {\n\t\treturn this._onAuthStateChange.subscribe(e);\n\t}\n\tremoveAuthStateChange(e) {\n\t\tthis._onAuthStateChange.unsubscribe(e);\n\t}\n\tlinkAdditionalProvider(e) {\n\t\treturn t._authService.linkAdditionalProvider(e);\n\t}\n\tunlinkProvider(e) {\n\t\treturn t._authService.unlinkProvider(e);\n\t}\n\tauthStateChanged(e) {\n\t\tthis._onAuthStateChange.notify(e);\n\t}\n\tstatic {\n\t\tthis._instance = void 0;\n\t}\n}, I = class extends P {\n\tconstructor(...e) {\n\t\tsuper(...e), this.pendingPromises = [], this._fakeRegisteredUsers = {};\n\t}\n\tsignUp(e) {\n\t\tlet { verificationLink: t, email: n, password: r, authProvider: i } = e, a = new Promise(async (a, o) => {\n\t\t\ti === \"email\" && (n || o({\n\t\t\t\tcode: \"missingEmail\",\n\t\t\t\tmessage: \"missingEmail\"\n\t\t\t}), r || o({\n\t\t\t\tcode: \"missingPassword\",\n\t\t\t\tmessage: \"missingPassword\"\n\t\t\t})), r !== \"fail\" && n !== \"fail\" ? (this._loggedUser = this.userCredentials(e), this._fakeRegisteredUsers[this._loggedUser.id] = this._loggedUser, a(this._loggedUser), this.notifyChange?.(this._loggedUser)) : (o({\n\t\t\t\tcode: \"userNotFound\",\n\t\t\t\tmessage: t || \"Test auth error\"\n\t\t\t}), this.notifyChange?.(void 0));\n\t\t});\n\t\treturn this.pendingPromises.push(a), a;\n\t}\n\tlogin(e) {\n\t\tlet t = Object.values(this._fakeRegisteredUsers).find((t) => t.email === e.email);\n\t\treturn e.authProvider === \"email\" && !t && e.email && (e.email = \"fail\"), this.signUp(e);\n\t}\n\tonAuthStateChange(e) {\n\t\tthis.notifyChange = e, this.notifyChange(this._loggedUser);\n\t}\n\tasync logout() {\n\t\tlet e = new Promise((e) => {\n\t\t\tthis._loggedUser = void 0, e(), this.notifyChange?.(void 0);\n\t\t});\n\t\treturn this.pendingPromises.push(e), e;\n\t}\n\tresetEmailPassword(e) {\n\t\treturn Object.values(this._fakeRegisteredUsers).find((t) => t.email === e) ? Promise.resolve() : Promise.reject({\n\t\t\tcode: \"userNotFound\",\n\t\t\tmessage: \"Test auth error\"\n\t\t});\n\t}\n\tresendVerificationEmail(e, t, n) {\n\t\treturn Object.values(this._fakeRegisteredUsers).find((t) => t.email === e) ? Promise.resolve() : Promise.reject({\n\t\t\tcode: \"userNotFound\",\n\t\t\tmessage: \"Test auth error\"\n\t\t});\n\t}\n\trefreshToken() {\n\t\treturn Promise.resolve();\n\t}\n\tlinkAdditionalProvider(e) {\n\t\tthrow Error(\"Not implemented.\");\n\t}\n\tunlinkProvider(e) {\n\t\tthrow Error(\"Not implemented.\");\n\t}\n\tasync flush() {\n\t\tawait Promise.all(this.pendingPromises), this.pendingPromises = [];\n\t}\n\tfakeRegisteredUser(e) {\n\t\tif (this._fakeRegisteredUsers[e.id]) throw Error(`User with id ${e.id} already exists in fake user list`);\n\t\treturn this._fakeRegisteredUsers[e.id] = e, this;\n\t}\n\tget fakeRegisteredUsers() {\n\t\treturn this._fakeRegisteredUsers;\n\t}\n\tuserCredentials(e) {\n\t\tlet t = Object.values(this._fakeRegisteredUsers).find((t) => t.email === e.email);\n\t\treturn t ? { ...t } : {\n\t\t\tid: e.authProvider || `testUID${e.email ? \"-\" + e.email : \"\"}`,\n\t\t\temail: e.email || \"testEmail\",\n\t\t\tname: e.authProvider || `testName${e.email ? \" \" + e.email : \"\"}`,\n\t\t\tphoneNumber: \"testPhone\",\n\t\t\tcustomData: { role: \"test\" },\n\t\t\tlastLogin: 0,\n\t\t\tcreationDate: 0\n\t\t};\n\t}\n}, L = class e {\n\tconstructor() {}\n\tstatic {\n\t\tthis.error = { shouldBeRegistered: \"You should register a cloud functions service with useCloudFunctionsService static method before using CloudFunctions.\" };\n\t}\n\tstatic useCloudFunctionsService(e) {\n\t\tthis._cloudFunctionsService != e && (this._cloudFunctionsService = e);\n\t}\n\tstatic get instance() {\n\t\tif (!this._cloudFunctionsService) throw Error(e.error.shouldBeRegistered);\n\t\treturn e._instance ||= new e();\n\t}\n\tgetRawFunction(t) {\n\t\treturn e._cloudFunctionsService.retrieveFunction(t);\n\t}\n\tgetFunction(t) {\n\t\tlet n = e._cloudFunctionsService.callFunction, r = this.getRawFunction(t);\n\t\treturn async (e) => {\n\t\t\tlet t = await n(r, this.processParam(e));\n\t\t\treturn this.processResult(t);\n\t\t};\n\t}\n\tprocessParam(e) {\n\t\tif (e != null) return e instanceof c ? e.toObject() : Array.isArray(e) ? e.map((e) => this.processParam(e)) : typeof e == \"object\" ? Object.entries(e).reduce((e, [t, n]) => (e[t] = this.processParam(n), e), {}) : e;\n\t}\n\tprocessResult(e) {\n\t\tif (e != null) return e.__className ? c.createInstance(e) : Array.isArray(e) ? e.map((e) => this.processResult(e)) : typeof e == \"object\" ? Object.entries(e).reduce((e, [t, n]) => (e[t] = this.processResult(n), e), {}) : e;\n\t}\n}, R = class {\n\tconstructor(e) {\n\t\tthis._registeredFunctions = e;\n\t}\n\tretrieveFunction(e) {\n\t\tlet t = this._registeredFunctions[e];\n\t\tif (!t) throw Error(`Cloud function ${e} is not registered.`);\n\t\treturn t;\n\t}\n\tcallFunction(e, t) {\n\t\treturn e(t);\n\t}\n}, z = class {}, B = class e extends z {\n\tstatic {\n\t\tthis.error = { shouldBeRegistered: \"You should register a Server Auth service before using the Server Auth.\" };\n\t}\n\tconstructor() {\n\t\tsuper();\n\t}\n\tstatic useServerAuthService(t) {\n\t\te._authService != t && (e._authService = t, this._instance = void 0);\n\t}\n\tstatic get instance() {\n\t\tif (!e._authService) throw Error(e.error.shouldBeRegistered);\n\t\treturn this._instance ||= new e();\n\t}\n\tgetUser(t) {\n\t\treturn e._authService.getUser(t);\n\t}\n\tupdateUser(t, n) {\n\t\treturn e._authService.updateUser(t, n);\n\t}\n\tsetCustomCredentials(t, n) {\n\t\treturn e._authService.setCustomCredentials(t, n);\n\t}\n\tdeleteUser(t) {\n\t\treturn e._authService.deleteUser(t);\n\t}\n\tstatic {\n\t\tthis._instance = void 0;\n\t}\n}, V = class extends z {\n\tconstructor(e) {\n\t\tsuper(), this._userCredentials = e;\n\t}\n\tgetUser(e) {\n\t\treturn this._userCredentials[e] || Promise.resolve(void 0), Promise.resolve(this._userCredentials[e]);\n\t}\n\tsetCustomCredentials(e, t) {\n\t\tlet n = this._userCredentials[e];\n\t\tif (!n) throw Error(`User ${e} not found in the auth system`);\n\t\treturn n.customData = { ...t }, Promise.resolve();\n\t}\n\tupdateUser(e, t) {\n\t\treturn this._userCredentials[e] = {\n\t\t\t...this._userCredentials,\n\t\t\t...t,\n\t\t\tid: e\n\t\t}, Promise.resolve(this._userCredentials[e]);\n\t}\n\tdeleteUser(e) {\n\t\treturn delete this._userCredentials[e], Promise.resolve();\n\t}\n\tget userCredentials() {\n\t\treturn this._userCredentials;\n\t}\n};\n//#endregion\n//#region src/utils/utils.ts\nfunction H(e, t) {\n\treturn e ? e.replace(/\\${\\s*(\\w*)\\s*}/g, function(e, n) {\n\t\treturn t[n] || \"\";\n\t}) : \"\";\n}\nfunction U(e) {\n\treturn e ? e.replace(/([-_ ][\\w])/g, (e) => e.toUpperCase().replace(\"-\", \"\").replace(\"_\", \"\").replace(\" \", \"\")) : \"\";\n}\nfunction W(e, t = \"-\") {\n\tif (!e) return \"\";\n\tlet n = e.slice(1).replace(/( |[A-Z])/g, (e) => e === \" \" ? \"-\" : t + e[0].toLowerCase());\n\treturn e[0].toLocaleLowerCase() + n.replace(/--/g, \"-\");\n}\nfunction G(e, t) {\n\treturn t.split(\".\").reduce((e, t) => e[t], e);\n}\n//#endregion\nexport { F as Auth, I as AuthMock, P as AuthService, L as CloudFunctions, R as CloudFunctionsMock, k as CloudStorage, D as DataSource, S as EntropicComponent, O as JsonDataSource, j as MockCloudStorage, C as Model, e as Observable, c as Persistent, w as Query, B as ServerAuth, V as ServerAuthMock, z as ServerAuthService, T as Store, N as StoredFile, M as StoredFileEvent, U as camelCase, G as getDeepValue, l as persistent, h as persistentParser, p as persistentPureReference, m as persistentPureReferenceWithCachedProps, d as persistentReference, u as persistentReferenceAt, f as persistentReferenceWithCachedProps, A as registerCloudStorage, _ as registerLegacyClassName, g as registerPersistentClass, H as replaceValue, y as required, b as requiredWithValidator, v as searchableArray, W as snakeCase, x as typeName };\n\n//# sourceMappingURL=entropic-bond.js.map","import { Callback, Observable } from 'entropic-bond'\n\ninterface ProgressStage {\n\tname: string\n\tprogress: number\n\ttotal: number\n}\n\ninterface ProgressStageCollection {\n\t[ stageName: string ]: ProgressStage\n}\n\nexport interface ProgressEvent {\n\tbusy: boolean\n\tstages: ProgressStageCollection\n\toverallProgress: number\n}\n\nexport class ProgressController {\n\tnotifyBusy( busy: boolean, name?: string ) {\n\t\tthis.pushStage({\n\t\t\tname: name ?? '', progress: busy? 0 : 1, total: 1\n\t\t})\n\t}\n\n\tpushStage( stage: ProgressStage ) {\n\t\tthis._stages[ stage.name ] = stage\n\n\t\tconst overallProgress = Object.values( this._stages ).reduce( (prev, stage, _i, arr )=>{\n\t\t\treturn prev + stage.progress / stage.total / arr.length\n\t\t}, 0)\n\t\t\n\t\tthis._onProgress.notify({\n\t\t\tbusy: overallProgress < 1,\n\t\t\toverallProgress,\n\t\t\tstages: this._stages\n\t\t})\n\n\t\tif ( overallProgress >= 1 ) this._stages = {}\n\t\tif ( this.debug ) console.log( `ProgressController ${ stage.name }: Progress: ${ stage.progress } Stages: ${ stage.total }` )\n\t}\n\n\tonProgress( cb: Callback<ProgressEvent> ) {\n\t\treturn this._onProgress.subscribe( cb )\n\t}\n\n\tset debug( value: boolean ) {\n\t\tthis._debug = value\n\t}\n\t\n\tget debug(): boolean {\n\t\treturn this._debug\n\t}\n\t\n\tprivate _debug: boolean = false\n\tprivate _stages: ProgressStageCollection = {}\n\tprivate _onProgress: Observable<ProgressEvent> = new Observable<ProgressEvent>()\n}","import { Callback, ClassPropNames, EntropicComponent, Model, Observable, PropChangeEvent, Unsubscriber, Query } from 'entropic-bond'\nimport { ProgressController, ProgressEvent } from './progress-controller'\n\ntype CrudControllerAction = 'saved' | 'deleted' | 'populated' | 'filterChange'\n\nexport interface CrudControllerEvent<T extends EntropicComponent> {\n\tdocumentProps?: PropChangeEvent<T> \n\tdocumentChanged?: T\n\tdocumentCollection?: T[]\n\taction?: CrudControllerAction\n\t/** deprecated */\terror?: Error \n}\n\ninterface GlobalValidator<T extends EntropicComponent> {\n\tfunc: ( document: T ) => boolean\n\terrorMessage?: string\n}\n\ntype ValidatorFunction<V> = ( value: V ) => boolean \ntype ValidatorCollection<T extends EntropicComponent> = {\n\t[ prop in ClassPropNames<T> ]: {\n\t\tfunc: ValidatorFunction<T[prop]>\n\t\terrorMessage?: string\n\t}\n}\n\nexport abstract class CrudController<T extends EntropicComponent> {\n\tstatic readonly errorMessages = {\n\t\tmissedDocument: 'No document to save',\n\t}\n\n\tconstructor( document?: T ) {\n\t\tthis.setDocument( document || this.createDocument() )\n\t}\n\n\tprotected abstract createDocument(): T \n\tprotected abstract getModel(): Model<T> \n\t\n\tallRequiredPropertiesFilled(): boolean {\n\t\treturn this.nonFilledRequiredProperties.length <= 0 && this.validateGlobal()\n\t}\n\n\tget nonFilledRequiredProperties(): ClassPropNames<T>[] {\n\t\treturn this.requiredProperties.filter( prop => this.validateProp( prop ))\n\t}\n\n\tget requiredProperties(): ClassPropNames<T>[] {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\n\t\tconst decoratorDeclared = this.document.getPersistentProperties()\n\t\t\t.filter( prop => this.document.isRequired( prop.name as ClassPropNames<T> ) )\n\t\t\t.map( prop => prop.name )\n\n\t\tconst uniqueValues = new Set( decoratorDeclared.concat( Object.keys( this.validator )))\n\t\treturn [ ...uniqueValues ] as ClassPropNames<T>[]\n\t}\n\n\taddValidator<P extends ClassPropNames<T>>( prop: P, validatorFn: ValidatorFunction<T[P]>, errorMessage?: string ) {\n\t\tthis.validator[ prop ] = {\n\t\t\tfunc: validatorFn,\n\t\t\terrorMessage\n\t\t}\n\t}\n\n\tremoveValidator( prop: ClassPropNames<T> ) {\n\t\tdelete this.validator[ prop ]\n\t}\n\n\taddGlobalValidator( validatorFn: ValidatorFunction<T>, errorMessage?: string ) {\n\t\tthis.globalValidator = {\n\t\t\tfunc: validatorFn,\n\t\t\terrorMessage\n\t\t}\n\t}\n\n\tremoveGlobalValidator() {\n\t\tthis.globalValidator = undefined\n\t}\n\n\tfailedValidationError( prop?: ClassPropNames<T> ): string | undefined {\n\t\tif ( prop ) return this.validator[ prop ]?.errorMessage\n\n\t\tconst nonFilledProperty = this.nonFilledRequiredProperties[0]\n\t\tif ( nonFilledProperty ) return this.validator[ nonFilledProperty ]?.errorMessage\n\t\tif ( !this.validateGlobal() ) return this.globalValidator?.errorMessage\n\t}\n\n\tprivate validateProp( prop: ClassPropNames<T> ): boolean {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\n\t\tconst propVal = this.document[ prop ]\n\n\t\tif ( this.validator[ prop ] ) return !this.validator[ prop ].func( propVal )\n\t\treturn !this.document.isPropValueValid( prop )\n\t}\n\n\tprivate validateGlobal(): boolean {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\n\t\tif ( this.globalValidator ) return this.globalValidator.func( this.document )\n\t\telse return true\n\t}\n\n\tprotected storeDoc(): Promise<void> {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\t\treturn this.model.save( this.document )\n\t}\n\n\tprotected deleteDoc(): Promise<void> {\n\t\tif ( !this.document ) throw new Error( CrudController.errorMessages.missedDocument )\n\t\treturn this.model.delete( this.document.id )\n\t}\n\n\t/**\n\t * Override this method to customize the query used to retrieve the documents \n\t * in the documentCollection method. This is the default method used by \n\t * the documentCollection method. If the findDocs method is overridden and returns\n\t * non undefined value, then this queryDocs method will not be used.\n\t * \n\t * @param limit the maximum number of documents to retrieve\n\t * @returns a query to retrieve the documents\n\t * @see documentCollection\n\t * @see findDocs\n\t */\n\tprotected queryDocs( limit?: number ): Query<T> {\n\t\tlet query = this.model.find()\n\n\t\tif ( limit ) query = query.limit( limit )\n\n\t\treturn query\n\t}\n\n\t/**\n\t * Override this method to customize the query used to retrieve the documents \n\t * in the documentCollection method. The default method called by the \n\t * documentCollection method is the queryDocs method. If this findDocs method \n\t * returns a non undefined value, then this method will be used instead of the\n\t * queryDocs method.\n\t * \n\t * @param limit the maximum number of documents to retrieve\n\t * @returns a query to retrieve the documents\n\t * @see documentCollection\n\t * @see queryDocs\n\t */\n\tprotected findDocs( limit?: number ): Promise<T[]> | undefined {\n\t\treturn undefined\n\t}\n\n\t/**\n\t * Sets a filter function to filter in memory the documents returned by the `documentCollection` method.\n\t * \n\t * @param filter the filter function\n\t * @returns the controller itself\n\t */\n\tasync setFilter( filter: ( document: T ) => boolean ) {\n\t\tthis._filter = filter\n\t\tthis.onChangeHdl.notify({ action: 'filterChange' })\n\t\treturn this\n\t}\n\n\t/**\n\t * Removes the filter function set by the `setFilter` method.\n\t * @returns the controller itself\n\t */\n\tresetFilter() {\n\t\tthis._filter = undefined\n\t\tthis.onChangeHdl.notify({ action: 'filterChange' })\n\t\treturn this\n\t}\n\t\n\tonChange( observer: Callback<CrudControllerEvent<T>> ) {\n\t\treturn this.onChangeHdl.subscribe( observer )\n\t}\n\n\t/**\n\t * Notifies the observer of any error that occurs during the execution of the controller.\n\t * If there are no subscribers to this event, the error will be thrown.\n\t * \n\t * @param observer \n\t * @returns the unsubscriber function\n\t */\n\tonError( observer: Callback<Error> ) {\n\t\treturn this.onErrorHdl.subscribe( observer )\n\t}\n\n\tprotected notifyChange<U extends CrudControllerEvent<T>>( event: U ) {\n\t\tthis.onChangeHdl.notify( event )\n\t}\n\n\tnewDocument() {\n\t\treturn this.setDocument( this.createDocument() )\n\t}\n\n\tasync storeDocument() {\n\t\tconst progressStage = 'Saving main document'\n\n\t\ttry {\n\t\t\tthis.progressController.notifyBusy( true, progressStage )\n\t\t\tawait this.storeDoc()\n\n\t\t\tthis.onChangeHdl.notify({\n\t\t\t\tdocumentCollection: await this.documentCollection(),\n\t\t\t\taction: 'saved'\n\t\t\t})\n\t\t}\n\t\tcatch( error ) {\n\t\t\tthis.onChangeHdl.notify({ error: this.errorToError( error ) })\n\t\t\tthis.onErrorHdl.notify( this.errorToError( error ))\n\t\t\tif ( this.throwOnError ) throw error\n\t\t}\n\t\tfinally {\n\t\t\tthis.progressController.notifyBusy( false, progressStage )\n\t\t}\n\t}\n\n\tasync deleteDocument() {\n\t\tconst progressStage = 'Delete main document'\n\t\ttry {\n\t\t\tthis.progressController.notifyBusy( true, progressStage )\n\t\t\tawait this.deleteDoc()\n\n\t\t\tthis.onChangeHdl.notify({\n\t\t\t\tdocumentCollection: await this.documentCollection(),\n\t\t\t\taction: 'deleted'\n\t\t\t})\n\t\t}\n\t\tcatch( error ) {\n\t\t\tthis.onChangeHdl.notify({ error: this.errorToError( error ) })\n\t\t\tthis.onErrorHdl.notify( this.errorToError( error ))\n\t\t\tif ( this.throwOnError ) throw error\n\t\t}\n\t\tfinally {\n\t\t\tthis.progressController.notifyBusy( false, progressStage )\n\t\t}\n\t}\n\t\t\n\tasync documentCollection( limit?: number ): Promise<T[]> {\n\t\tconst progressStage = 'Retrieving document collection'\n\t\tlet found: T[] = []\n\t\t\n\t\ttry {\n\t\t\tthis.progressController.notifyBusy( true, progressStage )\n\t\t\tconst docPromise = this.findDocs( limit )\n\t\t\tif ( docPromise ) found = await docPromise\n\t\t\telse found = await this.queryDocs( limit ).get()\n\t\t}\n\t\tcatch( error ) {\n\t\t\tthis.onChangeHdl.notify({ error: this.errorToError( error ) })\n\t\t\tthis.onErrorHdl.notify( this.errorToError( error ))\n\t\t\tif ( this.throwOnError ) throw error\n\t\t}\n\t\tfinally {\n\t\t\tthis.onChangeHdl.notify({\tdocumentCollection: found\t})\n\t\t\tthis.progressController.notifyBusy( false, progressStage )\n\t\t}\n\n\t\treturn found\n\t}\n\n\tfilter( docs: T[] ): T[] {\n\t\treturn docs.filter( doc => this._filter?.( doc ) ?? true )\n\t}\n\n\tonProgress( observer: Callback<ProgressEvent> ) {\n\t\treturn this.progressController.onProgress( observer )\n\t}\n\n\tprotected get model() {\n\t\treturn this.getModel()\n\t}\n\n\tsetDocument( value: T ): this {\n\t\tif ( this._document !== value ) {\n\n\t\t\tif ( this.unsubscribeDocument ) this.unsubscribeDocument()\n\n\t\t\tif ( value ) {\n\t\t\t\tthis.unsubscribeDocument = value.onChange( e => this.onChangeHdl.notify({ documentProps: e } ) )\n\t\t\t}\n\n\t\t\tthis._document = value\n\t\t\tthis.onChangeHdl.notify({ documentChanged: this._document })\n\t\t}\n\n\t\treturn this\n\t}\n\n\tset document( value: T ) {\n\t\tthis.setDocument( value )\n\t}\n\t\n\tget document(): T {\n\t\treturn this._document\n\t}\n\n\t/**\n\t * Use this method to throw an error in a controlled way.\n\t * It will notify the subscribers of the `onError` event and throw the error \n\t * if there are no subscribers to the `onError` event.\n\t * \n\t * @param error the error to throw\n\t */\n\tprotected managedThrow( error: Error | string | any ) {\n\t\t/* deprecated */ this.onChangeHdl.notify({ error: this.errorToError( error ) })\n\t\tthis.onErrorHdl.notify( this.errorToError( error ))\n\t\tif ( this.throwOnError ) throw this.errorToError( error )\n\t}\n\n\tprotected errorToError( error: any ): Error {\n\t\tif ( error instanceof Error ) return error\n\t\tif ( typeof error === 'string' ) return new Error( error )\n\t\tif ( 'code' in error ) return new Error( error.code )\n\t\tif ( 'message' in error ) return new Error( error.error )\n\t\treturn new Error( JSON.stringify( error ) )\n\t}\n\n\tprotected get throwOnError() {\n\t\treturn this.onErrorHdl.subscribersCount === 0 \n\t}\n\n\tprotected progressController: ProgressController = new ProgressController()\n\tprotected onChangeHdl: Observable<CrudControllerEvent<T>> = new Observable<CrudControllerEvent<T>>()\n\tprotected onErrorHdl: Observable<Error> = new Observable<Error>()\n\tprivate _document!: T\n\tprivate unsubscribeDocument: Unsubscriber | undefined\n\tprivate _filter: (( document: T ) => boolean ) | undefined\n\tprivate validator = {} as ValidatorCollection<T>\n\tprivate globalValidator: GlobalValidator<T> | undefined\n}\n","/**\n * @license React\n * react.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar ReactNoopUpdateQueue = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n assign = Object.assign,\n emptyObject = {};\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nComponent.prototype.isReactComponent = {};\nComponent.prototype.setState = function (partialState, callback) {\n if (\n \"object\" !== typeof partialState &&\n \"function\" !== typeof partialState &&\n null != partialState\n )\n throw Error(\n \"takes an object of state variables to update or a function which returns an object of state variables.\"\n );\n this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n};\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n};\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nvar pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());\npureComponentPrototype.constructor = PureComponent;\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = !0;\nvar isArrayImpl = Array.isArray;\nfunction noop() {}\nvar ReactSharedInternals = { H: null, A: null, T: null, S: null },\n hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction ReactElement(type, key, props) {\n var refProp = props.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== refProp ? refProp : null,\n props: props\n };\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n return ReactElement(oldElement.type, newKey, oldElement.props);\n}\nfunction isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n}\nfunction escape(key) {\n var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n return (\n \"$\" +\n key.replace(/[=:]/g, function (match) {\n return escaperLookup[match];\n })\n );\n}\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction getElementKey(element, index) {\n return \"object\" === typeof element && null !== element && null != element.key\n ? escape(\"\" + element.key)\n : index.toString(36);\n}\nfunction resolveThenable(thenable) {\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n default:\n switch (\n (\"string\" === typeof thenable.status\n ? thenable.then(noop, noop)\n : ((thenable.status = \"pending\"),\n thenable.then(\n function (fulfilledValue) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = fulfilledValue));\n },\n function (error) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"rejected\"), (thenable.reason = error));\n }\n )),\n thenable.status)\n ) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n }\n }\n throw thenable;\n}\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (\"undefined\" === type || \"boolean\" === type) children = null;\n var invokeCallback = !1;\n if (null === children) invokeCallback = !0;\n else\n switch (type) {\n case \"bigint\":\n case \"string\":\n case \"number\":\n invokeCallback = !0;\n break;\n case \"object\":\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = !0;\n break;\n case REACT_LAZY_TYPE:\n return (\n (invokeCallback = children._init),\n mapIntoArray(\n invokeCallback(children._payload),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n )\n );\n }\n }\n if (invokeCallback)\n return (\n (callback = callback(children)),\n (invokeCallback =\n \"\" === nameSoFar ? \".\" + getElementKey(children, 0) : nameSoFar),\n isArrayImpl(callback)\n ? ((escapedPrefix = \"\"),\n null != invokeCallback &&\n (escapedPrefix =\n invokeCallback.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n return c;\n }))\n : null != callback &&\n (isValidElement(callback) &&\n (callback = cloneAndReplaceKey(\n callback,\n escapedPrefix +\n (null == callback.key ||\n (children && children.key === callback.key)\n ? \"\"\n : (\"\" + callback.key).replace(\n userProvidedKeyEscapeRegex,\n \"$&/\"\n ) + \"/\") +\n invokeCallback\n )),\n array.push(callback)),\n 1\n );\n invokeCallback = 0;\n var nextNamePrefix = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n if (isArrayImpl(children))\n for (var i = 0; i < children.length; i++)\n (nameSoFar = children[i]),\n (type = nextNamePrefix + getElementKey(nameSoFar, i)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n for (\n children = i.call(children), i = 0;\n !(nameSoFar = children.next()).done;\n\n )\n (nameSoFar = nameSoFar.value),\n (type = nextNamePrefix + getElementKey(nameSoFar, i++)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (\"object\" === type) {\n if (\"function\" === typeof children.then)\n return mapIntoArray(\n resolveThenable(children),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n );\n array = String(children);\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === array\n ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n : array) +\n \"). If you meant to render a collection of children, use an array instead.\"\n );\n }\n return invokeCallback;\n}\nfunction mapChildren(children, func, context) {\n if (null == children) return children;\n var result = [],\n count = 0;\n mapIntoArray(children, result, \"\", \"\", function (child) {\n return func.call(context, child, count++);\n });\n return result;\n}\nfunction lazyInitializer(payload) {\n if (-1 === payload._status) {\n var ctor = payload._result;\n ctor = ctor();\n ctor.then(\n function (moduleObject) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 1), (payload._result = moduleObject);\n },\n function (error) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 2), (payload._result = error);\n }\n );\n -1 === payload._status && ((payload._status = 0), (payload._result = ctor));\n }\n if (1 === payload._status) return payload._result.default;\n throw payload._result;\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n },\n Children = {\n map: mapChildren,\n forEach: function (children, forEachFunc, forEachContext) {\n mapChildren(\n children,\n function () {\n forEachFunc.apply(this, arguments);\n },\n forEachContext\n );\n },\n count: function (children) {\n var n = 0;\n mapChildren(children, function () {\n n++;\n });\n return n;\n },\n toArray: function (children) {\n return (\n mapChildren(children, function (child) {\n return child;\n }) || []\n );\n },\n only: function (children) {\n if (!isValidElement(children))\n throw Error(\n \"React.Children.only expected to receive a single React element child.\"\n );\n return children;\n }\n };\nexports.Activity = REACT_ACTIVITY_TYPE;\nexports.Children = Children;\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n ReactSharedInternals;\nexports.__COMPILER_RUNTIME = {\n __proto__: null,\n c: function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n }\n};\nexports.cache = function (fn) {\n return function () {\n return fn.apply(null, arguments);\n };\n};\nexports.cacheSignal = function () {\n return null;\n};\nexports.cloneElement = function (element, config, children) {\n if (null === element || void 0 === element)\n throw Error(\n \"The argument must be a React element, but you passed \" + element + \".\"\n );\n var props = assign({}, element.props),\n key = element.key;\n if (null != config)\n for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n !hasOwnProperty.call(config, propName) ||\n \"key\" === propName ||\n \"__self\" === propName ||\n \"__source\" === propName ||\n (\"ref\" === propName && void 0 === config.ref) ||\n (props[propName] = config[propName]);\n var propName = arguments.length - 2;\n if (1 === propName) props.children = children;\n else if (1 < propName) {\n for (var childArray = Array(propName), i = 0; i < propName; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n return ReactElement(element.type, key, props);\n};\nexports.createContext = function (defaultValue) {\n defaultValue = {\n $$typeof: REACT_CONTEXT_TYPE,\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n defaultValue.Provider = defaultValue;\n defaultValue.Consumer = {\n $$typeof: REACT_CONSUMER_TYPE,\n _context: defaultValue\n };\n return defaultValue;\n};\nexports.createElement = function (type, config, children) {\n var propName,\n props = {},\n key = null;\n if (null != config)\n for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n hasOwnProperty.call(config, propName) &&\n \"key\" !== propName &&\n \"__self\" !== propName &&\n \"__source\" !== propName &&\n (props[propName] = config[propName]);\n var childrenLength = arguments.length - 2;\n if (1 === childrenLength) props.children = children;\n else if (1 < childrenLength) {\n for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n if (type && type.defaultProps)\n for (propName in ((childrenLength = type.defaultProps), childrenLength))\n void 0 === props[propName] &&\n (props[propName] = childrenLength[propName]);\n return ReactElement(type, key, props);\n};\nexports.createRef = function () {\n return { current: null };\n};\nexports.forwardRef = function (render) {\n return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };\n};\nexports.isValidElement = isValidElement;\nexports.lazy = function (ctor) {\n return {\n $$typeof: REACT_LAZY_TYPE,\n _payload: { _status: -1, _result: ctor },\n _init: lazyInitializer\n };\n};\nexports.memo = function (type, compare) {\n return {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: void 0 === compare ? null : compare\n };\n};\nexports.startTransition = function (scope) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = scope(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n returnValue.then(noop, reportGlobalError);\n } catch (error) {\n reportGlobalError(error);\n } finally {\n null !== prevTransition &&\n null !== currentTransition.types &&\n (prevTransition.types = currentTransition.types),\n (ReactSharedInternals.T = prevTransition);\n }\n};\nexports.unstable_useCacheRefresh = function () {\n return ReactSharedInternals.H.useCacheRefresh();\n};\nexports.use = function (usable) {\n return ReactSharedInternals.H.use(usable);\n};\nexports.useActionState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useActionState(action, initialState, permalink);\n};\nexports.useCallback = function (callback, deps) {\n return ReactSharedInternals.H.useCallback(callback, deps);\n};\nexports.useContext = function (Context) {\n return ReactSharedInternals.H.useContext(Context);\n};\nexports.useDebugValue = function () {};\nexports.useDeferredValue = function (value, initialValue) {\n return ReactSharedInternals.H.useDeferredValue(value, initialValue);\n};\nexports.useEffect = function (create, deps) {\n return ReactSharedInternals.H.useEffect(create, deps);\n};\nexports.useEffectEvent = function (callback) {\n return ReactSharedInternals.H.useEffectEvent(callback);\n};\nexports.useId = function () {\n return ReactSharedInternals.H.useId();\n};\nexports.useImperativeHandle = function (ref, create, deps) {\n return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);\n};\nexports.useInsertionEffect = function (create, deps) {\n return ReactSharedInternals.H.useInsertionEffect(create, deps);\n};\nexports.useLayoutEffect = function (create, deps) {\n return ReactSharedInternals.H.useLayoutEffect(create, deps);\n};\nexports.useMemo = function (create, deps) {\n return ReactSharedInternals.H.useMemo(create, deps);\n};\nexports.useOptimistic = function (passthrough, reducer) {\n return ReactSharedInternals.H.useOptimistic(passthrough, reducer);\n};\nexports.useReducer = function (reducer, initialArg, init) {\n return ReactSharedInternals.H.useReducer(reducer, initialArg, init);\n};\nexports.useRef = function (initialValue) {\n return ReactSharedInternals.H.useRef(initialValue);\n};\nexports.useState = function (initialState) {\n return ReactSharedInternals.H.useState(initialState);\n};\nexports.useSyncExternalStore = function (\n subscribe,\n getSnapshot,\n getServerSnapshot\n) {\n return ReactSharedInternals.H.useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot\n );\n};\nexports.useTransition = function () {\n return ReactSharedInternals.H.useTransition();\n};\nexports.version = \"19.2.7\";\n","/**\n * @license React\n * react.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function defineDeprecationWarning(methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n console.warn(\n \"%s(...) is deprecated in plain JavaScript React classes. %s\",\n info[0],\n info[1]\n );\n }\n });\n }\n function getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable)\n return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n }\n function warnNoop(publicInstance, callerName) {\n publicInstance =\n ((publicInstance = publicInstance.constructor) &&\n (publicInstance.displayName || publicInstance.name)) ||\n \"ReactClass\";\n var warningKey = publicInstance + \".\" + callerName;\n didWarnStateUpdateForUnmountedComponent[warningKey] ||\n (console.error(\n \"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.\",\n callerName,\n publicInstance\n ),\n (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));\n }\n function Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function ComponentDummy() {}\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function noop() {}\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function cloneAndReplaceKey(oldElement, newKey) {\n newKey = ReactElement(\n oldElement.type,\n newKey,\n oldElement.props,\n oldElement._owner,\n oldElement._debugStack,\n oldElement._debugTask\n );\n oldElement._store &&\n (newKey._store.validated = oldElement._store.validated);\n return newKey;\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n function escape(key) {\n var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n return (\n \"$\" +\n key.replace(/[=:]/g, function (match) {\n return escaperLookup[match];\n })\n );\n }\n function getElementKey(element, index) {\n return \"object\" === typeof element &&\n null !== element &&\n null != element.key\n ? (checkKeyStringCoercion(element.key), escape(\"\" + element.key))\n : index.toString(36);\n }\n function resolveThenable(thenable) {\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n default:\n switch (\n (\"string\" === typeof thenable.status\n ? thenable.then(noop, noop)\n : ((thenable.status = \"pending\"),\n thenable.then(\n function (fulfilledValue) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = fulfilledValue));\n },\n function (error) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"rejected\"),\n (thenable.reason = error));\n }\n )),\n thenable.status)\n ) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n }\n }\n throw thenable;\n }\n function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (\"undefined\" === type || \"boolean\" === type) children = null;\n var invokeCallback = !1;\n if (null === children) invokeCallback = !0;\n else\n switch (type) {\n case \"bigint\":\n case \"string\":\n case \"number\":\n invokeCallback = !0;\n break;\n case \"object\":\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = !0;\n break;\n case REACT_LAZY_TYPE:\n return (\n (invokeCallback = children._init),\n mapIntoArray(\n invokeCallback(children._payload),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n )\n );\n }\n }\n if (invokeCallback) {\n invokeCallback = children;\n callback = callback(invokeCallback);\n var childKey =\n \"\" === nameSoFar ? \".\" + getElementKey(invokeCallback, 0) : nameSoFar;\n isArrayImpl(callback)\n ? ((escapedPrefix = \"\"),\n null != childKey &&\n (escapedPrefix =\n childKey.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n return c;\n }))\n : null != callback &&\n (isValidElement(callback) &&\n (null != callback.key &&\n ((invokeCallback && invokeCallback.key === callback.key) ||\n checkKeyStringCoercion(callback.key)),\n (escapedPrefix = cloneAndReplaceKey(\n callback,\n escapedPrefix +\n (null == callback.key ||\n (invokeCallback && invokeCallback.key === callback.key)\n ? \"\"\n : (\"\" + callback.key).replace(\n userProvidedKeyEscapeRegex,\n \"$&/\"\n ) + \"/\") +\n childKey\n )),\n \"\" !== nameSoFar &&\n null != invokeCallback &&\n isValidElement(invokeCallback) &&\n null == invokeCallback.key &&\n invokeCallback._store &&\n !invokeCallback._store.validated &&\n (escapedPrefix._store.validated = 2),\n (callback = escapedPrefix)),\n array.push(callback));\n return 1;\n }\n invokeCallback = 0;\n childKey = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n if (isArrayImpl(children))\n for (var i = 0; i < children.length; i++)\n (nameSoFar = children[i]),\n (type = childKey + getElementKey(nameSoFar, i)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n for (\n i === children.entries &&\n (didWarnAboutMaps ||\n console.warn(\n \"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"\n ),\n (didWarnAboutMaps = !0)),\n children = i.call(children),\n i = 0;\n !(nameSoFar = children.next()).done;\n\n )\n (nameSoFar = nameSoFar.value),\n (type = childKey + getElementKey(nameSoFar, i++)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (\"object\" === type) {\n if (\"function\" === typeof children.then)\n return mapIntoArray(\n resolveThenable(children),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n );\n array = String(children);\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === array\n ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n : array) +\n \"). If you meant to render a collection of children, use an array instead.\"\n );\n }\n return invokeCallback;\n }\n function mapChildren(children, func, context) {\n if (null == children) return children;\n var result = [],\n count = 0;\n mapIntoArray(children, result, \"\", \"\", function (child) {\n return func.call(context, child, count++);\n });\n return result;\n }\n function lazyInitializer(payload) {\n if (-1 === payload._status) {\n var ioInfo = payload._ioInfo;\n null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());\n ioInfo = payload._result;\n var thenable = ioInfo();\n thenable.then(\n function (moduleObject) {\n if (0 === payload._status || -1 === payload._status) {\n payload._status = 1;\n payload._result = moduleObject;\n var _ioInfo = payload._ioInfo;\n null != _ioInfo && (_ioInfo.end = performance.now());\n void 0 === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = moduleObject));\n }\n },\n function (error) {\n if (0 === payload._status || -1 === payload._status) {\n payload._status = 2;\n payload._result = error;\n var _ioInfo2 = payload._ioInfo;\n null != _ioInfo2 && (_ioInfo2.end = performance.now());\n void 0 === thenable.status &&\n ((thenable.status = \"rejected\"), (thenable.reason = error));\n }\n }\n );\n ioInfo = payload._ioInfo;\n if (null != ioInfo) {\n ioInfo.value = thenable;\n var displayName = thenable.displayName;\n \"string\" === typeof displayName && (ioInfo.name = displayName);\n }\n -1 === payload._status &&\n ((payload._status = 0), (payload._result = thenable));\n }\n if (1 === payload._status)\n return (\n (ioInfo = payload._result),\n void 0 === ioInfo &&\n console.error(\n \"lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n const MyComponent = lazy(() => import('./MyComponent'))\\n\\nDid you accidentally put curly braces around the import?\",\n ioInfo\n ),\n \"default\" in ioInfo ||\n console.error(\n \"lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n const MyComponent = lazy(() => import('./MyComponent'))\",\n ioInfo\n ),\n ioInfo.default\n );\n throw payload._result;\n }\n function resolveDispatcher() {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher;\n }\n function releaseAsyncTransition() {\n ReactSharedInternals.asyncTransitions--;\n }\n function enqueueTask(task) {\n if (null === enqueueTaskImpl)\n try {\n var requireString = (\"require\" + Math.random()).slice(0, 7);\n enqueueTaskImpl = (module && module[requireString]).call(\n module,\n \"timers\"\n ).setImmediate;\n } catch (_err) {\n enqueueTaskImpl = function (callback) {\n !1 === didWarnAboutMessageChannel &&\n ((didWarnAboutMessageChannel = !0),\n \"undefined\" === typeof MessageChannel &&\n console.error(\n \"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.\"\n ));\n var channel = new MessageChannel();\n channel.port1.onmessage = callback;\n channel.port2.postMessage(void 0);\n };\n }\n return enqueueTaskImpl(task);\n }\n function aggregateErrors(errors) {\n return 1 < errors.length && \"function\" === typeof AggregateError\n ? new AggregateError(errors)\n : errors[0];\n }\n function popActScope(prevActQueue, prevActScopeDepth) {\n prevActScopeDepth !== actScopeDepth - 1 &&\n console.error(\n \"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. \"\n );\n actScopeDepth = prevActScopeDepth;\n }\n function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {\n var queue = ReactSharedInternals.actQueue;\n if (null !== queue)\n if (0 !== queue.length)\n try {\n flushActQueue(queue);\n enqueueTask(function () {\n return recursivelyFlushAsyncActWork(returnValue, resolve, reject);\n });\n return;\n } catch (error) {\n ReactSharedInternals.thrownErrors.push(error);\n }\n else ReactSharedInternals.actQueue = null;\n 0 < ReactSharedInternals.thrownErrors.length\n ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),\n (ReactSharedInternals.thrownErrors.length = 0),\n reject(queue))\n : resolve(returnValue);\n }\n function flushActQueue(queue) {\n if (!isFlushing) {\n isFlushing = !0;\n var i = 0;\n try {\n for (; i < queue.length; i++) {\n var callback = queue[i];\n do {\n ReactSharedInternals.didUsePromise = !1;\n var continuation = callback(!1);\n if (null !== continuation) {\n if (ReactSharedInternals.didUsePromise) {\n queue[i] = callback;\n queue.splice(0, i);\n return;\n }\n callback = continuation;\n } else break;\n } while (1);\n }\n queue.length = 0;\n } catch (error) {\n queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);\n } finally {\n isFlushing = !1;\n }\n }\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator,\n didWarnStateUpdateForUnmountedComponent = {},\n ReactNoopUpdateQueue = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function (publicInstance) {\n warnNoop(publicInstance, \"forceUpdate\");\n },\n enqueueReplaceState: function (publicInstance) {\n warnNoop(publicInstance, \"replaceState\");\n },\n enqueueSetState: function (publicInstance) {\n warnNoop(publicInstance, \"setState\");\n }\n },\n assign = Object.assign,\n emptyObject = {};\n Object.freeze(emptyObject);\n Component.prototype.isReactComponent = {};\n Component.prototype.setState = function (partialState, callback) {\n if (\n \"object\" !== typeof partialState &&\n \"function\" !== typeof partialState &&\n null != partialState\n )\n throw Error(\n \"takes an object of state variables to update or a function which returns an object of state variables.\"\n );\n this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n };\n Component.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n };\n var deprecatedAPIs = {\n isMounted: [\n \"isMounted\",\n \"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.\"\n ],\n replaceState: [\n \"replaceState\",\n \"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).\"\n ]\n };\n for (fnName in deprecatedAPIs)\n deprecatedAPIs.hasOwnProperty(fnName) &&\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n ComponentDummy.prototype = Component.prototype;\n deprecatedAPIs = PureComponent.prototype = new ComponentDummy();\n deprecatedAPIs.constructor = PureComponent;\n assign(deprecatedAPIs, Component.prototype);\n deprecatedAPIs.isPureReactComponent = !0;\n var isArrayImpl = Array.isArray,\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals = {\n H: null,\n A: null,\n T: null,\n S: null,\n actQueue: null,\n asyncTransitions: 0,\n isBatchingLegacy: !1,\n didScheduleLegacyUpdate: !1,\n didUsePromise: !1,\n thrownErrors: [],\n getCurrentStack: null,\n recentlyCreatedOwnerStacks: 0\n },\n hasOwnProperty = Object.prototype.hasOwnProperty,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n deprecatedAPIs = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(\n deprecatedAPIs,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutMaps = !1,\n userProvidedKeyEscapeRegex = /\\/+/g,\n reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n },\n didWarnAboutMessageChannel = !1,\n enqueueTaskImpl = null,\n actScopeDepth = 0,\n didWarnNoAwaitAct = !1,\n isFlushing = !1,\n queueSeveralMicrotasks =\n \"function\" === typeof queueMicrotask\n ? function (callback) {\n queueMicrotask(function () {\n return queueMicrotask(callback);\n });\n }\n : enqueueTask;\n deprecatedAPIs = Object.freeze({\n __proto__: null,\n c: function (size) {\n return resolveDispatcher().useMemoCache(size);\n }\n });\n var fnName = {\n map: mapChildren,\n forEach: function (children, forEachFunc, forEachContext) {\n mapChildren(\n children,\n function () {\n forEachFunc.apply(this, arguments);\n },\n forEachContext\n );\n },\n count: function (children) {\n var n = 0;\n mapChildren(children, function () {\n n++;\n });\n return n;\n },\n toArray: function (children) {\n return (\n mapChildren(children, function (child) {\n return child;\n }) || []\n );\n },\n only: function (children) {\n if (!isValidElement(children))\n throw Error(\n \"React.Children.only expected to receive a single React element child.\"\n );\n return children;\n }\n };\n exports.Activity = REACT_ACTIVITY_TYPE;\n exports.Children = fnName;\n exports.Component = Component;\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.Profiler = REACT_PROFILER_TYPE;\n exports.PureComponent = PureComponent;\n exports.StrictMode = REACT_STRICT_MODE_TYPE;\n exports.Suspense = REACT_SUSPENSE_TYPE;\n exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n ReactSharedInternals;\n exports.__COMPILER_RUNTIME = deprecatedAPIs;\n exports.act = function (callback) {\n var prevActQueue = ReactSharedInternals.actQueue,\n prevActScopeDepth = actScopeDepth;\n actScopeDepth++;\n var queue = (ReactSharedInternals.actQueue =\n null !== prevActQueue ? prevActQueue : []),\n didAwaitActCall = !1;\n try {\n var result = callback();\n } catch (error) {\n ReactSharedInternals.thrownErrors.push(error);\n }\n if (0 < ReactSharedInternals.thrownErrors.length)\n throw (\n (popActScope(prevActQueue, prevActScopeDepth),\n (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),\n (ReactSharedInternals.thrownErrors.length = 0),\n callback)\n );\n if (\n null !== result &&\n \"object\" === typeof result &&\n \"function\" === typeof result.then\n ) {\n var thenable = result;\n queueSeveralMicrotasks(function () {\n didAwaitActCall ||\n didWarnNoAwaitAct ||\n ((didWarnNoAwaitAct = !0),\n console.error(\n \"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);\"\n ));\n });\n return {\n then: function (resolve, reject) {\n didAwaitActCall = !0;\n thenable.then(\n function (returnValue) {\n popActScope(prevActQueue, prevActScopeDepth);\n if (0 === prevActScopeDepth) {\n try {\n flushActQueue(queue),\n enqueueTask(function () {\n return recursivelyFlushAsyncActWork(\n returnValue,\n resolve,\n reject\n );\n });\n } catch (error$0) {\n ReactSharedInternals.thrownErrors.push(error$0);\n }\n if (0 < ReactSharedInternals.thrownErrors.length) {\n var _thrownError = aggregateErrors(\n ReactSharedInternals.thrownErrors\n );\n ReactSharedInternals.thrownErrors.length = 0;\n reject(_thrownError);\n }\n } else resolve(returnValue);\n },\n function (error) {\n popActScope(prevActQueue, prevActScopeDepth);\n 0 < ReactSharedInternals.thrownErrors.length\n ? ((error = aggregateErrors(\n ReactSharedInternals.thrownErrors\n )),\n (ReactSharedInternals.thrownErrors.length = 0),\n reject(error))\n : reject(error);\n }\n );\n }\n };\n }\n var returnValue$jscomp$0 = result;\n popActScope(prevActQueue, prevActScopeDepth);\n 0 === prevActScopeDepth &&\n (flushActQueue(queue),\n 0 !== queue.length &&\n queueSeveralMicrotasks(function () {\n didAwaitActCall ||\n didWarnNoAwaitAct ||\n ((didWarnNoAwaitAct = !0),\n console.error(\n \"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\\n\\nawait act(() => ...)\"\n ));\n }),\n (ReactSharedInternals.actQueue = null));\n if (0 < ReactSharedInternals.thrownErrors.length)\n throw (\n ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),\n (ReactSharedInternals.thrownErrors.length = 0),\n callback)\n );\n return {\n then: function (resolve, reject) {\n didAwaitActCall = !0;\n 0 === prevActScopeDepth\n ? ((ReactSharedInternals.actQueue = queue),\n enqueueTask(function () {\n return recursivelyFlushAsyncActWork(\n returnValue$jscomp$0,\n resolve,\n reject\n );\n }))\n : resolve(returnValue$jscomp$0);\n }\n };\n };\n exports.cache = function (fn) {\n return function () {\n return fn.apply(null, arguments);\n };\n };\n exports.cacheSignal = function () {\n return null;\n };\n exports.captureOwnerStack = function () {\n var getCurrentStack = ReactSharedInternals.getCurrentStack;\n return null === getCurrentStack ? null : getCurrentStack();\n };\n exports.cloneElement = function (element, config, children) {\n if (null === element || void 0 === element)\n throw Error(\n \"The argument must be a React element, but you passed \" +\n element +\n \".\"\n );\n var props = assign({}, element.props),\n key = element.key,\n owner = element._owner;\n if (null != config) {\n var JSCompiler_inline_result;\n a: {\n if (\n hasOwnProperty.call(config, \"ref\") &&\n (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(\n config,\n \"ref\"\n ).get) &&\n JSCompiler_inline_result.isReactWarning\n ) {\n JSCompiler_inline_result = !1;\n break a;\n }\n JSCompiler_inline_result = void 0 !== config.ref;\n }\n JSCompiler_inline_result && (owner = getOwner());\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (key = \"\" + config.key));\n for (propName in config)\n !hasOwnProperty.call(config, propName) ||\n \"key\" === propName ||\n \"__self\" === propName ||\n \"__source\" === propName ||\n (\"ref\" === propName && void 0 === config.ref) ||\n (props[propName] = config[propName]);\n }\n var propName = arguments.length - 2;\n if (1 === propName) props.children = children;\n else if (1 < propName) {\n JSCompiler_inline_result = Array(propName);\n for (var i = 0; i < propName; i++)\n JSCompiler_inline_result[i] = arguments[i + 2];\n props.children = JSCompiler_inline_result;\n }\n props = ReactElement(\n element.type,\n key,\n props,\n owner,\n element._debugStack,\n element._debugTask\n );\n for (key = 2; key < arguments.length; key++)\n validateChildKeys(arguments[key]);\n return props;\n };\n exports.createContext = function (defaultValue) {\n defaultValue = {\n $$typeof: REACT_CONTEXT_TYPE,\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n defaultValue.Provider = defaultValue;\n defaultValue.Consumer = {\n $$typeof: REACT_CONSUMER_TYPE,\n _context: defaultValue\n };\n defaultValue._currentRenderer = null;\n defaultValue._currentRenderer2 = null;\n return defaultValue;\n };\n exports.createElement = function (type, config, children) {\n for (var i = 2; i < arguments.length; i++)\n validateChildKeys(arguments[i]);\n i = {};\n var key = null;\n if (null != config)\n for (propName in (didWarnAboutOldJSXRuntime ||\n !(\"__self\" in config) ||\n \"key\" in config ||\n ((didWarnAboutOldJSXRuntime = !0),\n console.warn(\n \"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform\"\n )),\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (key = \"\" + config.key)),\n config))\n hasOwnProperty.call(config, propName) &&\n \"key\" !== propName &&\n \"__self\" !== propName &&\n \"__source\" !== propName &&\n (i[propName] = config[propName]);\n var childrenLength = arguments.length - 2;\n if (1 === childrenLength) i.children = children;\n else if (1 < childrenLength) {\n for (\n var childArray = Array(childrenLength), _i = 0;\n _i < childrenLength;\n _i++\n )\n childArray[_i] = arguments[_i + 2];\n Object.freeze && Object.freeze(childArray);\n i.children = childArray;\n }\n if (type && type.defaultProps)\n for (propName in ((childrenLength = type.defaultProps), childrenLength))\n void 0 === i[propName] && (i[propName] = childrenLength[propName]);\n key &&\n defineKeyPropWarningGetter(\n i,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return ReactElement(\n type,\n key,\n i,\n getOwner(),\n propName ? Error(\"react-stack-top-frame\") : unknownOwnerDebugStack,\n propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.createRef = function () {\n var refObject = { current: null };\n Object.seal(refObject);\n return refObject;\n };\n exports.forwardRef = function (render) {\n null != render && render.$$typeof === REACT_MEMO_TYPE\n ? console.error(\n \"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).\"\n )\n : \"function\" !== typeof render\n ? console.error(\n \"forwardRef requires a render function but was given %s.\",\n null === render ? \"null\" : typeof render\n )\n : 0 !== render.length &&\n 2 !== render.length &&\n console.error(\n \"forwardRef render functions accept exactly two parameters: props and ref. %s\",\n 1 === render.length\n ? \"Did you forget to use the ref parameter?\"\n : \"Any additional parameter will be undefined.\"\n );\n null != render &&\n null != render.defaultProps &&\n console.error(\n \"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?\"\n );\n var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },\n ownName;\n Object.defineProperty(elementType, \"displayName\", {\n enumerable: !1,\n configurable: !0,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n render.name ||\n render.displayName ||\n (Object.defineProperty(render, \"name\", { value: name }),\n (render.displayName = name));\n }\n });\n return elementType;\n };\n exports.isValidElement = isValidElement;\n exports.lazy = function (ctor) {\n ctor = { _status: -1, _result: ctor };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: ctor,\n _init: lazyInitializer\n },\n ioInfo = {\n name: \"lazy\",\n start: -1,\n end: -1,\n value: null,\n owner: null,\n debugStack: Error(\"react-stack-top-frame\"),\n debugTask: console.createTask ? console.createTask(\"lazy()\") : null\n };\n ctor._ioInfo = ioInfo;\n lazyType._debugInfo = [{ awaited: ioInfo }];\n return lazyType;\n };\n exports.memo = function (type, compare) {\n null == type &&\n console.error(\n \"memo: The first argument must be a component. Instead received: %s\",\n null === type ? \"null\" : typeof type\n );\n compare = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: void 0 === compare ? null : compare\n };\n var ownName;\n Object.defineProperty(compare, \"displayName\", {\n enumerable: !1,\n configurable: !0,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n type.name ||\n type.displayName ||\n (Object.defineProperty(type, \"name\", { value: name }),\n (type.displayName = name));\n }\n });\n return compare;\n };\n exports.startTransition = function (scope) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n currentTransition._updatedFibers = new Set();\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = scope(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n (ReactSharedInternals.asyncTransitions++,\n returnValue.then(releaseAsyncTransition, releaseAsyncTransition),\n returnValue.then(noop, reportGlobalError));\n } catch (error) {\n reportGlobalError(error);\n } finally {\n null === prevTransition &&\n currentTransition._updatedFibers &&\n ((scope = currentTransition._updatedFibers.size),\n currentTransition._updatedFibers.clear(),\n 10 < scope &&\n console.warn(\n \"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.\"\n )),\n null !== prevTransition &&\n null !== currentTransition.types &&\n (null !== prevTransition.types &&\n prevTransition.types !== currentTransition.types &&\n console.error(\n \"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.\"\n ),\n (prevTransition.types = currentTransition.types)),\n (ReactSharedInternals.T = prevTransition);\n }\n };\n exports.unstable_useCacheRefresh = function () {\n return resolveDispatcher().useCacheRefresh();\n };\n exports.use = function (usable) {\n return resolveDispatcher().use(usable);\n };\n exports.useActionState = function (action, initialState, permalink) {\n return resolveDispatcher().useActionState(\n action,\n initialState,\n permalink\n );\n };\n exports.useCallback = function (callback, deps) {\n return resolveDispatcher().useCallback(callback, deps);\n };\n exports.useContext = function (Context) {\n var dispatcher = resolveDispatcher();\n Context.$$typeof === REACT_CONSUMER_TYPE &&\n console.error(\n \"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?\"\n );\n return dispatcher.useContext(Context);\n };\n exports.useDebugValue = function (value, formatterFn) {\n return resolveDispatcher().useDebugValue(value, formatterFn);\n };\n exports.useDeferredValue = function (value, initialValue) {\n return resolveDispatcher().useDeferredValue(value, initialValue);\n };\n exports.useEffect = function (create, deps) {\n null == create &&\n console.warn(\n \"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?\"\n );\n return resolveDispatcher().useEffect(create, deps);\n };\n exports.useEffectEvent = function (callback) {\n return resolveDispatcher().useEffectEvent(callback);\n };\n exports.useId = function () {\n return resolveDispatcher().useId();\n };\n exports.useImperativeHandle = function (ref, create, deps) {\n return resolveDispatcher().useImperativeHandle(ref, create, deps);\n };\n exports.useInsertionEffect = function (create, deps) {\n null == create &&\n console.warn(\n \"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?\"\n );\n return resolveDispatcher().useInsertionEffect(create, deps);\n };\n exports.useLayoutEffect = function (create, deps) {\n null == create &&\n console.warn(\n \"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?\"\n );\n return resolveDispatcher().useLayoutEffect(create, deps);\n };\n exports.useMemo = function (create, deps) {\n return resolveDispatcher().useMemo(create, deps);\n };\n exports.useOptimistic = function (passthrough, reducer) {\n return resolveDispatcher().useOptimistic(passthrough, reducer);\n };\n exports.useReducer = function (reducer, initialArg, init) {\n return resolveDispatcher().useReducer(reducer, initialArg, init);\n };\n exports.useRef = function (initialValue) {\n return resolveDispatcher().useRef(initialValue);\n };\n exports.useState = function (initialState) {\n return resolveDispatcher().useState(initialState);\n };\n exports.useSyncExternalStore = function (\n subscribe,\n getSnapshot,\n getServerSnapshot\n ) {\n return resolveDispatcher().useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot\n );\n };\n exports.useTransition = function () {\n return resolveDispatcher().useTransition();\n };\n exports.version = \"19.2.7\";\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { EntropicComponent, snakeCase, Unsubscriber } from 'entropic-bond'\nimport { cloneElement, Component, ReactElement, JSX } from 'react'\nimport { CrudController } from './crud-controller'\n\nenum Mode { normal, add, edit }\n\nexport interface CrudCardProps<T extends EntropicComponent> {\n\tdocument: T\n\tonSelect: ( document: T ) => void\n\tonDelete: ( document: T ) => void\n}\n\nexport interface CrudContentViewProps<T extends EntropicComponent> {\n\tcontroller: CrudController<T>\n\tsubmitButtonCaption: string\n\tonSubmit: ( document: T ) => void\n\tonCancel: ()=>void\n}\n\nexport interface CrudPanelLabels {\n\taddNewDocumentLabel: string\n\taddButtonLabel: string\n\tupdateButtonLabel: string\n\tsingularDocumentInCollectionCaption?: string\n\tdocumentsInCollectionCaption: string\n\tnoDocumentsFoundLabel: string\n}\n\nexport type Layout = 'formOrItems' | 'itemsAlways' | 'formAndItems'\n\ninterface CrudPanelState<T extends EntropicComponent> {\n\tdocuments: T[]\n\tmode: Mode\n}\n\ninterface CrudPanelProps<T extends EntropicComponent> {\n\tcontroller: CrudController<T>\t\n\tlabels?: CrudPanelLabels | ( ( controller: CrudController<T> ) => CrudPanelLabels )\n\tlayout?: Layout\n\tchildren: [\n\t\t( ( props: CrudContentViewProps<T> ) => ReactElement ) | ReactElement<CrudContentViewProps<T>>,\n\t\t( ( props: CrudCardProps<T> ) => ReactElement ) | ReactElement<CrudCardProps<T>>\n\t]\n\tclassName?: string\n\tcardAddButton?: boolean | JSX.Element\n\theader?: string | JSX.Element | ( ( controller: CrudController<T>, newDocumentAction: ()=>void, labels: CrudPanelLabels ) => string | JSX.Element )\n\tfooter?: string | JSX.Element | ( ( controller: CrudController<T>, newDocumentAction: ()=>void, labels: CrudPanelLabels ) => string | JSX.Element )\n}\n\nexport class CrudPanel<T extends EntropicComponent> extends Component<CrudPanelProps<T>, CrudPanelState<T>> {\n\n\tconstructor( props: CrudPanelProps<T> ) {\n\t\tsuper( props )\n\n\t\tthis.state = {\n\t\t\tdocuments: [],\n\t\t\tmode: Mode.normal,\n\t\t}\n\t}\n\n\toverride async componentDidMount() {\n\t\tconst { controller } = this.props\n\n\t\tthis.unsubscriber = controller.onChange( event => {\n\t\t\tif ( event.documentCollection ) {\n\t\t\t\tthis.unfilteredDocuments = event.documentCollection\n\t\t\t\tthis.setState({\n\t\t\t\t\tdocuments: controller.filter( this.unfilteredDocuments )\n\t\t\t\t})\n\t\t\t}\n\t\t\tif ( event.action === 'filterChange' ) {\n\t\t\t\tthis.setState({\n\t\t\t\t\tdocuments: controller.filter( this.unfilteredDocuments )\n\t\t\t\t})\n\t\t\t}\n\t\t\telse this.setState({})\n\t\t})\n\n\t\tthis.unfilteredDocuments = await controller.documentCollection()\n\t\tthis.setState({\n\t\t\tdocuments: controller.filter( this.unfilteredDocuments )\n\t\t})\n\t}\n\n\toverride componentWillUnmount() {\n\t\tthis.unsubscriber?.()\n\t}\n\n\tprivate newDocument() {\n\t\tthis.props.controller.newDocument()\n\n\t\tthis.setState({\n\t\t\tmode: Mode.add,\n\t\t})\n\t}\n\n\tprivate editDocument( document: T ) {\n\t\tthis.props.controller.setDocument( document )\n\n\t\tthis.setState({\n\t\t\tmode: Mode.edit\n\t\t})\n\t}\n\n\tprivate async storeDocument( document: T ) {\n\t\tconst { controller, layout } = this.props\n\t\tcontroller.setDocument( document )\n\t\tawait controller.storeDocument()\n\n\t\tif ( layout === 'formAndItems' ) {\n\t\t\tthis.newDocument()\n\t\t}\n\t\telse {\n\t\t\tthis.setState({\n\t\t\t\tmode: Mode.normal,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate invokeContentViewChild( labels : CrudPanelLabels ) {\n\t\tconst { children, layout, controller } = this.props\n\t\tconst { mode } = this.state\n\t\tconst closeOnCancel = layout !== 'formAndItems'\n\t\tif ( !controller.document ) return\n\n\t\tconst props: CrudContentViewProps<T> = {\n\t\t\tcontroller: controller,\n\t\t\tsubmitButtonCaption: mode==Mode.edit? labels?.updateButtonLabel : labels?.addButtonLabel,\n\t\t\tonSubmit: ( document: T ) => this.storeDocument( document ),\n\t\t\tonCancel: closeOnCancel\n\t\t\t\t? ()=>this.setState({ mode: Mode.normal })\n\t\t\t\t: ()=>this.newDocument(),\n\t\t}\n\n\t\tif ( typeof children[0] === 'function' ) {\n\t\t\treturn cloneElement( children[0] (props), { key: controller.document.id })\n\t\t}\n\t\telse {\n\t\t\treturn cloneElement( children[0], { key: controller.document.id, ...props })\t\n\t\t}\t\t\n\t}\n\n\tprivate invokeDetailViewChild( document: T ) {\n\t\tconst { children, controller } = this.props\n\n\t\tconst props: CrudCardProps<T> = {\n\t\t\tdocument,\n\t\t\tonSelect: (document: T) => this.editDocument( document ),\n\t\t\tonDelete: (document: T) => controller.setDocument( document ).deleteDocument()\n\t\t}\n\n\t\tif ( typeof children[1] === 'function' ) {\n\t\t\treturn cloneElement( children[1]( props ), { key: document.id } )\n\t\t}\n\t\telse {\n\t\t\treturn cloneElement( children[1], { key: document.id, ...props } )\n\t\t}\n\t}\n\n\toverride render() {\n\t\tconst { mode, documents } = this.state\n\t\tconst { className, cardAddButton, controller } = this.props\n\t\tconst docClassName = snakeCase( controller.document?.className )\n\t\tlet labels = this.props.labels || {} as CrudPanelLabels\n\t\tconst layout = this.props.layout || 'itemsAlways'\n\n\t\tif ( typeof labels === 'function' ) labels = labels( controller )\n\n\t\tconst { addNewDocumentLabel, singularDocumentInCollectionCaption, documentsInCollectionCaption, noDocumentsFoundLabel } = labels\n\n\t\treturn (\n\t\t\t<div className={`crud-panel ${ docClassName } ${ className || '' }`}>\n\n\t\t\t\t{ mode === Mode.normal && layout !== 'formAndItems' && !cardAddButton &&\n\t\t\t\t\t<div className=\"header\">\n\n\t\t\t\t\t\t{ this.props.header\n\t\t\t\t\t\t\t? typeof this.props.header === 'function'\n\t\t\t\t\t\t\t\t? this.props.header( controller, ()=> this.newDocument(), labels )\n\t\t\t\t\t\t\t\t: this.props.header\n\t\t\t\t\t\t\t:\t<button onClick={ ()=> this.newDocument() }>\n\t\t\t\t\t\t\t\t\t{\taddNewDocumentLabel\t}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t</div>\n\n\t\t\t\t}\n\n\t\t\t\t{ ( layout === 'formAndItems' || mode === Mode.add || mode === Mode.edit ) &&\n\n\t\t\t\t\t<div className=\"content-panel\">\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.invokeContentViewChild( labels )\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t{ ( layout==='itemsAlways' || layout === 'formAndItems'\t|| mode === Mode.normal ) &&\n\n\t\t\t\t\t<div className=\"collection-panel\">\n\t\t\t\t\t\t{ documents?.length > 0 &&\n\t\t\t\t\t\t\t<h3>\n\t\t\t\t\t\t\t\t{ documents.length > 1\n\t\t\t\t\t\t\t\t\t? documentsInCollectionCaption \n\t\t\t\t\t\t\t\t\t: singularDocumentInCollectionCaption || documentsInCollectionCaption\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t<div className=\"documents\">\n\t\t\t\t\t\t\t{ cardAddButton &&\n\t\t\t\t\t\t\t\t<div className=\"crud-card card-add-button clickable\" \n\t\t\t\t\t\t\t\t\tonClick={ ()=> this.newDocument() }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<div className=\"button-element\">{\tcardAddButton }</div>\n\t\t\t\t\t\t\t\t\t<div className=\"add-label\">{\taddNewDocumentLabel\t}</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{ documents?.length\n\t\t\t\t\t\t\t\t? documents.map( (document: T) => this.invokeDetailViewChild( document ) )\n\t\t\t\t\t\t\t\t: <p>{ noDocumentsFoundLabel }</p>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t<div className=\"footer\">\n\t\t\t\t\t{ this.props.footer &&\n\t\t\t\t\t\ttypeof this.props.footer === 'function'\n\t\t\t\t\t\t\t? this.props.footer( controller, ()=> this.newDocument(), labels )\n\t\t\t\t\t\t\t: this.props.footer\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t)\n\t}\n\n\tprivate unsubscriber: Unsubscriber | undefined\n\tprivate unfilteredDocuments: T[] = []\n}\n"],"x_google_ignoreList":[0,3,4,5,6,7,8],"mappings":";2FACI,IAAI,MAAM;CACb,cAAc;EACb,KAAK,8BAA8B,IAAI,IAAI;CAC5C;CACA,UAAU,GAAG;EACZ,OAAO,KAAK,YAAY,IAAI,CAAC,SAAS,KAAK,YAAY,CAAC;CACzD;CACA,YAAY,GAAG;EACd,KAAK,YAAY,OAAO,CAAC;CAC1B;CACA,OAAO,GAAG;EACT,KAAK,YAAY,SAAS,MAAM,EAAE,CAAC,CAAC;CACrC;CACA,IAAI,mBAAmB;EACtB,OAAO,KAAK,YAAY;CACzB;AACD,GAAG,oBAAoB,IAAI,WAAW,EAAE;AACxC,SAAS,IAAI;CACZ,OAAO,OAAO,gBAAgB,CAAC;AAChC;AAGA,IAAI,IAAI,CAAC;AACT,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,EAAE,GAAG,EAAE,MAAM,IAAI,IAAA,CAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;AACpE,SAAS,EAAE,GAAG,IAAI,GAAG;CACpB,QAAQ,EAAE,EAAE,IAAI,MAAM,EAAE,EAAE,IAAI,MAAM,EAAE,EAAE,IAAI,MAAM,EAAE,EAAE,IAAI,MAAM,MAAM,EAAE,EAAE,IAAI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