@operato/scene-firebase 1.1.15 → 1.1.16
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -0
- package/assets/favicon.ico +0 -0
- package/assets/images/spinner.png +0 -0
- package/dist/firebase.js +24 -15
- package/dist/firebase.js.map +1 -1
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +15 -0
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +15 -0
- package/logs/application-2022-12-02-01.log +8 -0
- package/logs/connections-2022-12-02-01.log +35 -0
- package/package.json +4 -3
- package/src/firebase.ts +22 -14
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,15 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
### [1.1.16](https://github.com/things-scene/operato-scene/compare/v1.1.15...v1.1.16) (2022-12-04)
|
7
|
+
|
8
|
+
|
9
|
+
### :bug: Bug Fix
|
10
|
+
|
11
|
+
* upgrade firebase 9 ([ff1d4da](https://github.com/things-scene/operato-scene/commit/ff1d4dacfbe3e9b6968a342c059055bf3b555875))
|
12
|
+
|
13
|
+
|
14
|
+
|
6
15
|
### [1.1.15](https://github.com/things-scene/operato-scene/compare/v1.1.14...v1.1.15) (2022-11-13)
|
7
16
|
|
8
17
|
|
Binary file
|
Binary file
|
package/dist/firebase.js
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
/*
|
2
2
|
* Copyright © HatioLab Inc. All rights reserved.
|
3
3
|
*/
|
4
|
-
import { Component, DataSource, error, RectPath,
|
4
|
+
import { Component, DataSource, error, RectPath, Shape } from '@hatiolab/things-scene';
|
5
|
+
import { initializeApp, deleteApp } from 'firebase/app';
|
6
|
+
import { getDatabase, ref, child, onValue } from 'firebase/database';
|
7
|
+
import { getAuth, onAuthStateChanged, signInAnonymously, signInWithEmailAndPassword, signOut } from 'firebase/auth';
|
5
8
|
const NATURE = {
|
6
9
|
mutable: false,
|
7
10
|
resizable: true,
|
@@ -75,41 +78,47 @@ export default class Firebase extends DataSource(RectPath(Shape)) {
|
|
75
78
|
return Firebase._image;
|
76
79
|
}
|
77
80
|
added() {
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
+
if (!this.app.isViewMode || this._firebase_app) {
|
82
|
+
return;
|
83
|
+
}
|
84
|
+
try {
|
81
85
|
this._initFirebase();
|
82
|
-
}
|
86
|
+
}
|
87
|
+
catch (err) {
|
88
|
+
error(err);
|
89
|
+
}
|
83
90
|
}
|
84
91
|
_onValue(snapshot) {
|
85
92
|
this.data = snapshot.val();
|
86
93
|
}
|
87
94
|
_initFirebase() {
|
88
|
-
var { apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId, childDataPath,
|
95
|
+
var { apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId, childDataPath, email, password } = this.state;
|
89
96
|
var self = this;
|
90
|
-
this._firebase_app =
|
91
|
-
this._firebase_auth =
|
92
|
-
this._firebase_auth
|
97
|
+
this._firebase_app = initializeApp({ apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId }, 'FBAPP-' + ++idx);
|
98
|
+
this._firebase_auth = getAuth(this._firebase_app);
|
99
|
+
onAuthStateChanged(this._firebase_auth, (firebaseUser) => {
|
93
100
|
if (firebaseUser) {
|
94
101
|
console.log('logged in', firebaseUser);
|
95
|
-
|
96
|
-
|
102
|
+
const database = getDatabase(this._firebase_app);
|
103
|
+
const parent = ref(database);
|
104
|
+
self._firebase_ref = child(parent, childDataPath);
|
105
|
+
onValue(self._firebase_ref, self._onValue.bind(self));
|
97
106
|
}
|
98
107
|
else {
|
99
108
|
console.log('not logged in.');
|
100
109
|
}
|
101
110
|
});
|
102
111
|
var promise = email
|
103
|
-
? this._firebase_auth
|
104
|
-
: this._firebase_auth
|
112
|
+
? signInWithEmailAndPassword(this._firebase_auth, email, password)
|
113
|
+
: signInAnonymously(this._firebase_auth);
|
105
114
|
promise.catch((e) => console.log(e.message));
|
106
115
|
}
|
107
116
|
dispose() {
|
108
117
|
if (this._firebase_app) {
|
109
118
|
try {
|
110
119
|
this._firebase_ref && this._firebase_ref.off('value', this._onValue, this);
|
111
|
-
this._firebase_auth && this._firebase_auth
|
112
|
-
this._firebase_app && this._firebase_app
|
120
|
+
this._firebase_auth && signOut(this._firebase_auth);
|
121
|
+
this._firebase_app && deleteApp(this._firebase_app);
|
113
122
|
console.log('disposed - firebase');
|
114
123
|
}
|
115
124
|
catch (e) {
|
package/dist/firebase.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAMpG,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;SACnB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,YAAY;SACvB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,aAAa;YACnB,QAAQ,EAAE,aAAa;SACxB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,WAAW;SACtB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,eAAe;SAC1B;QACD;YACE,I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AED,OAAO;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI;gBACF,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;gBAC1E,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAA;gBACpD,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAA;gBAEjD,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;aACnC;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;aACjB;SACF;QAED,OAAO,IAAI,CAAC,cAAc,CAAA;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAA;QACzB,OAAO,IAAI,CAAC,aAAa,CAAA;QAEzB,KAAK,CAAC,OAAO,EAAE,CAAA;IACjB,CAAC;IAED,KAAK,CAAC,OAAiC;QACrC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,CAAA;QAE9C,OAAO,CAAC,SAAS,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IACnE,CAAC;IAED,IAAI,MAAM;QACR,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { Component, DataSource, error, RectPath, ScriptLoader, Shape } from '@hatiolab/things-scene'\n\ndeclare global {\n var firebase: any\n}\n\nconst NATURE = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'string',\n label: 'api-key',\n name: 'apiKey',\n property: 'apiKey'\n },\n {\n type: 'string',\n label: 'auth-domain',\n name: 'authDomain',\n property: 'authDomain'\n },\n {\n type: 'string',\n label: 'database-url',\n name: 'databaseURL',\n property: 'databaseURL'\n },\n {\n type: 'string',\n label: 'project-id',\n name: 'projectId',\n property: 'projectId'\n },\n {\n type: 'string',\n label: 'storage-bucket',\n name: 'storageBucket',\n property: 'storageBucket'\n },\n {\n type: 'string',\n label: 'messaging-sender-id',\n name: 'messagingSenderId',\n property: 'messagingSenderId'\n },\n {\n type: 'string',\n label: 'child-data-path',\n name: 'childDataPath',\n property: 'childDataPath'\n },\n {\n type: 'string',\n label: 'email-id',\n name: 'email',\n property: 'email'\n },\n {\n type: 'string',\n label: 'password',\n name: 'password',\n property: 'password'\n }\n ]\n // help: 'scene/component/firebase'\n}\n\nconst FIREBASE_IMAGE =\n 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAMAAAAKE/YAAAABiVBMVEVHcEz/01z/vkLztDj/xkr1szn9wEX7v0j5uD//11n1sjf/w0b9vUT/xUb/sS3poSb/rST/tTrxqSv/sjD/tjjsoyT/qx7/tTbpoST/ryn/00r/riX/tDT/tz7/rynpoibooCXpnSj/0UL/rSL/zzv/xE7/0UL/sjHuqyXuqybtqCfqpCb/00r/qhv/zjb/0UL/zjj/zTT/sS//ryf/uEH4skL/1lf/uUD/yir/zC//yyz/yy7/yy3/zDD1ggv1ggz2gw31gQr0gAn+pAz1fQv/0Sr+ogr0gAz/4UT9pg73lw73gAz9og3/zynvbQD/zSn4mg77oA36nQ38zVPudA33jg3wkxD0lA7ucQr1iAz8yVD2uSjwbwDzsyf/0y/7wir/4EH5vij/0C7wrif4kgD+yCvxjA7ubgj9xSjpgQr8yULydQD/qBT/pAn/pxL/pg//qRf/phH/pQ7/oQT/phD/qBb/qx3/pQ3/pAv/2ED/zDH/pA3/tz//ySf+pQ/+0lT/yyv/ySP/yinifeuoAAAAOHRSTlMAFFwZRQ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QhgVP61qre05I3J/o5GDdy1SawvvmfuzwTI2RY7vTNhV8RJsEZWNVr2U+zsTXmQZgR24SD3Wnbk/q+R5kLSd0qM0yP1ZJ19szUaOcWfi/uyziuVBDbsz9zcdWdEc1ABn7m9CcvP90/q1t8H9Tc1tbF67szD9BfAOPmLZKdo94cz7t/XgXUSlJHzSmfAytL/hY9No7OfM/WXwZvykrRH7OHN/DuCZsRG7Hs5iwP7ZGJsdF/nImUx/C3AAHhvCh863/ZPcnyOYscHHzkjcn0MESXVC/bczUtOG4CTm+4d078z9uUj+MzZ32tyfu4QbUyQ7f+/fChzHvxYpkH6VSRYZuAx//+pPgVfEmftznuW6lbJpZFWkAfwfvCxN0jDyYRgzMzMzM1/dCbx3RzPDJwAAAABJRU5ErkJggg=='\n\nvar idx = 0\n\nexport default class Firebase extends DataSource(RectPath(Shape)) {\n private static _image: HTMLImageElement\n private _firebase_app: any\n private _firebase_auth: any\n private _firebase_ref: any\n\n static get image() {\n if (!Firebase._image) {\n Firebase._image = new Image()\n Firebase._image.src = FIREBASE_IMAGE\n }\n\n return Firebase._image\n }\n\n added() {\n ScriptLoader.load('https://www.gstatic.com/firebasejs/4.6.2/firebase.js').then(() => {\n if (!this.app.isViewMode || this._firebase_app) return\n\n this._initFirebase()\n }, error)\n }\n\n _onValue(snapshot: any) {\n this.data = snapshot.val()\n }\n\n _initFirebase() {\n var {\n apiKey,\n authDomain,\n databaseURL,\n projectId,\n storageBucket,\n messagingSenderId,\n childDataPath,\n authToken,\n email,\n password\n } = this.state\n\n var self = this\n\n this._firebase_app = firebase.initializeApp(\n { apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId },\n 'FBAPP-' + ++idx\n )\n this._firebase_auth = firebase.auth(this._firebase_app)\n\n this._firebase_auth.onAuthStateChanged((firebaseUser: any) => {\n if (firebaseUser) {\n console.log('logged in', firebaseUser)\n self._firebase_ref = this._firebase_app.database().ref().child(childDataPath)\n self._firebase_ref.on('value', self._onValue, self)\n } else {\n console.log('not logged in.')\n }\n })\n\n var promise = email\n ? this._firebase_auth.signInWithEmailAndPassword(email, password)\n : this._firebase_auth.signInAnonymously()\n\n promise.catch((e: Error) => console.log(e.message))\n }\n\n dispose() {\n if (this._firebase_app) {\n try {\n this._firebase_ref && this._firebase_ref.off('value', this._onValue, this)\n this._firebase_auth && this._firebase_auth.signOut()\n this._firebase_app && this._firebase_app.delete()\n\n console.log('disposed - firebase')\n } catch (e) {\n console.error(e)\n }\n }\n\n delete this._firebase_auth\n delete this._firebase_ref\n delete this._firebase_app\n\n super.dispose()\n }\n\n _draw(context: CanvasRenderingContext2D) {\n var { left, top, width, height } = this.bounds\n\n context.beginPath()\n this.drawImage(context, Firebase.image, left, top, width, height)\n }\n\n get nature() {\n return NATURE\n }\n}\n\nComponent.register('firebase', Firebase)\n"]}
|
1
|
+
{"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AACtF,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAMnH,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,QAAQ;SACnB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,Y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C,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IACnE,CAAC;IAED,IAAI,MAAM;QACR,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { Component, DataSource, error, RectPath, Shape } from '@hatiolab/things-scene'\nimport { initializeApp, deleteApp } from 'firebase/app'\nimport { getDatabase, ref, child, onValue } from 'firebase/database'\nimport { getAuth, onAuthStateChanged, signInAnonymously, signInWithEmailAndPassword, signOut } from 'firebase/auth'\n\ndeclare global {\n var firebase: any\n}\n\nconst NATURE = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'string',\n label: 'api-key',\n name: 'apiKey',\n property: 'apiKey'\n },\n {\n type: 'string',\n label: 'auth-domain',\n name: 'authDomain',\n property: 'authDomain'\n },\n {\n type: 'string',\n label: 'database-url',\n name: 'databaseURL',\n property: 'databaseURL'\n },\n {\n type: 'string',\n label: 'project-id',\n name: 'projectId',\n property: 'projectId'\n },\n {\n type: 'string',\n label: 'storage-bucket',\n name: 'storageBucket',\n property: 'storageBucket'\n },\n {\n type: 'string',\n label: 'messaging-sender-id',\n name: 'messagingSenderId',\n property: 'messagingSenderId'\n },\n {\n type: 'string',\n label: 'child-data-path',\n name: 'childDataPath',\n property: 'childDataPath'\n },\n {\n type: 'string',\n label: 'email-id',\n name: 'email',\n property: 'email'\n },\n {\n type: 'string',\n label: 'password',\n name: 'password',\n property: 'password'\n }\n ]\n // help: 'scene/component/firebase'\n}\n\nconst FIREBASE_IMAGE =\n 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAMAAAAKE/YAAAABiVBMVEVHcEz/01z/vkLztDj/xkr1szn9wEX7v0j5uD//11n1sjf/w0b9vUT/xUb/sS3poSb/rST/tTrxqSv/sjD/tjjsoyT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fSz5abojSPSHOHM5JWbllpLfe+eECEVn4Zmg1ShgXRIkmpmxu2icmagLiPKoGod6hd5WqXumQdTHjKw2SHRWniH1UZSB6Apl4zxdzwz9Oilz/rukRBNzyp4ZejNpfYwK2v2zYgbVx1IQactM/d8dGb+QeF0yWhkzq8QHm2UZiM6WWSW+9xZl3cykN3jcpPUxsdq2Mvqn8LibI8nWpf36QVaeGVqbTrYuGVfnmeWZqXOJ0jG/naVnro98AujJxassmbk+kvxenj+7zDwbym2+WyskgX572fyMeqf8brfsUhyEoTB6QRxLKQiC4FsVEKzdQH+e72O4CwhGjAjdRGHoyqeZ6XChTMFWYzPgWcHhksOXvndGkmUIL5MDpG2t1JR3FqJuEx+GEayrTumpnAWeqrUHw1ls5VHp4wTOhOcq/oBxiEq5V/ujpb8oK5MsIhiPcFNrtbfqjNRsQhgVP61qre05I3J/o5GDdy1SawvvmfuzwTI2RY7vTNhV8RJsEZWNVr2U+zsTXmQZgR24SD3Wnbk/q+R5kLSd0qM0yP1ZJ19szUaOcWfi/uyziuVBDbsz9zcdWdEc1ABn7m9CcvP90/q1t8H9Tc1tbF67szD9BfAOPmLZKdo94cz7t/XgXUSlJHzSmfAytL/hY9No7OfM/WXwZvykrRH7OHN/DuCZsRG7Hs5iwP7ZGJsdF/nImUx/C3AAHhvCh863/ZPcnyOYscHHzkjcn0MESXVC/bczUtOG4CTm+4d078z9uUj+MzZ32tyfu4QbUyQ7f+/fChzHvxYpkH6VSRYZuAx//+pPgVfEmftznuW6lbJpZFWkAfwfvCxN0jDyYRgzMzMzM1/dCbx3RzPDJwAAAABJRU5ErkJggg=='\n\nvar idx = 0\n\nexport default class Firebase extends DataSource(RectPath(Shape)) {\n private static _image: HTMLImageElement\n private _firebase_app: any\n private _firebase_auth: any\n private _firebase_ref: any\n\n static get image() {\n if (!Firebase._image) {\n Firebase._image = new Image()\n Firebase._image.src = FIREBASE_IMAGE\n }\n\n return Firebase._image\n }\n\n added() {\n if (!this.app.isViewMode || this._firebase_app) {\n return\n }\n\n try {\n this._initFirebase()\n } catch (err) {\n error(err)\n }\n }\n\n _onValue(snapshot: any) {\n this.data = snapshot.val()\n }\n\n _initFirebase() {\n var {\n apiKey,\n authDomain,\n databaseURL,\n projectId,\n storageBucket,\n messagingSenderId,\n childDataPath,\n email,\n password\n } = this.state\n\n var self = this\n\n this._firebase_app = initializeApp(\n { apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId },\n 'FBAPP-' + ++idx\n )\n this._firebase_auth = getAuth(this._firebase_app)\n\n onAuthStateChanged(this._firebase_auth, (firebaseUser: any) => {\n if (firebaseUser) {\n console.log('logged in', firebaseUser)\n const database = getDatabase(this._firebase_app)\n const parent = ref(database)\n self._firebase_ref = child(parent, childDataPath)\n onValue(self._firebase_ref, self._onValue.bind(self))\n } else {\n console.log('not logged in.')\n }\n })\n\n var promise = email\n ? signInWithEmailAndPassword(this._firebase_auth, email, password)\n : signInAnonymously(this._firebase_auth)\n\n promise.catch((e: Error) => console.log(e.message))\n }\n\n dispose() {\n if (this._firebase_app) {\n try {\n this._firebase_ref && this._firebase_ref.off('value', this._onValue, this)\n this._firebase_auth && signOut(this._firebase_auth)\n this._firebase_app && deleteApp(this._firebase_app)\n\n console.log('disposed - firebase')\n } catch (e) {\n console.error(e)\n }\n }\n\n delete this._firebase_auth\n delete this._firebase_ref\n delete this._firebase_app\n\n super.dispose()\n }\n\n _draw(context: CanvasRenderingContext2D) {\n var { left, top, width, height } = this.bounds\n\n context.beginPath()\n this.drawImage(context, Firebase.image, left, top, width, height)\n }\n\n get nature() {\n return NATURE\n }\n}\n\nComponent.register('firebase', Firebase)\n"]}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"keep": {
|
3
|
+
"days": true,
|
4
|
+
"amount": 2
|
5
|
+
},
|
6
|
+
"auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
|
7
|
+
"files": [
|
8
|
+
{
|
9
|
+
"date": 1669911760714,
|
10
|
+
"name": "logs/application-2022-12-02-01.log",
|
11
|
+
"hash": "6d3c88b4ea36d605545671fc941c346c6602020a8fbf81bccb54095e4a0bf0c1"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"hashType": "sha256"
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"keep": {
|
3
|
+
"days": true,
|
4
|
+
"amount": 14
|
5
|
+
},
|
6
|
+
"auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
|
7
|
+
"files": [
|
8
|
+
{
|
9
|
+
"date": 1669911762112,
|
10
|
+
"name": "logs/connections-2022-12-02-01.log",
|
11
|
+
"hash": "325c6dbea870e5eb69062c36e28ed3efef881fc03874d0c92f53de9946e82f96"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"hashType": "sha256"
|
15
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
2022-12-02T01:22:41+09:00 info: File Storage is Ready.
|
2
|
+
2022-12-02T01:22:42+09:00 error: oracledb module loading failed
|
3
|
+
2022-12-02T01:22:49+09:00 info: File Storage is Ready.
|
4
|
+
2022-12-02T01:22:49+09:00 error: oracledb module loading failed
|
5
|
+
2022-12-02T01:22:50+09:00 info: Default DataSource established
|
6
|
+
2022-12-02T01:22:50+09:00 info: Transaction DataSource established
|
7
|
+
2022-12-02T01:22:51+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
8
|
+
2022-12-02T01:22:51+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
@@ -0,0 +1,35 @@
|
|
1
|
+
2022-12-02T01:22:51+09:00 info: Initializing ConnectionManager...
|
2
|
+
2022-12-02T01:22:51+09:00 info: Connector 'echo-back-server' started to ready
|
3
|
+
2022-12-02T01:22:51+09:00 info: Connector 'echo-back' started to ready
|
4
|
+
2022-12-02T01:22:51+09:00 info: Connector 'http-connector' started to ready
|
5
|
+
2022-12-02T01:22:51+09:00 info: Connector 'graphql-connector' started to ready
|
6
|
+
2022-12-02T01:22:51+09:00 info: Connector 'sqlite-connector' started to ready
|
7
|
+
2022-12-02T01:22:51+09:00 info: Connector 'postgresql-connector' started to ready
|
8
|
+
2022-12-02T01:22:51+09:00 info: Connector 'mqtt-connector' started to ready
|
9
|
+
2022-12-02T01:22:51+09:00 info: Connector 'mssql-connector' started to ready
|
10
|
+
2022-12-02T01:22:51+09:00 info: Connector 'oracle-connector' started to ready
|
11
|
+
2022-12-02T01:22:51+09:00 info: Connector 'mysql-connector' started to ready
|
12
|
+
2022-12-02T01:22:51+09:00 info: Connector 'socket-server' started to ready
|
13
|
+
2022-12-02T01:22:51+09:00 info: echo-back-servers are ready
|
14
|
+
2022-12-02T01:22:51+09:00 info: echo-back connections are ready
|
15
|
+
2022-12-02T01:22:51+09:00 info: http-connector connections are ready
|
16
|
+
2022-12-02T01:22:51+09:00 info: graphql-connector connections are ready
|
17
|
+
2022-12-02T01:22:51+09:00 info: sqlite-connector connections are ready
|
18
|
+
2022-12-02T01:22:51+09:00 info: postgresql-connector connections are ready
|
19
|
+
2022-12-02T01:22:51+09:00 info: mqtt-connector connections are ready
|
20
|
+
2022-12-02T01:22:51+09:00 info: mssql-connector connections are ready
|
21
|
+
2022-12-02T01:22:51+09:00 info: oracle-connector connections are ready
|
22
|
+
2022-12-02T01:22:51+09:00 info: mysql-connector connections are ready
|
23
|
+
2022-12-02T01:22:51+09:00 info: socket servers are ready
|
24
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'echo-back-server' ready
|
25
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'echo-back' ready
|
26
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'http-connector' ready
|
27
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'graphql-connector' ready
|
28
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'sqlite-connector' ready
|
29
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'postgresql-connector' ready
|
30
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'mqtt-connector' ready
|
31
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'mssql-connector' ready
|
32
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'oracle-connector' ready
|
33
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'mysql-connector' ready
|
34
|
+
2022-12-02T01:22:51+09:00 info: All connector for 'socket-server' ready
|
35
|
+
2022-12-02T01:22:51+09:00 info: ConnectionManager initialization done:
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Firebase datasource component for things-scene.",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "heartyoh",
|
6
|
-
"version": "1.1.
|
6
|
+
"version": "1.1.16",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"module": "dist/index.js",
|
9
9
|
"things-scene": true,
|
@@ -27,7 +27,8 @@
|
|
27
27
|
"migration": "things-factory-migration"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@hatiolab/things-scene": "^3.1.0"
|
30
|
+
"@hatiolab/things-scene": "^3.1.0",
|
31
|
+
"firebase": "^9.14.0"
|
31
32
|
},
|
32
33
|
"devDependencies": {
|
33
34
|
"@hatiolab/prettier-config": "^1.0.0",
|
@@ -57,5 +58,5 @@
|
|
57
58
|
"prettier --write"
|
58
59
|
]
|
59
60
|
},
|
60
|
-
"gitHead": "
|
61
|
+
"gitHead": "75d50633ce2523e6c05ed14d369c1f83b2601f5a"
|
61
62
|
}
|
package/src/firebase.ts
CHANGED
@@ -2,7 +2,10 @@
|
|
2
2
|
* Copyright © HatioLab Inc. All rights reserved.
|
3
3
|
*/
|
4
4
|
|
5
|
-
import { Component, DataSource, error, RectPath,
|
5
|
+
import { Component, DataSource, error, RectPath, Shape } from '@hatiolab/things-scene'
|
6
|
+
import { initializeApp, deleteApp } from 'firebase/app'
|
7
|
+
import { getDatabase, ref, child, onValue } from 'firebase/database'
|
8
|
+
import { getAuth, onAuthStateChanged, signInAnonymously, signInWithEmailAndPassword, signOut } from 'firebase/auth'
|
6
9
|
|
7
10
|
declare global {
|
8
11
|
var firebase: any
|
@@ -92,11 +95,15 @@ export default class Firebase extends DataSource(RectPath(Shape)) {
|
|
92
95
|
}
|
93
96
|
|
94
97
|
added() {
|
95
|
-
|
96
|
-
|
98
|
+
if (!this.app.isViewMode || this._firebase_app) {
|
99
|
+
return
|
100
|
+
}
|
97
101
|
|
102
|
+
try {
|
98
103
|
this._initFirebase()
|
99
|
-
}
|
104
|
+
} catch (err) {
|
105
|
+
error(err)
|
106
|
+
}
|
100
107
|
}
|
101
108
|
|
102
109
|
_onValue(snapshot: any) {
|
@@ -112,32 +119,33 @@ export default class Firebase extends DataSource(RectPath(Shape)) {
|
|
112
119
|
storageBucket,
|
113
120
|
messagingSenderId,
|
114
121
|
childDataPath,
|
115
|
-
authToken,
|
116
122
|
email,
|
117
123
|
password
|
118
124
|
} = this.state
|
119
125
|
|
120
126
|
var self = this
|
121
127
|
|
122
|
-
this._firebase_app =
|
128
|
+
this._firebase_app = initializeApp(
|
123
129
|
{ apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId },
|
124
130
|
'FBAPP-' + ++idx
|
125
131
|
)
|
126
|
-
this._firebase_auth =
|
132
|
+
this._firebase_auth = getAuth(this._firebase_app)
|
127
133
|
|
128
|
-
this._firebase_auth
|
134
|
+
onAuthStateChanged(this._firebase_auth, (firebaseUser: any) => {
|
129
135
|
if (firebaseUser) {
|
130
136
|
console.log('logged in', firebaseUser)
|
131
|
-
|
132
|
-
|
137
|
+
const database = getDatabase(this._firebase_app)
|
138
|
+
const parent = ref(database)
|
139
|
+
self._firebase_ref = child(parent, childDataPath)
|
140
|
+
onValue(self._firebase_ref, self._onValue.bind(self))
|
133
141
|
} else {
|
134
142
|
console.log('not logged in.')
|
135
143
|
}
|
136
144
|
})
|
137
145
|
|
138
146
|
var promise = email
|
139
|
-
? this._firebase_auth
|
140
|
-
: this._firebase_auth
|
147
|
+
? signInWithEmailAndPassword(this._firebase_auth, email, password)
|
148
|
+
: signInAnonymously(this._firebase_auth)
|
141
149
|
|
142
150
|
promise.catch((e: Error) => console.log(e.message))
|
143
151
|
}
|
@@ -146,8 +154,8 @@ export default class Firebase extends DataSource(RectPath(Shape)) {
|
|
146
154
|
if (this._firebase_app) {
|
147
155
|
try {
|
148
156
|
this._firebase_ref && this._firebase_ref.off('value', this._onValue, this)
|
149
|
-
this._firebase_auth && this._firebase_auth
|
150
|
-
this._firebase_app && this._firebase_app
|
157
|
+
this._firebase_auth && signOut(this._firebase_auth)
|
158
|
+
this._firebase_app && deleteApp(this._firebase_app)
|
151
159
|
|
152
160
|
console.log('disposed - firebase')
|
153
161
|
} catch (e) {
|
package/tsconfig.tsbuildinfo
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/tslib/tslib.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@hatiolab/things-scene/things-scene.d.ts","./src/firebase.ts","./src/index.ts","../../node_modules/@types/node/ts4.8/assert.d.ts","../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../node_modules/@types/node/ts4.8/globals.d.ts","../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../node_modules/@types/node/ts4.8/buffer.d.ts","../../node_modules/@types/node/ts4.8/child_process.d.ts","../../node_modules/@types/node/ts4.8/cluster.d.ts","../../node_modules/@types/node/ts4.8/console.d.ts","../../node_modules/@types/node/ts4.8/constants.d.ts","../../node_modules/@types/node/ts4.8/crypto.d.ts","../../node_modules/@types/node/ts4.8/dgram.d.ts","../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../node_modules/@types/node/ts4.8/dns.d.ts","../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../node_modules/@types/node/ts4.8/domain.d.ts","../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../node_modules/@types/node/ts4.8/events.d.ts","../../node_modules/@types/node/ts4.8/fs.d.ts","../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../node_modules/@types/node/ts4.8/http.d.ts","../../node_modules/@types/node/ts4.8/http2.d.ts","../../node_modules/@types/node/ts4.8/https.d.ts","../../node_modules/@types/node/ts4.8/inspector.d.ts","../../node_modules/@types/node/ts4.8/module.d.ts","../../node_modules/@types/node/ts4.8/net.d.ts","../../node_modules/@types/node/ts4.8/os.d.ts","../../node_modules/@types/node/ts4.8/path.d.ts","../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../node_modules/@types/node/ts4.8/process.d.ts","../../node_modules/@types/node/ts4.8/punycode.d.ts","../../node_modules/@types/node/ts4.8/querystring.d.ts","../../node_modules/@types/node/ts4.8/readline.d.ts","../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../node_modules/@types/node/ts4.8/repl.d.ts","../../node_modules/@types/node/ts4.8/stream.d.ts","../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../node_modules/@types/node/ts4.8/test.d.ts","../../node_modules/@types/node/ts4.8/timers.d.ts","../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../node_modules/@types/node/ts4.8/tls.d.ts","../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../node_modules/@types/node/ts4.8/tty.d.ts","../../node_modules/@types/node/ts4.8/url.d.ts","../../node_modules/@types/node/ts4.8/util.d.ts","../../node_modules/@types/node/ts4.8/v8.d.ts","../../node_modules/@types/node/ts4.8/vm.d.ts","../../node_modules/@types/node/ts4.8/wasi.d.ts","../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../node_modules/@types/node/ts4.8/zlib.d.ts","../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../node_modules/@types/node/ts4.8/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","94088ef4a736d309d8fbe9dc88841f885ca417772ab49e17f0000b21118a7173","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"166a54f866bba550a1bb5725f778dbdaa647a15b31976c5353f8135bf8c53227",{"version":"036b4718b53c45caf8b030336c1ac9d1bcc6a9e50e59e14129b338cc06f38d32","signature":"dbe3e5ee4587c0627ea12d74d30c37087588bd46a60fd70543126f6de1ff0ec1","affectsGlobalScope":true},{"version":"90775e7d9ecf06209058940ee88539d3b6fa7fb73cb4a6e7c133993636e59323","signature":"c2fdffc89e2a4d1ee0f0772c080dd3abb805699a3f2817317d094d9e3bcddbb8"},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"02873d070f9cb79f50833fbf4a9a27ac578a2edf8ddb8421eba1b37faba83bfb","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"c0db280fa6b09d7b8d6720a19a47f485956a41ee0e6914f1b704033eb69c6058","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","afcc1c426b76db7ec80e563d4fb0ba9e6bcc6e63c2d7e9342e649dc56d26347f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d4ac44f01d42f541631c5fc88d0ed8efac29a3a3ad9a745d9fd58f8b61ed132e","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","3163f47436da41706c6e2b3c1511f3b7cce9f9f3905b2f3e01246c48b4ba7d14","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","213fc4f2b172d8beb74b77d7c1b41488d67348066d185e4263470cbb010cd6e8",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"f7db71191aa7aac5d6bc927ed6e7075c2763d22c7238227ec0c63c8cf5cb6a8b","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./dist","rootDir":"./src","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[55,105],[43,45,46,47,48,49,50,51,52,53,54,55,105],[43,44,46,47,48,49,50,51,52,53,54,55,105],[44,45,46,47,48,49,50,51,52,53,54,55,105],[43,44,45,47,48,49,50,51,52,53,54,55,105],[43,44,45,46,48,49,50,51,52,53,54,55,105],[43,44,45,46,47,49,50,51,52,53,54,55,105],[43,44,45,46,47,48,50,51,52,53,54,55,105],[43,44,45,46,47,48,49,51,52,53,54,55,105],[43,44,45,46,47,48,49,50,52,53,54,55,105],[43,44,45,46,47,48,49,50,51,53,54,55,105],[43,44,45,46,47,48,49,50,51,52,54,55,105],[43,44,45,46,47,48,49,50,51,52,53,55,105],[43,44,45,46,47,48,49,50,51,52,53,54,105],[59,105],[62,105],[63,68,96,105],[64,75,76,83,93,104,105],[64,65,75,83,105],[66,105],[67,68,76,84,105],[68,93,101,105],[69,71,75,83,105],[70,105],[71,72,105],[75,105],[73,75,105],[75,76,77,93,104,105],[75,76,77,90,93,96,105],[105,109],[105],[78,83,93,104,105],[75,76,78,79,83,93,101,104,105],[78,80,93,101,104,105],[59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],[75,81,105],[82,104,105],[71,75,83,93,105],[84,105],[85,105],[62,86,105],[87,103,105,109],[88,105],[89,105],[75,90,91,105],[90,92,105,107],[63,75,93,94,95,96,105],[63,93,95,105],[93,94,105],[96,105],[97,105],[75,99,100,105],[99,100,105],[68,83,93,101,105],[102,105],[83,103,105],[63,78,89,104,105],[68,105],[93,105,106],[105,107],[105,108],[63,68,75,77,86,93,104,105,107,109],[93,105,110],[42,56,105],[42,57,105],[56],[57]],"referencedMap":[[56,1],[44,2],[45,3],[43,4],[46,5],[47,6],[48,7],[49,8],[50,9],[51,10],[52,11],[53,12],[54,13],[55,14],[59,15],[60,15],[62,16],[63,17],[64,18],[65,19],[66,20],[67,21],[68,22],[69,23],[70,24],[71,25],[72,25],[74,26],[73,27],[75,26],[76,28],[77,29],[61,30],[111,31],[78,32],[79,33],[80,34],[112,35],[81,36],[82,37],[83,38],[84,39],[85,40],[86,41],[87,42],[88,43],[89,44],[90,45],[91,45],[92,46],[93,47],[95,48],[94,49],[96,50],[97,51],[98,31],[99,52],[100,53],[101,54],[102,55],[103,56],[104,57],[105,58],[106,59],[107,60],[108,61],[109,62],[110,63],[42,31],[8,31],[10,31],[9,31],[2,31],[11,31],[12,31],[13,31],[14,31],[15,31],[16,31],[17,31],[18,31],[3,31],[4,31],[22,31],[19,31],[20,31],[21,31],[23,31],[24,31],[25,31],[5,31],[26,31],[27,31],[28,31],[29,31],[6,31],[30,31],[31,31],[32,31],[33,31],[7,31],[34,31],[39,31],[40,31],[35,31],[36,31],[37,31],[38,31],[1,31],[41,31],[57,64],[58,65]],"exportedModulesMap":[[56,1],[44,2],[45,3],[43,4],[46,5],[47,6],[48,7],[49,8],[50,9],[51,10],[52,11],[53,12],[54,13],[55,14],[59,15],[60,15],[62,16],[63,17],[64,18],[65,19],[66,20],[67,21],[68,22],[69,23],[70,24],[71,25],[72,25],[74,26],[73,27],[75,26],[76,28],[77,29],[61,30],[111,31],[78,32],[79,33],[80,34],[112,35],[81,36],[82,37],[83,38],[84,39],[85,40],[86,41],[87,42],[88,43],[89,44],[90,45],[91,45],[92,46],[93,47],[95,48],[94,49],[96,50],[97,51],[98,31],[99,52],[100,53],[101,54],[102,55],[103,56],[104,57],[105,58],[106,59],[107,60],[108,61],[109,62],[110,63],[42,31],[8,31],[10,31],[9,31],[2,31],[11,31],[12,31],[13,31],[14,31],[15,31],[16,31],[17,31],[18,31],[3,31],[4,31],[22,31],[19,31],[20,31],[21,31],[23,31],[24,31],[25,31],[5,31],[26,31],[27,31],[28,31],[29,31],[6,31],[30,31],[31,31],[32,31],[33,31],[7,31],[34,31],[39,31],[40,31],[35,31],[36,31],[37,31],[38,31],[1,31],[41,31],[57,66],[58,67]],"semanticDiagnosticsPerFile":[56,44,45,43,46,47,48,49,50,51,52,53,54,55,59,60,62,63,64,65,66,67,68,69,70,71,72,74,73,75,76,77,61,111,78,79,80,112,81,82,83,84,85,86,87,88,89,90,91,92,93,95,94,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,42,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,34,39,40,35,36,37,38,1,41,57,58]},"version":"4.8.4"}
|
1
|
+
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/tslib/tslib.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@hatiolab/things-scene/things-scene.d.ts","../../node_modules/@firebase/component/dist/src/provider.d.ts","../../node_modules/@firebase/component/dist/src/component_container.d.ts","../../node_modules/@firebase/component/dist/src/types.d.ts","../../node_modules/@firebase/component/dist/src/component.d.ts","../../node_modules/@firebase/component/dist/index.d.ts","../../node_modules/@firebase/util/dist/util-public.d.ts","../../node_modules/@firebase/logger/dist/src/logger.d.ts","../../node_modules/@firebase/logger/dist/index.d.ts","../../node_modules/@firebase/app/dist/app-public.d.ts","../../node_modules/firebase/app/dist/app/index.d.ts","../../node_modules/@firebase/database/dist/public.d.ts","../../node_modules/firebase/database/dist/database/index.d.ts","../../node_modules/@firebase/auth/dist/auth-public.d.ts","../../node_modules/firebase/auth/dist/auth/index.d.ts","./src/firebase.ts","./src/index.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/dom-events.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/readline/promises.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/test.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"434c3f188ffc1966b414213f143f626997d710d4e653167dba53d2e9ae1f8c39","e94b01c6c9221682a1ffd8577103408642c5433923420e517d8d8c695c4875c0","466a15bf7238ebd3900d136db38eec3af69d0761c0286ab59952870eedd6e319","9113ebe8d776516d3a302ec431d28915c9398a75beaef1eb38cd66ae0bfeb014","1f4df460bfe98e20fae494ade49e50c98ed1997143c7eae7a00a1cd93bfd4307","e179bf25417780781dc994f657e724419e6dcbe5a136dbfa55efefe36bdb4b63","ec8ce238171bc87de9522bae23bccb5ee454272547c2a53078249d2813d42c95","a0abcb32b7a9291276879912c9a3205fbd1d6930ae4f29e91fe30227e2762893","b67fb584ca2449669c113e75866d339ee4e6bc74a441efd00c1beac460412584","90e7ca3372483129ad265c604b2225e250a4739ed966c3859648332ae36ed4fa","0f79f9784797e5358bbed18b363b220eaed94de7c1ed2f193465ac232fe48eb1","002f8f7a43c8ffdada27365975af3f55909314f83cb2050098633e7625a23bfc","74811fe19eb02d382d9f7b4d35fc1253a976a5f017895065f069345dfb379bb2","56fd9fda080ed02b9b99092536dfff1fca348d2fe1fe83c2fb9c6f2179ca6f65","6187d97d074e4a66a0179ff2cdd845e1809b70ff5d7b857e0c686f52a86f62f7",{"version":"c7831f390f653f5c246432882f8d0c0fd152526b768aefd970345529ddbdbdfb","signature":"dbe3e5ee4587c0627ea12d74d30c37087588bd46a60fd70543126f6de1ff0ec1","affectsGlobalScope":true},{"version":"90775e7d9ecf06209058940ee88539d3b6fa7fb73cb4a6e7c133993636e59323","signature":"c2fdffc89e2a4d1ee0f0772c080dd3abb805699a3f2817317d094d9e3bcddbb8"},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"ca72190df0eb9b09d4b600821c8c7b6c9747b75a1c700c4d57dc0bb72abc074c","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"bb65c6267c5d6676be61acbf6604cf0a4555ac4b505df58ac15c831fcbff4e3e","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","afcc1c426b76db7ec80e563d4fb0ba9e6bcc6e63c2d7e9342e649dc56d26347f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d076fede3cb042e7b13fc29442aaa03a57806bc51e2b26a67a01fbc66a7c0c12","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","fd93cee2621ff42dabe57b7be402783fd1aa69ece755bcba1e0290547ae60513","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","213fc4f2b172d8beb74b77d7c1b41488d67348066d185e4263470cbb010cd6e8",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"f7db71191aa7aac5d6bc927ed6e7075c2763d22c7238227ec0c63c8cf5cb6a8b","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"e9a8d4274033cb520ee12d6f68d161ba2b9128b87399645d3916b71187032836"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./dist","rootDir":"./src","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[62,63,65,120],[63,66,120],[58,59,60,61,120],[60,120],[58,60,61,120],[59,60,61,120],[59,120],[64,120],[120],[56,120],[44,46,47,48,49,50,51,52,53,54,55,56,120],[44,45,47,48,49,50,51,52,53,54,55,56,120],[45,46,47,48,49,50,51,52,53,54,55,56,120],[44,45,46,48,49,50,51,52,53,54,55,56,120],[44,45,46,47,49,50,51,52,53,54,55,56,120],[44,45,46,47,48,50,51,52,53,54,55,56,120],[44,45,46,47,48,49,51,52,53,54,55,56,120],[44,45,46,47,48,49,50,52,53,54,55,56,120],[44,45,46,47,48,49,50,51,53,54,55,56,120],[44,45,46,47,48,49,50,51,52,54,55,56,120],[44,45,46,47,48,49,50,51,52,53,55,56,120],[44,45,46,47,48,49,50,51,52,53,54,56,120],[44,45,46,47,48,49,50,51,52,53,54,55,120],[74,120],[77,120],[78,83,111,120],[79,90,91,98,108,119,120],[79,80,90,98,120],[81,120],[82,83,91,99,120],[83,108,116,120],[84,86,90,98,120],[85,120],[86,87,120],[90,120],[88,90,120],[90,91,92,108,119,120],[90,91,92,105,108,111,120],[120,124],[93,98,108,119,120],[90,91,93,94,98,108,116,119,120],[93,95,108,116,119,120],[74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126],[90,96,120],[97,119,120],[86,90,98,108,120],[99,120],[100,120],[77,101,120],[102,118,120,124],[103,120],[104,120],[90,105,106,120],[105,107,120,122],[78,90,108,109,110,111,120],[78,108,110,120],[108,109,120],[111,120],[112,120],[90,114,115,120],[114,115,120],[83,98,108,116,120],[117,120],[98,118,120],[78,93,104,119,120],[83,120],[108,120,121],[120,122],[120,123],[78,83,90,92,101,108,119,120,122,124],[108,120,125],[66,120],[70,120],[68,120],[43,57,67,69,71,120],[43,72,120],[57],[72]],"referencedMap":[[66,1],[70,2],[62,3],[61,4],[59,5],[58,6],[60,7],[68,2],[65,8],[64,9],[63,9],[57,10],[45,11],[46,12],[44,13],[47,14],[48,15],[49,16],[50,17],[51,18],[52,19],[53,20],[54,21],[55,22],[56,23],[74,24],[75,24],[77,25],[78,26],[79,27],[80,28],[81,29],[82,30],[83,31],[84,32],[85,33],[86,34],[87,34],[89,35],[88,36],[90,35],[91,37],[92,38],[76,39],[126,9],[93,40],[94,41],[95,42],[127,43],[96,44],[97,45],[98,46],[99,47],[100,48],[101,49],[102,50],[103,51],[104,52],[105,53],[106,53],[107,54],[108,55],[110,56],[109,57],[111,58],[112,59],[113,9],[114,60],[115,61],[116,62],[117,63],[118,64],[119,65],[120,66],[121,67],[122,68],[123,69],[124,70],[125,71],[67,72],[71,73],[69,74],[43,9],[8,9],[10,9],[9,9],[2,9],[11,9],[12,9],[13,9],[14,9],[15,9],[16,9],[17,9],[18,9],[3,9],[4,9],[22,9],[19,9],[20,9],[21,9],[23,9],[24,9],[25,9],[5,9],[26,9],[27,9],[28,9],[29,9],[6,9],[33,9],[30,9],[31,9],[32,9],[34,9],[7,9],[35,9],[40,9],[41,9],[36,9],[37,9],[38,9],[39,9],[1,9],[42,9],[72,75],[73,76]],"exportedModulesMap":[[66,1],[70,2],[62,3],[61,4],[59,5],[58,6],[60,7],[68,2],[65,8],[64,9],[63,9],[57,10],[45,11],[46,12],[44,13],[47,14],[48,15],[49,16],[50,17],[51,18],[52,19],[53,20],[54,21],[55,22],[56,23],[74,24],[75,24],[77,25],[78,26],[79,27],[80,28],[81,29],[82,30],[83,31],[84,32],[85,33],[86,34],[87,34],[89,35],[88,36],[90,35],[91,37],[92,38],[76,39],[126,9],[93,40],[94,41],[95,42],[127,43],[96,44],[97,45],[98,46],[99,47],[100,48],[101,49],[102,50],[103,51],[104,52],[105,53],[106,53],[107,54],[108,55],[110,56],[109,57],[111,58],[112,59],[113,9],[114,60],[115,61],[116,62],[117,63],[118,64],[119,65],[120,66],[121,67],[122,68],[123,69],[124,70],[125,71],[67,72],[71,73],[69,74],[43,9],[8,9],[10,9],[9,9],[2,9],[11,9],[12,9],[13,9],[14,9],[15,9],[16,9],[17,9],[18,9],[3,9],[4,9],[22,9],[19,9],[20,9],[21,9],[23,9],[24,9],[25,9],[5,9],[26,9],[27,9],[28,9],[29,9],[6,9],[33,9],[30,9],[31,9],[32,9],[34,9],[7,9],[35,9],[40,9],[41,9],[36,9],[37,9],[38,9],[39,9],[1,9],[42,9],[72,77],[73,78]],"semanticDiagnosticsPerFile":[66,70,62,61,59,58,60,68,65,64,63,57,45,46,44,47,48,49,50,51,52,53,54,55,56,74,75,77,78,79,80,81,82,83,84,85,86,87,89,88,90,91,92,76,126,93,94,95,127,96,97,98,99,100,101,102,103,104,105,106,107,108,110,109,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,67,71,69,43,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,72,73]},"version":"4.9.3"}
|