gs2-cdk 1.0.34 → 1.0.36

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.
@@ -0,0 +1,9 @@
1
+ import { BanStatusOptions } from "./options/BanStatusOptions";
2
+ export default class BanStatus {
3
+ private readonly reason;
4
+ private readonly releaseTimestamp;
5
+ constructor(reason: string, releaseTimestamp: number, options?: BanStatusOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class BanStatus {
4
+ constructor(reason, releaseTimestamp, options = null) {
5
+ this.reason = reason;
6
+ this.releaseTimestamp = releaseTimestamp;
7
+ }
8
+ properties() {
9
+ let properties = {};
10
+ if (this.reason != null) {
11
+ properties["reason"] = this.reason;
12
+ }
13
+ if (this.releaseTimestamp != null) {
14
+ properties["releaseTimestamp"] = this.releaseTimestamp;
15
+ }
16
+ return properties;
17
+ }
18
+ }
19
+ exports.default = BanStatus;
20
+ //# sourceMappingURL=BanStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BanStatus.js","sourceRoot":"","sources":["BanStatus.ts"],"names":[],"mappings":";;AAiBA,MAAqB,SAAS;IAI1B,YACI,MAAc,EACd,gBAAwB,EACxB,UAAiC,IAAI;QAErC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC7C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC;SAC1D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,4BA0BC"}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import { BanStatusOptions } from "./options/BanStatusOptions";
17
+
18
+ export default class BanStatus {
19
+ private readonly reason: string;
20
+ private readonly releaseTimestamp: number;
21
+
22
+ public constructor(
23
+ reason: string,
24
+ releaseTimestamp: number,
25
+ options: BanStatusOptions|null = null,
26
+ ) {
27
+ this.reason = reason;
28
+ this.releaseTimestamp = releaseTimestamp;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.reason != null) {
36
+ properties["reason"] = this.reason;
37
+ }
38
+ if (this.releaseTimestamp != null) {
39
+ properties["releaseTimestamp"] = this.releaseTimestamp;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }
@@ -1,3 +1,5 @@
1
1
  import Namespace from "./Namespace";
2
2
  import { NamespaceOptions } from "./options/NamespaceOptions";
3
- export { Namespace, NamespaceOptions, };
3
+ import BanStatus from "./BanStatus";
4
+ import { BanStatusOptions } from "./options/BanStatusOptions";
5
+ export { Namespace, NamespaceOptions, BanStatus, BanStatusOptions, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Namespace = void 0;
3
+ exports.BanStatus = exports.Namespace = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -19,4 +19,6 @@ const tslib_1 = require("tslib");
19
19
  */
20
20
  const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
21
21
  exports.Namespace = Namespace_1.default;
22
+ const BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
23
+ exports.BanStatus = BanStatus_1.default;
22
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAIhC,oBAJG,mBAAS,CAIH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAMhC,oBANG,mBAAS,CAMH;AAJb,oEAAoC;AAMhC,oBANG,mBAAS,CAMH"}
@@ -15,8 +15,12 @@
15
15
  */
16
16
  import Namespace from "./Namespace";
17
17
  import { NamespaceOptions } from "./options/NamespaceOptions";
18
+ import BanStatus from "./BanStatus";
19
+ import { BanStatusOptions } from "./options/BanStatusOptions";
18
20
 
19
21
  export {
20
22
  Namespace,
21
23
  NamespaceOptions,
24
+ BanStatus,
25
+ BanStatusOptions,
22
26
  }
@@ -0,0 +1,2 @@
1
+ export interface BanStatusOptions {
2
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=BanStatusOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BanStatusOptions.js","sourceRoot":"","sources":["BanStatusOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ export interface BanStatusOptions {
18
+ }
19
+
@@ -4,8 +4,7 @@ import AcquireActionConfig from "../model/AcquireActionConfig";
4
4
  export default class FormModelRef {
5
5
  private readonly namespaceName;
6
6
  private readonly moldModelName;
7
- private readonly formModelName;
8
- constructor(namespaceName: string, moldModelName: string, formModelName: string);
7
+ constructor(namespaceName: string, moldModelName: string);
9
8
  acquireActionsToFormProperties(index: number, acquireAction: AcquireAction, config?: AcquireActionConfig[] | null, userId?: string | null): AcquireActionsToFormProperties;
10
9
  grn(): string;
11
10
  }
@@ -19,10 +19,9 @@ const tslib_1 = require("tslib");
19
19
  const func_1 = require("../../core/func");
20
20
  const AcquireActionsToFormProperties_1 = tslib_1.__importDefault(require("../stampSheet/AcquireActionsToFormProperties"));
21
21
  class FormModelRef {
22
- constructor(namespaceName, moldModelName, formModelName) {
22
+ constructor(namespaceName, moldModelName) {
23
23
  this.namespaceName = namespaceName;
24
24
  this.moldModelName = moldModelName;
25
- this.formModelName = formModelName;
26
25
  }
27
26
  acquireActionsToFormProperties(index, acquireAction, config = null, userId = "#{userId}") {
28
27
  return new AcquireActionsToFormProperties_1.default(this.namespaceName, this.moldModelName, index, acquireAction, config, userId);
@@ -38,9 +37,7 @@ class FormModelRef {
38
37
  "model",
39
38
  "mold",
40
39
  this.moldModelName,
41
- "model",
42
40
  "form",
43
- this.formModelName,
44
41
  ]).str();
45
42
  }
46
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FormModelRef.js","sourceRoot":"","sources":["FormModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0HAA0F;AAI1F,MAAqB,YAAY;IAK7B,YACI,aAAqB,EACrB,aAAqB,EACrB,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,8BAA8B,CACjC,KAAa,EACb,aAA4B,EAC5B,SAAqC,IAAI,EACzC,SAAsB,WAAW;QAEjC,OAAO,IAAI,wCAA8B,CACrC,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,KAAK,EACL,aAAa,EACb,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,OAAO;YACP,MAAM;YACN,IAAI,CAAC,aAAa;YAClB,OAAO;YACP,MAAM;YACN,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAxDD,+BAwDC"}
1
+ {"version":3,"file":"FormModelRef.js","sourceRoot":"","sources":["FormModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0HAA0F;AAI1F,MAAqB,YAAY;IAI7B,YACI,aAAqB,EACrB,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,8BAA8B,CACjC,KAAa,EACb,aAA4B,EAC5B,SAAqC,IAAI,EACzC,SAAsB,WAAW;QAEjC,OAAO,IAAI,wCAA8B,CACrC,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,KAAK,EACL,aAAa,EACb,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,OAAO;YACP,MAAM;YACN,IAAI,CAAC,aAAa;YAClB,MAAM;SACT,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAnDD,+BAmDC"}
@@ -22,16 +22,13 @@ import AcquireActionConfig from "../model/AcquireActionConfig";
22
22
  export default class FormModelRef {
23
23
  private readonly namespaceName: string;
24
24
  private readonly moldModelName: string;
25
- private readonly formModelName: string;
26
25
 
27
26
  public constructor(
28
27
  namespaceName: string,
29
28
  moldModelName: string,
30
- formModelName: string,
31
29
  ) {
32
30
  this.namespaceName = namespaceName;
33
31
  this.moldModelName = moldModelName;
34
- this.formModelName = formModelName;
35
32
  }
36
33
 
37
34
  public acquireActionsToFormProperties(
@@ -68,9 +65,7 @@ export default class FormModelRef {
68
65
  "model",
69
66
  "mold",
70
67
  this.moldModelName,
71
- "model",
72
68
  "form",
73
- this.formModelName,
74
69
  ],
75
70
  ).str(
76
71
  );
@@ -9,7 +9,7 @@ export default class MoldModelRef {
9
9
  private readonly namespaceName;
10
10
  private readonly moldModelName;
11
11
  constructor(namespaceName: string, moldModelName: string);
12
- formModel(formModelName: string): FormModelRef;
12
+ formModel(): FormModelRef;
13
13
  addMoldCapacity(capacity: number, userId?: string | null): AddMoldCapacityByUserId;
14
14
  setMoldCapacity(capacity: number, userId?: string | null): SetMoldCapacityByUserId;
15
15
  acquireActionsToFormProperties(index: number, acquireAction: AcquireAction, config?: AcquireActionConfig[] | null, userId?: string | null): AcquireActionsToFormProperties;
@@ -27,8 +27,8 @@ class MoldModelRef {
27
27
  this.namespaceName = namespaceName;
28
28
  this.moldModelName = moldModelName;
29
29
  }
30
- formModel(formModelName) {
31
- return new FormModelRef_1.default(this.namespaceName, this.moldModelName, formModelName);
30
+ formModel() {
31
+ return new FormModelRef_1.default(this.namespaceName, this.moldModelName);
32
32
  }
33
33
  addMoldCapacity(capacity, userId = "#{userId}") {
34
34
  return new AddMoldCapacityByUserId_1.default(this.namespaceName, this.moldModelName, capacity, userId);
@@ -1 +1 @@
1
- {"version":3,"file":"MoldModelRef.js","sourceRoot":"","sources":["MoldModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0EAA0C;AAC1C,4GAA4E;AAC5E,4GAA4E;AAC5E,0HAA0F;AAG1F,4GAA4E;AAE5E,MAAqB,YAAY;IAI7B,YACI,aAAqB,EACrB,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,SAAS,CACZ,aAAqB;QAErB,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,aAAa,CAChB,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,QAAgB,EAChB,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,MAAM,CACT,CAA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,SAAS;QAEZ,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,CACrB,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,QAAgB,EAChB,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,QAAgB,EAChB,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,MAAM,CACT,CAAC;IACN,CAAC;IAEM,8BAA8B,CACjC,KAAa,EACb,aAA4B,EAC5B,SAAqC,IAAI,EACzC,SAAsB,WAAW;QAEjC,OAAO,IAAI,wCAA8B,CACrC,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,KAAK,EACL,aAAa,EACb,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,eAAe,CAClB,QAAgB,EAChB,SAAsB,WAAW;QAEjC,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,QAAQ,EACR,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,WAAW;YACX,IAAI,CAAC,aAAa;YAClB,OAAO;YACP,MAAM;YACN,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA9FD,+BA8FC"}
@@ -36,12 +36,10 @@ export default class MoldModelRef {
36
36
  }
37
37
 
38
38
  public formModel(
39
- formModelName: string,
40
39
  ): FormModelRef {
41
40
  return new FormModelRef(
42
41
  this.namespaceName,
43
42
  this.moldModelName,
44
- formModelName,
45
43
  );
46
44
  }
47
45
 
@@ -1,9 +1,10 @@
1
1
  import { BoxItemOptions } from "./options/BoxItemOptions";
2
2
  export default class BoxItem {
3
+ private readonly prizeId;
3
4
  private readonly remaining;
4
5
  private readonly initial;
5
6
  private readonly acquireActions;
6
- constructor(remaining: number, initial: number, options?: BoxItemOptions | null);
7
+ constructor(prizeId: string, remaining: number, initial: number, options?: BoxItemOptions | null);
7
8
  properties(): {
8
9
  [name: string]: any;
9
10
  };
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class BoxItem {
4
- constructor(remaining, initial, options = null) {
4
+ constructor(prizeId, remaining, initial, options = null) {
5
5
  var _a;
6
6
  this.acquireActions = null;
7
+ this.prizeId = prizeId;
7
8
  this.remaining = remaining;
8
9
  this.initial = initial;
9
10
  this.acquireActions = (_a = options === null || options === void 0 ? void 0 : options.acquireActions) !== null && _a !== void 0 ? _a : null;
10
11
  }
11
12
  properties() {
12
13
  let properties = {};
14
+ if (this.prizeId != null) {
15
+ properties["prizeId"] = this.prizeId;
16
+ }
13
17
  if (this.acquireActions != null) {
14
18
  properties["acquireActions"] = this.acquireActions.map(v => v.properties());
15
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BoxItem.js","sourceRoot":"","sources":["BoxItem.ts"],"names":[],"mappings":";;AAkBA,MAAqB,OAAO;IAKxB,YACI,SAAiB,EACjB,OAAe,EACf,UAA+B,IAAI;;QALtB,mBAAc,GAAyB,IAAI,CAAC;QAOzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;IAC1D,CAAC;IAEM,UAAU;QAEb,IAAI,U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AC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAtCD,0BAsCC"}
@@ -17,15 +17,18 @@ import { AcquireAction } from "../../core/model";
17
17
  import { BoxItemOptions } from "./options/BoxItemOptions";
18
18
 
19
19
  export default class BoxItem {
20
+ private readonly prizeId: string;
20
21
  private readonly remaining: number;
21
22
  private readonly initial: number;
22
23
  private readonly acquireActions: AcquireAction[]|null = null;
23
24
 
24
25
  public constructor(
26
+ prizeId: string,
25
27
  remaining: number,
26
28
  initial: number,
27
29
  options: BoxItemOptions|null = null,
28
30
  ) {
31
+ this.prizeId = prizeId;
29
32
  this.remaining = remaining;
30
33
  this.initial = initial;
31
34
  this.acquireActions = options?.acquireActions ?? null;
@@ -35,6 +38,9 @@ export default class BoxItem {
35
38
  ): {[name: string]: any} {
36
39
  let properties: {[name: string]: any} = {};
37
40
 
41
+ if (this.prizeId != null) {
42
+ properties["prizeId"] = this.prizeId;
43
+ }
38
44
  if (this.acquireActions != null) {
39
45
  properties["acquireActions"] = this.acquireActions.map(v => v.properties(
40
46
  ));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -1 +1 @@
1
- {"version":3,"file":"Status.js","sourceRoot":"","sources":["Status.ts"],"names":[],"mappings":";;AAmBA,MAAqB,MAAM;IAIvB,YACI,YAA0B,EAC1B,UAA8B,IAAI;;QAJrB,mBAAc,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