@dialog-designer/designer 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +12 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/ai-assets.d.ts +19 -0
- package/dist/ai-assets.d.ts.map +1 -0
- package/dist/ai-assets.js +82 -0
- package/dist/ai-assets.js.map +1 -0
- package/dist/debug-client.d.ts +29 -0
- package/dist/debug-client.d.ts.map +1 -0
- package/dist/debug-client.js +68 -0
- package/dist/debug-client.js.map +1 -0
- package/dist/designer.d.ts +65 -0
- package/dist/designer.d.ts.map +1 -0
- package/dist/designer.js +1259 -0
- package/dist/designer.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +415 -0
- package/dist/styles.js.map +1 -0
- package/package.json +38 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tzach Shabtay
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @dialog-designer/designer
|
|
2
|
+
|
|
3
|
+
Engine-neutral in-game DOM editor for branching conversations built with
|
|
4
|
+
[Dialog Designer](https://github.com/tzachshabtay/dialog-designer).
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm install @dialog-designer/designer @dialog-designer/core @ai-game-assets/core
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The panel edits dialog trees and AI voice-line references. It deliberately does
|
|
11
|
+
not render or play conversations; games consume the runtime API and own their
|
|
12
|
+
presentation.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.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.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.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.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/typescript/lib/lib.es2022.full.d.ts","../../../node_modules/@ai-game-assets/core/dist/types.d.ts","../../../node_modules/@ai-game-assets/core/dist/manifest.d.ts","../../../node_modules/@ai-game-assets/core/dist/generation.d.ts","../../../node_modules/@ai-game-assets/core/dist/designer-dock.d.ts","../../../node_modules/@ai-game-assets/core/dist/index.d.ts","../src/ai-assets.ts","../../core/dist/types.d.ts","../../core/dist/factories.d.ts","../../core/dist/manifest.d.ts","../../core/dist/runtime.d.ts","../../core/dist/index.d.ts","../src/debug-client.ts","../src/styles.ts","../src/designer.ts","../src/index.ts","../../../node_modules/@types/estree/index.d.ts","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.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/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/inspector.generated.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/sea.d.ts","../../../node_modules/@types/node/sqlite.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/index.d.ts","../../../node_modules/@types/pngjs/index.d.ts"],"fileIdsList":[[85,134,151,152],[64,85,134,151,152],[64,65,66,67,85,134,151,152],[85,131,132,134,151,152],[85,133,134,151,152],[134,151,152],[85,134,139,151,152,169],[85,134,135,140,145,151,152,154,166,177],[85,134,135,136,145,151,152,154],[80,81,82,85,134,151,152],[85,134,137,151,152,178],[85,134,138,139,146,151,152,155],[85,134,139,151,152,166,174],[85,134,140,142,145,151,152,154],[85,133,134,141,151,152],[85,134,142,143,151,152],[85,134,144,145,151,152],[85,133,134,145,151,152],[85,134,145,146,147,151,152,166,177],[85,134,145,146,147,151,152,161,166,169],[85,126,134,142,145,148,151,152,154,166,177],[85,134,145,146,148,149,151,152,154,166,174,177],[85,134,148,150,151,152,166,174,177],[83,84,85,86,87,88,89,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183],[85,134,145,151,152],[85,134,151,152,153,177],[85,134,142,145,151,152,154,166],[85,134,151,152,155],[85,134,151,152,156],[85,133,134,151,152,157],[85,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183],[85,134,151,152,159],[85,134,151,152,160],[85,134,145,151,152,161,162],[85,134,151,152,161,163,178,180],[85,134,146,151,152],[85,134,145,151,152,166,167,169],[85,134,151,152,168,169],[85,134,151,152,166,167],[85,134,151,152,169],[85,134,151,152,170],[85,131,134,151,152,166,171,177],[85,134,145,151,152,172,173],[85,134,151,152,172,173],[85,134,139,151,152,154,166,174],[85,134,151,152,175],[85,134,151,152,154,176],[85,134,148,151,152,160,177],[85,134,139,151,152,178],[85,134,151,152,166,179],[85,134,151,152,153,180],[85,134,151,152,181],[85,126,134,151,152],[85,126,134,145,147,151,152,157,166,169,177,179,180,182],[85,134,151,152,166,183],[85,134,151,152,166,183,184],[85,98,102,134,151,152,177],[85,98,134,151,152,166,177],[85,93,134,151,152],[85,95,98,134,151,152,174,177],[85,134,151,152,154,174],[85,134,151,152,184],[85,93,134,151,152,184],[85,95,98,134,151,152,154,177],[85,90,91,94,97,134,145,151,152,166,177],[85,98,105,134,151,152],[85,90,96,134,151,152],[85,98,119,120,134,151,152],[85,94,98,134,151,152,169,177,184],[85,119,134,151,152,184],[85,92,93,134,151,152,184],[85,98,134,151,152],[85,92,93,94,95,96,97,98,99,100,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,120,121,122,123,124,125,134,151,152],[85,98,113,134,151,152],[85,98,105,106,134,151,152],[85,96,98,106,107,134,151,152],[85,97,134,151,152],[85,90,93,98,134,151,152],[85,98,102,106,107,134,151,152],[85,102,134,151,152],[85,96,98,101,134,151,152,177],[85,90,95,98,105,134,151,152],[85,134,151,152,166],[85,93,98,119,134,151,152,182,184],[70,85,134,151,152],[70,71,72,73,85,134,151,152],[68,70,85,134,151,152],[68,85,134,151,152],[68,74,85,134,151,152],[68,69,74,75,76,85,134,151,152],[69,75,77,85,134,151,152]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"3cbad9a1ba4453443026ed38e4b8be018abb26565fa7c944376463ad9df07c41","impliedFormat":1},{"version":"2a666cc7180c0fb95f137cb174b37bce680fc9e6ee979aa13f9f05af256f9e3e","impliedFormat":99},{"version":"8cd54352e46ebc6d5d4bb5a851180b772709481aa9e176b57012b97c31ba79ba","impliedFormat":99},{"version":"27c645a96e4eeba0783ef14f2c353b92d4f937e399cdabffe0c8c3b0049d39a5","impliedFormat":99},{"version":"3a2313107da2d6b35feeb1de297b6cf8055edc27f77fbb661b66856503b9c676","impliedFormat":99},{"version":"649580e894de4f2dffab960adebdfe18a917e3c00809c2656bd69c58a1397675","impliedFormat":99},{"version":"e5a913249cbe8a35cadcde1319b5559724db54c701418448d1ca4455415e7730","signature":"371bc8afe817516ad68785e4a8ee427e9c78189bfba827b2afaae5663aca46d0","impliedFormat":99},{"version":"eda7716df3dac10a0d279f71b10a72379ba27e23dba3664afc37c2add0537c3d","impliedFormat":99},{"version":"83020d74e0ef38dc31e15a1f7c14d921cf58f53341dac7157e846724a4eb8f5f","impliedFormat":99},{"version":"cc620326a534402cfb7650ef7fe739cfc48f17b16e708a0c8669085356062900","impliedFormat":99},{"version":"9d999ddbbeaf593844ffe57bc60f7aac4e6b833fd3d8688ec85adff208055259","impliedFormat":99},{"version":"31d62676e46f48cbba33905ad60924b4b8b97debd708bc777b989cacd0f93526","impliedFormat":99},{"version":"5b8913609dad02c4918d9d6031539e24a39933eee2d04f63b25cc975d9edbd5e","signature":"5ae6594119033991b5668712e1bf88e9fc45f35fbe2c18300fb6f932a7487eb4","impliedFormat":99},{"version":"198c454a4db6d543e715ae2e1381517ca7aee473bbf2694bd8ce18810af52091","signature":"c06333d3a9de0e00d1ba38e0d9630904c96ca111591fed270f9667ed60836ec6","impliedFormat":99},{"version":"a9f167b2cc79427318fce11f73f5baa1a33e3dd9b30ad87204b1b9e2f122a14d","signature":"56eebe1763ba30f2765ec3fbd657538a21ee8bf002a50f925b72426cdfb77adc","impliedFormat":99},{"version":"5a3608d594bbb66ee473dc3d951d5ea586064c350cfa1f3ddf687063200b1b05","signature":"09e2848c17ebaf02aed52b8407b92717c960789f39d2f322adc4cfb86b3fae44","impliedFormat":99},{"version":"751764bb94219b4ce8f5475dc35d3de2e432fea01a0c9610cd7f69ad05e398c6","impliedFormat":1},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"272ca407e0c9068bdc5152552d876e68037ceae3de62e529306403e973dec8e1","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"d61e0a64cd175208ac0b83670151a9a6b5916f0d1ffcdc5c29c90b1cebfc5045","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1},{"version":"90ac19cb97ae85c7ccfd0c04322b02ce088bda9de7b42cc081cbb3674fe5446d","impliedFormat":1}],"root":[69,[75,78]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":199,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[67,1],[66,2],[68,3],[65,2],[64,1],[79,1],[131,4],[132,4],[133,5],[85,6],[134,7],[135,8],[136,9],[80,1],[83,10],[81,1],[82,1],[137,11],[138,12],[139,13],[140,14],[141,15],[142,16],[143,16],[144,17],[145,18],[146,19],[147,20],[86,1],[84,1],[148,21],[149,22],[150,23],[184,24],[151,25],[152,1],[153,26],[154,27],[155,28],[156,29],[157,30],[158,31],[159,32],[160,33],[161,34],[162,34],[163,35],[164,1],[165,36],[166,37],[168,38],[167,39],[169,40],[170,41],[171,42],[172,43],[173,44],[174,45],[175,46],[176,47],[177,48],[178,49],[179,50],[180,51],[181,52],[87,1],[88,1],[89,1],[127,53],[128,1],[129,1],[130,40],[182,54],[183,55],[185,56],[61,1],[62,1],[12,1],[10,1],[11,1],[16,1],[15,1],[2,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[24,1],[3,1],[25,1],[26,1],[4,1],[27,1],[31,1],[28,1],[29,1],[30,1],[32,1],[33,1],[34,1],[5,1],[35,1],[36,1],[37,1],[38,1],[6,1],[42,1],[39,1],[40,1],[41,1],[43,1],[7,1],[44,1],[49,1],[50,1],[45,1],[46,1],[47,1],[48,1],[8,1],[54,1],[51,1],[52,1],[53,1],[55,1],[9,1],[56,1],[63,1],[57,1],[58,1],[60,1],[59,1],[1,1],[14,1],[13,1],[105,57],[115,58],[104,57],[125,59],[96,60],[95,61],[124,62],[118,63],[123,64],[98,65],[112,66],[97,67],[121,68],[93,69],[92,62],[122,70],[94,71],[99,72],[100,1],[103,72],[90,1],[126,73],[116,74],[107,75],[108,76],[110,77],[106,78],[109,79],[119,62],[101,80],[102,81],[111,82],[91,83],[114,74],[113,72],[117,1],[120,84],[71,85],[74,86],[72,87],[73,87],[70,88],[69,88],[75,89],[77,90],[78,91],[76,1]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AiAssetDefinition, AiAssetManifest } from "@ai-game-assets/core";
|
|
2
|
+
export type VoiceAiAsset = AiAssetDefinition & {
|
|
3
|
+
kind: "voice";
|
|
4
|
+
};
|
|
5
|
+
export type VoiceLineAiAsset = AiAssetDefinition & {
|
|
6
|
+
kind: "voice-line";
|
|
7
|
+
};
|
|
8
|
+
export declare function isVoiceAsset(asset: AiAssetDefinition | undefined): asset is VoiceAiAsset;
|
|
9
|
+
export declare function isVoiceLineAsset(asset: AiAssetDefinition | undefined): asset is VoiceLineAiAsset;
|
|
10
|
+
export declare function voiceAssets(manifest: AiAssetManifest): VoiceAiAsset[];
|
|
11
|
+
export declare function voiceAssetIds(manifest: AiAssetManifest): string[];
|
|
12
|
+
export declare function voiceLineAssets(manifest: AiAssetManifest, voiceAssetId?: string): VoiceLineAiAsset[];
|
|
13
|
+
export declare function voiceLineAssetIds(manifest: AiAssetManifest, voiceAssetId?: string): string[];
|
|
14
|
+
export declare function voiceLineText(asset: AiAssetDefinition | undefined): string;
|
|
15
|
+
export declare function voiceLineDirection(asset: AiAssetDefinition | undefined): string | undefined;
|
|
16
|
+
export declare function voiceLineLabel(asset: VoiceLineAiAsset): string;
|
|
17
|
+
export declare function readableAssetName(id: string): string;
|
|
18
|
+
export declare function suggestVoiceLineAssetId(manifest: AiAssetManifest, voiceAssetId: string, text: string): string;
|
|
19
|
+
//# sourceMappingURL=ai-assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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ACX,MAAM,CAqBR"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export function isVoiceAsset(asset) {
|
|
2
|
+
return asset?.kind === "voice";
|
|
3
|
+
}
|
|
4
|
+
export function isVoiceLineAsset(asset) {
|
|
5
|
+
return asset?.kind === "voice-line";
|
|
6
|
+
}
|
|
7
|
+
export function voiceAssets(manifest) {
|
|
8
|
+
return Object.values(manifest.assets)
|
|
9
|
+
.filter(isVoiceAsset)
|
|
10
|
+
.sort((left, right) => readableAssetName(left.id).localeCompare(readableAssetName(right.id)));
|
|
11
|
+
}
|
|
12
|
+
export function voiceAssetIds(manifest) {
|
|
13
|
+
return voiceAssets(manifest).map((asset) => asset.id);
|
|
14
|
+
}
|
|
15
|
+
export function voiceLineAssets(manifest, voiceAssetId) {
|
|
16
|
+
return Object.values(manifest.assets)
|
|
17
|
+
.filter(isVoiceLineAsset)
|
|
18
|
+
.filter((asset) => {
|
|
19
|
+
if (!voiceAssetId)
|
|
20
|
+
return true;
|
|
21
|
+
const configuredVoiceId = asset.versions[asset.activeVersion]?.voiceSettings?.voiceAssetId
|
|
22
|
+
?? asset.voiceSettings?.voiceAssetId;
|
|
23
|
+
return configuredVoiceId === undefined || configuredVoiceId === voiceAssetId;
|
|
24
|
+
})
|
|
25
|
+
.sort((left, right) => voiceLineLabel(left).localeCompare(voiceLineLabel(right)));
|
|
26
|
+
}
|
|
27
|
+
export function voiceLineAssetIds(manifest, voiceAssetId) {
|
|
28
|
+
return voiceLineAssets(manifest, voiceAssetId).map((asset) => asset.id);
|
|
29
|
+
}
|
|
30
|
+
export function voiceLineText(asset) {
|
|
31
|
+
if (!isVoiceLineAsset(asset))
|
|
32
|
+
return "";
|
|
33
|
+
const version = asset.versions[asset.activeVersion];
|
|
34
|
+
return version?.voiceSettings?.text
|
|
35
|
+
?? asset.voiceSettings?.text
|
|
36
|
+
?? "";
|
|
37
|
+
}
|
|
38
|
+
export function voiceLineDirection(asset) {
|
|
39
|
+
if (!isVoiceLineAsset(asset))
|
|
40
|
+
return undefined;
|
|
41
|
+
const version = asset.versions[asset.activeVersion];
|
|
42
|
+
return version?.voiceSettings?.direction
|
|
43
|
+
?? version?.prompt
|
|
44
|
+
?? asset.voiceSettings?.direction
|
|
45
|
+
?? asset.prompt;
|
|
46
|
+
}
|
|
47
|
+
export function voiceLineLabel(asset) {
|
|
48
|
+
const text = voiceLineText(asset).trim();
|
|
49
|
+
const shortText = text.length > 58 ? `${text.slice(0, 55).trimEnd()}…` : text;
|
|
50
|
+
return shortText ? `${shortText} · ${asset.id}` : readableAssetName(asset.id);
|
|
51
|
+
}
|
|
52
|
+
export function readableAssetName(id) {
|
|
53
|
+
return id
|
|
54
|
+
.split(/[._-]+/g)
|
|
55
|
+
.filter(Boolean)
|
|
56
|
+
.map((part) => `${part.slice(0, 1).toUpperCase()}${part.slice(1)}`)
|
|
57
|
+
.join(" ");
|
|
58
|
+
}
|
|
59
|
+
export function suggestVoiceLineAssetId(manifest, voiceAssetId, text) {
|
|
60
|
+
const voicePart = voiceAssetId
|
|
61
|
+
.replace(/^voice[._-]?/i, "")
|
|
62
|
+
.replace(/[^a-zA-Z0-9]+/g, ".")
|
|
63
|
+
.replace(/^\.+|\.+$/g, "")
|
|
64
|
+
.toLowerCase() || "speaker";
|
|
65
|
+
const textPart = text
|
|
66
|
+
.trim()
|
|
67
|
+
.toLowerCase()
|
|
68
|
+
.replace(/[^a-z0-9]+/g, ".")
|
|
69
|
+
.replace(/^\.+|\.+$/g, "")
|
|
70
|
+
.split(".")
|
|
71
|
+
.filter(Boolean)
|
|
72
|
+
.slice(0, 6)
|
|
73
|
+
.join(".") || "line";
|
|
74
|
+
const base = `voice.line.${voicePart}.${textPart}`;
|
|
75
|
+
if (!manifest.assets[base])
|
|
76
|
+
return base;
|
|
77
|
+
let suffix = 2;
|
|
78
|
+
while (manifest.assets[`${base}.${suffix}`])
|
|
79
|
+
suffix += 1;
|
|
80
|
+
return `${base}.${suffix}`;
|
|
81
|
+
}
|
|
82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,CAAC;QAAE,OAAO,IAAI,CAAC;IAExC,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,OAAO,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,IAAI,MAAM,EAAE,CAAC;QAAE,MAAM,IAAI,CAAC,CAAC;IACzD,OAAO,GAAG,IAAI,IAAI,MAAM,EAAE,CAAC;AAC7B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AiAssetDefinition, AiAssetManifest } from "@ai-game-assets/core";
|
|
2
|
+
import type { DialogDesignerManifest } from "@dialog-designer/core";
|
|
3
|
+
export type PromoteDialogRequest = {
|
|
4
|
+
manifest: DialogDesignerManifest;
|
|
5
|
+
dialogId?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
};
|
|
8
|
+
export type CreateDialogVoiceLineRequest = {
|
|
9
|
+
voiceAssetId: string;
|
|
10
|
+
text: string;
|
|
11
|
+
direction?: string;
|
|
12
|
+
assetId?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
};
|
|
15
|
+
export type CreateDialogVoiceLineResult = {
|
|
16
|
+
aiAssets: AiAssetManifest;
|
|
17
|
+
asset: AiAssetDefinition;
|
|
18
|
+
lineAssetId: string;
|
|
19
|
+
};
|
|
20
|
+
export declare class DialogDesignerDebugClient {
|
|
21
|
+
readonly baseUrl: string;
|
|
22
|
+
constructor(baseUrl?: string);
|
|
23
|
+
manifest(): Promise<DialogDesignerManifest>;
|
|
24
|
+
promote(request: PromoteDialogRequest): Promise<DialogDesignerManifest>;
|
|
25
|
+
createVoiceLine(request: CreateDialogVoiceLineRequest): Promise<CreateDialogVoiceLineResult>;
|
|
26
|
+
private fetch;
|
|
27
|
+
private readJson;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=debug-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-client.d.ts","sourceRoot":"","sources":["../src/debug-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,EAAE,iBAAiB,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qBAAa,yBAAyB;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBAEb,OAAO,SAA0B;IAIvC,QAAQ,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAO3C,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAYvE,eAAe,CACnB,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,2BAA2B,CAAC;YAWzB,KAAK;YAUL,QAAQ;CAqBvB"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export class DialogDesignerDebugClient {
|
|
2
|
+
baseUrl;
|
|
3
|
+
constructor(baseUrl = "http://127.0.0.1:3979") {
|
|
4
|
+
this.baseUrl = baseUrl.replace(/\/$/, "");
|
|
5
|
+
}
|
|
6
|
+
async manifest() {
|
|
7
|
+
const response = await this.fetch(`${this.baseUrl}/__dialog-designer/manifest`, {
|
|
8
|
+
cache: "no-store"
|
|
9
|
+
});
|
|
10
|
+
return this.readJson(response);
|
|
11
|
+
}
|
|
12
|
+
async promote(request) {
|
|
13
|
+
const response = await this.fetch(`${this.baseUrl}/__dialog-designer/promote`, {
|
|
14
|
+
method: "POST",
|
|
15
|
+
headers: {
|
|
16
|
+
"Content-Type": "application/json"
|
|
17
|
+
},
|
|
18
|
+
body: JSON.stringify(request)
|
|
19
|
+
});
|
|
20
|
+
const body = await this.readJson(response);
|
|
21
|
+
return body.manifest;
|
|
22
|
+
}
|
|
23
|
+
async createVoiceLine(request) {
|
|
24
|
+
const response = await this.fetch(`${this.baseUrl}/__dialog-designer/voice-line`, {
|
|
25
|
+
method: "POST",
|
|
26
|
+
headers: {
|
|
27
|
+
"Content-Type": "application/json"
|
|
28
|
+
},
|
|
29
|
+
body: JSON.stringify(request)
|
|
30
|
+
});
|
|
31
|
+
return this.readJson(response);
|
|
32
|
+
}
|
|
33
|
+
async fetch(url, init) {
|
|
34
|
+
try {
|
|
35
|
+
return await globalThis.fetch(url, init);
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
throw new Error(`Could not reach the dialog designer dev server at ${url}. ${errorMessage(error)}`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
async readJson(response) {
|
|
42
|
+
const text = await response.text();
|
|
43
|
+
let body;
|
|
44
|
+
try {
|
|
45
|
+
body = text ? JSON.parse(text) : undefined;
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
body = undefined;
|
|
49
|
+
}
|
|
50
|
+
if (!response.ok) {
|
|
51
|
+
const message = isErrorBody(body) && body.error
|
|
52
|
+
? body.error
|
|
53
|
+
: text || `Dialog designer request failed with ${response.status}.`;
|
|
54
|
+
throw new Error(message);
|
|
55
|
+
}
|
|
56
|
+
if (body === undefined) {
|
|
57
|
+
throw new Error("Dialog designer returned an empty or invalid JSON response.");
|
|
58
|
+
}
|
|
59
|
+
return body;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function isErrorBody(value) {
|
|
63
|
+
return typeof value === "object" && value !== null && "error" in value;
|
|
64
|
+
}
|
|
65
|
+
function errorMessage(error) {
|
|
66
|
+
return error instanceof Error ? error.message : String(error);
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=debug-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-client.js","sourceRoot":"","sources":["../src/debug-client.ts"],"names":[],"mappings":"AA0BA,MAAM,OAAO,yBAAyB;IAC3B,OAAO,CAAS;IAEzB,YAAY,OAAO,GAAG,uBAAuB;QAC3C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,6BAA6B,EAAE;YAC9E,KAAK,EAAE,UAAU;SAClB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,QAAQ,CAAyB,QAAQ,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAA6B;QACzC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,4BAA4B,EAAE;YAC7E,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;SAC9B,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAuC,QAAQ,CAAC,CAAC;QACjF,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,OAAqC;QAErC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,+BAA+B,EAAE;YAChF,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;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AAS,WAAW,CAAC,KAAc;IACjC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,CAAC;AACzE,CAAC;AAED,SAAS,YAAY,CAAC,KAAc;IAClC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type AiAssetManifest } from "@ai-game-assets/core";
|
|
2
|
+
import { type DialogDefinition, type DialogDesignerManifest, type DialogLine, type DialogNode, type DialogNodeParent, type DialogOption, type DialogSelection } from "@dialog-designer/core";
|
|
3
|
+
import { DialogDesignerDebugClient, type CreateDialogVoiceLineRequest } from "./debug-client.js";
|
|
4
|
+
export type DialogDesignerOptions = {
|
|
5
|
+
manifest: DialogDesignerManifest;
|
|
6
|
+
aiAssets: AiAssetManifest;
|
|
7
|
+
client?: DialogDesignerDebugClient;
|
|
8
|
+
title?: string;
|
|
9
|
+
mount?: HTMLElement;
|
|
10
|
+
defaultDialogId?: string;
|
|
11
|
+
onOpenChange?(isOpen: boolean): void;
|
|
12
|
+
onDialogChange?(dialogId: string, dialog: DialogDefinition): void;
|
|
13
|
+
onManifestChange?(manifest: DialogDesignerManifest): void;
|
|
14
|
+
onAiAssetsChange?(aiAssets: AiAssetManifest): void;
|
|
15
|
+
onSelectionChange?(selection: DialogSelection | undefined): void;
|
|
16
|
+
};
|
|
17
|
+
export type DialogDesignerNodeUpdate = {
|
|
18
|
+
name?: string;
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
prompt?: string;
|
|
21
|
+
};
|
|
22
|
+
export type DialogDesignerLineUpdate = Partial<Pick<DialogLine, "enabled" | "voiceAssetId" | "lineAssetId">>;
|
|
23
|
+
export type DialogDesignerOptionUpdate = Partial<Pick<DialogOption, "enabled" | "text">>;
|
|
24
|
+
export type DialogDesignerAddLineInput = {
|
|
25
|
+
voiceAssetId?: string;
|
|
26
|
+
lineAssetId?: string;
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type DialogDesignerCreateVoiceLineInput = Omit<CreateDialogVoiceLineRequest, "assetId"> & {
|
|
30
|
+
assetId?: string;
|
|
31
|
+
};
|
|
32
|
+
export type DialogDesigner = {
|
|
33
|
+
root: HTMLDivElement;
|
|
34
|
+
open(): void;
|
|
35
|
+
close(): void;
|
|
36
|
+
isOpen(): boolean;
|
|
37
|
+
destroy(): void;
|
|
38
|
+
getManifest(): DialogDesignerManifest;
|
|
39
|
+
getAiAssets(): AiAssetManifest;
|
|
40
|
+
getDialogId(): string;
|
|
41
|
+
getSelection(): DialogSelection | undefined;
|
|
42
|
+
setManifest(manifest: DialogDesignerManifest): void;
|
|
43
|
+
setAiAssets(aiAssets: AiAssetManifest): void;
|
|
44
|
+
select(selection: DialogSelection | undefined): void;
|
|
45
|
+
addDialog(name?: string): string;
|
|
46
|
+
renameDialog(dialogId: string, name: string): void;
|
|
47
|
+
setDialogEnabled(dialogId: string, enabled: boolean): void;
|
|
48
|
+
removeDialog(dialogId: string): void;
|
|
49
|
+
addNode(parent: DialogNodeParent, type: DialogNode["type"]): string;
|
|
50
|
+
updateNode(nodeId: string, patch: DialogDesignerNodeUpdate): void;
|
|
51
|
+
removeNode(nodeId: string): void;
|
|
52
|
+
addLine(blockId: string, input?: DialogDesignerAddLineInput): string;
|
|
53
|
+
updateLine(blockId: string, lineId: string, patch: DialogDesignerLineUpdate): void;
|
|
54
|
+
moveLine(blockId: string, lineId: string, direction: -1 | 1): void;
|
|
55
|
+
removeLine(blockId: string, lineId: string): void;
|
|
56
|
+
createVoiceLine(blockId: string, input: DialogDesignerCreateVoiceLineInput): Promise<string>;
|
|
57
|
+
addOption(decisionId: string, text?: string): string;
|
|
58
|
+
updateOption(decisionId: string, optionId: string, patch: DialogDesignerOptionUpdate): void;
|
|
59
|
+
removeOption(decisionId: string, optionId: string): void;
|
|
60
|
+
undo(): void;
|
|
61
|
+
redo(): void;
|
|
62
|
+
promote(label?: string): Promise<void>;
|
|
63
|
+
};
|
|
64
|
+
export declare function installDialogDesigner(options: DialogDesignerOptions): DialogDesigner;
|
|
65
|
+
//# sourceMappingURL=designer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"designer.d.ts","sourceRoot":"","sources":["../src/designer.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAeL,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAa/B,OAAO,EACL,yBAAyB,EACzB,KAAK,4BAA4B,EAClC,MAAM,mBAAmB,CAAC;AAG3B,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACrC,cAAc,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAClE,gBAAgB,CAAC,CAAC,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC1D,gBAAgB,CAAC,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,CAAC;IACnD,iBAAiB,CAAC,CAAC,SAAS,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG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