@firebase/performance-compat 0.2.9 → 0.2.10

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.
@@ -41,7 +41,7 @@ class PerformanceCompatImpl {
41
41
  }
42
42
 
43
43
  const name = "@firebase/performance-compat";
44
- const version = "0.2.9";
44
+ const version = "0.2.10";
45
45
 
46
46
  /**
47
47
  * @license
package/dist/index.cjs.js CHANGED
@@ -24,39 +24,30 @@ var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
24
24
  * See the License for the specific language governing permissions and
25
25
  * limitations under the License.
26
26
  */
27
- var PerformanceCompatImpl = /** @class */ (function () {
28
- function PerformanceCompatImpl(app, _delegate) {
27
+ class PerformanceCompatImpl {
28
+ constructor(app, _delegate) {
29
29
  this.app = app;
30
30
  this._delegate = _delegate;
31
31
  }
32
- Object.defineProperty(PerformanceCompatImpl.prototype, "instrumentationEnabled", {
33
- get: function () {
34
- return this._delegate.instrumentationEnabled;
35
- },
36
- set: function (val) {
37
- this._delegate.instrumentationEnabled = val;
38
- },
39
- enumerable: false,
40
- configurable: true
41
- });
42
- Object.defineProperty(PerformanceCompatImpl.prototype, "dataCollectionEnabled", {
43
- get: function () {
44
- return this._delegate.dataCollectionEnabled;
45
- },
46
- set: function (val) {
47
- this._delegate.dataCollectionEnabled = val;
48
- },
49
- enumerable: false,
50
- configurable: true
51
- });
52
- PerformanceCompatImpl.prototype.trace = function (traceName) {
32
+ get instrumentationEnabled() {
33
+ return this._delegate.instrumentationEnabled;
34
+ }
35
+ set instrumentationEnabled(val) {
36
+ this._delegate.instrumentationEnabled = val;
37
+ }
38
+ get dataCollectionEnabled() {
39
+ return this._delegate.dataCollectionEnabled;
40
+ }
41
+ set dataCollectionEnabled(val) {
42
+ this._delegate.dataCollectionEnabled = val;
43
+ }
44
+ trace(traceName) {
53
45
  return performance.trace(this._delegate, traceName);
54
- };
55
- return PerformanceCompatImpl;
56
- }());
46
+ }
47
+ }
57
48
 
58
- var name = "@firebase/performance-compat";
59
- var version = "0.2.9";
49
+ const name = "@firebase/performance-compat";
50
+ const version = "0.2.10";
60
51
 
61
52
  /**
62
53
  * @license
@@ -79,9 +70,9 @@ function registerPerformanceCompat(firebaseInstance) {
79
70
  firebaseInstance.registerVersion(name, version);
80
71
  }
81
72
  function performanceFactory(container) {
82
- var app = container.getProvider('app-compat').getImmediate();
73
+ const app = container.getProvider('app-compat').getImmediate();
83
74
  // The following call will always succeed.
84
- var performance = container.getProvider('performance').getImmediate();
75
+ const performance = container.getProvider('performance').getImmediate();
85
76
  return new PerformanceCompatImpl(app, performance);
86
77
  }
87
78
  registerPerformanceCompat(firebase__default["default"]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/performance.ts","../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n trace,\n FirebasePerformance,\n // The PerformanceTrace type has not changed between modular and non-modular packages.\n PerformanceTrace\n} from '@firebase/performance';\nimport { FirebasePerformance as FirebasePerformanceCompat } from '@firebase/performance-types';\nimport { FirebaseApp, _FirebaseService } from '@firebase/app-compat';\n\nexport class PerformanceCompatImpl\n implements FirebasePerformanceCompat, _FirebaseService\n{\n constructor(\n public app: FirebaseApp,\n readonly _delegate: FirebasePerformance\n ) {}\n\n get instrumentationEnabled(): boolean {\n return this._delegate.instrumentationEnabled;\n }\n\n set instrumentationEnabled(val: boolean) {\n this._delegate.instrumentationEnabled = val;\n }\n\n get dataCollectionEnabled(): boolean {\n return this._delegate.dataCollectionEnabled;\n }\n\n set dataCollectionEnabled(val: boolean) {\n this._delegate.dataCollectionEnabled = val;\n }\n\n trace(traceName: string): PerformanceTrace {\n return trace(this._delegate, traceName);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport firebase, { _FirebaseNamespace } from '@firebase/app-compat';\nimport {\n Component,\n ComponentContainer,\n ComponentType\n} from '@firebase/component';\nimport { PerformanceCompatImpl } from './performance';\nimport { name as packageName, version } from '../package.json';\nimport { FirebasePerformance as FirebasePerformanceCompat } from '@firebase/performance-types';\n\nfunction registerPerformanceCompat(firebaseInstance: _FirebaseNamespace): void {\n firebaseInstance.INTERNAL.registerComponent(\n new Component(\n 'performance-compat',\n performanceFactory,\n ComponentType.PUBLIC\n )\n );\n\n firebaseInstance.registerVersion(packageName, version);\n}\n\nfunction performanceFactory(\n container: ComponentContainer\n): PerformanceCompatImpl {\n const app = container.getProvider('app-compat').getImmediate();\n // The following call will always succeed.\n const performance = container.getProvider('performance').getImmediate();\n\n return new PerformanceCompatImpl(app, performance);\n}\n\nregisterPerformanceCompat(firebase as _FirebaseNamespace);\n\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n performance: {\n (app?: FirebaseApp): FirebasePerformanceCompat;\n };\n }\n interface FirebaseApp {\n performance(): FirebasePerformanceCompat;\n }\n}\n"],"names":["trace","Component","packageName","firebase"],"mappings":";;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;AAWH,IAAA,qBAAA,kBAAA,YAAA;IAGE,SACS,qBAAA,CAAA,GAAgB,EACd,SAA8B,EAAA;QADhC,IAAG,CA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SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,YAAY,EAAE,CAAC;;IAE/D,IAAM,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,YAAY,EAAE,CAAC;AAExE,IAAA,OAAO,IAAI,qBAAqB,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;AACrD,CAAC;AAED,yBAAyB,CAACC,4BAA8B,CAAC;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/performance.ts","../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n trace,\n FirebasePerformance,\n // The PerformanceTrace type has not changed between modular and non-modular packages.\n PerformanceTrace\n} from '@firebase/performance';\nimport { FirebasePerformance as FirebasePerformanceCompat } from '@firebase/performance-types';\nimport { FirebaseApp, _FirebaseService } from '@firebase/app-compat';\n\nexport class PerformanceCompatImpl\n implements FirebasePerformanceCompat, _FirebaseService\n{\n constructor(\n public app: FirebaseApp,\n readonly _delegate: FirebasePerformance\n ) {}\n\n get instrumentationEnabled(): boolean {\n return this._delegate.instrumentationEnabled;\n }\n\n set instrumentationEnabled(val: boolean) {\n this._delegate.instrumentationEnabled = val;\n }\n\n get dataCollectionEnabled(): boolean {\n return this._delegate.dataCollectionEnabled;\n }\n\n set dataCollectionEnabled(val: boolean) {\n this._delegate.dataCollectionEnabled = val;\n }\n\n trace(traceName: string): PerformanceTrace {\n return trace(this._delegate, traceName);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport firebase, { _FirebaseNamespace } from '@firebase/app-compat';\nimport {\n Component,\n ComponentContainer,\n ComponentType\n} from '@firebase/component';\nimport { PerformanceCompatImpl } from './performance';\nimport { name as packageName, version } from '../package.json';\nimport { FirebasePerformance as FirebasePerformanceCompat } from '@firebase/performance-types';\n\nfunction registerPerformanceCompat(firebaseInstance: _FirebaseNamespace): void {\n firebaseInstance.INTERNAL.registerComponent(\n new Component(\n 'performance-compat',\n performanceFactory,\n ComponentType.PUBLIC\n )\n );\n\n firebaseInstance.registerVersion(packageName, version);\n}\n\nfunction performanceFactory(\n container: ComponentContainer\n): PerformanceCompatImpl {\n const app = container.getProvider('app-compat').getImmediate();\n // The following call will always succeed.\n const performance = container.getProvider('performance').getImmediate();\n\n return new PerformanceCompatImpl(app, performance);\n}\n\nregisterPerformanceCompat(firebase as _FirebaseNamespace);\n\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n performance: {\n (app?: FirebaseApp): FirebasePerformanceCompat;\n };\n }\n interface FirebaseApp {\n performance(): FirebasePerformanceCompat;\n }\n}\n"],"names":["trace","Component","packageName","firebase"],"mappings":";;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;MAWU,qBAAqB,CAAA;IAGhC,WACS,CAAA,GAAgB,EACd,SAA8B,EAAA;QADhC,IAAG,CAAA,GAAA,GAAH,GAAG,CAAa;QACd,IAAS,CAAA,SAAA,GAAT,SAAS,CAAqB;KACrC;AAEJ,IAAA,IAAI,sBAAsB,GAAA;AACxB,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC;KAC9C;IAED,IAAI,sBAAsB,CAAC,GAAY,EAAA;AACrC,QAAA,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,GAAG,CAAC;KAC7C;AAED,IAAA,IAAI,qBAAqB,GAAA;AACvB,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC;KAC7C;IAED,IAAI,qBAAqB,CAAC,GAAY,EAAA;AACpC,QAAA,IAAI,CAAC,SAAS,CAAC,qBAAqB,GAAG,GAAG,CAAC;KAC5C;AAED,IAAA,KAAK,CAAC,SAAiB,EAAA;QACrB,OAAOA,iBAAK,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;KACzC;AACF;;;;;ACrDD;;;;;;;;;;;;;;;AAeG;AAYH,SAAS,yBAAyB,CAAC,gBAAoC,EAAA;AACrE,IAAA,gBAAgB,CAAC,QAAQ,CAAC,iBAAiB,CACzC,IAAIC,mBAAS,CACX,oBAAoB,EACpB,kBAAkB,EAAA,QAAA,4BAEnB,CACF,CAAC;AAEF,IAAA,gBAAgB,CAAC,eAAe,CAACC,IAAW,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC;AAED,SAAS,kBAAkB,CACzB,SAA6B,EAAA;IAE7B,MAAM,GAAG,GAAG,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,YAAY,EAAE,CAAC;;IAE/D,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,YAAY,EAAE,CAAC;AAExE,IAAA,OAAO,IAAI,qBAAqB,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;AACrD,CAAC;AAED,yBAAyB,CAACC,4BAA8B,CAAC;;"}
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@firebase/performance-compat",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "The compatibility package of Firebase Performance",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.cjs.js",
7
7
  "browser": "dist/esm/index.esm2017.js",
8
8
  "module": "dist/esm/index.esm2017.js",
9
- "esm5": "dist/esm/index.esm5.js",
10
9
  "exports": {
11
10
  ".": {
12
11
  "types": "./dist/src/index.d.ts",
13
12
  "require": "./dist/index.cjs.js",
14
- "esm5": "./dist/esm/index.esm5.js",
15
13
  "default": "./dist/esm/index.esm2017.js"
16
14
  },
17
15
  "./package.json": "./package.json"
@@ -40,11 +38,11 @@
40
38
  "@firebase/app-compat": "0.x"
41
39
  },
42
40
  "dependencies": {
43
- "@firebase/performance": "0.6.9",
41
+ "@firebase/performance": "0.6.10",
44
42
  "@firebase/performance-types": "0.2.2",
45
- "@firebase/util": "1.10.0",
46
- "@firebase/logger": "0.4.2",
47
- "@firebase/component": "0.6.9",
43
+ "@firebase/util": "1.10.1",
44
+ "@firebase/logger": "0.4.3",
45
+ "@firebase/component": "0.6.10",
48
46
  "tslib": "^2.1.0"
49
47
  },
50
48
  "devDependencies": {
@@ -53,7 +51,7 @@
53
51
  "rollup-plugin-replace": "2.2.0",
54
52
  "rollup-plugin-typescript2": "0.31.2",
55
53
  "typescript": "4.7.4",
56
- "@firebase/app-compat": "0.2.41"
54
+ "@firebase/app-compat": "0.2.44"
57
55
  },
58
56
  "repository": {
59
57
  "directory": "packages/performance-compat",
@@ -1,82 +0,0 @@
1
- import firebase from '@firebase/app-compat';
2
- import { Component } from '@firebase/component';
3
- import { trace } from '@firebase/performance';
4
-
5
- /**
6
- * @license
7
- * Copyright 2020 Google LLC
8
- *
9
- * Licensed under the Apache License, Version 2.0 (the "License");
10
- * you may not use this file except in compliance with the License.
11
- * You may obtain a copy of the License at
12
- *
13
- * http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software
16
- * distributed under the License is distributed on an "AS IS" BASIS,
17
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- * See the License for the specific language governing permissions and
19
- * limitations under the License.
20
- */
21
- var PerformanceCompatImpl = /** @class */ (function () {
22
- function PerformanceCompatImpl(app, _delegate) {
23
- this.app = app;
24
- this._delegate = _delegate;
25
- }
26
- Object.defineProperty(PerformanceCompatImpl.prototype, "instrumentationEnabled", {
27
- get: function () {
28
- return this._delegate.instrumentationEnabled;
29
- },
30
- set: function (val) {
31
- this._delegate.instrumentationEnabled = val;
32
- },
33
- enumerable: false,
34
- configurable: true
35
- });
36
- Object.defineProperty(PerformanceCompatImpl.prototype, "dataCollectionEnabled", {
37
- get: function () {
38
- return this._delegate.dataCollectionEnabled;
39
- },
40
- set: function (val) {
41
- this._delegate.dataCollectionEnabled = val;
42
- },
43
- enumerable: false,
44
- configurable: true
45
- });
46
- PerformanceCompatImpl.prototype.trace = function (traceName) {
47
- return trace(this._delegate, traceName);
48
- };
49
- return PerformanceCompatImpl;
50
- }());
51
-
52
- var name = "@firebase/performance-compat";
53
- var version = "0.2.9";
54
-
55
- /**
56
- * @license
57
- * Copyright 2020 Google LLC
58
- *
59
- * Licensed under the Apache License, Version 2.0 (the "License");
60
- * you may not use this file except in compliance with the License.
61
- * You may obtain a copy of the License at
62
- *
63
- * http://www.apache.org/licenses/LICENSE-2.0
64
- *
65
- * Unless required by applicable law or agreed to in writing, software
66
- * distributed under the License is distributed on an "AS IS" BASIS,
67
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68
- * See the License for the specific language governing permissions and
69
- * limitations under the License.
70
- */
71
- function registerPerformanceCompat(firebaseInstance) {
72
- firebaseInstance.INTERNAL.registerComponent(new Component('performance-compat', performanceFactory, "PUBLIC" /* ComponentType.PUBLIC */));
73
- firebaseInstance.registerVersion(name, version);
74
- }
75
- function performanceFactory(container) {
76
- var app = container.getProvider('app-compat').getImmediate();
77
- // The following call will always succeed.
78
- var performance = container.getProvider('performance').getImmediate();
79
- return new PerformanceCompatImpl(app, performance);
80
- }
81
- registerPerformanceCompat(firebase);
82
- //# sourceMappingURL=index.esm5.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.esm5.js","sources":["../../src/performance.ts","../../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n trace,\n FirebasePerformance,\n // The PerformanceTrace type has not changed between modular and non-modular packages.\n PerformanceTrace\n} from '@firebase/performance';\nimport { FirebasePerformance as FirebasePerformanceCompat } from '@firebase/performance-types';\nimport { FirebaseApp, _FirebaseService } from '@firebase/app-compat';\n\nexport class PerformanceCompatImpl\n implements FirebasePerformanceCompat, _FirebaseService\n{\n constructor(\n public app: FirebaseApp,\n readonly _delegate: FirebasePerformance\n ) {}\n\n get instrumentationEnabled(): boolean {\n return this._delegate.instrumentationEnabled;\n }\n\n set instrumentationEnabled(val: boolean) {\n this._delegate.instrumentationEnabled = val;\n }\n\n get dataCollectionEnabled(): boolean {\n return this._delegate.dataCollectionEnabled;\n }\n\n set dataCollectionEnabled(val: boolean) {\n this._delegate.dataCollectionEnabled = val;\n }\n\n trace(traceName: string): PerformanceTrace {\n return trace(this._delegate, traceName);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport firebase, { _FirebaseNamespace } from '@firebase/app-compat';\nimport {\n Component,\n ComponentContainer,\n ComponentType\n} from '@firebase/component';\nimport { PerformanceCompatImpl } from './performance';\nimport { name as packageName, version } from '../package.json';\nimport { FirebasePerformance as FirebasePerformanceCompat } from '@firebase/performance-types';\n\nfunction registerPerformanceCompat(firebaseInstance: _FirebaseNamespace): void {\n firebaseInstance.INTERNAL.registerComponent(\n new Component(\n 'performance-compat',\n performanceFactory,\n ComponentType.PUBLIC\n )\n );\n\n firebaseInstance.registerVersion(packageName, version);\n}\n\nfunction performanceFactory(\n container: ComponentContainer\n): PerformanceCompatImpl {\n const app = container.getProvider('app-compat').getImmediate();\n // The following call will always succeed.\n const performance = container.getProvider('performance').getImmediate();\n\n return new PerformanceCompatImpl(app, performance);\n}\n\nregisterPerformanceCompat(firebase as _FirebaseNamespace);\n\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n performance: {\n (app?: FirebaseApp): FirebasePerformanceCompat;\n };\n }\n interface FirebaseApp {\n performance(): FirebasePerformanceCompat;\n }\n}\n"],"names":["packageName"],"mappings":";;;;AAAA;;;;;;;;;;;;;;;AAeG;AAWH,IAAA,qBAAA,kBAAA,YAAA;IAGE,SACS,qBAAA,CAAA,GAAgB,EACd,SAA8B,EAAA;QADhC,IAAG,CAAA,GAAA,GAAH,GAAG,CAAa;QACd,IAAS,CAAA,SAAA,GAAT,SAAS,CAAqB;KACrC;AAEJ,IAAA,MAAA,CAAA,cAAA,CAAI,qBAAsB,CAAA,SAAA,EAAA,wBAAA,EAAA;AAA1B,QAAA,GAAA,EAAA,YAAA;AACE,YAAA,OAAO,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC;SAC9C;AAED,QAAA,GAAA,EAAA,UAA2B,GAAY,EAAA;AACrC,YAAA,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,GAAG,CAAC;SAC7C;;;AAJA,KAAA,CAAA,CAAA;AAMD,IAAA,MAAA,CAAA,cAAA,CAAI,qBAAqB,CAAA,SAAA,EAAA,uBAAA,EAAA;AAAzB,QAAA,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